        :root {
            --primary: #0a4d3c;
            /* گہرا اسلامی سبز */
            --secondary: #b8860b;
            /* سنہرا رنگ */
            --dark-blue: #0f172a;
            --dark: #0f172a;
            --light-bg: #f8fafc;
            --white: #ffffff;
            --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
            --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);

        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Noto Naskh Arabic', serif;
        }

        h1,
        h2,
        h3,
        .logo {
            font-family: 'Noto Naskh Arabic', sans-serif;
        }

        body {
            background-color: var(--light-bg);
            color: #334155;
            line-height: 1.8;
            overflow-x: hidden;
        }

        /* --- Custom Scrollbar --- */
        ::-webkit-scrollbar {
            width: 10px;
        }

        ::-webkit-scrollbar-track {
            background: #f1f1f1;
        }

        ::-webkit-scrollbar-thumb {
            background: var(--primary);
        }

        /* --- Top Bar --- */
        .top-bar {
            background: var(--dark-blue);
            color: white;
            padding: 8px 10%;
            display: flex;
            justify-content: space-between;
            font-size: 14px;
        }

        .top-social i {
            margin-right: 15px;
            cursor: pointer;
        }

        /* --- Header & Nav --- */
        header {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            padding: 15px 10%;
            display: flex;
            justify-content: space-between;
            align-items: center;
            position: sticky;
            top: 0;
            z-index: 1000;
            box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
        }

        .logo {
            font-size: 28px;
            font-weight: bold;
            color: var(--primary);
            text-decoration: none;
        }

        nav ul {
            display: flex;
            list-style: none;
            gap: 25px;
        }

        nav ul li a {
            text-decoration: none;
            color: #1e293b;
            font-weight: 600;
            transition: var(--transition);
        }

        nav ul li a:hover {
            color: var(--secondary);
        }

nav ul li a.active {
    color: var(--secondary) !important;
}

/* اگر آپ چاہتے ہیں کہ نیچے ایک چھوٹی لائن بھی آئے (آپشنل) */
nav ul li a.active::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background: var(--secondary);
    margin-top: 5px;
}

        .btn-donate {
            background: var(--secondary);
            color: white !important;
            padding: 10px 25px;
            border-radius: 50px;
            font-weight: bold;
            box-shadow: 0 5px 15px rgba(184, 134, 11, 0.3);
        }

        /* --- Hero Section --- */
        .hero {
            height: 90vh;
            background: linear-gradient(rgba(10, 77, 60, 0.8), rgba(15, 23, 42, 0.9)),
                url('slider.png');
            background-size: cover;
            background-position: center;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            color: white;
            clip-path: ellipse(150% 100% at 50% 0%);
        }

        .hero-content h1 {
            font-size: 65px;
            margin-bottom: 20px;
            text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
        }

        .hero-content p {
            font-size: 24px;
            margin-bottom: 40px;
            opacity: 0.9;
        }

        /* --- Page Hero --- */
        .page-hero {
            background: linear-gradient(rgba(10, 77, 60, 0.9), rgba(10, 77, 60, 0.9)),
                url('https://images.unsplash.com/photo-1590076215667-873d4844336c?auto=format&fit=crop&w=1500&q=80');
            height: 300px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            text-align: center;
        }

        .page-hero h1 {
            font-family: 'Noto Naskh Arabic', sans-serif !important;
            font-size: 48px;
            border-bottom: 4px solid var(--secondary);
            padding-bottom: 10px;
        }

        /* --- Section Styling --- */
        .section {
            padding: 80px 10%;
        }

        .section-title {
            font-size: 36px;
            color: var(--primary);
            margin-bottom: 30px;
            position: relative;
            display: inline-block;
        }

        .section-title::after {
            content: '';
            width: 50%;
            height: 3px;
            background: var(--secondary);
            position: absolute;
            bottom: -5px;
            right: 0;
        }

        /* --- About Content --- */
        .about-intro {
            display: flex;
            gap: 50px;
            align-items: center;
        }

        .about-text {
            flex: 1;
        }

        .about-img {
            flex: 1;
        }

        .about-img img {
            width: 100%;
            border-radius: 20px;
            box-shadow: -20px 20px 0 var(--light);
        }

        /* --- Mission & Vision --- */
        .mission-vision {
            background: var(--light);
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 30px;
        }

        .mv-card {
            background: white;
            padding: 40px;
            border-radius: 15px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
            border-top: 5px solid var(--secondary);
        }

        .mv-card i {
            font-size: 40px;
            color: var(--primary);
            margin-bottom: 20px;
        }

        /* --- Principal Message --- */
        .principal-detail {
            display: flex;
            gap: 40px;
            background: white;
            border: 1px solid #eee;
            padding: 40px;
            border-radius: 20px;
        }

        .p-img {
            flex: 1;
            text-align: center;
        }

        .p-img img {
            width: 250px;
            height: 300px;
            object-fit: cover;
            border-radius: 15px;
            border: 5px solid var(--light);
        }

        .p-content {
            flex: 2;
        }

        /* --- Facilities Grid --- */
        .facilities-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
            margin-top: 40px;
        }

        .facility-item {
            text-align: center;
            padding: 30px;
            background: var(--white);
            border: 1px solid var(--light);
            border-radius: 15px;
            transition: var(--transition);
        }

        .facility-item:hover {
            transform: translateY(-5px);
            border-color: var(--secondary);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
        }

        .facility-item i {
            font-size: 35px;
            color: var(--primary);
            margin-bottom: 15px;
        }

        /* --- Contact Info Cards --- */
        .contact-info-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 30px;
            padding: 80px 10% 40px;
        }

        .info-card {
            background: white;
            padding: 40px 30px;
            border-radius: 20px;
            text-align: center;
            box-shadow: var(--shadow);
            transition: var(--transition);
            border-top: 5px solid var(--primary);
        }

        .info-card:hover {
            transform: translateY(-10px);
            border-top-color: var(--secondary);
        }

        .info-card i {
            font-size: 45px;
            color: var(--secondary);
            margin-bottom: 20px;
        }

        .info-card h3 {
            color: var(--primary);
            margin-bottom: 15px;
            font-size: 24px;
        }

        .info-card p {
            font-size: 16px;
            color: #64748b;
        }

        /* --- Contact Form & Map Section --- */
        .contact-main {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 50px;
            padding: 40px 10% 80px;
        }

        .form-container {
            background: white;
            padding: 40px;
            border-radius: 20px;
            box-shadow: var(--shadow);
        }

        .form-container h2 {
            color: var(--primary);
            margin-bottom: 30px;
            font-size: 32px;
        }

        .form-group {
            margin-bottom: 20px;
        }

        .form-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
            color: var(--dark);
        }

        .form-group input,
        .form-group textarea {
            width: 100%;
            padding: 12px 15px;
            border: 1px solid #e2e8f0;
            border-radius: 10px;
            outline: none;
            font-size: 16px;
            background: #f8fafc;
            transition: 0.3s;
            text-align: right;
        }

        .form-group input:focus,
        .form-group textarea:focus {
            border-color: var(--primary);
            background: white;
        }

        .submit-btn {
            background: var(--primary);
            color: white;
            border: none;
            padding: 15px 40px;
            border-radius: 10px;
            font-size: 18px;
            font-weight: bold;
            cursor: pointer;
            width: 100%;
            transition: var(--transition);
        }

        .submit-btn:hover {
            background: var(--secondary);
        }

        /* --- Google Map --- */
        .map-container {
            border-radius: 20px;
            overflow: hidden;
            box-shadow: var(--shadow);
            height: 100%;
            min-height: 450px;
        }

        iframe {
            width: 100%;
            height: 100%;
            border: none;
        }

        /* --- Social & WhatsApp Floating --- */
        .whatsapp-float {
            position: fixed;
            bottom: 30px;
            right: 30px;
            background: #25d366;
            color: white;
            width: 60px;
            height: 60px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 30px;
            box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
            z-index: 1000;
            text-decoration: none;
        }

        /* --- Main Services Grid --- */
        .section {
            padding: 80px 10%;
        }

        .text-center {
            text-align: center;
        }

        .section-title {
            font-size: 38px;
            color: var(--primary);
            margin-bottom: 50px;
            position: relative;
        }

        .section-title::after {
            content: '';
            width: 80px;
            height: 4px;
            background: var(--secondary);
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
        }

        .services-overview {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 30px;
        }

        .service-card {
            background: var(--light-bg);
            padding: 40px 30px;
            border-radius: 20px;
            text-align: center;
            transition: var(--transition);
            border: 1px solid transparent;
        }

        .service-card:hover {
            background: var(--white);
            border-color: var(--secondary);
            transform: translateY(-10px);
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
        }

        .service-card i {
            font-size: 50px;
            color: var(--primary);
            margin-bottom: 20px;
        }

        .service-card h3 {
            color: var(--primary);
            margin-bottom: 15px;
            font-size: 24px;
        }

        /* --- Detailed Features (Alternating Layout) --- */
        .detail-row {
            display: flex;
            align-items: center;
            gap: 60px;
            margin-bottom: 100px;
        }

        .detail-row:nth-child(even) {
            flex-direction: row-reverse;
        }

        .detail-img {
            flex: 1;
        }

        .detail-img img {
            width: 100%;
            border-radius: 30px;
            box-shadow: 15px 15px 0 var(--light-bg);
        }

        .detail-text {
            flex: 1;
        }

        .detail-text h2 {
            font-size: 32px;
            color: var(--primary);
            margin-bottom: 20px;
            border-right: 5px solid var(--secondary);
            padding-right: 15px;
        }

        .detail-text ul {
            list-style: none;
            margin-top: 20px;
        }

        .detail-text ul li {
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .detail-text ul li i {
            color: var(--secondary);
        }

        /* --- Special Highlights Section --- */
        .highlights {
            background: var(--dark);
            color: white;
            padding: 80px 10%;
        }

        .highlights-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 40px;
        }

        .highlight-item {
            text-align: center;
        }

        .highlight-item i {
            font-size: 40px;
            color: var(--secondary);
            margin-bottom: 15px;
        }

        /* --- CTA Section --- */
        .admission-cta {
            background: linear-gradient(45deg, var(--primary), #065f46);
            color: white;
            padding: 60px 10%;
            border-radius: 30px;
            margin: 50px 10%;
            text-align: center;
        }

        .cta-btn {
            display: inline-block;
            background: var(--secondary);
            color: white;
            padding: 15px 45px;
            border-radius: 50px;
            text-decoration: none;
            font-weight: bold;
            font-size: 20px;
            margin-top: 30px;
            transition: var(--transition);
        }

        .cta-btn:hover {
            background: var(--white);
            color: var(--primary);
            transform: scale(1.05);
        }


        /* --- Stats Section --- */
        .stats {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
            margin: -80px 10% 0;
            z-index: 10;
            position: relative;
        }

        .stat-card {
            background: white;
            padding: 40px 20px;
            border-radius: 20px;
            text-align: center;
            box-shadow: var(--shadow);
            border-bottom: 5px solid var(--secondary);
            transition: var(--transition);
        }

        .stat-card:hover {
            transform: translateY(-10px);
        }

        .stat-card i {
            font-size: 40px;
            color: var(--primary);
            margin-bottom: 15px;
        }

        .stat-card h2 {
            font-size: 35px;
            color: var(--dark-blue);
        }

        /* --- General Sections --- */
        .section {
            padding: 80px 10%;
        }

        .text-center {
            text-align: center;
        }

        .section-tag {
            color: var(--secondary);
            font-weight: bold;
            display: block;
            margin-bottom: 10px;
        }

        .section-title {
            font-size: 42px;
            color: var(--primary);
            margin-bottom: 50px;
            position: relative;
        }

        .section-title::after {
            content: '';
            width: 100px;
            height: 4px;
            background: var(--secondary);
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
        }

        /* --- About Section --- */
        .about-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 60px;
            align-items: center;
        }

        .about-img img {
            width: 100%;
            border-radius: 30px;
            box-shadow: 20px 20px 0 var(--primary);
        }

        .about-text p {
            font-size: 18px;
            margin-bottom: 20px;
        }

        /* --- Principal Message Section --- */
        .message-box {
            background: var(--primary);
            color: white;
            border-radius: 30px;
            padding: 50px;
            display: flex;
            gap: 40px;
            align-items: center;
        }

        .message-box img {
            width: 200px;
            height: 200px;
            border-radius: 50%;
            border: 5px solid var(--secondary);
        }

        /* --- Departments Grid --- */
        .dept-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 30px;
        }

        .dept-card {
            background: white;
            padding: 40px;
            border-radius: 20px;
            text-align: center;
            transition: var(--transition);
            border: 1px solid #e2e8f0;
        }

        .dept-card:hover {
            background: var(--primary);
            color: white;
        }

        .dept-card i {
            font-size: 50px;
            color: var(--secondary);
            margin-bottom: 25px;
        }

        .dept-card:hover i {
            color: white;
        }

        /* --- News Section --- */
        .news-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 30px;
        }

        .news-card {
            background: white;
            border-radius: 15px;
            overflow: hidden;
            box-shadow: var(--shadow);
        }

        .news-img {
            height: 200px;
            background: #ddd;
        }

        .news-body {
            padding: 25px;
        }

        .news-date {
            font-size: 12px;
            color: var(--secondary);
            font-weight: bold;
        }

        /* --- Donation Section --- */
        .donation-cta {
            background: linear-gradient(135deg, var(--primary), var(--dark-blue));
            color: white;
            text-align: center;
            border-radius: 30px;
            padding: 80px;
            margin: 50px 10%;
        }
        
        /* کیپشن کا اسٹائل */
.item-caption {
    background: #fff;
    padding: 12px;
    font-size: 15px;
    font-weight: 600;
    color: var(--primary);
    text-align: center;
    border: 1px solid #eee;
    border-top: none;
    border-radius: 0 0 10px 10px;
    transition: 0.3s;
}

.gallery-item:hover .item-caption {
    background: var(--primary);
    color: #fff;
}

.media-box {
    position: relative;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
    height: 220px;
}

.media-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

/* لائٹ باکس کیپشن */
.modal-caption {
    color: #fff;
    text-align: center;
    padding: 15px;
    font-size: 20px;
    font-family: 'Noto Naskh Arabic', serif;
}

.modal-content-wrapper {
    max-width: 800px;
    margin: auto;
    position: relative;
}

        /* --- Gallery Section --- */
        .gallery-section {
            padding: 60px 10%;
            text-align: center;
        }

        /* Filter Buttons */
        .filter-buttons {
            margin-bottom: 40px;
            display: flex;
            justify-content: center;
            gap: 15px;
            flex-wrap: wrap;
        }

        .filter-btn {
            padding: 10px 25px;
            border: 2px solid var(--primary);
            background: transparent;
            color: var(--primary);
            font-weight: bold;
            border-radius: 50px;
            cursor: pointer;
            transition: var(--transition);
        }

        .filter-btn.active,
        .filter-btn:hover {
            background: var(--primary);
            color: white;
        }

        /* Gallery Grid */
        .gallery-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 20px;
        }

        .gallery-item {
            position: relative;
            height: 250px;
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            cursor: pointer;
        }

        .gallery-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: var(--transition);
        }

        .gallery-item:hover img {
            transform: scale(1.1);
        }

        /* Hover Overlay */
        .overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(10, 77, 60, 0.8);
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: var(--transition);
        }

        .gallery-item:hover .overlay {
            opacity: 1;
        }

        .overlay i {
            color: white;
            font-size: 30px;
            transform: translateY(20px);
            transition: var(--transition);
        }

        .gallery-item:hover .overlay i {
            transform: translateY(0);
        }

        /* --- CTA Footer Section --- */
        .gallery-cta {
            background: var(--light);
            padding: 60px 10%;
            text-align: center;
            margin-top: 40px;
        }

        .gallery-cta h2 {
            color: var(--primary);
            margin-bottom: 20px;
        }

        /* --- Footer --- */
        footer {
            background: var(--dark-blue);
            color: #cbd5e1;
            padding: 80px 10% 20px;
        }

        .footer-grid {
            display: grid;
            grid-template-columns: 2fr 1fr 1fr 1fr;
            gap: 50px;
        }

        .footer-col h3 {
            color: white;
            margin-bottom: 30px;
            border-right: 4px solid var(--secondary);
            padding-right: 15px;
        }

        .footer-col ul {
            list-style: none;
        }

        .footer-col ul li {
            margin-bottom: 12px;
        }

        .footer-col ul li a {
            color: #cbd5e1;
            text-decoration: none;
            transition: 0.3s;
        }

        .footer-col ul li a:hover {
            color: var(--secondary);
            padding-right: 10px;
        }

        .footer-col ul li a.active {
            color: var(--secondary) !important;
            font-weight: bold;
        }

        /* --- Responsive --- */
        @media (max-width: 992px) {
            .hero-content h1 {
                font-size: 40px;
            }

            .about-grid,
            .footer-grid,
            .news-grid {
                grid-template-columns: 1fr;
            }

            .message-box {
                flex-direction: column;
                text-align: center;
            }

            header {
                flex-direction: column;
                gap: 20px;
            }

            nav ul {
                flex-wrap: wrap;
                justify-content: center;
            }
        }

/* Popup Overlay Styles */
    .popup-overlay {
        display: none; /* شروعات میں چھپا ہوا */
        position: fixed;
        top: 0; left: 0;
        width: 100%; height: 100%;
        background: rgba(0, 0, 0, 0.85);
        backdrop-filter: blur(8px);
        z-index: 9999;
        align-items: center;
        justify-content: center;
        padding: 20px;
    }

    /* Popup Card Styles */
    .popup-card {
        background: #fff;
        max-width: 550px;
        width: 100%;
        border-radius: 25px;
        position: relative;
        overflow: hidden;
        box-shadow: 0 25px 50px rgba(0,0,0,0.3);
        animation: popupScale 0.4s ease-out;
        direction: rtl; /* اردو کے لیے */
        text-align: center;
    }

    @keyframes popupScale {
        from { transform: scale(0.7); opacity: 0; }
        to { transform: scale(1); opacity: 1; }
    }

    .close-btn {
        position: absolute;
        top: 15px; left: 15px;
        background: #f1f1f1;
        border: none;
        font-size: 24px;
        width: 35px; height: 35px;
        border-radius: 50%;
        cursor: pointer;
        z-index: 10;
        transition: 0.3s;
    }
    .close-btn:hover { background: #e74c3c; color: white; }

    /* Header Styles */
    .popup-header {
        background: #0a4d3c;
        color: #fff;
        padding: 30px 20px;
    }
    .popup-header i { font-size: 40px; color: #b8860b; margin-bottom: 10px; }
    .popup-header h2 { font-family: 'Reem Kufi', sans-serif; font-size: 28px; }

    /* Body Styles */
    .popup-body { padding: 30px; color: #334155; }
    .highlight-text { font-weight: bold; color: #0a4d3c; margin-bottom: 15px; font-size: 18px; }
    .appeal-box {
        background: #fdf2f2;
        border-right: 5px solid #b8860b;
        padding: 15px;
        margin: 20px 0;
        font-weight: bold;
        color: #1e293b;
    }
    .thanks-text { color: #b8860b; font-family: 'Reem Kufi', sans-serif; font-size: 22px; }

    /* Footer / Button Styles */
    .popup-footer {
        padding: 0 30px 30px;
        display: flex;
        gap: 15px;
        justify-content: center;
    }
    .popup-btn {
        text-decoration: none;
        background: #0a4d3c;
        color: white;
        padding: 12px 30px;
        border-radius: 50px;
        font-weight: bold;
        transition: 0.3s;
        border: none;
        cursor: pointer;
        flex: 1;
    }
    .popup-btn.secondary { background: #f1f5f9; color: #475569; }
    .popup-btn:hover { background: #b8860b; color: white; transform: translateY(-3px); }

    /* Mobile Responsive */
    @media (max-width: 480px) {
        .popup-header h2 { font-size: 22px; }
        .popup-body { padding: 20px; font-size: 14px; }
        .popup-footer { flex-direction: column; }
    }