/*
=================================================================
category.css — Shared Category Page Styles
Sydney Royal Aesthetics

Used by ALL category pages (Cosmetic Surgery, Injectables,
Laser, Hair, Skincare, Weight Loss, Breast, Resources, etc.)

Only the content inside .cat-text-col and the hero background
image change per page. All layout, spacing, and typography
is controlled here.
=================================================================
*/

:root {
    --green:     #104b47;
    --gold:      #c9a227;
    --white:     #ffffff;
    --text-dark: #2a2a2a;
    --text-mid:  #555555;
    --text-light:#777777;
    --bg-light:  #f8f5f1;
    --border:    #e8e0d8;
}


/* ================================================================
   HERO BANNER
   Inline style on the element keeps the background-image
   page-specific (changes per category). Layout is here.
================================================================ */
.cat-hero {
    position: relative;
    height: 260px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cat-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.50);
}

.cat-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 20px;
}

.cat-hero-title {
    font-size: 42px;
    font-weight: 300;
    letter-spacing: 4px;
    color: var(--white);
    text-transform: uppercase;
    margin: 0;
}

/* Responsive */
@media (max-width: 767px) {
    .cat-hero          { height: 180px; }
    .cat-hero-title    { font-size: 26px; letter-spacing: 2px; }
}

@media (max-width: 480px) {
    .cat-hero-title    { font-size: 20px; }
}


/* ================================================================
   BREADCRUMB
================================================================ */
.cat-breadcrumb {
    background: var(--bg-light);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
}

.breadcrumb-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 13px;
    color: var(--text-mid);
}

.breadcrumb-list li { display: flex; align-items: center; gap: 8px; }

.breadcrumb-list a {
    color: var(--green);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-list a:hover { color: var(--gold); }

.breadcrumb-list .fa { font-size: 11px; color: #bbb; }

/* Current page — not a link */
.breadcrumb-list [aria-current="page"] {
    color: var(--text-light);
    font-weight: 500;
}


/* ================================================================
   MAIN CONTENT SECTION
================================================================ */
.cat-content-section {
    padding: 60px 0 80px;
    background: var(--white);
}

/* Two-column flex row — text left, sidebar right */
.cat-content-row {
    display: flex;
    align-items: flex-start;
    gap: 40px;
}

/* On tablet and below, stack into single column */
@media (max-width: 1174px) {
    .cat-content-row { flex-direction: column; }
}


/* ================================================================
   LEFT COLUMN — Text content
================================================================ */
.cat-text-col {
    /* Bootstrap col provides width; padding below handles spacing */
    padding-right: 20px;
}

/* BUG FIXED: was inline style="font-size:20px; text-align:center; font-weight:600"
   Now controlled here — h1 gets proper heading size and brand colour */
.cat-page-title {
    font-size: 26px;
    font-weight: 600;
    text-align: center;
    color: var(--green);
    margin-bottom: 28px;
    padding-bottom: 14px;
    position: relative;
}

/* Gold underline accent below page title */
.cat-page-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: var(--gold);
}

/* BUG FIXED: every <p> had a trailing <br> for spacing.
   Spacing is now handled by CSS margin-bottom. */
.cat-text-col p {
    font-size: 15px;
    line-height: 1.85;
    color: var(--text-mid);
    margin-bottom: 20px;
}

.cat-text-col p:last-child { margin-bottom: 0; }

/* BUG FIXED: <ol> had manual "1. &nbsp;" numbers inside <li>.
   <ol> auto-numbers — they were rendering as "1. 1." etc.
   Manual numbers removed from HTML; styles set here. */
.cat-procedure-list {
    padding-left: 22px;
    margin-bottom: 22px;
    counter-reset: none; /* browser auto-numbering */
    list-style: auto;
}

.cat-procedure-list li {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-mid);
    margin-bottom: 12px;
    padding-left: 6px;
}

.cat-procedure-list li strong {
    color: var(--text-dark);
}

/* Responsive */
@media (max-width: 767px) {
    .cat-text-col          { padding-right: 0; }
    .cat-page-title        { font-size: 22px; }
    .cat-text-col p        { font-size: 14px; }
    .cat-procedure-list li { font-size: 14px; }
}


/* RIGHT COLUMN — Sidebar (image + consult box) */
.cat-media-col {
    margin: 92px 0px 24px 0px;
}

/* Sticky so sidebar stays in view as user scrolls the long text */
.cat-sidebar {
    position: sticky;
    top: 100px; /* offset = header height (~172px topbar+mid+navbar) */
}

/* Category image */
.cat-image-wrap {
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 5px 16px rgba(0,0,0,0.10);
    margin-bottom: 24px;
}

.cat-main-image {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.cat-image-wrap:hover .cat-main-image { transform: scale(1.03); }

/* Consultation box */
.cat-consult-box {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-left: 4px solid var(--green);
    border-radius: 4px;
    padding: 24px 20px;
    text-align: center;
}

.cat-consult-heading {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.cat-consult-sub {
    font-size: 13.5px;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Primary CTA — Book Appointment */
.cat-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px 20px;
    background: var(--green);
    color: var(--white);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    border: 2px solid var(--green);
    margin-bottom: 12px;
    transition: background 0.2s, color 0.2s;
}

.cat-cta-btn:hover {
    background: transparent;
    color: var(--green);
}

/* Secondary CTA — Phone call */
.cat-cta-call {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 11px 20px;
    background: transparent;
    color: var(--green);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-decoration: none;
    border: 2px solid var(--green);
    transition: background 0.2s, color 0.2s;
}

.cat-cta-call:hover {
    background: var(--green);
    color: var(--white);
}

/* Responsive sidebar */
@media (max-width: 992px) {
    /* Unstick on tablet/mobile — not useful when stacked */
    .cat-sidebar { position: static; }
    .cat-main-image { height: 260px; }
    .cat-media-col {}
}

@media (max-width: 767px) {
    .cat-main-image { height: 220px; }
    .cat-consult-box { padding: 20px 16px; }
    .cat-consult-heading { font-size: 15px; }
}