/*==================================================
ST. CALLISTUS HOSPITAL & MATERNITY
Premium Hospital Website - Corporate Identity System
==================================================*/

@import url('../../css2');

/*==============================
ROOT VARIABLES & DESIGN SYSTEM
==============================*/
:root {
    --primary: #0B5ED7;
    --primary-dark: #0645A3;
    --primary-light: #E9F5FF;
    --secondary: #22C55E;
    
    --white: #ffffff;
    --black: #1E293B;
    --text-main: #475569;
    --text-muted: #64748B;
    
    --glass-bg: rgba(255, 255, 255, 0.10);
    --glass-border: rgba(255, 255, 255, 0.20);
    --overlay-gradient: linear-gradient(to right, rgba(8, 37, 86, 0.75), rgba(15, 23, 42, 0.70));
    
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 20px 40px rgba(8, 66, 152, 0.10);
    
    --transition: cubic-bezier(0.4, 0, 0.2, 1);
}

/*==============================
RESET & GLOBAL BASE
==============================*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--white);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.5;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    transition: all 0.3s var(--transition);
}

ul {
    list-style: none;
}

.container {
    width: 92%;
    max-width: 1240px;
    margin: 0 auto;
}

/*==============================
TOP BAR
==============================*/
.topbar {
    background: var(--primary);
    color: var(--white);
    height: 40px;
    display: flex;
    align-items: center;
    font-size: 13.5px;
    font-weight: 500;
    position: relative;
    z-index: 1001;
}

.topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.top-left i {
    margin-right: 4px;
}

.divider {
    width: 1px;
    height: 14px;
    background: rgba(255, 255, 255, 0.3);
}

.top-right {
    font-weight: 500;
}

/*==============================
HEADER & NAVBAR
==============================*/
.header {
    position: absolute;
    top: 40px;
    left: 0;
    width: 100%;
    background: var(--white);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s var(--transition);
}

.header.sticky {
    position: fixed;
    top: 0;
    box-shadow: var(--shadow-md);
    animation: slideDown 0.4s var(--transition) forwards;
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

.navbar {
    height: 84px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 46px;
    object-fit: contain;
}

/* Navigation Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 26px;
}

.nav-links a {
    color: #24324B;
    font-size: 15px;
    font-weight: 600;
}

.nav-links a:not(.active):hover {
    color: var(--primary);
}

.nav-links .active {
    background: var(--primary-light);
    color: var(--primary);
    padding: 10px 20px;
    border-radius: 30px;
}

/* Action Area Elements */
.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.emergency-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.phone-icon {
    width: 44px;
    height: 44px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary);
    font-size: 16px;
}

.emergency-box small {
    display: block;
    color: var(--text-muted);
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.emergency-box h5 {
    color: var(--primary);
    font-size: 16px;
    font-weight: 700;
}

/* Refined Pill CTA Button Layout Sizes */
.appointment-btn {
    background: linear-gradient(135deg, #0D6EFD 0%, #0A58CA 100%) !important;
    color: var(--white);
    padding: 12px 24px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14.5px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(11, 94, 215, 0.2);
}

.appointment-btn:hover {
    background: linear-gradient(135deg, #0A58CA 0%, #084298 100%) !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(11, 94, 215, 0.3);
}

.menu-btn {
    display: none;
    font-size: 26px;
    color: #24324B;
    cursor: pointer;
}

/*==================================================
HERO SECTION (UNIFIED LUXURY DESIGN)
==================================================*/
.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background: url('../images/hero/hero-bg.jpg') center center/cover no-repeat fixed;
    overflow: hidden;
    display: flex;
    align-items: center;
}

/* Full Screen Seamless Overlay Gradient (No center line cuts) */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--overlay-gradient);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 5;
}

.hero-content {
    max-width: 650px;
    color: var(--white);
    padding-top: 120px;
    padding-bottom: 40px;
}

/* Premium Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 30px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    margin-bottom: 24px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.hero-badge span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--secondary);
}

/* Optimized Luxury Desktop Header Text Scales */
.hero-slide {
    display: none;
}

.hero-slide.active {
    display: block;
}

.hero-slide h1 {
    font-size: 52px;
    line-height: 1.2;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
    animation: fadeSlideUp 0.6s ease forwards;
}

.hero-slide p {
    font-size: 18px;
    line-height: 1.6;
    color: rgba(241, 245, 249, 0.95);
    max-width: 580px;
    animation: fadeSlideUp 0.8s ease forwards;
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dynamic Gradient Pill Buttons */
.hero-buttons {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 36px;
}

/* Force Primary Gradient to Load Everywhere */
.btn-primary, 
.btn-primary-gradient {
    background: linear-gradient(135deg, #0D6EFD 0%, #0A58CA 100%) !important;
    color: var(--white) !important;
    padding: 14px 30px;
    border-radius: 50px;
    font-size: 15.5px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none !important;
    transition: all 0.3s var(--transition);
}

.btn-primary:hover, 
.btn-primary-gradient:hover {
    background: linear-gradient(135deg, #0A58CA 0%, #084298 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.4);
}

/* Force Secondary Transparent Glass Gradient to Load Everywhere */
.btn-secondary {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%) !important;
    border: 2px solid rgba(255, 255, 255, 0.5) !important;
    color: var(--white) !important;
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 15.5px;
    font-weight: 600;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s var(--transition);
}

.btn-secondary:hover {
    background: var(--white) !important;
    color: var(--primary) !important;
    border-color: var(--white) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}

.btn-primary i, 
.btn-primary-gradient i, 
.btn-secondary i {
    font-size: 16px;
}

/* Slider Pagination Setup */
.slider-dots {
    display: flex;
    gap: 8px;
    margin-top: 40px;
}

.slider-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dots span.active {
    width: 28px;
    border-radius: 10px;
    background: #2BC8FF;
}

/* Floating Clean Vector Icons */
.hero-icon {
    position: absolute;
    color: rgba(255, 255, 255, 0.12);
    z-index: 3;
    pointer-events: none;
}

.icon-heart { top: 20%; right: 10%; font-size: 50px; animation: floatAnim 6s ease-in-out infinite; }
.icon-stethoscope { top: 40%; right: 25%; font-size: 38px; animation: floatAnim 8s ease-in-out infinite 1s; }
.icon-ecg { bottom: 20%; right: 12%; font-size: 46px; animation: floatAnim 7s ease-in-out infinite 0.5s; }

@keyframes floatAnim {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* Scroll Mouse Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 26px;
    height: 42px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 30px;
    z-index: 6;
    opacity: 0.6;
}

.scroll-indicator::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 6px;
    width: 4px;
    height: 8px;
    background: var(--white);
    border-radius: 4px;
    transform: translateX(-50%);
    animation: mouseWheel 2s infinite;
}

@keyframes mouseWheel {
    0% { opacity: 0; transform: translate(-50%, 0); }
    40% { opacity: 1; }
    100% { opacity: 0; transform: translate(-50%, 12px); }
}

/*==================================================
MOBILE MENU SYSTEM (High-Target Selectors)
==================================================*/
.mobile-menu, 
#mobileMenu, 
#mobile-menu {
    position: fixed;
    top: 0;
    right: -100% !important;
    width: 310px;
    height: 100vh;
    background: var(--white);
    z-index: 10000;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    padding: 24px;
    overflow-y: auto;
    box-shadow: -10px 0 35px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
}

.mobile-menu.active, #mobileMenu.active, #mobile-menu.active,
.mobile-menu.show,   #mobileMenu.show,   #mobile-menu.show,
.mobile-menu.open,   #mobileMenu.open,   #mobile-menu.open {
    right: 0 !important;
}

.mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.mobile-header img {
    height: 40px;
    object-fit: contain;
}

.close-menu,
.close-menu i {
    font-size: 26px;
    cursor: pointer;
    color: #222;
}

.mobile-menu ul {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 40px;
}

.mobile-menu ul li a {
    color: #24324B;
    font-size: 16.5px;
    font-weight: 600;
    display: block;
    padding: 12px 16px;
    border-radius: 12px;
}

.mobile-menu ul li a.active {
    background: var(--primary-light);
    color: var(--primary);
}

.mobile-btn {
    display: block;
    text-align: center;
    margin-top: 0;
    background: linear-gradient(135deg, #0D6EFD 0%, #0A58CA 100%) !important;
    color: var(--white);
    padding: 14px 24px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(11, 94, 215, 0.2);
    border: none;
    outline: none;
}

.mobile-btn:hover {
    background: linear-gradient(135deg, #0A58CA 0%, #084298 100%) !important;
}

/*==================================================
RESPONSIVE BREAKPOINTS
==================================================*/
@media (max-width: 1200px) {
    .hero-slide h1 { font-size: 46px; }
    .nav-links { gap: 18px; }
    .nav-links a { font-size: 14px; }
}

@media (max-width: 992px) {
    .topbar { display: none; }
    .header { top: 0; }
    .navbar { height: 74px; }
    .nav-links, .nav-right { display: none; }
    .menu-btn { display: block; }
    
    .hero-content { max-width: 100%; padding-top: 90px; text-align: center; }
    .hero-buttons { justify-content: center; }
    .slider-dots { justify-content: center; }
    .hero-slide h1 { font-size: 42px; }
    .hero-slide p { margin: 0 auto; }
}

@media (max-width: 576px) {
    .navbar { height: 68px; }
    .logo img { height: 36px; }
    
    .hero-badge { font-size: 11.5px; padding: 6px 14px; }
    .hero-slide h1 { font-size: 32px; }
    .hero-slide p { font-size: 14.5px; }
    
    .hero-buttons { flex-direction: column; width: 100%; gap: 12px; }
    .btn-primary, .btn-primary-gradient, .btn-secondary { 
        width: 100% !important; 
        display: inline-flex !important;
        justify-content: center !important; 
        align-items: center !important;
        text-align: center !important; 
        padding: 14px !important; 
        font-size: 15px !important; 
    }
    
    .mobile-menu, #mobileMenu, #mobile-menu { width: 100%; }
    
    /* ==========================================================================
   UPDATED: ABOUT US MOBILE FIXES & LOVABLE BUTTON
   ========================================================================== */
.about-us {
    padding: 50px 0;
}

.about-content h2 {
    font-size: 28px;
    line-height: 1.3;
}

.about-features {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important; /* Retains clean side-by-side layout */
    gap: 16px 12px;
}

/* Lovable AI Premium Blue Gradient Button Style */
.about-content .primary-btn {
    /* 👉 CHANGED TO SOLID BLUE COLOR */
    background: #2563eb !important; 
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* 👉 UPDATED SHADOW COLOR TO MATCH */
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3); 
    padding: 12px 28px !important;
    font-size: 14.5px !important;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 30px; /* Gives it that clean pill shape from the reference image */
}

.about-content .primary-btn:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%) !important;
    box-shadow: 0 6px 20px rgba(29, 78, 216, 0.4);
    transform: translateY(-1px);
}

/* ==========================================================================
   UPDATED: 2-COLUMN RESPONSIVE STATS GRID WITH PREMIUM GRADIENT BACKGROUND
   Matches WhatsApp Image 2026-07-04 at 12.22.45 (1).jpeg Exactly
   ========================================================================== */
.stats-section {
    padding: 55px 0;
    width: 100% !important;
    overflow: hidden !important;
    
    /* ðŸ‘‰ UPDATED: Premium Lovable AI Blue Gradient Backdrop */
    background: linear-gradient(135deg, #0d6efd 0%, #1e40af 50%, #2563eb 100%) !important;
}

.stats-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important; /* Default desktop 4-column row layout */
    gap: 36px 16px !important;
    padding: 0 8px;
    width: 100% !important;
}

.stats-section .stat {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #FFFFFF !important; /* Forces numerical elements to stand out cleanly against the new gradient */
}

.stats-section .stat h2 {
    font-size: 38px !important;
    font-weight: 700 !important;
    margin-bottom: 4px;
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.stats-section .stat p {
    font-size: 13.5px !important;
    opacity: 0.9;
    white-space: normal !important; 
    line-height: 1.3;
    max-width: 140px; /* Safely constrains text lines so they match the compact alignment */
    margin: 0 auto;
}

/* ==========================================================================
   ðŸ“± MOBILE SPECIFIC CENTERING & SCALING SIZES (Prevents Page Shifting)
   ========================================================================== */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important; /* Perfect 2x2 grid split layout on mobile */
        gap: 32px 16px !important;
        padding: 0 16px !important;
        box-sizing: border-box !important;
    }

    .stats-section .stat {
        align-items: center !important;       /* Perfectly centers the text elements horizontally */
        justify-content: center !important;
        width: 100% !important;
    }

    .stats-section .stat h2 {
        font-size: 28px !important;            /* Scaled down beautifully from 38px for mobile screens */
        margin: 0 0 6px 0 !important;
        line-height: 1.2 !important;
    }

    .stats-section .stat p {
        font-size: 13px !important;
        max-width: 130px !important;           /* Keeps short description text centered in the columns */
    }
}

    /* ==========================================
       NEW: SERVICES TWO-COLUMN MOBILE GRID
       Matches WhatsApp Image 2026-07-04 at 10.20.51.jpeg
       ========================================== */
    .services {
        padding: 60px 0;
        background-color: #f8fafc; 
    }

    .services .section-title h2 {
        font-size: 28px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px;
        padding: 0 4px;
    }

    .service-card {
        padding: 24px 12px;
        border-radius: 16px;
    }

    .service-icon {
        width: 56px;
        height: 56px;
        font-size: 20px;
        margin-bottom: 16px;
    }

    .service-card h3 {
        font-size: 14px;
        word-wrap: break-word;
    }
}

/*==================================================
FLOATING GLASS INFO BAR
Premium Rich Blue Crystal Glassmorphic Marquee Style
==================================================*/

.hospital-marquee {
    position: relative;
    z-index: 10;
    margin-top: -45px;   /* Pulls bar up to overlap Hero */
    margin-bottom: -45px; /* Pushes down to overlap Services */
    padding: 0;
    font-family: 'Poppins', sans-serif;
}

.hospital-marquee .container {
    max-width: 1320px;
    width: 92%;
    margin: 0 auto;
}

/* Rich Premium Blue Crystal Glassmorphism Wrapper */
.hospital-marquee-wrapper {
    display: flex;
    align-items: center;
    background: linear-gradient(
        135deg,
        rgba(18, 82, 170, 0.82) 0%,
        rgba(26, 108, 210, 0.72) 50%,
        rgba(48, 132, 255, 0.62) 100%
    );
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 22px;
    padding: 16px 32px;
    box-shadow: 0 20px 60px rgba(8, 37, 86, 0.25);
    overflow: hidden;
    gap: 32px;
}

/* Brand Logo Container */
.hospital-brand {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    border-right: 2px solid rgba(255, 255, 255, 0.2); /* White translucent divider for blue backdrop */
    padding-right: 32px;
    height: 50px;
}

.hospital-brand img {
    height: 50px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0px 1px 2px rgba(0, 0, 0, 0.1));
}

/* News Ticker Container */
.hospital-news {
    flex-grow: 1;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}

/* Continuous Infinite Ticker Track */
.hospital-track {
    display: flex;
    align-items: center;
    white-space: nowrap;
    gap: 24px;
    padding-left: 100%; /* Starting position initialization */
    animation: hospitalMarqueeLinear 25s linear infinite;
}

/* Pure Premium White Typography for Perfect Blue Contrast */
.hospital-track span {
    color: #ffffff; 
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.2px;
    display: inline-flex;
    align-items: center;
    text-shadow: 0 1px 3px rgba(8, 37, 86, 0.25);
}

/* High-Contrast Crisp White Circular Dot Separators */
.hospital-track span:nth-child(even) {
    color: transparent;
    width: 6px;
    height: 6px;
    background-color: #ffffff; 
    border-radius: 50%;
    display: inline-block;
    margin: 0 8px;
    text-shadow: none;
    box-shadow: 0 1px 3px rgba(8, 37, 86, 0.25);
}

/* Pause track configuration on hover interaction */
.hospital-news:hover .hospital-track {
    animation-play-state: paused;
}

/* Pure CSS Linear Infinite Translation Animation */
@keyframes hospitalMarqueeLinear {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-100%, 0, 0);
    }
}

/* Responsive adjustments inside the media query blocks */
@media (max-width: 992px) {
    .hospital-marquee-wrapper {
        gap: 24px;
        padding: 14px 24px;
    }
    .hospital-brand {
        padding-right: 24px;
    }
    .hospital-track {
        animation-duration: 20s;
    }
}

@media (max-width: 768px) {
    .hospital-marquee {
        margin-top: -35px;
        margin-bottom: -35px;
    }
    
    /* Layout reflow for responsive screens (Logo stays top, ticker below) */
    .hospital-marquee-wrapper {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
        padding: 20px 16px;
        border-radius: 18px;
    }
    
    .hospital-brand {
        border-right: none;
        padding-right: 0;
        height: 40px;
        justify-content: center;
    }
    
    .hospital-brand img {
        height: 40px;
    }
    
    .hospital-news {
        width: 100%;
    }
    
    .hospital-track {
        gap: 16px;
    }
}

/*==================================================
SERVICES SECTION
Luxury Hospital Style - Based on image_60ee20.png
==================================================*/

.services {
    padding: 120px 0;
    background-color: #ffffff;
    font-family: 'Poppins', sans-serif;
}

.services .container {
    max-width: 1320px;
    width: 92%;
    margin: 0 auto;
}

/* Header Text Styles */
.services .section-title {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 64px auto;
}

.services .section-title span {
    color: var(--primary, #0B5ED7);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
    display: block;
}

.services .section-title h2 {
    color: #1E293B;
    font-size: 44px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin-bottom: 20px;
}

.services .section-title p {
    color: #64748B;
    font-size: 16px;
    line-height: 1.6;
    font-weight: 400;
}

/* 4-Column Responsive Grid Layout */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* Premium Glass/Soft Shadow Cards */
.service-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 20px;
    padding: 40px 24px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(148, 163, 184, 0.06);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: rgba(11, 94, 215, 0.15);
    box-shadow: 0 20px 35px rgba(8, 66, 152, 0.07);
}

/* Hide paragraph text within cards to match image_60ee20.png reference layout exactly */
.service-card p {
    display: none !important;
}

/* Rounded Square Gradient Icons matching image_60ee20.png */
.service-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 24px;
    color: #ffffff;
    font-size: 24px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Individual Card Icon Gradients matching design reference layout */
.service-card:nth-child(1) .service-icon { background: linear-gradient(135deg, #3B82F6 0%, #0D6EFD 100%); box-shadow: 0 8px 20px rgba(13, 110, 253, 0.2); }
.service-card:nth-child(2) .service-icon { background: linear-gradient(135deg, #10B981 0%, #059669 100%); box-shadow: 0 8px 20px rgba(16, 185, 129, 0.2); }
.service-card:nth-child(3) .service-icon { background: linear-gradient(135deg, #A855F7 0%, #7C3AED 100%); box-shadow: 0 8px 20px rgba(168, 85, 247, 0.2); }
.service-card:nth-child(4) .service-icon { background: linear-gradient(135deg, #EC4899 0%, #DB2777 100%); box-shadow: 0 8px 20px rgba(236, 72, 153, 0.2); }
.service-card:nth-child(5) .service-icon { background: linear-gradient(135deg, #F97316 0%, #EA580C 100%); box-shadow: 0 8px 20px rgba(249, 115, 22, 0.2); }
.service-card:nth-child(6) .service-icon { background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%); box-shadow: 0 8px 20px rgba(59, 130, 246, 0.2); }
.service-card:nth-child(7) .service-icon { background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%); box-shadow: 0 8px 20px rgba(239, 68, 68, 0.2); }
.service-card:nth-child(8) .service-icon { background: linear-gradient(135deg, #06B6D4 0%, #0891B2 100%); box-shadow: 0 8px 20px rgba(6, 182, 212, 0.2); }

.service-card:hover .service-icon {
    transform: scale(1.08);
}

/* Card Typography */
.service-card h3 {
    color: #1E293B;
    font-size: 16.5px;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
}

/* Entry Animation (Fade Slide Up) */
.service-card {
    animation: serviceFadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes serviceFadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger animation loading sequence */
.service-card:nth-child(1) { animation-delay: 0.05s; }
.service-card:nth-child(2) { animation-delay: 0.10s; }
.service-card:nth-child(3) { animation-delay: 0.15s; }
.service-card:nth-child(4) { animation-delay: 0.20s; }
.service-card:nth-child(5) { animation-delay: 0.25s; }
.service-card:nth-child(6) { animation-delay: 0.30s; }
.service-card:nth-child(7) { animation-delay: 0.35s; }
.service-card:nth-child(8) { animation-delay: 0.40s; }

/*==================================================
ABOUT US SECTION
Matches design reference 24c95e02-ddce-481b-a2f1-255d78376ef0.png
==================================================*/

.about-us {
    padding: 100px 0;
    background-color: #ffffff;
    font-family: 'Poppins', sans-serif;
    overflow: hidden;
}

.about-us .container {
    max-width: 1320px;
    width: 92%;
    margin: 0 auto;
}

.about-wrapper {
    display: flex;
    align-items: center;
    gap: 80px;
}

/* --- Left Image Column --- */
.about-image {
    flex: 1;
    position: relative;
    max-width: 580px;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(148, 163, 184, 0.12);
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-image:hover img {
    transform: scale(1.02);
}

/* Floating Experience Card */
.about-image .experience-card {
    position: absolute;
    bottom: -20px;
    right: 30px;
    background: #ffffff;
    padding: 18px 28px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(8, 37, 86, 0.08);
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    animation: aboutFadeUp 0.8s ease-out;
}

.about-image .experience-icon {
    width: 44px;
    height: 44px;
    background-color: #0d6efd;
    color: #ffffff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.about-image .experience-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    line-height: 1.2;
}

.about-image .experience-card span {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
    white-space: nowrap;
}

/* --- Right Content Column --- */
.about-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-content .section-subtitle {
    color: #0d6efd;
    font-size: 13px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
    display: inline-block;
}

.about-content h2 {
    color: #0f172a;
    font-size: 42px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.about-content p {
    color: #475569;
    font-size: 16px;
    line-height: 1.65;
    margin-bottom: 20px;
}

/* Feature Grid Layout */
.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 12px;
    margin-bottom: 36px;
}

.about-features .feature {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #1e293b;
    font-size: 15px;
    font-weight: 600;
}

.about-features .feature i {
    width: 36px;
    height: 36px;
    background-color: #e6f0ff;
    color: #0d6efd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

/* Premium Learn More Button */
.about-content .primary-btn {
    background-color: #0d6efd;
    color: #ffffff;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    box-shadow: 0 4px 14px rgba(13, 110, 253, 0.25);
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.about-content .primary-btn:hover {
    background-color: #0b5ed7;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.35);
}

/*==================================================
STATISTICS SECTION
Full-width primary block directly below About
==================================================*/

.stats-section {
    background-color: #0d6efd;
    padding: 70px 0;
    font-family: 'Poppins', sans-serif;
}

.stats-section .container {
    max-width: 1320px;
    width: 92%;
    margin: 0 auto;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
    gap: 30px;
}

.stats-section .stat {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.stats-section .stat h2 {
    color: #ffffff;
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
    line-height: 1;
}

.stats-section .stat p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
    font-weight: 500;
    margin: 0;
}

/* --- Pure CSS Local Animation Keyframes --- */
@keyframes aboutFadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*============================================================================
  MEET OUR DOCTORS SECTION - SOURCE OF TRUTH CSS
============================================================================*/

/* 1. SECTION CONTAINER & BACKGROUND */
.doctors-section {
    background-color: #FFFFFF !important;
    padding: 100px 0 !important;
    width: 100% !important;
    overflow: hidden;
    font-family: 'Poppins', sans-serif !important;
}

.doctors-section .container {
    max-width: 1320px !important;
    margin: 0 auto !important;
    padding: 0 24px !important;
    box-sizing: border-box !important;
}

/* 2. SECTION HEADER (FLEX LAYOUT) */
.doctors-section .doctor-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-end !important;
    margin-bottom: 48px !important;
    width: 100% !important;
    gap: 24px !important;
}

.doctors-section .section-tag {
    display: inline-block !important;
    color: #2563eb !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    margin-bottom: 12px !important;
}

.doctors-section .doctor-header h2 {
    color: #0f172a !important;
    font-size: 42px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    letter-spacing: -0.5px !important;
    margin: 0 !important;
}

/* Header Action Button ("View All Doctors") */
.doctors-section .view-all-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 12px 24px !important;
    border: 1px solid #1e40af !important;
    border-radius: 50px !important;
    color: #1e40af !important;
    font-size: 14.5px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.doctors-section .view-all-btn i {
    font-size: 13px !important;
    transition: transform 0.3s ease !important;
}

.doctors-section .view-all-btn:hover {
    background-color: #1e40af !important;
    color: #FFFFFF !important;
}

.doctors-section .view-all-btn:hover i {
    transform: translateX(4px) !important;
}

/* 3. DOCTORS GRID */
.doctors-section .doctor-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 24px !important;
    width: 100% !important;
}

/* 4. PREMIUM DOCTOR CARD STYLES */
.doctors-section .doctor-card {
    background: #FFFFFF !important;
    border: 1px solid rgba(226, 232, 240, 0.7) !important;
    border-radius: 22px !important;
    overflow: hidden !important;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.03), 0 1px 3px rgba(0, 0, 0, 0.01) !important;
    display: flex !important;
    flex-direction: column !important;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-sizing: border-box !important;
    height: 100% !important;
}

.doctors-section .doctor-card:hover {
    transform: translateY(-6px) !important;
    border-color: rgba(37, 99, 235, 0.15) !important;
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.06) !important;
}

/* 5. CARD IMAGE AREA & FLOATING BADGE */
.doctors-section .doctor-image {
    position: relative !important;
    width: 100% !important;
    padding-top: 105% !important; /* Premium vertical profile aspect ratio */
    overflow: hidden !important;
    background-color: #f1f5f9 !important;
}

.doctors-section .doctor-image img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: top center !important;
    transition: transform 0.5s ease !important;
}

.doctors-section .doctor-card:hover .doctor-image img {
    transform: scale(1.03) !important;
}

/* Experience Badge Configuration */
.doctors-section .experience-badge {
    position: absolute !important;
    top: 16px !important;
    left: 16px !important;
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    color: #1e293b !important;
    padding: 6px 14px !important;
    border-radius: 30px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
    z-index: 2 !important;
}

/* 6. CARD BODY CONTENT */
.doctors-section .doctor-content {
    padding: 24px 24px 28px 24px !important;
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
    text-align: left !important;
}

.doctors-section .doctor-content h3 {
    color: #0f172a !important;
    font-size: 21px !important;
    font-weight: 700 !important;
    margin: 0 0 6px 0 !important;
    line-height: 1.3 !important;
    letter-spacing: -0.3px !important;
}

.doctors-section .department {
    color: #2563eb !important;
    font-size: 14.5px !important;
    font-weight: 600 !important;
    margin-bottom: 4px !important;
    line-height: 1.4 !important;
}

.doctors-section .qualification {
    color: #64748b !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    margin-bottom: 24px !important;
    line-height: 1.4 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
}

/* 7. INNER PROFILE BUTTON */
.doctors-section .profile-btn {
    margin-top: auto !important;
    width: 100% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 13px 20px !important;
    border: 1px solid #2563eb !important;
    border-radius: 50px !important;
    color: #2563eb !important;
    background: transparent !important;
    font-size: 14.5px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.doctors-section .profile-btn:hover {
    background: #2563eb !important;
    color: #FFFFFF !important;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.15) !important;
}

/* 8. MEDIA QUERIES & RESPONSIVE BREAKPOINTS */

/* Laptop Grid Optimization */
@media (max-width: 1200px) {
    .doctors-section {
        padding: 85px 0 !important;
    }
    .doctors-section .doctor-header h2 {
        font-size: 36px !important;
    }
    .doctors-section .doctor-grid {
        gap: 20px !important;
    }
    .doctors-section .doctor-content {
        padding: 20px 20px 24px 20px !important;
    }
    .doctors-section .doctor-content h3 {
        font-size: 19px !important;
    }
}

/* Tablet Layout (2 Columns) */
@media (max-width: 992px) {
    .doctors-section .doctor-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 24px !important;
    }
}

/* Mobile Screen Layouts (Stacked View) */
@media (max-width: 768px) {
    .doctors-section {
        padding: 70px 0 !important;
    }
    .doctors-section .container {
        padding: 0 20px !important;
    }
    .doctors-section .doctor-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        margin-bottom: 36px !important;
        gap: 20px !important;
    }
    .doctors-section .doctor-header h2 {
        font-size: 28px !important;
    }
    .doctors-section .view-all-btn {
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 14px 24px !important;
    }
    .doctors-section .doctor-grid {
        grid-template-columns: 1fr !important;
        gap: 28px !important;
    }
    .doctors-section .doctor-card {
        max-width: 440px !important;
        margin: 0 auto !important;
        width: 100% !important;
    }
}

/*============================================================================
  DOCTORS PAGE (DOCTORS.PHP) - SOURCE OF TRUTH CSS
============================================================================*/

/* 1. HERO SECTION WITH MEDICAL BLUE GRADIENT & ROUNDED BOTTOM */
.doctor-page-hero {
    background: linear-gradient(180deg, #1e70e6 0%, #175cc4 100%) !important;
    min-height: 260px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
    padding: 60px 0 80px 0 !important;
    box-sizing: border-box !important;
    border-bottom-left-radius: 60px !important;
    border-bottom-right-radius: 60px !important;
    overflow: hidden !important;
    font-family: 'Poppins', sans-serif !important;
}

.doctor-page-hero .container {
    max-width: 1320px !important;
    margin: 0 auto !important;
    padding: 0 24px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.doctor-page-hero h1 {
    color: #FFFFFF !important;
    font-size: 44px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    letter-spacing: -0.5px !important;
    margin: 0 0 12px 0 !important;
}

.doctor-page-hero p {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    max-width: 600px !important;
    margin: 0 auto !important;
    line-height: 1.5 !important;
}

/* 2. DOCTOR LISTING MAIN ENVIRONMENT */
.doctor-page {
    background-color: #F8FAFC !important; /* Premium light grayish-blue canvas background */
    padding: 80px 0 100px 0 !important;
    width: 100% !important;
    font-family: 'Poppins', sans-serif !important;
}

.doctor-page .container {
    max-width: 1320px !important;
    margin: 0 auto !important;
    padding: 0 24px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* 3. RESPONSIVE CSS GRID PLATFORM (3 COLUMNS DESKTOP) */
.doctor-page .doctor-page-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 45px 35px !important; /* Clean vertical spacing with strict 35px grid column gap */
    width: 100% !important;
}

/* 4. PREMIUM COMPONENT: DOCTOR CARD */
.doctor-page .doctor-card {
    background: #FFFFFF !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.04), 0 1px 4px rgba(0, 0, 0, 0.01) !important;
    display: flex !important;
    flex-direction: column !important;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-sizing: border-box !important;
    height: 100% !important;
}

/* Hover Lift Effect */
.doctor-page .doctor-card:hover {
    transform: translateY(-8px) !important;
    border-color: rgba(37, 99, 235, 0.15) !important;
    box-shadow: 0 20px 45px rgba(37, 99, 235, 0.08) !important;
}

/* 5. IMAGE FRAMING & EXPERIENCE BADGE */
.doctor-page .doctor-image {
    position: relative !important;
    width: 100% !important;
    height: 320px !important; /* Fixed exact structural block height */
    overflow: hidden !important;
    background-color: #f1f5f9 !important;
}

.doctor-page .doctor-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: top center !important;
    transition: transform 0.5s ease !important;
}

.doctor-page .doctor-card:hover .doctor-image img {
    transform: scale(1.02) !important;
}

/* Experience Pill Badge */
.doctor-page .experience-badge {
    position: absolute !important;
    top: 16px !important;
    left: 16px !important;
    background: #FFFFFF !important;
    color: #1d4ed8 !important; /* Clear hospital blue text alignment */
    padding: 6px 14px !important;
    border-radius: 50px !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1) !important;
    z-index: 5 !important;
}

/* 6. INTERNAL CONTENT ENGINE */
.doctor-page .doctor-content {
    padding: 28px 24px 28px 24px !important;
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
    text-align: left !important;
}

/* Doctor Name */
.doctor-page .doctor-content h3 {
    color: #0f172a !important; /* Premium dark navy */
    font-size: 23px !important;
    font-weight: 700 !important;
    margin: 0 0 6px 0 !important;
    line-height: 1.3 !important;
    letter-spacing: -0.3px !important;
}

/* Hospital Department */
.doctor-page .department {
    color: #2563eb !important; /* Hospital blue */
    font-size: 15px !important;
    font-weight: 600 !important;
    margin-bottom: 4px !important;
    line-height: 1.4 !important;
}

/* Medical Qualifications */
.doctor-page .qualification {
    color: #64748b !important; /* Clean gray accent text */
    font-size: 13px !important;
    font-weight: 500 !important;
    margin-bottom: 12px !important;
    line-height: 1.4 !important;
}

/* Biography String Box (Clamped exactly to 3 lines) */
.doctor-page .doctor-bio {
    color: #64748b !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    margin: 0 0 24px 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* 7. PREMIUM INTERACTIVE ACTION ACTION BUTTON ("Book Consultation") */
.doctor-page .profile-btn {
    margin-top: auto !important;
    width: 100% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 13px 24px !important;
    border: 1.5px solid #2563eb !important; /* Clean outline stroke layout */
    border-radius: 50px !important;
    color: #2563eb !important;
    background: #FFFFFF !important;
    font-size: 14.5px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Hover Interaction Style */
.doctor-page .profile-btn:hover {
    background: #2563eb !important;
    color: #FFFFFF !important;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.15) !important;
}

/* 8. RIGOROUS SCREEN RESPONSIVENESS MATRIX */

/* Laptop Grid Optimization */
@media (max-width: 1200px) {
    .doctor-page-hero h1 {
        font-size: 38px !important;
    }
    .doctor-page .doctor-page-grid {
        gap: 35px 24px !important;
    }
    .doctor-page .doctor-image {
        height: 290px !important;
    }
}

/* Tablet Device Adaptation (2 Columns) */
@media (max-width: 992px) {
    .doctor-page-hero {
        border-bottom-left-radius: 40px !important;
        border-bottom-right-radius: 40px !important;
    }
    .doctor-page .doctor-page-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 32px 24px !important;
    }
}

/* Mobile Screen Stack Realignment (1 Column) */
@media (max-width: 768px) {
    .doctor-page-hero {
        min-height: 220px !important;
        padding: 50px 0 60px 0 !important;
        border-bottom-left-radius: 30px !important;
        border-bottom-right-radius: 30px !important;
    }
    .doctor-page-hero h1 {
        font-size: 30px !important;
    }
    .doctor-page-hero p {
        font-size: 14.5px !important;
    }
    .doctor-page {
        padding: 50px 0 70px 0 !important;
    }
    .doctor-page .container {
        padding: 0 20px !important;
    }
    .doctor-page .doctor-page-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    .doctor-page .doctor-card {
        max-width: 440px !important;
        margin: 0 auto !important; /* Perfect viewport centering alignment */
        width: 100% !important;
    }
    .doctor-page .doctor-image {
        height: 300px !important;
    }
}

/*============================================================================
  WHY CHOOSE US SECTION - SOURCE OF TRUTH CSS
============================================================================*/

.why-choose {
    background-color: #F7FBFF !important;
    background: #F7FBFF !important; /* Forces the premium light blue tint */
    padding: 100px 0 !important;
    width: 100% !important;
    overflow: hidden;
    font-family: 'Poppins', sans-serif !important;
}

.why-choose .container {
    max-width: 1320px !important;
    margin: 0 auto !important;
    padding: 0 24px !important;
    box-sizing: border-box !important;
}

/* 2. SECTION HEADING */
.why-choose .section-heading {
    text-align: center !important;
    margin-bottom: 64px !important;
    max-width: 700px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.why-choose .section-subtitle {
    display: inline-block !important;
    color: #2563eb !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    margin-bottom: 16px !important;
}

.why-choose .section-heading h2 {
    color: #0f172a !important;
    font-size: 44px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    letter-spacing: -0.5px !important;
    margin: 0 !important;
}

/* 3. RESPONSIVE CARDS GRID */
.why-choose .why-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 32px !important;
    width: 100% !important;
}

/* 4. PREMIUM CARD STYLES */
.why-choose .why-card {
    background: #FFFFFF !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    border-radius: 22px !important;
    padding: 40px 36px !important;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.03), 0 1px 3px rgba(0, 0, 0, 0.01) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: left !important;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    position: relative !important;
    box-sizing: border-box !important;
    height: 100% !important;
}

/* Card Hover States */
.why-choose .why-card:hover {
    transform: translateY(-6px) !important;
    border-color: rgba(37, 99, 235, 0.15) !important;
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.07) !important;
}

/* 5. GRADIENT ICONS SYSTEM */
.why-choose .why-icon {
    width: 56px !important;
    height: 56px !important;
    background: linear-gradient(135deg, #06b6d4 0%, #0d9488 100%) !important;
    border-radius: 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 28px !important;
    box-shadow: 0 8px 20px rgba(13, 148, 136, 0.25) !important;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.why-choose .why-icon i {
    color: #FFFFFF !important;
    font-size: 22px !important;
}

/* Icon Hover Interaction via Card */
.why-choose .why-card:hover .why-icon {
    transform: scale(1.08) rotate(3deg) !important;
    box-shadow: 0 12px 24px rgba(13, 148, 136, 0.35) !important;
}

/* 6. CARD TYPOGRAPHY */
.why-choose .why-card h3 {
    color: #1e293b !important;
    font-size: 21px !important;
    font-weight: 600 !important;
    margin: 0 0 14px 0 !important;
    line-height: 1.3 !important;
    letter-spacing: -0.2px !important;
}

.why-choose .why-card p {
    color: #64748b !important;
    font-size: 14.5px !important;
    line-height: 1.6 !important;
    margin: 0 !important;
}

/* 7. MEDIA QUERIES & RESPONSIVE BREAKPOINTS */

/* Laptop / Small Desktop Grid Optimization */
@media (max-width: 1200px) {
    .why-choose {
        padding: 85px 0 !important;
    }
    .why-choose .section-heading h2 {
        font-size: 38px !important;
    }
    .why-choose .why-grid {
        gap: 24px !important;
    }
    .why-choose .why-card {
        padding: 36px 28px !important;
    }
}

/* Tablet Layout (2 Columns) */
@media (max-width: 992px) {
    .why-choose .why-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 24px !important;
    }
}

/* Mobile Screen Layouts (1 Column) */
@media (max-width: 768px) {
    .why-choose {
        padding: 70px 0 !important;
    }
    .why-choose .container {
        padding: 0 20px !important;
    }
    .why-choose .section-heading {
        margin-bottom: 44px !important;
    }
    .why-choose .section-heading h2 {
        font-size: 30px !important;
    }
    .why-choose .why-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    .why-choose .why-card {
        padding: 32px 24px !important;
        border-radius: 20px !important;
    }
    .why-choose .why-icon {
        margin-bottom: 22px !important;
    }
}

/*==================================================
RESPONSIVE LAYOUT ADJUSTMENTS
==================================================*/

@media (max-width: 992px) {
    .about-us {
        padding: 80px 0;
    }
    .about-wrapper {
        gap: 40px;
    }
    .about-content h2 {
        font-size: 34px;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    .stats-section .stat h2 {
        font-size: 40px;
    }
}

@media (max-width: 768px) {
    .about-wrapper {
        flex-direction: column;
        gap: 50px;
    }
    .about-image {
        max-width: 100%;
        width: 100%;
    }
    .about-image .experience-card {
        bottom: -15px;
        right: 20px;
        padding: 14px 22px;
    }
    .about-content h2 {
        font-size: 32px;
    }
}

/*==================================================
SERVICES RESPONSIVE BREAKPOINTS
==================================================*/
@media (max-width: 1200px) {
    .services .section-title h2 { font-size: 38px; }
    .services-grid { gap: 20px; }
    .service-card { padding: 32px 20px; }
}

@media (max-width: 992px) {
    .services { padding: 100px 0; }
    .services-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .services .section-title { margin-bottom: 48px; }
}

@media (max-width: 576px) {
    .services { padding: 80px 0; }
    .services .section-title h2 { font-size: 30px; }
    .services-grid { grid-template-columns: 1fr; gap: 16px; }
    .service-card { padding: 36px 24px; }
}

/*============================================================================
  DYNAMIC INTERFACE SYSTEM STYLES
============================================================================*/

/* Dynamic Active Menu Highlights */
.nav-links a.active,
.mobile-menu ul a.active {
    color: #2563eb !important;
    font-weight: 600 !important;
}

/* Hero Separation & Typography Setup */
.doctor-page-hero {
    margin-top: 0 !important; 
    background: linear-gradient(180deg, #1e70e6 0%, #175cc4 100%) !important;
    width: 100% !important;
    min-height: 320px !important;
    padding: 140px 0 110px 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    box-sizing: border-box !important;
    border-bottom-left-radius: 60px !important;
    border-bottom-right-radius: 60px !important;
    overflow: hidden !important;
    font-family: 'Poppins', sans-serif !important;
}

.doctor-page-hero .container {
    max-width: 1320px !important;
    margin: 0 auto !important;
    padding: 0 24px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.doctor-page-hero h1 {
    color: #FFFFFF !important;
    font-size: 48px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    letter-spacing: -0.5px !important;
    margin: 0 0 16px 0 !important;
}

.doctor-page-hero p {
    color: rgba(255, 255, 255, 0.95) !important;
    font-size: 16.5px !important;
    font-weight: 400 !important;
    max-width: 600px !important;
    margin: 0 auto !important;
    line-height: 1.6 !important;
}

/* Media Breakpoint Handlers */
@media (max-width: 992px) {
    .doctor-page-hero {
        min-height: 260px !important;
        padding: 110px 0 80px 0 !important;
        border-bottom-left-radius: 40px !important;
        border-bottom-right-radius: 40px !important;
    }
    .doctor-page-hero h1 {
        font-size: 38px !important;
    }
    .doctor-page-hero p {
        font-size: 15.5px !important;
    }
}

@media (max-width: 768px) {
    .doctor-page-hero {
        min-height: 220px !important;
        padding: 95px 0 65px 0 !important;
        border-bottom-left-radius: 30px !important;
        border-bottom-right-radius: 30px !important;
    }
    .doctor-page-hero h1 {
        font-size: 30px !important;
        margin-bottom: 10px !important;
    }
    .doctor-page-hero p {
        font-size: 14px !important;
        line-height: 1.5 !important;
        padding: 0 10px !important;
    }
}

/*============================================================================
  THE ULTIMATE SHARP EDGES OVERRIDE 
============================================================================*/
section.doctor-page-hero,
.doctor-page-hero,
.doctor-page-hero .container,
.doctor-page-hero::before,
.doctor-page-hero::after {
    border-radius: 0px !important;
    border-bottom-left-radius: 0px !important;
    border-bottom-right-radius: 0px !important;
    border-bottom-image: none !important;
    clip-path: none !important;
}

/* Force it straight across all tablet and mobile screen sizes */
@media (max-width: 992px) {
    section.doctor-page-hero, .doctor-page-hero, .doctor-page-hero::before {
        border-radius: 0px !important;
    }
}
@media (max-width: 768px) {
    section.doctor-page-hero, .doctor-page-hero, .doctor-page-hero::before {
        border-radius: 0px !important;
    }
}

/*============================================================================
  APPOINTMENT HERO SECTION - PERFECT CENTERING & MOBILE HEIGHT FOCUS
============================================================================*/
.appointment-hero {
    margin-top: 0 !important; 
    background: linear-gradient(180deg, #1e70e6 0%, #175cc4 100%) !important;
    width: 100% !important;
    min-height: 320px !important;
    padding: 140px 0 110px 0 !important;
    
    /* Center Layout Flex Engine */
    display: flex !important;
    flex-direction: column !important; 
    align-items: center !important;    
    justify-content: center !important; 
    text-align: center !important;      
    box-sizing: border-box !important;
    overflow: hidden !important;
    font-family: 'Poppins', sans-serif !important;
}

.appointment-hero .container {
    max-width: 1320px !important;
    margin: 0 auto !important;
    padding: 0 24px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    
    /* Enforce rigid container internal vertical layout */
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

/* Header Text Centering Blueprint */
.appointment-hero h1 {
    color: #FFFFFF !important;
    font-size: 48px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    letter-spacing: -0.5px !important;
    margin: 0 auto 16px auto !important;
    text-align: center !important;
    display: block !important;
    width: 100% !important;
}

/* Description Text Centering Blueprint */
.appointment-hero p {
    color: rgba(255, 255, 255, 0.95) !important;
    font-size: 16.5px !important;
    font-weight: 400 !important;
    max-width: 600px !important;
    line-height: 1.6 !important;
    margin: 0 auto !important;
    text-align: center !important;
    display: block !important;
    width: 100% !important;
}


/*============================================================================
  PREMIUM APPOINTMENT CARD & LOVABLE AI INPUT STYLING
============================================================================*/
.appointment-section {
    background-color: #F8FAFC !important;
    padding: 80px 0 100px 0 !important;
    width: 100% !important;
}

.appointment-card {
    background: #FFFFFF !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    border-radius: 24px !important; /* Premium large curvature */
    padding: 40px !important;
    max-width: 800px !important;
    margin: -60px auto 0 auto !important; /* Elegant offset overlaps hero section */
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.04), 0 1px 10px rgba(0, 0, 0, 0.02) !important;
    position: relative !important;
    z-index: 10 !important;
}

/* Premium Form Input UI Controls */
.appointment-card label {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #334155 !important;
    margin-bottom: 8px !important;
    font-family: 'Poppins', sans-serif !important;
}

.appointment-card .form-control,
.appointment-card .form-select {
    border-radius: 12px !important; /* Pill profile settings */
    border: 1.5px solid #E2E8F0 !important;
    padding: 12px 16px !important;
    font-size: 14.5px !important;
    color: #0F172A !important;
    background-color: #FFFFFF !important;
    transition: all 0.2s ease-in-out !important;
}

.appointment-card .form-control:focus,
.appointment-card .form-select:focus {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1) !important;
    outline: none !important;
}

/* Pill Button Component With Hover Lift */
.appointment-card .btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    border: none !important;
    border-radius: 50px !important; /* Absolute round pill edge profile */
    padding: 14px 28px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    letter-spacing: -0.2px !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2) !important;
}

.appointment-card .btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3) !important;
}


/*============================================================================
  RESPONSIVE EXECUTION MATRIX (INCREASES HERO HEIGHT FOR MOBILE VIEW ONLY)
============================================================================*/
@media (max-width: 768px) {
    /* FORCES THE APPOINTMENT HERO HEIGHT HIGHER INDEPENDENTLY ON MOBILE VIEW */
    .appointment-hero {
        min-height: 420px !important;   /* Visually higher layout engine gap */
        height: 420px !important;       /* Explicit height lock override */
        padding: 150px 0 90px 0 !important;
        
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
    }
    
    .appointment-hero .container {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        width: 100% !important;
    }
    
    .appointment-hero h1 {
        font-size: 32px !important;
        margin: 0 auto 12px auto !important;
        text-align: center !important;
    }
    
    .appointment-hero p {
        font-size: 14.5px !important;
        line-height: 1.5 !important;
        padding: 0 15px !important;
        margin: 0 auto !important;
        text-align: center !important;
    }
    
    .appointment-card {
        padding: 24px 20px !important;
        margin: -40px 15px 0 15px !important;
    }
}

/*============================================================================
  LOVABLE AI FORM GRID COMPONENT FIX (FORCES TRANSITION ON MOBILE VIEW)
============================================================================*/

/* 1. Fix the main structural wrapper rows */
.appointment-card form .row {
    display: flex !important;
    flex-wrap: wrap !important;
    margin-right: -12px !important;
    margin-left: -12px !important;
}

/* 2. Fix columns on mobile so they stack cleanly like Lovable AI */
@media (max-width: 768px) {
    .appointment-card form .col-md-6,
    .appointment-card form .col-12 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
        margin-bottom: 20px !important; /* Premium clean breathing gap */
        display: block !important;
    }

    /* 3. Force labels to sit perfectly above the fields instead of side-by-side */
    .appointment-card label {
        display: block !important;
        width: 100% !important;
        text-align: left !important;
        margin-bottom: 8px !important;
        font-family: 'Poppins', sans-serif !important;
        font-weight: 500 !important;
        color: #334155 !important;
    }

    /* 4. Ensure input wrappers fill out fully */
    .appointment-card .form-control,
    .appointment-card .form-select,
    .appointment-card textarea {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* 5. Center and expand the submit button explicitly */
    .appointment-card .btn-primary {
        display: block !important;
        width: 100% !important;
        margin: 10px auto 0 auto !important;
        text-align: center !important;
    }
}

/*============================================================================
  PREMIUM MEDICAL BLOG ARCHITECTURE (MAPPED TO YOUR HTML STRUCTURE)
============================================================================*/
:root {
    --med-primary: #0d6efd;
    --med-secondary: #20c997;
    --med-bg: #f8fafc;
    --med-text-main: #0f172a;
    --med-text-muted: #64748b;
    --med-radius: 16px;
    --med-shadow: 0 10px 30px rgba(13, 110, 253, 0.04), 0 1px 4px rgba(0, 0, 0, 0.01);
    --med-transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Body Alignment */
body {
    background-color: var(--med-bg) !important;
    font-family: 'Poppins', sans-serif !important;
}

/*============================================================================
  1. STRICT 3-COLUMN GRID ENFORCEMENT
============================================================================*/
/* Forces existing row div to behave as a pristine 3-column grid layout */
.blog-section .container .row {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

/* Neutralizes Bootstrap's legacy col widths to let grid engine rule */
.blog-section .container .row > div[class*="col-"] {
    width: 100% !important;
    max-width: 100% !important;
    flex: unset !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Header Alignment */
.blog-section {
    padding: 80px 0 !important;
    background-color: #ffffff !important;
}

.blog-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-end !important;
    margin-bottom: 40px !important;
    width: 100% !important;
}

.section-tag {
    color: var(--med-primary) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    display: block !important;
    margin-bottom: 8px !important;
}

.blog-header h2 {
    font-size: 32px !important;
    font-weight: 700 !important;
    color: var(--med-text-main) !important;
    margin: 0 !important;
}

.view-all-btn {
    color: var(--med-primary) !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    transition: var(--med-transition) !important;
    padding: 10px 24px !important;
    border: 1.5px solid rgba(13, 110, 253, 0.15) !important;
    border-radius: 50px !important;
}

.view-all-btn:hover {
    background-color: var(--med-primary) !important;
    color: #ffffff !important;
}

/*============================================================================
  2. COMPACT BLOG CARD COMPONENT
============================================================================*/
.blog-card {
    background: #ffffff !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    border-radius: var(--med-radius) !important;
    overflow: hidden !important;
    box-shadow: var(--med-shadow) !important;
    transition: var(--med-transition) !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    position: relative !important;
}

.blog-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 20px 40px rgba(13, 110, 253, 0.08) !important;
}

/* Image zoom constraints */
.blog-card img {
    width: 100% !important;
    height: 240px !important;
    object-fit: cover !important;
    transition: var(--med-transition) !important;
    display: block !important;
}

.blog-card:hover img {
    transform: scale(1.05) !important;
}

/* Internal contents */
.blog-content {
    padding: 24px !important;
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
    background: #ffffff !important;
}

.blog-meta {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-bottom: 14px !important;
}

.blog-meta .category {
    background-color: rgba(13, 110, 253, 0.08) !important;
    color: var(--med-primary) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    padding: 4px 12px !important;
    border-radius: 50px !important;
}

.blog-meta .date {
    font-size: 13px !important;
    color: var(--med-text-muted) !important;
    font-weight: 500 !important;
}

/* Card titles heading structure */
.blog-content h4 {
    font-size: 20px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    color: var(--med-text-main) !important;
    margin-bottom: 20px !important;
    flex-grow: 1 !important;
}

/* Action link element */
.read-more {
    color: var(--med-primary) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    transition: gap 0.2s ease !important;
    margin-top: auto !important;
}

.read-more:hover {
    gap: 8px !important;
    color: #1d4ed8 !important;
}

/*============================================================================
  3. BLOG DETAILS GRID ARCHITECTURE (2-COLUMN FIX)
============================================================================*/
.blog-details .container .row {
    display: grid !important;
    grid-template-columns: 8fr 4fr !important; /* Strict main content + sidebar split */
    gap: 40px !important;
    width: 100% !important;
}

/* Normalizes the default Bootstrap columns inside the details grid */
.blog-details .container .row > div {
    width: 100% !important;
    max-width: 100% !important;
    flex: unset !important;
    padding: 0 !important;
}

/* Page Banner Styling */
.page-banner {
    background: linear-gradient(135deg, #1e70e6 0%, #1557bf 100%) !important;
    padding: 100px 0 !important;
    text-align: center !important;
    color: #ffffff !important;
}

.page-banner h1 {
    font-size: 40px !important;
    font-weight: 700 !important;
    margin-bottom: 12px !important;
}

/* Details Article Wrapper */
.blog-details {
    padding: 80px 0 !important;
    background-color: var(--med-bg) !important;
}

.blog-details .blog-content {
    background: #ffffff !important;
    border-radius: var(--med-radius) !important;
    padding: 40px !important;
    box-shadow: var(--med-shadow) !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
}

.blog-details img.img-fluid {
    border-radius: var(--med-radius) !important;
    margin-bottom: 32px !important;
    width: 100% !important;
}

/* Rich text elements inside article contents */
.blog-details .blog-content p {
    font-size: 16.5px !important;
    line-height: 1.8 !important;
    color: #334155 !important;
    margin-bottom: 24px !important;
}

.blog-details .blog-content h1,
.blog-details .blog-content h2,
.blog-details .blog-content h3,
.blog-details .blog-content h4 {
    color: var(--med-text-main) !important;
    font-weight: 700 !important;
    margin-top: 40px !important;
    margin-bottom: 16px !important;
}

/*============================================================================
  4. SIDEBAR PANEL INTERFACES
============================================================================*/
.blog-details .card,
.sidebar-box {
    background: #ffffff !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    border-radius: var(--med-radius) !important;
    padding: 28px !important;
    margin-bottom: 30px !important;
    box-shadow: var(--med-shadow) !important;
}

.blog-details .card .card-header,
.sidebar-box h4,
.blog-details .card .card-header h5 {
    background: transparent !important;
    border: none !important;
    padding: 0 0 14px 0 !important;
    margin-bottom: 20px !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    color: var(--med-text-main) !important;
    border-bottom: 2px solid #f1f5f9 !important;
}

.sidebar-box .form-control,
.blog-details .card .form-control {
    border-radius: 12px !important;
    border: 1.5px solid #e2e8f0 !important;
    padding: 12px 16px !important;
    font-size: 14.5px !important;
}

.sidebar-box a,
.blog-details .card-body p a {
    color: #475569 !important;
    text-decoration: none !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    display: block !important;
    margin-bottom: 12px !important;
    transition: color 0.2s ease !important;
}

.sidebar-box a:hover,
.blog-details .card-body p a:hover {
    color: var(--med-primary) !important;
}

/*============================================================================
  5. STRICT RESPONSIVE GRID OVERRIDES
============================================================================*/
@media (max-width: 1024px) {
    .blog-section .container .row {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .blog-details .container .row {
        grid-template-columns: 1fr !important; /* Stack columns on tablets and mobile screens */
    }
}

@media (max-width: 768px) {
    .blog-section .container .row {
        grid-template-columns: repeat(1, 1fr) !important;
    }
    
    .blog-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 16px !important;
    }
    
    .page-banner h1 {
        font-size: 28px !important;
    }
    
    .blog-details .blog-content {
        padding: 24px 16px !important;
    }
}

.blog-section {
    background-color: #f4f9fd !important;
    padding: 40px 0 !important; /* Reduces top and bottom spacing by half */
}

/* ==========================================
   HOME DEPARTMENTS
========================================== */

.departments-home{

    padding:90px 0;

    background:#f5fbff;

}

.departments-home .container{

    max-width:1320px;

    padding-left:25px;

    padding-right:25px;

}

.section-subtitle{

    display:block;

    text-align:center;

    text-transform:uppercase;

    letter-spacing:2px;

    font-size:13px;

    font-weight:700;

    color:#0d6efd;

    margin-bottom:15px;

}

.section-title{

    max-width:650px;

    margin:0 auto 60px;

    text-align:center;

    font-size:44px;

    font-weight:700;

    color:#14294b;

    line-height:1.2;

}

.department-card{

    position:relative;

    width:100%;

    height:225px;

    overflow:hidden;

    border-radius:20px;

    cursor:pointer;

    box-shadow:0 12px 35px rgba(0,0,0,.08);

    transition:.45s ease;

}

.department-card:hover{

    transform:translateY(-8px);

    box-shadow:0 25px 55px rgba(0,0,0,.18);

}

.department-card img{

    width:100%;

    height:100%;

    object-fit:cover;

    display:block;

    transition:transform .7s ease;

}

.department-card:hover img{

    transform:scale(1.08);

}

.department-card::after{

    content:"";

    position:absolute;

    inset:0;

    background:linear-gradient(

        to top,

        rgba(0,0,0,.88) 0%,

        rgba(0,0,0,.45) 45%,

        rgba(0,0,0,.05) 100%

    );

}

.department-overlay{

    position:absolute;

    left:22px;

    right:22px;

    bottom:18px;

    z-index:2;

}

.department-overlay h3{

    color:#fff;

    font-size:20px;

    font-weight:700;

    margin-bottom:8px;

}

.department-overlay p{

    color:#fff;

    font-size:12px;

    line-height:1.5;

    margin-bottom:12px;

    opacity:.92;

    display:-webkit-box;

    -webkit-line-clamp:2;

    -webkit-box-orient:vertical;

    overflow:hidden;

}

.department-btn{

    display:inline-flex;

    align-items:center;

    color:#4fd7ff;

    text-decoration:none;

    font-weight:600;

    font-size:14px;

    transition:.3s;

}

.department-btn:hover{

    color:#fff;

    transform:translateX(5px);

}

/* Tablet */
@media(max-width:991px){

    .section-title{

        font-size:36px;

    }

}

/* Mobile */
@media(max-width:768px){

    .section-title{

        font-size:30px;

    }

}

/* ==========================
   DEPARTMENTS PAGE
========================== */

.department-page{

    background:#f5fbff;

    padding:80px 0;

}

.department-grid{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:28px;

}

.department-item{

    background:#fff;

    border-radius:16px;

    overflow:hidden;

    transition:.35s;

    border:1px solid #edf1f7;

    box-shadow:0 10px 28px rgba(0,0,0,.06);

}

.department-item:hover{

    transform:translateY(-8px);

    box-shadow:0 18px 40px rgba(0,0,0,.14);

}

.department-item img{

    width:100%;

    height:210px;

    object-fit:cover;

}

.department-body{

    padding:25px;

}

.department-body h4{

    font-size:22px;

    font-weight:700;

    color:#12325b;

    margin-bottom:14px;

}

.department-body p{

    color:#6b7280;

    line-height:1.7;

    margin-bottom:25px;

}

.department-body .btn{

    border:2px solid #0d6efd;

    border-radius:40px;

    padding:10px 28px;

    font-weight:600;

    color:#0d6efd;

    background:#fff;

}

.department-body .btn:hover{

    background:#0d6efd;

    color:#fff;

}

@media(max-width:992px){

.department-grid{

grid-template-columns:repeat(2,1fr);

}

.departments-home h2{

font-size:40px;

}

}

@media(max-width:768px){

.department-grid{

grid-template-columns:1fr;

}

.department-card{

height:300px;

}

.departments-home h2{

font-size:34px;

}

.department-content h3{

font-size:24px;

}

}

/*==================================================
SUB-PAGE HERO SYSTEM ALIGNMENT CORRECTION
==================================================*/

/* Adds a structural buffer on internal pages to prevent absolute headers from masking hero text elements */
body:not(.home) .contact-hero {
    margin-top: 124px !important; /* Offsets header tracking height (40px topbar + 84px navbar) */
    padding: 80px 0 !important;
    display: block !important;
    min-height: auto !important;
}

/* Restores layout balance on medium viewports */
@media (max-width: 992px) {
    body:not(.home) .contact-hero {
        margin-top: 74px !important; /* Matches top navigation reduction on responsive devices */
        padding: 60px 0 !important;
    }
}

/* Restores layout balance on small viewports */
@media (max-width: 576px) {
    body:not(.home) .contact-hero {
        margin-top: 68px !important;
        padding: 50px 0 !important;
    }
}