/* ============================================
           ROOT VARIABLES
           ============================================ */
:root {
    --primary-light: #1a237e;
    --secondary: #4a148c;
    --gold: #c9a84c;
    --gold-light: #f5d76e;
    --gold-gradient: linear-gradient(135deg, #c9a84c, #f5d76e);
    --bg-pattern: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9a84c' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    /* responsive section spacing variables */
    --section-pt: clamp(40px, 6vw, 120px);
    --section-pb: clamp(80px, 5vw, 30px);
}

/* ============================================
   STICKY SIDEBARS (Left Menu + Right Section)
   ============================================ */
.sidebar-left,
.sidebar-right {
    background: #fff;
    border-radius: 20px;
    padding: 20px 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(201, 168, 76, 0.08);

    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

/* Optional: Hide scrollbar for cleaner look */
.sidebar-left::-webkit-scrollbar,
.sidebar-right::-webkit-scrollbar {
    width: 4px;
}

.sidebar-left::-webkit-scrollbar-thumb,
.sidebar-right::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.sidebar-left .sidebar-title,
.sidebar-right .sidebar-title {
    font-weight: 700;
    color: var(--primary);
    font-size: 1rem;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gold);
    margin-bottom: 12px;
}

.sidebar-left .sidebar-link {
    display: block;
    padding: 8px 12px;
    color: #555;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-weight: 500;
    border-left: 3px solid transparent;
    margin-bottom: 3px;
    font-size: 0.9rem;
}

.sidebar-left .sidebar-link:hover {
    background: #f8f6f1;
    color: var(--primary);
    border-left-color: var(--gold);
    transform: translateX(4px);
}

.sidebar-left .sidebar-link i {
    width: 20px;
    color: var(--gold);
    margin-right: 6px;
}

.sidebar-left .sidebar-link.active {
    background: var(--gold-gradient);
    color: var(--primary);
    border-left-color: var(--primary);
}

/* Ad sidebar specific */
.sidebar-right .ad-item {
    margin-bottom: 15px;
}

.sidebar-right .ad-item:last-child {
    margin-bottom: 0;
}

.sidebar-right .ad-item img {
    transition: all 0.3s ease;
    width: 100%;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.sidebar-right .ad-item img:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 991px) {
    .sidebar-left .sidebar-link {
        font-size: 0.8rem;
        padding: 6px 10px;
    }

    .sidebar-left .sidebar-title,
    .sidebar-right .sidebar-title {
        font-size: 0.9rem;
    }
}

@media (max-width: 767px) {

    .sidebar-left {
        display: none;
    }
}

/* ============================================
           HERO SECTION
           ============================================ */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 60px 0 80px;
    position: relative;
    background: var(--primary);
    background-image: var(--bg-pattern);
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(201, 168, 76, 0.08), transparent 70%);
    border-radius: 50%;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(201, 168, 76, 0.05), transparent 70%);
    border-radius: 50%;
}

.hero-image-wrap {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    border: 3px solid rgba(201, 168, 76, 0.3);
}

.hero-image-wrap img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    display: block;
}

.hero-image-wrap .image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 20px 20px;
    background: linear-gradient(transparent, rgba(12, 20, 69, 0.9));
}

.hero-image-wrap .image-overlay .urdu-name {
    font-family: 'Amiri', serif;
    font-size: 1.8rem;
    color: var(--gold);
    font-weight: 700;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-content .badge-gold {
    background: var(--gold-gradient);
    color: var(--primary);
    font-weight: 600;
    padding: 8px 25px;
    border-radius: 50px;
    font-size: 0.8rem;
    letter-spacing: 1px;
    margin-bottom: 3rem;
}

.hero-content .urdu-title {
    font-family: 'Amiri', serif;
    font-size: 4rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-content .english-title {
    font-size: 1.8rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 2px;
}

.hero-content .quran-ayah {
    font-family: 'Amiri', serif;
    font-size: 1.5rem;
    color: var(--gold-light);
    padding: 20px 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    border: 1px solid rgba(201, 168, 76, 0.2);
    backdrop-filter: blur(10px);
    display: inline-block;
    position: relative;
}

.hero-content .quran-ayah::before {
    content: '﴿';
    margin-right: 10px;
    opacity: 0.5;
}

.hero-content .quran-ayah::after {
    content: '﴾';
    margin-left: 10px;
    opacity: 0.5;
}

.hero-content .btn-gold {
    background: var(--gold-gradient);
    color: var(--primary);
    font-weight: 600;
    padding: 14px 40px;
    border-radius: 50px;
    border: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.hero-content .btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(201, 168, 76, 0.4);
}

.hero-content .btn-outline-gold {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(201, 168, 76, 0.5);
    padding: 14px 40px;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.hero-content .btn-outline-gold:hover {
    background: rgba(201, 168, 76, 0.1);
    border-color: var(--gold);
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 350px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-image-wrap .image-overlay {
        padding: 15px 15px 10px;
    }

    .hero-image-wrap .image-overlay .urdu-name {
        font-size: 1.2rem;
        font-weight: 700;
    }

    .stat-item h3 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .contact-card {
        padding: 25px !important;
    }
}

/* ============================================
           STATS SECTION
           ============================================ */
.stats-section {
    background: #fff;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.05);
    position: relative;
}

.stat-box {
    text-align: center;
    padding: 30px 20px;
    border-radius: 20px;
    transition: all 0.3s ease;
    background: #f8f6f1;
    border: 1px solid rgba(201, 168, 76, 0.1);
}

.stat-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 50px rgba(12, 20, 69, 0.1);
    border-color: var(--gold);
}

.stat-box .number {
    font-size: 3.5rem;
    font-weight: 900;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.stat-box .label {
    font-size: 1rem;
    color: #666;
    font-weight: 500;
    margin-top: 8px;
    -webkit-text-fill-color: #666;
}

.stat-box .icon {
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 10px;
    display: block;
}

/* ============================================
   Stats Section
   ============================================ */
.stat-item {
    padding: 20px;
    transition: all 0.3s ease;
    border-radius: 10px;
}

.stat-item:hover {
    background: #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.stat-item h3 {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--secondary);
}

.stat-item p {
    font-weight: 500;
    color: #666;
    font-size: 0.9rem;
}

.stat-item p i {
    margin-right: 5px;
}

/* ============================================
           ABOUT SECTION
           ============================================ */
.about-section {
    padding: 100px 0;
    background: #fff;
}

.about-section .section-tag {
    color: var(--gold);
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.about-section .section-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    font-family: 'Playfair Display', serif;
}

.about-section .section-title .gold {
    color: var(--gold);
}

.about-section .about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

.about-image-wrap {
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    position: relative;
}

.about-image-wrap img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.about-image-wrap .floating-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--gold-gradient);
    padding: 20px 30px;
    border-radius: 20px;
    color: var(--primary);
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(201, 168, 76, 0.3);
}

/* RATING - Additional Styles (Your existing styles remain) */
.about-rating {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 12px;
    border-top: 1px solid rgba(201, 168, 76, 0.15);
}

.about-rating .rating-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #666;
    letter-spacing: 0.5px;
}

.about-rating .rating-display {
    display: flex;
    align-items: center;
    gap: 4px;
}

.about-rating .rating-display .rating-avg {
    font-weight: 700;
    color: #0c1445;
    font-size: 0.9rem;
    margin-left: 4px;
}

.about-rating .rating-display .rating-count {
    font-size: 0.75rem;
    color: #999;
    margin-left: 4px;
}

.about-rating .btn-rate {
    background: var(--gold-gradient);
    color: #0c1445;
    border: none;
    padding: 4px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.about-rating .btn-rate:hover {
    transform: scale(1.05);
    box-shadow: 0 3px 15px rgba(201, 168, 76, 0.3);
}

/* ============================================
   RATING MODAL
   ============================================ */
.rating-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.rating-modal-overlay.active {
    display: flex;
}

.rating-modal {
    background: #fff;
    border-radius: 24px;
    padding: 40px 35px;
    max-width: 420px;
    width: 90%;
    position: relative;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
    text-align: center;
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.rating-modal .modal-close {
    position: absolute;
    top: 12px;
    right: 18px;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #999;
    cursor: pointer;
    transition: all 0.3s ease;
}

.rating-modal .modal-close:hover {
    color: #333;
    transform: rotate(90deg);
}

.rating-modal h4 {
    font-weight: 700;
    color: #0c1445;
    margin-bottom: 4px;
}

.rating-modal h4 span {
    color: var(--gold);
}

.rating-modal .modal-sub {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.rating-modal .modal-stars {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.rating-modal .modal-stars i {
    font-size: 2.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #ddd;
}

.rating-modal .modal-stars i:hover {
    transform: scale(1.15);
}

.rating-modal .modal-stars i.active {
    color: #f5c842;
}

.rating-modal .modal-message {
    min-height: 30px;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.rating-modal .modal-message.success {
    color: #2e7d32;
}

.rating-modal .modal-message.error {
    color: #c62828;
}

.rating-modal .modal-submit {
    background: var(--gold-gradient);
    color: #0c1445;
    border: none;
    padding: 10px 35px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.5;
    pointer-events: none;
}

.rating-modal .modal-submit.active {
    opacity: 1;
    pointer-events: auto;
}

.rating-modal .modal-submit.active:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(201, 168, 76, 0.3);
}

@media (max-width: 576px) {
    .rating-modal {
        padding: 30px 20px;
    }

    .rating-modal .modal-stars i {
        font-size: 2.2rem;
        gap: 8px;
    }

    .about-rating {
        gap: 8px;
    }

    .about-rating .rating-label {
        font-size: 0.7rem;
    }

    .about-rating .btn-rate {
        font-size: 0.65rem;
        padding: 3px 12px;
    }
}

/* ============================================
   Section Titles
   ============================================ */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
    text-align: center;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, #c9a84c, #f5d76e);
    border-radius: 2px;
}

.section-title.text-start::after {
    left: 0;
    transform: none;
}

.section-title.text-white::after {
    background: #fff;
}

/* ============================================
           COURSES SECTION
           ============================================ */
.courses-section {
    padding: 100px 0;
    background: #f8f6f1;
}

.courses-section .section-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    font-family: 'Playfair Display', serif;
    text-align: center;
}

.course-card {
    background: #fff;
    border-radius: 24px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid rgba(201, 168, 76, 0.1);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gold-gradient);
    opacity: 0;
    transition: all 0.4s ease;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    border-color: var(--gold);
}

.course-card:hover::before {
    opacity: 1;
}

.course-card i {
    color: var(--secondary);
}

.course-card .icon-wrap {
    width: 80px;
    height: 80px;
    background: rgba(201, 168, 76, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2.5rem;
    color: var(--gold);
    transition: all 0.3s ease;
}

.course-card:hover .icon-wrap {
    background: var(--gold-gradient);
    color: #fff;
}

.course-card h5 {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.course-card p {
    color: #666;
    font-size: 0.95rem;
    margin: 0;
}

/* ============================================
           DONATION SECTION
           ============================================ */
.donation-section {
    padding: 100px 0;
    background: var(--primary);
    background-image: var(--bg-pattern);
    position: relative;
}

.donation-section .section-title {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    font-family: 'Playfair Display', serif;
}

.donation-section .section-sub {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
}

.donation-section .btn-donate {
    background: var(--gold-gradient);
    color: var(--primary);
    font-weight: 700;
    padding: 18px 50px;
    border-radius: 50px;
    border: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.donation-section .btn-donate:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 50px rgba(201, 168, 76, 0.4);
}

.donation-image-wrap {
    background: #f5f5f5;
    overflow: hidden;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.donation-image-wrap img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* ============================================
           CONTACT SECTION
           ============================================ */
.contact-section {
    padding: 100px 0;
    background: #f8f6f1;
}

.contact-card {
    background: #fff;
    border-radius: 30px;
    padding: 60px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(201, 168, 76, 0.1);
}

.contact-card .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    font-family: 'Playfair Display', serif;
}

.contact-card .btn-whatsapp {
    background: #25d366;
    color: #fff;
    padding: 16px 50px;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.contact-card .btn-whatsapp:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 40px rgba(37, 211, 102, 0.3);
}

.contact-card .website-cta {
    background: var(--primary);
    border-radius: 20px;
    padding: 30px;
    color: #fff;
}

.contact-card .website-cta .btn-outline-light {
    border: 2px solid var(--gold);
    color: var(--gold);
}

.contact-card .website-cta .btn-outline-light:hover {
    background: var(--gold);
    color: var(--primary);
}

/* ============================================
           RESPONSIVE
           ============================================ */
@media (max-width: 991px) {
    .hero-section {
        min-height: auto;
        padding: 50px 0 60px;
    }

    .hero-content .urdu-title {
        font-size: 2.8rem;
    }

    .hero-content .english-title {
        font-size: 1.4rem;
    }

    .hero-image-wrap img {
        max-height: 350px;
    }

    .donation-image-wrap img {
        max-height: 350px;
    }

    .about-section .section-title {
        font-size: 2.2rem;
    }

    .contact-card {
        padding: 30px;
    }
}

@media (max-width: 576px) {
    .hero-content .urdu-title {
        font-size: 2.2rem;
    }

    .hero-content .quran-ayah {
        font-size: 1.1rem;
        padding: 15px;
    }

    .stat-box .number {
        font-size: 2.5rem;
    }

    .about-section .section-title {
        font-size: 1.8rem;
    }

    .courses-section .section-title {
        font-size: 2rem;
    }

    .donation-section .section-title {
        font-size: 2rem;
    }

    .management-section .section-title {
        font-size: 2rem;
    }

    .madrasa-contact-section .section-title {
        font-size: 2rem;
    }

    .contact-card .section-title {
        font-size: 2rem;
    }
}

/* AOS Animation Override */
[data-aos] {
    pointer-events: none;
}

[data-aos].aos-animate {
    pointer-events: auto;
}

/* ============================================
   MANAGEMENT SECTION - Manager + Committee
   ============================================ */
.management-section {
    padding: 100px 0;
    background: #fff;
}

.management-section .section-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    font-family: 'Playfair Display', serif;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

/* ============================================
   MANAGER CARD (Big - Main)
   ============================================ */
.manager-card {
    background: #f8f6f1;
    border-radius: 24px;
    padding: 30px 25px;
    border: 1px solid rgba(201, 168, 76, 0.1);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.4s ease;
}

.manager-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    border-color: #c9a84c;
}

.manager-card .manager-img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #c9a84c;
    padding: 4px;
}

.manager-card .manager-avatar {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: #e8eaf6;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid var(--gold);
    font-size: 4rem;
    color: var(--primary);
}

.manager-card .manager-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: #0c1445;
    margin-bottom: 4px;
}

.manager-card .manager-designation {
    font-size: 1.1rem;
    color: #c9a84c;
    font-weight: 500;
    margin-bottom: 8px;
}

.manager-card .manager-qualification {
    font-size: 0.95rem;
    color: #555;
    padding: 8px 16px;
    background: rgba(201, 168, 76, 0.08);
    border-radius: 50px;
    display: inline-block;
    border: 1px solid rgba(201, 168, 76, 0.15);
}

.manager-card .manager-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.manager-card .manager-contact .btn {
    border-radius: 50px;
    padding: 6px 16px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.manager-card .manager-contact .btn-outline-primary {
    border-color: #0c1445;
    color: #0c1445;
}

.manager-card .manager-contact .btn-outline-primary:hover {
    background: #0c1445;
    color: #fff;
}

.manager-card .manager-contact .btn-outline-success {
    border-color: #25d366;
    color: #25d366;
}

.manager-card .manager-contact .btn-outline-success:hover {
    background: #25d366;
    color: #fff;
}

.manager-card .manager-contact .btn-outline-danger {
    border-color: #dc3545;
    color: #dc3545;
}

.manager-card .manager-contact .btn-outline-danger:hover {
    background: #dc3545;
    color: #fff;
}

@media (max-width: 768px) {
    .manager-card {
        padding: 20px;
    }

    .manager-card .manager-img,
    .manager-card .manager-avatar {
        width: 120px;
        height: 120px;
    }

    .manager-card .manager-name {
        font-size: 1.4rem;
    }

    .manager-card .manager-designation {
        font-size: 0.95rem;
    }
}

/* ============================================
   COMMITTEE CARDS (Small - Matching Manager Style)
   ============================================ */
.committee-section h4 {
    color: var(--primary);
    font-weight: 600;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
    margin-bottom: 30px;
}

.committee-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: linear-gradient(to right, #c9a84c, #f5d76e);
    border-radius: 2px;
}

/* Committee Card - Same as Manager Card but smaller */
.committee-card {
    background: #f8f6f1;
    border-radius: 20px;
    padding: 25px 20px;
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid rgba(201, 168, 76, 0.1);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.04);
    height: 100%;
}

.committee-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    border-color: #c9a84c;
}

/* Member Image - Smaller than Manager */
.committee-card .member-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 15px;
    overflow: hidden;
    border: 3px solid #c9a84c;
    padding: 3px;
    transition: all 0.4s ease;
    background: #fff;
}

.committee-card:hover .member-img {
    border-color: #c9a84c;
    box-shadow: 0 8px 25px rgba(201, 168, 76, 0.15);
}

.committee-card .member-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Default avatar icon for committee */
.committee-card .member-img .avatar-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8eaf6;
    border-radius: 50%;
    font-size: 3rem;
    color: var(--primary);
}

/* Member Name - Smaller than Manager */
.committee-card .member-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0c1445;
    margin-bottom: 3px;
}

/* Member Designation - Smaller than Manager */
.committee-card .member-designation {
    font-size: 0.85rem;
    color: #c9a84c;
    font-weight: 500;
    margin-bottom: 12px;
}

/* Social Icons - Smaller than Manager */
.committee-card .member-social {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.committee-card .member-social a {
    display: inline-block;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #fff;
    line-height: 34px;
    text-align: center;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    color: #666;
    text-decoration: none;
    border: 1px solid rgba(201, 168, 76, 0.15);
}

.committee-card .member-social a:hover {
    background: #c9a84c;
    color: #fff !important;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(201, 168, 76, 0.3);
    border-color: #c9a84c;
}

/* Placeholder Card */
.committee-card.committee-placeholder {
    border-style: dashed;
    background: #fafafa;
    border-color: #e0e0e0;
}

.committee-card.committee-placeholder .member-img {
    border-color: #e0e0e0;
    background: #f5f5f5;
}

.committee-card.committee-placeholder .member-img .avatar-icon {
    background: #f5f5f5;
    color: #d0d0d0;
}

.committee-card.committee-placeholder .member-social span {
    font-size: 0.75rem;
    color: #bbb;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 991px) {
    .manager-card img {
        width: 140px;
        height: 140px;
    }

    .committee-card .member-img {
        width: 110px;
        height: 110px;
    }

    .management-section .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .manager-card {
        padding: 30px 20px;
    }

    .manager-card img {
        width: 120px;
        height: 120px;
    }

    .manager-card .name {
        font-size: 1.2rem;
    }

    .committee-card {
        padding: 20px 15px;
    }

    .committee-card .member-img {
        width: 90px;
        height: 90px;
    }

    .committee-card .member-name {
        font-size: 0.95rem;
    }

    .committee-card .member-designation {
        font-size: 0.75rem;
    }
}

/* ============================================
   MADRASA CONTACT SECTION
   ============================================ */
.madrasa-contact-section {
    background: #f8f6f1;
}

.madrasa-contact-section .section-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 15px;
    text-align: center;
}

/* Contact Info Cards */
.contact-info-card {
    background: #fff;
    border-radius: 20px;
    padding: 30px 25px;
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid rgba(201, 168, 76, 0.1);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.04);
    height: 100%;
}

.contact-info-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    border-color: #c9a84c;
}

.contact-info-card .contact-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(201, 168, 76, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 2rem;
    color: #c9a84c;
    transition: all 0.3s ease;
}

.contact-info-card:hover .contact-icon {
    background: var(--gold-gradient, linear-gradient(135deg, #c9a84c, #f5d76e));
    color: #fff;
}

.contact-info-card h5 {
    font-weight: 700;
    color: #0c1445;
    margin-bottom: 10px;
}

.contact-info-card p {
    color: #555;
    font-size: 0.95rem;
    margin-bottom: 5px;
    line-height: 1.6;
}

.contact-info-card p a {
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-info-card p a:hover {
    text-decoration: underline;
}

.contact-info-card .btn-link {
    color: var(--gold);
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    margin-top: 5px;
    transition: all 0.3s ease;
}

.contact-info-card .btn-link:hover {
    color: #0c1445;
    text-decoration: underline;
}

.contact-info-card .btn {
    border-radius: 50px;
    padding: 6px 20px;
}

.contact-info-card .btn-primary {
    border-radius: 50px;
    padding: 6px 20px;
}

/* Quick Actions */
.quick-actions {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    border: 1px solid rgba(201, 168, 76, 0.1);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.04);
}

.quick-actions .btn {
    border-radius: 50px;
    padding: 8px 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.quick-actions .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.quick-actions .btn-outline-success:hover {
    background: #25d366;
    color: #fff;
}

.quick-actions .btn-outline-warning {
    border-color: #f5c842;
    color: #f5c842;
}

.quick-actions .btn-outline-warning:hover {
    background: #f5c842;
    color: #fff;
}

.quick-actions .btn-outline-primary:hover {
    background: #0c1445;
    color: #fff;
}

.quick-actions .btn-outline-info:hover {
    background: #0dcaf0;
    color: #fff;
}

/* Map Placeholder */
.map-placeholder {
    transition: all 0.3s ease;
}

.map-placeholder:hover {
    border-color: #c9a84c !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 991px) {
    .madrasa-contact-section .section-title {
        font-size: 2rem;
    }

    .contact-info-card {
        padding: 25px 20px;
    }
}

@media (max-width: 576px) {
    .madrasa-contact-section {
        padding: 100px 0 20px;
    }

    .contact-info-card {
        padding: 20px 15px;
    }

    .contact-info-card .contact-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .quick-actions .btn {
        font-size: 0.85rem;
        padding: 6px 18px;
    }
}

/* ============================================
   CONTENT DIVIDER - Clear Separation
   ============================================ */

/* Responsive section padding: apply a consistent, responsive bottom padding
   to main page sections and allow breakpoint adjustments via variables. */
.about-section,
.courses-section,
.stats-section,
.donation-section,
.contact-section,
.management-section,
.madrasa-contact-section,
.advertisement-section,
.ad-section,
.contact-card,
.quick-actions {
    padding-bottom: var(--section-pb);
}

@media (max-width: 991px) {
    :root {
        --section-pt: clamp(32px, 6vw, 100px);
        --section-pb: clamp(24px, 5vw, 60px);
    }
}

@media (max-width: 576px) {
    :root {
        --section-pt: clamp(24px, 8vw, 60px);
        --section-pb: clamp(16px, 6vw, 40px);
    }
}

.content-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 20px 0 60px;
    margin: 10px 0;
    position: relative;
}

.content-divider .divider-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(to right, transparent, rgba(201, 168, 76, 0.3), transparent);
    position: relative;
}

.content-divider .divider-line::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 6px;
    background: var(--gold-gradient, linear-gradient(90deg, #c9a84c, #f5d76e));
    border-radius: 3px;
}

.content-divider .divider-content {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #fff;
    padding: 10px 25px;
    border-radius: 50px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(201, 168, 76, 0.15);
    flex-shrink: 0;
}

.content-divider .divider-content .divider-icon {
    color: var(--gold);
    font-size: 1rem;
}

.content-divider .divider-content .divider-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: #999;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Divider with Pattern (Alternative Style) */
.content-divider-pattern {
    position: relative;
    padding: 25px 0;
    margin: 10px 0;
}

.content-divider-pattern::after {
    content: '◆ ◆ ◆ ◆ ◆';
    display: block;
    text-align: center;
    color: rgba(201, 168, 76, 0.2);
    font-size: 0.8rem;
    letter-spacing: 10px;
}

/* ============================================
   AD SECTION - Clear Sponsored Label
   ============================================ */
.ad-section {
    position: relative;
}

.ad-section .sponsored-label {
    display: inline-block;
    background: #f8f6f1;
    padding: 4px 18px;
    border-radius: 50px;
    font-size: 0.7rem;
    color: #999;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 1px solid rgba(201, 168, 76, 0.1);
}

.ad-card {
    transition: all 0.3s ease;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    padding: 10px;
    border: 1px solid rgba(201, 168, 76, 0.05);
}

.ad-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    border-color: rgba(201, 168, 76, 0.15);
}

.ad-card img {
    transition: all 0.3s ease;
    width: 100%;
}

.ad-card img:hover {
    transform: scale(1.01);
}

.ad-placeholder {
    transition: all 0.3s ease;
}

.ad-placeholder:hover {
    border-color: var(--gold) !important;
    background: #fdfcf9 !important;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .content-divider {
        gap: 10px;
        padding: 15px 0 30px;
    }

    .content-divider .divider-content {
        padding: 8px 18px;
        gap: 10px;
    }

    .content-divider .divider-content .divider-text {
        font-size: 0.7rem;
        letter-spacing: 1px;
    }

    .content-divider .divider-content .divider-icon {
        font-size: 0.8rem;
    }

    .content-divider .divider-line::before {
        width: 25px;
        height: 4px;
    }
}

@media (max-width: 576px) {
    .content-divider .divider-content .divider-text {
        font-size: 0.6rem;
        letter-spacing: 0.5px;
    }

    .content-divider .divider-content {
        padding: 6px 12px;
        gap: 6px;
    }
}

/* ============================================
   ADVERTISEMENT SECTION - PROFESSIONAL
   ============================================ */
.advertisement-section {
    background: #fff;
    padding: 60px 0 40px;
    border-top: 2px solid rgba(201, 168, 76, 0.1);
    position: relative;
}

.advertisement-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, transparent, var(--gold), var(--gold-light), var(--gold), transparent);
    opacity: 0.3;
}

/* ============================================
   AD HEADER
   ============================================ */
.ad-header .sponsored-badge {
    display: inline-block;
    background: #f8f6f1;
    padding: 6px 25px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #999;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 1px solid rgba(201, 168, 76, 0.15);
}

.ad-header .sponsored-badge i {
    color: var(--gold);
}

.ad-header .ad-title {
    font-size: 2rem;
    font-weight: 700;
    color: #0c1445;
    font-family: 'Playfair Display', serif;
}

.ad-header .ad-subtitle {
    color: #888;
    font-size: 0.95rem;
    margin-top: 5px;
}

/* ============================================
   MODERN AD CARDS
   ============================================ */
.ad-card-modern {
    background: #faf9f7;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid rgba(201, 168, 76, 0.08);
    height: 100%;
    position: relative;
}

.ad-card-modern:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
    border-color: rgba(201, 168, 76, 0.2);
}

/* Ad Image */
.ad-image-wrapper {
    position: relative;
    overflow: hidden;
    background: #0c1445;
    min-height: 200px;
}

.ad-image-wrapper .ad-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: all 0.5s ease;
    display: block;
}

.ad-card-modern:hover .ad-image {
    transform: scale(1.03);
}

/* Ad Overlay */
.ad-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 25px 20px;
    background: linear-gradient(transparent, rgba(12, 20, 69, 0.85));
    color: #fff;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
}

.ad-card-modern:hover .ad-overlay {
    transform: translateY(0);
    opacity: 1;
}

.ad-overlay .ad-overlay-title {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.ad-overlay .ad-overlay-cta {
    font-size: 0.85rem;
    color: var(--gold-light);
    font-weight: 500;
}

/* Ad Footer */
.ad-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: #fff;
    border-top: 1px solid rgba(201, 168, 76, 0.05);
}

.ad-footer .ad-label {
    font-size: 0.85rem;
    color: #555;
    font-weight: 500;
}

.ad-footer .ad-label i {
    color: var(--gold);
    margin-right: 6px;
}

.ad-footer .ad-sponsored {
    font-size: 0.7rem;
    color: #aaa;
    background: #f8f6f1;
    padding: 3px 12px;
    border-radius: 50px;
    letter-spacing: 1px;
}

/* ============================================
   GOOGLE AD WRAPPER
   ============================================ */
.google-ad-wrapper {
    min-height: 250px;
    background: #faf9f7;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.google-ad-wrapper iframe,
.google-ad-wrapper ins {
    max-width: 100%;
}

/* ============================================
   AD PLACEHOLDER (When no ads)
   ============================================ */
.ad-placeholder-modern {
    background: linear-gradient(135deg, #faf9f7, #f0eeea) !important;
    border: 2px dashed rgba(201, 168, 76, 0.2) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    cursor: default;
}

.ad-placeholder-modern:hover {
    border-color: var(--gold) !important;
    background: #fdfcf9 !important;
}

.ad-placeholder-content {
    text-align: center;
    padding: 30px;
}

.ad-placeholder-content .placeholder-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(201, 168, 76, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 2.5rem;
    color: var(--gold);
}

.ad-placeholder-content h5 {
    font-weight: 700;
    color: #0c1445;
    margin-bottom: 5px;
}

.ad-placeholder-content p {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

/* Advertise Button */
.btn-advertise {
    background: var(--gold-gradient, linear-gradient(135deg, #c9a84c, #f5d76e));
    color: #0c1445;
    font-weight: 600;
    padding: 10px 30px;
    border-radius: 50px;
    border: none;
    transition: all 0.3s ease;
}

.btn-advertise:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(201, 168, 76, 0.3);
    color: #0c1445;
}

/* ============================================
   AD DISCLAIMER
   ============================================ */
.ad-disclaimer {
    font-size: 0.85rem;
    color: #aaa;
    padding: 15px 25px;
    background: #faf9f7;
    border-radius: 50px;
    display: inline-block;
    margin: 0 auto;
}

.ad-disclaimer i {
    color: var(--gold);
    margin-right: 6px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 991px) {
    .ad-image-wrapper .ad-image {
        height: 200px;
    }

    .ad-header .ad-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .advertisement-section {
        padding: 40px 0 30px;
    }

    .ad-image-wrapper .ad-image {
        height: 180px;
    }

    .ad-footer {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .ad-disclaimer {
        font-size: 0.75rem;
        padding: 12px 18px;
        border-radius: 30px;
    }
}

@media (max-width: 576px) {
    .ad-header .ad-title {
        font-size: 1.5rem;
    }

    .ad-image-wrapper .ad-image {
        height: 150px;
    }

    .ad-overlay .ad-overlay-title {
        font-size: 0.95rem;
    }

    .ad-placeholder-content .placeholder-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
}


.ad-item {
    margin-bottom: 15px;
}

.ad-item:last-child {
    margin-bottom: 0;
}

.ad-item img {
    transition: all 0.3s ease;
    width: 100%;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.ad-item img:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}