/* ===== CUSTOM PROPERTIES ===== */
:root {
    --forest: #2d4a2b;
    --sage: #7d8471;
    --olive: #a4ac86;
    --ivory: #faf9f6;
    --emergency: #954c2a;
    --white: #ffffff;
    --black: #1a1a1a;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 6px 20px rgba(0,0,0,0.08);
    --radius: 0.75rem;
    --radius-lg: 1.25rem;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2.5rem;
    --spacing-xl: 4rem;
    --font-heading: 'Lora', 'FreeSerif', Georgia, 'Times New Roman', serif;
    --font-body: 'Inter', 'FreeSans', -apple-system, 'Segoe UI', sans-serif;
    --transition: 0.2s ease;
}

/* ===== RESET & BASE ===== */
*,*::before,*::after { box-sizing: border-box; margin:0; padding:0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background: var(--ivory);
    color: var(--black);
    line-height: 1.7;
    font-size: 1rem;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--forest); text-decoration: none; transition: var(--transition); }
a:hover, a:focus-visible { color: var(--sage); }
:focus-visible {
    outline: 2px solid var(--forest);
    outline-offset: 2px;
    border-radius: 2px;
}
h1,h2,h3,h4 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 2.75rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.4rem); }
h4 { font-size: 1.1rem; }
p { margin-bottom: var(--spacing-sm); }

/* ===== UTILITIES ===== */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--spacing-md); }
.text-center { text-align: center; }
.caption { font-size: 0.85rem; color: var(--sage); }
.skip-link {
    position: absolute; top: -40px; left: 0; background: var(--forest); color: var(--ivory);
    padding: 8px 16px; z-index: 10000; transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.7rem 1.5rem; border-radius: 2rem; font-weight: 600;
    font-size: 1rem; border: 2px solid transparent; cursor: pointer;
    transition: all var(--transition); text-align: center;
    font-family: var(--font-body); text-decoration: none;
    line-height: 1.4;
}
.btn-primary {
    background: var(--forest); color: var(--ivory); border-color: var(--forest);
    border-radius: 2rem;
}
.btn-primary:hover { background: #1e331d; border-color: #1e331d; color: var(--ivory); }
.btn-outline {
    background: transparent; color: var(--forest); border: 2px solid var(--forest);
    border-radius: var(--radius);
}
.btn-outline:hover { background: var(--forest); color: var(--ivory); }
.btn-outline-light {
    background: transparent; color: var(--ivory); border: 2px solid var(--ivory);
    border-radius: var(--radius);
}
.btn-outline-light:hover { background: var(--ivory); color: var(--forest); }
.btn-emergency {
    background: var(--emergency); color: var(--ivory); border-color: var(--emergency);
    border-radius: 2rem;
}
.btn-emergency:hover { background: #7a3f23; }
.btn-lg { padding: 0.9rem 2.2rem; font-size: 1.1rem; }
.btn-sm { padding: 0.5rem 1.2rem; font-size: 0.9rem; }
.btn-book { background: var(--forest); color: var(--ivory); border-radius: 2rem; }

/* ===== HEADER ===== */
.site-header {
    position: sticky; top: 0; z-index: 1000; background: var(--forest);
    color: var(--ivory); padding: 0.8rem 0; transition: box-shadow 0.3s, padding 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.site-header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.3); }
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap;
}
.logo { display: flex; align-items: center; gap: 0.5rem; color: var(--ivory); text-decoration: none; }
.logo-text { font-family: var(--font-heading); font-size: 1.3rem; }
.logo-text strong { color: var(--olive); }
.logo-img { display: block; }
.main-nav .nav-list {
    display: flex; list-style: none; gap: 1.2rem;
}
.nav-link {
    color: var(--ivory); opacity: 0.85; font-weight: 500; padding: 0.5rem 0;
    border-bottom: 2px solid transparent; transition: opacity 0.2s, border-color 0.2s;
}
.nav-link:hover, .nav-link.active { opacity: 1; border-bottom-color: var(--olive); }
.header-actions { display: flex; align-items: center; gap: 0.8rem; }
.emergency-badge {
    display: flex; align-items: center; gap: 0.3rem; background: var(--emergency);
    color: var(--ivory); padding: 0.4rem 1rem; border-radius: 2rem;
    font-weight: 600; font-size: 0.9rem; text-decoration: none;
}
.emergency-badge:hover { background: #7a3f23; color: var(--ivory); }
.emergency-badge svg { width: 18px; height: 18px; fill: currentColor; }
.hamburger { display: none; flex-direction: column; gap: 4px; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger-line { width: 24px; height: 2px; background: var(--ivory); transition: 0.3s; }
.hamburger[aria-expanded="true"] .hamburger-line:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger[aria-expanded="true"] .hamburger-line:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] .hamburger-line:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Mobile header */
@media (max-width: 768px) {
    .header-actions .btn-book {
        display: inline-flex;
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    .header-actions .emergency-badge {
        font-size: 0.7rem; padding: 0.3rem 0.5rem;
    }
    .main-nav {
        position: absolute; top: 100%; left: 0; right: 0; background: var(--forest);
        max-height: 0; overflow: hidden; transition: max-height 0.4s ease;
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    }
    .main-nav.open { max-height: 500px; }
    .nav-list { flex-direction: column; padding: 1rem 2rem; gap: 0.5rem; }
    .hamburger { display: flex; }
}

/* ===== FOOTER ===== */
.site-footer { background: var(--forest); color: var(--ivory); position: relative; padding-top: 3rem; }
.footer-wave { position: absolute; top: -2px; left: 0; width: 100%; overflow: hidden; line-height: 0; }
.footer-wave svg { width: 100%; height: 50px; }
.footer-main { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 2rem; padding-bottom: 2rem; }
.footer-col address, .footer-col p { margin-bottom: 0.5rem; }
.footer-phone { color: var(--ivory); font-weight: 600; }
.footer-logo { font-family: var(--font-heading); font-size: 1.4rem; margin-bottom: 0.5rem; }
.timings-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.timings-table td { padding: 0.3rem 0; border-bottom: 1px solid rgba(255,255,255,0.2); }
.footer-note { font-size: 0.9rem; margin-top: 0.5rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.3rem; }
.footer-links a { color: var(--ivory); opacity: 0.8; }
.footer-links a:hover { opacity: 1; }
.social-icons { display: flex; gap: 0.8rem; margin: 1rem 0; }
.social-icon {
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.15);
    color: var(--ivory); font-weight: 600; font-size: 0.85rem;
}
.social-icon:hover { background: var(--olive); color: var(--forest); }
.newsletter-form label { display: block; margin-bottom: 0.3rem; }
.newsletter-input-group { display: flex; gap: 0.5rem; }
.newsletter-input-group input {
    flex:1; padding: 0.5rem; border-radius: 2rem; border: none;
    font-family: var(--font-body);
}
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.2); padding: 1.5rem 0; text-align: center; font-size: 0.85rem; }

/* ===== HERO ===== */
.hero {
    position: relative;
    background-color: var(--forest);
    color: var(--ivory);
    overflow: hidden;
    height: 500px;
}
.hero-canopy { opacity: 0.35; }
.hero-canopy svg { width: 100%; height: 100%; }
.hero-content {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 700px;
    padding: 0 1rem;
    text-align: center;
    margin: 0;
}
.hero-title { margin-bottom: 0.5rem; }
.hero-subtitle { font-size: 1.3rem; opacity: 0.9; font-weight: 300; margin-bottom: 1rem; }
.hero-desc { margin-bottom: 2rem; opacity: 0.85; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.hero-wave { position: absolute; bottom: -2px; left: 0; width: 100%; }

/* ===== QUICK INFO ===== */
.quick-info { background: var(--ivory); padding: 2rem 0; }
.quick-info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px,1fr)); gap: 1.5rem; }
.quick-info-card {
    display: flex; align-items: center; gap: 0.8rem; padding: 1rem;
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--olive);
}
.highlight-24 { border-left-color: var(--emergency); }

/* ===== ABOUT SNAPSHOT ===== */
.about-snapshot { padding: var(--spacing-xl) 0; }
.about-snapshot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.about-snapshot-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.stat-card { background: #fff; padding: 1.5rem; border-radius: var(--radius); text-align: center; box-shadow: var(--shadow-sm); }
.stat-number { font-family: var(--font-heading); font-size: 2rem; color: var(--forest); display: block; }
.stat-label { color: var(--sage); font-size: 0.9rem; }

@media (max-width: 768px) {
    .about-snapshot-grid { grid-template-columns: 1fr; }
    .about-snapshot-stats { grid-template-columns: 1fr 1fr; }
    .footer-main { grid-template-columns: 1fr; }
    .cta-banner-content { flex-direction: column; text-align: center; }
    .cta-banner-buttons { justify-content: center; }
}
@media (max-width: 400px) {
    .about-snapshot-stats { grid-template-columns: 1fr; }
}

/* ===== WHY CHOOSE ===== */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: var(--spacing-md); margin-top: 2rem; }
.why-card { background: #fff; padding: 2rem; border-radius: var(--radius); box-shadow: var(--shadow-sm); text-align: center; transition: transform 0.2s; }
.why-card:hover { transform: translateY(-4px); }
.why-card svg { margin-bottom: 1rem; }

/* ===== SERVICES ===== */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: var(--spacing-md); }
.service-card {
    background: #fff; padding: 1.8rem; border-radius: var(--radius); box-shadow: var(--shadow-sm);
    text-align: center; transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.service-card:hover { box-shadow: var(--shadow-md); }
.service-card h3 { margin: 0.8rem 0 0.4rem; }
.service-icon svg {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    stroke: var(--forest);
}

/* ===== SPECIALITIES (legacy, not used for departments) ===== */
.specialities-grid { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; margin-top: 1.5rem; }
.speciality-tag {
    background: var(--olive); color: var(--forest); padding: 0.4rem 1.2rem;
    border-radius: 2rem; font-weight: 500; transition: background 0.2s;
    font-size: 0.95rem;
}
.speciality-tag:hover { background: #6d7a5d; color: var(--ivory); }

/* ===== DOCTORS ===== */
.doctor-cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px,1fr)); gap: var(--spacing-md); margin-top: 2rem; }
.doctor-card {
    background: #fff; border-radius: var(--radius); padding: 1.8rem; text-align: center;
    box-shadow: var(--shadow-sm); transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    border: 2px solid transparent; cursor: pointer; position: relative;
}
.doctor-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--olive); }
.doctor-card-img-placeholder svg { width: 80px; height: 80px; margin: 0 auto 1rem; }
.doctor-specialty { color: #5a6b4a; font-weight: 600; margin-bottom: 0.3rem; }
.doctor-qual { font-size: 0.85rem; color: #555; }
.doctor-card .btn { position: relative; z-index: 1; }

/* ===== TESTIMONIALS ===== */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: var(--spacing-lg); margin-top: 2rem; }
.testimonial-card {
    background: linear-gradient(135deg, var(--ivory) 0%, #fff 100%);
    padding: 2rem; border-radius: var(--radius); box-shadow: var(--shadow-sm);
    position: relative; font-style: italic; border-left: 4px solid var(--olive);
}
.testimonial-card::before { content: "“"; font-size: 4rem; color: var(--olive); position: absolute; top: -10px; left: 10px; opacity: 0.3; }

/* ===== BLOG ===== */
.blog-preview-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: var(--spacing-md); margin-top: 2rem; }
.blog-preview-card {
    background: #fff; padding: 1.8rem; border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.blog-preview-card time { font-size: 0.85rem; color: var(--sage); }

/* ===== CTA BANNER ===== */
.cta-banner { background: var(--forest); color: var(--ivory); padding: var(--spacing-lg) 0; }
.cta-banner-content { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 2rem; }
.cta-banner-buttons { display: flex; gap: 1rem; margin-top: 1.5rem; flex-wrap: wrap; }
.emergency-callout { background: var(--emergency); padding: 1.5rem; border-radius: var(--radius); text-align: center; }
.emergency-phone-large { font-size: 2rem; font-weight: 700; color: var(--ivory); display: block; }

/* ===== SECTIONS ===== */
.section { padding: var(--spacing-xl) 0; }
.section-title { margin-bottom: 1.5rem; }
.section-divider { margin: -2px 0; line-height: 0; }
.section-divider svg { width:100%; height:60px; }

/* ===== FORMS ===== */
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; margin-bottom: 0.3rem; font-weight: 500; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 0.7rem 1rem; border: 1px solid #ccc; border-radius: var(--radius);
    font-family: var(--font-body); font-size: 1rem; transition: border 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--forest); outline: none; box-shadow: 0 0 0 3px rgba(45,74,43,0.2);
}
.form-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.form-row .form-group { flex: 1; min-width: 200px; }
.toggle-switch { display: flex; align-items: center; gap: 0.8rem; }
.error-message { color: #c0392b; font-size: 0.85rem; margin-top: 0.2rem; }
.form-note { font-size: 0.9rem; color: var(--sage); margin-top: 0.5rem; }

/* ===== FILTER BAR ===== */
.filter-bar { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem; align-items: center; }
.filter-bar select, .filter-bar input {
    padding: 0.6rem 1rem; border-radius: 2rem; border: 1px solid #ccc; font-family: var(--font-body);
}
.filter-bar input { flex: 1; min-width: 200px; }

/* ===== GALLERY ===== */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 1rem; }
.gallery-placeholder {
    background: #e0e0d0; aspect-ratio: 4/3; border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center; color: var(--sage);
    font-style: italic;
}

/* ===== 404 ===== */
.not-found { text-align: center; padding: 4rem 1rem; }
.not-found h1 { font-size: 3rem; color: var(--forest); }

/* ===== LOADING SKELETON ===== */
.skeleton-card {
    background: #f0efe8; border-radius: var(--radius); padding: 1.8rem; text-align: center;
    animation: pulse 1.5s infinite;
}
@keyframes pulse { 0% { opacity: 0.6; } 50% { opacity: 0.9; } 100% { opacity: 0.6; } }

/* ===== NEW RESPONSIVE CLASSES ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }
.facilities-list { columns: 2; list-style: inside; line-height: 2; }
@media (max-width: 768px) { .facilities-list { columns: 1; } }

/* ===== ANIMATION (respected) ===== */
@media (prefers-reduced-motion: no-preference) {
    .fade-in {
        opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease;
    }
    .fade-in.visible { opacity: 1; transform: translateY(0); }
}

/* ===== ADDITIONAL MOBILE FIXES ===== */
@media (max-width: 480px) {
    .hero { height: 400px; }
    .hero-title { font-size: 1.8rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-ctas .btn { width: 100%; }
    .doctor-cards-grid { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }
    .blog-preview-grid { grid-template-columns: 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .filter-bar { flex-direction: column; align-items: stretch; }
    .filter-bar input { min-width: auto; }
    .header-inner { flex-wrap: wrap; }
}

/* ===== RESPONSIVE HERO BUTTONS ===== */
@media (max-width: 480px) {
    .hero-ctas { flex-direction: column; gap: 0.75rem; }
    .hero-ctas .btn {
        width: 100%;
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}
@media (min-width: 481px) and (max-width: 768px) {
    .hero-ctas .btn { padding: 0.75rem 1.5rem; font-size: 1rem; }
}

/* ===== PRINT STYLES ===== */
@media print {
    .site-header, .hero-canopy, .hamburger, .cta-banner, .social-icons, .newsletter-form, .footer-wave {
        display: none !important;
    }
    body { background: #fff; color: #000; font-size: 12pt; }
    a { color: #000; text-decoration: underline; }
    .container { max-width: 100%; padding: 0; }
    .site-footer { background: #fff; color: #000; border-top: 1px solid #ccc; padding-top: 1rem; }
    .footer-main { display: block; }
}

/* ===== GLOBAL VISIBILITY FIX ===== */
.services-grid, .specialities-grid, .blog-preview-grid, .gallery-grid, .doctor-cards-grid, .why-grid, .testimonials-grid, #positions-list, .departments-grid {
    display: grid !important;
    opacity: 1 !important;
    visibility: visible !important;
}
.service-card, .speciality-tag, .blog-preview-card, .gallery-item, .doctor-card, .why-card, .testimonial-card, .position-card, .department-card {
    opacity: 1 !important;
    visibility: visible !important;
    background: #ffffff !important;
    color: #1a1a1a !important;
    border: 1px solid #e0e0d0 !important;
    min-height: 120px;
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin: 0;
}
.service-card h3, .blog-preview-card h3, .position-card h3, .department-card h3 {
    color: #2d4a2b !important;
    font-size: 1.2rem !important;
    margin-bottom: 0.5rem;
}
.service-card p, .blog-preview-card p, .position-card p, .department-card p {
    color: #555 !important;
}
.speciality-tag {
    display: inline-block !important;
    background: var(--olive) !important;
    color: var(--forest) !important;
    font-weight: 500;
    padding: 0.4rem 1.2rem;
    border-radius: 2rem;
}
.gallery-item img { display: block !important; width: 100%; height: auto; border-radius: var(--radius); }
#positions-list { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 1.5rem; }
.position-card { display: block !important; background: #fff; padding: 1.5rem; }

/* ===== SERVICE ICONS ===== */
.service-icon svg { width: 48px; height: 48px; margin-bottom: 1rem; stroke: var(--forest); }

/* ===== DEPARTMENT CARDS ===== */
.departments-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: var(--spacing-md); margin-top: 1.5rem; }
.department-card {
    display: flex; flex-direction: column; align-items: center; text-align: center;
    background-color: #ffffff; padding: 1.8rem; border-radius: var(--radius);
    box-shadow: var(--shadow-sm); transition: all 0.3s ease; border: 1px solid transparent;
    color: var(--forest); text-decoration: none; background-size: cover; background-position: center;
    position: relative; overflow: hidden;
}
.department-card::before { content: ""; position: absolute; top:0; left:0; right:0; bottom:0; background: rgba(0,0,0,0.3); opacity:0; transition: opacity 0.3s ease; }
.department-card:hover::before { opacity:1; }
.department-card:hover { box-shadow: var(--shadow-md); border-color: var(--olive); transform: translateY(-4px); color:#ffffff; }
.department-card h3 { color: var(--forest); font-size:1.2rem; margin:0.8rem 0 0; position:relative; z-index:1; }
.department-card:hover h3 { color:#ffffff; }
.department-card .service-icon { position: relative; z-index:1; }
.department-card .service-icon svg { width:48px; height:48px; margin-bottom:1rem; stroke: var(--forest); }
.department-card:hover .service-icon svg { stroke:#ffffff; }

/* ===== FAQ ===== */
.faq-list details {
    background: #fff; border: 1px solid #e0e0d0; border-radius: var(--radius);
    padding: 0.8rem 1.2rem; margin-bottom: 0.8rem; box-shadow: var(--shadow-sm);
}
.faq-list summary { font-weight:600; color: var(--forest); cursor:pointer; font-size:1rem; }
.faq-list p { margin:0.5rem 0 0; color:#555; }

/* ===== LATEST UPDATES CAROUSEL (fixed) ===== */
.updates-section {
    background: var(--ivory);
    padding-bottom: 1.5rem;
}

.carousel-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    background: #fff;
    margin-top: 1rem;
    min-height: 300px;
}

.carousel-slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.update-slide {
    flex: 0 0 100%;
    display: flex;
    flex-direction: column;
    min-height: 300px;
    background: #fff;
}

.update-media {
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: #e0e0d0;
    border-top-left-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-lg);
}

.update-media-empty {
    background: #e0e0d0;
}

.update-caption {
    padding: 1rem 1.5rem;
    text-align: center;
    background: #ffffff;
    color: #1a1a1a;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.update-caption h4 {
    font-size: 1.3rem;
    color: var(--forest);
    margin-bottom: 0.4rem;
    font-family: var(--font-heading);
}

.update-caption p {
    color: #555;
    margin-bottom: 0.3rem;
}

.update-caption small {
    color: var(--sage);
    font-weight: 500;
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 35%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.85);
    border: none;
    font-size: 1.8rem;
    color: var(--forest);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    z-index: 5;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: rgba(255,255,255,1);
}

.carousel-prev { left: 10px; }
.carousel-next { right: 10px; }

.carousel-dots {
    text-align: center;
    margin-top: 0.8rem;
}

.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: var(--olive);
    border-radius: 50%;
    margin: 0 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: var(--forest);
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .update-media {
        height: 160px;
    }
    .carousel-prev,
    .carousel-next {
        width: 32px;
        height: 32px;
        font-size: 1.4rem;
    }
}
