/* -----------------------------------------------------------
   DXN PRO PLATFORM - GLOBAL STYLES
   Version: 4.0 (Senior Dev Edition)
   ----------------------------------------------------------- */

/* --- IMPORTS & VARIABLES --- */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800&family=Tajawal:wght@300;400;500;700&display=swap');

:root {
    /* Colors */
    --primary: #034ea2;
    /* DXN Iconic Blue */
    --primary-dark: #02387a;
    --accent: #d4af37;
    /* Premium Gold */
    --accent-hover: #b9952a;
    --text-dark: #2d3436;
    --text-gray: #636e72;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --success: #00b894;

    /* Spacing & Layout */
    --container-width: 1200px;
    --header-height: 80px;
    --radius: 12px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* --- RESET & BASE --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    outline: none;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Tajawal', sans-serif;
    background-color: var(--light-bg);
    color: var(--text-dark);
    direction: rtl;
    line-height: 1.7;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Cairo', sans-serif;
    color: var(--primary);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- COMPONENTS --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 5px 15px rgba(3, 78, 162, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-accent {
    background: var(--accent);
    color: var(--white);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.btn-accent:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border-color: var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-title p {
    color: var(--text-gray);
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* --- HEADER --- */
header {
    background: var(--white);
    height: var(--header-height);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo span {
    color: var(--accent);
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-weight: 600;
    color: var(--text-dark);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary);
}

/* --- HERO SECTION --- */
.hero {
    margin-top: var(--header-height);
    background: linear-gradient(135deg, rgba(3, 78, 162, 0.95), rgba(2, 56, 122, 0.9)), url('https://images.unsplash.com/photo-1522202176988-66273c2fd55f?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    padding: 60px 20px;
    min-height: auto;
    display: flex;
    justify-content: center;
    text-align: center;
    color: var(--white);
    clip-path: polygon(0 0, 100% 0, 100% 95%, 50% 100%, 0 95%);
}

.hero-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 10px;
    line-height: 1.3;
}

.hero-global-msg {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 5px;
    display: block;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 20px;
    max-width: 800px;
}

.hero-video-container {
    width: 100%;
    max-width: 700px;
    /* Matching a substantial but not overwhelming size */
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    border: 4px solid rgba(255, 255, 255, 0.1);
    margin: 0 auto;
}

.hero-video-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

/* --- CARDS & GRID --- */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.feature-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
    border-top: 5px solid var(--accent);
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
}

/* --- VIDEO SECTION --- */
.video-section {
    padding: 80px 0;
    background: var(--white);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* --- PRODUCTS PREVIEW --- */
.product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.product-img {
    height: 250px;
    overflow: hidden;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
    /* Image Enhancement: Brightness, Contrast, Saturation */
    filter: brightness(1.08) contrast(1.05) saturate(1.1);
}

.product-card:hover .product-img img {
    transform: scale(1.1);
    /* Extra shine on hover */
    filter: brightness(1.15) contrast(1.1) saturate(1.2);
}

.product-info {
    padding: 25px;
}

.product-price {
    color: var(--accent);
    font-weight: 700;
    font-size: 1.2rem;
    display: block;
    margin-bottom: 10px;
}

/* --- STATS --- */
.stats {
    background: var(--primary);
    padding: 60px 0;
    color: var(--white);
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    font-family: 'Cairo', sans-serif;
    color: var(--accent);
}

/* --- CONTACT / FOOTER --- */
footer {
    background: #1a1a1a;
    color: #b2bec3;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

footer h3 {
    color: var(--white);
    margin-bottom: 20px;
}

.footer-links a {
    display: block;
    margin-bottom: 10px;
    color: #b2bec3;
}

.footer-links a:hover {
    color: var(--accent);
    padding-right: 5px;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    font-size: 0.9rem;
}

/* --- FLOATING WHATSAPP --- */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    left: auto;
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    z-index: 2000;
    transition: transform 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .nav-menu {
        position: fixed;
        top: var(--header-height);
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 40px;
        transition: right 0.3s ease;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        right: 0;
    }

    .mobile-toggle {
        display: block;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
        padding: 80px 20px;
        clip-path: none;
        border-bottom-left-radius: 40px;
        border-bottom-right-radius: 40px;
    }
}

/* PRICE LIST STYLES */
.price-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s;
    border-top: 4px solid var(--primary);
}

.price-card:hover {
    transform: translateY(-5px);
}

.price-icon {
    font-size: 3rem;
    color: #e74c3c;
    margin-bottom: 20px;
}

.price-card h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

/* FILTERS */
.products-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
    margin-top: -40px;
}

.filter-btn {
    padding: 10px 25px;
    border: 2px solid var(--primary);
    border-radius: 50px;
    background: transparent;
    color: var(--primary);
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    font-family: inherit;
    font-size: 1rem;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    color: var(--white);
}

/* --- QUIZ MODAL SYSTEM --- */
.quiz-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.quiz-container {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border-top: 6px solid var(--accent);
}

.quiz-question {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.quiz-question h4 {
    margin-bottom: 15px;
    color: var(--primary);
}

.quiz-option {
    display: block;
    margin-bottom: 10px;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #eee;
    transition: 0.3s;
}

.quiz-option:hover {
    background: #f8f9fa;
    border-color: var(--primary);
}

.quiz-option input {
    margin-left: 10px;
}

.quiz-btn {
    width: 100%;
    margin-top: 20px;
    padding: 15px;
    font-size: 1.1rem;
}

/* --- SEQUENTIAL TRAINING --- */
.lecture-card {
    transition: all 0.5s ease;
    margin-bottom: 30px;
    opacity: 1;
    transform: translateY(0);
}

.lecture-card.hidden-lecture {
    display: none;
    opacity: 0;
    transform: translateY(20px);
}

.next-lesson-btn {
    display: block;
    width: 100%;
    margin-top: 15px;
    padding: 12px;
    background: var(--accent);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: bold;
    text-align: center;
    transition: 0.3s;
}

.next-lesson-btn:hover {
    background: #e67e22;
    /* Darker Orange */
}

.next-lesson-btn i {
    margin-left: 8px;
    /* RTL flip later handled by dir */
}

/* --- VIDEO LAZY LOADING --- */
.video-wrapper {
    cursor: pointer;
    background: #000;
    position: relative;
}

.video-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    transition: opacity 0.3s;
}

.video-wrapper:hover img {
    opacity: 1;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: rgba(25, 42, 86, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 2;
    pointer-events: none;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.video-wrapper:hover .play-button {
    background: #c0392b;
    border-color: #fff;
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 0 30px rgba(192, 57, 43, 0.6);
}

/* --- TARGET AUDIENCE --- */
.target-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.target-header {
    text-align: center;
    margin-bottom: 50px;
}

.target-header h2 {
    color: var(--primary);
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.target-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.target-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 5px solid transparent;
}

.target-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.target-card:nth-child(1) {
    border-color: #3498db;
}

.target-card:nth-child(2) {
    border-color: #e91e63;
}

.target-card:nth-child(3) {
    border-color: #f1c40f;
}

.target-card:nth-child(4) {
    border-color: #2ecc71;
}

.target-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.target-card:nth-child(1) .target-icon {
    color: #3498db;
}

.target-card:nth-child(2) .target-icon {
    color: #e91e63;
}

.target-card:nth-child(3) .target-icon {
    color: #f1c40f;
}

.target-card:nth-child(4) .target-icon {
    color: #2ecc71;
}

.target-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text);
}

.target-card p {
    color: #666;
    line-height: 1.6;
}

/* Floating Socials */
.floating-socials {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.social-float {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
}

.social-float:hover {
    transform: scale(1.1);
}

.social-float.whatsapp {
    background: #25D366;
}

.social-float.telegram {
    background: #0088cc;
}

.social-float.tiktok {
    background: #000000;
}

/* KEYBOARD FOCUS ACCESSIBILITY */
:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

.hidden-lecture {
    display: none !important;
    visibility: hidden !important;
}

.video-overlay-en {
    position: absolute;
    bottom: 60px;
    /* Positioned at bottom, above controls */
    left: 5%;
    /* Centered with margin */
    width: 90%;
    background: linear-gradient(90deg, rgba(3, 78, 162, 0.95) 0%, rgba(2, 56, 122, 0.9) 100%);
    backdrop-filter: blur(4px);
    color: #fff;
    padding: 12px;
    text-align: center;
    font-size: 1.1rem;
    z-index: 5;
    pointer-events: none;
    direction: ltr;
    font-weight: 700;
    border-bottom: 3px solid var(--accent);
    border-radius: 10px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* --- NEW SECTIONS STYLING (Redevelopment) --- */

/* Utils */
.section-padding {
    padding: 100px 0;
}

.text-center {
    text-align: center;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-40 {
    margin-bottom: 40px;
}

/* Problem Section (Question/Attention) */
.problem-section {
    background: #f8f9fa;
    /* Soft light background instead of dark */
    color: var(--text-dark);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.problem-section h2 {
    color: var(--primary);
    /* Primary Blue instead of Red */
    margin-bottom: 20px;
}

.problem-section p {
    color: var(--text-gray);
    max-width: 700px;
    margin: 0 auto 50px;
    font-size: 1.1rem;
}

.problem-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius);
    text-align: center;
    transition: transform 0.3s;
    border: none;
    /* Removed harsh border */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    /* Soft shadow */
    border-top: 5px solid #d4af37;
    /* Elegant Gold Accent */
}

.problem-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    /* No bg change */
}

.problem-icon {
    font-size: 3rem;
    color: #d4af37;
    /* Gold Icon instead of Red */
    margin-bottom: 25px;
}

.problem-card h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.problem-card p {
    color: var(--text-gray);
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* Solution Section (Bright/Hope) */
.solution-section {
    background: var(--light-bg);
    padding: 100px 0;
}

.solution_grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
    text-align: center;
}

.solution-img {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.solution-list {
    display: inline-block;
    text-align: start;
    margin: 0 auto;
}

.solution-text h2 {
    font-size: 2.8rem;
    margin-bottom: 25px;
    line-height: 1.2;
}

.solution-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 500;
}

.solution-list i {
    color: var(--success);
    font-size: 1.2rem;
    background: rgba(0, 184, 148, 0.1);
    padding: 8px;
    border-radius: 50%;
}

.solution-img {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* How It Works (Process) */
.how-section {
    background: var(--white);
    padding: 100px 0;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 50px;
    position: relative;
}

.step-card {
    text-align: center;
    position: relative;
    padding: 20px;
    background: var(--white);
    z-index: 2;
}

.step-number {
    width: 70px;
    height: 70px;
    background: var(--primary);
    color: var(--white);
    font-size: 2rem;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    box-shadow: 0 10px 20px rgba(3, 78, 162, 0.3);
    border: 4px solid #e7f2fa;
}

.step-card h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.step-card p {
    font-size: 0.95rem;
    color: var(--text-gray);
}

/* Timeline Connector (Desktop Only) */
@media (min-width: 992px) {
    .steps-container::before {
        content: '';
        position: absolute;
        top: 35px;
        left: 10%;
        width: 80%;
        height: 3px;
        background: #e7f2fa;
        z-index: 1;
    }
}

/* Final CTA */
.final-cta-section {
    background: linear-gradient(135deg, rgba(3, 78, 162, 0.96), rgba(2, 56, 122, 0.92)), url('https://images.unsplash.com/photo-1556761175-5973dc0f32e7?ixlib=rb-4.0.3');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    padding: 120px 0;
    text-align: center;
    color: var(--white);
}

.final-cta-section h2 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 20px;
}

.final-cta-section p {
    font-size: 1.4rem;
    opacity: 0.9;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.btn-large {
    padding: 18px 50px;
    font-size: 1.3rem;
    border-radius: 60px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .solution_grid {
        grid-template-columns: 1fr;
    }

    .final-cta-section h2 {
        font-size: 2.2rem;
    }
}