
:root {
    --primary: #2a7f62;
    --primary-light: #3ab795;
    --dark: #1a3c32;
    --light: #f8f9fa;
    --white: #ffffff;
    --text: #333333;
    --shadow: 0 5px 15px rgba(0,0,0,0.1);
}

 /* جدید طبی تھیم */  
        :root {  
            --primary: #2a7f62;  
            --primary-light: #3ab795;  
            --dark: #1a3c32;  
            --light: #f8f9fa;  
            --white: #ffffff;  
            --text: #333333;  
            --shadow: 0 5px 15px rgba(0,0,0,0.1);  
        }  /* بنیادی سیٹ اپ */  
    * {  
        margin: 0;  
        padding: 0;  
        box-sizing: border-box;  
    }  

    body {  
        font-family: 'Noto Nastaliq Urdu', serif;
        line-height: 1.6;  
        color: var(--text);  
        background-color: var(--light);  
        overflow-x: hidden;  
    }  

    .container {  
        max-width: 1200px;  
        margin: 0 auto;  
        padding: 0 20px;  
    }  

    .section {  
        padding: 80px 0;  
    }  

    .section-title {  
        text-align: center;  
        font-size: 2.5rem;  
        margin-bottom: 50px;  
        color: var(--primary);  
        position: relative;  
    }  

    .section-title::after {  
        content: '';  
        display: block;  
        width: 80px;  
        height: 4px;  
        background: var(--primary-light);  
        margin: 15px auto;  
    }  

    .bg-light {  
        background-color: var(--white);  
    }  

    /* نیویگیشن بار */  
    #navbar {  
        background-color: var(--white);  
        box-shadow: var(--shadow);  
        position: fixed;  
        width: 100%;  
        top: 0;  
        z-index: 1000;  
        transition: all 0.3s ease;  
        padding: 15px 0;  
    }  

    #navbar .container {  
        display: flex;  
        justify-content: space-between;  
        align-items: center;  
    }  

    .logo img {  
        height: 50px;  
    }  

    .nav-list {  
        display: flex;  
        list-style: none;  
    }  

    .nav-list li {  
        margin-left: 30px;  
    }  

    .nav-list a {  
        color: var(--dark);  
        text-decoration: none;  
        font-weight: 500;  
        font-size: 1.1rem;  
        transition: color 0.3s;  
        position: relative;  
    }  

    .nav-list a:hover {  
        color: var(--primary);  
    }  

    .nav-list a::after {  
        content: '';  
        position: absolute;  
        width: 0;  
        height: 2px;  
        background: var(--primary);  
        bottom: -5px;  
        left: 0;  
        transition: width 0.3s;  
    }  

    .nav-list a:hover::after {  
        width: 100%;  
    }  

   .menu-toggle {  
    display: none;  
    cursor: pointer;  
    flex-direction: column;  
    justify-content: space-between;  
    height: 24px;  
    width: 30px;  
}  

.menu-toggle span {  
    display: block;  
    width: 100%;  
    height: 3px;  
    background: var(--primary, #000);  /* fallback color */
    transition: all 0.3s;  
}  

/* موبائل ویو میں دکھانے کے لیے */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-list {
        display: none;
        flex-direction: column;
        background-color: #f8f8f8;
        position: absolute;
        top: 60px;
        right: 10px;
        width: 200px;
        padding: 10px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }

    .nav-list.active {
        display: flex;
    }
}


    /* ہیرو سیکشن */  
    .hero {  
        background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://images.unsplash.com/photo-1519494026892-80bbd2d6fd0d?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1200&q=80');  
        background-size: cover;  
        background-position: center;  
        height: 100vh;  
        display: flex;  
        align-items: center;  
        text-align: center;  
        color: var(--white);  
        padding-top: 80px;  
    }  

    .hero-content {  
        max-width: 800px;  
        margin: 0 auto;  
    }  

    .hero-content h1 {  
        font-size: 3.5rem;  
        margin-bottom: 20px;  
        animation: fadeInDown 1s ease;  
    }  

    .hero-content .specialty {  
        font-size: 1.8rem;  
        margin-bottom: 30px;  
        display: block;  
        animation: fadeInDown 1s ease 0.3s forwards;  
        opacity: 0;  
    }  

    .hero-info {  
        margin: 30px 0;  
        animation: fadeInUp 1s ease 0.6s forwards;  
        opacity: 0;  
    }  

    .hero-info p {  
        display: inline-block;  
        margin: 0 15px;  
        font-size: 1.1rem;  
    }  

    .hero-info i {  
        margin-left: 8px;  
    }  

    .btn {  
        display: inline-block;  
        background: var(--primary);  
        color: var(--white);  
        padding: 12px 30px;  
        border-radius: 50px;  
        text-decoration: none;  
        font-weight: 500;  
        transition: all 0.3s;  
        border: none;  
        cursor: pointer;  
        font-size: 1rem;  
        animation: fadeInUp 1s ease 0.9s forwards;  
        opacity: 0;  
    }  

    .btn:hover {  
        background: var(--primary-light);  
        transform: translateY(-3px);  
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);  
    }  

    /* نوٹس سیکشن */  
    .notice {  
        background: var(--primary);  
        color: var(--white);  
        padding: 20px 0;  
        text-align: center;  
    }  

    .notice-content {  
        display: flex;  
        justify-content: center;  
        align-items: center;  
        flex-wrap: wrap;  
        gap: 15px;  
    }  

    .notice-badge {  
        background: rgba(255,255,255,0.2);  
        padding: 8px 15px;  
        border-radius: 30px;  
        font-size: 0.9rem;  
    }  

    /* تعارف سیکشن */  
    .about-content {  
        display: flex;  
        align-items: center;  
        gap: 50px;  
    }  

    .about-img {  
        flex: 1;  
    }  

    .about-img img {  
        width: 100%;  
        border-radius: 10px;  
        box-shadow: var(--shadow);  
    }  

    .about-text {  
        flex: 1;  
    }  

    .about-text h3 {  
        font-size: 1.8rem;  
        color: var(--primary);  
        margin-bottom: 20px;  
    }  

    .about-text p {  
        margin-bottom: 15px;  
        text-align: justify;  
    }  

    .about-text ul {  
        list-style: none;  
        margin-top: 20px;  
    }  

    .about-text ul li {  
        margin-bottom: 10px;  
        position: relative;  
        padding-right: 25px;  
    }  

    .about-text ul li::before {  
        content: '\f00c';  
        font-family: 'Font Awesome 6 Free';  
        font-weight: 900;  
        color: var(--primary);  
        position: absolute;  
        right: 0;  
    }  

   

    /* خدمات سیکشن */  
    .services-grid {  
        display: grid;  
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));  
        gap: 30px;  
    }  

    .service-card {  
        background: var(--white);  
        padding: 30px;  
        border-radius: 10px;  
        box-shadow: var(--shadow);  
        transition: all 0.3s;  
        text-align: center;  
    }  

    .service-card:hover {  
        transform: translateY(-10px);  
        box-shadow: 0 15px 30px rgba(0,0,0,0.1);  
    }  

    .service-card i {  
        font-size: 3rem;  
        color: var(--primary);  
        margin-bottom: 20px;  
    }  

    .service-card h3 {  
        font-size: 1.5rem;  
        margin-bottom: 15px;  
        color: var(--primary);  
    }  

    .service-card ul {  
        list-style: none;  
        text-align: right;  
        margin-top: 20px;  
    }  

    .service-card ul li {  
        margin-bottom: 10px;  
        position: relative;  
        padding-right: 25px;  
    }  

    .service-card ul li::before {  
        content: '\f138';  
        font-family: 'Font Awesome 6 Free';  
        font-weight: 900;  
        color: var(--primary-light);  
        position: absolute;  
        right: 0;  
    }  

    /* امراض سیکشن */  
    .diseases-grid {  
        display: grid;  
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));  
        gap: 30px;  
    }  

    .disease-category {  
        background: var(--white);  
        padding: 30px;  
        border-radius: 10px;  
        box-shadow: var(--shadow);  
    }  

    .disease-category h3 {  
        color: var(--primary);  
        margin-bottom: 20px;  
        font-size: 1.3rem;  
        display: flex;  
        align-items: center;  
    }  

    .disease-category h3 i {  
        margin-left: 10px;  
    }  

    .disease-category ul {  
        list-style: none;  
    }  

    .disease-category ul li {  
        margin-bottom: 10px;  
        position: relative;  
        padding-right: 25px;  
        display: flex;  
        justify-content: space-between;  
    }  

    .disease-category ul li span {  
        color: var(--primary);  
        font-weight: 500;  
    }  

    /* گیلری سیکشن */  
    .gallery-grid {  
        display: grid;  
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));  
        gap: 20px;  
    }  

    .gallery-item {  
        position: relative;  
        overflow: hidden;  
        border-radius: 10px;  
        box-shadow: var(--shadow);  
    }  

    .gallery-item img {  
        width: 100%;  
        height: 250px;  
        object-fit: cover;  
        transition: transform 0.5s;  
    }  

    .gallery-item:hover img {  
        transform: scale(1.1);  
    }  

    .gallery-item p {  
        position: absolute;  
        bottom: 0;  
        left: 0;  
        right: 0;  
        background: rgba(42, 127, 98, 0.8);  
        color: var(--white);  
        padding: 10px;  
        text-align: center;  
        transform: translateY(100%);  
        transition: transform 0.3s;  
    }  

    .gallery-item:hover p {  
        transform: translateY(0);  
    }  

    /* ویڈیو سیکشن */  
    .video-container {  
        position: relative;  
        padding-bottom: 56.25%;  
        height: 0;  
        overflow: hidden;  
        border-radius: 10px;  
        box-shadow: var(--shadow);  
    }  

    .video-container iframe {  
        position: absolute;  
        top: 0;  
        left: 0;  
        width: 100%;  
        height: 100%;  
    }  

    /* رابطہ سیکشن */  
    .contact-container {  
        display: grid;  
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));  
        gap: 50px;  
    }  

    .contact-info h3 {  
        color: var(--primary);  
        margin-bottom: 15px;  
        font-size: 1.3rem;  
        display: flex;  
        align-items: center;  
    }  

    .contact-info h3 i {  
        margin-left: 10px;  
    }  

    .contact-info p {  
        margin-bottom: 20px;  
        padding-right: 30px;  
    }  

    .social-links {  
        display: flex;  
        gap: 15px;  
        margin-top: 30px;  
    }  

    .social-links a {  
        display: inline-flex;  
        align-items: center;  
        justify-content: center;  
        width: 40px;  
        height: 40px;  
        background: var(--primary);  
        color: var(--white);  
        border-radius: 50%;  
        transition: all 0.3s;  
    }  

    .social-links a:hover {  
        background: var(--primary-light);  
        transform: translateY(-5px);  
    }  

    .contact-form input,  
    .contact-form textarea {  
        width: 100%;  
        padding: 12px 15px;  
        margin-bottom: 20px;  
        border: 1px solid #ddd;  
        border-radius: 5px;  
        font-family: inherit;  
        transition: all 0.3s;  
    }  

    .contact-form input:focus,  
    .contact-form textarea:focus {  
        border-color: var(--primary);  
        outline: none;  
        box-shadow: 0 0 0 3px rgba(42, 127, 98, 0.2);  
    }  

    .contact-form textarea {  
        height: 150px;  
        resize: vertical;  
    }  

    /* فوٹر */  
    footer {  
        background: var(--dark);  
        color: var(--white);  
        text-align: center;  
        padding: 30px 0;  
    }  

    footer .container {  
        display: flex;  
        flex-direction: column;  
        align-items: center;  
    }  

    footer p {  
        margin-bottom: 20px;  
    }  

    .footer-links {  
        display: flex;  
        list-style: none;  
        margin-bottom: 20px;  
    }  

    .footer-links li {  
        margin: 0 15px;  
    }  

    .footer-links a {  
        color: var(--white);  
        text-decoration: none;  
        transition: color 0.3s;  
    }  

    .footer-links a:hover {  
        color: var(--primary-light);  
    }  

    /* موبائل رعایت */  
    @media (max-width: 768px) {  
        .menu-toggle {  
            display: flex;  
        }  
          
        .nav-list {  
            position: fixed;  
            top: 80px;  
            left: -100%;  
            width: 100%;  
            height: calc(100vh - 80px);  
            background: var(--white);  
            flex-direction: column;  
            align-items: center;  
            padding-top: 30px;  
            transition: all 0.5s ease;  
        }  
          
        .nav-list.active {  
            left: 0;  
        }  
          
        .nav-list li {  
            margin: 15px 0;  
        }  
          
        .menu-toggle.active span:nth-child(1) {  
            transform: rotate(45deg) translate(5px, 5px);  
        }  
          
        .menu-toggle.active span:nth-child(2) {  
            opacity: 0;  
        }  
          
        .menu-toggle.active span:nth-child(3) {  
            transform: rotate(-45deg) translate(7px, -6px);  
        }  
          
        .hero-content h1 {  
            font-size: 2.5rem;  
        }  
          
        .about-content {  
            flex-direction: column;  
        }  
          
        .timeline::before {  
            left: 31px;  
        }  
          
        .timeline-item {  
            width: 100%;  
            padding-left: 70px;  
            padding-right: 25px;  
        }  
          
        .timeline-item:nth-child(even) {  
            left: 0;  
        }  
          
        .timeline-item::after {  
            left: 21px;  
        }  
          
        .contact-container {  
            grid-template-columns: 1fr;  
        }  
    }  

    /* اینیمیشنز */  
    @keyframes fadeInDown {  
        from {  
            opacity: 0;  
            transform: translateY(-30px);  
        }  
        to {  
            opacity: 1;  
            transform: translateY(0);  
        }  
    }  

    @keyframes fadeInUp {  
        from {  
            opacity: 0;  
            transform: translateY(30px);  
        }  
        to {  
            opacity: 1;  
            transform: translateY(0);  
        }  
    } 
    /* =========================================
   TIMELINE (قابلیات) - FINAL VERSION
   ========================================= */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 40px auto;
    padding: 20px 0;
    display: flex;       /* ڈیسک ٹاپ پر آمنے سامنے لانے کے لیے */
    flex-wrap: wrap;     /* اگر جگہ ختم ہو تو اگلی لائن پر جائے */
}

/* 1. درمیانی لائن (ڈیسک ٹاپ کے لیے) */
.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--primary-light);
    top: 0;
    bottom: 0;
    left: 50%; /* بالکل درمیان میں */
    transform: translateX(-50%);
}

/* 2. باکس کی بنیادی سیٹنگ */
.timeline-item {
    width: 50%; /* آدھی سکرین (ڈیسک ٹاپ کے لیے) */
    padding: 15px 40px;
    box-sizing: border-box;
    position: relative;
}

/* 3. بائیں طرف والے باکس (ڈیسک ٹاپ: 1, 3, 5...) */
.timeline-item:nth-child(odd) {
    text-align: right; /* ٹیکسٹ لائن کی طرف */
    padding-right: 50px; /* لائن سے فاصلہ */
    border-right: 0;
}

/* 4. دائیں طرف والے باکس (ڈیسک ٹاپ: 2, 4, 6...) */
.timeline-item:nth-child(even) {
    text-align: left; /* ٹیکسٹ لائن کی طرف */
    padding-left: 50px; /* لائن سے فاصلہ */
}

/* 5. دائرے (Dots) - بنیادی ڈیزائن */
.timeline-item::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    background-color: var(--white);
    border: 4px solid var(--primary);
    border-radius: 50%;
    top: 30px;
    z-index: 2;
}

/* بائیں والے کا دائرہ (لائن کے اوپر) */
.timeline-item:nth-child(odd)::after {
    right: -11px;
}

/* دائیں والے کا دائرہ (لائن کے اوپر) */
.timeline-item:nth-child(even)::after {
    left: -11px;
}

/* 6. کارڈ کا ڈیزائن */
.timeline-content {
    padding: 25px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border-top: 4px solid var(--primary);
    transition: 0.3s;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.timeline-content h3 {
    margin: 0 0 5px 0;
    color: var(--primary);
    font-size: 1.3rem;
    font-weight: bold;
}

.timeline-content p {
    margin: 0 0 5px 0;
    color: #555;
}

/* سال (Year) کا بیج */
.timeline-content p:last-child {
    display: inline-block;
    background: var(--light-bg);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    margin-top: 5px;
}

/* =========================================
   موبائل ریسپانسیو (Mobile View - Fixed for Urdu)
   ========================================= */
@media screen and (max-width: 768px) {
    
    /* 1. لائن کو دائیں طرف (Right) شفٹ کریں */
    .timeline::after {
        left: auto;        /* بائیں سے ہٹایا */
        right: 30px;       /* دائیں طرف لگایا */
        transform: none;   /* سینٹر ختم */
    }
    
    /* 2. باکس کی سیٹنگ (پوری چوڑائی اور دائیں الائنمنٹ) */
    .timeline-item {
        width: 100%;             /* پوری سکرین */
        padding-right: 70px;     /* لائن کے لیے دائیں طرف جگہ چھوڑی */
        padding-left: 20px;      /* بائیں طرف تھوڑی جگہ */
        text-align: right !important; /* ٹیکسٹ دائیں طرف */
        margin-bottom: 20px;
    }
    
    /* Odd/Even کا فرق ختم کریں (سب ایک جیسے) */
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        text-align: right;
        padding-right: 70px;
        padding-left: 20px;
        border: none;
    }

    /* 3. دائروں (Dots) کو دائیں لائن پر سیٹ کریں */
    .timeline-item::after {
        left: auto !important;   /* بائیں سے ہٹایا */
        right: 21px !important;  /* دائیں لائن کے اوپر سیٹ کیا */
        top: 25px;
    }

    /* دائروں کی پوزیشن فکس کریں (Odd/Even دونوں کے لیے) */
    .timeline-item:nth-child(odd)::after,
    .timeline-item:nth-child(even)::after {
        left: auto;
        right: 21px;
    }
}
    