/* Islamic Education Section */
.education-section {
    padding: 80px 0;
    background: var(--bg-section);
}

.feature-strip {
    background: var(--bg-feature);
    border-radius: 20px;
    padding: 40px 20px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-bottom: 60px;
    position: relative;
    overflow: hidden;
}

.feature-strip::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 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='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M30 30l15-15v30l-15-15zm-15 0l-15 15V15l15 15z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.feature-item {
    text-align: center;
    position: relative;
    z-index: 1;
    max-width: 300px;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--secondary-yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    color: white;
    box-shadow: 0 8px 20px rgba(246, 199, 68, 0.3);
}

.feature-item h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.4;
}

.welcome-section {
    position: relative;
}

.welcome-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.content-left {
    padding-right: 20px;
}

.section-label {
    color: var(--primary-green);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.bismillah {
    font-family: 'Amiri', serif;
    font-size: 24px;
    color: #888;
    margin-bottom: 30px;
    text-align: right;
    direction: rtl;
}

.welcome-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 25px;
}

.welcome-title .highlight-green {
    color: var(--primary-green);
}

.welcome-title .highlight-orange {
    color: var(--secondary-yellow);
}

.welcome-description {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.learning-highlight {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow-card);
}

.highlight-content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.student-image {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

.student-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.highlight-text {
    flex: 1;
}

.highlight-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-green);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.highlight-icon i {
    color: white;
    font-size: 18px;
}

.highlight-text h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.highlight-text p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

.content-right {
    position: relative;
}

.quran-reader-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-image);
}

.quran-reader-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.arabic-overlay {
    position: absolute;
    top: 30px;
    right: 30px;
    font-family: 'Amiri', serif;
    font-size: 48px;
    color: var(--primary-green);
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
}

.since-banner {
    margin-top: 60px;
    text-align: center;
}

.banner-content {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: var(--gradient-primary);
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 8px 25px rgba(15, 95, 60, 0.3);
}

.banner-content i {
    font-size: 20px;
    color: var(--secondary-yellow);
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: var(--gradient-primary);
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 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='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M30 30l15-15v30l-15-15zm-15 0l-15 15V15l15 15z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.cta-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.cta-text {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.cta-text h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

.cta-text p {
    font-size: 18px;
    opacity: 0.9;
    max-width: 500px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
}

/* Service Cards Images - Make them responsive */
.service-card img,
.services-section img {
    width: 100%;
    height: auto;
    max-width: 100%;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.service-card img:hover {
    transform: scale(1.02);
}

/* Gallery Section Images */
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 10px;
}

/* Course Card Images */
.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Blog Card Images */
.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Testimonial Section Images */
.testimonials-slide{
height: 400px;
}
.testimonial-content img,
.instructor-image img {
  display: block;
  width: 100%;
  height: 250px; /* adjust to whatever fixed height you want */
  object-fit: cover; /* crop but keep proportion */
  border-radius: 10px;
}


/* Enhanced Mobile Responsiveness */
@media (max-width: 968px) {
    .services-section,
    .courses-section,
    .gallery-section,
    .blog-section,
    .testimonials-slider-section {
        padding: 60px 0;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .why-choose-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .process-step {
        padding: 25px;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .stats-section {
        padding: 60px 0;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .stat-item {
        padding: 30px 15px;
    }
    
    .stat-icon {
        width: 70px;
        height: 70px;
        font-size: 28px;
        margin-bottom: 20px;
    }
    
    .stat-number {
        font-size: 40px;
    }
    
    .stat-label {
        font-size: 14px;
    }
    
    .services-cta {
        padding: 60px 0;
    }
    
    .services-cta .cta-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .cta-circle {
        width: 250px;
        height: 250px;
    }
    
    .cta-number {
        font-size: 40px;
    }
    
    .services-cta h2 {
        font-size: 36px;
    }
    
    .services-cta p {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .services-section,
    .why-choose-services,
    .service-process,
    .services-cta {
        padding: 60px 0;
    }
    
    .services-grid {
        gap: 25px;
    }
    
    .why-choose-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .why-choose-item {
        padding: 30px 25px;
    }
    
    .choose-icon {
        width: 70px;
        height: 70px;
        font-size: 28px;
        margin-bottom: 20px;
    }
    
    .why-choose-item h4 {
        font-size: 20px;
    }
    
    .process-steps {
        gap: 25px;
    }
    
    .process-step {
        padding: 20px;
        gap: 20px;
    }
    
    .service-card {
        padding: 25px;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .services-cta {
        padding: 80px 0;
    }
    
    .services-cta h2 {
        font-size: 32px;
    }
    
    .services-cta p {
        font-size: 16px;
    }
    
    .services-cta .cta-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .cta-primary,
    .cta-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .cta-circle {
        width: 200px;
        height: 200px;
    }
    
    .cta-number {
        font-size: 32px;
    }
    
    .cta-label {
        font-size: 14px;
    }
}
/* Enhanced Mobile Responsiveness */
@media (max-width: 968px) {
    .education-section {
        padding: 60px 0;
    }
    
    .welcome-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .content-left {
        padding-right: 0;
    }
    
    .feature-strip {
        flex-direction: column;
        gap: 30px;
        padding: 30px 20px;
    }
    
    .feature-item {
        max-width: 100%;
    }
    
    .welcome-title {
        font-size: 32px;
    }
    
    .highlight-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .student-image {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 768px) {
    .education-section {
        padding: 50px 0;
    }
    
    .welcome-title {
        font-size: 28px;
    }
    
    .bismillah {
        font-size: 20px;
        text-align: center;
    }
    
    .welcome-description {
        font-size: 15px;
    }
    
    .quran-reader-image img {
        height: 300px;
    }
    
    .arabic-overlay {
        font-size: 36px;
        top: 20px;
        right: 20px;
    }
    
    .feature-item h3 {
        font-size: 16px;
    }
    
    .feature-icon {
        width: 70px;
        height: 70px;
        font-size: 28px;
    }
    
    .learning-highlight {
        padding: 25px 20px;
    }
    
    .banner-content {
        padding: 12px 30px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .education-section {
        padding: 40px 0;
    }
    
    .welcome-title {
        font-size: 24px;
    }
    
    .bismillah {
        font-size: 18px;
    }
    
    .welcome-description {
        font-size: 14px;
        line-height: 1.6;
    }
    
    .feature-strip {
        padding: 25px 15px;
        margin-bottom: 40px;
    }
    
    .feature-item h3 {
        font-size: 15px;
        line-height: 1.3;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
        margin-bottom: 15px;
    }
    
    .quran-reader-image img {
        height: 250px;
    }
    
    .arabic-overlay {
        font-size: 28px;
        top: 15px;
        right: 15px;
    }
    
    .learning-highlight {
        padding: 20px 15px;
    }
    
    .highlight-text h4 {
        font-size: 16px;
    }
    
    .highlight-text p {
        font-size: 13px;
    }
    
    .banner-content {
        padding: 10px 25px;
        font-size: 14px;
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .since-banner {
        margin-top: 40px;
    }
}
.courses-cta {
    background-color: #007bff; /* Change to your theme’s color */
    padding: 60px 40px;
    text-align: center;
    border-radius: 12px;
    margin: 40px auto;
    max-width: 1000px;
    color: #ffffff;
}

.cta-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.cta-content h3 {
    font-size: 2rem;
    margin-bottom: 10px;
    font-weight: 600;
    color: #ffffff;
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #ffffff;
}

.cta-button {
    background-color: #ffffff;
    color: #007bff;
    padding: 12px 28px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-align: center;
}

.cta-button:hover {
    background-color: #f0f0f0;
}

/* ✅ Responsive: adjust spacing for small devices */
@media (max-width: 768px) {
    .courses-cta {
        padding: 40px 20px;
    }

    .cta-content h3 {
        font-size: 1.6rem;
    }

    .cta-content p {
        font-size: 1rem;
    }

    .cta-button {
        width: 100%;
        font-size: 1rem;
        padding: 12px 20px;
    }
}

@media (max-width: 480px) {
    .cta-content h3 {
        font-size: 1.4rem;
    }

    .cta-content p {
        font-size: 0.95rem;
    }

    .cta-button {
        font-size: 0.95rem;
        padding: 10px 16px;
    }
}
