:root {
    --primary-color: #0056b3; /* Deep Blue - Trust/Medical */
    --secondary-color: #fd7e14; /* Warm Orange - Energy/Children */
    --text-color: #333333;
    --bg-color: #f8f9fa;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', 'Almarai', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    font-size: 16px; /* Base size for readability */
    overflow-x: hidden;
}

/* Util Classes */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 5px;
    transition: var(--transition);
    text-align: center;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #004494;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: #e36d0d;
}

h1, h2, h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

h2 {
    font-size: 1.8rem;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

/* Header */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    color: var(--secondary-color);
}

/* Mobile Nav */
.hamburger {
    display: block;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
    background: none;
    border: none;
}

.nav-links {
    display: none; /* Hidden on mobile by default */
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--white);
    flex-direction: column;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-links li {
    list-style: none;
    border-bottom: 1px solid #eee;
}

.nav-links a {
    display: block;
    padding: 15px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
}

.header-cta-mobile {
    display: none;
}

/* Hero Section */
.hero {
    margin-top: 70px; /* Header height */
    /* Background Image handled inline in HTML for dynamic URL */
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
    padding: 80px 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 20px;
    line-height: 1.4;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Diagnosis Methodology */
.diagnosis {
    padding: 60px 0;
}

.cards-container {
    display: grid;
    gap: 20px;
    margin-top: 40px;
    /* Grid template responsive below */
}

.card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: center;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
}

.card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.card-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

/* Services Grid */
.services {
    padding: 60px 0;
    background-color: #f1f3f5;
}

.service-banner {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 15px;
    text-align: center;
    border-radius: 8px;
    margin-bottom: 40px;
    font-weight: bold;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr; /* 1 col mobile */
    gap: 20px;
}

.service-item {
    background-color: var(--white);
    padding: 25px;
    border-radius: 8px;
    border-right: 4px solid var(--secondary-color);
}

.service-item h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-item h3 i {
    color: var(--secondary-color);
}

.service-item p {
    font-size: 0.95rem;
    color: #666;
}

/* Why Us */
.why-us {
    padding: 60px 0;
}

.features-list {
    list-style: none;
    margin-top: 30px;
    display: grid;
    gap: 15px;
}

.features-list li {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 700;
}

.features-list i {
    color: #28a745; /* Success Green */
    font-size: 1.2rem;
}

/* Footer */
footer {
    background-color: #343a40;
    color: #adb5bd;
    padding-top: 50px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-info h3 {
    color: var(--white);
    margin-bottom: 20px;
}

.footer-links p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links a {
     color: #adb5bd;
     text-decoration: none;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.footer-links i {
    color: var(--secondary-color);
    width: 20px;
}

.social-link {
    display: inline-block;
    margin-top: 15px;
    font-size: 1.5rem;
    color: var(--white);
}

.map-container {
    width: 100%;
    height: 300px;
    border-radius: 10px;
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.copyright {
    background-color: #212529;
    text-align: center;
    padding: 15px 0;
    font-size: 0.9rem;
}

/* Responsive Breakpoints */

/* Tablet & Desktop */
@media (min-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2.2rem; }

    /* Nav Desktop */
    .hamburger { display: none; }
    
    .nav-links {
        display: flex;
        position: static;
        flex-direction: row;
        width: auto;
        background: none;
        box-shadow: none;
        gap: 20px;
    }
    
    .nav-links li {
        border-bottom: none;
    }
    
    .nav-links a {
        padding: 0;
        color: var(--primary-color);
    }
    
    .nav-links a:hover {
        color: var(--secondary-color);
    }
     
    .header-cta-mobile {
        display: block;
    }
    
    .header-content {
        gap: 20px;
    }

    /* Diagnostic Cards */
    .cards-container {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Services Grid */
    .services-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 cols tablet */
    }
    
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .footer-info, .map-container {
        flex: 1;
    }
}

    /* Desktop specific for services */
@media (min-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr); /* 4 cols desktop */
    }
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1);
}

/* Latest News - Facebook Embed */
.latest-news {
    padding: 60px 0;
    background-color: #ffffff;
    text-align: center;
}

.facebook-embed-container {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    overflow: hidden;
}

.facebook-embed-container iframe {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
