:root {
    --primary-color: #0b3d68; /* Trustworthy Medical Dark Blue */
    --secondary-color: #1e88e5; /* Vibrant Blue for Call to Action */
    --secondary-hover: #1565c0;
    --accent-color: #25D366; /* WhatsApp Green */
    --accent-hover: #128C7E;
    --text-dark: #2c3e50;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px rgba(11, 61, 104, 0.12);
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
}

/* WhatsApp Floating Button - Bottom LEFT (desktop) */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    left: 25px;
    width: 58px;
    height: 58px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 29px;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(37,211,102,0.45);
    z-index: 9991;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: wa-pulse 2.5s infinite;
}
.whatsapp-float:hover { transform: scale(1.12); box-shadow: 0 10px 30px rgba(37,211,102,0.6); }

@keyframes wa-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); }
    70%  { box-shadow: 0 0 0 16px rgba(37,211,102,0); }
    100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* =====================================
   📱 MOBILE BOTTOM ACTION BAR
   3 buttons side by side
   ===================================== */
.mobile-action-bar {
    display: none; /* hidden on desktop */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: #fff;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.12);
}

.mob-bar-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 5px;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
    transition: 0.2s;
}
.mob-bar-btn i { font-size: 20px; }
.mob-bar-btn span { font-size: 11px; }

/* WhatsApp - green */
.mob-bar-wa { background: #f0fdf4; color: #16a34a; }
.mob-bar-wa:hover { background: #dcfce7; }

/* Call Now - blue (center, bigger) */
.mob-bar-call {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white !important;
    flex: 1.4;          /* slightly wider */
    border-radius: 0;
    box-shadow: inset 0 0 0 0 transparent;
}
.mob-bar-call:hover { opacity: 0.92; }
.mob-bar-call i { font-size: 22px; }

/* Chatbot - dark blue */
.mob-bar-bot { background: #eff6ff; color: var(--primary-color); }
.mob-bar-bot:hover { background: #dbeafe; }

@media (max-width: 768px) {
    /* Show mobile action bar */
    .mobile-action-bar { display: flex; }
    /* Hide desktop floating WhatsApp on mobile (replaced by bar) */
    .whatsapp-float { display: none !important; }
    /* Hide desktop chatbot float on mobile (replaced by bar) */
    #ai-chat-btn { display: none !important; }
    /* Chat window on mobile: above the action bar */
    #ai-chat-window {
        width: calc(100vw - 20px) !important;
        right: 10px !important;
        left: 10px !important;
        height: 65vh !important;
        bottom: 75px !important;
    }
    /* Page content padding so bar doesn't cover last section */
    body { padding-bottom: 65px; }
}

/* Keep old mobile-call-btn hidden (legacy) */
.mobile-call-btn { display: none !important; }




* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
    /* Improve font rendering on all devices */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    /* Improve scrolling performance on iOS */
    -webkit-overflow-scrolling: touch;
}

body {
    background-color: var(--bg-white);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
    /* NOTE: Do NOT add transform here — it breaks position:fixed on all buttons */
}

/* On mobile: disable heavy animations to reduce lag */
@media (max-width: 768px) {
    * { animation-duration: 0.2s !important; }
    .pulse-animation { animation: none !important; }
    .about-icon::before { animation: none !important; }
    /* Disable heavy blur backdrop filters on mobile */
    .nav-overlay { backdrop-filter: none; -webkit-backdrop-filter: none; }
    header { backdrop-filter: none; -webkit-backdrop-filter: none; }
}


/* Typography Selection */
::selection {
    background-color: var(--secondary-color);
    color: white;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--primary-color);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.ms-1 { margin-inline-start: 8px; }
.ms-2 { margin-inline-start: 12px; }
.mt-3 { margin-top: 15px; }
.ltr-text { direction: ltr; display: inline-block; unicode-bidi: isolate; }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 90px 0;
    position: relative;
    z-index: 1;
}

.bg-light {
    background-color: var(--bg-light);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.1);
    z-index: -1;
    transform: translateY(100%);
    transition: var(--transition);
}

.btn:hover::after {
    transform: translateY(0);
}

.btn:active {
    transform: scale(0.96);
}

.btn-primary {
    background-color: var(--secondary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(30, 136, 229, 0.4);
}

.btn-primary:hover {
    background-color: var(--secondary-hover);
    color: white;
    box-shadow: 0 6px 20px rgba(30, 136, 229, 0.6);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
}

.btn-outline:hover {
    background-color: var(--secondary-color);
    color: white;
}

.btn-outline-light {
    border: 2px solid white;
    color: white;
    background-color: rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
}

.btn-outline-light:hover {
    background-color: white;
    color: var(--primary-color);
}

.btn-large {
    padding: 16px 40px;
    font-size: 18px;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 30px;
}

.btn-whatsapp {
    background-color: var(--accent-color);
    color: white;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background-color: var(--accent-hover);
    color: white;
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.5);
}

.btn-full {
    width: 100%;
}

/* Section Title */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 38px;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title .line {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    margin: 0 auto 15px;
    border-radius: 4px;
}

.section-title .subtitle {
    color: var(--text-light);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

/* Header & Navbar */
header {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
    transition: height 0.3s ease;
}

header.scrolled .nav-container {
    height: 70px;
}

.logo img {
    height: 65px;
    transition: var(--transition);
    object-fit: contain;
}

header.scrolled .logo img {
    height: 50px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links li a {
    font-weight: 700;
    font-size: 16px;
    color: var(--primary-color);
    transition: var(--transition);
    position: relative;
    padding: 10px 0;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 0%;
    height: 3px;
    background-color: var(--secondary-color);
    transition: var(--transition);
    border-radius: 3px;
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
    width: 100%;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--secondary-color);
}

.mobile-menu-btn {
    display: none;
    font-size: 26px;
    color: var(--primary-color);
    background: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    padding: 5px;
    border-radius: 8px;
}

/* ====================================
   📱 MOBILE NAV — Side Drawer Style
   ==================================== */

/* Overlay */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 998;
    backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.nav-overlay.active {
    opacity: 1;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    background-size: cover;
    background-position: center top;
    background-attachment: fixed; /* Parallax on Desktop */
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    position: relative;
    will-change: transform;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 50px;
    background: linear-gradient(to top, var(--bg-white) 0%, transparent 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-text {
    max-width: 650px;
    animation: fadeInUp 1s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.hero-text h1 {
    font-size: 60px;
    color: white;
    margin-bottom: 5px;
    line-height: 1.2;
    text-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.hero-text h2 {
    font-size: 32px;
    color: #ffd700; /* Gold touch */
    margin-bottom: 25px;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.hero-text p {
    font-size: 22px;
    color: #e2e8f0;
    margin-bottom: 45px;
    line-height: 1.8;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    font-weight: 600;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
    background: linear-gradient(135deg, white, #f1f5f9);
    padding: 50px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.about-content:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.about-icon {
    font-size: 80px;
    color: white;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    width: 170px;
    height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 15px 30px rgba(30, 136, 229, 0.3);
    position: relative;
}

.about-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px dashed rgba(30, 136, 229, 0.5);
    top: -15px;
    left: -15px;
    padding: 15px;
    box-sizing: content-box;
    animation: spin 20s linear infinite;
}

@keyframes spin { 100% { transform: rotate(360deg); } }

.pulse-animation {
    animation: pulse 3s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(30, 136, 229, 0.4); }
    70% { box-shadow: 0 0 0 20px rgba(30, 136, 229, 0); }
    100% { box-shadow: 0 0 0 0 rgba(30, 136, 229, 0); }
}

.about-text {
    position: relative;
}

.quote-icon {
    position: absolute;
    top: -25px;
    right: -25px;
    font-size: 50px;
    color: rgba(30, 136, 229, 0.1);
    z-index: 0;
}

.about-text p {
    font-size: 22px;
    line-height: 1.9;
    color: var(--text-dark);
    font-weight: 600;
    position: relative;
    z-index: 1;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--bg-white);
    padding: 45px 35px;
    border-radius: var(--border-radius-md);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-bottom: 5px solid transparent;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(180deg, rgba(30, 136, 229, 0.05) 0%, transparent 100%);
    transition: var(--transition);
    z-index: -1;
}

.service-card:hover::before {
    height: 100%;
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-lg);
    border-bottom-color: var(--secondary-color);
}

.icon-wrapper {
    width: 90px;
    height: 90px;
    background-color: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: var(--transition);
    border: 2px solid #e2e8f0;
}

.service-card i {
    font-size: 40px;
    color: var(--secondary-color);
    transition: var(--transition);
}

.service-card:hover .icon-wrapper {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: scale(1.1) rotate(5deg);
}

.service-card:hover i {
    color: white;
}

.service-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.service-card p {
    color: var(--text-light);
    font-size: 17px;
    line-height: 1.7;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    grid-auto-rows: 280px;
}

.gallery-item {
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    position: relative;
}

.video-item {
    grid-column: span 2;
    grid-row: span 2;
}

.video-placeholder, .img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
}

.video-placeholder::before, .img-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.2);
    transition: var(--transition);
    z-index: 1;
}

.gallery-item:hover .video-placeholder::before, 
.gallery-item:hover .img-placeholder::before {
    background: rgba(0,0,0,0.4);
}

.video-placeholder {
    background: url('https://images.unsplash.com/photo-1519494026892-80bbd2d6fd0d?auto=format&fit=crop&q=80&w=1000') center/cover;
}

.bg-blue { background: url('https://images.unsplash.com/photo-1581594693702-fbdc51b2763b?auto=format&fit=crop&q=80&w=500') center/cover; }
.bg-light-blue { background: url('https://images.unsplash.com/photo-1576091160399-112ba8d25d1d?auto=format&fit=crop&q=80&w=500') center/cover; }
.bg-gray { background: url('https://images.unsplash.com/photo-1516549655169-df83a0774514?auto=format&fit=crop&q=80&w=500') center/cover; }

.gallery-item i, .gallery-item span, .play-btn-wrapper {
    position: relative;
    z-index: 2;
}

.gallery-item i {
    font-size: 50px;
    margin-bottom: 15px;
    color: white;
}

.play-btn-wrapper {
    width: 80px;
    height: 80px;
    background-color: rgba(30, 136, 229, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 0 0 10px rgba(30, 136, 229, 0.3);
    animation: ripple 2s infinite;
    transition: var(--transition);
}

@keyframes ripple {
    0% { box-shadow: 0 0 0 0 rgba(30, 136, 229, 0.6), 0 0 0 10px rgba(30, 136, 229, 0.3); }
    100% { box-shadow: 0 0 0 15px rgba(30, 136, 229, 0), 0 0 0 30px rgba(30, 136, 229, 0); }
}

.play-icon {
    font-size: 30px !important;
    margin-bottom: 0 !important;
    margin-left: 5px;
}

.gallery-item span {
    font-size: 22px;
    font-weight: 700;
    text-shadow: 0 2px 5px rgba(0,0,0,0.8);
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
}

.gallery-item:hover .video-placeholder,
.gallery-item:hover .img-placeholder {
    transform: scale(1.08);
}

.gallery-item:hover span {
    opacity: 1;
    transform: translateY(0);
}

.gallery-item:hover .play-btn-wrapper {
    background-color: var(--secondary-color);
    transform: scale(1.1);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(11, 61, 104, 0.9), transparent);
    color: white;
    padding: 30px 15px 15px;
    font-weight: 700;
    font-size: 18px;
    text-align: center;
    transform: translateY(100%);
    transition: var(--transition);
    z-index: 3;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

/* Branches */
.branches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.branch-card {
    background-color: var(--bg-white);
    padding: 40px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.branch-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 6px;
    height: 100%;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.branch-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.branch-card:hover::before {
    width: 100%;
    opacity: 0.03;
}

.branch-icon {
    font-size: 35px;
    color: var(--secondary-color);
    margin-bottom: 25px;
    display: inline-block;
    background-color: var(--bg-light);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.branch-card h3 {
    font-size: 26px;
    margin-bottom: 20px;
}

.address-text {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 30px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    line-height: 1.6;
}

.address-text i {
    color: var(--secondary-color);
    margin-top: 6px;
    font-size: 18px;
}

.branch-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* Contact Form */
.contact-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.contact-form-container {
    background-color: var(--bg-white);
    padding: 50px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.contact-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
}

.contact-form-container h3 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 40px;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    color: var(--text-dark);
}

.required {
    color: #e53e3e;
}

.input-icon {
    position: absolute;
    bottom: 17px;
    right: 18px;
    color: var(--text-light);
    font-size: 18px;
    transition: var(--transition);
}

.textarea-icon {
    top: 50px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 45px 16px 16px; /* Right padding for icon in RTL */
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-family: 'Cairo', sans-serif;
    font-size: 16px;
    transition: var(--transition);
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #a0aec0;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    background-color: var(--bg-white);
    box-shadow: 0 0 0 4px rgba(30, 136, 229, 0.15);
}

.form-group input:focus ~ .input-icon,
.form-group textarea:focus ~ .input-icon {
    color: var(--secondary-color);
}

.btn-submit {
    height: 55px;
    font-size: 18px;
    margin-top: 15px;
    border-radius: 12px;
}

/* Floating WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background-color: var(--accent-color);
    color: white;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
    z-index: 1000;
    transition: var(--transition);
    animation: floating 3s ease-in-out infinite;
}

.whatsapp-float:hover {
    background-color: var(--accent-hover);
    transform: scale(1.15) rotate(5deg);
}

@keyframes floating {
    0% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0); }
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: white;
    padding-top: 80px;
    border-top: 5px solid var(--secondary-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-logo p {
    color: #cbd5e0;
    line-height: 1.8;
}

.footer-img {
    height: 80px;
    background-color: white;
    padding: 8px;
    border-radius: 8px;
    margin-bottom: 25px;
    object-fit: contain;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 18px;
    transition: var(--transition);
}

.social-icon:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-links h4,
.footer-info h4 {
    font-size: 22px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
    font-weight: 700;
}

.footer-links h4::after,
.footer-info h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

.footer-links ul li {
    margin-bottom: 15px;
}

.footer-links ul li a {
    color: #cbd5e0;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
}

.footer-links ul li a i {
    font-size: 14px;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: white;
    padding-right: 8px;
}

.footer-links ul li a:hover i {
    color: var(--secondary-color);
}

.footer-info p {
    color: #cbd5e0;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    font-size: 16px;
}

.footer-info i {
    color: var(--secondary-color);
    font-size: 18px;
}

.footer-bottom {
    background-color: #061c30;
    text-align: center;
    padding: 25px 0;
    color: #8fa1b3;
    font-weight: 600;
}

/* Map Section */
.branches-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.map-container {
    position: relative;
    width: 100%;
    height: 450px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.map-overlay {
    position: absolute;
    bottom: 30px;
    left: 30px;
    background: rgba(255, 255, 255, 0.95);
    padding: 20px 30px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
    z-index: 2;
    border: 1px solid var(--border-color);
    text-align: right;
}

.map-overlay h4 {
    margin-bottom: 15px;
    color: var(--primary-color);
    font-size: 20px;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: var(--bg-white);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.stars {
    color: #f59e0b; /* Golden Yellow */
    margin-bottom: 20px;
    font-size: 20px;
}

.review-text {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 30px;
    font-style: italic;
    position: relative;
}

.review-text::before {
    content: '"';
    font-size: 60px;
    color: rgba(30, 136, 229, 0.1);
    position: absolute;
    top: -20px;
    right: -10px;
    font-family: serif;
}

.patient-info {
    display: flex;
    align-items: center;
    gap: 15px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.patient-avatar {
    width: 50px;
    height: 50px;
    background-color: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    font-size: 24px;
}

.patient-info h4 {
    margin-bottom: 3px;
    font-size: 18px;
}

.patient-info span {
    font-size: 14px;
    color: var(--text-light);
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-item {
    background-color: var(--bg-white);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition);
}

.faq-question {
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background-color: var(--bg-white);
    transition: var(--transition);
}

.faq-question:hover {
    background-color: var(--bg-light);
}

.faq-question h3 {
    margin-bottom: 0;
    font-size: 20px;
    font-weight: 700;
}

.faq-question i {
    color: var(--secondary-color);
    transition: transform 0.3s ease;
    font-size: 20px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    background-color: var(--bg-white);
    border-top: 1px solid transparent;
}

.faq-item.active .faq-answer {
    max-height: 500px; /* arbitrary max height */
    padding: 25px 30px;
    border-top: 1px solid var(--border-color);
}

.faq-answer p {
    color: var(--text-dark);
    font-size: 18px;
    line-height: 1.8;
}

/* Blog Section */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
}

.blog-card {
    background-color: var(--bg-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.blog-img {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.blog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-img img {
    transform: scale(1.1);
}

.blog-category {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: var(--secondary-color);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
    z-index: 2;
}

.blog-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-content h3 {
    font-size: 22px;
    margin-bottom: 15px;
    line-height: 1.5;
}

.blog-content p {
    color: var(--text-light);
    margin-bottom: 25px;
    flex-grow: 1;
}

.read-more {
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
}

.read-more:hover {
    color: var(--primary-color);
}

.read-more:hover i {
    transform: translateX(-5px);
}

/* ===========================
   📱 RESPONSIVE DESIGN
   =========================== */

@media (max-width: 1024px) {
    .video-item { grid-column: span 1; grid-row: span 1; }
    .hero-text h1 { font-size: 50px; }
    .services-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}

@media (max-width: 900px) {
    .about-content { flex-direction: column; text-align: center; padding: 40px 20px; gap: 25px; }
    .about-icon { margin: 0 auto; width: 130px; height: 130px; font-size: 55px; }
    .about-text p { font-size: 18px; }
}

@media (max-width: 768px) {
    /* Nav */
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border-radius: 10px;
        background: #eff6ff;
        color: var(--primary-color);
        font-size: 22px;
    }

    /* === SIDE DRAWER NAV === */
    .nav-overlay { display: block; }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 260px;             /* عرض ثابت صغير واضح */
        max-width: 78vw;          /* لا يتجاوز 78% من الشاشة */
        height: 100dvh;
        background: linear-gradient(175deg, #0b3d68 0%, #082d50 50%, #051e35 100%);
        flex-direction: column;
        align-items: flex-start;
        padding: 0;
        gap: 0;
        box-shadow: -6px 0 25px rgba(0,0,0,0.35);
        transition: right 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
        overflow-y: auto;
        overflow-x: hidden;
        z-index: 999;
    }

    .nav-links.active { right: 0; }

    /* Remove fake header pseudo */
    .nav-links::before { display: none; }

    /* Drawer real header with close hint */
    .nav-links li:first-child {
        background: rgba(255,255,255,0.06);
        border-bottom: 1px solid rgba(255,255,255,0.12) !important;
        padding: 14px 0 0;
    }

    .nav-links li {
        width: 100%;
        text-align: right;
        border-bottom: 1px solid rgba(255,255,255,0.06);
        list-style: none;
    }

    .nav-links li a {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 10px;
        padding: 13px 18px;
        font-size: 15px;
        font-weight: 700;
        color: rgba(255,255,255,0.85) !important;
        transition: all 0.2s;
        text-decoration: none;
        letter-spacing: 0.3px;
    }

    .nav-links li a i {
        width: 22px;
        text-align: center;
        font-size: 14px;
        color: rgba(255,255,255,0.55);
    }

    .nav-links li a:hover,
    .nav-links li a.active {
        background: rgba(255,255,255,0.08);
        color: white !important;
        padding-right: 24px;
    }
    .nav-links li a:hover i,
    .nav-links li a.active i { color: #60a5fa; }

    /* Remove desktop underline effect */
    .nav-links li a::after { display: none !important; }

    /* Last item: Book Now CTA */
    .nav-links li:last-child {
        border-bottom: none;
        padding: 15px 16px;
        background: transparent;
    }
    .nav-links li:last-child a {
        background: linear-gradient(135deg, var(--secondary-color), #3b82f6);
        border-radius: 10px;
        color: white !important;
        justify-content: center;
        padding: 13px 16px;
        box-shadow: 0 4px 12px rgba(30,136,229,0.35);
        font-size: 15px;
        width: 100%;
        border-bottom: none;
    }
    .nav-links li:last-child a:hover { opacity: 0.9; padding-right: 16px; }

    .header-cta { display: none; }

    /* === HERO COVER FIX for Mobile === */
    .hero {
        background-attachment: scroll !important;
        background-position: center center !important;
        background-size: cover !important;
        min-height: 100svh;
        height: 100svh;
        align-items: center;        /* center vertically */
        padding-top: 90px;
        padding-bottom: 60px;
        display: flex;
    }
    /* Hero text — centered, proportional */
    .hero-content { width: 100%; }
    .hero-text {
        text-align: center;
        margin: 0 auto;
        max-width: 100%;
        padding: 0 10px;
    }
    .hero-text h1 {
        font-size: 32px;
        line-height: 1.35;
        margin-bottom: 10px;
        text-shadow: 0 2px 10px rgba(0,0,0,0.4);
    }
    .hero-text h2 {
        font-size: 18px;
        margin-bottom: 12px;
        opacity: 0.95;
    }
    .hero-text p {
        font-size: 15px;
        margin-bottom: 25px;
        line-height: 1.6;
        opacity: 0.9;
    }
    .hero-buttons { flex-direction: column; align-items: stretch; gap: 12px; }
    .hero-buttons .btn { width: 100%; text-align: center; justify-content: center; font-size: 16px; padding: 14px 20px; }

    /* Sections */
    .section { padding: 55px 0; }
    .section-title h2 { font-size: 28px; }
    .section-title p.subtitle { font-size: 15px; }
    .container { padding: 0 15px; }

    /* Services */
    .services-grid { grid-template-columns: 1fr 1fr; gap: 15px; }
    .service-card { padding: 25px 15px; }
    .service-card h3 { font-size: 15px; }
    .service-card p { font-size: 13px; }
    .icon-wrapper { width: 65px; height: 65px; font-size: 26px; margin-bottom: 15px; }

    /* Gallery */
    .gallery-grid { grid-auto-rows: 200px; }
    
    /* Map */
    .map-overlay { position: static; text-align: center; border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg); border-top: none; }
    .map-container { height: auto; display: flex; flex-direction: column; }
    .map-container iframe { height: 280px; }

    /* Contact Form */
    .contact-form-container { padding: 25px 15px; }

    /* Footer — add bottom padding for call button bar */
    .footer-content { flex-direction: column; gap: 20px; text-align: center; }
    .footer-links ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
    .footer-links ul li { display: inline; font-size: 14px; }
    .footer-links ul li::after { content: ' |'; color: rgba(255,255,255,0.3); }
    .footer-links ul li:last-child::after { content: ''; }
    .footer-bottom { padding-bottom: 70px; }  /* space above call bar */

    /* WhatsApp & chatbot: position overridden in top floating buttons block */
    .mobile-call-btn { display: flex; }
}

/* ===========================
   📱 Extra Small (< 480px)
   =========================== */
@media (max-width: 480px) {
    .hero-text h1 { font-size: 30px; }
    .hero-text h2 { font-size: 18px; }
    .hero-text p { font-size: 15px; }
    .section-title h2 { font-size: 24px; }

    /* SINGLE column services on very small screens */
    .services-grid { grid-template-columns: 1fr; }
    .service-card { padding: 20px 15px; }

    .about-icon { width: 100px; height: 100px; font-size: 40px; }
    .about-text p { font-size: 16px; }

    .contact-form-container { padding: 20px 12px; }

    /* Booking form: full width inputs */
    .booking-grid { grid-template-columns: 1fr !important; }

    /* Stats cards */
    .stats-section .stats-grid { grid-template-columns: 1fr 1fr; }

    /* Gallery */
    .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }

    /* Service category buttons */
    .srv-tab { font-size: 13px; padding: 9px 15px; }

    /* Floating buttons */
    .footer-bottom p { font-size: 13px; }
}

