/* ===== DESIGN TOKENS ===== */
:root {
    --primary: #1e3a5f;
    --primary-dark: #142c4a;
    --primary-light: #2c5f9e;
    --primary-glow: rgba(30, 58, 95, 0.25);
    --accent: #c4a07c;
    --accent-dark: #a8865e;
    --accent-light: #d4b896;

    --bg-body: #f5f7fb;
    --bg-white: #ffffff;
    --bg-dark: #0d1b2a;
    --bg-dark-lighter: #1b2d45;
    --bg-section-alt: #edf1f8;

    --text-heading: #0d1b2a;
    --text-body: #4a5568;
    --text-light: #718096;
    --text-white: #ffffff;
    --text-on-dark: #cbd5e0;

    --border: #dce3ed;
    --border-light: rgba(255, 255, 255, 0.08);

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 24px 60px rgba(0, 0, 0, 0.15);
    --shadow-primary: 0 8px 30px rgba(30, 58, 95, 0.3);

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;
    --radius-full: 9999px;

    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Playfair Display', Georgia, serif;

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    --container: 1200px;
    --top-bar-height: 40px;
    --nav-height: 120px;
}

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-height) + 20px);
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-body);
    background: var(--bg-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

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

ul,
ol {
    list-style: none;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== UTILITY CLASSES ===== */
.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 12px;
    position: relative;
    padding-left: 40px;
}

.section-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 28px;
    height: 2px;
    background: var(--primary);
    transform: translateY(-50%);
}

.section-label.center {
    display: block;
    text-align: center;
    padding-left: 0;
}

.section-label.center::before {
    display: none;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    color: var(--text-heading);
    line-height: 1.25;
    margin-bottom: 16px;
}

.section-title.center {
    text-align: center;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-light);
    max-width: 600px;
    margin-bottom: 48px;
}

.section-desc.center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: var(--radius-full);
    transition: all var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--text-white);
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(14, 122, 110, 0.4);
}

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

.btn-outline:hover {
    background: var(--text-white);
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-card {
    padding: 10px 24px;
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-white);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-full);
}

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

.btn-lg {
    padding: 18px 44px;
    font-size: 1rem;
}

/* ===== TOP BAR ===== */
.top-bar {
    background: var(--bg-dark);
    color: var(--text-on-dark);
    font-size: 0.82rem;
    height: var(--top-bar-height);
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1001;
}

.top-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.top-bar-left a,
.top-bar-left span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-on-dark);
    font-size: 0.82rem;
}

.top-bar-left a:hover {
    color: var(--primary-light);
}

.top-bar-left i {
    color: var(--primary-light);
    font-size: 0.78rem;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.top-bar-right a {
    color: var(--text-on-dark);
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all var(--transition);
    font-size: 0.8rem;
}

.top-bar-right a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-light);
}

/* ===== NAVBAR ===== */
.navbar {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    height: var(--nav-height);
    display: flex;
    align-items: center;
    z-index: 1000;
    transition: all var(--transition);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid var(--border);
    height: 68px;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-img {
    height: 80px;
    width: auto;
    object-fit: contain;
    transition: transform var(--transition);
}

.logo-text {
    font-size: 26px;
    font-weight: 900;
    color: var(--text-heading);
    margin-left: 10px;
    font-family: var(--font-body);
    transition: font-size var(--transition);
}

.logo:hover .logo-img {
    transform: scale(1.03);
}

.navbar.scrolled .logo-img {
    height: 80px;
}

.navbar.scrolled .logo-text {
    font-size: 22px;
}

/* Footer Logo */
.footer-logo-img {
    height: 70px;
    filter: brightness(1.1);
}

/* Nav Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.nav-links a {
    padding: 8px 16px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--text-heading);
    border-radius: var(--radius-full);
    transition: all var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: all var(--transition);
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 20px;
}

/* WhatsApp Button */
.btn-whatsapp {
    padding: 10px 24px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: var(--text-white);
    border-radius: var(--radius-full);
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
    transition: all var(--transition);
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-whatsapp i {
    font-size: 1.1rem;
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(37, 211, 102, 0.45);
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    cursor: pointer;
}

.mobile-toggle span {
    display: block;
    width: 100%;
    height: 2.5px;
    background: var(--text-heading);
    border-radius: 4px;
    transition: all var(--transition);
    transform-origin: center;
}

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

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    height: 85vh;
    min-height: 550px;
    max-height: 800px;
    overflow: hidden;
}

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

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    animation: heroZoom 12s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    from {
        transform: scale(1.05);
    }

    to {
        transform: scale(1.12);
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(11, 26, 42, 0.82) 0%,
            rgba(14, 122, 110, 0.45) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-bottom: 60px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 5.5vw, 3.8rem);
    font-weight: 800;
    color: var(--text-white);
    line-height: 1.2;
    margin-bottom: 20px;
    animation: fadeSlideUp 1s ease-out;
}

.hero-title span {
    color: red;
    display: inline-block;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255, 255, 255, 0.85);
    max-width: 560px;
    margin-bottom: 36px;
    line-height: 1.8;
    animation: fadeSlideUp 1s ease-out 0.15s backwards;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeSlideUp 1s ease-out 0.3s backwards;
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slider Controls */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    color: white;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.slider-arrow:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-50%) scale(1.1);
}

.slider-prev {
    left: 24px;
}

.slider-next {
    right: 24px;
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}

.slider-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    transition: all var(--transition);
    border: none;
    cursor: pointer;
}

.slider-dots .dot.active {
    background: var(--primary-light);
    width: 32px;
    border-radius: 6px;
}

/* ===== SERVICE CARDS BAR ===== */
.service-cards-bar {
    position: relative;
    z-index: 5;
    margin-top: -70px;
    padding-bottom: 40px;
}

.service-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.service-card-item {
    padding: 40px 32px;
    background: var(--bg-dark);
    text-align: center;
    color: var(--text-white);
    transition: all var(--transition-slow);
    position: relative;
    overflow: hidden;
}

.service-card-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transform: scaleX(0);
    transition: transform var(--transition);
}

.service-card-item:hover::before {
    transform: scaleX(1);
}

.service-card-item.highlight {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.service-card-icon {
    font-size: 2.4rem;
    margin-bottom: 18px;
    color: var(--primary-light);
}

.service-card-item.highlight .service-card-icon {
    color: rgba(255, 255, 255, 0.9);
}

.service-card-item h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.service-card-item p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.service-card-item.highlight p {
    color: rgba(255, 255, 255, 0.8);
}

.service-card-item:hover {
    transform: translateY(-4px);
}

/* Hours list inside card */
.hours-list {
    text-align: left;
}

.hour-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* ===== ABOUT SECTION ===== */
.about-section {
    padding: 100px 0;
    background: var(--bg-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    font-size: 1.05rem;
    line-height: 1.9;
    margin-bottom: 28px;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 32px;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-heading);
}

.about-feature i {
    color: var(--primary);
    font-size: 1.1rem;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    height: 420px;
    object-fit: cover;
}

.about-image-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 200px;
    height: 200px;
    border: 4px solid var(--primary-light);
    border-radius: var(--radius-lg);
    z-index: -1;
    opacity: 0.3;
}

/* ===== STATS SECTION ===== */
.stats-section {
    position: relative;
    background-image: url('https://images.unsplash.com/photo-1504439468489-c8920d796a29?w=1400&q=60');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 80px 0;
}

.stats-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(11, 26, 42, 0.92), rgba(14, 122, 110, 0.85));
}

.stats-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    text-align: center;
}

.stat-item {
    padding: 32px 16px;
    transition: transform var(--transition);
}

.stat-item:hover {
    transform: translateY(-6px);
}

.stat-icon {
    font-size: 2.4rem;
    color: var(--primary-light);
    margin-bottom: 16px;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-white);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 0.5px;
}

/* ===== MVM (Mission/Vision/Motto) ===== */
.mvm-section {
    padding: 100px 0;
    background: var(--bg-section-alt);
}

.mvm-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.mvm-card {
    background: var(--bg-white);
    padding: 44px 32px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.mvm-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transform: scaleX(0);
    transition: transform var(--transition-slow);
}

.mvm-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.mvm-card:hover::after {
    transform: scaleX(1);
}

.mvm-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, rgba(14, 122, 110, 0.08), rgba(14, 122, 110, 0.15));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 1.8rem;
    color: var(--primary);
    transition: all var(--transition);
}

.mvm-card:hover .mvm-icon {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--text-white);
    transform: scale(1.1);
}

.mvm-card h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--text-heading);
    margin-bottom: 14px;
}

.mvm-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-light);
}

/* ===== DOCTORS SECTION ===== */
.doctors-section {
    padding: 100px 0;
    background: var(--bg-white);
}

.doctors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 20px 60px;
    max-width: 1100px;
    margin: 0 auto;
    justify-content: center;
}

/* ===== FEATURED DOCTOR (standalone above grid) ===== */
.featured-doctor-wrap {
    max-width: 100%;
    margin: 0 auto 48px auto;
}

.featured-doctor-wrap .doctor-card {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(30, 58, 95, 0.15);
    border: 2px solid var(--primary-light);
}

.featured-doctor-image {
    width: 100%;
    aspect-ratio: 16 / 7;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #d6e4f7;
    line-height: 0;
}

.featured-doctor-image img {
    display: none;
}

.featured-doctor-wrap .doctor-info {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    padding: 20px 24px;
}

.featured-doctor-wrap .doctor-info h4 {
    color: #fff;
    font-size: 1.3rem;
}

.featured-doctor-wrap .doctor-info p {
    color: rgba(255, 255, 255, 0.85);
}

.doctor-card.featured-doctor {
    grid-column: unset;
}

.doctor-card {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    background: white;
}

.doctor-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    object-position: top;
}

.doctor-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.doctor-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
    position: relative;
}

.doctor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.4s ease;
}

.doctor-card:hover .doctor-image img {
    transform: scale(1.08);
}

.doctor-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(14, 122, 110, 0.9) 0%, transparent 60%);
    opacity: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 24px;
    transition: opacity var(--transition);
}

.doctor-card:hover .doctor-overlay {
    opacity: 1;
}

.doctor-socials {
    display: flex;
    gap: 10px;
}

.doctor-socials a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    transition: all var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.25);
    transform: translateY(20px);
    opacity: 0;
    animation: none;
}

.doctor-card:hover .doctor-socials a {
    transform: translateY(0);
    opacity: 1;
}

.doctor-card:hover .doctor-socials a:nth-child(1) {
    transition-delay: 0.05s;
}

.doctor-card:hover .doctor-socials a:nth-child(2) {
    transition-delay: 0.1s;
}

.doctor-card:hover .doctor-socials a:nth-child(3) {
    transition-delay: 0.15s;
}

.doctor-socials a:hover {
    background: var(--text-white);
    color: var(--primary);
}

.doctor-info {
    padding: 24px;
    text-align: center;
}

.doctor-info h4 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--text-heading);
    margin-bottom: 4px;
}

.doctor-info p {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 500;
}

/* ===== SERVICES SECTION ===== */
.services-section {
    padding: 100px 0;
    background: var(--bg-section-alt);
}

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

.service-item {
    background: var(--bg-white);
    padding: 40px 32px;
    border-radius: var(--radius-lg);
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(to bottom, var(--primary), var(--primary-light));
    transition: height var(--transition-slow);
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-item:hover::before {
    height: 100%;
}

.service-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(14, 122, 110, 0.08), rgba(14, 122, 110, 0.15));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--primary);
    margin-bottom: 20px;
    transition: all var(--transition);
}

.service-item:hover .service-icon {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--text-white);
    transform: scale(1.08) rotate(-5deg);
}

.service-item h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--text-heading);
    margin-bottom: 12px;
}

.service-item p {
    font-size: 0.92rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* ===== PHARMACY SECTION ===== */
.pharmacy-section {
    padding: 100px 0;
    background: var(--bg-white);
}

.pharmacy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.pharmacy-image {
    position: relative;
}

.pharmacy-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.pharmacy-text p {
    font-size: 1.05rem;
    line-height: 1.9;
    margin-bottom: 28px;
}

.pharmacy-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 32px;
}

.pharmacy-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-heading);
    padding: 10px 16px;
    background: var(--bg-section-alt);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.pharmacy-feature:hover {
    background: rgba(14, 122, 110, 0.08);
    transform: translateX(4px);
}

.pharmacy-feature i {
    color: var(--primary);
    font-size: 1rem;
}

/* ===== BLOG SECTION ===== */
.blog-section {
    padding: 100px 0;
    background: var(--bg-section-alt);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.blog-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: all var(--transition);
}

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

.blog-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.blog-card:hover .blog-image img {
    transform: scale(1.06);
}

.blog-category {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 5px 14px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--text-white);
    border-radius: var(--radius-full);
}

.blog-content {
    padding: 24px;
}

.blog-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
}

.blog-meta span {
    font-size: 0.8rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-meta i {
    color: var(--primary);
}

.blog-content h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.blog-content h3 a {
    color: var(--text-heading);
}

.blog-content h3 a:hover {
    color: var(--primary);
}

.blog-content>p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 16px;
    line-height: 1.6;
}

.blog-read-more {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap var(--transition);
}

.blog-read-more:hover {
    gap: 12px;
    color: var(--primary-dark);
}

/* ===== CTA SECTION ===== */
.cta-section {
    position: relative;
    background-image: url('https://images.unsplash.com/photo-1579684385127-1ef15d508118?w=1400&q=60');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 100px 0;
}

.cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(14, 122, 110, 0.92), rgba(11, 26, 42, 0.88));
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.cta-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 16px;
}

.cta-content h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: var(--text-white);
    margin-bottom: 32px;
}

/* ===== TESTIMONIALS ===== */
.testimonials-section {
    padding: 100px 0;
    background: var(--bg-white);
}

.testimonials-slider {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    min-height: 220px;
}

.testimonial-card {
    display: none;
    padding: 40px;
    background: var(--bg-section-alt);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    text-align: center;
    animation: fadeIn 0.5s ease-out;
}

.testimonial-card.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.testimonial-quote {
    font-size: 2rem;
    color: var(--primary-light);
    margin-bottom: 16px;
    opacity: 0.5;
}

.testimonial-card p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-body);
    font-style: italic;
    margin-bottom: 24px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.testimonial-avatar {
    font-size: 2.8rem;
    color: var(--primary);
    opacity: 0.6;
}

.testimonial-author strong {
    display: block;
    font-size: 1rem;
    color: var(--text-heading);
}

.testimonial-author span {
    font-size: 0.82rem;
    color: var(--text-light);
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 28px;
}

.testimonial-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border);
    transition: all var(--transition);
    border: none;
    cursor: pointer;
}

.testimonial-dots .dot.active {
    background: var(--primary);
    width: 32px;
    border-radius: 6px;
}

/* ===== FAQ ===== */
.faq-section {
    padding: 100px 0;
    background: var(--bg-section-alt);
}

.faq-grid {
    max-width: 800px;
    margin: 32px auto 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: box-shadow var(--transition);
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
}

.faq-question {
    width: 100%;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-heading);
    text-align: left;
    cursor: pointer;
    transition: color var(--transition);
}

.faq-question:hover {
    color: var(--primary);
}

.faq-question i {
    font-size: 0.8rem;
    color: var(--primary);
    transition: transform var(--transition);
    flex-shrink: 0;
    margin-left: 16px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

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

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding: 0 24px 20px;
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* ===== GALLERY ===== */
.gallery-section {
    padding: 100px 0;
    background: var(--bg-white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 48px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 240px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(14, 122, 110, 0.8), transparent);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity var(--transition);
}

.gallery-overlay i {
    color: var(--text-white);
    font-size: 1.6rem;
    transform: scale(0.8);
    transition: transform var(--transition);
}

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

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-overlay i {
    transform: scale(1);
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    padding: 100px 0;
    background: var(--bg-section-alt);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    margin-top: 48px;
}

.contact-hours {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 40px 32px;
    border-radius: var(--radius-lg);
    color: var(--text-white);
}

.contact-hours h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 24px;
}

.hours-table {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hour-entry {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.92rem;
}

.hour-entry:last-child {
    border-bottom: none;
}

/* Contact Form */
.contact-form-wrap {
    background: var(--bg-white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-heading);
    background: var(--bg-body);
    transition: all var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow);
    background: var(--bg-white);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Contact Info Cards */
.contact-info-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.contact-info-card {
    background: var(--bg-white);
    padding: 32px 24px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.contact-info-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.contact-info-card i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 16px;
}

.contact-info-card h4 {
    font-size: 1.05rem;
    color: var(--text-heading);
    margin-bottom: 8px;
}

.contact-info-card a,
.contact-info-card p {
    font-size: 0.9rem;
    color: var(--text-light);
}

.contact-info-card a:hover {
    color: var(--primary);
}

/* Map */
.map-embed {
    margin-top: 40px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.map-embed iframe {
    display: block;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-dark);
    color: var(--text-on-dark);
    padding-top: 80px;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo .logo-icon {
    width: 42px;
    height: 42px;
    font-size: 1.2rem;
}

.footer-logo .logo-name {
    color: var(--text-white);
    font-size: 0.95rem;
}

.footer-logo .logo-tagline {
    color: var(--primary-light);
}

.footer-about p {
    font-size: 0.92rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.6);
}

.footer-posts h4,
.footer-tags h4 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--text-white);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

.footer-post {
    display: flex;
    gap: 14px;
    margin-bottom: 18px;
}

.footer-post img {
    width: 65px;
    height: 65px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
}

.footer-post a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
    display: block;
    margin-bottom: 6px;
    transition: color var(--transition);
}

.footer-post a:hover {
    color: var(--primary-light);
}

.footer-post span {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.45);
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-post span i {
    color: var(--primary-light);
}

.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tags-cloud a {
    padding: 6px 14px;
    font-size: 0.78rem;
    font-weight: 500;
    background: var(--bg-dark-lighter);
    color: rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
    transition: all var(--transition);
}

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

.footer-bottom {
    margin-top: 60px;
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--bg-dark-lighter);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    transition: all var(--transition);
    border: 1px solid var(--border-light);
}

.footer-social a:hover {
    background: var(--primary);
    color: var(--text-white);
    transform: translateY(-3px);
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--primary-light);
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--text-white);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-primary);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(14, 122, 110, 0.45);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .nav-links {
        display: none;
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: var(--bg-white);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-lg);
        border-top: 1px solid var(--border);
        height: auto;
        max-height: calc(100vh - var(--nav-height));
        overflow-y: auto;
        gap: 10px;
        z-index: 1001;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        padding: 14px 20px;
        font-size: 0.95rem;
        border-radius: var(--radius-sm);
    }

    .nav-links a:hover {
        background: var(--bg-section-alt);
    }

    .mobile-only {
        display: flex !important;
        margin: 12px 20px 4px 20px;
        width: calc(100% - 40px);
        justify-content: center;
        align-items: center;
        border-radius: var(--radius-full) !important;
        padding: 12px 24px !important;
    }

    .mobile-only::after {
        display: none !important;
    }

    .desktop-only {
        display: none !important;
    }

    .mobile-toggle {
        display: flex;
    }

    .about-grid,
    .pharmacy-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image {
        order: -1;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .doctors-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 columns on tablet */
        padding: 20px 30px;
    }

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .mvm-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .logo-img {
        height: 80px;
        width: auto;
        object-fit: contain;
        transition: transform var(--transition);
    }
}

@media (max-width: 600px) {
    .doctors-grid {
        grid-template-columns: 1fr;
        padding: 0;
    }
}

@media (max-width: 768px) {
    .top-bar-left {
        gap: 12px;
    }

    .top-bar-left span {
        display: none;
    }

    .service-cards-grid {
        grid-template-columns: 1fr;
        margin-top: -40px;
    }

    .hero {
        height: 70vh;
        min-height: 450px;
    }

    .hero-title {
        font-size: clamp(1.6rem, 6vw, 2.4rem);
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    /* Featured doctor - full width on mobile */
    .featured-doctor-wrap {
        grid-template-columns: 1fr;
        padding: 0;
        gap: 16px;
    }

    /* Regular doctors grid - single column */
    .doctors-grid {
        grid-template-columns: 1fr;
        padding: 0;
        gap: 16px;
    }

    .doctor-image {
        height: 260px;
    }

    .doctor-card img {
        height: 260px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-info-cards {
        grid-template-columns: 1fr;
    }

    .logo-img {
        height: 60px;
        width: auto;
        object-fit: contain;
        transition: transform var(--transition);
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom-inner {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .pharmacy-features {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .doctors-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 columns on tablet */
    }
}

@media (max-width: 480px) {
    .top-bar {
        display: none;
    }

    .hero {
        height: 65vh;
        min-height: 400px;
    }

    .slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }

    .slider-prev {
        left: 12px;
    }

    .slider-next {
        right: 12px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .contact-form-wrap {
        padding: 24px;
    }

    .featured-doctor-wrap .doctor-card {
        border-radius: 12px;
        border-width: 1px;
    }

    .featured-doctor-wrap .doctor-info h4 {
        font-size: 1.1rem;
    }

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

/* ===== SMOOTH SCROLL REVEAL ANIMATION ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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



/* ===== PAGE HEADER ===== */
.page-header {
    position: relative;
    height: 350px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.page-header-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(11, 26, 42, 0.85), rgba(14, 122, 110, 0.7));
}

.page-header-content {
    position: relative;
    z-index: 1;
    color: var(--text-white);
    padding: 0 24px;
}

.page-header-content h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 16px;
}

.page-header-content p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
}



.mobile-only {
    display: none;
}

.desktop-only {
    display: inline-flex;
}
