/* =========================================
   1. VARIABLES & RESET (بنیادی سیٹنگز)
   ========================================= */
:root {
    --primary: #2a7f62;        /* گہرا ہرا رنگ */
    --primary-light: #3ab795;  /* ہلکا ہرا رنگ */
    --secondary: #2c3e50;      /* گہرا نیلا/سیاہ */
    --accent: #f39c12;         /* نوٹس اور بٹن کے لیے */
    --text: #333333;           /* عام لکھائی */
    --light-bg: #f8f9fa;       /* ہلکا گرے بیک گراؤنڈ */
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08); /* سافٹ شیڈو */
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; /* مینیو کلک پر آرام سے نیچے جائے */
}

body {
    font-family: 'Noto Nastaliq Urdu', 'Arial', sans-serif; /* اردو فونٹ */
    line-height: 1.8;
    color: var(--text);
    background-color: var(--white);
    overflow-x: hidden; /* سائیڈ سکرول ختم کرنے کے لیے */
}

/* کنٹینر جو مواد کو درمیان میں رکھتا ہے */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* =========================================
   2. NAVIGATION BAR (مینیو)
   ========================================= */
#navbar {
    background: var(--white);
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    position: fixed; /* مینیو اوپر چپکا رہے */
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
}

#navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-list {
    display: flex;
    gap: 25px;
}

.nav-list li a {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary);
    position: relative;
}

.nav-list li a:hover,
.nav-list li a.active {
    color: var(--primary);
}

/* Active line effect */
.nav-list li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary);
    bottom: -5px;
    right: 0; /* RTL Support */
    transition: var(--transition);
}

.nav-list li a:hover::after {
    width: 100%;
}

/* Mobile Menu Button */
.menu-toggle {
    display: none; /* ڈیسک ٹاپ پر چھپا رہے */
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    width: 30px;
    height: 3px;
    background: var(--primary);
    border-radius: 5px;
    transition: var(--transition);
}

/* =========================================
   3. HERO SECTION (مین تصویر والا حصہ)
   ========================================= */
.hero {
    height: 90vh; /* پوری سکرین کا 90 فیصد */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding-top: 80px; /* مینیو کے پیچھے نہ چھپے */
    position: relative;
}

.hero-content {
    max-width: 800px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4); /* ٹیکسٹ کے پیچھے ہلکا کالا سایہ */
    border-radius: 15px;
    backdrop-filter: blur(3px);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero .specialty {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #eee;
}

.hero-info {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.hero-info p {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 1rem;
    border: 1px solid rgba(255,255,255,0.4);
}

/* بٹن ڈیزائن */
.btn {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 12px 35px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(42, 127, 98, 0.4);
}

.btn:hover {
    background: var(--primary-light);
    transform: translateY(-3px); /* اوپر اٹھنے کا ایفیکٹ */
    box-shadow: 0 8px 20px rgba(42, 127, 98, 0.6);
}

/* =========================================
   4. NOTICE SECTION (نوٹس بار)
   ========================================= */
.notice {
    background: var(--primary);
    padding: 20px 0;
    margin-top: -5px; /* گیپ ختم کرنے کے لیے */
}

.notice-content {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.notice-badge {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255,255,255,0.2);
}

/* =========================================
   5. GENERAL SECTIONS (تعارف، سروسز وغیرہ)
   ========================================= */
.section {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--light-bg);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
}

/* ٹائٹل کے نیچے لائن */
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-light);
    border-radius: 2px;
}

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-img {
    flex: 1;
}

.about-img img {
    width: 100%;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.about-text {
    flex: 1;
    font-size: 1.1rem;
    text-align: justify;
}

/* =========================================
   6. CARDS (سروسز، بیماریاں، ٹپس)
   ========================================= */
.services-grid, .diseases-grid, .gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* خودکار کالم */
    gap: 30px;
}

.service-card, .disease-category, .tip-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border-top: 5px solid var(--primary);
}

.service-card:hover, .disease-category:hover, .tip-card:hover {
    transform: translateY(-10px);
    border-top-color: var(--accent);
}

.service-card i, .disease-category i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.service-card h3, .disease-category h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--secondary);
}

/* Lists inside cards */
.service-card ul, .disease-category ul {
    text-align: right; /* اردو لسٹ دائیں طرف */
    padding-right: 15px;
}

.service-card ul li, .disease-category ul li {
    margin-bottom: 10px;
    list-style: disc;
    color: #555;
}

/* =========================================
   7. TIMELINE (قابلیات)
   ========================================= */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

/* بیچ والی لکیر */
.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--primary-light);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item:nth-child(odd) { left: 0; text-align: left; }
.timeline-item:nth-child(even) { left: 50%; text-align: right; }

/* دائرے */
.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--white);
    border: 4px solid var(--primary);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(even)::after {
    left: -10px;
}

.timeline-content {
    padding: 20px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
}

/* =========================================
   8. DAILY HEALTH TIPS (بلاگ سٹائل)
   ========================================= */
.tip-card {
    padding: 0; /* Padding reset for image */
    text-align: right;
    border-top: none;
}

.tip-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.tip-content {
    padding: 20px;
}

.tip-title {
    font-size: 1.3rem;
    color: var(--secondary);
    margin: 10px 0;
}

/* =========================================
   9. GALLERY & VIDEO
   ========================================= */
.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 ratio */
    height: 0;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* =========================================
   10. CONTACT FORM & FOOTER
   ========================================= */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info p, .contact-info a {
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: block;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
}

.contact-form input:focus, .contact-form textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 5px rgba(42, 127, 98, 0.3);
}

.contact-form textarea {
    height: 150px;
    resize: none;
}

footer {
    background: var(--secondary);
    color: var(--white);
    padding: 40px 0;
    text-align: center;
    margin-top: 50px;
}

.social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    margin: 0 5px;
    color: var(--white);
}

.social-links a:hover {
    background: var(--primary);
}

/* =========================================
   11. MOBILE RESPONSIVENESS (موبائل ویو)
   ========================================= */
@media screen and (max-width: 768px) {
    
    /* مینیو */
    .menu-toggle {
        display: flex;
    }

    .nav-list {
        position: absolute;
        top: 70px;
        right: -100%; /* سکرین سے باہر */
        width: 100%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: 0.5s;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    }

    .nav-list.active {
        right: 0; /* سکرین کے اندر */
    }

    /* ہیرو سیکشن */
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero .specialty {
        font-size: 1.1rem;
    }

    .hero-info {
        flex-direction: column;
        gap: 10px;
    }

    /* اباؤٹ سیکشن */
    .about-content {
        flex-direction: column;
    }

    /* ٹائم لائن (Qualifications) */
    .timeline::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
        text-align: right !important; /* موبائل پر سب دائیں طرف */
    }
    
    .timeline-item::after {
        left: 21px;
    }
    
    .timeline-item:nth-child(even) {
        left: 0;
    }

    /* رابطہ فارم */
    .contact-container {
        grid-template-columns: 1fr; /* ایک کالم */
    }
}