/*
Theme Name: FMR Clinic
Theme URI: https://fmr-clinic.pt
Description: Tema profissional para Clínica de Medicina Estética FMR
Version: 1.0.1
Author: FMR Clinic
Author URI: https://fmr-clinic.pt
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fmr-clinic
Domain Path: /languages
Requires at least: 5.0
Requires PHP: 7.4
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-color: hsl(35, 25%, 95%);
    --text-color: hsl(30, 20%, 25%);
    --gold-light: hsl(35, 30%, 88%);
    --gold: hsl(30, 30%, 50%);
    --gold-dark: hsl(25, 35%, 35%);
    --border-color: hsl(30, 15%, 85%);
    --secondary-bg: hsl(35, 30%, 88%);
    --muted-text: hsl(30, 15%, 40%);
    --card-bg: hsl(0, 0%, 100%);
}

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

h1, h2, h3, h4, h5, h6 {
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 400;
}

p { margin-bottom: 1rem; }
a { color: var(--text-color); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--gold); }

.footer-description {
  text-align: center;
  font-size: 10px;
}

/* Content Lists & Hierarchies */
.entry-content ul,
.page-content ul,
.medico-bio-text ul,
.article-body ul,
article ul,
.entry-content ol,
.page-content ol,
.medico-bio-text ol,
.article-body ol,
article ol {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.entry-content li,
.page-content li,
.medico-bio-text li,
.article-body li,
article li {
    margin-bottom: 0.6rem;
    line-height: 1.6;
}

.entry-content ul,
.page-content ul,
.medico-bio-text ul,
.article-body ul,
article ul {
    list-style-type: none;
}

.entry-content ul > li,
.page-content ul > li,
.medico-bio-text ul > li,
.article-body ul > li,
article ul > li {
    position: relative;
    padding-left: 0.5rem;
}

.entry-content ul > li::before,
.page-content ul > li::before,
.medico-bio-text ul > li::before,
.article-body ul > li::before,
article ul > li::before {
    content: "•";
    color: var(--gold);
    font-size: 1.4rem;
    position: absolute;
    left: -1rem;
    top: -4px;
}

.entry-content ol,
.page-content ol,
.medico-bio-text ol,
.article-body ol,
article ol {
    list-style-type: decimal;
    padding-left: 2rem;
}

/* Nested Hierarchies */
.entry-content ul ul,
.page-content ul ul,
.medico-bio-text ul ul,
.article-body ul ul,
article ul ul,
.entry-content ol ol,
.page-content ol ol,
.medico-bio-text ol ol,
.article-body ol ol,
article ol ol,
.entry-content ul ol,
.page-content ul ol,
.medico-bio-text ul ol,
.article-body ul ol,
article ul ol,
.entry-content ol ul,
.page-content ol ul,
.medico-bio-text ol ul,
.article-body ol ul,
article ol ul {
    margin: 0.5rem 0 0.5rem 1rem;
}

.entry-content ul ul > li::before,
.page-content ul ul > li::before,
.medico-bio-text ul ul > li::before,
.article-body ul ul > li::before,
article ul ul > li::before {
    content: "◦";
    font-size: 1.2rem;
    top: -2px;
}

.entry-content ol ol,
.page-content ol ol,
.medico-bio-text ol ol,
.article-body ol ol,
article ol ol {
    list-style-type: lower-alpha;
}

.entry-content ol ol ol,
.page-content ol ol ol,
.medico-bio-text ol ol ol,
.article-body ol ol ol,
article ol ol ol {
    list-style-type: lower-roman;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--gold-dark);
    color: var(--gold-dark);
    text-decoration: none;
    border-radius: 9999px;
    font-size: 0.875rem;
    transition: all 0.3s;
}

.btn:hover {
    background-color: var(--gold-dark);
    color: white;
}

/* CTA Button with Icon */
.btn.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0.875rem 1.75rem;
    background-color: var(--gold-dark);
    color: white;
    border-color: var(--gold-dark);
}

.btn.btn-cta svg {
    width: 18px;
    height: 18px;
}

.btn.btn-cta:hover {
    background-color: var(--gold);
    border-color: var(--gold);
    color: white;
    transform: translateY(-2px);
}

/* Header CTA positioning */
.header-cta {
    margin-left: 1rem;
}

.grid.cols-4, .index-archive .grid.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 991px) {
    .grid.cols-4,
    .index-archive .grid.cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .grid.cols-4,
    .index-archive .grid.cols-4 {
        grid-template-columns: 1fr;
    }
}

/* Hide the header CTA on small screens so the menu remains compact */
@media (max-width: 991px) {
    .header-cta {
        display: none;
    }
}

.btn-small {
    padding: 0.5rem 1.25rem;
    font-size: 0.8rem;
}

.skip-to-content { position: absolute; top: -40px; left: 0; background: var(--gold-dark); color: #fff; padding: 8px 12px; z-index: 999; }
.skip-to-content:focus { top: 0; }

/* Screen reader text */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

header, .site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--bg-color);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.header-content, .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 0;
    gap: 0.75rem;
}

.logo, .site-logo {
    color: var(--text-color);
    display: flex;
    flex-direction: column;
}

.custom-logo {
  max-width: 200px;
  height: auto;
}

.logo-subtitle {
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    font-weight: 300;
    text-transform: uppercase;
    color: var(--muted-text);
}

nav, .primary-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

nav a, .primary-menu-container a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: color 0.2s ease;
}

nav a:hover, .primary-menu-container a:hover {
    color: var(--gold-dark);
}

.primary-menu-container > ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin: 0;
    padding: 0;
}

.primary-menu-container li {
    position: relative;
}

/* Top-level menu items with elegant styling */
.primary-menu-container > ul > li > a {
    display: block;
    padding: 0.65rem 1rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.primary-menu-container > ul > li > a:hover,
.primary-menu-container > ul > li.menu-open > a {
    background-color: var(--gold-light);
    color: var(--gold-dark);
}

.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: none;
    border-radius: 12px;
    min-width: 220px;
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
    z-index: 1001;
    list-style: none;
}

/* Show submenu ONLY with .menu-open class (controlled by JS) */
.primary-menu-container li.menu-open > .sub-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.15s ease;
}

.sub-menu a {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    border-radius: 8px;
    color: var(--text-color);
    transition: all 0.15s ease;
}

.sub-menu a:hover {
    background: var(--gold-light);
    color: var(--gold-dark);
}

/* Submenu items */
.sub-menu > li {
    margin: 0.15rem 0;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
}

.menu-toggle span {
    width: 26px;
    height: 2px;
    background: var(--text-color);
    display: block;
    transition: all 0.3s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.section.doctors-section img {
  max-width: 150px;
}

/* 
---------------------------------------------
   MEGA MENU STYLES (Desktop)
---------------------------------------------
*/
@media (min-width: 1025px) {
    /* Ensure the container allows full-width dropdowns relative to the header container */
    .header-inner {
        position: relative;
    }

    /* Reset position for top-level items to allow dropdown to expand to container width */
    .primary-menu-container > ul > li.menu-item-has-children {
        position: static;
    }

    /* Level 2: The Mega Dropdown Container - Override base submenu styles */
    .primary-menu-container > ul > li > ul.sub-menu {
        left: 0;
        right: 0;
        top: 100%;
        border-radius: 0 0 12px 12px;
    }

    /* Show mega menu with .menu-open class (default grid version) */
    .primary-menu-container > ul > li.menu-open > ul.sub-menu:not(.mega-submenu) {
        width: 100%;
        left: 0;
        right: 0;
        top: 100%;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
        padding: 2rem;
        background: #fff;
        box-shadow: 0 15px 50px rgba(0,0,0,0.12);
        border-top: 3px solid var(--gold);
        box-sizing: border-box;
        border-radius: 0 0 12px 12px;
        
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transition: opacity 0.15s ease;
    }

    /*
    ---------------------------------------------
       MEGA MENU TABS (Left categories / Right panel)
    ---------------------------------------------
    */
    .primary-menu-container > ul > li.menu-open > ul.sub-menu.mega-submenu {
        width: 100%;
        left: 0;
        right: 0;
        top: 100%;
        padding: 0;
        background: #fff;
        box-shadow: 0 15px 50px rgba(0,0,0,0.12);
        border-top: 3px solid var(--gold);
        box-sizing: border-box;
        border-radius: 0 0 12px 12px;

        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transition: opacity 0.15s ease;
    }

    .primary-menu-container > ul > li.menu-open > ul.sub-menu.mega-submenu > li.mega-tabs {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        gap: 0;
    }

    .primary-menu-container ul.sub-menu.mega-submenu .mega-tabs-left {
        width: 280px;
        border-right: 1px solid var(--border-color);
        padding: 1.25rem 0;
        margin: 0;
        list-style: none;
        overflow: auto;
        max-height: 520px;
    }

    .primary-menu-container ul.sub-menu.mega-submenu .mega-tab {
        margin: 0;
    }

    .primary-menu-container ul.sub-menu.mega-submenu .mega-tab > a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.85rem 1.25rem;
        border-radius: 0;
        font-family: 'Playfair Display', serif;
        font-size: 0.95rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        font-weight: 600;
        color: var(--text-color);
        background: transparent;
    }

    .primary-menu-container ul.sub-menu.mega-submenu .mega-tab.active > a,
    .primary-menu-container ul.sub-menu.mega-submenu .mega-tab > a:hover {
        background: var(--gold-light);
        color: var(--gold-dark);
    }

    .primary-menu-container ul.sub-menu.mega-submenu .mega-tabs-right {
        flex: 1;
        padding: 1.75rem 2rem;
        overflow: auto;
        max-height: 520px;
    }

    .primary-menu-container ul.sub-menu.mega-submenu .mega-panel {
        display: none;
    }

    .primary-menu-container ul.sub-menu.mega-submenu .mega-panel.active {
        display: block;
    }

    /* Reset submenu styling inside panels (they were absolute by default) */
    .primary-menu-container ul.sub-menu.mega-submenu .mega-tabs-right ul.sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        box-shadow: none;
        border: none;
        background: transparent;
        padding: 0;
        margin: 0;
        min-width: auto;
        transform: none;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.25rem 2rem;
    }

    .primary-menu-container ul.sub-menu.mega-submenu .mega-tabs-right ul.sub-menu > li {
        margin: 0;
    }

    .primary-menu-container ul.sub-menu.mega-submenu .mega-tabs-right ul.sub-menu > li > a {
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
        text-transform: none;
        font-size: 0.95rem;
        color: var(--muted-text);
        padding: 0.55rem 0.25rem;
        border: none;
        font-weight: 400;
        border-radius: 6px;
        transition: all 0.15s ease;
    }

    .primary-menu-container ul.sub-menu.mega-submenu .mega-tabs-right ul.sub-menu > li > a:hover {
        color: var(--gold-dark);
        background: var(--gold-light);
        padding-left: 0.75rem;
    }

    /* Level 2 Items: The Column Headers */
    .primary-menu-container > ul > li > ul.sub-menu > li {
        display: block;
        margin: 0;
    }

    .primary-menu-container > ul > li > ul.sub-menu > li > a {
        font-family: 'Playfair Display', serif;
        font-size: 1rem;
        color: var(--text-color);
        text-transform: uppercase;
        letter-spacing: 0.5px;
        padding: 0 0 0.75rem 0;
        margin-bottom: 0.75rem;
        border-bottom: 1px solid var(--border-color);
        background: transparent;
        font-weight: 600;
        border-radius: 0;
    }
    
    .primary-menu-container > ul > li > ul.sub-menu > li > a:hover {
        background: transparent;
        color: var(--gold-dark);
    }

    /* Level 3: The Links List */
    .primary-menu-container > ul > li > ul.sub-menu > li > ul.sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        box-shadow: none;
        border: none;
        padding: 0;
        min-width: auto;
        background: transparent;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
        margin-top: 0;
        transform: none;
    }

    /* Level 3 Items */
    .primary-menu-container > ul > li > ul.sub-menu > li > ul.sub-menu > li {
        margin: 0;
    }

    .primary-menu-container > ul > li > ul.sub-menu > li > ul.sub-menu > li > a {
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
        text-transform: none;
        font-size: 0.9rem;
        color: var(--muted-text);
        padding: 0.35rem 0.5rem;
        border: none;
        font-weight: 400;
        border-radius: 4px;
        transition: all 0.15s ease;
    }

    .primary-menu-container > ul > li > ul.sub-menu > li > ul.sub-menu > li > a:hover {
        color: var(--gold-dark);
        background: var(--gold-light);
        padding-left: 0.75rem;
    }
}

.hero, .hero-section {
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}



.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.7) 40%, rgba(255, 255, 255, 0.3) 70%, rgba(255, 255, 255, 0) 100%);
    z-index: 2;
}

.hero .container {
    position: relative;
    z-index: 3;
    width: 100%;
}

.hero-content-wrapper {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: center;
}

.hero h1, .hero-title {
    font-size: 3.5rem;
    line-height: 1.15;
    color: var(--gold-dark);
    margin-bottom: 1.5rem;
}

.hero-tagline {
    font-size: 1.5rem;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 1rem;
}

.hero-image {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: visible;
    border-radius: 3%;
}

.hero-image::before {
    content: "";
    position: absolute;
    inset: -8%;
    border-radius: inherit;
    pointer-events: none;
    background: radial-gradient(ellipse at 60% 45%, rgba(174, 147, 110, 0.18) 0%, rgba(174, 147, 110, 0.10) 30%, rgba(174, 147, 110, 0) 60%);
    filter: blur(14px);
}

.hero-image img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    box-shadow: 0 14px 36px rgba(0,0,0,0.12);
}

.hero-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.hero-metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid var(--gold-light);
    padding: 0.6rem 1.1rem;
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.hero-metric-number {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gold-dark);
    line-height: 1.1;
}

.hero-metric-label {
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--text);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-top: 0.15rem;
}

.hero-slogan {
    font-size: 1.25rem;
    color: var(--muted-text);
    margin-bottom: 2rem;
    font-style: italic;
}

.hero-awards {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.hero-awards img {
    height: 100px;
    width: auto;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,.12));
}

/* Hero Mobile Optimizations */
@media (max-width: 768px) {
    .hero, .hero-section {
        min-height: 450px;
        padding: 2.5rem 0;
    }

    .hero-overlay {
        background: linear-gradient(to bottom, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 50%, rgba(255, 255, 255, 0.6) 100%);
    }

    .hero h1, .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .hero-tagline {
        font-size: 1.1rem;
    }

    .hero-slogan {
        font-size: 1rem;
        margin-bottom: 1.25rem;
    }

    .hero-metrics {
        justify-content: center;
        gap: 0.5rem;
    }

    .hero-metric {
        padding: 0.4rem 0.75rem;
    }

    .hero-metric-number {
        font-size: 0.95rem;
    }

    .hero-metric-label {
        font-size: 0.7rem;
    }

    .hero-content {
        text-align: center;
    }

    .hero-awards {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero, .hero-section {
        min-height: 400px;
        padding: 2rem 0;
    }

    .hero h1, .hero-title {
        font-size: 1.75rem;
    }

    .hero-tagline {
        font-size: 1rem;
    }

    .hero-awards img {
        height: 48px;
    }
}

.doctors-section {
    padding: 5rem 0 4rem;
    background: linear-gradient(to bottom, rgba(222,212,195,0.25), var(--bg-color));
}

.doctors-section h2 {
    text-align: center;
    font-size: 2.75rem;
    margin-bottom: 1rem;
}

.doctors-section p.section-intro {
    text-align: center;
    font-size: 1.05rem;
    color: var(--muted-text);
    margin-bottom: 3rem;
}

.doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
}

.doctor-card {
    text-align: center;
}

.doctor-card figure {
    margin: 0;
}

.doctor-card img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    object-position: top;
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 6px 16px rgba(0,0,0,.12);
}

.doctor-card figcaption {
    margin-top: 1rem;
    text-align: center;
}

.doctor-name {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.25rem;
    font-family: Georgia, serif;
}

.doctor-specialty {
    font-size: 0.8rem;
    color: var(--muted-text);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0;
}

@media (max-width: 768px) {
    .doctors-section {
        padding: 3rem 0 2rem;
    }

    .doctors-section h2 {
        font-size: 2rem;
    }

    .doctors-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

    .doctor-name {
        font-size: 0.95rem;
    }

    .doctor-specialty {
        font-size: 0.7rem;
    }
}

/* 
---------------------------------------------
   NEW DOCTOR CARD STYLES
---------------------------------------------
*/
.doctor-card-redesign {
    background: #fff;
    /* More elegant border radius */
    border-radius: 8px;
    /* Softer, more diffuse shadow for a modern feel */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
    height: 100%;
    border: 1px solid rgba(0,0,0,0.03);
    position: relative;
    display: flex;
    flex-direction: column;
}

.doctor-card-redesign:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    /* Subtle gold border highlight on hover */
    border-color: rgba(189, 142, 66, 0.3); 
}

.doctor-card-link {
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensures card stretches */
    color: inherit;
    text-decoration: none;
}

.doctor-card-image {
    aspect-ratio: 3/4; /* Classic portrait ratio */
    position: relative;
    overflow: hidden;
    background: #f4f4f4;
}

/* Gradient overlay at bottom of image for smoother transition if needed (optional) */
.doctor-card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 20%;
    background: linear-gradient(to top, rgba(0,0,0,0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.doctor-card-redesign:hover .doctor-card-image::after {
    opacity: 1;
}

.doctor-card-image img.img-cover,
.doctor-card-image .img-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.6s cubic-bezier(0.215, 0.610, 0.355, 1.000); /* Smooth easing */
    filter: saturate(0.95); /* Slightly desaturated for elegance */
}

.doctor-card-redesign:hover .doctor-card-image img.img-cover,
.doctor-card-redesign:hover .doctor-card-image .img-cover {
    transform: scale(1.03);
    filter: saturate(1.05); /* Slight pop in color on hover */
}

.doctor-card-content {
    padding: 1.5rem 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: #fff;
    border-top: 1px solid rgba(0,0,0,0.02);
}

.doctor-card-content .doctor-name {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
    font-family: Georgia, 'Times New Roman', serif; /* Reinforce serif font */
    color: var(--text-color);
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.doctor-card-content .doctor-specialty {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted-text);
    margin-bottom: 1.25rem;
    line-height: 1.4;
    font-weight: 500;
}

/* Elegant gold divider */
.doctor-card-content::after {
    content: '';
    width: 30px;
    height: 1px;
    background-color: var(--gold-light);
    margin: auto auto 1rem; /* Push to bottom before CTA */
    transition: width 0.3s ease, background-color 0.3s ease;
}

.doctor-card-redesign:hover .doctor-card-content::after {
    width: 50px;
    background-color: var(--gold);
}

.doctor-card-content .doctor-cta {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gold-dark);
    margin-top: auto; /* Push to very bottom */
    padding-bottom: 0.25rem;
    border-bottom: 1px solid transparent;
    transition: all 0.3s;
}

.doctor-card-redesign:hover .doctor-cta {
    color: var(--gold);
    border-bottom-color: var(--gold);
    transform: translateY(-2px);
}

.doctor-placeholder {
    width: 100%;
    height: 100%;
    background-color: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
}
.doctor-placeholder::before {
    content: "No Image";
    font-size: 0.8rem;
}
.post-date {
  display: none;
}
/* Reduce gap between Médicos (#equipa) and Novidades (#novidades) */
#equipa { 
    padding-top: 3rem; /* More space before title */
    padding-bottom: 4rem; 
    background-color: var(--bg-color); 
}
#novidades { padding-top: 2rem; background: #fff; }

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--muted-text);
}

@media (max-width: 768px) {
    .section-header {
        margin-bottom: 2.5rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .section-header p {
        font-size: 1rem;
    }
}

.grid {
    display: grid;
    gap: 2rem;
}

.grid.cols-3,
.index-archive .grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 991px) {
    .grid.cols-3,
    .index-archive .grid.cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .grid.cols-3,
    .index-archive .grid.cols-3 {
        grid-template-columns: 1fr;
    }
}

/* Force 3 columns on Especialidade archive */
.tax-especialidade .grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 900px) {
    .tax-especialidade .grid.cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .tax-especialidade .grid.cols-3 {
        grid-template-columns: 1fr;
    }
}

.grid.cols-2 {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
}

.case-card, .treatment-card, .news-card, .post-card,
.caso-card, .tratamento-card {
    background: var(--card-bg);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    border: 1px solid var(--border-color);
}

.case-card:hover, .treatment-card:hover, .news-card:hover, .post-card:hover,
.caso-card:hover, .tratamento-card:hover {
    transform: translateY(-8px);
}

.card-image img, .post-thumbnail img,
.caso-image img, .tratamento-image img {
    width: 100%;
    max-width: 100%;
    height: 220px;
    object-fit: cover;
}

.card-body, .post-content,
.caso-content, .tratamento-content {
    padding: 1.5rem;
}

.card-body h3, .post-title,
.caso-title, .tratamento-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.tratamento-especialidade, .tratamento-genero {
    font-size: 0.95rem;
    color: var(--muted-text);
    margin: 0 0 0.5rem;
}

.tratamento-especialidade strong, .tratamento-genero strong {
    font-weight: 600;
    color: var(--text-color);
    margin-right: 0.25rem;
}

/* Archive filters (Tratamentos + Casos) */
.tratamento-filters,
.caso-filters,
.post-filters {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 1.25rem 0;
    flex-wrap: wrap;
}

/* Base styles for each filter link */
.tratamento-filters .filter-link,
.caso-filters .filter-link,
.filter-link {
    display: inline-block;
    margin: 0.25rem 0.4rem;
    padding: 0.45rem 0.75rem;
    border-radius: 9999px;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    background: transparent;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.tratamento-filters .filter-link:hover,
.caso-filters .filter-link:hover,
.filter-link:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.tratamento-filters .filter-link.active,
.caso-filters .filter-link.active,
.filter-link.active {
    background-color: var(--gold);
    color: #fff;
    border-color: var(--gold);
}

/* Small tweaks for mobile touch targets */
@media (max-width: 768px) {
    .tratamento-filters .filter-link,
    .caso-filters .filter-link,
    .filter-link {
        padding: 0.35rem 0.6rem;
        font-size: 0.8rem;
    }
}
@media (max-width: 480px) {
    .tratamento-filters .filter-link,
    .caso-filters .filter-link,
    .filter-link {
        padding: 0.3rem 0.5rem;
        font-size: 0.75rem;
    }
}

.card-link, .read-more {
    color: var(--gold-dark);
    font-weight: 600;
}

/* Archive & Pagination */
.pagination-wrapper {
    margin-top: 4rem;
    display: flex;
    justify-content: center;
}

.pagination .nav-links {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin-bottom: 10px;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-color);
    transition: all 0.3s;
    font-size: 0.875rem;
}

.pagination .page-numbers.current {
    background-color: var(--gold-dark);
    color: white;
    border-color: var(--gold-dark);
}

.pagination .page-numbers:hover:not(.current) {
    border-color: var(--gold);
    color: var(--gold);
}

.post-meta {
    font-size: 0.85rem;
    color: var(--muted-text);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.post-excerpt {
    font-size: 0.95rem;
    color: var(--muted-text);
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
}

/* NOS Media styles */
.nos-media-card, .nos-media-archive .nos-media-card {
    background: var(--card-bg);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border-color);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}

.nos-media-card:hover { transform: translateY(-6px); }

.nos-media-thumb img, .nos-media-thumb img { width: 100%; height: 200px; object-fit: cover; display: block; }

.nos-media-content { padding: 1.25rem; display: flex; flex-direction: column; gap: 0.75rem; }
.nos-media-title { font-size: 1.1rem; margin-bottom: 0.25rem; }
.nos-media-excerpt { color: var(--muted-text); font-size: 0.95rem; }

.nos-media-gallery-grid { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-bottom: 1.25rem; }
.nos-media-gallery-grid .gallery-item img { width: 100%; height: 260px; object-fit: cover; border-radius: 8px; }

.nos-media-single .nos-media-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; }
.nos-media-single .sidebar-card { background: var(--card-bg); border: 1px solid var(--border-color); padding: 1rem; border-radius: 8px; }

@media (max-width: 900px) {
    .nos-media-single .nos-media-grid { grid-template-columns: 1fr; }
    .grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
}

.post-footer {
    margin-top: auto;
}

.archive-description {
    max-width: 700px;
    margin: 0 auto 2rem;
    color: var(--muted-text);
    font-size: 1.1rem;
}

.categoria-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--gold-light);
    color: var(--gold-dark);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

/* Single Medico - Elegant Design */
.medico-tratamentos.section {
  padding-bottom: 50px;
}
#sobre {
    margin-bottom: 50px;
}


/* Hero Section */
.medico-hero {
    position: relative;
    padding: 4rem 0 6rem;
    overflow: hidden;
    min-height: 500px;
}

.medico-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--bg-color) 50%, rgba(255,255,255,0.8) 100%);
    z-index: -1;
}

.medico-hero-bg::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to top, var(--bg-color), transparent);
}

.medico-hero-content {
    display: grid !important;
    grid-template-columns: 320px 1fr !important;
    gap: 3rem !important;
    align-items: start;
}

.medico-hero-photo {
    position: relative;
    z-index: 1;
}

.medico-hero-photo img {
    width: 100%;
    max-width: 320px;
    height: auto;
    aspect-ratio: 3/4;
    object-fit: cover;
    object-position: top;
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px rgba(0,0,0,0.12);
    border: 3px solid white;
}

.medico-hero-photo::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: 15px;
    bottom: 15px;
    border: 2px solid var(--gold);
    border-radius: 1.5rem;
    z-index: -1;
}

.medico-hero-info {
    padding: 1rem 0;
}

.medico-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.8rem;
}

.medico-breadcrumb a {
    color: var(--muted-text);
    transition: color 0.3s;
}

.medico-breadcrumb a:hover {
    color: var(--gold-dark);
}

.medico-breadcrumb .separator {
    color: var(--border-color);
}

.medico-breadcrumb .current {
    color: var(--gold-dark);
    font-weight: 600;
}

.medico-hero-name {
    font-size: 2.75rem;
    font-family: Georgia, 'Times New Roman', serif;
    color: var(--gold-dark);
    margin-bottom: 1.25rem;
    line-height: 1.15;
}

.medico-hero-specialties {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.specialty-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.9rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--gold-dark);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.specialty-tag.style-secondary {
    background: #f7f3ed;
    color: var(--text-color);
}

.specialty-tag.style-treatment {
    background: var(--gold-dark);
    color: white;
    text-decoration: none;
    transition: all 0.2s ease;
}

.specialty-tag.style-treatment:hover {
    background: var(--gold);
    color: white;
    transform: translateY(-1px);
}

.medico-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.btn-primary {
    background: var(--gold-dark);
    color: white;
    border-color: var(--gold-dark);
}

.btn-primary:hover {
    background: var(--text-color);
    border-color: var(--text-color);
    color: white;
}

.btn-ghost {
    background: transparent;
    border: 2px solid var(--text-color);
    color: var(--text-color);
}

.btn-ghost:hover {
    background: var(--text-color);
    color: white;
}

/* About Section */
.medico-about {
    background: var(--bg-color);
}

.medico-about-grid {
    display: grid !important;
    grid-template-columns: 1.5fr 1fr !important;
    gap: 3rem;
    align-items: start;
}

.section-label {
    margin-top: 10px;
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gold);
    margin-bottom: 0.75rem;
    padding: 0.5rem 1rem;
    background: var(--gold-light);
    border-radius: 999px;
}

.medico-about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.medico-bio-text {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-color);
}

.medico-bio-text p {
    margin-bottom: 1.5rem;
}

.medico-about-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.medico-info-card {
    background: white;
    border-radius: 1.5rem;
    padding: 2rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.medico-info-card h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: var(--gold-dark);
}

.medico-info-card svg {
    color: var(--gold);
}

.specialties-list,
.locations-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.specialties-list li,
.locations-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
    color: var(--text-color);
}

.specialties-list li:last-child,
.locations-list li:last-child {
    border-bottom: none;
}

.medico-cta-card {
    background: linear-gradient(135deg, var(--gold-dark) 0%, var(--text-color) 100%);
    border-radius: 1.5rem;
    padding: 2rem;
    text-align: center;
    color: white;
}

.medico-cta-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: white;
}

.medico-cta-card p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.medico-cta-card .btn {
    background: white;
    color: var(--gold-dark);
    border-color: white;
}

.medico-cta-card .btn:hover {
    background: transparent;
    color: white;
}

/* Tratamentos & Casos Sections */
.medico-tratamentos,
.medico-casos {
    background: white;
}

.section-footer {
    text-align: center;
    margin-top: 3rem;
    padding-bottom: 30px;
}

/* CTA Section */
.medico-cta-section {
    background: linear-gradient(135deg, var(--gold-dark) 0%, var(--text-color) 100%);
    padding: 5rem 0;
    text-align: center;
}

.medico-cta-content h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.medico-cta-content p {
    color: rgba(255,255,255,0.85);
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.btn-white {
    background: white;
    color: var(--gold-dark);
    border-color: white;
}

.btn-white:hover {
    background: transparent;
    color: white;
}

.btn-ghost-white {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.5);
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-ghost-white:hover {
    background: rgba(255,255,255,0.1);
    border-color: white;
    color: white;
}

/* Responsive */
@media (max-width: 992px) {
    .medico-hero-content {
        grid-template-columns: 1fr !important;
        text-align: center;
        gap: 2rem !important;
    }
    
    .medico-hero-photo {
        max-width: 280px;
        margin: 0 auto;
    }
    
    .medico-hero-photo img {
        max-width: 100%;
        height: auto;
    }
    
    .medico-hero-photo::before {
        display: none;
    }
    
    .medico-breadcrumb {
        justify-content: center;
    }
    
    .medico-hero-name {
        font-size: 2rem;
    }
    
    .medico-hero-specialties {
        justify-content: center;
    }
    
    .medico-hero-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .medico-about-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    .medico-cta-content h2 {
        font-size: 1.75rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

.page-wrapper {
    padding: 3.5rem 0;
}


.wp-block-cover__image-background {
  border-radius: 27px !important;
}
.wp-block-group__inner-container.is-layout-constrained.wp-block-group-is-layout-constrained {
  border-radius: 14px;
}
.wp-block-group {
  border-radius: 17px;
}
.has-background-dim {
  border-radius: 16px;
}


footer, .site-footer {
    background: rgba(222, 212, 195, 0.3);
    padding: 3rem 0 2.5rem;
    border-top: 1px solid var(--border-color);
}

.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer ul li {
    padding: 0.3rem 0;
    position: relative;
}

.footer-menu-container > ul > li {
    padding: 0.25rem 0;
}

.footer-menu-container ul.sub-menu > li {
    padding: 0.15rem 0;
}

/* Footer Accordion Submenu Styles */
.footer-menu-container ul.sub-menu {
    /* reset main menu dropdown behavior */
    position: static !important;
    top: auto !important;
    left: auto !important;
    background: none !important;
    box-shadow: none !important;
    min-width: auto !important;
    padding: 0 0 0 15px;

    /* accordion hiding */
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: max-height 0.35s ease, opacity 0.3s ease, visibility 0s linear 0.35s;
}

.footer-menu-container li.is-open > ul.sub-menu {
    max-height: 3000px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    margin-top: 2px;
    display: block !important;
    transition: max-height 0.5s ease, opacity 0.3s ease;
}

.footer-menu-container li {
    position: relative;
    padding-right: 22px; /* space for toggle arrow */
}

.footer-submenu-toggle {
    position: absolute;
    top: 4px;  /* align with text, not middle of full li */
    right: 0;
    transform: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    transition: transform 0.3s ease;
    line-height: 1;
}

.footer-submenu-toggle:hover {
    color: var(--gold);
}

.footer-menu-container li.is-open > .footer-submenu-toggle {
    transform: rotate(180deg);
}

.site-footer ul li::before {
    display: none;
}

.site-footer ul li::marker {
    content: none;
}


.wpcf7-form-control.wpcf7-select.wpcf7-validates-as-required {
  padding: 10px;
  width: 100%;
}



.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    footer, .site-footer {
        padding: 2rem 0 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-col h3 {
        margin-bottom: 0.75rem;
    }

    .footer-col ul {
        padding-left: 0;
    }

    .social-links {
        justify-content: center;
    }

    .footer-logo {
        display: flex;
        justify-content: center;
    }

    .footer-description {
        margin: 0 auto;
        max-width: 300px;
    }
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.875rem;
    color: var(--muted-text);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #fff;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--gold);
    border-color: var(--gold);
    color: #fff;
    transform: translateY(-2px);
}

.social-links svg {
    width: 20px;
    height: 20px;
}

@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero h1, .hero-title {
        font-size: 2.5rem;
    }

    nav.primary-nav {
        display: flex;
    }
    
    .menu-toggle {
        display: flex;
        position: relative;
        z-index: 2000;
        padding: 10px; /* Improve touch target */
    }
    
    /* Mobile Menu Fullscreen Overlay */
    .primary-menu-container {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: #fff;
        z-index: 1500;
        padding: 80px 2rem 2rem;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        overflow-y: auto;
        visibility: hidden;
    }
    
    .primary-menu-container.active {
        transform: translateX(0);
        visibility: visible;
        box-shadow: -5px 0 20px rgba(0,0,0,0.1);
    }
    
    .primary-menu-container > ul {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 0;
        margin-top: 10%;
    }
    
    .primary-menu-container li {
        width: 100%;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }
    
    .primary-menu-container > ul > li > a {
        font-size: 1.25rem;
        padding: 15px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    /* Submenu Handling on Mobile */
    .sub-menu,
    .primary-menu-container li.menu-open > .sub-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        display: none; /* Hidden by default */
        padding-left: 1.5rem;
        background: #f9f9f9;
        pointer-events: auto;
    }
    
    .primary-menu-container li.menu-open > .sub-menu {
        display: block; /* Show when open */
    }

    /* Reset Mega Menu Styles for Mobile */
    .primary-menu-container > ul > li.menu-open > ul.sub-menu:not(.mega-submenu),
    .primary-menu-container > ul > li.menu-open > ul.sub-menu.mega-submenu {
        display: none; /* Let JS control display via menu-open class on parent */
    }
    
    /* When parent has menu-open, we want to see the submenu */
    .primary-menu-container > ul > li.menu-open > ul.sub-menu {
        display: block !important;
        position: static;
        width: 100%;
        box-shadow: none;
        border: none;
        padding: 0 0 1rem 1.5rem;
        background: transparent;
    }
    
    /* Mobile specific adjustments for mega menu internals */
    .primary-menu-container ul.sub-menu.mega-submenu > li.mega-tabs {
        display: block;
        min-height: auto;
    }
    
    .primary-menu-container ul.sub-menu.mega-submenu .mega-tabs-left,
    .primary-menu-container ul.sub-menu.mega-submenu .mega-tabs-right {
        width: 100%;
        border: none;
        padding: 0;
        max-height: none;
        overflow: visible;
    }
    
    .primary-menu-container ul.sub-menu.mega-submenu .mega-tabs-right {
        padding: 0 1rem;
    }
    
    /* Ensure all panels are visible in mobile linear view or just the active one?
       Let's show all links linearly for simplicity on mobile or keep the tab structure?
       Linear is strictly better for mobile.
    */
    .primary-menu-container ul.sub-menu.mega-submenu .mega-panel {
        display: block !important;
    }
    
    /* Arrow indicator for items with children */
    .menu-item-has-children > a::after {
        content: '+';
        font-size: 1.2rem;
        font-weight: 300;
        transition: transform 0.3s;    
        margin-left: 10px;
    }
    
    .menu-item-has-children.menu-open > a::after {
        transform: rotate(45deg);
    }

    .doctors-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

@media (max-width: 640px) {
    .btn.btn-cta {
  display: none;
}
    .hero-image {
        aspect-ratio: 1;
    }

    .hero-awards img {
        height: 56px;
    }

    .section {
        padding: 3rem 0;
    }
}

/* Clinic Section & Awards */
.awards-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.awards-bar img {
    height: 80px;
    width: auto;
    object-fit: contain;
}

.pill-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.pill-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.pill-card:hover {
    transform: translateY(-5px);
}

.pill-card h3 {
    color: var(--gold-dark);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.pill-card p {
    color: var(--muted-text);
    font-size: 0.95rem;
    margin: 0;
}

.clinic-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.clinic-gallery img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .clinic-gallery {
        grid-template-columns: 1fr;
    }
    
    .clinic-gallery img {
        height: 250px;
    }
}

/* New Clinic Section Layout */
.clinic-section {
    background-color: #F4EFE5; /* Light beige from image */
    padding: 6rem 0;
}

.clinic-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.clinic-content h2 {
    font-size: 3rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    font-family: Georgia, serif;
}

.clinic-subtitle {
    font-size: 1.75rem;
    color: #8B5E3C; /* Brownish color */
    margin-bottom: 1.5rem;
    font-family: Georgia, serif;
}

.clinic-description {
    color: var(--muted-text);
    margin-bottom: 3rem;
    max-width: 90%;
}

.clinic-values {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.value-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.value-icon {
    background: rgba(139, 94, 60, 0.1);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #8B5E3C;
}

.value-text h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-family: Georgia, serif;
}

.value-text p {
    font-size: 0.95rem;
    color: var(--muted-text);
    margin: 0;
}

.clinic-images {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.clinic-image-main img {
    width: 100%;
    height: auto;
    border-radius: 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.clinic-image-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.clinic-image-row img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1.5rem;
    aspect-ratio: 1;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

@media (max-width: 992px) {
    .clinic-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .clinic-description {
        max-width: 100%;
    }
}

/* Elegant Cases Section */
.treatments-section {
    padding-bottom: 2rem;
    padding-top: 2rem;
}

.cases-section {
    background-color: #fff;
    padding: 2rem 0 2rem;
}

.cases-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: start;
}

.cases-info {
    position: sticky;
    top: 120px;
}

.cases-info h2 {
    font-size: 3rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-family: Georgia, serif;
}

.cases-subtitle {
    font-size: 1.25rem;
    color: var(--gold-dark);
    font-style: italic;
    margin-bottom: 1.5rem;
    font-family: Georgia, serif;
}

.cases-description {
    color: var(--muted-text);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

/* 
---------------------------------------------
   TREATMENT CATEGORIES (5-Column Layout)
---------------------------------------------
*/
.treatments-section .container {
    /* Inherits standard container styles */
}

.treatments-section .section-header {
    max-width: 1200px;
    margin: 0 auto 3rem;
    padding: 0 1rem;
    text-align: center;
}

.treatment-categories-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    width: 100%;
    min-height: 500px;
    gap: 1rem; /* Added gap */
}

.treatment-category-card {
    position: relative;
    height: 500px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 2rem;
    text-align: center;
    transition: all 0.4s ease;
    border-radius: 1rem; /* Added rounded corners */
    /* Removed border-right */
}

.treatment-category-card:last-child {
    /* Removed border-right reset */
}

.category-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.category-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.treatment-category-card:hover .category-bg img {
    transform: scale(1.05);
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.4) 100%);
    z-index: 2;
    transition: background 0.3s;
}

.treatment-category-card:hover .category-overlay {
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.6) 100%);
}

.category-content {
    position: relative;
    z-index: 3;
    width: 100%;
    transform: translateY(0);
    transition: transform 0.3s;
}

.category-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.btn-category {
    display: inline-block;
    background: #ffffff21;
    color: hsl(0, 0%, 100%);
    padding: 0.8rem 1.5rem;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    border: none;
    transition: all 0.3s;
    text-decoration: none;
    min-width: 160px;
}

.btn-category:hover {
    background: var(--gold);
    color: #fff;
}

/* Responsive */
@media (max-width: 1024px) {
    .treatment-categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .treatment-category-card {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .treatment-categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .treatment-categories-grid {
        grid-template-columns: 1fr;
    }
    .treatment-category-card {
        height: 350px;
    }
}
/* 
---------------------------------------------
   CONTACT SECTION
---------------------------------------------
*/
.contact-section {
    background-color: var(--bg-color);
    padding: 5rem 0;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: start;
}

/* Contact Form Wrapper */
.contact-form-wrapper {
    background: #fff;
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* Contact Form 7 Styles Override */
.wpcf7-form-control-wrap {
    display: block;
    margin-bottom: 1.5rem;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-color);
    background: #fff;
    transition: border-color 0.3s;
}

.wpcf7 input:focus,
.wpcf7 textarea:focus {
    outline: none;
    border-color: var(--gold);
}

.wpcf7 input[type="submit"] {
    background-color: var(--gold-dark);
    color: #fff;
    border: none;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
    width: auto;
    min-width: 150px;
}

.wpcf7 input[type="submit"]:hover {
    background-color: var(--gold);
}

/* Locations Column */
.contact-locations {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.location-card {
    background: #fff;
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.location-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    color: var(--gold-dark);
    margin-bottom: 1.5rem;
}

.location-card p {
    margin-bottom: 1rem;
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.6;
}

.location-card .phone {
    font-size: 1.05rem;
    color: var(--text-color);
}

.location-card .small-text {
    font-size: 0.8rem;
    color: var(--muted-text);
    font-weight: 400;
}

.location-card .licenses {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.location-card .licenses p {
    font-size: 0.8rem;
    color: var(--muted-text);
    margin-bottom: 0.25rem;
}

/* Responsive */
@media (max-width: 992px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }
    
    .contact-form-wrapper {
        padding: 2rem;
    }
}

.caso-card:hover .caso-image img {
    transform: scale(1.05);
}

.caso-content {
    padding: 0;
    text-align: left;
}

.caso-title {
    font-size: 1.1rem;
    font-family: Georgia, serif;
    margin-bottom: 0.25rem;
}

.caso-title a {
    color: var(--text-color);
}

.caso-categorias {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted-text);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--text-color);
    color: var(--text-color);
}

.btn-outline:hover {
    background: var(--text-color);
    color: #fff;
    border-color: var(--text-color);
}

@media (max-width: 992px) {
    .cases-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .cases-info {
        position: static;
        text-align: center;
        margin-bottom: 1rem;
    }

    .cases-info h2 {
        font-size: 2rem;
    }
    
    .cases-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .cases-actions {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .cases-carousel .caso-card {
        min-width: 240px;
        flex: 0 0 240px;
    }
}

/* Carousel Styles */
.caso-card {
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
    display: flex;
    flex-direction: column;
}

.caso-card:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}

.caso-image {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.caso-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.caso-card:hover .caso-image img {
    transform: scale(1.05);
}

.caso-content {
    padding: 0;
    text-align: left;
}

.caso-title {
    font-family: Georgia, serif;
    font-size: 1.25rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.caso-title a {
    color: var(--text-color);
    text-decoration: none;
}

.caso-categorias {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted-text);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.read-more {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gold-dark);
    text-decoration: none;
    transition: color 0.3s;
}

.read-more:hover {
    color: var(--gold);
}

.cases-carousel-container {
    overflow: hidden;
    width: 100%;
}

.cases-carousel {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 2rem; /* Space for scrollbar if visible, or shadow */
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
    scroll-behavior: smooth;
}

.cases-carousel::-webkit-scrollbar {
    display: none;
}

.cases-carousel .caso-card {
    min-width: 300px;
    flex: 0 0 300px;
    scroll-snap-align: start;
}


/* Navigation Buttons */
.cases-actions {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
}

.cases-nav {
    display: flex;
    gap: 1rem;
}

.case-prev, .case-next {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--text-color);
}

.case-prev:hover, .case-next:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: white;
}

@media (max-width: 768px) {
    .cases-carousel .caso-card {
        min-width: 260px;
        flex: 0 0 260px;
    }
    
    .cases-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
}

/* 
---------------------------------------------
   FLOATING CTA BUTTON
---------------------------------------------
*/
.floating-cta-btn {
    position: fixed;
    right: 30px;
    bottom: 30px;
    top: auto;
    transform: none;
    background-color: var(--gold-dark);
    color: #fff;
    padding: 12px 20px;
    z-index: 1000;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 50px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.floating-cta-btn svg {
    width: 18px;
    height: 18px;
}

.floating-cta-btn:hover {
    background-color: var(--gold);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    padding-right: 20px;
}

@media (max-width: 768px) {
    .floating-cta-btn {
        right: 16px;
        bottom: 16px;
        padding: 14px;
        border-radius: 50%;
        width: 52px;
        height: 52px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .floating-cta-btn span {
        display: none;
    }

    .floating-cta-btn svg {
        width: 22px;
        height: 22px;
    }
}

/*
---------------------------------------------
   FLOATING WHATSAPP BUTTON
---------------------------------------------
*/
.floating-whatsapp-btn {
    position: fixed;
    right: 30px;
    bottom: 100px;
    top: auto;
    transform: none;
    background-color: #25D366;
    color: #fff;
    padding: 12px 20px;
    z-index: 1000;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 50px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.floating-whatsapp-btn svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.floating-whatsapp-btn:hover {
    background-color: #1ebe5d;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

@media (max-width: 768px) {
    .floating-whatsapp-btn {
        right: 16px;
        bottom: 80px;
        padding: 14px;
        border-radius: 50%;
        width: 52px;
        height: 52px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .floating-whatsapp-btn span {
        display: none;
    }

    .floating-whatsapp-btn svg {
        width: 26px;
        height: 26px;
    }
}

/* Tratamento Single Overrides */
.single-tratamento .medico-hero-photo img {
    aspect-ratio: 4/3; /* Somewhat squared/landscape */
    object-position: center;
}

/* Caso Single Overrides */
.caso-hero .medico-hero-content {
    grid-template-columns: 500px 1fr !important;
}

@media (max-width: 991px) {
    .caso-hero .medico-hero-content {
        grid-template-columns: 1fr !important;
    }
}

.caso-hero-photo {
    position: relative;
    z-index: 1;
}

.caso-hero-photo img {
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px rgba(0,0,0,0.12);
    border: 3px solid white;
}

.caso-hero-photo::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: 15px;
    bottom: 15px;
    border: 2px solid var(--gold);
    border-radius: 1.5rem;
    z-index: -1;
}

.caso-result-label {
    position: absolute;
    bottom: 20px;
    right: -20px;
    background: var(--gold-dark);
    color: white;
    padding: 0.5rem 1.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 2;
}

.caso-before-after-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    margin-top: 1rem;
}

.caso-image-wrapper {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.caso-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.image-label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(255,255,255,0.9);
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--gold-dark);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

@media (max-width: 600px) {
    .caso-before-after-grid {
        grid-template-columns: 1fr;
    }
}

/* Tratamento Card Styled Overrides */
.tratamento-card-styled figure {
    /* reuse doctor card styles */
}
.tratamento-card-styled img {
    /* Ensure aspect ratio works for treatments which might be landscape */
    aspect-ratio: 16/9 !important; 
    height: auto;
    object-fit: cover;
}

/* Ensure landscape aspect ratio for cards in Especialidade Archive */
.tax-especialidade .tratamento-card-styled img,
.tax-especialidade .doctor-card img,
.tax-especialidade .caso-image img,
.tax-especialidade .post-thumbnail img {
    aspect-ratio: 16/9 !important;
    height: auto !important;
    object-fit: cover;
}




/* 
---------------------------------------------
   NEW SECTIONS STYLES
---------------------------------------------
*/

/* Hero Video */
.hero-video {
    position: relative;
    width: 100%;
    /* Keep aspect ratio similar to existing or standard video */
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 14px 36px rgba(0,0,0,0.12);
}

.hero-video video {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Clinic Section Horizontal Values */
.clinic-grid-full {
    max-width: 100%;
}

.clinic-values.horizontal-values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.clinic-values.horizontal-values .value-item {
    flex-direction: column;
    text-align: center;
    align-items: center;
}

.clinic-values.horizontal-values .value-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
    background: var(--gold-light); 
    color: var(--gold-dark);
}

.clinic-values.horizontal-values .value-text h3 {
    margin-bottom: 0.75rem;
}

/* Responsive adjustment for clinic values */
@media (max-width: 768px) {
    .clinic-values.horizontal-values {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

/* FMR na Imprensa Section */
.press-grid-dynamic {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

.press-item-dynamic {
    width: 100%;
    max-width: 400px; /* Wider for landscape */
    flex: 0 0 calc(25% - 1.5rem);
}

@media (max-width: 1200px) {
    .press-item-dynamic {
        flex: 0 0 calc(50% - 1rem);
    }
}

@media (max-width: 576px) {
    .press-item-dynamic {
        flex: 0 0 100%;
    }
}

.press-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: all 0.4s ease;
    height: 100%;
}

.press-link:hover {
    transform: translateY(-5px);
}

.press-image {
    position: relative;
    aspect-ratio: 16/9; /* Landscape */
    overflow: hidden;
    margin-bottom: 1.25rem;
    background: #f0f0f0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: box-shadow 0.4s ease;
    border-radius: 4px; /* Slightly rounded for landscape cards */
}

.press-link:hover .press-image {
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.press-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.4s ease;
    filter: grayscale(100%) contrast(1.1);
}

.press-link:hover .press-image img {
    transform: scale(1.08);
    filter: grayscale(0%) contrast(1);
}

.press-info {
    text-align: center;
    padding: 0 0.5rem;
}

.press-title {
    font-size: 1.1rem;
    font-family: 'Playfair Display', serif;
    margin: 0 0 0.5rem;
    color: var(--text-color);
    line-height: 1.3;
    font-weight: 500;
}

.press-link:hover .press-title {
    color: var(--gold-dark);
}

.press-type {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--muted-text);
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.press-link:hover .press-type {
    color: var(--gold);
}

.view-press-link {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    color: var(--gold);
    border-bottom: 1px solid transparent; /* Cleaner than full border */
    transition: border-color 0.3s;
    display: inline-block;
}

.press-link:hover .view-press-link {
    border-bottom-color: var(--gold);
}

.press-image-placeholder {
    aspect-ratio: 16/9; /* Match landscape */
    background: #fafafa;
    border: 1px dashed var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--muted-text);
    font-size: 2rem;
    font-family: 'Playfair Display', serif;
}


.press-section {
    background-color: #fff;
    padding: 6rem 0;
    border-top: 1px solid var(--border-color);
}

.press-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    padding: 0 1rem;
}

.press-item {
    opacity: 0.6;
    transition: opacity 0.3s ease, transform 0.3s ease;
    filter: grayscale(100%);
}

.press-item:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: translateY(-3px);
}

.press-item img {
    max-height: 50px;
    width: auto;
    object-fit: contain;
}

/* 
---------------------------------------------
   FIGURA PÚBLICA SINGLE PAGE STYLES - REDESIGN "PREMIUM"
---------------------------------------------
*/

/* Figura Hero Section */
.figura-hero {
    position: relative;
    padding: 6rem 0;
    overflow: hidden;
    min-height: 600px;
    background-color: #FAF9F6; /* Off-white Paper Color */
}

/* Container flex for overlapping look option or cleaner split */
.figura-hero-content {
    display: flex !important;
    gap: 4rem !important;
    align-items: center;
    justify-content: space-between;
}

/* Left Column: Info */
.figura-hero-info {
    flex: 1;
    z-index: 2;
}

/* Meta / Category Tag */
.figura-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gold-dark);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.meta-sep { opacity: 0.5; color: var(--border-color); }

/* Huge Title */
.figura-hero-name {
    font-size: 4rem; /* Massive size */
    font-family: 'Playfair Display', Georgia, serif; /* Make sure serif is used */
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    font-weight: 400;
}

/* Related Treatments Tags */
.figura-treatments-tags-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.figura-treatments-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    border-left: 2px solid var(--gold);
    padding-left: 1rem;
}

.tags-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted-text);
    font-weight: 600;
    min-width: 120px; /* Optional alignment */
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.treatment-tag {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    background: #fff;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s;
    border-radius: 2px;
}

.treatment-tag:hover {
    background: var(--gold-light);
    color: var(--gold-dark);
    border-color: var(--gold-light);
}

.specialty-tag-link {
    background: var(--gold-light);
    border-color: transparent;
    color: var(--gold-dark);
}

.specialty-tag-link:hover {
    background: var(--gold);
    color: #fff;
}

/* Lead text (Short Bio) */
.figura-lead p {
    font-size: 1.25rem;
    color: var(--muted-text);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 90%;
    font-weight: 300;
}

/* Buttons */
.figura-hero-actions .btn-primary {
    background: var(--text-color);
    color: #fff;
    border-color: var(--text-color);
    padding: 1rem 2rem;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 600;
    border-radius: 0; /* Square buttons are more "editorial" often, or slightly rounded */
    border-radius: 4px;
}

.figura-hero-actions .btn-primary:hover {
    background: var(--gold-dark);
    border-color: var(--gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Right Column: Photo */
.figura-hero-photo-wrapper {
    flex: 0 0 45%; 
    position: relative;
    max-width: 500px; /* Limit width */
}

.figura-hero-photo {
    position: relative;
    z-index: 1;
}

/* Image Styling - Clean & Modern */
.figura-hero-photo img {
    width: 100%;
    height: auto;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 4px; 
    box-shadow: 20px 20px 0px rgba(222, 212, 195, 0.4); /* Offset solid shadow */
    transition: transform 0.5s ease;
}
.figura-hero-photo-land img {
    aspect-ratio: unset !important;
}

.figura-hero-photo:hover img {
    transform: translate(-5px, -5px);
    box-shadow: 25px 25px 0px rgba(139, 94, 60, 0.2);
}

/* Responsive Hero */
@media (max-width: 992px) {
    .figura-hero-content {
        flex-direction: column-reverse; /* Image on top on mobile? or Bottom? Let's do Standard: Image Top */
        flex-direction: column; 
        text-align: center;
        gap: 2rem !important;
    }

    .figura-meta { justify-content: center; }
    .figura-hero-name { font-size: 2.75rem; }
    .figura-lead p { margin: 0 auto 2rem; }
    .figura-hero-photo-wrapper { width: 100%; max-width: 400px; }
    .figura-hero-photo img { box-shadow: 10px 10px 0px rgba(222, 212, 195, 0.4); }
}

/* Profile Section - Minimalist */
.figura-profile {
    background: #fff;
    padding: 5rem 0;
}

.figura-profile-grid {
    display: grid !important;
    grid-template-columns: 1fr !important; /* Wider content */
    gap: 4rem;
}

.figura-profile-content h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-color);
    position: relative;
    display: inline-block;
}

.figura-profile-content h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--gold);
}

.figura-bio-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4a4a4a;
}

.figura-bio-text p { margin-bottom: 1.5rem; }

/* Sidebar - Clean Cards */
.figura-profile-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.figura-info-card {
    background: #fff;
    border: 1px solid #eee;
    padding: 2rem;
    border-radius: 4px;
}

.figura-info-card .card-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted-text);
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.info-row .label { color: var(--muted-text); }
.info-row .value { color: var(--text-color); font-weight: 600; text-align: right; }

.info-action { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid #eee; }

.link-arrow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--gold-dark);
    font-weight: 600;
    transition: all 0.3s;
}

.link-arrow:hover { color: var(--text-color); }

/* CTA Card in Sidebar */
.figura-cta-card {
    background: var(--gold-dark); /* Solid dark color */
    color: #fff;
    padding: 2.5rem 2rem;
    text-align: center;
    border-radius: 4px;
}

.figura-cta-card h3 {
    color: #fff;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.figura-cta-card p {
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.btn-white {
    background: #fff;
    color: var(--text-color);
    padding: 0.8rem 1.5rem;
    font-weight: 600;
    display: inline-block;
    border-radius: 35px;
    transition: all 0.3s;
}

.btn-white:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
}

/* Gallery - Masonry Feel (Square grid but tight) */
.figura-gallery {
    padding: 6rem 0;
    background: #fff; /* Keep white */
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 4px;
    position: relative;
    box-shadow: none; /* Flat style */
}

.gallery-item img {
    transition: transform 0.7s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item:hover img { transform: scale(1.05); }

/* Related - Clean (Premium) */
.figura-related {
    background: #fbfbfb;
    padding: 6rem 0;
    border-top: 1px solid rgba(0,0,0,0.03);
}

.figura-related .section-label {
    text-align: center;
    color: var(--gold);
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    display: block;
}

.figura-related h2 {
    text-align: center;
    font-size: 2.25rem;
    font-family: 'Playfair Display', Georgia, serif;
    margin-bottom: 4rem;
    color: var(--text-color);
    font-weight: 400;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 3rem 2rem;
}

.related-card {
    background: transparent;
    border: none;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s ease;
}

.related-card:hover {
    transform: translateY(-5px);
}

.related-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
    background: #f0f0f0;
    margin-bottom: 1.5rem;
}

.related-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: grayscale(10%);
}

.related-card:hover .related-card-image img {
    transform: scale(1.08);
    filter: grayscale(0%);
}

.related-card-content {
    text-align: center;
    padding: 0 0.5rem;
}

.related-card h3 {
    margin: 0 0 0.25rem;
    font-size: 1.5rem;
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 400;
    line-height: 1.2;
}

.related-card h3 a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

.related-card:hover h3 a {
    color: var(--gold-dark);
}

.related-profession {
    color: var(--gold);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 600;
    margin-bottom: 1rem;
    display: block;
}

.related-bio {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 1.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-card .btn-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    color: var(--text-color);
    text-decoration: none;
    position: relative;
    padding-bottom: 2px;
}

.related-card .btn-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.related-card:hover .btn-link {
    color: var(--gold-dark);
}

.related-card:hover .btn-link::after {
    transform: scaleX(1);
    transform-origin: left;
}


/* Lightbox Styles */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-img {
    max-width: 100%;
    max-height: 90vh;
    display: block;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    background: #000;
    transition: opacity 0.3s;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
    transition: color 0.3s;
    z-index: 10;
}

.lightbox-close:hover {
    color: var(--gold);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 1.5rem;
    padding: 1rem 0.8rem;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
    z-index: 5;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--gold);
}

.lightbox-prev {
    left: -60px;
}

.lightbox-next {
    right: -60px;
}

@media (max-width: 768px) {
    .lightbox-prev { left: 10px; background: rgba(0,0,0,0.5); border-radius: 50%; width: 40px; height: 40px; padding: 0; display: flex; align-items: center; justify-content: center; }
    .lightbox-next { right: 10px; background: rgba(0,0,0,0.5); border-radius: 50%; width: 40px; height: 40px; padding: 0; display: flex; align-items: center; justify-content: center; }
    .lightbox-close { top: 10px; right: 10px; background: rgba(0,0,0,0.5); width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
}

/* Utilities */
.text-center {
    text-align: center;
}

/* Tratamento single layout adjustments */
.single-tratamento .medico-hero { 
    position: relative; 
    padding: 3rem 0 2rem;
    background-color: var(--bg-color); 
}

.single-tratamento .medico-hero-content { 
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 3rem !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
}

.single-tratamento .medico-hero-info { 
    order: 1 !important;
    flex: none !important;
    width: 100% !important;
    min-width: auto !important;
    padding-top: 0 !important;
    grid-column: 1 / 2 !important;
}

.single-tratamento .medico-hero-photo {
    order: 2 !important;
    flex: none !important;
    width: 100% !important;
    max-width: none !important;
    grid-column: 2 / 3 !important;
}

.single-tratamento .medico-hero-photo img { 
    display: block; 
    width: 100%; 
    height: auto; 
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.single-tratamento .medico-hero-photo::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 1px solid var(--gold);
    border-radius: 24px;
    z-index: 1;
    opacity: 0.5;
}

.single-tratamento .medico-hero-photo .resultado-badge {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: #1a1a1a;
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Default medico layout (doctors) */
.medico-hero { 
    position: relative; 
    padding: 3rem 0 2rem;
    background-color: var(--bg-color); 
}

.medico-hero .medico-hero-content { 
    display: flex; 
    gap: 4rem; 
    align-items: flex-start;
    flex-wrap: wrap; 
}

.medico-hero-photo { 
    flex: 0 0 45%; 
    position: relative; 
    z-index: 1;
    margin-right: 0;
}

.medico-hero-photo img { 
    display: block; 
    width: 100%; 
    height: auto; 
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    position: relative;
    z-index: 2;
}

.medico-hero-photo::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 1px solid var(--gold);
    border-radius: 24px;
    z-index: 1;
    opacity: 0.5;
}

.medico-hero-info { 
    flex: 1; 
    min-width: 300px; 
    padding-top: 0.5rem;
}


.single-tratamento .medico-hero-photo img { 
    max-width: unset !important;
}

/* Breadcrumbs */
.medico-breadcrumb {
    font-size: 0.8rem;
    color: var(--muted-text);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}
.medico-breadcrumb a { color: inherit; text-decoration: none; }
.medico-breadcrumb .separator { margin: 0 8px; color: #ccc; }

/* Title */
.medico-hero-name {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 3.5rem;
    font-weight: 400;
    color: var(--text-color);
    margin: 0 0 1.5rem;
    line-height: 1.1;
}

/* Pills / Tags */
.medico-hero-specialties {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.specialty-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 1.25rem;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--muted-text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

/* Info List */
.medico-info-list-container { padding: 0.5rem 0; }
.info-list { list-style: none; margin: 0; padding: 0; }
.info-item { 
    display: flex; 
    gap: 12px; 
    align-items: center; 
    padding: 6px 0; 
    border-bottom: none; 
}
.info-icon { 
    width: 20px; 
    height: 20px; 
    color: var(--text-color); 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    flex-shrink: 0; 
}
.info-icon svg { 
    width: 18px; 
    height: 18px; 
    stroke: var(--text-color); 
    stroke-width: 1.5px;
}
.info-content { 
    font-size: 0.95rem; 
    color: var(--muted-text); 
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
}
.info-content strong { 
    color: var(--text-color); 
    font-weight: 700; 
}
.info-value { color: var(--muted-text); }

/* Button */
.card-cta { 
    margin-top: 2rem; 
    display: flex; 
    gap: 0.75rem; 
    align-items: center; 
    flex-wrap: wrap;
}
.card-cta .btn { 
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #7a6046; /* Bronze/Brown */
    color: #fff; 
    border: none;
    padding: 0.9rem 2rem; 
    border-radius: 50px; 
    font-weight: 500; 
    font-size: 0.95rem; 
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(122, 96, 70, 0.25);
}
.card-cta .btn:hover { 
    background: #5e4b35; 
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(122, 96, 70, 0.35);
}

/* Content Full Width */
.single-tratamento .medico-about-grid { display: block !important; } 
.single-tratamento .medico-about.section { padding-top: 2rem; } /* Reduce gap between Hero and Details */
.medico-about-content.medico-fullwidth { width: 100%; max-width: 100%; }

.medico-bio-text { 
    font-size: 1.05rem; 
    line-height: 1.8; 
    color: var(--muted-text); 
    max-width: 1000px; /* Better readability */
}

/* Section Label & Headers */
.section-label {
    display: inline-block;
    padding: 6px 14px;
    background: #e8e4dc;
    color: var(--text-color);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}
.medico-about-content h2 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 2.25rem;
    margin-bottom: 2rem;
    color: var(--text-color);
}

/* Call to Action Card - Harmonious Design */
.medico-cta-card { 
    margin-top: 4rem; 
    padding: 2.5rem 3rem; 
    background: #fff; 
    border-radius: 12px; 
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    
    /* Flex Layout */
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.medico-cta-card h3 {
    font-size: 1.5rem;
    margin: 0 0 0.5rem;
    color: var(--text-color);
}
.medico-cta-card p {
    margin: 0;
    color: var(--muted-text);
    font-size: 0.95rem;
}
.medico-cta-card .btn {
    padding: 0.8rem 2.5rem;
    font-size: 0.9rem;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .medico-cta-card {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }
}

@media (max-width: 991px) {
    .medico-hero .medico-hero-content { flex-direction: column; gap: 2rem; align-items: center; text-align: center; }
    .medico-hero-photo { flex: 0 0 auto; max-width: 280px; margin: 0 auto; }
    .medico-hero-photo::before { display: none; }
    .medico-hero-info { min-width: 0; width: 100%; }
    .medico-hero-name { font-size: 2.25rem; }
    .medico-hero-specialties { justify-content: center; }
    .medico-hero-actions { justify-content: center; }
    .medico-breadcrumb { justify-content: center; }
    
    /* Single Tratamento mobile layout */
    .single-tratamento .medico-hero-content { 
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    .single-tratamento .medico-hero-info { 
        order: 1 !important; 
        grid-column: 1 / -1 !important;
    }
    .single-tratamento .medico-hero-photo { 
        order: 2 !important; 
        grid-column: 1 / -1 !important;
        max-width: 450px !important;
        margin: 0 auto;
    }
    .single-tratamento .medico-hero-photo::before {
        display: none;
    }
    .single-tratamento .medico-hero-photo img {
        border-radius: 16px;
    }

    /* Breadcrumb compact */
    .single-tratamento .medico-breadcrumb {
        font-size: 0.7rem;
        gap: 0.3rem;
        margin-bottom: 1rem;
    }
    .single-tratamento .medico-breadcrumb .breadcrumb-term {
        display: none;
    }

    /* Title */
    .single-tratamento .medico-hero-name {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    /* Tags */
    .single-tratamento .medico-hero-specialties {
        gap: 0.4rem;
        margin-bottom: 1.25rem;
    }

    /* Info list */
    .single-tratamento .info-item {
        padding: 8px 0;
        border-bottom: 1px solid var(--border-color);
    }
    .single-tratamento .info-item:last-child,
    .single-tratamento .info-item.last {
        border-bottom: none;
    }
    .single-tratamento .info-content {
        font-size: 0.9rem;
    }

    /* CTA buttons */
    .single-tratamento .card-cta {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        margin-top: 1.5rem;
    }
    .single-tratamento .card-cta .btn {
        justify-content: center;
        width: 100%;
        text-align: center;
        padding: 0.85rem 1.5rem;
        font-size: 0.9rem;
    }

    /* About section */
    .single-tratamento .medico-about.section {
        padding-top: 1.5rem;
    }

    /* Cases section in tratamento */
    .single-tratamento .cases-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .single-tratamento .cases-info {
        position: static;
        text-align: center;
    }
    .single-tratamento .cases-actions {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    /* Single Tratamento extra-small */
    .single-tratamento .medico-hero {
        padding: 1.5rem 0 1rem;
    }
    .single-tratamento .medico-hero-content {
        gap: 1.5rem !important;
    }
    .single-tratamento .medico-hero-name {
        font-size: 1.65rem;
        line-height: 1.2;
    }
    .single-tratamento .medico-hero-photo {
        max-width: 100% !important;
    }
    .single-tratamento .medico-hero-photo .resultado-badge {
        font-size: 0.65rem;
        padding: 6px 12px;
        bottom: 10px;
        right: 10px;
    }
    .single-tratamento .specialty-tag {
        font-size: 0.65rem;
        padding: 0.3rem 0.6rem;
    }
    .single-tratamento .info-icon {
        display: none;
    }
    .single-tratamento .info-content {
        font-size: 0.85rem;
    }
    .single-tratamento .card-cta .btn {
        font-size: 0.85rem;
        padding: 0.8rem 1.25rem;
    }
    .single-tratamento .section-label {
        font-size: 0.65rem;
    }
    .single-tratamento .medico-about-content h2 {
        font-size: 1.5rem;
    }
    .single-tratamento .medico-bio-text {
        font-size: 0.95rem;
        line-height: 1.7;
    }
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    cursor: pointer;
}

.modal-content {
    position: relative;
    z-index: 10000;
    background-color: #000;
    border-radius: 8px;
    max-width: 90vw;
    max-height: 90vh;
    width: 100%;
    overflow: auto;
}

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    color: white;
    font-size: 32px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    z-index: 10001;
    transition: opacity 0.3s;
}

.modal-close:hover {
    opacity: 0.7;
}

.modal-body {
    padding: 0;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

@media (max-width: 768px) {
    .modal-content {
        max-width: 95vw;
        max-height: 85vh;
    }
    
    .modal-close {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 28px;
    }
}



/* 
=============================================
   COMPREHENSIVE MOBILE OPTIMIZATION
=============================================
*/

/* --- Tablet (max-width: 991px) --- */
@media (max-width: 991px) {
    /* General sections */
    .section {
        padding: 3rem 0;
    }

    .container {
        padding: 0 1.25rem;
    }

    /* Header CTA button */
    .header-inner > .btn.btn-cta {
        display: none;
    }

    /* Clinic section grid */
    .clinic-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .clinic-content h2 {
        font-size: 2.25rem;
    }

    .clinic-subtitle {
        font-size: 1.35rem;
    }

    /* Awards */
    .awards-bar {
        gap: 1.5rem;
    }

    .awards-bar img {
        height: 60px;
    }

    /* Press grid */
    .press-grid-dynamic {
        gap: 1.5rem;
    }

    .press-item-dynamic {
        flex: 0 0 calc(50% - 0.75rem);
    }

    /* Contact form */
    .contact-form-wrapper {
        padding: 1.5rem;
    }

    /* Page content */
    .page-wrapper {
        padding: 2rem 0;
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    /* Figura pública */
    .figura-hero {
        padding: 3rem 0;
        min-height: auto;
    }

    .figura-hero-name {
        font-size: 2.5rem;
    }

    .figura-lead p {
        font-size: 1.1rem;
    }

    /* Reduce scroll-margin for smaller header */
    section[id] {
        scroll-margin-top: 80px;
    }
}

/* --- Phone landscape / small tablet (max-width: 768px) --- */
@media (max-width: 768px) {
    /* General sections */
    .section {
        padding: 2.5rem 0;
    }

    /* All section headings */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }

    /* Header padding */
    .header-content, .header-inner {
        padding: 1rem 0;
    }

    /* Logo */
    .custom-logo {
        max-width: 150px;
    }

    /* Buttons - minimum touch target */
    .btn {
        padding: 0.7rem 1.25rem;
        font-size: 0.85rem;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    .btn-small {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        min-height: 40px;
    }

    /* Cards */
    .card-image img, .post-thumbnail img,
    .caso-image img, .tratamento-image img {
        height: 180px;
    }

    .card-body, .post-content,
    .caso-content, .tratamento-content {
        padding: 1.15rem;
    }

    .card-body h3, .post-title,
    .caso-title, .tratamento-title {
        font-size: 1.05rem;
    }

    /* Cases section */
    .cases-info h2 {
        font-size: 2rem;
    }

    .cases-subtitle {
        font-size: 1.1rem;
    }

    /* Location cards */
    .location-card {
        padding: 1.5rem;
    }

    .location-card h3 {
        font-size: 1.35rem;
    }

    /* Pill cards */
    .pill-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 2.5rem;
    }

    .pill-card {
        padding: 1.5rem;
    }

    /* Clinic images */
    .clinic-image-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    /* NOS Media single */
    .nos-media-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .nos-media-gallery-grid .gallery-item img {
        height: 180px;
    }

    /* Figura pública */
    .figura-hero {
        padding: 2.5rem 0;
    }

    .figura-hero-name {
        font-size: 2rem;
    }

    .figura-lead p {
        font-size: 1rem;
        max-width: 100%;
    }

    .figura-gallery {
        padding: 3rem 0;
    }

    .figura-related {
        padding: 3rem 0;
    }

    .figura-related h2 {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }

    /* Related grid */
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem 1rem;
    }

    .related-card h3 {
        font-size: 1.15rem;
    }

    /* Médico single */
    .medico-hero {
        padding: 2rem 0 3rem;
    }

    .medico-hero-name {
        font-size: 2rem;
    }

    .medico-about-content h2 {
        font-size: 1.75rem;
    }

    .medico-bio-text {
        font-size: 1rem;
    }

    /* CTA buttons */
    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-buttons .btn {
        text-align: center;
        justify-content: center;
    }

    /* Pagination */
    .pagination .page-numbers {
        min-width: 36px;
        height: 36px;
        font-size: 0.8rem;
    }

    /* Caso before-after */
    .caso-before-after-grid {
        gap: 1rem;
    }

    /* Press section */
    .press-section {
        padding: 3rem 0;
    }

    .press-grid {
        gap: 1.5rem;
    }

    .press-item img {
        max-height: 40px;
    }
}

/* --- Small phones (max-width: 480px) --- */
@media (max-width: 480px) {
    .section {
        padding: 2rem 0;
    }

    .container {
        padding: 0 1rem;
    }

    h1 { font-size: 1.65rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.1rem; }

    /* Header */
    .header-content, .header-inner {
        padding: 0.75rem 0;
    }

    .custom-logo {
        max-width: 120px;
    }

    /* Cards */
    .card-image img, .post-thumbnail img,
    .caso-image img, .tratamento-image img {
        height: 160px;
    }

    .card-body, .post-content,
    .caso-content, .tratamento-content {
        padding: 1rem;
    }

    /* Cases section */
    .cases-info h2 {
        font-size: 1.65rem;
    }

    /* Treatment cards grid */
    .treatment-category-card {
        height: 280px;
    }

    .category-content h3 {
        font-size: 1.5rem;
    }

    /* Contact section */
    .contact-form-wrapper {
        padding: 1.25rem;
    }

    .wpcf7 input[type="text"],
    .wpcf7 input[type="email"],
    .wpcf7 input[type="tel"],
    .wpcf7 textarea {
        padding: 0.85rem;
        font-size: 1rem; /* Prevents iOS zoom on focus */
    }

    .wpcf7 input[type="submit"] {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
    }

    /* Location cards */
    .location-card {
        padding: 1.25rem;
    }

    .location-card h3 {
        font-size: 1.15rem;
    }

    /* Press */
    .press-item-dynamic {
        flex: 0 0 100%;
    }

    .press-title {
        font-size: 0.95rem;
    }

    /* Médico */
    .medico-hero-name {
        font-size: 1.75rem;
    }

    .medico-hero-photo img {
        max-width: 220px;
    }

    .specialty-tag {
        font-size: 0.7rem;
        padding: 0.3rem 0.7rem;
    }

    /* Figura pública */
    .figura-hero-name {
        font-size: 1.65rem;
    }

    .figura-hero-photo img {
        box-shadow: 8px 8px 0px rgba(222, 212, 195, 0.4);
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    /* Related grid */
    .related-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Clinic gallery */
    .clinic-gallery img {
        height: 200px;
    }

    /* NOS Media gallery */
    .nos-media-gallery-grid {
        grid-template-columns: 1fr;
    }

    /* Awards */
    .awards-bar {
        gap: 1rem;
    }

    .awards-bar img {
        height: 45px;
    }

    /* Pagination compact */
    .pagination .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* --- Improved touch targets for all interactive elements --- */
@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects that don't work well on touch */
    .case-card:hover, .treatment-card:hover, .news-card:hover, .post-card:hover,
    .caso-card:hover, .tratamento-card:hover {
        transform: none;
    }

    .nos-media-card-item:hover {
        transform: none;
    }

    .related-card:hover {
        transform: none;
    }

    /* Ensure links and buttons have adequate touch size */
    nav a, .primary-menu-container a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    .social-links a {
        width: 44px;
        height: 44px;
    }

    .filter-link {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
}

/* --- Landscape orientation fix --- */
@media (max-height: 500px) and (orientation: landscape) {
    .hero, .hero-section {
        min-height: 100vh;
        padding: 1.5rem 0;
    }

    .hero h1, .hero-title {
        font-size: 1.75rem;
    }

    .hero-awards img {
        height: 40px;
    }

    /* Ensure mobile menu is scrollable in landscape */
    .primary-menu-container {
        padding-top: 60px;
    }
}

/*---------------------------------------------
    ELEMENTOR CSS OLD PAGES - TO BE DEPRECATED
---------------------------------------------*/
/* =========================
   SEÇÕES E ESTRUTURA
========================= */

.elementor-section {
  padding: 0px;
}

.elementor-container {
  max-width: 1140px;
  margin: 0 auto;
}

.elementor-column {
  padding: 10px;
}

.elementor-widget-wrap {
  display: flex;
  flex-direction: column;
  gap: 20px;
}


.elementor-element.e-flex.e-con-boxed.e-con.e-parent.e-lazyloaded {
  display: none;
}

/* =========================
   TÍTULOS
========================= */

.elementor-widget-text-editor h2 {
  font-size: 32px;
  font-weight: 700;
  color: #2c2c2c;
  margin-bottom: 10px;
}

.elementor-widget-text-editor h3 {
  font-size: 26px;
  font-weight: 600;
  color: #2c2c2c;
  margin-bottom: 10px;
}

.elementor-widget-text-editor h4 {
  font-size: 20px;
  font-weight: 500;
  color: #444;
  margin-bottom: 10px;
}

/* =========================
   TEXTO
========================= */

.elementor-widget-text-editor p {
  font-size: 16px;
  line-height: 1.7;
  color: #555;
  margin-bottom: 15px;
}

/* =========================
   LISTAS
========================= */

.elementor-widget-text-editor ul {
  padding-left: 20px;
  margin-top: 10px;
}

.elementor-widget-text-editor ul li {
  font-size: 16px;
  line-height: 1.6;
  color: #555;
  margin-bottom: 8px;
  list-style: disc;
}

/* =========================
   VÍDEOS
========================= */

.elementor-widget-video {
  margin-top: 20px;
}

.elementor-widget-video .elementor-wrapper {
  border-radius: 12px;
  overflow: hidden;
}

/* =========================
   IMAGENS
========================= */

.elementor-widget-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}

/* =========================
   CONTAINERS FLEX / GRID
========================= */

.e-con {
  padding: 40px 20px;
}

.e-con-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.e-grid .e-con-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

/* =========================
   ANCORAS / IDs (scroll suave)
========================= */

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 100px;
}

/* =========================
   RESPONSIVO
========================= */

@media (max-width: 768px) {


  .elementor-widget-text-editor h2 {
    font-size: 26px;
  }

  .elementor-widget-text-editor h3 {
    font-size: 22px;
  }

  .elementor-widget-text-editor h4 {
    font-size: 18px;
  }

  .elementor-widget-text-editor p,
  .elementor-widget-text-editor ul li {
    font-size: 15px;
  }
}

/* Page Intro */
.page-intro {
    padding-top: 2rem;
    padding-bottom: 2rem;
}
.page-intro .breadcrumb {
    margin-bottom: 1rem;
}
.page-intro .entry-title {
    font-size: 2.5rem;
    color: var(--text-color);
}
@media (max-width: 768px) {
    .page-intro .entry-title {
        font-size: 2rem;
    }
}

/* Tratamentos Masculinos Template Styles */
.tm-header {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
    margin-top: 2rem;
}

.tm-title {
    color: #78543a;
    padding: 0.8rem 4rem;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    border-radius: 4px;
    display: inline-block;
}

.tm-content {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--muted-text);
    font-size: 1.1rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.tm-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.tm-card {
    text-align: center;
}

.tm-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.tm-card-image {
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.tm-card-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.tm-card-link:hover .tm-card-image img {
    transform: scale(1.02);
}

.tm-card-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .tm-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .tm-title {
        font-size: 1.8rem;
        padding: 0.5rem 2rem;
    }
}

/* =====================================================
   BLOG SINGLE POST — Redesign 2026
   ===================================================== */

/* ── Hero ──────────────────────────────────────────── */
.article-hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.article-hero.has-thumb {
    min-height: 580px;
}

.article-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.article-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.article-hero-bg-plain {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--gold-dark) 0%, var(--text-color) 100%);
    z-index: 1;
}

.article-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(18, 13, 8, 0.85) 0%,
        rgba(18, 13, 8, 0.50) 40%,
        rgba(18, 13, 8, 0.18) 70%,
        rgba(18, 13, 8, 0.04) 100%
    );
    z-index: 2;
}

.article-hero .container {
    position: relative;
    z-index: 3;
    width: 100%;
    padding-top: 5rem;
    padding-bottom: 3.5rem;
}

.article-hero-content {
    max-width: 820px;
}

/* Breadcrumb (white on dark image) */
.article-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 500;
    margin-bottom: 1.25rem;
    color: rgba(255, 255, 255, 0.72);
    letter-spacing: 0.02em;
}

.article-breadcrumb a {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    transition: color 0.2s;
}

.article-breadcrumb a:hover {
    color: #fff;
}

.article-breadcrumb .sep {
    opacity: 0.45;
}

/* Category tags */
.article-hero-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.1rem;
}

.article-cat-tag {
    display: inline-block;
    padding: 0.28rem 0.9rem;
    background: var(--gold);
    color: #fff;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    transition: background 0.2s;
}

.article-cat-tag:hover {
    background: var(--gold-dark);
    color: #fff;
}

/* Title */
.article-hero-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(1.8rem, 3.5vw, 2.9rem);
    font-weight: 400;
    color: #fff;
    line-height: 1.22;
    margin-bottom: 1.25rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Meta (date / author) */
.article-hero-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.78);
}

.article-hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.article-hero-meta .dot {
    opacity: 0.45;
}

/* ── Article Body Layout ───────────────────────────── */
.article-body-wrap {
    background: var(--bg-color);
    padding: 3.5rem 0 5rem;
}

.article-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 3.5rem;
    align-items: start;
}

/* ── Main Content ──────────────────────────────────── */
.article-main {
    min-width: 0; /* prevent grid blowout */
    background: #fff;
    border-radius: 20px;
    padding: 2.75rem 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--border-color);
}

/* Lead / excerpt */
.article-lead {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-color);
    font-style: italic;
    border-left: 3px solid var(--gold);
    padding: 0.85rem 0 0.85rem 1.5rem;
    margin-bottom: 2.25rem;
    background: var(--gold-light);
    border-radius: 0 10px 10px 0;
}

/* Article prose typography */
.article-prose {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--text-color);
}

.article-prose p {
    margin-bottom: 1.5rem;
}

.article-prose h2 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.65rem;
    color: var(--gold-dark);
    margin: 2.75rem 0 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--border-color);
}

.article-prose h3 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.3rem;
    color: var(--text-color);
    margin: 2.25rem 0 0.75rem;
}

.article-prose h4 {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 1.75rem 0 0.5rem;
}

.article-prose img {
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    margin: 1.5rem 0;
}

.article-prose figure {
    margin: 2rem 0;
}

.article-prose figcaption {
    font-size: 0.85rem;
    color: var(--muted-text);
    text-align: center;
    margin-top: 0.5rem;
    font-style: italic;
}

.article-prose blockquote {
    background: var(--gold-light);
    border-left: 4px solid var(--gold);
    border-radius: 0 12px 12px 0;
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    font-style: italic;
    font-size: 1.1rem;
    color: var(--text-color);
}

.article-prose blockquote p {
    margin: 0;
}

.article-prose a {
    color: var(--gold-dark);
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: text-decoration-color 0.2s;
}

.article-prose a:hover {
    text-decoration-color: var(--gold);
}

/* Post Footer — tags + back link */
.article-post-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.article-tags-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted-text);
}

.article-tag-pill {
    display: inline-block;
    padding: 0.28rem 0.85rem;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    font-size: 0.75rem;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.2s;
}

.article-tag-pill:hover {
    border-color: var(--gold);
    color: var(--gold-dark);
    background: var(--gold-light);
}

.article-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gold-dark);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    transition: gap 0.2s, color 0.2s;
}

.article-back-btn:hover {
    color: var(--gold);
    gap: 0.75rem;
}

/* ── Sidebar ───────────────────────────────────────── */
.article-sidebar {
    position: sticky;
    top: 90px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.article-sidebar-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

/* Meta card */
.sidebar-meta-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 0;
}

.sidebar-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.88rem;
}

.sidebar-meta-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-meta-row:first-child {
    padding-top: 0;
}

.sidebar-meta-row dt {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted-text);
    font-weight: 500;
    white-space: nowrap;
    font-style: normal;
}

.sidebar-meta-row dt svg {
    flex-shrink: 0;
    color: var(--gold);
}

.sidebar-meta-row dd {
    color: var(--text-color);
    font-weight: 600;
    text-align: right;
    margin: 0;
}

.sidebar-meta-row dd a {
    color: var(--gold-dark);
    text-decoration: none;
}

.sidebar-meta-row dd a:hover {
    color: var(--gold);
}

/* CTA card */
.sidebar-cta-card {
    background: linear-gradient(145deg, var(--gold-dark) 0%, hsl(25, 40%, 28%) 100%);
    border-color: transparent;
    text-align: center;
    color: #fff;
    padding: 2.25rem 1.75rem;
}

.sidebar-cta-icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    color: #fff;
}

.sidebar-cta-eyebrow {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 0.4rem;
}

.sidebar-cta-card h3 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.25rem;
    color: #fff;
    margin-bottom: 0.75rem;
    font-weight: 400;
    line-height: 1.35;
}

.sidebar-cta-text {
    font-size: 0.87rem;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.65;
    margin-bottom: 1.5rem;
}

.sidebar-cta-btn {
    display: inline-block;
    background: #fff;
    color: var(--gold-dark);
    padding: 0.72rem 1.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: all 0.3s;
}

.sidebar-cta-btn:hover {
    background: var(--gold-light);
    color: var(--gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

/* Related posts card */
.sidebar-related-heading {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-color);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.sidebar-related-heading::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 18px;
    background: var(--gold);
    border-radius: 2px;
    flex-shrink: 0;
}

.sidebar-related-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.sidebar-related-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.sidebar-related-item::before {
    display: none;
}

.sidebar-related-thumb {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: 8px;
    overflow: hidden;
    display: block;
}

.sidebar-related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.sidebar-related-item:hover .sidebar-related-thumb img {
    transform: scale(1.06);
}

.sidebar-related-info {
    flex: 1;
    min-width: 0;
}

.sidebar-related-cat {
    display: block;
    font-size: 0.67rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold);
    margin-bottom: 0.3rem;
}

.sidebar-related-title {
    font-size: 0.87rem;
    line-height: 1.45;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

.sidebar-related-title:hover {
    color: var(--gold-dark);
}

/* ── Responsive ────────────────────────────────────── */
@media (max-width: 1100px) {
    .article-layout {
        grid-template-columns: 1fr 300px;
        gap: 2.5rem;
    }
}

@media (max-width: 840px) {
    .article-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .article-sidebar {
        position: static;
    }

    .article-hero {
        min-height: 400px;
    }

    .article-hero.has-thumb {
        min-height: 440px;
    }

    .article-hero .container {
        padding-top: 4rem;
        padding-bottom: 2.5rem;
    }

    .article-body-wrap {
        padding: 2rem 0 3.5rem;
    }

    .article-main {
        padding: 2rem 1.5rem;
    }

    .article-post-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .article-hero {
        min-height: 360px;
    }

    .article-hero-title {
        font-size: 1.55rem;
    }

    .article-main {
        padding: 1.5rem 1.25rem;
    }
}
