/* ===================================
   Elite English Brand Guidelines CSS
   Primary Colors: Navy #0D253E, Gold #F1D097, White #FBFBFB
   Fonts: Poppins (English), Cairo (Arabic)
   =================================== */

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

:root {
    /* Light Theme (Default) */
    --navy: #0D253E;
    --gold: #F1D097;
    --white: #FBFBFB;
    --light-gold: #F5E6C8;
    --dark-navy: #081829;
    --text-color: #0D253E;
    --bg-color: #FBFBFB;
    --card-bg: #FFFFFF;
    --section-bg: #FBFBFB;
    --border-color: rgba(13, 37, 62, 0.1);
    --shadow-color: rgba(13, 37, 62, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
    --navy: #FBFBFB;
    /* Inverted for text in dark mode */
    --gold: #F1D097;
    --white: #0D253E;
    /* Inverted background */
    --light-gold: #3a2e1e;
    --dark-navy: #FBFBFB;
    --text-color: #FBFBFB;
    --bg-color: #0D253E;
    --card-bg: #1a3a5c;
    --section-bg: #081829;
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-color: rgba(0, 0, 0, 0.3);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-color);
    background: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* RTL Support */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .nav-links {
    padding-right: 0;
}

[dir="rtl"] .margin-right {
    margin-left: 1rem;
    margin-right: 0;
}

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

/* ===================================
   Navigation
   =================================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--white);
    box-shadow: 0 2px 20px rgba(13, 37, 62, 0.1);
    z-index: 1000;
    transition: var(--transition);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 24px;
    font-weight: 800;
    color: var(--navy);
    line-height: 1.2;
}

.tagline {
    font-size: 12px;
    color: var(--gold);
    font-weight: 600;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--navy);
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover {
    color: var(--gold);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: var(--transition);
}

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

.cta-button {
    background: var(--gold);
    color: var(--navy) !important;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
}

.cta-button:hover {
    background: var(--navy);
    color: var(--gold) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(13, 37, 62, 0.2);
}

.cta-button::after {
    display: none;
}

.nav-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.icon-btn {
    background: none;
    border: 2px solid var(--border-color);
    color: var(--navy);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 8px 12px;
    border-radius: 8px;
    transition: var(--transition);
    font-family: inherit;
    font-weight: 600;
}

.icon-btn:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--navy);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--navy);
    border-radius: 2px;
    transition: var(--transition);
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    min-height: 100vh;
    padding-top: 120px;
    background: #0C253D;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="40" fill="%23F1D097" opacity="0.05"/></svg>');
    opacity: 0.3;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    padding: 60px 0;
    position: relative;
    z-index: 2;
}

.hero-text h1 {
    font-size: 56px;
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-text .highlight {
    color: var(--gold);
    position: relative;
    display: inline-block;
}

.hero-description {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 20px;
    margin-bottom: 60px;
}

.btn-primary,
.btn-secondary {
    padding: 16px 32px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

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

.btn-primary:hover {
    background: var(--light-gold);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(241, 208, 151, 0.4);
}

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

.btn-secondary:hover {
    background: var(--gold);
    color: var(--navy);
    transform: translateY(-4px);
}

.hero-stats {
    display: flex;
    gap: 48px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    color: var(--gold);
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 8px;
}

.hero-image-placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
}

/* ===================================
   Section Styles
   =================================== */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-label {
    display: inline-block;
    background: var(--gold);
    color: var(--navy);
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    font-size: 42px;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 20px;
    line-height: 1.2;
}

.section-description {
    font-size: 18px;
    color: rgba(13, 37, 62, 0.7);
    line-height: 1.8;
}

/* ===================================
   About Section
   =================================== */
.about {
    background: var(--white);
}

.about-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.feature-card {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid rgba(13, 37, 62, 0.1);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(13, 37, 62, 0.15);
    border-color: var(--gold);
}

.feature-icon {
    margin-bottom: 24px;
}

.feature-card h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 16px;
}

.feature-card p {
    color: rgba(13, 37, 62, 0.7);
    line-height: 1.6;
}

/* ===================================
   Courses Section
   =================================== */
.courses {
    background: linear-gradient(180deg, var(--white) 0%, #f8f9fa 100%);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-bottom: 60px;
}

.course-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(13, 37, 62, 0.08);
    transition: var(--transition);
    position: relative;
    border: 2px solid transparent;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(13, 37, 62, 0.15);
    border-color: var(--gold);
}

.course-card.featured {
    background: var(--navy);
    color: var(--white);
    border-color: var(--gold);
}

.course-card.featured h3,
.course-card.featured .course-level,
.course-card.featured .course-description p,
.course-card.featured .course-features li {
    color: var(--white);
}

.course-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--gold);
    color: var(--navy);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
}

.featured-badge {
    background: var(--gold);
    color: var(--navy);
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.course-header {
    margin-bottom: 20px;
}

.course-header h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}

.course-level {
    color: var(--gold);
    font-weight: 600;
    font-size: 14px;
}

.course-description {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 2px solid rgba(13, 37, 62, 0.1);
}

.course-description p {
    color: rgba(13, 37, 62, 0.7);
    line-height: 1.6;
}

.course-features {
    list-style: none;
    margin-bottom: 32px;
}

.course-features li {
    padding: 12px 0;
    color: rgba(13, 37, 62, 0.8);
    font-size: 15px;
}

.course-pricing {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 24px;
    border-top: 2px solid rgba(13, 37, 62, 0.1);
}

.price {
    display: flex;
    flex-direction: column;
}

.amount {
    font-size: 32px;
    font-weight: 800;
    color: var(--navy);
}

.course-card.featured .amount {
    color: var(--gold);
}

.period {
    font-size: 14px;
    color: rgba(13, 37, 62, 0.6);
}

.btn-enroll {
    background: var(--gold);
    color: var(--navy);
    padding: 14px 28px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    display: inline-block;
}

.btn-enroll:hover {
    background: var(--navy);
    color: var(--gold);
    transform: translateX(4px);
}

.course-card.featured .btn-enroll {
    background: var(--white);
    color: var(--navy);
}

.course-card.featured .btn-enroll:hover {
    background: var(--gold);
}

.course-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 60px;
}

.info-box {
    background: var(--white);
    padding: 32px;
    border-radius: 12px;
    border-left: 4px solid var(--gold);
    box-shadow: 0 4px 20px rgba(13, 37, 62, 0.08);
}

.info-box h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 12px;
}

.info-box p {
    color: rgba(13, 37, 62, 0.7);
    line-height: 1.6;
}

/* ===================================
   Why Choose Section
   =================================== */
.why-choose {
    background: var(--navy);
    color: var(--white);
}

.why-choose .section-label {
    background: var(--gold);
    color: var(--navy);
}

.why-choose .section-title {
    color: var(--white);
}

.why-choose .section-description {
    color: rgba(255, 255, 255, 0.8);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.benefit-item {
    padding: 32px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: var(--transition);
    border: 2px solid transparent;
}

.benefit-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--gold);
    transform: translateY(-8px);
}

.benefit-number {
    font-size: 48px;
    font-weight: 800;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 16px;
}

.benefit-item h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
}

.benefit-item p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* ===================================
   Contact Section
   =================================== */
.contact {
    background: var(--white);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: start;
}

.contact-info h2 {
    font-size: 36px;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 20px;
}

.contact-info>p {
    font-size: 18px;
    color: rgba(13, 37, 62, 0.7);
    margin-bottom: 40px;
    line-height: 1.6;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: start;
}

.contact-icon {
    font-size: 32px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gold);
    border-radius: 12px;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}

.contact-item p {
    color: rgba(13, 37, 62, 0.7);
    line-height: 1.6;
}

.contact-form-container {
    background: var(--white);
    padding: 48px;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(13, 37, 62, 0.12);
    border: 2px solid rgba(13, 37, 62, 0.1);
}

.contact-form h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 12px;
}

.form-subtitle {
    color: rgba(13, 37, 62, 0.6);
    margin-bottom: 32px;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid rgba(13, 37, 62, 0.2);
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    transition: var(--transition);
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(241, 208, 151, 0.2);
}

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

.btn-submit {
    width: 100%;
    padding: 16px;
    background: var(--gold);
    color: var(--navy);
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
}

.btn-submit:hover {
    background: var(--navy);
    color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(13, 37, 62, 0.2);
}

.form-note {
    font-size: 13px;
    color: rgba(13, 37, 62, 0.6);
    margin-top: 16px;
    text-align: center;
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: var(--navy);
    color: var(--white);
    padding: 80px 0 32px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 80px;
    margin-bottom: 60px;
}

.footer-brand {
    max-width: 400px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.footer-logo h3 {
    font-size: 24px;
    font-weight: 800;
    color: var(--white);
}

.footer-logo p {
    font-size: 12px;
    color: var(--gold);
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-column h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 20px;
}

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

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

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    font-size: 15px;
}

.footer-column ul li a:hover {
    color: var(--gold);
    padding-left: 8px;
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.footer-bottom-links a:hover {
    color: var(--gold);
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-text h1 {
        font-size: 42px;
    }

    .about-features,
    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .courses-grid {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .mobile-menu-toggle {
        display: flex;
    }

    .hero {
        padding-top: 100px;
    }

    .hero-text h1 {
        font-size: 32px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }

    .section-title {
        font-size: 32px;
    }

    .course-info,
    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form-container {
        padding: 32px 24px;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-text h1 {
        font-size: 28px;
    }

    .stat-number {
        font-size: 36px;
    }

    .section-title {
        font-size: 28px;
    }

    .btn-primary,
    .btn-secondary {
        padding: 14px 24px;
        font-size: 14px;
    }
}