 @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Poppins', sans-serif;
            color: #333;
            overflow-x: hidden;
        }

        /* Navbar Styles */
        .navbar {
            background: linear-gradient(135deg, #1e7e34 0%, #28a745 100%) !important;
            box-shadow: 0 4px 20px rgba(0,0,0,0.1);
            transition: all 0.3s ease;
        }

        .navbar.scrolled {
            background: linear-gradient(135deg, #155724 0%, #1e7e34 100%) !important;
            box-shadow: 0 6px 30px rgba(0,0,0,0.2);
        }

        .navbar-brand {
            font-weight: 700;
            color: #ffd700 !important;
            font-size: 2.2rem;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
            letter-spacing: 1px;
            transition: transform 0.3s ease;
        }

        .navbar-brand:hover {
            transform: scale(1.05);
        }

        .nav-link {
            color: #fff !important;
            position: relative;
            transition: all 0.3s ease;
        }

        .nav-link::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            width: 0;
            height: 2px;
            background: #ffd700;
            transition: all 0.3s ease;
            transform: translateX(-50%);
        }

        .nav-link:hover::after,
        .nav-link.active::after {
            width: 80%;
        }

        /* Hero Section with Carousel */
        .hero {
            height: 100vh;
            position: relative;
            overflow: hidden;
        }

        .carousel-item {
            height: 100vh;
            position: relative;
        }

        .carousel-item::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, rgba(0,100,0,0.4) 100%);
            z-index: 1;
        }

        .carousel-item img {
            filter: brightness(0.8);
        }

        .hero-content {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            z-index: 10;
            text-align: center;
            width: 90%;
            max-width: 1000px;
        }

        .hero-content h1 {
            font-size: 4rem;
            font-weight: 700;
            color: #fff;
            text-shadow: 3px 3px 6px rgba(0,0,0,0.5);
            margin-bottom: 1.5rem;
            animation: fadeInUp 1s ease;
        }

        .hero-content p {
            font-size: 1.5rem;
            color: #ffd700;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
            margin-bottom: 2rem;
            animation: fadeInUp 1s ease 0.3s both;
        }

        .hero-content .btn-explore {
            background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
            color: #1e7e34;
            padding: 15px 40px;
            font-size: 1.2rem;
            font-weight: 600;
            border: none;
            border-radius: 50px;
            box-shadow: 0 8px 20px rgba(255,215,0,0.3);
            transition: all 0.3s ease;
            animation: fadeInUp 1s ease 0.6s both;
        }

        .hero-content .btn-explore:hover {
            transform: translateY(-5px);
            box-shadow: 0 12px 30px rgba(255,215,0,0.5);
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Carousel Caption Unique Content */
        .carousel-caption-custom {
            position: absolute;
            bottom: 100px;
            left: 50%;
            transform: translateX(-50%);
            z-index: 10;
            text-align: center;
            width: 80%;
        }

        /* Statistics Section */
        .stats-section {
            background: linear-gradient(135deg, #155724 0%, #28a745 100%) !important;
            padding: 60px 0;
            color: white;
        }

        .stat-item {
            text-align: center;
            padding: 20px;
        }

        .stat-item i {
            font-size: 3rem;
            margin-bottom: 15px;
            color: #ffd700;
        }

        .stat-number {
            font-size: 3rem;
            font-weight: 700;
            display: block;
            margin-bottom: 10px;
        }

        .stat-label {
            font-size: 1.1rem;
            opacity: 0.9;
        }

        /* About Section */
        .about {
            padding: 100px 0;
            background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
        }

        .about h2 {
            font-size: 3rem;
            font-weight: 700;
            color: #1e7e34;
            margin-bottom: 30px;
            position: relative;
            display: inline-block;
        }

        .about h2::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 100px;
            height: 4px;
            background: linear-gradient(90deg, #ffd700, #28a745);
            border-radius: 2px;
        }

        .about-content {
            font-size: 1.1rem;
            line-height: 1.8;
            color: #1e7e34;
        }

        /* Features Section */
        .features {
            padding: 100px 0;
            background: white;
        }

      

        .feature-card {
            background:  linear-gradient(135deg, #1e7e34 0%, #28a745 100%);
            border-radius: 20px;
            padding: 40px 30px;
            text-align: center;
            transition: all 0.4s ease;
            border: 2px solid transparent;
            height: 100%;
        }

        .feature-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 20px 40px rgba(0,0,0,0.1);
            border-color: #28a745;
        }

        .feature-icon {
            width: 80px;
            height: 80px;
            background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 25px;
            color: white;
            font-size: 2rem;
        }

        .feature-card h3 {
            font-size: 1.5rem;
            font-weight: 600;
            color: #ffffff;
            margin-bottom: 15px;
        }

        .feature-card p {
            color: #fff;
            line-height: 1.6;
        }

        /* CTA Section */

      

        .cta-section {
            background: white;
            padding: 80px 0;
            color: linear-gradient(135deg, #1e7e34 0%, #28a745 100%);
            position: relative;
            overflow: hidden;
        }

        .cta-section::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -50%;
            width: 100%;
            height: 100%;
            background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
        }

        .cta-section h2 {
            font-size: 2.5rem;
            font-weight: 700;
            margin-bottom: 20px;
        }

        .cta-section p {
            font-size: 1.2rem;
            margin-bottom: 30px;
            opacity: 0.9;
        }

        .btn-cta {
            background: white;
            color: #28a745;
            padding: 15px 40px;
            font-size: 1.1rem;
            font-weight: 600;
            border: none;
            border-radius: 50px;
            transition: all 0.3s ease;
        }

        .btn-cta:hover {
            transform: scale(1.05);
            box-shadow: 0 10px 30px rgba(255,255,255,0.3);
        }

        /* Footer */
        footer {
            background: linear-gradient(135deg, #155724 0%, #28a745 100%) !important;
            color: white;
            padding: 50px 0 20px;
        }

        .footer-title {
            color: #ffd700;
            font-size: 1.3rem;
            font-weight: 600;
            margin-bottom: 20px;
        }

        .social-links a {
            display: inline-block;
            width: 40px;
            height: 40px;
            background: #28a745;
            color: white;
            border-radius: 50%;
            text-align: center;
            line-height: 40px;
            margin-right: 10px;
            transition: all 0.3s ease;
        }

        .social-links a:hover {
            background: #ffd700;
            color: #1e7e34;
            transform: translateY(-5px);
        }

        /* Gallery Styles */
        .gallery-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 20px;
            justify-items: center;
        }

        .gallery-item img {
            width: 300px;
            height: 200px;
            object-fit: cover;
            border-radius: 10px;
            transition: transform 0.3s ease;
            cursor: pointer;
        }

        .gallery-item img:hover {
            transform: scale(1.05);
        }

        /* Religious Places Section */
        .religious-places .hover-card {
            transition: all 0.3s ease;
            border: 1px solid #e0e0e0;
        }

        .religious-places .hover-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(30, 126, 52, 0.15) !important;
            border-color: #28a745;
        }

        .religious-places .card-title {
            color: #1e7e34;
            font-weight: 600;
        }

        .religious-places .card-text {
            color: #666;
        }

        /* Educational Institutions Section */
        .educational-institutions .hover-card {
            transition: all 0.3s ease;
            border: 1px solid #e0e0e0;
        }

        .educational-institutions .hover-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(30, 126, 52, 0.15) !important;
            border-color: #28a745;
        }

        .educational-institutions .card-title {
            color: #1e7e34;
            font-weight: 600;
        }

        .educational-institutions .card-text {
            color: #666;
        }

        /* Kabristan Section */
        .kabristan-section h2,
        .kabristan-section p {
            color: #1e7e34;
        }

        .kabristan-section h5 {
            color: #1e7e34;
            font-size: large;
            font-weight: 600;
        }

        /* Lightbox Styles */
        .lightbox {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.9);
            justify-content: center;
            align-items: center;
        }

        .lightbox img {
            max-width: 90%;
            max-height: 90%;
            object-fit: contain;
        }

        .lightbox .close {
            position: absolute;
            top: 20px;
            right: 35px;
            color: #fff;
            font-size: 40px;
            font-weight: bold;
            cursor: pointer;
        }

        .lightbox .close:hover,
        .lightbox .close:focus {
            color: #bbb;
        }

        .lightbox .prev,
        .lightbox .next {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            color: #fff;
            font-size: 40px;
            font-weight: bold;
            cursor: pointer;
            user-select: none;
            padding: 16px;
            transition: 0.6s ease;
        }

        .lightbox .prev {
            left: 0;
        }

        .lightbox .next {
            right: 0;
        }

        .lightbox .prev:hover,
        .lightbox .next:hover {
            color: #bbb;
        }

        /* Responsive Styles */
        /* Large devices (desktops, less than 1200px) */
        @media (max-width: 1199.98px) {
            .hero-content h1 {
                font-size: 3.5rem;
            }
            .committee-grid-inner {
                grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            }
            .feature-card {
                padding: 30px 20px;
            }
        }

        /* Medium devices (tablets, less than 992px) */
        @media (max-width: 991.98px) {
            .hero-content h1 {
                font-size: 3rem;
            }
            .hero-content p {
                font-size: 1.3rem;
            }
            .about h2 {
                font-size: 2.5rem;
            }
            .stat-number {
                font-size: 2.5rem;
            }
            .navbar-brand {
                font-size: 1.8rem;
            }
            .feature-icon {
                width: 70px;
                height: 70px;
                font-size: 1.8rem;
            }
            .committee-img-member {
                width: 120px;
                height: 120px;
            }
        }

        /* Small devices (landscape phones, less than 768px) */
        @media (max-width: 767.98px) {
            .hero-content h1 {
                font-size: 2.5rem;
            }
            .hero-content p {
                font-size: 1.2rem;
            }
            .about h2 {
                font-size: 2rem;
            }
            .stat-number {
                font-size: 2rem;
            }
            .gallery-grid {
                grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            }
            .gallery-item img {
                width: 250px;
                height: 150px;
            }
            .navbar-nav {
                background: rgba(30, 126, 52, 0.95);
                padding: 15px;
                border-radius: 8px;
            }
            .hero-section-inner {
                padding: 100px 0 60px;
            }
            .urdu-text-inner {
                font-size: 1.6rem;
            }
            .feature-card-inner {
                margin-bottom: 20px;
            }
            .committee-card-member {
                padding: 20px;
            }
            .section-title-inner {
                font-size: 1.8rem;
            }
        }

        /* Extra small devices (phones, less than 576px) */
        @media (max-width: 575.98px) {
            .hero-content h1 {
                font-size: 2rem;
            }
            .hero-content p {
                font-size: 1.1rem;
            }
            .hero-content .btn-explore {
                padding: 12px 30px;
                font-size: 1rem;
            }
            .navbar-brand {
                font-size: 1.5rem;
            }
            .about h2 {
                font-size: 1.8rem;
            }
            .feature-card h3 {
                font-size: 1.3rem;
            }
            .cta-section h2 {
                font-size: 2rem;
            }
            .footer-title {
                font-size: 1.2rem;
                margin-top: 20px;
            }
            .gallery-grid {
                grid-template-columns: 1fr;
            }
            .gallery-item img {
                width: 100%;
                height: auto;
            }
            .committee-grid-inner {
                grid-template-columns: 1fr;
            }
            .info-box-inner {
                padding: 15px;
            }
            .stats-section {
                padding: 40px 0;
            }
            .stat-item {
                margin-bottom: 30px;
            }
            .lightbox .prev,
            .lightbox .next {
                font-size: 30px;
            }
        }

/* --- Styles for madarsha-islamia-mangan-shah.html --- */

.hero-section-inner {
    padding: 140px 0 80px;
    color: #fff;
    margin-top: 0;
}

.urdu-text-inner {
    font-size: 2rem;
    color: #ffd700;
    font-family: 'Noto Nastaliq Urdu', serif;
    direction: rtl;
}

.content-section-inner {
    padding: 40px 0;
}

.section-title-inner {
    color: #1e7e34;
    font-weight: 700;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.section-title-inner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #ffd700, #28a745);
    border-radius: 2px;
}

.info-box-inner {
    background-color: #e8f5e9; /* Light green */
    color: #1e7e34;
    border-left: 5px solid #28a745;
    padding: 25px;
    border-radius: 8px;
    margin: 40px 0;
}

.info-box-inner h3 {
    color: #155724;
    font-weight: 600;
}

.highlight-text {
    color: #155724;
    font-weight: 600;
}

.feature-card-inner {
    background: #fff;
    color: #1e7e34;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    text-align: center;
    border: 1px solid #e0e0e0;
}

.feature-card-inner:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(30, 126, 52, 0.15);
}

.feature-icon-inner {
    font-size: 2.5rem;
    color: #fff;
    background: linear-gradient(135deg, #1e7e34 0%, #28a745 100%);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.feature-card-inner h4 {
    font-weight: 600;
    margin-bottom: 15px;
}

.bg-light-green {
    background-color: #f1f8f2;
    border-radius: 15px;
}

.program-card {
    background-color: #1e7e34;
    color: #fff;
    border: 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.program-card .card-title {
    color: #ffd700;
}

.program-card:hover {
    transform: translateY(-5px);
    background-color: #28a745;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.program-icon {
    font-size: 3rem;
    color: #fff;
}

.facilities-section {
    background: #fff;
}

.facilities-list {
    font-size: 1.1rem;
    max-width: 900px; /* Increased max-width for the row */
    margin: 0 auto; /* Center the row */
}

.facility-item {
    margin-bottom: 1rem;
    padding: 0.5rem 1rem;
}

.card-text {
    color: #fff;
    text-align: center;
}

/* --- Styles for Committee Members Section --- */
.committee-section-inner {
    padding: 60px 0;
    background-color: #f1f8f2; /* Light green background */
}

.committee-grid-inner {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.committee-card-member {
    background: linear-gradient(135deg, #1e7e34 0%, #28a745 100%);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(30, 126, 52, 0.2);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    height: 100%;
}

.committee-card-inner:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(30, 126, 52, 0.15);
}

.committee-img-member {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 20px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border: 4px solid #ffd700;
}

.committee-img-member img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


#religious p {
    color: #1e7e34 !important;
}

#educational p{
    color: #1e7e34 !important;

}