/* Main Styles for Alfath Academy Website */

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #8bc34a;
    --secondary-color: #2c7873;
    --dark-color: #333;
    --light-color: #f4f4f4;
    --success-color: #5cb85c;
    --error-color: #d9534f;
}

body {
    font-family: 'Alexandria', sans-serif;
    line-height: 1.6;
    background-color: #fff;
    color: var(--dark-color);
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: var(--dark-color);
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: var(--secondary-color);
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
}

.primary-btn {
    background-color: var(--primary-color);
    color: white;
}

.primary-btn:hover {
    background-color: #7ab33a;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.secondary-btn {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.secondary-btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Header */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    animation: fadeIn 1s ease-in-out;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-right: 20px;
}

nav ul li a {
    font-weight: 500;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

.language-switch a {
    font-size: 1.2rem;
    color: var(--secondary-color);
}

.language-switch a:hover {
    color: var(--primary-color);
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Mobile Navigation Styles */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background-color: white;
    z-index: 200;
    padding: 20px;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease-in-out;
    overflow-y: auto;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-close {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--secondary-color);
}

.mobile-nav ul {
    display: block;
    margin-top: 60px;
}

.mobile-nav ul li {
    margin-bottom: 20px;
}

.mobile-nav ul li a {
    display: block;
    padding: 10px 0;
    font-size: 1.2rem;
    border-bottom: 1px solid #eee;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 150;
    display: none;
}

.overlay.active {
    display: block;
}

/* Hero Section */
.hero {
    padding: 80px 0;
    background-color: #f9f9f9;
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-text {
    flex: 1;
    animation: slideInRight 1s ease-in-out;
}

.hero-text h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #666;
}

.hero-text .sub-text {
    font-size: 1rem;
    margin-bottom: 25px;
}

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

.hero-image {
    flex: 1;
    text-align: center;
    animation: slideInLeft 1s ease-in-out;
}

.hero-image img {
    max-width: 90%;
    border-radius: 10px;
}

/* Features Section */
.features {
    padding: 80px 0;
    background-color: white;
}

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

.feature-card {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    animation: fadeIn 1s ease-in-out;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.feature-card p {
    margin-bottom: 20px;
    color: #666;
}

.learn-more {
    color: var(--primary-color);
    font-weight: 500;
    display: inline-block;
    position: relative;
}

.learn-more::after {
    content: '→';
    margin-right: 5px;
    transition: transform 0.3s ease;
}

.learn-more:hover::after {
    transform: translateX(5px);
}

/* Teachers Section */
.teachers {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.section-subtitle {
    text-align: center;
    margin-bottom: 40px;
    color: #666;
    font-size: 18px;
}

.teachers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.teacher-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.teacher-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.teacher-image {
    height: 250px;
    overflow: hidden;
}

.teacher-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.teacher-card:hover .teacher-image img {
    transform: scale(1.05);
}

.teacher-info {
    padding: 20px;
}

.teacher-info h3 {
    margin: 0 0 5px;
    font-size: 20px;
    color: #333;
}

.teacher-title {
    color: #4CAF50;
    font-weight: 500;
    margin-bottom: 10px;
}

.teacher-bio {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.teacher-social {
    display: flex;
    gap: 10px;
}

.teacher-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #f5f5f5;
    color: #555;
    transition: all 0.3s ease;
}

.teacher-social a:hover {
    background-color: #4CAF50;
    color: #fff;
}

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

/* Blog Section */
.blog {
    padding: 80px 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.blog-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-date {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #4CAF50;
    color: #fff;
    border-radius: 5px;
    padding: 5px 10px;
    text-align: center;
    min-width: 60px;
}

.blog-date .day {
    display: block;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}

.blog-date .month {
    display: block;
    font-size: 14px;
    margin-top: 2px;
}

.blog-content {
    padding: 20px;
}

.blog-category {
    display: inline-block;
    background-color: #f5f5f5;
    color: #4CAF50;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    margin-bottom: 10px;
}

.blog-content h3 {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.4;
}

.blog-content h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-content h3 a:hover {
    color: #4CAF50;
}

.blog-content p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    color: #888;
    font-size: 13px;
    margin-bottom: 15px;
}

.blog-meta span {
    display: flex;
    align-items: center;
}

.blog-meta i {
    margin-left: 5px;
}

.blog-meta a {
    color: #666;
    text-decoration: none;
}

.blog-meta a:hover {
    color: #4CAF50;
}

.read-more {
    display: inline-block;
    color: #4CAF50;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #388E3C;
}

/* FAQ Section */
.faq {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: #fff;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #f5f5f5;
}

.faq-question h3 {
    margin: 0;
    font-size: 17px;
    color: #333;
    font-weight: 600;
}

.faq-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #f0f0f0;
    color: #555;
    transition: all 0.3s ease;
}

.faq-item.active .faq-toggle {
    background-color: #4CAF50;
    color: #fff;
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 20px 20px;
    max-height: 1000px;
}

.faq-answer p {
    margin: 0;
    color: #666;
    line-height: 1.6;
}

/* Call to Action Section */
.cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    color: #fff;
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.outline-btn {
    background-color: transparent;
    border: 2px solid #fff;
    color: #fff;
}

.outline-btn:hover {
    background-color: #fff;
    color: #4CAF50;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .teachers-grid, .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .teachers-grid, .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .blog-image {
        height: 200px;
    }
}

/* JavaScript for FAQ Toggle */
/* Add this to your script.js file */
/*
document.addEventListener('DOMContentLoaded', function() {
    const faqItems = document.querySelectorAll('.faq-item');
    
    faqItems.forEach(item => {
        const question = item.querySelector('.faq-question');
        
        question.addEventListener('click', () => {
            // Close all other items
            faqItems.forEach(otherItem => {
                if (otherItem !== item && otherItem.classList.contains('active')) {
                    otherItem.classList.remove('active');
                }
            });
            
            // Toggle current item
            item.classList.toggle('active');
        });
    });
});
*/

.overlay.active {
    display: block;
}

/* Hero Section */
.hero {
    padding: 80px 0;
    background-color: #f9f9f9;
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-text {
    flex: 1;
    animation: slideInRight 1s ease-in-out;
}

.hero-text h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #666;
}

.hero-text .sub-text {
    font-size: 1rem;
    margin-bottom: 25px;
}

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

.hero-image {
    flex: 1;
    text-align: center;
    animation: slideInLeft 1s ease-in-out;
}

.hero-image img {
    max-width: 90%;
    border-radius: 10px;
}

/* Features Section */
.features {
    padding: 80px 0;
    background-color: white;
}

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

.feature-card {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    animation: fadeIn 1s ease-in-out;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.feature-card p {
    margin-bottom: 20px;
    color: #666;
}

.learn-more {
    color: var(--primary-color);
    font-weight: 500;
    display: inline-block;
    position: relative;
}

.learn-more::after {
    content: '→';
    margin-right: 5px;
    transition: transform 0.3s ease;
}

.learn-more:hover::after {
    transform: translateX(5px);
}

/* Teachers Section */
.teachers {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.section-subtitle {
    text-align: center;
    margin-bottom: 40px;
    color: #666;
    font-size: 18px;
}

.teachers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.teacher-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.teacher-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.teacher-image {
    height: 309px;
    overflow: hidden;
}

.teacher-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.teacher-card:hover .teacher-image img {
    transform: scale(1.05);
}

.teacher-info {
    padding: 20px;
}

.teacher-info h3 {
    margin: 0 0 5px;
    font-size: 20px;
    color: #333;
}

.teacher-title {
    color: #4CAF50;
    font-weight: 500;
    margin-bottom: 10px;
}

.teacher-bio {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.teacher-social {
    display: flex;
    gap: 10px;
}

.teacher-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #f5f5f5;
    color: #555;
    transition: all 0.3s ease;
}

.teacher-social a:hover {
    background-color: #4CAF50;
    color: #fff;
}

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

/* Blog Section */
.blog {
    padding: 80px 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.blog-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-date {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #4CAF50;
    color: #fff;
    border-radius: 5px;
    padding: 5px 10px;
    text-align: center;
    min-width: 60px;
}

.blog-date .day {
    display: block;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}

.blog-date .month {
    display: block;
    font-size: 14px;
    margin-top: 2px;
}

.blog-content {
    padding: 20px;
}

.blog-category {
    display: inline-block;
    background-color: #f5f5f5;
    color: #4CAF50;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    margin-bottom: 10px;
}

.blog-content h3 {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.4;
}

.blog-content h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-content h3 a:hover {
    color: #4CAF50;
}

.blog-content p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    color: #888;
    font-size: 13px;
    margin-bottom: 15px;
}

.blog-meta span {
    display: flex;
    align-items: center;
}

.blog-meta i {
    margin-left: 5px;
}

.blog-meta a {
    color: #666;
    text-decoration: none;
}

.blog-meta a:hover {
    color: #4CAF50;
}

.read-more {
    display: inline-block;
    color: #4CAF50;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #388E3C;
}

/* FAQ Section */
.faq {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: #fff;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #f5f5f5;
}

.faq-question h3 {
    margin: 0;
    font-size: 17px;
    color: #333;
    font-weight: 600;
}

.faq-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #f0f0f0;
    color: #555;
    transition: all 0.3s ease;
}

.faq-item.active .faq-toggle {
    background-color: #4CAF50;
    color: #fff;
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 20px 20px;
    max-height: 1000px;
}

.faq-answer p {
    margin: 0;
    color: #666;
    line-height: 1.6;
}

/* Call to Action Section */
.cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    color: #fff;
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.outline-btn {
    background-color: transparent;
    border: 2px solid #fff;
    color: #fff;
}

.outline-btn:hover {
    background-color: #fff;
    color: #4CAF50;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .teachers-grid, .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .teachers-grid, .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .blog-image {
        height: 200px;
    }
}

/* JavaScript for FAQ Toggle */
/* Add this to your script.js file */
/*
document.addEventListener('DOMContentLoaded', function() {
    const faqItems = document.querySelectorAll('.faq-item');
    
    faqItems.forEach(item => {
        const question = item.querySelector('.faq-question');
        
        question.addEventListener('click', () => {
            // Close all other items
            faqItems.forEach(otherItem => {
                if (otherItem !== item && otherItem.classList.contains('active')) {
                    otherItem.classList.remove('active');
                }
            });
            
            // Toggle current item
            item.classList.toggle('active');
        });
    });
});
*/

.overlay.active {
    display: block;
}

/* Hero Section */
.hero {
    padding: 80px 0;
    background-color: #f9f9f9;
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-text {
    flex: 1;
    animation: slideInRight 1s ease-in-out;
}

.hero-text h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #666;
}

.hero-text .sub-text {
    font-size: 1rem;
    margin-bottom: 25px;
}

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

.hero-image {
    flex: 1;
    text-align: center;
    animation: slideInLeft 1s ease-in-out;
}

.hero-image img {
    max-width: 90%;
    border-radius: 10px;
}

/* Features Section */
.features {
    padding: 80px 0;
    background-color: white;
}

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

.feature-card {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    animation: fadeIn 1s ease-in-out;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.feature-card p {
    margin-bottom: 20px;
    color: #666;
}

.learn-more {
    color: var(--primary-color);
    font-weight: 500;
    display: inline-block;
    position: relative;
}

.learn-more::after {
    content: '→';
    margin-right: 5px;
    transition: transform 0.3s ease;
}

.learn-more:hover::after {
    transform: translateX(5px);
}

/* Testimonial Section */
.testimonial {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.testimonial-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.testimonial-image {
    flex: 1;
    text-align: center;
    animation: fadeIn 1s ease-in-out;
}

.testimonial-image img {
    max-width: 80%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.testimonial-text {
    flex: 1;
    animation: slideInLeft 1s ease-in-out;
}

.testimonial-text h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.testimonial-text p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.8;
    color: #666;
    font-style: italic;
}

/* Stats Section */
.stats {
    padding: 80px 0;
    background-color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-card {
    padding: 30px;
    border-radius: 10px;
    background-color: #f9f9f9;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    animation: fadeIn 1s ease-in-out;
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.stat-card h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-card p {
    font-size: 1.1rem;
    color: #666;
}

/* Programs Section */
.programs {
    padding: 80px 0;
    background-color: #f9f9f9;
}

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

.program-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    animation: fadeIn 1s ease-in-out;
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.program-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    z-index: 1;
}

.program-image img {
    width: 100%;
    height: 100%;
}

.program-content {
    padding: 20px;
}

.program-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.program-content p {
    margin-bottom: 15px;
    color: #666;
}

.program-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    color: #888;
    font-size: 0.9rem;
}

.program-meta span i {
    margin-left: 5px;
    color: var(--primary-color);
}

/* Newsletter Section */
.newsletter {
    padding: 60px 0;
    background-color: var(--primary-color);
    color: white;
}

.newsletter-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    animation: fadeIn 1s ease-in-out;
}

.newsletter-content h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.newsletter-content p {
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.newsletter-form {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.newsletter-form input {
    padding: 12px 20px;
    border-radius: 30px;
    border: none;
    flex: 1;
    max-width: 400px;
    font-family: 'Tajawal', sans-serif;
}

.newsletter-form button {
    padding: 12px 25px;
}

/* Footer */
footer {
    background-color: #f9f9f9;
    padding-top: 80px;
}

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

.footer-column h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-column p {
    margin-bottom: 20px;
    color: #666;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    transform: translateY(-5px);
    background-color: var(--secondary-color);
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a:hover {
    color: var(--primary-color);
    padding-right: 5px;
}

.contact-info li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: #666;
}

.contact-info li i {
    margin-left: 10px;
    color: var(--primary-color);
}

.footer-bottom {
    background-color: #eee;
    padding: 20px 0;
    margin-top: 60px;
    text-align: center;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(-50px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(50px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Registration Form Styles */
.registration {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.registration-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
}

.registration-image {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.registration-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.registration-benefits {
    background-color: #fff;
    border-radius: 10px;
    padding: 25px;
    margin-top: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.registration-benefits h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.3rem;
    position: relative;
    padding-bottom: 10px;
}

.registration-benefits h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.registration-benefits ul {
    list-style: none;
    padding: 0;
}

.registration-benefits li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.registration-benefits i {
    color: var(--primary-color);
    margin-left: 10px;
    font-size: 1.1rem;
}

.registration-form-container {
    flex: 1;
    min-width: 300px;
}

.registration-form {
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

.registration-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.registration-form input[type="text"],
.registration-form input[type="email"],
.registration-form input[type="tel"],
.registration-form select,
.registration-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Alexandria', sans-serif;
    font-size: 0.95rem;
    transition: border-color 0.3s;
}

.registration-form input:focus,
.registration-form select:focus,
.registration-form textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.radio-group {
    display: flex;
    gap: 20px;
}

.radio-option {
    display: flex;
    align-items: center;
}

.radio-option input[type="radio"] {
    margin-left: 8px;
}

.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-group input[type="checkbox"] {
    margin-left: 10px;
}

.registration-form button {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    margin-top: 10px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-content,
    .testimonial-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text,
    .testimonial-text {
        margin-bottom: 40px;
    }

    .cta-buttons {
        justify-content: center;
    }

    .feature-card,
    .stat-card,
    .program-card {
        transform: none !important;
    }
}

@media (max-width: 768px) {
    nav ul {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
        font-size: 1.8rem;
        color: var(--primary-color);
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
        max-width: 100%;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}

@media (max-width: 576px) {
    .hero-text h1 {
        font-size: 1.8rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .btn {
        width: 100%;
    }

    .stat-card h3 {
        font-size: 2rem;
    }

    .footer-column h3 {
        font-size: 1.2rem;
    }
}

/* WhatsApp Fixed Icon */
.whatsapp-icon {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-icon:hover {
    background-color: #128C7E;
    transform: scale(1.1);
}

html[lang="en"] .whatsapp-icon {
    right: 40px;
    left: auto;
}

html[lang="ar"] .whatsapp-icon {
    left: 40px;
    right: auto;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.whatsapp-icon {
    animation: pulse 2s infinite;
}
/* Pricing Section */
.pricing {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.pricing-card {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.package-badge {
    position: absolute;
    top: 20px;
    right: -35px;
    background: var(--primary-color);
    color: #fff;
    padding: 5px 40px;
    font-size: 14px;
    transform: rotate(45deg);
    font-weight: 500;
}

.pricing-card.popular {
    border: 2px solid var(--primary-color);
    transform: scale(1.02);
}

.pricing-card.popular .package-badge {
    background: #ffd700;
    color: #000;
}

.package-badge.premium-badge { background: #9b59b6; }
.package-badge.family-badge { background: #3498db; }
.package-badge.intensive-badge { background: #e74c3c; }
.package-badge.ijazah-badge { background: #2ecc71; }
.package-badge.children-badge { background: #f1c40f; }
.package-badge.hafiz-badge { background: #1abc9c; }

.package-name {
    text-align: center;
    margin-bottom: 25px;
    padding-top: 15px;
}

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

.package-price {
    font-size: 48px;
    font-weight: 700;
    color: #333;
    margin: 20px 0;
}

.package-price .currency {
    font-size: 24px;
    vertical-align: super;
    margin-right: 5px;
}

.package-price .period {
    font-size: 16px;
    color: #666;
    font-weight: normal;
}

.package-features {
    list-style: none;
    padding: 0;
    margin: 25px 0;
}

.package-features li {
    margin: 15px 0;
    color: #666;
    display: flex;
    align-items: center;
}

.package-features li i {
    color: var(--primary-color);
    margin-right: 10px;
}

.pricing-card .btn {
    width: 100%;
    margin-top: 20px;
    position: relative;
    z-index: 2;
}

.pricing-card .btn:hover {
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .pricing-card {
        padding: 20px;
    }
    
    .pricing-card.popular {
        transform: scale(1);
    }
    
    .package-price {
        font-size: 36px;
    }
}

/* Pricing Card Animations */
.pricing-card {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    position: relative;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 100%);
    transform: translateY(-100%);
    transition: transform 0.5s ease;
    z-index: 1;
    pointer-events: none;
}

.pricing-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.2);
}

.pricing-card:hover::before {
    transform: translateY(0);
}

.pricing-card:hover .package-badge {
    transform: rotate(45deg) scale(1.1);
}

.pricing-card:hover .package-name h3 {
    transform: translateY(-5px);
    color: var(--primary-color);
}

.pricing-card:hover .package-price {
    transform: scale(1.1);
    color: var(--secondary-color);
}

.pricing-card:hover .package-features li {
    transform: translateX(5px);
}

.pricing-card.popular:hover {
    transform: scale(1.03) translateY(-10px) rotateX(5deg);
}

.package-name h3,
.package-price,
.package-features li,
.package-badge {
    transition: all 0.3s ease;
}

.pricing-card:hover .package-features li i {
    transform: scale(1.2);
}

.pricing-card .btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    pointer-events: none;
}

.pricing-card .btn:hover::before {
    width: 300px;
    height: 300px;
}

/* Add shimmer effect to popular badge */
.pricing-card.popular .package-badge {
    background: linear-gradient(90deg, #ffd700, #ffeb3b, #ffd700);
    background-size: 200% 100%;
    animation: shimmer 2s infinite linear;
}

@keyframes shimmer {
    0% {
        background-position: 100% 0;
    }
    100% {
        background-position: -100% 0;
    }
}

@media (max-width: 768px) {
    .pricing-card:hover {
        transform: translateY(-5px) rotateX(0deg);
    }
}

/* Videos Section */
.videos {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.video-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.video-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.video-thumbnail {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(139, 195, 74, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.play-button i {
    color: #fff;
    font-size: 20px;
    margin-left: 3px; /* Adjust for play icon centering */
}

.video-card:hover .play-button {
    background: rgba(139, 195, 74, 1);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-info {
    padding: 1.5rem;
}

.video-info h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
    line-height: 1.4;
}

.video-info p {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.video-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: #888;
}

.video-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.video-meta i {
    color: var(--primary-color);
}

/* Video Modal */
.video-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.video-modal-content {
    position: relative;
    margin: 2% auto;
    width: 90%;
    max-width: 900px;
    height: 80vh;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.video-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    transition: color 0.3s ease;
}

.video-close:hover {
    color: var(--primary-color);
}

.video-exit-btn {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 10002;
}

.video-exit-btn:hover {
    background: rgba(139, 195, 74, 0.9);
    transform: translateX(-50%) scale(1.05);
    border-color: var(--primary-color);
}

.video-exit-btn i {
    font-size: 16px;
}

#videoFrame {
    width: 100%;
    height: 100%;
    border: none;
}

/* Videos responsive */
@media (max-width: 768px) {
    .videos-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .video-modal-content {
        width: 95%;
        height: 60vh;
        margin: 5% auto;
    }
    
    .video-close {
        top: -35px;
        font-size: 25px;
    }
    
    .video-exit-btn {
        bottom: 15px;
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .video-exit-btn span {
        display: none;
    }
    
    .video-exit-btn i {
        font-size: 18px;
    }
}