/* Global Styles */
:root {
    --primary-color: #600015;
    /* Deep Dark Burgundy */
    --secondary-color: #D4AF37;
    /* Elegant Gold */
    --accent-color: #FAF9F6;
    /* Soft Beige */
    --text-dark: #333;
    --text-light: #555;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --section-padding: 60px 20px;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--accent-color);
    /* Light Blue Grey */
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Header */
header {
    background-color: #B8860B;
    /* Dark Gold */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Target the container for Flexbox layout */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

/* Reset nav element styles since container handles layout now */
nav {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 10px 0;
    /* Add some breathing room */
}

.logo img {
    height: 90px;
    /* Larger Logo */
    width: auto;
    transition: transform 0.3s;
}

.logo img:hover {
    transform: scale(1.05);
    /* Subtle pop */
}

.logo span {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000000;
    /* Strict Black */
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 700;
    /* Bold */
    color: #ffffff;
    /* High Contrast White */
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #333;
    /* Dark text on hover */
}

.lang-btn {
    background: transparent;
    border: 1px solid #fff;
    padding: 5px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    color: #fff;
    transition: 0.3s;
}

.lang-btn:hover {
    background-color: #fff;
    color: var(--primary-color);
}

/* btn-nav-cta removed */

.mobile-menu-btn {
    display: none;
    font-size: 24px;
    cursor: pointer;
    margin-left: 15px;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(128, 0, 32, 0.9), rgba(128, 0, 32, 0.8)), url('https://images.unsplash.com/photo-1523050854058-8df90110c9f1?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 100px 20px;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s;
    text-align: center;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.cta-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    background-color: var(--primary-color);
    /* Dark Burgundy */
    color: #fff;
    border: none;
}

.btn-secondary {
    background-color: var(--secondary-color);
    /* Gold */
    color: var(--primary-color);
    /* Dark Text */
    border: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
    background-color: #4a0010;
}

.btn-secondary:hover {
    background-color: #fff;
    color: var(--primary-color);
}

.btn-outline {
    background-color: var(--secondary-color);
    /* Gold for Contrast */
    border: none;
    color: #000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    font-weight: 800;
}

.btn-outline:hover {
    background-color: #b8860b;
    color: #fff;
    transform: translateY(-2px);
}

/* Features */
.video-section {
    padding: 40px 0;
    background-color: var(--white);
    text-align: center;
}

.video-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    padding: 10px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.video-container video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    background: #000;
}

.features {
    background-color: var(--accent-color);
    padding: 40px 0;
}

.features-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    text-align: center;
}

.feature-item {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    flex: 1;
    min-width: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.check {
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

/* About Us */
.about {
    padding: var(--section-padding);
    background-color: var(--white);
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.section-title p {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    margin-bottom: 20px;
}

/* Services */
.services {
    padding: var(--section-padding);
    background-color: #f4f4f4;
}

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

.service-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
    text-align: center;
}

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

.service-card .icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Training Section */
.training-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Force 3 columns on desktop */
    gap: 30px;
    margin-top: 40px;
}

.training-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

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

.card-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    /* Force Square Image */
    background-color: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-size: cover;
    background-position: center;
}

/* Badges */
.badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    color: white;
    text-transform: uppercase;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.badge.live {
    background-color: #e74c3c;
}

.badge.recorded {
    background-color: #27ae60;
}

[dir="rtl"] .badge {
    right: auto;
    left: 15px;
}

.card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    line-height: 1.4;
}

.card-actions {
    margin-top: auto;
    display: flex;
    gap: 10px;
}

.btn-details,
.btn-enroll {
    flex: 1;
    padding: 12px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    border: none;
    transition: 0.3s;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* More Info - Solid Light Button */
.btn-details {
    background-color: #E0E0E0;
    /* Light Grey Filled */
    color: #333;
    border: 1px solid #ccc;
}

.btn-details:hover {
    background-color: #d6d6d6;
}

/* Enroll - Solid Burgundy Button */
.btn-enroll {
    background-color: var(--primary-color);
    /* Dark Burgundy */
    color: var(--white);
    border: 1px solid var(--primary-color);
}

.btn-enroll:hover {
    background-color: #4a0010;
    /* Even Darker on Hover */
    border-color: #4a0010;
}

/* Testimonials */
.testimonials {
    padding: var(--section-padding);
    background-color: var(--accent-color);
}

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

.testimonial-card {
    background: var(--white);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.testimonial-card .stars {
    color: #FFD700;
    font-size: 20px;
    margin-bottom: 10px;
}

.testimonial-card .review-text {
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.testimonial-card .student-name {
    color: var(--primary-color);
    font-weight: 700;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: var(--white);
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.modal-header h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin: 0;
    line-height: 1.3;
}

.close-modal {
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: #999;
    line-height: 0.8;
}

.close-modal:hover {
    color: var(--secondary-color);
}

.modal-body p {
    margin-bottom: 15px;
    color: var(--text-dark);
}

.course-meta {
    background: var(--accent-color);
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    border: 1px solid var(--border-color);
}

.course-meta p {
    margin: 8px 0;
    font-size: 0.95rem;
}

.course-outcomes {
    margin-bottom: 25px;
}

.course-outcomes ul {
    list-style: none;
    padding: 0;
    margin-top: 10px;
}

.course-outcomes li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 8px;
}

[dir="rtl"] .course-outcomes li {
    padding-left: 0;
    padding-right: 25px;
}

.course-outcomes li::before {
    content: "✓";
    color: var(--secondary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

[dir="rtl"] .course-outcomes li::before {
    left: auto;
    right: 0;
}

.modal-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.btn-block {
    display: block;
    width: 100%;
    padding: 12px;
    text-align: center;
    font-size: 16px;
}

/* Why Turkey */
.why-turkey {
    padding: var(--section-padding);
    background-color: var(--white);
}

/* How It Works */
.how-it-works {
    padding: var(--section-padding);
    background-color: var(--white);
    text-align: center;
}

.steps-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 30px;
}

.step-item {
    flex: 1;
    min-width: 200px;
    position: relative;
    padding: 20px;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin: 0 auto 15px;
    font-size: 1.2rem;
}

.step-item h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* For Parents */
.parents {
    padding: var(--section-padding);
    background-color: var(--primary-color);
    /* Dark Burgundy */
    text-align: center;
    color: var(--white);
}

.parents .section-title h2 {
    color: var(--secondary-color);
    /* Gold Title on Burgundy */
}

.parents .section-title p {
    color: #e0e0e0;
    /* Light text for description if any */
}

.parents-text {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: var(--white);
    /* White text for readability */
    line-height: 1.8;
}

/* FAQ */
.faq {
    padding: var(--section-padding);
    background-color: var(--white);
}

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

.faq-item {
    background: var(--accent-color);
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.faq-question {
    padding: 15px 20px;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    font-weight: bold;
    font-size: 1rem;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

[dir="rtl"] .faq-question {
    text-align: right;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
}

.faq-item.active .faq-question::after {
    content: '-';
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s;
    background: var(--white);
}

.faq-item.active .faq-answer {
    padding: 15px 20px;
    max-height: 200px;
    border-top: 1px solid var(--border-color);
}

/* Floating WhatsApp */
.floating-whatsapp {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    border-radius: 30px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 3000;
    cursor: move;
    /* Indicate draggable */
    user-select: none;
    /* Prevent text selection while dragging */
    touch-action: none;
    /* Prevent scrolling while dragging on mobile */
    color: white;
}

[dir="rtl"] .floating-whatsapp {
    right: auto;
    left: 20px;
    flex-direction: row-reverse;
}

.floating-whatsapp:hover {
    transform: translateY(-5px);
    background-color: #20BA56;
}

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

.fw-title {
    font-weight: bold;
    font-size: 0.9rem;
}

.fw-sub {
    font-size: 0.7rem;
    opacity: 0.9;
}

.fw-icon {
    font-size: 24px;
}

/* Contact */
.contact {
    padding: var(--section-padding);
    background-color: #f4f4f4;
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
}

.submit-btn {
    width: 100%;
    background-color: var(--primary-color);
    /* Match Main Buttons (Burgundy) */
    color: var(--white);
    padding: 15px;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, background 0.3s;
}

.submit-btn:hover {
    background-color: #4a0010;
    color: #fff;
    transform: translateY(-2px);
}

/* Footer */
footer {
    background-color: #4a041d;
    /* Darker Burgundy for Footer */
    color: var(--white);
    padding: 40px 0;
    text-align: center;
}

/* Footer Socials */
.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

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

.social-links h4 {
    color: var(--white);
    margin-bottom: 15px;
}

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

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    font-size: 20px;
    transition: 0.3s;
}

.social-icon:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.whatsapp:hover {
    background-color: #25D366;
}

.facebook:hover {
    background-color: #1877F2;
}

.instagram:hover {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

/* RTL Support */
[dir="rtl"] {
    text-align: right;
    font-family: 'Tajawal', 'Segoe UI', sans-serif;
}

/* Import Arabic Font */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700&display=swap');

[dir="rtl"] .nav-links {
    flex-direction: row-reverse;
}

[dir="rtl"] .service-card {
    text-align: center;
}

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

/* Responsive */
@media (max-width: 1024px) {
    .training-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 cols on tablets */
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        padding: 10px 0;
        /* Reduced padding */
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        text-align: center;
        border-top: 2px solid var(--secondary-color);
        max-height: calc(100vh - 80px);
        /* Preventing clipping */
        overflow-y: auto;
        /* Enable scrolling */
    }

    .nav-links a {
        color: var(--primary-color);
        /* Fix: Dark text on white background */
        display: block;
        padding: 15px;
        border-bottom: 1px solid #eee;
    }

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

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .training-grid {
        grid-template-columns: 1fr;
        /* 1 col on mobile */
    }
}