/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-green: #2f855a;
    --primary-green-light: #38a169;
    --primary-green-dark: #276749;
    --accent-gold: #d4af37;
    --accent-teal: #319795;
    --dark-blue: #1a365d;
    --text-dark: #2d3748;
    --text-medium: #4a5568;
    --text-light: #718096;
    --bg-light: #f7fafc;
    --bg-white: #ffffff;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    background: var(--bg-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d5949;
    text-decoration: none;
}

.logo i {
    margin-right: 0.5rem;
    font-size: 2rem;
    color: #2f855a;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #4a5568;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: #2f855a;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #2f855a;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.cta-button {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-light));
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(47, 133, 90, 0.3);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(47, 133, 90, 0.5);
    background: linear-gradient(135deg, var(--primary-green-dark), var(--primary-green));
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #4a5568;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    height: 90vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    color: white;
    overflow: hidden;
    padding-top: 80px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: blur(4px);
    transform: scale(1.1);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.06) 0%, transparent 50%),
        linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.02) 50%, transparent 70%);
    backdrop-filter: blur(1px);
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4rem;
    animation: fadeInUp 1s ease-out;
}

.hero-text {
    flex: 1;
    text-align: left;
}

.hero-form {
    flex: 0 0 450px;
    background: rgba(26, 54, 93, 0.92);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3), 
                0 0 0 1px rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-form h3 {
    color: white;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.quick-contact-form .form-row {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0;
}

.form-group {
    margin-bottom: 0.75rem;
    width: 100%;
}

.form-group.half {
    width: calc(50% - 0.375rem);
}

.form-group.quarter {
    width: 55%;
}

.form-group.three-quarter {
    width: calc(45% - 0.75rem);
}

.country-code {
    font-size: 0.9rem;
    font-weight: 500;
    padding-right: 0.3rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.quick-contact-form input,
.quick-contact-form select,
.quick-contact-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.95);
    font-family: 'Cairo', sans-serif;
    color: var(--text-dark);
}

.quick-contact-form input::placeholder,
.quick-contact-form textarea::placeholder {
    color: #9ca3af;
}

.quick-contact-form input:focus,
.quick-contact-form select:focus,
.quick-contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
    background: white;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
    transform: translateY(-1px);
}

.quick-contact-form textarea {
    resize: vertical;
    min-height: 70px;
    max-height: 100px;
}

.quick-contact-form .submit-button {
    width: 100%;
    padding: 0.9rem;
    background: linear-gradient(135deg, var(--accent-gold) 0%, #c9a52b 100%);
    color: var(--dark-blue);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.quick-contact-form .submit-button:hover {
    background: linear-gradient(135deg, #e5c158 0%, var(--accent-gold) 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.6);
}

.quick-contact-form .submit-button:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.4);
}

@media (max-width: 968px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1rem;
    }

    .hero-text {
        text-align: center;
        margin-bottom: 2rem;
    }

    .hero-form {
        width: 100%;
        max-width: 500px;
    }
}

.hero-content::before {
    content: '📖';
    position: absolute;
    top: -60px;
    left: -60px;
    font-size: 2.5rem;
    opacity: 0.1;
    animation: pulse 5s ease-in-out infinite;
    transform: rotate(-20deg);
}

.hero-content::after {
    content: '🕌';
    position: absolute;
    bottom: -50px;
    right: -50px;
    font-size: 2rem;
    opacity: 0.08;
    animation: modernFloat 8s ease-in-out infinite reverse;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.8;
}

.hero-cta {
    background: white;
    color: var(--primary-green);
    border: none;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.hero-cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--accent-gold);
    opacity: 0.2;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.hero-cta:hover::before {
    width: 300px;
    height: 300px;
}

.hero-cta:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    color: var(--primary-green-dark);
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
}

.hero-pattern::before {
    display: none;
}

.hero-pattern::after {
    display: none;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

@keyframes modernFloat {
    0%, 100% { 
        transform: translateX(0px) translateY(0px) rotate(0deg);
        opacity: 0.1;
    }
    25% { 
        transform: translateX(20px) translateY(-15px) rotate(5deg);
        opacity: 0.15;
    }
    50% { 
        transform: translateX(-10px) translateY(-25px) rotate(-3deg);
        opacity: 0.08;
    }
    75% { 
        transform: translateX(15px) translateY(-10px) rotate(7deg);
        opacity: 0.12;
    }
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 0.1;
    }
    50% { 
        transform: scale(1.2);
        opacity: 0.2;
    }
}

@keyframes rotate {
    0% { transform: rotate(45deg); }
    100% { transform: rotate(405deg); }
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-gold), var(--primary-green));
    border-radius: 2px;
}

.section-header p {
    font-size: 1.1rem;
    color: #718096;
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about {
    padding: 6rem 0;
    background: #f7fafc;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.1rem;
    color: #4a5568;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

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

.stat-item h4 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-green), var(--accent-teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: #718096;
    font-weight: 500;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.about-img {
    width: 100%;
    max-width: 500px;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(47, 133, 90, 0.3);
    transition: transform 0.3s ease;
}

.about-img:hover {
    transform: scale(1.05);
}

.about-image-overlay {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2f855a, #38a169);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(47, 133, 90, 0.4);
}

.about-image-overlay i {
    font-size: 2rem;
    color: white;
}

.image-placeholder {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #2f855a, #38a169);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 60px rgba(47, 133, 90, 0.3);
}

.image-placeholder i {
    font-size: 6rem;
    color: white;
}

/* Courses Section */
.courses {
    padding: 6rem 0;
    background: white;
}

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

.course-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border-color: #2f855a;
}

.course-image {
    width: 100%;
    height: 200px;
    position: relative;
    overflow: hidden;
}

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

.course-card:hover .course-image img {
    transform: scale(1.1);
}

.course-icon-overlay {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2f855a, #38a169);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.course-icon-overlay i {
    font-size: 1.5rem;
    color: white;
}

.course-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.course-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #2f855a, #38a169);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    flex-shrink: 0;
}

.course-icon i {
    font-size: 1.8rem;
    color: white;
}

.course-content h3,
.course-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.course-content p,
.course-card p {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

.course-features {
    list-style: none;
    margin-top: auto;
}

.course-features li {
    color: #718096;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.course-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #2f855a;
    font-weight: bold;
}

.course-details-btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-light));
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(47, 133, 90, 0.3);
}

.course-details-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(47, 133, 90, 0.4);
    background: linear-gradient(135deg, var(--primary-green-dark), var(--primary-green));
}

/* Course Details Section */
.course-details-section {
    padding: 6rem 0;
    background: white;
}

.course-details-section .container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.course-detail-card {
    background: var(--bg-light);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    scroll-margin-top: 100px;
    display: flex;
    flex-direction: column;
}

.course-detail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.course-detail-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary-green);
}

.course-detail-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.course-detail-icon i {
    font-size: 1.1rem;
    color: white;
}

.course-detail-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.course-detail-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-medium);
    margin-bottom: 0.8rem;
}

.course-detail-content p:last-child {
    margin-bottom: 0;
}

.course-subtitle {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 400;
    margin: 0;
}

.course-detail-image {
    width: 100%;
    height: 180px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
}

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

.course-highlights {
    margin-top: 1rem;
    padding: 1.2rem;
    background: white;
    border-radius: 12px;
    border-left: 3px solid var(--primary-green);
}

.course-highlights h4 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
}

.course-highlights ul {
    list-style: none;
    padding: 0;
}

.course-highlights li {
    padding: 0.4rem 0;
    color: var(--text-medium);
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 0.9rem;
}

.course-highlights li i {
    color: var(--primary-green);
    font-size: 1rem;
}

.enrollment-cta {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, var(--bg-light), #e6f4ea);
    border-radius: 20px;
    grid-column: 1 / -1;
    margin-top: 1rem;
}

.enrollment-cta h2 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.enrollment-cta p {
    font-size: 1.2rem;
    color: var(--text-medium);
    margin-bottom: 2rem;
}

/* Why Choose Us Section */
.why-choose {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
}

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

.feature-item {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2f855a, #38a169);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    flex-shrink: 0;
}

.feature-icon i {
    font-size: 1.5rem;
    color: white;
}

.feature-item h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.feature-item p {
    color: #4a5568;
    line-height: 1.6;
    flex: 1;
    display: flex;
    align-items: center;
}

/* Testimonials Section */
.testimonials {
    padding: 6rem 0;
    background: white;
}

.testimonials-carousel {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-slide {
    display: none;
    text-align: center;
    padding: 2rem;
}

.testimonial-slide.active {
    display: block;
    animation: fadeIn 0.5s ease-in;
}

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

.testimonial-content {
    background: #f7fafc;
    padding: 3rem;
    border-radius: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.testimonial-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 1.5rem;
    border: 4px solid #2f855a;
    box-shadow: 0 10px 30px rgba(47, 133, 90, 0.3);
}

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

.testimonial-content::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 4rem;
    color: #2f855a;
    font-family: serif;
}

.stars {
    margin-bottom: 1.5rem;
}

.stars i {
    color: #ffd700;
    margin: 0 2px;
}

.testimonial-content p {
    font-size: 1.1rem;
    color: #4a5568;
    line-height: 1.8;
    margin-bottom: 2rem;
    font-style: italic;
}

.testimonial-author h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.testimonial-author span {
    color: #718096;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    gap: 1rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #cbd5e0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active,
.dot:hover {
    background: #2f855a;
    transform: scale(1.2);
}

/* Pricing Section */
.pricing {
    padding: 6rem 0;
    background: linear-gradient(135deg, #2f855a 0%, #38a169 100%);
    position: relative;
}

.pricing::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="pricing-pattern" patternUnits="userSpaceOnUse" width="30" height="30"><circle cx="15" cy="15" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23pricing-pattern)"/></svg>');
}

.pricing .section-header h2,
.pricing .section-header p {
    color: white;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.pricing-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.pricing-card.popular {
    border: 3px solid #2d7a4e;
    transform: scale(1.05);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #2d7a4e;
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.plan-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1rem;
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 2rem;
}

.currency {
    font-size: 1.5rem;
    color: #718096;
}

.amount {
    font-size: 3rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0.5rem;
}

.period {
    font-size: 1.1rem;
    color: #718096;
}

.plan-features {
    list-style: none;
    margin-bottom: 2rem;
}

.plan-features li {
    padding: 0.8rem 0;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-features i {
    color: #2f855a;
    margin-right: 1rem;
}

.plan-button {
    width: 100%;
    background: linear-gradient(135deg, #2f855a, #38a169);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.plan-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(47, 133, 90, 0.3);
}

/* Contact Hero Section */
.contact-hero {
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    color: white;
    margin-top: 80px;
    overflow: hidden;
}

.contact-hero .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.contact-hero .hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: blur(4px);
    transform: scale(1.1);
}

.contact-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.contact-hero .container {
    position: relative;
    z-index: 3;
}

.contact-hero .section-header h1 {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.contact-hero .section-header p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
}

/* Contact Form Section */
.contact-form-section {
    padding: 6rem 0;
    background: #f7fafc;
}

.contact-form-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-form-card {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.contact-form-card h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2rem;
    text-align: center;
}

.contact-form .form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
    width: 100%;
}

.contact-form .form-group.half {
    width: calc(50% - 0.5rem);
}

.contact-form .form-group.quarter {
    width: 55%;
}

.contact-form .form-group.three-quarter {
    width: calc(45% - 1rem);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    font-family: 'Cairo', sans-serif;
    color: var(--text-dark);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #9ca3af;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(47, 133, 90, 0.1);
    transform: translateY(-2px);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .submit-button {
    width: 100%;
    padding: 1.2rem;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-light) 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(47, 133, 90, 0.4);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.contact-form .submit-button:hover {
    background: linear-gradient(135deg, var(--primary-green-dark) 0%, var(--primary-green) 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(47, 133, 90, 0.5);
}

.contact-info-section {
    display: flex;
    flex-direction: column;
}

.contact-info-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    height: fit-content;
}

@media (max-width: 968px) {
    .contact-form-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-hero .section-header h1 {
        font-size: 2.5rem;
    }
    
    .contact-form-card {
        padding: 2rem;
    }
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: #f7fafc;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-form {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Cairo', sans-serif;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2f855a;
}

.submit-button {
    width: 100%;
    background: linear-gradient(135deg, #2f855a, #38a169);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(47, 133, 90, 0.3);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #2f855a, #38a169);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    color: white;
    font-size: 1.2rem;
}

.contact-details h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.contact-details p {
    color: #4a5568;
    margin-bottom: 1rem;
}

.whatsapp-button {
    display: inline-flex;
    align-items: center;
    background: #25d366;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.whatsapp-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
}

.whatsapp-button i {
    margin-right: 0.5rem;
}

/* Footer */
.footer {
    background: #1a202c;
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #e2e8f0;
}

.footer-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-logo i {
    margin-right: 0.5rem;
    font-size: 2rem;
    color: #2f855a;
}

.footer-section p {
    color: #a0aec0;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: #2d3748;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a0aec0;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: #2f855a;
    color: white;
    transform: translateY(-2px);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: #a0aec0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #2f855a;
}

.footer-bottom {
    border-top: 1px solid #2d3748;
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: #a0aec0;
}

/* Scroll Animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 1rem 0;
    }
    
    .cta-button {
        display: none;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .stats {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .courses-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .image-placeholder {
        width: 250px;
        height: 250px;
    }
    
    .image-placeholder i {
        font-size: 4rem;
    }
    
    .course-card {
        padding: 1.5rem;
    }
    
    .feature-item {
        padding: 1.5rem;
    }
    
    .course-details-section .container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .stats {
        grid-template-columns: 1fr;
    }
    
    .pricing-card.popular {
        transform: none;
    }
    
    .container {
        padding: 0 15px;
    }
}

/* Blog Section */
.blog {
    padding: 6rem 0;
    background: white;
}

.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.blog-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border-color: #2f855a;
}

.blog-image {
    height: 200px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

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

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

.blog-icon-overlay {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.blog-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.blog-date {
    color: #718096;
}

.blog-category {
    background: #2f855a;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.8rem;
}

.blog-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.8rem;
    line-height: 1.3;
    flex-shrink: 0;
}

.blog-card p {
    color: #4a5568;
    line-height: 1.5;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    display: inline-flex;
    align-items: center;
    color: #2f855a;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: auto;
    font-size: 0.9rem;
}

.read-more:hover {
    color: #38a169;
    transform: translateX(5px);
}

.read-more i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.read-more:hover i {
    transform: translateX(3px);
}

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

.view-all-button {
    background: linear-gradient(135deg, #2f855a, #38a169);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(47, 133, 90, 0.3);
}

.view-all-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(47, 133, 90, 0.4);
}

/* Courses Hero Section */
.courses-hero {
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    color: white;
    overflow: hidden;
    margin-top: 80px;
}

.courses-hero .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.courses-hero .hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: blur(4px);
    transform: scale(1.1);
}

.courses-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.courses-hero .hero-content {
    position: relative;
    z-index: 3;
}

/* Blog Page Specific Styles */
.blog-hero {
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    color: white;
    overflow: hidden;
    margin-top: 80px;
}

.blog-hero .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.blog-hero .hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: blur(4px);
    transform: scale(1.1);
}

.blog-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.blog-hero .hero-content {
    position: relative;
    z-index: 3;
}

.blog-page {
    padding: 6rem 0;
    background: #f7fafc;
}

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

/* Active navigation link style */
.nav-menu a.active {
    color: #2f855a;
}

.nav-menu a.active::after {
    width: 100%;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 2% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    background: linear-gradient(135deg, #2f855a, #38a169);
    color: white;
    padding: 2rem;
    border-radius: 20px 20px 0 0;
    position: relative;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 600;
    padding-right: 50px;
}

.close {
    position: absolute;
    top: 20px;
    right: 25px;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.modal-body {
    padding: 2rem;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e2e8f0;
}

.article-image {
    text-align: center;
    margin: 2rem 0;
    padding: 3rem;
    background: linear-gradient(135deg, #f7fafc, #edf2f7);
    border-radius: 15px;
}

.article-image i {
    font-size: 4rem;
    color: #2f855a;
}

.modal-body h3 {
    color: #2d3748;
    font-size: 1.4rem;
    font-weight: 600;
    margin: 2rem 0 1rem 0;
    border-left: 4px solid #2f855a;
    padding-left: 1rem;
}

.modal-body p {
    color: #4a5568;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.modal-body ul {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.modal-body li {
    color: #4a5568;
    line-height: 1.8;
    margin-bottom: 0.8rem;
}

.modal-body strong {
    color: #2d3748;
    font-weight: 600;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 5% auto;
        max-height: 85vh;
    }
    
    .modal-header {
        padding: 1.5rem;
    }
    
    .modal-header h2 {
        font-size: 1.4rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .blog-hero {
        height: 50vh;
    }
    
    .blog-hero .hero-title {
        font-size: 2rem;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .blog-card h3 {
        font-size: 1.1rem;
    }
    
    .blog-card p {
        font-size: 0.9rem;
        -webkit-line-clamp: 2;
    }
    
    .blog-image {
        height: 120px;
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .blog-grid {
        gap: 1rem;
    }
    
    .blog-content {
        padding: 1rem;
    }
    
    .blog-card h3 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .blog-card p {
        font-size: 0.85rem;
        margin-bottom: 0.8rem;
    }
    
    .blog-image {
        height: 100px;
        font-size: 1.8rem;
    }
}

@media (min-width: 1200px) {
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }
    
    .courses-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }
}

/* Islamic Decorative Elements */
.islamic-decoration {
    position: absolute;
    color: rgba(255, 255, 255, 0.15);
    font-size: 2rem;
    z-index: 2;
}

.decoration-1 {
    top: 20%;
    left: 8%;
    animation: pulse 4s ease-in-out infinite;
    transform: rotate(-15deg);
}

.decoration-2 {
    top: 30%;
    right: 12%;
    animation: modernFloat 6s ease-in-out infinite;
    transform: rotate(10deg);
}

.decoration-3 {
    bottom: 25%;
    left: 15%;
    animation: rotate 15s linear infinite;
    font-size: 1.8rem;
}

.decoration-4 {
    bottom: 35%;
    right: 8%;
    animation: pulse 5s ease-in-out infinite reverse;
    transform: rotate(20deg);
    font-size: 1.5rem;
}

/* Enhanced animations for Islamic elements */
@keyframes islamicFloat {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg) scale(1);
        opacity: 0.08;
    }
    25% { 
        transform: translateY(-10px) rotate(5deg) scale(1.1);
        opacity: 0.12;
    }
    50% { 
        transform: translateY(-15px) rotate(-3deg) scale(1.05);
        opacity: 0.06;
    }
    75% { 
        transform: translateY(-5px) rotate(8deg) scale(1.08);
        opacity: 0.1;
    }
} 