/* ===== BASE VARIABLES ===== */
:root {
    --primary: #234e52;
    --secondary: #7f1102;
    --accent1: #a3be8c;
    --accent2: #d4a373;
    --light: #f8f5f0;
    --dark: #1a3a3e;
    --white: #ffffff;
    --text: #333333;
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow: 0 10px 30px rgba(0,0,0,0.1);
    
    
}


/* ===== LANGUAGE-BASED FONT RULES ===== */
body {
    font-family: 'Philosopher', sans-serif;
}

[lang="ar"],
.arabic,
.rtl-content,
.has-arabic-font,
.iw-arabic,
.iw-arabic-title,
.arabic-slide {
    font-family: 'Amiri', 'Traditional Arabic', 'Scheherazade New', Tahoma, sans-serif !important;
    direction: rtl;
}

[lang="en"],
.english,
.ltr-content,
.has-english-font {
    font-family: 'Philosopher', sans-serif !important;
    direction: ltr;
}
/* ===== BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.iqra-homepage {
    font-family: 'Philosopher', sans-serif;
    color: var(--text);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
/* ===== SECONDARY MENU STYLES ===== */
.secondary-menu .container,
.secondary-menu + .container,
.container {
    margin-top: 0 !important;
    padding-top: 0 !important;
}



.secondary-menu {
    background: linear-gradient(135deg, var(--primary), var(--dark));
    padding: 15px 0;
    position: relative;
    z-index: 100;
    margin-top: 0px;
}

.secondary-menu ul {
    display: flex;
    justify-content: center;
    list-style: none;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0 15px;
    transition: all 0.3s ease;
}

.secondary-menu li a {
    display: block;
    padding: 10px 25px;
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    position: relative;
    transition: var(--transition);
    border-radius: 30px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.secondary-menu li a:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.6);
}

/* Hide secondary menu completely on mobile */
@media (max-width: 768px) {
    .secondary-menu {
        display: none;
    }
}



/* ===== HERO SECTION STYLES ===== */
.hero-section {
    position: relative;
    background: linear-gradient(rgba(26, 58, 62, 0.85), rgba(26, 58, 62, 0.9)), 
                url('https://iqrawartqi.com/wp-content/uploads/2025/07/Iqrawartqi-header-1-1.png') no-repeat center center/cover;
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding: 80px 0;
    color: var(--white);
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 50px;
    position: relative;
    z-index: 2;
}

.hero-text {
    flex: 1;
    padding-right: 40px;
}

.fading-headlines {
    position: relative;
    min-height: 240px;
    margin-bottom: 40px;
}

.fade-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.fade-text.active {
    opacity: 1;
    transform: translateY(0);
}

hero-text {
    flex: 1;
    padding-right: 40px;
    display: flex;
    flex-direction: column; /* stack h1, p, buttons vertically */
    gap: 90px; /* space between each element */
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-top: -90px;
    margin-bottom: 25px;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero-text p {
    font-size: 1.3rem;
    opacity: 0.9;
    max-width: 90%;
    margin-bottom: 90px;
    line-height: 1.7;
}

/* Force override all button radius cases */
.hero-buttons .btn,
.hero-buttons .btn:before,
.hero-buttons .btn-primary,
.hero-buttons .btn-secondary {
    border-radius: 30px !important;
}

.hero-buttons {
    display: flex;
    gap: 25px; /* space between the two buttons */
    margin-top: 50px; /* space from description */
    
}

.btn {
    border-radius: 10px; /* changed from 0 to 10px for rounded corners */
    padding: 18px 45px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden; /* important for hover effect */
    z-index: 1;
}

.btn i {
    margin-right: 10px;
    border-radius: 10px; /* reset inner icon radius */
}

.btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 140%; /* slightly larger for animation */
    height: 100%;
    background: linear-gradient(135deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: transform 0.6s ease;
    z-index: -1;
    border-radius: 10px; /* match btn radius */
    transform: translateX(-20%); /* start slightly inside */
}

.btn:hover:before {
    transform: translateX(100%); /* animate fully across */
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent1), #8da67a);
    color: var(--primary);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(163, 190, 140, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary), #6a0e01);
    color: var(--white);
}

.btn-secondary:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(127, 17, 2, 0.3);
}


.hero-image {
    flex: 1;
    position: relative;
    perspective: 1000px;
}

.image-slider {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 20px 20px 0px rgba(163, 190, 140, 0.15);
    transform-style: preserve-3d;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(0.95) rotateY(5deg);
    transition: var(--transition);
    border-radius: 20px;
}

.slide.active {
    opacity: 1;
    transform: scale(1) rotateY(0);
}

.slide-1 {
    background-image: url('https://iqrawartqi.com/wp-content/uploads/2025/03/hero-img3.png');
}

.slide-2 {
    background-image: url('https://iqrawartqi.com/wp-content/uploads/2025/03/hero-img-2.png');
}
/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 1200px) {
    .hero-text h1 {
        font-size: 3rem;
    }
}

@media (max-width: 992px) {
    .hero-section {
        min-height: auto;
        padding: 60px 0;
    }

    .hero-content {
        flex-direction: column-reverse; /* Image first on mobile */
        gap: 40px;
    }
    
    .hero-text {
        padding-right: 0;
        text-align: center;
    }
    
    .hero-text p {
        margin: 0 auto;
        max-width: 100%;
        margin-bottom: 30px;
    }
    
    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        width: 100%;
        max-width: 6400px;
        margin: 0 auto 30px;
    }

    .image-slider {
        height: 350px;
        box-shadow: 10px 10px 0px rgba(163, 190, 140, 0.1);
    }

    .slide {
        background-size: cover;
        background-repeat: no-repeat;
        background-color: rgba(26, 58, 62, 0.2); /* Fallback */
    }
}

@media (max-width: 768px) {
    .primary-menu ul {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 80px 20px 40px;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        z-index: 100;
    }
    
    .primary-menu ul.active {
        display: flex;
    }
    
    .mobile-toggle {
        display: block;
        z-index: 101;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
        margin-top: 0;
    }
    
    .hero-text p {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 20px;
    }
    
    .image-slider {
        height: 300px;
    }
}

@media (max-width: 576px) {
    .hero-text h1 {
        font-size: 2.2rem;
    }
    
    .fading-headlines {
        min-height: 280px;
    }
    
    .secondary-menu ul {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .image-slider {
        height: 250px;
    }

    .slide-1,
    .slide-2 {
        background-position: center top;
    }
}


/* ===== 1. Salam From Iqra Wartqi ===== */
.journey-section {
    padding: 100px 0;
    background: var(--light);
    position: relative;
    overflow: hidden;
}

.journey-content {
    display: flex;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 2;
}

.journey-image {
    flex: 1;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(35, 78, 82, 0.15);
    transition: transform 0.5s ease;
    height: 500px;
}

.journey-image:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.teacher-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.journey-text {
    flex: 1;
}

.section-title {
    font-size: 2.8rem;
    color: var(--primary);
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 4px;
    background: linear-gradient(to right, var(--accent1), var(--secondary));
    border-radius: 2px;
}

.journey-description {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--dark);
    margin-bottom: 40px;
}

.achievement-counters {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.counter-card {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
    transition: var(--transition);
    border: 1px solid rgba(163, 190, 140, 0.2);
}

.counter-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(35, 78, 82, 0.1);
    background: var(--white);
}

.counter-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(163, 190, 140, 0.1), rgba(127, 17, 2, 0.05));
    border-radius: 50%;
    font-size: 1.8rem;
    color: var(--primary);
}

.counter-content {
    flex: 1;
}

.counter {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 5px;
}

.counter-label {
    font-size: 1rem;
    color: var(--secondary);
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 1200px) {
    .section-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 992px) {
    .journey-content {
        flex-direction: column;
    }
    
    .journey-image {
        max-width: 80%;
        margin: 0 auto;
    }
    
    .section-title:after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .journey-description {
        text-align: center;
    }
    
    .achievement-counters {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .journey-section {
        padding: 70px 0;
    }
    
    .achievement-counters {
        grid-template-columns: 1fr;
    }
    
    .counter-card {
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 2.2rem;
    }
    
    .journey-description {
        font-size: 1.1rem;
    }
    
    .counter {
        font-size: 2rem;
    }
}

/* ===== WHY ISLAMIC EDUCATION SECTION ===== */
.why-islamic-section {
    padding: 80px 0;
    background: linear-gradient(rgba(248, 245, 240, 0.9), rgba(248, 245, 240, 0.95)), 
                url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" width="100" height="100" opacity="0.03"><path d="M20,50 Q50,20 80,50 T100,80 Q70,100 50,70 T0,50 Q30,20 50,30 T100,50" fill="none" stroke="%23234e52" stroke-width="0.8"/></svg>');
    background-size: 300px;
    position: relative;
    overflow: hidden;
}

/* Arabic Slider Styles */
.arabic-slider-container {
    background: linear-gradient(135deg, var(--primary), var(--dark));
    padding: 30px 0;
    overflow: hidden;
    position: relative;
    margin-bottom: 60px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.arabic-slider-container:before,
.arabic-slider-container:after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    background: linear-gradient(to right, rgba(26,58,62,1), rgba(26,58,62,0));
    z-index: 2;
}

.arabic-slider-container:after {
    right: 0;
    background: linear-gradient(to left, rgba(26,58,62,1), rgba(26,58,62,0));
    transform: rotate(180deg);
}

.arabic-slider-container:before {
    left: 0;
}

.arabic-slider-track {
    display: flex;
    animation: arabicScroll 30s linear infinite;
    white-space: nowrap;
    direction: ltr;
}


.arabic-slide {
    display: flex;
    align-items: center;
    padding: 0 40px;
    font-family: 'Amiri', serif;
    font-size: 1.8rem;
    color: var(--white);
    flex-shrink: 0;
}

.arabic-slide .source {
    color: var(--accent1);
    margin-left: 15px;
    font-weight: 700;
    font-size: 1.4rem;
    margin-right: 20px;
}

.arabic-slide .verse {
    font-weight: 700;
    letter-spacing: 1px;
    margin-right: 20px;
}

.arabic-slide .reference {
    color: var(--accent2);
    font-size: 1.4rem;
    font-weight: 700;
}

@keyframes arabicScroll {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(0); }
}
/* Education Content Styles */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.8rem;
    color: var(--primary);
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-header h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(to right, var(--accent1), var(--secondary));
    border-radius: 2px;
}

.education-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.education-image {
    flex: 1;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(35, 78, 82, 0.15);
    transition: transform 0.5s ease;
    height: 500px;
}

.education-image:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.education-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: ;
}

.islamic-pattern-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" opacity="0.05"><path d="M20,20 Q50,5 80,20 T100,50 Q85,80 50,100 T0,50 Q15,20 50,0 T100,20" fill="none" stroke="%23234e52" stroke-width="1"/></svg>');
    background-size: 300px;
    pointer-events: none;
}

.education-points {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.point-card {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
    transition: var(--transition);
    border: 1px solid rgba(163, 190, 140, 0.2);
    display: flex;
    gap: 20px;
}

.point-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(35, 78, 82, 0.15);
    background: var(--white);
    border-color: rgba(163, 190, 140, 0.4);
}

.point-card-full {
    grid-column: span 2;
    background: linear-gradient(135deg, rgba(163, 190, 140, 0.1), rgba(127, 17, 2, 0.05));
    border: 1px solid rgba(163, 190, 140, 0.3);
}

.point-card-full:hover {
    background: linear-gradient(135deg, rgba(163, 190, 140, 0.15), rgba(127, 17, 2, 0.08));
}

.point-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent1), #8da67a);
    border-radius: 50%;
    font-size: 1.8rem;
    color: var(--white);
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(163, 190, 140, 0.3);
}

.point-card-full .point-icon {
    background: linear-gradient(135deg, var(--primary), var(--dark));
}

.point-content h3 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.point-content p {
    color: var(--dark);
    line-height: 1.6;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 1200px) {
    .arabic-slide {
        font-size: 1.6rem;
    }
    
    .arabic-slide .source,
    .arabic-slide .reference {
        font-size: 1.2rem;
    }
}

@media (max-width: 992px) {
    .education-content {
        flex-direction: column;
    }
    
    .education-image {
        max-width: 600px;
        margin: 0 auto;
    }
    
    .section-header h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .arabic-slide {
        font-size: 1.4rem;
        padding: 0 25px;
    }
    
    .education-points {
        grid-template-columns: 1fr;
    }
    
    .point-card-full {
        grid-column: span 1;
    }
    
    .section-header h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 576px) {
    .arabic-slide {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px 25px;
    }
    
    .arabic-slide .source,
    .arabic-slide .reference {
        margin: 5px 0;
    }
    
    .point-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .point-content h3 {
        font-size: 1.3rem;
    }
}


/* ===== WHY IQRA WARTQI SECTION ===== */
.why-iqra-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(35, 78, 82, 0.05), rgba(163, 190, 140, 0.05));
}

.why-iqra-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" width="100" height="100" opacity="0.03"><path d="M20,50 Q50,20 80,50 T100,80 Q70,100 50,70 T0,50 Q30,20 50,30 T100,50" fill="none" stroke="%23234e52" stroke-width="0.8"/></svg>');
    background-size: 300px;
    z-index: 0;
}

.iqra-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.iqra-image {
    flex: 1;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(35, 78, 82, 0.15);
    transition: transform 0.5s ease;
    height: 500px;
    background: #FFFFFF;
}

.iqra-image:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.iqra-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.iqra-text {
    flex: 1;
    padding: 40px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(163, 190, 140, 0.3);
}

.iqra-text:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" opacity="0.03"><path d="M20,20 Q50,5 80,20 T100,50 Q85,80 50,100 T0,50 Q15,20 50,0 T100,20" fill="none" stroke="%23234e52" stroke-width="1"/></svg>');
    background-size: 300px;
    pointer-events: none;
}

.iqra-text h3 {
    font-family: 'Amiri', serif;
    font-size: 2.2rem;
    color: var(--primary);
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.iqra-text h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(to right, var(--accent1), var(--accent2));
    border-radius: 2px;
}

.iqra-text p {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--dark);
    margin-bottom: 25px;
    text-align: center;
}

.iqra-highlight {
    color: var(--secondary);
    font-weight: 700;
    font-style: italic;
}

.call-to-action {
    text-align: center;
    margin-top: 40px;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 45px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    background: linear-gradient(135deg, var(--accent1), #8da67a);
    color: var(--primary);
    box-shadow: 0 8px 25px rgba(163, 190, 140, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    z-index: -1;
}

.cta-btn:hover:before {
    transform: translateX(100%);
}

.cta-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(163, 190, 140, 0.4);
}

.cta-btn i {
    margin-right: 10px;
}

.arabic-decoration {
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-family: 'Amiri', serif;
    font-size: 1.8rem;
    color: var(--primary);
    opacity: 0.2;
    transform: rotate(-10deg);
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 1200px) {
    .iqra-content {
        gap: 40px;
    }
}

@media (max-width: 992px) {
    .iqra-content {
        flex-direction: column;
    }
    
    .iqra-image {
        max-width: 600px;
        margin: 0 auto;
        height: 400px;
    }
    
    .section-header h2 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .why-iqra-section {
        padding: 70px 0;
    }
    
    .iqra-text h3 {
        font-size: 1.9rem;
    }
    
    .iqra-text p {
        font-size: 1.15rem;
    }
}

@media (max-width: 576px) {
    .iqra-text {
        padding: 20px;
    }
    
    .iqra-text h3 {
        font-size: 1.7rem;
    }
    
    .iqra-text p {
        font-size: 1.05rem;
    }
    
    .cta-btn {
        padding: 15px 30px;
        font-size: 1rem;
    }
}

/* ======= Message Section ======= */
.iw-message {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f5f0 0%, #f0ede8 100%);
    position: relative;
    overflow: hidden;
}

.iw-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.iw-message::before {
    content: "";
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: #234e52;
    border-radius: 50%;
    opacity: 0.05;
    z-index: 0;
}

.iw-message-wrapper {
    display: flex;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 2;
}

.iw-message-content {
    flex: 1;
}

.iw-message-image {
    flex: 1;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    transform: translateY(0);
    transition: transform 0.5s ease;
    height: 500px;
}

.iw-message-image:hover {
    transform: translateY(-10px);
}

.iw-message-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.iw-section-title,
.iw-section-subtitle {
    width: 100%;         /* match container width (same as cards) */
    max-width: 600px;    /* optional: match card grid width */
}

.iw-section-title {
    position: relative;
    margin-bottom: 10px;
    padding-bottom: 10px;
}

.iw-section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;            /* line starts at title start */
    width: 100%;        /* line matches title width */
    height: 4px;
    background: #7f1102;
    border-radius: 2px;
}

.iw-section-subtitle {
    margin-bottom: 40px;
    display: block;
    font-weight: 700;
}

.iw-message-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.iw-message-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(35, 78, 82, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border-left: 5px solid #a3be8c;
}

.iw-message-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(35, 78, 82, 0.15);
    border-left-color: #7f1102;
}

.iw-message-card h3 {
    font-family: 'Philosopher', sans-serif;
    font-size: 1.4rem;
    color: #234e52;
    margin-top: 15px;
    margin-bottom: 12px;
}

.iw-message-card p {
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
}

.iw-card-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-family: 'Philosopher', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    color: rgba(35, 78, 82, 0.08);
    line-height: 1;
    transition: all 0.3s ease;
}

.iw-message-card:hover .iw-card-number {
    color: rgba(127, 17, 2, 0.15);
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .iw-container {
        padding: 0 40px;
    }
}

@media (max-width: 992px) {
    .iw-message-wrapper {
        flex-direction: column;
    }
    
    .iw-message-image {
        width: 100%;
        order: -1;
        height: 400px;
        margin-bottom: 40px;
    }
    
    .iw-message-content {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .iw-message-cards {
        grid-template-columns: 1fr;
    }
    
    .iw-section-title {
        font-size: 2.3rem;
    }
    
    .iw-container {
        padding: 0 20px;
    }
}

@media (max-width: 576px) {
    .iw-message {
        padding: 60px 0;
    }
    
    .iw-section-title {
        font-size: 2rem;
    }
}

/* ===== Our Mission Section ===== */
/* Remove the mosque silhouette */
.iw-mosque-silhouette {
    display: none;
}

/* Add these new styles for the title */
.iw-section-title {
    font-family: 'Philosopher', sans-serif;
    font-size: 2.8rem;
    color: #234e52;
    margin-bottom: 15px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.iw-section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #7f1102;
    border-radius: 2px;
}

.iw-section-subtitle {
    font-family: 'Philosopher', sans-serif;
    font-size: 1.3rem;
    color: #d4a373;
    margin-bottom: 40px;
    text-align: center;
    font-weight: 700;
}

/* Adjust mission header spacing */
.iw-mission-header {
    margin: 40px auto 60px;
}
.iw-mission-section {
    padding: 100px 0 150px;
    position: relative;
    background: linear-gradient(to bottom, #f9f6f0 0%, #f1ece2 100%);
    overflow: hidden;
}

.iw-mission-header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 60px;
    position: relative;
    z-index: 3;
}

.iw-quranic-verse, .iw-hadith {
    margin-bottom: 50px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(35, 78, 82, 0.1);
    position: relative;
}

.iw-quranic-verse::before, .iw-hadith::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(to right, #234e52, #7f1102, #d4a373, #a3be8c);
    border-radius: 5px 5px 0 0;
}

.iw-arabic {
    font-family: 'Amiri', 'Scheherazade New', serif;
    font-size: 2.2rem;
    line-height: 1.8;
    color: #234e52;
    margin-bottom: 25px;
    text-align: right;
    direction: rtl;
}

.iw-translation {
    font-family: 'Philosopher', sans-serif;
    font-size: 1.3rem;
    line-height: 1.7;
    color: #555;
    font-style: italic;
    border-top: 2px solid #d4a373;
    padding-top: 20px;
}

.iw-mission-content {
    position: relative;
    z-index: 3;
}

.iw-mission-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.iw-mission-point {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(35, 78, 82, 0.08);
    transition: all 0.4s ease;
    text-align: center;
    border-bottom: 4px solid #a3be8c;
}

.iw-mission-point:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(35, 78, 82, 0.15);
    border-bottom-color: #7f1102;
}

.iw-point-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.iw-mission-point:hover .iw-point-icon {
    transform: scale(1.1);
}

.iw-mission-point h3 {
    font-family: 'Philosopher', sans-serif;
    font-size: 1.5rem;
    color: #234e52;
    margin-bottom: 15px;
}

.iw-mission-point p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #555;
}

.iw-mission-cta {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    padding: 40px;
    background: rgba(163, 190, 140, 0.15);
    border-radius: 15px;
    position: relative;
}

.iw-mission-cta p {
    font-family: 'Philosopher', sans-serif;
    font-size: 1.6rem;
    color: #234e52;
    margin-bottom: 30px;
    font-weight: 700;
}

.iw-cta-button {
    display: inline-block;
    background: linear-gradient(to right, #234e52, #1a3c3f);
    color: white;
    font-family: 'Philosopher', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(35, 78, 82, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.iw-cta-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: linear-gradient(to right, #7f1102, #6a0e02);
    transition: all 0.5s ease;
    z-index: -1;
}

.iw-cta-button:hover::before {
    width: 100%;
}

.iw-cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(127, 17, 2, 0.4);
}

.iw-mosque-silhouette {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" opacity=".25" fill="%23234e52"/><path d="M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z" opacity=".5" fill="%23234e52"/><path d="M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z" fill="%23234e52"/></svg>');
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 2;
}

/* Responsive Design */
@media (max-width: 992px) {
    .iw-arabic {
        font-size: 1.8rem;
    }
    
    .iw-translation {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .iw-mission-section {
        padding: 70px 0 120px;
    }
    
    .iw-mission-header {
        margin-bottom: 40px;
    }
    
    .iw-arabic {
        font-size: 1.6rem;
    }
    
    .iw-mission-cta p {
        font-size: 1.4rem;
    }
}

@media (max-width: 576px) {
    .iw-quranic-verse, .iw-hadith {
        padding: 20px 15px;
    }
    
    .iw-arabic {
        font-size: 1.4rem;
    }
    
    .iw-mission-points {
        grid-template-columns: 1fr;
    }
}

/* ===== Our Departments Section ===== */
.iw-departments-section {
    padding: 100px 0;
    background: linear-gradient(to bottom, #fff 0%, #f8f8f8 100%);
    position: relative;
    overflow: hidden;
}

.iw-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.iw-departments-header {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 60px;
}

.iw-departments-image {
    flex: 1;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(35, 78, 82, 0.15);
    transform: translateY(0);
    transition: transform 0.5s ease;
}

.iw-departments-image:hover {
    transform: translateY(-10px);
}

.iw-departments-image img {
    width: 100%;
    height: auto;
    display: block;
}

.iw-departments-intro {
    flex: 1;
}

.iw-section-title {
    font-family: 'Philosopher', sans-serif;
    font-size: 2.8rem;
    color: #234e52;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 15px;
}

.iw-section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: #7f1102;
    border-radius: 2px;
}

.iw-section-subtitle {
    font-family: 'Philosopher', sans-serif;
    font-size: 1.3rem;
    color: #d4a373;
    margin-bottom: 20px;
    font-weight: 700;
}

.iw-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 30px;
}

.iw-cta-button {
    display: inline-block;
    background: linear-gradient(to right, #234e52, #1a3c3f);
    color: white;
    font-family: 'Philosopher', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(35, 78, 82, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.iw-cta-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: linear-gradient(to right, #7f1102, #6a0e02);
    transition: all 0.5s ease;
    z-index: -1;
}

.iw-cta-button:hover::before {
    width: 100%;
}

.iw-cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(127, 17, 2, 0.4);
}

.iw-departments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.iw-department-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(35, 78, 82, 0.08);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
    border-top: 5px solid #a3be8c;
    height: 250px;
    display: flex;
    flex-direction: column;
}

.iw-department-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(35, 78, 82, 0.15);
    border-top-color: #7f1102;
}

.iw-card-header {
    margin-bottom: 15px;
    border-bottom: 2px solid rgba(163, 190, 140, 0.3);
    padding-bottom: 15px;
}

.iw-arabic-title {
    font-family: 'Amiri', 'Scheherazade New', serif;
    font-size: 1.8rem;
    color: #234e52;
    line-height: 1.4;
    text-align: right;
    direction: rtl;
    margin-bottom: 8px;
}

.iw-english-title {
    font-family: 'Philosopher', sans-serif;
    font-size: 1.4rem;
    color: #d4a373;
    font-weight: 700;
    margin-bottom: 0;
}

.iw-card-description {
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 20px;
    flex-grow: 1;
}

.iw-card-hover {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to right, #234e52, #1a3c3f);
    color: white;
    text-align: center;
    padding: 15px;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    opacity: 0.95;
}

.iw-department-card:hover .iw-card-hover {
    transform: translateY(0);
}

.iw-card-hover span {
    font-family: 'Philosopher', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
}

/* Decorative Elements */
.iw-departments-section::before {
    content: "";
    position: absolute;
    top: 100px;
    left: -100px;
    width: 250px;
    height: 250px;
    background: #d4a373;
    opacity: 0.05;
    border-radius: 50%;
    z-index: 1;
}

.iw-departments-section::after {
    content: "";
    position: absolute;
    bottom: 50px;
    right: -80px;
    width: 200px;
    height: 200px;
    background: #7f1102;
    opacity: 0.05;
    border-radius: 50%;
    z-index: 1;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .iw-departments-grid {
        gap: 25px;
    }
    
    .iw-department-card {
        padding: 25px;
        height: 270px;
    }
}

@media (max-width: 992px) {
    .iw-departments-section {
        padding: 80px 0;
    }
    
    .iw-departments-header {
        flex-direction: column;
        gap: 40px;
    }
    
    .iw-departments-image {
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .iw-departments-intro {
        text-align: center;
    }
    
    .iw-section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .iw-departments-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .iw-departments-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .iw-department-card {
        height: 260px;
    }
    
    .iw-arabic-title {
        font-size: 1.5rem;
    }
    
    .iw-english-title {
        font-size: 1.3rem;
    }
    
    .iw-section-title {
        font-size: 2.3rem;
    }
}

@media (max-width: 576px) {
    .iw-departments-grid {
        grid-template-columns: 1fr;
    }
    
    .iw-department-card {
        height: auto;
    }
    
    .iw-section-title {
        font-size: 2rem;
    }
    
    .iw-cta-button {
        width: 100%;
        text-align: center;
    }
}

/* ===== Our Programme Section ===== */
.iw-programme-section {
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(248, 245, 240, 0.9), rgba(240, 237, 232, 0.9));
    position: relative;
    overflow: hidden;
}

.iw-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.iw-programme-header {
    text-align: center;
    margin-bottom: 60px;
}

.iw-section-title {
    font-family: 'Philosopher', sans-serif;
    font-size: 2.8rem;
    color: #234e52;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 15px;
}

.iw-section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(to right, #7f1102, #d4a373);
    border-radius: 2px;
}

.iw-section-subtitle {
    font-family: 'Philosopher', sans-serif;
    font-size: 1.3rem;
    color: #d4a373;
    margin-bottom: 40px;
    font-weight: 700;
}

/* Top Content - Image and Description */
.iw-programme-top {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 60px;
}

.iw-programme-description {
    flex: 1;
    background: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(35, 78, 82, 0.08);
    border-left: 4px solid #a3be8c;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

.iw-programme-image {
    flex: 1;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(35, 78, 82, 0.15);
    transition: transform 0.5s ease;
    height: 500px;
    background: #FFFFFF;
}

.iw-programme-image:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.iw-programme-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Pathway Steps */
.iw-pathway {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.iw-path-step {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(35, 78, 82, 0.08);
    min-width: 180px;
    transition: all 0.3s ease;
    border: 1px solid rgba(163, 190, 140, 0.2);
}

.iw-path-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(35, 78, 82, 0.15);
}

.iw-step-icon {
    width: 50px;
    height: 50px;
    background: #a3be8c;
    color: #234e52;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-weight: 700;
    font-family: 'Philosopher', sans-serif;
    font-size: 1.3rem;
}

.iw-path-step p {
    color: #234e52;
    font-size: 1rem;
    margin: 0;
    line-height: 1.4;
    font-weight: 500;
}

/* Course Cards */
.iw-programme-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 60px;
}

.iw-course-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 15px 40px rgba(35, 78, 82, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
    border-top: 5px solid;
    width: 100%;
    max-width: 500px;
}

.iw-certificate {
    border-top-color: #a3be8c;
}

.iw-diploma {
    border-top-color: #d4a373;
}

.iw-course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(35, 78, 82, 0.15);
}

.iw-course-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #234e52;
    color: white;
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 700;
}

.iw-course-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px dashed rgba(163, 190, 140, 0.3);
}

.iw-course-header h3 {
    font-family: 'Philosopher', sans-serif;
    font-size: 1.8rem;
    color: #234e52;
    margin: 0;
}

.iw-course-icon {
    font-size: 2.5rem;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(163, 190, 140, 0.1);
    border-radius: 50%;
}

.iw-diploma .iw-course-icon {
    background: rgba(212, 163, 115, 0.1);
}

.iw-course-details {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.iw-course-details li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(163, 190, 140, 0.1);
    display: flex;
    justify-content: space-between;
}

.iw-course-details li:last-child {
    border-bottom: none;
}

.iw-course-details strong {
    color: #234e52;
}

.iw-benefit {
    background: rgba(163, 190, 140, 0.15);
    padding: 3px 10px;
    border-radius: 30px;
    color: #234e52;
    font-weight: 700;
    font-size: 0.9rem;
}

.iw-diploma .iw-benefit {
    background: rgba(212, 163, 115, 0.2);
}

.iw-course-benefit {
    background: rgba(35, 78, 82, 0.03);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    gap: 15px;
    border-left: 3px solid #7f1102;
}

.iw-benefit-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}

/* CTA Button */
.iw-programme-cta {
    text-align: center;
    padding: 20px 0;
}

.iw-cta-button {
    display: inline-flex;
    flex-direction: column;
    background: linear-gradient(to right, #234e52, #1a3c3f);
    color: white;
    font-family: 'Philosopher', sans-serif;
    font-weight: 700;
    padding: 20px 50px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(35, 78, 82, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    text-align: center;
}

.iw-cta-button span:first-child {
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.iw-cta-button span:last-child {
    font-size: 1rem;
    opacity: 0.9;
}

.iw-cta-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: linear-gradient(to right, #7f1102, #6a0e02);
    transition: all 0.5s ease;
    z-index: -1;
}

.iw-cta-button:hover::before {
    width: 100%;
}

.iw-cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(127, 17, 2, 0.4);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .iw-programme-top {
        gap: 40px;
    }
}

@media (max-width: 992px) {
    .iw-programme-top {
        flex-direction: column;
    }
    
    .iw-programme-image {
        max-width: 600px;
        margin: 0 auto;
    }
    
    .iw-pathway {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .iw-path-step {
        min-width: calc(50% - 20px);
    }
}

@media (max-width: 768px) {
    .iw-programme-section {
        padding: 70px 0;
    }
    
    .iw-programme-cards {
        flex-direction: column;
        align-items: center;
    }
    
    .iw-path-step {
        min-width: 100%;
    }
    
    .iw-course-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .iw-cta-button {
        padding: 15px 30px;
    }
    
    .iw-cta-button span:first-child {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .iw-section-title {
        font-size: 2.2rem;
    }
    
    .iw-course-card {
        padding: 25px;
    }
}

/* ===== Special Features Section ===== */
.iw-special-features {
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(248, 245, 240, 0.9), rgba(240, 237, 232, 0.9));
    position: relative;
    overflow: hidden;
    width: 100%;
}

.iw-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.iw-section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.iw-section-title {
    font-family: 'Philosopher', sans-serif;
    font-size: 2.8rem;
    color: #234e52;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.iw-title-decoration {
    height: 4px;
    width: 120px;
    background: linear-gradient(to right, #234e52, #7f1102, #d4a373, #a3be8c);
    margin: 0 auto 20px;
    border-radius: 2px;
}

.iw-section-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-top: 20px;
}

.iw-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
    width: 100%;
}

.iw-feature-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(35, 78, 82, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
    display: flex;
    flex-direction: column;
    height: 100%;
    border-top: 5px solid #a3be8c;
}

.iw-feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(35, 78, 82, 0.15);
    border-top-color: #7f1102;
}

.iw-feature-thumb {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.iw-feature-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.iw-feature-card:hover .iw-feature-thumb img {
    transform: scale(1.05);
}

.iw-feature-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #a3be8c, #d4a373);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.iw-feature-status {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #7f1102;
    color: white;
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.iw-feature-level {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(35, 78, 82, 0.9);
    color: white;
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 700;
}

.iw-feature-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.iw-feature-title {
    font-family: 'Philosopher', sans-serif;
    font-size: 1.5rem;
    color: #234e52;
    margin-bottom: 15px;
    min-height: 70px;
}

.iw-feature-meta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.iw-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: #555;
}

.iw-meta-item i {
    color: #d4a373;
    width: 20px;
    text-align: center;
}

.iw-feature-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(163, 190, 140, 0.2);
}

.iw-feature-price {
    font-family: 'Philosopher', sans-serif;
    font-size: 1.4rem;
    color: #7f1102;
    font-weight: 700;
}

.iw-feature-actions {
    display: flex;
    gap: 10px;
}

.iw-details-btn, .iw-enroll-btn {
    padding: 8px 20px;
    border-radius: 30px;
    font-family: 'Philosopher', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.iw-details-btn {
    background: rgba(35, 78, 82, 0.1);
    color: #234e52;
    border: 2px solid rgba(35, 78, 82, 0.2);
}

.iw-details-btn:hover {
    background: rgba(35, 78, 82, 0.2);
}

.iw-enroll-btn {
    background: linear-gradient(to right, #234e52, #1a3c3f);
    color: white;
    border: 2px solid #234e52;
}

.iw-enroll-btn:hover {
    background: linear-gradient(to right, #1a3c3f, #234e52);
}

.iw-features-cta {
    text-align: center;
    margin-top: 40px;
}

.iw-cta-button {
    display: inline-flex; /* Changed to flex for icon alignment */
    align-items: center;
    gap: 10px;
    background: linear-gradient(to right, #234e52, #1a3c3f);
    color: white;
    font-family: 'Philosopher', sans-serif;
    font-weight: 700;
    padding: 15px 30px; /* Slightly narrower than yours */
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(35, 78, 82, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Gradient Overlay - Exactly Matching */
.iw-cta-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: linear-gradient(to right, #7f1102, #6a0e02);
    transition: all 0.5s ease;
    z-index: -1;
}

/* Hover States - Exactly Matching */
.iw-cta-button:hover::before {
    width: 100%;
}

.iw-cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(127, 17, 2, 0.4);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .iw-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .iw-special-features {
        padding: 70px 0;
    }
    
    .iw-features-grid {
        grid-template-columns: 1fr;
    }
    
    .iw-feature-title {
        min-height: auto;
    }
    
    .iw-feature-footer {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .iw-feature-actions {
        width: 100%;
    }
    
    .iw-details-btn, .iw-enroll-btn {
        flex: 1;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .iw-section-title {
        font-size: 2.2rem;
    }
}

/* Our mashayikh Section */
.iw-mashayikh-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f5f0 0%, #f0ede8 100%);
    position: relative;
    overflow: hidden;
}

.iw-faculty-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(35, 78, 82, 0.1);
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.iw-faculty-image-wrapper {
    position: relative;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.iw-faculty-bg-shape {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #234e52 0%, #1a3a3e 100%);
    clip-path: polygon(0 0, 100% 0, 100% 80%, 0 100%);
    opacity: 0.9;
}

.iw-faculty-image {
    position: relative;
    z-index: 2;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: white;
    padding: 5px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.iw-teacher-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #d4a373;
}

.iw-faculty-content {
    padding: 25px;
    text-align: center;
    position: relative;
}

.iw-faculty-content h3 {
    font-family: 'Philosopher', sans-serif;
    color: #234e52;
    font-size: 1.5rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.iw-faculty-content h3:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: #d4a373;
}

.iw-faculty-bio {
    color: #555;
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.iw-faculty-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #234e52;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
}

.iw-faculty-btn:hover {
    color: #7f1102;
    border-bottom-color: #7f1102;
}

.iw-faculty-btn i {
    transition: transform 0.3s ease;
}

/* Hover Effects */
.iw-faculty-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(35, 78, 82, 0.2);
}

.iw-faculty-card:hover .iw-faculty-bg-shape {
    background: linear-gradient(135deg, #7f1102 0%, #6a0e02 100%);
}

.iw-faculty-card:hover .iw-teacher-img {
    border-color: #a3be8c;
}

.iw-faculty-btn:hover i {
    transform: translateX(5px);
}

/* Background Pattern */
.iw-mashayikh-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" opacity="0.03"><path d="M20,50 Q50,20 80,50 T100,80 Q70,100 50,70 T0,50 Q30,20 50,30 T100,50" fill="none" stroke="%23234e52" stroke-width="1"/></svg>');
    background-size: 300px;
    z-index: 0;
}

/* ENDORSEMENTS SECTION */
/* ENDORSEMENTS SECTION */
.iw-endorsements-section {
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(248, 245, 240, 0.9), rgba(240, 237, 232, 0.9));
    position: relative;
    overflow: hidden;
}

.iw-endorsements-section::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: rgba(35, 78, 82, 0.05);
    border-radius: 50%;
    z-index: 0;
}

.iw-endorsements-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
}

.iw-endorsements-content {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.iw-endorsements-grid {
    flex: 2;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    min-width: 300px;
}

.iw-section-header {
    margin-bottom: 40px;
}

.iw-section-title {
    font-family: 'Philosopher', sans-serif;
    font-size: 2.8rem;
    color: var(--primary);
    margin-bottom: 15px;
    position: relative;
}

.iw-title-decoration {
    height: 4px;
    width: 80px;
    background: var(--secondary);
    margin-bottom: 25px;
    border-radius: 2px;
}

.iw-section-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 30px;
}

.iw-islamic-pattern {
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M50,10 C60,15 70,20 80,25 C85,40 90,55 90,70 C75,85 60,90 50,90 C40,90 25,85 10,70 C10,55 15,40 20,25 C30,20 40,15 50,10 Z" fill="none" stroke="%23d4a373" stroke-width="0.8" opacity="0.15"/></svg>');
    background-repeat: no-repeat;
    z-index: 1;
    opacity: 0.5;
}

/* ENDORSEMENT CARDS */
.iw-endorsement-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(35, 78, 82, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
    display: flex;
    flex-direction: column;
}

.iw-endorsement-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(35, 78, 82, 0.15);
}

.iw-card-image {
    height: 200px;
    overflow: hidden;
}

.iw-endorsement-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.iw-endorsement-card:hover .iw-endorsement-img {
    transform: scale(1.05);
}

.iw-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.iw-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    gap: 15px;
}

.iw-card-title {
    font-family: 'Philosopher', sans-serif;
    font-size: 1.3rem;
    color: var(--primary);
    margin: 0;
    line-height: 1.3;
}

.iw-issued-date {
    font-size: 0.85rem;
    color: var(--secondary);
    font-weight: 600;
    white-space: nowrap;
    padding-top: 3px;
}

.iw-card-excerpt {
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.iw-details-btn {
    display: inline-flex;
    align-items: center;
    font-family: 'Philosopher', sans-serif;
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    margin-top: auto;
    align-self: flex-start;
}

.iw-details-btn:hover {
    color: var(--secondary);
}

.iw-btn-icon {
    margin-left: 5px;
    transition: transform 0.3s;
}

.iw-details-btn:hover .iw-btn-icon {
    transform: translateX(3px);
}

.iw-no-endorsements {
    grid-column: span 2;
    text-align: center;
    padding: 40px;
    color: var(--text);
}

/* RESPONSIVE DESIGN */
@media (max-width: 992px) {
    .iw-endorsements-wrapper {
        flex-direction: column;
        gap: 40px;
    }
    
    .iw-endorsements-content {
        text-align: center;
    }
    
    .iw-title-decoration {
        margin-left: auto;
        margin-right: auto;
    }
    
    .iw-islamic-pattern {
        right: 0;
        bottom: -80px;
    }
}

@media (max-width: 768px) {
    .iw-endorsements-grid {
        grid-template-columns: 1fr;
    }
    
    .iw-section-title {
        font-size: 2.3rem;
    }
    
    .iw-no-endorsements {
        grid-column: span 1;
    }
}

@media (max-width: 576px) {
    .iw-section-title {
        font-size: 2rem;
    }
    
    .iw-card-header {
        flex-direction: column;
        gap: 5px;
    }
    
    .iw-issued-date {
        align-self: flex-start;
    }
}

/* Swiper CSS from a CDN. Enqueue this in functions.php */
/* @import url('https://unpkg.com/swiper/swiper-bundle.min.css'); */

:root {
    --iw-primary-color: #234e52;
    --iw-secondary-color: #7f1102;
    --iw-tertiary-color: #d4a373;
    --iw-quaternary-color: #a3be8c;
    --iw-font-philosopher: 'Philosopher', sans-serif;
}

/* General Section Styling */
.iw-testimonials-section {
    padding: 60px 0;
    background-color: #f7f7f7;
    font-family: var(--iw-font-philosopher);
}

.iw-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.iw-testimonials-header {
    text-align: center;
    margin-bottom: 40px;
}

.iw-section-title {
    font-size: 2.5rem;
    color: var(--iw-primary-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.iw-section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--iw-tertiary-color);
    margin: 10px auto 0;
}

.iw-section-description {
    font-size: 1.1rem;
    color: #555;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Static Points Grid */
.iw-static-points-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.iw-point-card {
    background-color: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid var(--iw-quaternary-color);
}

.iw-point-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.iw-point-title {
    font-size: 1.4rem;
    color: var(--iw-primary-color);
    margin-bottom: 10px;
}

.iw-point-quote {
    font-style: italic;
    color: #666;
    line-height: 1.5;
}

/* Testimonial Carousel */
.iw-carousel-container {
    padding: 0 20px;
}

.iw-testimonials-carousel {
    padding-bottom: 40px; /* Space for pagination */
}

.iw-testimonial-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 350px; /* Ensure cards have a minimum height */
    position: relative;
}

.iw-testimonial-card::before {
    content: "“";
    font-family: Georgia, serif;
    font-size: 100px;
    color: rgba(212, 163, 115, 0.2);
    position: absolute;
    top: -20px;
    left: 20px;
    line-height: 1;
}

.iw-testimonial-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    border: 3px solid var(--iw-tertiary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.iw-testimonial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.iw-testimonial-stars {
    color: var(--iw-tertiary-color);
    margin-bottom: 15px;
}

.iw-star {
    font-size: 1.2rem;
    cursor: default;
}

.iw-star.filled::before {
    content: "★";
    color: var(--iw-tertiary-color);
}

.iw-star:not(.filled)::before {
    content: "☆";
    color: #ccc;
}

.iw-testimonial-text {
    font-size: 1rem;
    color: #444;
    line-height: 1.6;
    margin-bottom: 20px;
    font-style: italic;
}

.iw-testimonial-author {
    margin-top: auto; /* Push author to the bottom */
}

.iw-author-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--iw-primary-color);
    margin: 0;
}

.iw-author-about {
    font-size: 0.9rem;
    color: #777;
    margin-top: 5px;
}

/* Swiper pagination styling */
.iw-swiper-pagination.swiper-pagination-bullets .swiper-pagination-bullet {
    background-color: var(--iw-tertiary-color);
    opacity: 0.6;
}

.iw-swiper-pagination.swiper-pagination-bullets .swiper-pagination-bullet-active {
    background-color: var(--iw-primary-color);
    opacity: 1;
}

/* Donation & Sponsorship Section Styling */
.iw-donation-sponsorship-section {
    padding: 80px 0;
    background-color: #fff;
    font-family: var(--iw-font-philosopher);
}

.iw-two-column-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

@media (max-width: 991px) {
    .iw-two-column-grid {
        grid-template-columns: 1fr;
    }
}

.iw-column {
    background-color: #f7f7f7;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border-top: 5px solid var(--iw-primary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.iw-column:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.iw-sponsorship-column {
    border-color: var(--iw-primary-color);
}

.iw-donation-column {
    border-color: var(--iw-secondary-color);
}

.iw-column-title {
    font-size: 2rem;
    color: var(--iw-primary-color);
    margin-bottom: 10px;
    text-align: center;
}

.iw-donation-column .iw-column-title {
    color: var(--iw-secondary-color);
}

.iw-column-subtitle {
    font-size: 1.1rem;
    color: #666;
    text-align: center;
    margin-bottom: 30px;
}

.iw-points-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
}

.iw-points-list li {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    border-left: 3px solid var(--iw-tertiary-color);
}

.iw-points-list .iw-point-title {
    font-size: 1.2rem;
    color: var(--iw-primary-color);
    margin: 0 0 5px;
}

.iw-points-list .iw-point-desc {
    font-size: 1rem;
    color: #555;
    margin: 0;
    line-height: 1.5;
}

/* Button Styling */
.iw-button {
    display: block;
    width: 100%;
    padding: 15px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: none;
    cursor: pointer;
}

.iw-button-sponsor {
    background-color: var(--iw-primary-color);
    color: #fff;
}

.iw-button-sponsor:hover {
    background-color: #1a3c40; /* Darker shade of primary */
}

.iw-button-donate {
    background-color: var(--iw-secondary-color);
    color: #fff;
}

.iw-button-donate:hover {
    background-color: #660e01; /* Darker shade of secondary */
}

/* Islamic Inspiration Section */
.iw-islamic-inspiration {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 60px;
}

@media (max-width: 767px) {
    .iw-islamic-inspiration {
        grid-template-columns: 1fr;
    }
}

.iw-islamic-quote {
    background-color: var(--iw-quaternary-color);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    color: #fff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.iw-quote-quran {
    background-color: #f1e4d5; /* Lighter tertiary */
    color: #333;
    border-left: 5px solid var(--iw-tertiary-color);
}

.iw-quote-hadith {
    background-color: #d1dace; /* Lighter quaternary */
    color: #333;
    border-left: 5px solid var(--iw-quaternary-color);
}

.iw-quote-title {
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 10px;
    font-weight: bold;
}

.iw-arabic-text {
    font-family: 'Amiri', serif;
    font-size: 1.8rem;
    line-height: 2;
    margin: 15px 0;
}

.iw-english-translation {
    font-size: 1.1rem;
    line-height: 1.6;
    font-style: italic;
    color: #444;
}

.iw-quote-hadith .iw-english-translation {
    font-size: 1rem;
}

.iw-reference {
    font-size: 0.9rem;
    color: #777;
    margin-top: 10px;
    font-weight: 500;
}
