/* =======================================================
   DR. PETER MWIKA – PREMIUM CLINIC WEBSITE
   Mobile-First | Clean | Fully Responsive
======================================================= */


/* ================= ROOT VARIABLES ================= */
:root {
    --primary: #0b5ed7;
    --primary-dark: #084298;
    --secondary: #ffc107;
    --accent: #198754;

    --bg-light: #f4f7fb;
    --white: #ffffff;

    --text-dark: #1f2937;
    --text-muted: #6b7280;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;

    --shadow-soft: 0 10px 25px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 18px 40px rgba(0, 0, 0, 0.12);

    --transition: all 0.3s ease;
}


/* ================= GLOBAL RESET ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.7;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
}

p {
    color: var(--text-muted);
    margin-bottom: 14px;
}

a {
    text-decoration: none;
    transition: var(--transition);
}
/* ================= GLOBAL BUTTONS ================= */

.btn-primar,
.btn-secondar{
display:inline-flex;
align-items:center;
justify-content:center;
text-decoration:none;
padding:12px 22px;
border-radius:999px;
font-weight:600;
font-size:14px;
transition:all 0.3s ease;
}

/* PRIMARY (gold) */
.btn-primar{
background:linear-gradient(135deg, #ffc107, #ffd451);
color:#1f2937;
box-shadow:0 10px 22px rgba(255,193,7,0.35);
}

.btn-primar:hover{
transform:translateY(-2px);
box-shadow:0 14px 28px rgba(255,193,7,0.45);
}

/* SECONDAR (glass style) */
.btn-secondar{
background:rgba(255,255,255,0.15);
color:#fff;
border:1px solid rgba(255,255,255,0.3);
backdrop-filter:blur(8px);
}

.btn-secondar:hover{
background:rgba(255,255,255,0.25);
transform:translateY(-2px);
}

/* ================= HEADER ================= */


.header-left h2 {
    font-size: 24px;             /* Base size for desktop */
    font-weight: 800;            /* Extra bold */
    color: #fff;
    line-height: 1.2;
    text-transform: none;        /* Keep name as typed */
    letter-spacing: 1px;
}

.header-left h2 .doctor-title {
    display: block;              /* Puts title below name */
    font-size: 14px;             /* Slightly smaller than name */
    font-weight: 600;
    color: #ffffff;              /* Gold/yellow highlight */
    letter-spacing: 0.5px;
    text-transform: none;        /* Sentence case */
    margin-top: 2px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .header-left h2 {
        font-size: 20px;
    }

    .header-left h2 .doctor-title {
        font-size: 12px;
    }
}

@media (min-width: 1200px) {
    .header-left h2 {
        font-size: 28px;
    }

    .header-left h2 .doctor-title {
        font-size: 16px;
    }
}


/* ================= NAVIGATION ================= */
.main-nav {
    position: fixed;
    left: -260px;
    top: 0;
    height: 100vh;
    width: 260px;
    background: var(--primary);
    display: flex;
    flex-direction: column;
    padding: 80px 20px;
    gap: 20px;
    transition: 0.3s;
}

.main-nav.show {
    left: 0;
}

.main-nav a {
    color: #fff;
    font-weight: 500;
}

.cta-btn {
    background: var(--secondary);
    color: #000 !important;
    padding: 10px 20px;
    border-radius: 40px;
    font-weight: 600;
}


/* Highlight the active page link */
.main-nav a.active {
    background: #ffc107; /* Different from normal hover */
    color: #000 !important;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
/* Default green for Book Appointment button */
.main-nav a.cta-btn {
    background: #198754; /* Green */
    color: #fff !important;
    font-weight: 600;
}

/* Hover effect */
.main-nav a.cta-btn:hover {
    background: #28a745; /* Slightly brighter green */
}

/* Active page overrides (same as other active buttons) */
.main-nav a.cta-btn.active {
    background: #ffc107; /* Yellow like other active links */
    color: #000 !important;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}


.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 24px;
    height: 3px;
    background: #fff;
    border-radius: 3px;
}
#hamburger span {
    display: block;
    height: 3px;
    width: 25px;
    background: white;
    margin: 5px 0;
    transition: 0.3s;
}

#hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#hamburger.active span:nth-child(2) {
    opacity: 0;
}

#hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ================= HERO SECTION ================= */
.home-hero {
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 100vh; /*  full screen height */

    display: flex;
    align-items: center; /* vertically center content */

    background:
        linear-gradient(135deg, rgba(11, 94, 215, 0.92), rgba(8, 66, 152, 0.85)),
        url('../images/surgery2.jpeg') center/cover no-repeat;

    padding: 0; /* remove extra spacing */
    border-radius: 0;
}
.hero-overlay-pattern {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.14), transparent 28%),
        radial-gradient(circle at bottom left, rgba(255, 193, 7, 0.12), transparent 24%);
    pointer-events: none;
    z-index: 1;
}

.hero-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 12px;
}
/* ================= HERO CONTENT ================= */
.hero-content {
    flex: 1 1 560px;
    max-width: 620px;
    margin: 0;
    text-align: center;
}

.hero-heading {
    font-size: clamp(2.6rem, 4.2vw, 4.8rem);
    line-height: 1.08;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 22px;
    text-shadow: 0 5px 20px rgba(0, 0, 0, 0.22);
}

.hero-heading .highlight {
    color: var(--secondary);
}

.hero-subtext {
    font-size: 18px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.92);
    margin: 0 0 28px;
    max-width: 560px;
    text-align: left;
}

/* ================= HERO BUTTONS ================= */
.home-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    margin: 0;
}

.home-actions .btn-primary,
.home-actions .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 15px 32px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.3s ease;
}

.home-actions .btn-primary {
    background: linear-gradient(135deg, #ffc107, #ffd451);
    color: #1f2937;
    border: none;
    box-shadow: 0 12px 28px rgba(255, 193, 7, 0.35);
}

.home-actions .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 36px rgba(255, 193, 7, 0.46);
}

.home-actions .btn-secondary {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.34);
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.15);
}

.home-actions .btn-secondary:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.24);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.22);
}

/* ================= HERO IMAGE ================= */
.hero-image-wrapper {
    flex: 1 1 460px;
    width: auto;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.hero-image-card {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover; 
    border-radius: 10px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.04));
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.28);
}

.hero-image-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.18), transparent 40%);
    z-index: 1;
    pointer-events: none;
}

.hero-image {
    position: relative;
    z-index: 0;
    width: 100%;
    height: auto;
    max-height: 600px;
    display: block;
    object-fit: contain;
    object-position: center top;
}

/* ================= PROFILE BADGE ================= */
.hero-profile-badge {
    position: absolute;
    left: 18px;
    bottom: 18px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 280px;
    background: rgba(255, 255, 255, 0.96);
    padding: 12px 15px;
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.hero-surgery-image {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--secondary);
    flex-shrink: 0;
}

.hero-profile-text {
    display: flex;
    flex-direction: column;
    line-height: 1.35;
    text-align: left;
}

.hero-profile-text strong {
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.hero-profile-text span {
    font-size: 14px;
    color: var(--text-muted);
}
/* ================= TABLET ================= */
@media (max-width: 991px) {
    .home-hero {
        padding: 80px 18px 20px;
    }

    .hero-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 18px;
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
    }

    .hero-heading {
        text-align: center;
        margin-bottom: 14px;
    }

    .hero-subtext {
        margin: 0 auto 18px;
        text-align: center;
    }

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

    .hero-image-wrapper {
        width: 100%;
        margin-top: 0;
    }

    .hero-image-card {
        max-width: 440px;
        border-radius: 24px;
    }

    .hero-image {
        max-height: 430px;
    }

    .hero-profile-badge {
        left: 14px;
        bottom: 14px;
        max-width: 230px;
        padding: 9px 11px;
        gap: 9px;
    }

    .hero-surgery-image {
        width: 60px;
        height: 60px;
    }
}

/* ================= MOBILE ================= */
@media (max-width: 968px) {
    .home-hero {
        padding: 72px 12px 20px;
        border-radius: 0 0 24px 24px;
    }

    .hero-wrapper {
        gap: 14px;
    }

    .hero-content {
        width: 100%;
        max-width: 100%;
        text-align: center;
    }

    .hero-heading {
        font-size: clamp(2rem, 7vw, 2.7rem);
        line-height: 1.14;
        margin-bottom: 12px;
        text-align: center;
    }

    .hero-subtext {
        font-size: 15px;
        line-height: 1.65;
        margin: 0 auto 18px;
        text-align: center;
    }

    .home-actions {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        align-items: center;
        justify-content: center;
    }

    .home-actions .btn-primary,
    .home-actions .btn-secondary {
        width: 100%;
        max-width: 300px;
        padding: 14px 24px;
    }

    .hero-image-wrapper {
        width: 100%;
        justify-content: center;
    }

    .hero-image-card {
        width: 100%;
        max-width: 100%;
        border-radius: 20px;
        overflow: hidden;
    }

    .hero-image {
        width: 100%;
        height: 75vh;
        max-height: 75vh;
        object-fit: cover;
        display: block;
    }

    .hero-profile-badge {
        left: 12px;
        right: 12px;
        bottom: 12px;
        max-width: none;
        width: auto;
        padding: 10px 12px;
        border-radius: 15px;
    }

    .hero-surgery-image {
        width: 54px;
        height: 54px;
        flex-shrink: 0;
    }

    .hero-profile-text strong {
        font-size: 14px;
    }

    .hero-profile-text span {
        font-size: 12px;
    }
}
/* ================= SMALL MOBILE ================= */
@media (max-width: 480px) {
    .home-hero {
        padding: 66px 14px 16px;
    }

    .hero-heading {
        font-size: 1.7rem;
        margin-bottom: 10px;
    }

    .hero-image-card {
        max-width: 360px;
        border-radius: 18px;
    }

    .hero-image {
        max-height: 340px;
    }

    .hero-profile-badge {
        padding: 8px 10px;
        gap: 8px;
    }

    .hero-surgery-image {
        width: 48px;
        height: 48px;
    }

    .hero-profile-text strong {
        font-size: 13px;
    }

    .hero-profile-text span {
        font-size: 11px;
    }
}
/* ================= CARDS ================= */
.card,
.announcement,
.welcome-card,
.achievement-item,
form {
    background: var(--white);
    padding: 25px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    margin-bottom: 30px;
    transition: var(--transition);
}

.card:hover,
.announcement:hover,
.welcome-card:hover,
.achievement-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}


/* ================= SERVICES ================= */
.services-grid {
    display: grid;
    gap: 20px;
}
/* ===== FLAG STRIP ===== */
.flag-strip{
    width:100%;
    height:600px; /* strip height */
    overflow:hidden;
    background:#f5f7fa;
    display:flex;
    align-items:center;
    justify-content:center;
}

/* FLAG IMAGE */
.flag-strip-img{
    height:100%;
    width:auto;
    object-fit:contain;

    animation:flagMove 8s linear infinite;
}

/* 🌬️ MOVING ACROSS SCREEN */
@keyframes flagMove{
    0%{
        transform:translateX(100%);
    }
    100%{
        transform:translateX(-100%);
    }
}
@media(max-width:768px){

.flag-strip{
    height:250px;
}

}

/* ================= GALLERY ================= */
.gallery {
    display: grid;
    gap: 20px;
}

.gallery-item {
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.gallery-item img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}


/* ================= FOOTER ================= */
footer {
    background: var(--primary-dark);
    color: white;
    padding: 50px 20px;
    margin-top: 50px;
}

.footer-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}


/* ================= FLOATING BUTTON ================= */
.floating-appointment {
    position: fixed;
    bottom: 18px;
    right: 18px;
    background: var(--accent);
    color: white;
    padding: 14px 22px;
    border-radius: 50px;
    font-weight: bold;
    box-shadow: var(--shadow-hover);
    z-index: 9999;

    opacity: 1;
    transition: opacity 0.3s ease;
}

/* HIDDEN STATE */
.floating-appointment.hide {
    opacity: 0;
    pointer-events: none;
}
.floating-blog {
    position: fixed;
    bottom: 18px;
    right: 18px;
    background: var(--accent);
    color: rgb(241, 241, 241);
    padding: 14px 22px;
    border-radius: 50px;
    font-weight: bold;
    box-shadow: var(--shadow-hover);
}


/* =====================================================
   TABLET (768px+)
===================================================== */
@media (min-width: 768px) {

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

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

    .footer-container {
        flex-direction: row;
        justify-content: space-between;
    }

    .main-nav {
        position: static;
        flex-direction: row;
        height: auto;
        width: auto;
        background: transparent;
        padding: 0;
    }

    .hamburger {
        display: none;
    }
}
/* ================= PREMIUM NEXT BUTTON ================= */
#next-btn {
    position: fixed;
    bottom: 120px; /* higher so it doesn't clash */
    right: 20px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 14px 26px;
    border-radius: 50px;

    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;

    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;

    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);

    text-decoration: none;

    z-index: 9999;  /* VERY IMPORTANT */
    transition: all 0.3s ease;
}

#next-btn:hover {
    transform: translateY(-4px);
}


/* Responsive */
@media (max-width: 768px) {
    .achievement-card {
        flex-direction: column;
    }

    .achievement-year {
        font-size: 18px;
    }

    .achievements-title {
        font-size: 26px;
    }
}
/* ================= PAGE FADE ================= */
.page-fade {
    opacity: 0;
    transition: opacity 1s ease;
}

.page-fade.loaded {
    opacity: 1;
}

/* ================= SCROLL FADE ================= */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

.fade-in.show {
    opacity: 1;
    transform: translateY(0);
}

/* ================= HERO LOAD ANIMATION ================= */
.hero-animate {
    animation: heroFade 1s ease forwards;
}

@keyframes heroFade {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.intro-image {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.intro-image img {
    width: 100%;
    max-width: 650px;      /* Prevents it from becoming too wide */
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    object-fit: cover;
}
/* Slider Container */
.slider-container {
    position: relative;
    overflow: hidden;
    width: 100%;
}

/* Track */
.slider-track {
    display: flex;
    transition: transform 0.8s ease-in-out;
}

/* Slide */
.slide {
    flex: 0 0 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.6s ease; /* smooth scale */
}

.slide.active {
    transform: scale(1.02); /* slightly enlarge active slide */
}

/* Slide Image */
.slide img {
    width: 100%;
    max-width: 650px;
    height: 280px;
    object-fit: cover;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
}

/* Slide Caption */
.slide-caption {
    margin-top: 12px;
    font-size: 14px;
    color: var(--text-muted);
    text-align: center;
}

/* Navigation Buttons */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    z-index: 10;
    transition: background 0.3s ease;
}

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

.slider-btn:hover {
    background: rgba(0,0,0,0.7);
}

/* Responsive */
@media (max-width: 768px) {
    .slide img { height: 220px; }
    .slider-btn { padding: 10px; font-size: 18px; }
}

@media (min-width: 769px) and (max-width: 991px) {
    .slide img { height: 250px; }
}

@media (min-width: 992px) {
    .slide img { height: 280px; }
}
/* ================= BLOG IMAGES & VIDEOS ================= */
.blog-page img,
.blog-page video,
.blog-thumb img,
.blog-featured-image img,
.blog-content img,
.blog-content video {
    width: 100%;
    max-width: 100%;    /* never exceed container */
    height: auto;       /* keep aspect ratio */
    border-radius: var(--radius-md);
    margin: 15px 0;
    display: block;
}
/* ================= BLOG MEDIA RESPONSIVE ================= */
.blog-thumb img,
.blog-featured-image img,
.blog-video video {
    width: 100%;        /* full width of container */
    max-width: 650px;   /* cap width for large screens */
    height: auto;       /* maintain aspect ratio */
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    display: block;
    margin: 20px auto;  /* center on large screens */
}
/* ================= FOOTER CLEANUP ================= */
footer .floating-appointment {
    display: none; /* hides any floating buttons in the footer area */
}

/* Footer credit styling */
.footer-credit {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: #ffffff;
}

.footer-credit strong {
    font-weight: 600;
}
/* ================= ACHIEVEMENTS SECTION ================= */
.achievements-section {
    padding: 60px 20px;
    background: linear-gradient(120deg, #f0f4ff, #ffffff);
}

.achievements-container {
    max-width: 1000px;
    margin: 0 auto;
}

.achievements-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 50px;
    color: var(--primary);
    position: relative;
}

.achievements-title::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary);
    margin: 12px auto 0;
    border-radius: 2px;
}

.achievement-card {
    display: flex;
    gap: 25px;
    padding: 25px 30px;
    background: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    transition: all 0.4s ease;
    border-left: 6px solid var(--primary);
    align-items: flex-start;
}

.achievement-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.achievement-year {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    min-width: 90px;
    text-align: center;
}

.achievement-content {
    flex: 1;
}

.achievement-heading {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.achievement-description {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
    .achievement-card {
        flex-direction: column;
        padding: 20px;
    }

    .achievement-year {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .achievements-title {
        font-size: 28px;
    }
}
/* ================= WELCOME / INTRO CARD ================= */
.welcome-card {
    background: #ffffff;
    padding: 30px 25px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition);
}

.welcome-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.welcome-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 28px;
}

.welcome-icon svg {
    width: 28px;
    height: 28px;
}

.welcome-content {
    flex: 1;
}

.welcome-heading {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.welcome-description {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-muted);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .welcome-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .welcome-icon {
        margin-bottom: 15px;
    }

    .welcome-heading {
        font-size: 20px;
    }

    .welcome-description {
        font-size: 15px;
    }
}
/* Achievement Icons */
.achievement-year i {
    font-size: 28px;
    color: var(--primary);
}

/* Optional: Hover lift for achievement cards */
.achievement-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

/* Welcome Card Polishing */
.welcome-card {
    text-align: center;
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    max-width: 900px;
    margin: 0 auto 40px;
}

/* Highlight color in hero */
.hero-heading .highlight {
    color: var(--secondary);
}

/* Reuse existing stagger animation */
.animate-stagger {
    opacity: 0;
    transform: translateY(40px);
    animation: fadeSlideUp 1s forwards;
}

.animate-stagger.delay-1 {
    animation-delay: 0.4s;
}

.animate-stagger.delay-2 {
    animation-delay: 0.8s;
}

@keyframes fadeSlideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* ================= ANNOUNCEMENTS SECTION ================= */

/* Section Title */
.announcements-section .section-title {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 30px;
    position: relative;
}

/* Optional underline under title */
.announcements-section .section-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--primary);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* Grid wrapper for cards */
.announcements-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    padding: 0 10px;       /* small horizontal padding on mobile */
    box-sizing: border-box;
}

/* Announcement Card */
.announcement-card {
    width: 100%;
    background-color: var(--white);
    padding: 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.announcement-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

/* Media inside cards (images/videos) */
.announcement-media {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 15px 0;
}

/* Announcement Message */
.announcement-message {
    font-size: 15px;
    line-height: 1.7;
    color: #555;
}

/* ------------------ Responsive Grid ------------------ */

/* Medium / Tablet screens */
@media (min-width: 768px) {
    .announcements-section .section-title {
        font-size: 32px;
        margin-bottom: 35px;
    }
}

/* Large screens: 2 columns */
@media (min-width: 992px) {
    .announcements-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
        padding: 0;
    }

    .announcement-card {
        width: auto;   /* grid manages width */
        margin: 0;
    }
}

/* Extra-large screens: 3 columns */
@media (min-width: 1400px) {
    .announcements-section .section-title {
        font-size: 36px;
        margin-bottom: 40px;
    }

    .announcements-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 35px;
    }
}
/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

/* Gallery Images */
.gallery-img {
    width: 100%;
    height: 220px; /* consistent height */
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

/* First image larger on desktops */
@media screen and (min-width: 992px) {
    .first-img {
        grid-column: span 2;
        height: 400px;
    }
}

/* On mobile, all images full width and same height */
@media screen and (max-width: 768px) {
    .gallery-img {
        height: 220px;
    }
    .first-img {
        grid-column: span 1;
        height: 220px;
    }
}

.clinics-message {
    background: #f0f4ff;
    padding: 20px 25px;
    border-radius: var(--radius-md);
    margin-bottom: 30px;
    box-shadow: var(--shadow-soft);
    color: var(--text-dark);
    font-size: 16px;
    line-height: 1.6;
}
/* ================= CLINICS SECTION IN INDEX ================= */

.clinics-section {
    padding: 60px 20px;
    background: #f8fafc;
}

.clinics-section .section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 30px;
    color: var(--primary);
}

/* Clinics description box */
.clinics-message {
    max-width: 900px;
    margin: 0 auto 30px;
    text-align: center;
}

/* Clinics button alignment */
.clinics-section .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
}
#page-loader{
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.6); /* semi-transparent */
    backdrop-filter: blur(4px); /* premium glass effect */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#page-loader.hide{
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-box{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.spinner-ring{
    width: 78px;
    height: 78px;
    border-radius: 50%;
    border: 6px solid rgba(11, 94, 215, 0.12);
    border-top: 6px solid #0b5ed7;
    border-right: 6px solid #ffc107;
    animation: spin 1s linear infinite;
    box-shadow: 0 10px 30px rgba(11, 94, 215, 0.12);
}

.loader-percent{
    font-size: 1.3rem;
    font-weight: 800;
    color: #0b5ed7;
}

.loader-text{
    font-size: 0.95rem;
    color: #6b7280;
}

@keyframes spin{
    to{
        transform: rotate(360deg);
    }
}
body.loading main,
body.loading header {
    filter: blur(3px);
    transition: filter 0.4s ease;
}

body:not(.loading) main,
body:not(.loading) header {
    filter: blur(0);
}
.footer-social a {
    pointer-events: none;   /* disables clicking */
    cursor: default;        /* removes hand cursor */
    opacity: 0.7;           /* optional: shows it's inactive */
}