:root {
    --primary-blue: #7eb6ea;
    --primary-purple: #c6699d;
    --primary-pink: #e47686;
    --gradient-start: #7eb6ea;
    --gradient-mid: #c067a0;
    --gradient-end: #f57d7a;
    --black: #0a0a0a;
    --white: #fff;
    --silver-gray: #c0c0c0;
    --light-gray: #f5f5f5;
    --dark-gray: #2a2a2a;
    --green: #28a745;
    --red: #dc3545;
    --orange: #fd7e14;
    
    /* Legacy compatibility for main page */
    --deep-green: #c6699d;
    --dark-green: #7eb6ea;
    --accent-green: #e47686;
}

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

body {
    font-family: 'Poppins', 'Cairo', sans-serif;
    color: var(--black);
    line-height: 1.6;
    overflow-x: hidden;
}

html[lang="ar"] body {
    font-family: 'Cairo', sans-serif;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 5%;
    box-shadow: 0 2px 25px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo img {
    height: 45px;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 0.5rem;
    background: var(--light-gray);
    padding: 0.3rem;
    border-radius: 25px;
}

.lang-btn {
    padding: 0.4rem 1rem;
    border: none;
    background: transparent;
    color: var(--dark-gray);
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.lang-btn.active {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: var(--white);
}

.lang-btn:hover:not(.active) {
    background: rgba(126, 182, 234, 0.2);
}

.back-btn {
    color: var(--black);
    text-decoration: none;
    padding: 0.6rem 1.5rem;
    background: var(--light-gray);
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s;
    white-space: nowrap;
}

.back-btn:hover {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: var(--white);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-mid), var(--gradient-end));
    color: var(--white);
    text-align: center;
    padding: 10rem 5% 3rem;
    position: relative;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.urgent-banner {
    background: var(--orange);
    color: var(--white);
    padding: 0.8rem 2rem;
    display: inline-block;
    border-radius: 50px;
    margin: 1rem 0;
    font-weight: 600;
    animation: pulse 2s infinite;
}

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

/* Sections */
section {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 5%;
}

/* Stats Bar */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin: 3rem 0;
    text-align: center;
}

.stat-item {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--dark-gray);
    font-size: 0.95rem;
}

/* Two Column Layout */
.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    margin: 4rem 0;
}

/* Mission Section */
.mission-section {
    text-align: center;
    max-width: 900px;
    margin: 4rem auto;
    padding: 3rem;
    background: linear-gradient(135deg, rgba(126, 182, 234, 0.1), rgba(245, 125, 122, 0.1));
    border-radius: 20px;
}

.mission-section h2 {
    margin-bottom: 1.5rem;
}

.mission-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--dark-gray);
}

/* Teacher Card */
.teacher-card {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s;
}

.teacher-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

.teacher-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin: 0 auto 2rem;
    overflow: hidden;
    border: 5px solid var(--primary-purple);
}

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

.teacher-name {
    font-size: 1.8rem;
    color: var(--primary-purple);
    margin-bottom: 0.5rem;
}

.teacher-title {
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.teacher-bio {
    color: var(--dark-gray);
    line-height: 1.8;
    margin-bottom: 2rem;
    text-align: left;
}

.social-proof {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--orange);
    font-weight: 600;
    margin-top: 1rem;
}

/* Headings */
h2 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 2rem;
    font-weight: 700;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 3rem 0;
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
}

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

.feature-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
    color: var(--primary-purple);
}

.feature-icon svg {
    width: 100%;
    height: 100%;
}

.feature-card h3 {
    color: var(--primary-purple);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* Curriculum */
.curriculum {
    background: linear-gradient(135deg, rgba(126, 182, 234, 0.05), rgba(245, 125, 122, 0.05));
    padding: 3rem;
    border-radius: 20px;
    margin: 3rem 0;
    border: 1px solid rgba(126, 182, 234, 0.2);
}

.curriculum-item {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    border-left: 4px solid transparent;
}

.curriculum-item:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.12);
    border-left-color: var(--primary-purple);
}

.curriculum-item:last-child {
    margin-bottom: 0;
}

.module-number {
    min-width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.4rem;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(126, 182, 234, 0.4);
}

.module-content h4 {
    color: var(--primary-purple);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.module-content p {
    color: var(--dark-gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Live Notification */
.live-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--white);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    max-width: 350px;
    z-index: 999;
    animation: slideIn 0.5s ease;
}

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

.notification-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.notification-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-purple);
    flex-shrink: 0;
}

.notification-text {
    flex: 1;
}

.notification-name {
    font-weight: 600;
    color: var(--black);
}

.notification-action {
    color: var(--green);
    font-size: 0.9rem;
}

.notification-time {
    color: var(--silver-gray);
    font-size: 0.85rem;
}

/* CTA Box */
.cta-box {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    padding: 4rem;
    border-radius: 20px;
    text-align: center;
    margin: 4rem 0;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="white" opacity="0.1"/></svg>');
    opacity: 0.3;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-box h2 {
    color: var(--white);
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
}

.cta-box .price {
    font-size: 3rem;
    font-weight: 800;
    margin: 1rem 0;
}

.cta-box .price-note {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.cta-primary {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: var(--white);
    color: var(--primary-purple);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Benefits List */
.benefits-list {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(126, 182, 234, 0.2);
}

.benefits-list ul {
    list-style: none;
}

.benefits-list li {
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--light-gray);
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.05rem;
    transition: all 0.3s;
}

.benefits-list li:hover {
    padding-left: 1rem;
    background: rgba(126, 182, 234, 0.05);
    border-radius: 8px;
}

.benefits-list li:last-child {
    border-bottom: none;
}

.benefits-list li::before {
    content: '✓';
    color: var(--green);
    font-weight: bold;
    font-size: 1.5rem;
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    background: rgba(40, 167, 69, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Form Styles */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-gray);
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--light-gray);
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-purple);
}

.form-submit-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.form-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* Footer */
footer {
    background: #1a1a1a;
    color: var(--white);
    padding: 3rem 5%;
    margin-top: 6rem;
    width: 100%;
    max-width: 100%;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    text-align: left;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    color: var(--white);
    font-weight: 700;
}

.footer-section p {
    line-height: 1.8;
    opacity: 0.9;
    margin-bottom: 1rem;
    color: var(--silver-gray);
}

.footer-section img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

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

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

.footer-section ul li a {
    color: var(--silver-gray);
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.3s;
}

.footer-section ul li a:hover {
    opacity: 1;
    padding-left: 5px;
    color: var(--white);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s;
}

.social-links a:hover {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    transform: translateY(-3px);
}

.newsletter-form input {
    width: 100%;
    padding: 0.8rem;
    border: none;
    border-radius: 5px;
    margin-top: 1rem;
}

.newsletter-form button {
    width: 100%;
    padding: 0.8rem;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    border: none;
    border-radius: 5px;
    margin-top: 0.5rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.newsletter-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--dark-gray);
    opacity: 0.8;
    color: var(--silver-gray);
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 999;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.scroll-top.show,
.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-container {
        justify-content: center;
    }
    
    .logo img {
        height: 35px;
    }
    
    .language-switcher {
        order: 3;
        width: 100%;
        justify-content: center;
    }
    
    .back-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .hero {
        padding: 8rem 5% 3rem;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .urgent-banner {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-item {
        padding: 1.5rem 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
    
    .two-column {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .teacher-card {
        padding: 2rem;
    }
    
    .teacher-img {
        width: 150px;
        height: 150px;
    }
    
    .teacher-name {
        font-size: 1.5rem;
    }
    
    .teacher-title {
        font-size: 1rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .curriculum {
        padding: 2rem 1.5rem;
    }
    
    .curriculum-item {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem 1rem;
    }
    
    .curriculum-item:hover {
        transform: translateX(0);
        transform: translateY(-5px);
    }
    
    .module-content h4 {
        font-size: 1rem;
    }
    
    .module-content p {
        font-size: 0.9rem;
    }
    
    .cta-box {
        padding: 2rem 1.5rem;
    }
    
    .cta-box .price {
        font-size: 2rem;
    }
    
    .cta-box .price-note {
        font-size: 0.9rem;
    }
    
    .cta-primary {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .benefits-list {
        padding: 2rem 1.5rem;
    }
    
    .benefits-list li {
        font-size: 0.9rem;
        padding: 0.8rem 0;
    }
    
    .form-container {
        padding: 2rem 1.5rem;
    }
    
    .live-notification {
        bottom: 20px;
        right: 20px;
        left: 20px;
        max-width: none;
        padding: 1rem;
    }
    
    .notification-avatar {
        width: 40px;
        height: 40px;
    }
    
    .notification-name {
        font-size: 0.9rem;
    }
    
    .notification-action {
        font-size: 0.85rem;
    }
    
    section {
        margin: 2rem auto;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-section ul {
        text-align: center;
    }
    
    .scroll-top {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
}

/* RTL Support for Arabic */
html[dir="rtl"] {
    direction: rtl;
}

html[dir="rtl"] .back-btn::before {
    content: '← ';
}

html[dir="rtl"] .curriculum-item {
    flex-direction: row-reverse;
}

html[dir="rtl"] .curriculum-item:hover {
    transform: translateX(-10px);
}

html[dir="rtl"] .benefits-list li {
    flex-direction: row-reverse;
}

html[dir="rtl"] .notification-header {
    flex-direction: row-reverse;
}

html[dir="rtl"] .footer-section ul li a:hover {
    padding-left: 0;
    padding-right: 5px;
}

html[lang="ar"] .back-btn::first-letter {
    display: none;
}

html[lang="ar"] .back-btn::before {
    content: '← ';
}

@media (max-width: 768px) {
    html[dir="rtl"] .curriculum-item:hover {
        transform: translateX(0);
        transform: translateY(-5px);
    }
}
