/* ==========================================================================
   DRA. MARIANA TERRA CABRAL - GASTROENTEROLOGIA E HEPATOLOGIA
   Design System & Core Stylesheet (Versão 3.2)
   Hero Carousel 3 Slides, Brand Logo Image & Infinite Testimonials Marquee
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400..700;1,400..700&family=Inter:wght@300;400;500;600;700&display=swap');

/* --- 1. DESIGN TOKENS & CSS VARIABLES --- */
:root {
    /* Brand Palette */
    --color-bg-dark: #051138;
    --color-bg-darker: #02081d;
    --color-bg-card: #091740;
    --color-bg-card-hover: #0d2054;
    --color-bg-glass: rgba(9, 23, 64, 0.75);
    --color-bg-glass-nav: rgba(5, 17, 56, 0.85);
    
    /* Off-White Light System */
    --color-bg-light: #f4f6fa;
    --color-bg-light-card: #ffffff;
    --color-text-dark: #051138;
    --color-text-dark-muted: #50627a;
    --color-border-light: rgba(5, 17, 56, 0.08);

    /* Accents */
    --color-brand-cyan: #3cb0c2;
    --color-brand-cyan-light: #5cd0e2;
    --color-brand-cyan-dark: #208796;
    --color-brand-cyan-glow: rgba(60, 176, 194, 0.35);
    --color-brand-cyan-dim: rgba(60, 176, 194, 0.12);
    
    --color-accent-gold: #d4af37;
    --color-whatsapp: #25d366;
    --color-whatsapp-hover: #20ba5a;

    --color-text-white: #ffffff;
    --color-text-light: #e6edf5;
    --color-text-muted: #9cb0c6;
    --color-text-dim: #6b829e;
    
    /* Borders & Outlines */
    --border-glass: 1px solid rgba(60, 176, 194, 0.22);
    --border-glass-strong: 1px solid rgba(60, 176, 194, 0.45);
    --border-subtle: 1px solid rgba(255, 255, 255, 0.08);
    
    /* Shadows */
    --shadow-card: 0 12px 36px rgba(0, 0, 0, 0.35);
    --shadow-card-hover: 0 16px 48px rgba(60, 176, 194, 0.2);
    --shadow-glow: 0 0 30px var(--color-brand-cyan-glow);
    
    /* Typography */
    --font-heading: 'EB Garamond', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Transitions & Radii */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    --transition-fast: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- 2. BASE RESETS & GLOBAL SETUP --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--color-bg-dark);
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

body.no-scroll {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

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

ul, ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
}

/* --- 3. TYPOGRAPHY SYSTEM --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-text-white);
    font-weight: 500;
    line-height: 1.25;
}

h1 {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 3.8vw, 3rem);
    letter-spacing: -0.01em;
}

h3 {
    font-size: clamp(1.35rem, 2.5vw, 1.85rem);
}

h4 {
    font-size: 1.25rem;
    font-weight: 600;
}

p {
    color: var(--color-text-muted);
    font-size: 1.05rem;
}

.text-gradient {
    background: linear-gradient(135deg, var(--color-text-white) 30%, var(--color-brand-cyan-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-cyan {
    color: var(--color-brand-cyan) !important;
}

.text-gold {
    color: var(--color-accent-gold) !important;
}

.serif-italic {
    font-style: italic;
    font-weight: 400;
}

/* --- 4. CONTAINER & LAYOUT UTILITIES --- */
.container {
    width: 100%;
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

.section {
    padding: 96px 0;
    position: relative;
}

.section-tight {
    padding: 60px 0;
}

.section-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 54px auto;
}

.section-header .section-tag {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-brand-cyan);
    background: var(--color-brand-cyan-dim);
    border: 1px solid rgba(60, 176, 194, 0.3);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    margin-bottom: 16px;
}

.section-header h2 {
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.1rem;
    line-height: 1.7;
}

/* --- 5. OFF-WHITE / LIGHT SECTIONS SYSTEM --- */
.section-light {
    background-color: var(--color-bg-light);
    color: var(--color-text-dark);
}

.section-light h1, 
.section-light h2, 
.section-light h3, 
.section-light h4 {
    color: var(--color-text-dark);
}

.section-light p {
    color: var(--color-text-dark-muted);
}

.section-light .section-header .section-tag {
    background: rgba(60, 176, 194, 0.15);
    border-color: rgba(60, 176, 194, 0.4);
    color: var(--color-brand-cyan-dark);
}

.section-light .glass-card,
.section-light .light-card {
    background: var(--color-bg-light-card);
    border: 1px solid var(--color-border-light);
    box-shadow: 0 10px 30px rgba(5, 17, 56, 0.05);
    color: var(--color-text-dark);
}

.section-light .glass-card::before {
    background: linear-gradient(90deg, transparent, var(--color-brand-cyan), transparent);
}

.section-light .glass-card:hover,
.section-light .light-card:hover {
    background: #ffffff;
    border-color: var(--color-brand-cyan);
    box-shadow: 0 16px 40px rgba(60, 176, 194, 0.16);
    transform: translateY(-5px);
}

.section-light .card-icon-box {
    background: rgba(60, 176, 194, 0.12);
    border-color: rgba(60, 176, 194, 0.3);
    color: var(--color-brand-cyan-dark);
}

.section-light .glass-card:hover .card-icon-box {
    background: var(--color-brand-cyan);
    color: #ffffff;
}

.section-light .faq-item {
    background: #ffffff;
    border: 1px solid var(--color-border-light);
    box-shadow: 0 4px 16px rgba(5, 17, 56, 0.04);
}

.section-light .faq-item.active {
    background: #ffffff;
    border-color: var(--color-brand-cyan);
    box-shadow: 0 12px 32px rgba(60, 176, 194, 0.14);
}

.section-light .faq-question h3 {
    color: var(--color-text-dark);
}

.section-light .faq-answer p {
    color: var(--color-text-dark-muted);
}

.section-light .institution-item {
    background: #ffffff !important;
    border: 1px solid rgba(5, 17, 56, 0.08) !important;
    box-shadow: 0 4px 16px rgba(5, 17, 56, 0.04) !important;
}

.section-light .institution-item:hover {
    background: #ffffff !important;
    border: 1px solid rgba(5, 17, 56, 0.12) !important;
    box-shadow: 0 6px 20px rgba(5, 17, 56, 0.07) !important;
}

.section-light .timeline-card {
    background: #ffffff;
    border: 1px solid var(--color-border-light);
    box-shadow: 0 8px 24px rgba(5, 17, 56, 0.05);
}

.section-light .timeline-card h3 {
    color: var(--color-text-dark);
}

.section-light .timeline-card p {
    color: var(--color-text-dark-muted);
}

.section-light .location-card {
    background: #ffffff;
    border: 1px solid var(--color-border-light);
    box-shadow: 0 10px 30px rgba(5, 17, 56, 0.06);
}

.section-light .location-card h3 {
    color: var(--color-text-dark);
}

.section-light .location-card p {
    color: var(--color-text-dark-muted);
}

.section-light .location-detail-row {
    color: #475569;
}

.section-light .checklist-item span {
    color: #334155;
}

/* --- 6. BUTTONS & PILLS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.98rem;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: var(--radius-full);
    transition: var(--transition-smooth);
    white-space: nowrap;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-brand-cyan) 0%, var(--color-brand-cyan-dark) 100%);
    color: #ffffff;
    box-shadow: 0 4px 20px var(--color-brand-cyan-glow);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--color-brand-cyan-light) 0%, var(--color-brand-cyan) 100%);
    box-shadow: 0 6px 28px rgba(60, 176, 194, 0.55);
    transform: translateY(-2px);
    color: #ffffff;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-text-white);
    border: var(--border-glass);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background: rgba(60, 176, 194, 0.18);
    border-color: var(--color-brand-cyan);
    color: var(--color-text-white);
    transform: translateY(-2px);
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: #ffffff;
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-whatsapp:hover {
    background: linear-gradient(135deg, #2ae771 0%, #15a392 100%);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
    transform: translateY(-2px);
    color: #ffffff;
}

.btn-sm {
    padding: 9px 18px;
    font-size: 0.88rem;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.08rem;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-brand-cyan-light);
    background: rgba(60, 176, 194, 0.12);
    border: 1px solid rgba(60, 176, 194, 0.35);
    padding: 6px 14px;
    border-radius: var(--radius-full);
}

.badge-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--color-brand-cyan);
    box-shadow: 0 0 10px var(--color-brand-cyan);
    animation: pulseGlow 2s infinite;
}

/* --- 7. FLOATING CAPSULE HEADER & LOGO --- */
.header-wrapper {
    position: fixed;
    top: 20px;
    left: 0;
    width: 100%;
    z-index: 1000;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.header-container {
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    pointer-events: auto;
}

.nav-capsule {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: var(--color-bg-glass-nav);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: var(--border-glass);
    border-radius: var(--radius-full);
    padding: 6px 14px 6px 18px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
    width: auto;
    transition: var(--transition-smooth);
}

.header-scrolled .nav-capsule {
    background: rgba(2, 8, 29, 0.94);
    border-color: rgba(60, 176, 194, 0.45);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 20px var(--color-brand-cyan-dim);
    padding: 5px 12px 5px 16px;
}

.brand-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.brand-logo-img {
    height: 38px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    display: block;
    filter: brightness(1.1);
    transition: var(--transition-smooth);
}

.brand-logo:hover .brand-logo-img {
    filter: brightness(1.25) drop-shadow(0 0 8px rgba(60, 176, 194, 0.45));
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    padding: 8px 14px;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--color-text-muted);
    border-radius: var(--radius-full);
    transition: var(--transition-fast);
    position: relative;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--color-text-white);
    background: rgba(255, 255, 255, 0.08);
}

.nav-link.active {
    color: var(--color-text-white);
    background: var(--color-brand-cyan-dim);
    border: 1px solid rgba(60, 176, 194, 0.4);
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: var(--border-glass);
    align-items: center;
    justify-content: center;
    color: var(--color-text-white);
    font-size: 1.3rem;
}

/* Mobile Slide-out Drawer */
.mobile-nav-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 360px;
    height: 100vh;
    background: rgba(5, 17, 56, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    z-index: 1100;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.7);
    border-left: var(--border-glass);
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-drawer.open {
    right: 0;
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 24px;
    border-bottom: var(--border-subtle);
}

.mobile-close-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    margin: auto 0;
    padding: 24px 0;
    flex-grow: 1;
}

.mobile-nav-links li {
    list-style: none;
}

.mobile-nav-links .nav-link {
    font-size: 1.25rem;
    font-weight: 500;
    padding: 13px 20px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.88);
    background: transparent;
    transition: var(--transition-fast);
    border: 1px solid transparent;
}

.mobile-nav-links .nav-link:hover,
.mobile-nav-links .nav-link.active {
    color: #ffffff;
    background: rgba(60, 176, 194, 0.12);
    border: 1px solid rgba(60, 176, 194, 0.35);
}

.mobile-nav-links .nav-link.active {
    color: var(--color-brand-cyan-light);
    font-weight: 600;
}

.mobile-nav-footer {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-top: 20px;
    border-top: var(--border-subtle);
}

.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

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

/* --- 8. HERO CAROUSEL 3 SLIDES SYSTEM --- */
.hero-carousel-section {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 640px;
    overflow: hidden;
    background-color: var(--color-bg-dark);
}

.hero-slider-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1), transform 0.9s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(1.04);
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 96px;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    z-index: 2;
}

/* Soft Bottom Gradient Overlay: Image stays clear & prominent */
.hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg, 
        rgba(5, 17, 56, 0.15) 0%, 
        rgba(5, 17, 56, 0.25) 45%, 
        rgba(5, 17, 56, 0.85) 75%, 
        #051138 100%
    );
    z-index: 1;
}

.hero-slide-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 940px;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.hero-slide-content h1 {
    font-size: clamp(1.9rem, 3.8vw, 3.1rem);
    line-height: 1.18;
    color: #ffffff;
    margin: 0;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.hero-slide-content .hero-subtitle {
    font-family: var(--font-heading);
    font-size: clamp(1.15rem, 2.2vw, 1.75rem);
    font-style: italic;
    color: var(--color-brand-cyan-light);
    margin: 0;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
}

.hero-slide-cta {
    margin-top: 14px;
}

/* Carousel Floating Navigation Controls */
.hero-carousel-controls {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(5, 17, 56, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: var(--border-glass);
    border-radius: var(--radius-full);
    padding: 6px 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.carousel-nav-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-white);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: var(--transition-fast);
    font-size: 1.1rem;
}

.carousel-nav-btn:hover {
    background: var(--color-brand-cyan);
    border-color: var(--color-brand-cyan);
    color: #ffffff;
    transform: scale(1.1);
}

.carousel-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.carousel-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    border: none;
    transition: var(--transition-fast);
    cursor: pointer;
}

.carousel-dot.active {
    background: var(--color-brand-cyan);
    box-shadow: 0 0 10px var(--color-brand-cyan);
    transform: scale(1.3);
}

/* Single Full-Height Hero with Bottom Aligned Title (similar to Home) */
.page-hero-single {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    min-height: 560px;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 110px;
    overflow: hidden;
    background-color: var(--color-bg-dark);
}

.page-hero-single::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg, 
        rgba(5, 17, 56, 0.10) 0%, 
        rgba(5, 17, 56, 0.25) 40%, 
        rgba(5, 17, 56, 0.75) 70%, 
        #051138 100%
    );
    z-index: 1;
}

.page-hero-content,
.page-hero-single-content {
    position: relative;
    z-index: 5;
    text-align: center;
    max-width: 960px;
    padding: 0 24px;
    margin-bottom: 12px;
}

.page-hero-content h1,
.page-hero-single-content h1 {
    font-size: clamp(1.9rem, 3.8vw, 3.1rem);
    line-height: 1.18;
    color: #ffffff;
    margin: 0;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.85);
}

/* About Intro Section (Content moved below hero) */
.about-intro-section {
    padding: 60px 0 80px 0;
    position: relative;
}

.about-intro-box {
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
}

.about-lead-text {
    font-size: clamp(1.15rem, 2.2vw, 1.35rem);
    line-height: 1.75;
    color: var(--color-text-light);
    margin-bottom: 32px;
}

.about-checklist-card {
    background: rgba(5, 17, 56, 0.65);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(60, 176, 194, 0.25);
    border-radius: var(--radius-lg);
    padding: 32px 36px;
    text-align: left;
    margin: 0 auto;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.about-intro-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-top: 36px;
}

/* --- INSTITUTIONS INFINITE MARQUEE CAROUSEL --- */
.institutions-marquee-section {
    padding: 64px 0 74px 0;
    overflow: hidden;
    position: relative;
}

.marquee-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 16px 0;
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.marquee-track {
    display: flex;
    align-items: center;
    gap: 24px;
    width: max-content;
    animation: marquee-infinite 35s linear infinite;
    will-change: transform;
}

.marquee-wrapper:hover .marquee-track {
    animation-play-state: paused;
}

@keyframes marquee-infinite {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-100% / 3));
    }
}

/* Larger card size for the infinite carousel */
.institution-item-lg {
    background: #ffffff !important;
    border: 1px solid rgba(5, 17, 56, 0.08) !important;
    border-radius: 14px !important;
    box-shadow: 0 6px 20px rgba(5, 17, 56, 0.05) !important;
    padding: 16px 28px !important;
    height: 90px !important;
    min-width: 165px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0;
    box-sizing: border-box !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}

.institution-item-lg:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 28px rgba(5, 17, 56, 0.09) !important;
}

.institution-item-lg img {
    max-height: 54px !important;
    width: auto !important;
    max-width: 140px !important;
    object-fit: contain !important;
    filter: none !important;
    display: block !important;
}

/* Specific scale adjustment for USP wide logo in large carousel */
.institution-item-lg img.logo-usp-scale-lg {
    max-height: 36px !important;
    max-width: 110px !important;
}

/* Secondary Pages 100vh Hero */
.hero-viewport {
    min-height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 150px 0 80px 0;
    overflow: hidden;
}

.hero-viewport::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg, 
        rgba(5, 17, 56, 0.94) 0%, 
        rgba(5, 17, 56, 0.84) 50%, 
        rgba(2, 8, 29, 0.96) 100%
    );
    z-index: 1;
}

.hero-viewport .container {
    position: relative;
    z-index: 2;
}

.hero-viewport-content {
    max-width: 880px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
}

.hero-viewport-content h1 {
    font-size: clamp(1.9rem, 3.8vw, 3.1rem);
    line-height: 1.18;
    margin: 0;
}

.hero-viewport-content .hero-lead {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    color: var(--color-text-light);
    line-height: 1.8;
    max-width: 780px;
}

.hero-viewport-content .hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-top: 10px;
}

/* Split layout on Viewport */
.hero-split-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 60px;
    align-items: center;
}

.hero-split-grid.reverse-grid {
    grid-template-columns: 0.85fr 1.15fr;
}

.hero-split-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    width: 100%;
}

.hero-split-media {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 440px;
    border-radius: var(--radius-xl, 24px);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(60, 176, 194, 0.35);
    background: transparent;
}

.section-light .hero-image-wrapper {
    border: 1px solid var(--color-border-light);
    box-shadow: 0 10px 30px rgba(5, 17, 56, 0.08);
    background: #ffffff;
}

.hero-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.hero-image-wrapper:hover img {
    transform: scale(1.03);
}

/* Doctor Portrait Desktop vs Mobile */
.doctor-portrait-card-mobile {
    display: none;
}

.doctor-portrait-wrapper {
    width: 100%;
    max-width: 440px;
    border-radius: var(--radius-xl, 24px);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(60, 176, 194, 0.35);
    background: transparent;
}

.doctor-portrait-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.doctor-portrait-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.hero-halo {
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle at center, var(--color-brand-cyan-glow) 0%, rgba(5, 17, 56, 0) 70%);
    filter: blur(24px);
    z-index: -1;
}

/* --- 9. CARDS & GRIDS --- */
.card-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.card-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.card-grid-5 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.card-grid-5 > :nth-child(4) {
    grid-column: 1 / 2;
}

.card-grid-5 > :nth-child(5) {
    grid-column: 2 / 3;
}

@media (min-width: 1081px) {
    .card-grid-5 {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 28px;
    }
    .card-grid-5 > .glass-card,
    .card-grid-5 > .light-card {
        flex: 0 1 calc(33.333% - 20px);
        max-width: calc(33.333% - 20px);
    }
}

@media (max-width: 1080px) {
    .card-grid-5 {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    .card-grid-5 > :nth-child(4),
    .card-grid-5 > :nth-child(5) {
        grid-column: auto;
    }
}

@media (max-width: 768px) {
    .card-grid-5 {
        grid-template-columns: 1fr;
    }
}

.glass-card {
    background: var(--color-bg-card);
    border: var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-brand-cyan), transparent);
    opacity: 0;
    transition: var(--transition-smooth);
}

.glass-card:hover {
    background: var(--color-bg-card-hover);
    border-color: rgba(60, 176, 194, 0.45);
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
}

.glass-card:hover::before {
    opacity: 1;
}

.card-icon-box {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    background: var(--color-brand-cyan-dim);
    border: 1px solid rgba(60, 176, 194, 0.3);
    color: var(--color-brand-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 24px;
    transition: var(--transition-smooth);
}

.glass-card:hover .card-icon-box {
    background: var(--color-brand-cyan);
    color: #ffffff;
    box-shadow: 0 0 20px var(--color-brand-cyan-glow);
}

.glass-card h3 {
    margin-bottom: 12px;
}

.glass-card p {
    font-size: 0.98rem;
    line-height: 1.7;
}

/* Organ / Areas Card */
.organ-card {
    background: var(--color-bg-card);
    border: var(--border-glass);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.organ-card:hover {
    border-color: var(--color-brand-cyan);
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
}

.organ-card-media {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: #02081d;
}

.organ-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.organ-card:hover .organ-card-media img {
    transform: scale(1.08);
}

.organ-card-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(5, 17, 56, 0.85);
    backdrop-filter: blur(8px);
    border: var(--border-glass);
    color: var(--color-brand-cyan);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 12px;
    border-radius: var(--radius-full);
}

.organ-card-body {
    padding: 28px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.organ-card-body h3 {
    margin-bottom: 10px;
}

.organ-card-body p {
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-brand-cyan);
    font-weight: 600;
    font-size: 0.92rem;
    transition: var(--transition-fast);
}

.card-link:hover {
    color: var(--color-brand-cyan-light);
    gap: 12px;
}

/* --- 10. SPECIALTIES INTRO SPLIT & ASYMMETRIC 2-COLUMN LAYOUT --- */
.specialty-intro-split {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 48px;
    align-items: center;
    margin-bottom: 52px;
}

.specialty-intro-media {
    position: relative;
    border-radius: var(--radius-xl, 20px);
    overflow: hidden;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(60, 176, 194, 0.3);
    background: #02081d;
}

.specialty-intro-media img {
    width: 100%;
    height: 100%;
    max-height: 460px;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.specialty-intro-media:hover img {
    transform: scale(1.03);
}

.specialty-intro-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
}

.specialty-intro-content h2 {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    margin: 0;
}

.specialty-intro-content p {
    font-size: 1.15rem;
    line-height: 1.85;
    color: var(--color-text-light);
    margin: 0;
}

.section-light .specialty-intro-media {
    border: 1px solid rgba(5, 17, 56, 0.08);
    box-shadow: 0 16px 40px rgba(5, 17, 56, 0.1);
}

.section-light .specialty-intro-content h2 {
    color: var(--color-text-dark);
}

.section-light .specialty-intro-content p {
    color: var(--color-text-dark-muted);
}

/* Card Footer Image */
.card-footer-image {
    margin-top: 24px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(60, 176, 194, 0.2);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    background: #02081d;
}

.card-footer-image img {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.glass-card:hover .card-footer-image img,
.light-card:hover .card-footer-image img {
    transform: scale(1.02);
}

.section-light .card-footer-image {
    border: 1px solid rgba(5, 17, 56, 0.08);
    background: #f8fafc;
}

.specialty-asymmetric-grid {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 32px;
    align-items: stretch;
}

.specialty-stacked-col {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.specialty-stacked-col .glass-card,
.specialty-stacked-col .light-card {
    flex: 1;
}

.specialty-full-card {
    height: 100%;
}

/* --- 11. INSTITUTIONS LOGO BANNER (White Containers, No Interaction) --- */
.institutions-section {
    padding: 50px 0 60px 0;
}

.institutions-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 18px 20px;
}

.institution-item {
    background: #ffffff !important;
    border: 1px solid rgba(5, 17, 56, 0.08) !important;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(5, 17, 56, 0.04) !important;
    padding: 12px 22px;
    height: 74px;
    min-width: 128px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.institution-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(5, 17, 56, 0.07) !important;
}

.institution-item img {
    max-height: 44px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    filter: none !important;
    display: block;
}

/* Specific scale adjustment for USP wide logo */
.institution-item img.logo-usp-scale {
    max-height: 30px;
    max-width: 95px;
}

/* --- 12. FAQ ACCORDION --- */
.faq-container {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--color-bg-card);
    border: var(--border-glass);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition-smooth);
}

.faq-item:hover {
    border-color: rgba(60, 176, 194, 0.45);
}

.faq-item.active {
    background: var(--color-bg-card-hover);
    border-color: var(--color-brand-cyan);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.faq-question {
    padding: 22px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    cursor: pointer;
    user-select: none;
}

.faq-question h3 {
    font-size: 1.18rem;
    font-weight: 500;
    color: var(--color-text-white);
    margin: 0;
}

.faq-toggle-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--color-brand-cyan-dim);
    color: var(--color-brand-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    transition: var(--transition-smooth);
}

.faq-item.active .faq-toggle-icon {
    transform: rotate(45deg);
    background: var(--color-brand-cyan);
    color: #ffffff;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease;
    padding: 0 28px;
}

.faq-item.active .faq-answer {
    padding: 0 28px 24px 28px;
}

.faq-answer p {
    color: var(--color-text-light);
    font-size: 1.02rem;
    line-height: 1.75;
}

/* --- 13. INFINITE TESTIMONIALS MARQUEE (Larger, Slower, Soft Shadows) --- */
.testimonials-marquee-section {
    padding: 80px 0 90px 0;
    position: relative;
    overflow: visible;
    background-color: var(--color-bg-dark);
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
    padding: 35px 0;
}

.marquee-track {
    display: flex;
    gap: 28px;
    width: max-content;
    animation: scrollMarquee 130s linear infinite;
    will-change: transform;
    align-items: center;
    padding: 10px 0;
}

.marquee-container:hover .marquee-track {
    animation-play-state: paused;
}

.testimonial-item {
    flex: 0 0 360px;
    width: 360px;
    height: 250px;
    background: #ffffff;
    border-radius: var(--radius-md, 14px);
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
    text-align: left;
    box-sizing: border-box;
}

.testimonial-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
}

.review-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.review-author-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.review-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    font-weight: 700;
    font-family: var(--font-body);
    flex-shrink: 0;
    user-select: none;
}

/* Dynamic avatar background color variants inspired by Google Profiles */
.avatar-blue { background-color: #1a73e8; }
.avatar-navy { background-color: #1a365d; }
.avatar-teal { background-color: #00897b; }
.avatar-green { background-color: #2e7d32; }
.avatar-purple { background-color: #6a1b9a; }
.avatar-indigo { background-color: #3949ab; }
.avatar-orange { background-color: #e65100; }
.avatar-amber { background-color: #f57c00; }
.avatar-pink { background-color: #c2185b; }
.avatar-cyan { background-color: #0097a7; }

.review-author-meta {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.review-author-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a1f2c;
    font-family: var(--font-body);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
}

.review-date {
    font-size: 0.78rem;
    color: #70757a;
    font-family: var(--font-body);
    margin-top: 2px;
}

.review-google-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.google-icon {
    width: 22px;
    height: 22px;
    display: block;
}

.review-stars {
    display: flex;
    align-items: center;
    gap: 3px;
    color: #e7711b;
    font-size: 1.15rem;
    line-height: 1;
    margin-bottom: 12px;
}

.review-text {
    font-size: 0.88rem;
    line-height: 1.55;
    color: #3c4043;
    margin: 0;
    font-family: var(--font-body);
    font-weight: 400;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.15) transparent;
    flex-grow: 1;
}

.review-text::-webkit-scrollbar {
    width: 3px;
}

.review-text::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.18);
    border-radius: 3px;
}

@media (max-width: 768px) {
    .testimonial-item {
        width: 310px;
        flex: 0 0 310px;
        height: 260px;
        padding: 16px 18px;
    }
    .review-author-name {
        max-width: 180px;
    }
}

@keyframes scrollMarquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-50% - 14px));
    }
}

/* --- 14. SEAMLESS PHOTO GALLERY MARQUEE (Full Width) --- */
.gallery-strip-section {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 0;
    margin: 40px 0 0 0;
    background-color: var(--color-bg-dark);
}

.gallery-strip-track {
    display: flex;
    width: max-content;
    animation: galleryScroll 40s linear infinite;
    will-change: transform;
}

.gallery-strip-section:hover .gallery-strip-track {
    animation-play-state: paused;
}

.gallery-strip-item {
    flex: 0 0 auto;
    width: 300px;
    height: 420px;
    overflow: hidden;
    position: relative;
}

@media (min-width: 768px) {
    .gallery-strip-item {
        width: 380px;
        height: 500px;
    }
}

@media (min-width: 1200px) {
    .gallery-strip-item {
        width: 420px;
        height: 540px;
    }
}

.gallery-strip-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

@keyframes galleryScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* --- 15. INSTAGRAM POST CARDS (Authentic IG Mockup, 3 per row) --- */
.instagram-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.ig-post-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    flex-direction: column;
    color: #1c2436;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
    text-decoration: none;
}

.ig-post-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(60, 176, 194, 0.25), 0 8px 24px rgba(0, 0, 0, 0.35);
}

.ig-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #ffffff;
    border-bottom: 1px solid #f1f5f9;
}

.ig-username {
    font-size: 0.9rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.01em;
}

.ig-logo-icon {
    width: 20px;
    height: 20px;
    color: #64748b;
}

.ig-card-media {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #02081d;
    position: relative;
}

.ig-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.ig-post-card:hover .ig-card-media img {
    transform: scale(1.05);
}

.ig-card-body {
    padding: 14px 16px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.ig-caption {
    font-size: 0.9rem;
    line-height: 1.55;
    color: #334155;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 400;
}

.ig-card-stats {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 8px;
    border-top: 1px solid #f8fafc;
    font-size: 0.88rem;
    font-weight: 600;
    color: #475569;
}

.ig-stat-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ig-stat-item.likes svg {
    color: #e11d48;
    fill: #e11d48;
}

.ig-stat-item.comments svg {
    color: #64748b;
}

@media (max-width: 1024px) {
    .instagram-grid-3 {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 640px) {
    .instagram-grid-3 {
        grid-template-columns: 1fr;
    }
}

/* --- 15. TIMELINE & EVENT STYLES (Sobre Mim) --- */
.timeline {
    position: relative;
    max-width: 860px;
    margin: 0 auto;
    padding-left: 36px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--color-brand-cyan) 0%, rgba(60, 176, 194, 0.1) 100%);
}

.timeline-item {
    position: relative;
    margin-bottom: 36px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -33px;
    top: 6px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--color-brand-cyan);
    box-shadow: 0 0 12px var(--color-brand-cyan);
    border: 3px solid var(--color-bg-dark);
}

.timeline-card {
    background: var(--color-bg-card);
    border: var(--border-glass);
    border-radius: var(--radius-md);
    padding: 24px 28px;
    box-shadow: var(--shadow-card);
}

.timeline-year {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-brand-cyan);
    background: var(--color-brand-cyan-dim);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    margin-bottom: 10px;
}

.timeline-card h3 {
    font-size: 1.22rem;
    margin-bottom: 6px;
}

.timeline-card p {
    font-size: 0.95rem;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.event-card {
    background: var(--color-bg-card);
    border: var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    transition: var(--transition-smooth);
}

.event-card:hover {
    background: var(--color-bg-card-hover);
    border-color: rgba(60, 176, 194, 0.4);
    transform: translateY(-2px);
}

.event-year-tag {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--color-brand-cyan);
    background: var(--color-brand-cyan-dim);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    white-space: nowrap;
}

.event-details h4 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text-white);
    line-height: 1.4;
}

/* --- 16. FIBROSCAN LANDING PAGE STYLES --- */
.fibroscan-highlight-box {
    background: linear-gradient(135deg, rgba(60, 176, 194, 0.15) 0%, rgba(9, 23, 64, 0.8) 100%);
    border: 1px solid var(--color-brand-cyan);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4), 0 0 30px var(--color-brand-cyan-dim);
    margin: 40px 0;
}

.fibroscan-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 28px;
}

.fibro-feature-pill {
    background: rgba(5, 17, 56, 0.7);
    border: var(--border-glass);
    border-radius: var(--radius-md);
    padding: 18px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.fibro-feature-pill i, .fibro-feature-pill svg {
    color: var(--color-brand-cyan);
}

.fibro-feature-pill span {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-white);
}

.checklist {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.98rem;
}

.checklist-item svg {
    color: var(--color-brand-cyan);
    flex-shrink: 0;
    margin-top: 3px;
}

/* --- 17. CONTACT & CLINIC LOCATIONS --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
}

.location-card {
    background: var(--color-bg-card);
    border: var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.location-badge {
    display: inline-block;
    align-self: flex-start;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-brand-cyan);
    background: var(--color-brand-cyan-dim);
    padding: 4px 12px;
    border-radius: var(--radius-full);
}

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

.location-card p {
    color: var(--color-text-light);
}

.location-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px 0;
    border-top: var(--border-subtle);
    border-bottom: var(--border-subtle);
}

.location-detail-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.location-detail-row svg {
    color: var(--color-brand-cyan);
    flex-shrink: 0;
}

/* --- 18. FOOTER SYSTEM --- */
.site-footer {
    background: var(--color-bg-darker);
    border-top: var(--border-subtle);
    padding: 80px 0 30px 0;
    position: relative;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 48px;
    margin-bottom: 60px;
}

.footer-col h4 {
    color: var(--color-text-white);
    font-size: 1.15rem;
    margin-bottom: 22px;
    position: relative;
    display: inline-block;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 28px;
    height: 2px;
    background: var(--color-brand-cyan);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-brand-cyan);
    transform: translateX(4px);
}

.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-contact-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.footer-contact-row svg {
    color: var(--color-brand-cyan);
    margin-top: 4px;
    flex-shrink: 0;
}

.footer-crm-box {
    background: rgba(255, 255, 255, 0.03);
    border: var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 16px;
    font-size: 0.85rem;
    color: var(--color-brand-cyan-light);
    margin-top: 16px;
}

.footer-bottom {
    padding-top: 30px;
    border-top: var(--border-subtle);
    display: flex;
    flex-direction: column;
    gap: 20px;
    font-size: 0.82rem;
    color: var(--color-text-dim);
}

.footer-disclaimer {
    line-height: 1.6;
    background: rgba(0, 0, 0, 0.25);
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--color-brand-cyan);
}

.footer-copyright-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

/* --- 19. FLOATING WHATSAPP BUTTON --- */
.floating-whatsapp {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 999;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25d366;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
    transition: var(--transition-bounce);
}

.floating-whatsapp::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.4);
    animation: ripple 2s infinite;
    z-index: -1;
}

.floating-whatsapp:hover {
    transform: scale(1.12);
    background: #20ba5a;
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.6);
}

.whatsapp-tooltip {
    position: absolute;
    right: 72px;
    background: rgba(5, 17, 56, 0.95);
    backdrop-filter: blur(8px);
    border: var(--border-glass);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    white-space: nowrap;
    box-shadow: var(--shadow-card);
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: var(--transition-smooth);
    pointer-events: none;
}

.floating-whatsapp:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* --- 20. ANIMATIONS & KEYFRAMES --- */
@keyframes pulseGlow {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes ripple {
    0% { transform: scale(0.9); opacity: 0.8; }
    100% { transform: scale(1.4); opacity: 0; }
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease-out, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* --- 21. RESPONSIVE BREAKPOINTS --- */
@media (max-width: 1080px) {
    .hero-split-grid {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }
    
    .hero-split-content {
        align-items: center;
    }
    
    .card-grid-3, .card-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .specialty-asymmetric-grid {
        grid-template-columns: 1fr;
    }
    
    .institutions-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .instagram-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 820px) {
    .nav-menu, .nav-cta .btn {
        display: none;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .section {
        padding: 56px 0;
    }
    
    .hero-carousel-section {
        height: 100vh;
        min-height: 560px;
    }
    
    .hero-slide {
        padding-bottom: 110px;
    }
    
    .hero-viewport {
        padding: 130px 0 60px 0;
    }
    
    .card-grid-3, .card-grid-2, .events-grid, .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .fibroscan-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .institutions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .specialty-intro-split {
        display: flex !important;
        flex-direction: column !important;
        gap: 24px !important;
        align-items: center !important;
        text-align: center;
    }
    
    .specialty-intro-content {
        align-items: center !important;
        width: 100% !important;
    }

    .specialty-intro-content h2 {
        font-size: clamp(2rem, 6vw, 2.5rem) !important;
        margin-bottom: 8px !important;
    }

    .specialty-intro-content p {
        text-align: left !important;
        font-size: 1rem !important;
        line-height: 1.75 !important;
        color: var(--color-text-light) !important;
        margin-bottom: 16px !important;
    }

    .specialty-intro-content .btn {
        width: 100% !important;
        justify-content: center !important;
    }
    
    .specialty-intro-media {
        order: -1 !important;
        width: 100% !important;
        max-width: 250px !important;
        aspect-ratio: 3 / 4 !important;
        border-radius: 20px !important;
        overflow: hidden !important;
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55) !important;
        border: 1px solid rgba(60, 176, 194, 0.4) !important;
        margin: 0 auto 8px auto !important;
        background: #02081d !important;
    }
    
    .specialty-intro-media img {
        width: 100% !important;
        height: 100% !important;
        max-height: unset !important;
        object-fit: cover !important;
        object-position: center top !important;
        display: block !important;
    }

    /* Hero Split Grid Mobile Handling (Organ Pages & Fibroscan) */
    .hero-split-grid,
    .hero-split-grid.reverse-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 28px !important;
        align-items: center !important;
    }

    .hero-split-media {
        order: -1 !important;
        width: 100% !important;
        max-width: 220px !important;
        margin: 0 auto 4px auto !important;
    }

    .hero-split-grid.reverse-grid .hero-split-media {
        order: -1 !important;
    }

    .hero-image-wrapper {
        max-width: 220px !important;
        border-radius: 18px !important;
        margin: 0 auto !important;
    }

    .hero-image-wrapper img {
        max-height: 220px !important;
        object-fit: contain !important;
        margin: 0 auto !important;
    }

    .fibroscan-device-split .hero-split-media,
    .fibroscan-device-split .hero-image-wrapper {
        max-width: 320px !important;
    }

    .fibroscan-device-split .hero-device-img {
        max-height: 320px !important;
        object-fit: cover !important;
    }

    /* Doctor Presentation Section Mobile */
    .doctor-presentation-media {
        display: none !important;
    }

    .doctor-portrait-card-mobile {
        display: block !important;
        position: relative;
        width: 100%;
        max-width: 250px;
        margin: 18px auto 22px auto;
    }

    .doctor-portrait-frame {
        position: relative;
        width: 100%;
        border-radius: 20px;
        overflow: hidden;
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
        border: 1px solid rgba(60, 176, 194, 0.4);
        background: transparent;
    }

    .doctor-portrait-frame img {
        width: 100%;
        height: auto;
        display: block;
        object-fit: cover;
    }

    .hero-split-content {
        align-items: center !important;
        text-align: center !important;
        width: 100% !important;
    }

    .hero-split-content .badge-pill {
        margin: 0 auto 6px auto !important;
    }

    .hero-split-content h2 {
        font-size: clamp(2rem, 6vw, 2.5rem) !important;
        text-align: center !important;
        margin-bottom: 4px !important;
    }

    .hero-split-content h3 {
        text-align: center !important;
        margin-bottom: 12px !important;
    }

    .hero-split-content p {
        text-align: left !important;
        font-size: 1rem !important;
        line-height: 1.75 !important;
        color: var(--color-text-light);
        margin-bottom: 14px !important;
        width: 100%;
    }

    .hero-split-content .checklist {
        text-align: left !important;
        width: 100% !important;
        margin-top: 14px !important;
    }

    .hero-split-content .checklist-item {
        align-items: flex-start !important;
        font-size: 0.96rem !important;
        line-height: 1.55 !important;
    }

    .hero-split-content .checklist-item svg {
        flex-shrink: 0 !important;
        margin-top: 2px !important;
    }

    .hero-split-content .btn,
    .hero-split-content a.btn {
        width: 100% !important;
        justify-content: center !important;
        margin: 0 !important;
    }

    .hero-split-content > div[style*="margin-top"] {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
    }

    .page-hero-single {
        height: 100vh;
        height: 100dvh;
        min-height: 520px;
        align-items: flex-end !important;
        padding-bottom: 120px !important;
    }

    .page-hero-content,
    .page-hero-single-content {
        position: relative !important;
        z-index: 5 !important;
        padding: 0 20px !important;
        margin-bottom: 16px !important;
    }

    .page-hero-content h1,
    .page-hero-single-content h1 {
        font-size: clamp(1.75rem, 5.2vw, 2.3rem) !important;
        line-height: 1.2 !important;
        text-shadow: 0 4px 24px rgba(0, 0, 0, 0.95) !important;
    }
    
    .about-checklist-card {
        padding: 24px 20px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
}

@media (max-width: 480px) {
    .hero-split-media {
        max-width: 170px !important;
    }
    
    .hero-image-wrapper {
        max-width: 170px !important;
    }
    
    .fibroscan-device-split .hero-split-media,
    .fibroscan-device-split .hero-image-wrapper {
        max-width: 260px !important;
    }

    .page-hero-single {
        height: 100vh;
        height: 100dvh;
        min-height: 500px;
        padding-bottom: 110px !important;
    }

    .page-hero-content,
    .page-hero-single-content {
        margin-bottom: 14px !important;
    }
    
    .about-checklist-card {
        padding: 20px 16px;
    }
    
    .institution-item-lg {
        height: 78px !important;
        min-width: 140px !important;
        padding: 12px 20px !important;
    }
    
    .institution-item-lg img {
        max-height: 44px !important;
        max-width: 115px !important;
    }

    .instagram-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .fibroscan-features-grid {
        grid-template-columns: 1fr;
    }
    
    .institutions-grid {
        grid-template-columns: 1fr;
    }
    
    .floating-whatsapp {
        bottom: 20px;
        right: 20px;
        width: 52px;
        height: 52px;
        font-size: 1.7rem;
    }
}

/* --- 22. FIBROSCAN FINAL FULL VIEWPORT CTA --- */
.fibroscan-final-viewport {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    padding: 100px 0;
    overflow: hidden;
}

.fibroscan-final-viewport::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg, 
        rgba(5, 17, 56, 0.86) 0%, 
        rgba(32, 135, 150, 0.74) 50%, 
        rgba(2, 8, 29, 0.90) 100%
    );
    z-index: 1;
}

.fibroscan-final-viewport .container {
    position: relative;
    z-index: 2;
}

.fibroscan-viewport-content {
    max-width: 920px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
}

.fibroscan-viewport-content h2 {
    font-size: clamp(2.4rem, 5vw, 4rem);
    color: #ffffff;
    line-height: 1.2;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.7);
    margin: 0;
}

/* --- 23. DOCTORALIA WIDGET CARD --- */
.doctoralia-widget-card {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.doctoralia-widget-card iframe {
    width: 100% !important;
    max-width: 450px !important;
    height: 640px !important;
    min-height: 640px !important;
    border: 0 !important;
    display: block;
    margin: 0 auto;
}




