/* ===========================================
   Custom Fonts
   =========================================== */
@font-face {
    font-family: 'DIN Next LT Arabic';
    src: url('../fonts/ArbFONTS-DINNEXTLTARABIC-LIGHT-2-2.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'DIN Next LT Arabic';
    src: url('../fonts/ArbFONTS-DINNextLTArabic-Regular-3.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'DIN Next LT Arabic';
    src: url('../fonts/ArbFONTS-DINNextLTArabic-Medium-4.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'DIN Next LT Arabic';
    src: url('../fonts/ArbFONTS-DINNextLTArabic-Bold-4.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'DIN Next LT Arabic';
    src: url('../fonts/ArbFONTS-DINNextLTArabic-Heavy2-2.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
}

/* ===========================================
   Brand Colors & Variables
   =========================================== */
:root {
    --primary: #0E91A1;
    --primary-dark: #01274B;
    --secondary: #10C590;
    --accent: #4CA3DA;
    --teal: #0a5f6a;
    --dark: #01274B;

    /* Gradients */
    --gradient-main: linear-gradient(135deg, #10C590 0%, #4CA3DA 100%);
    --gradient-dark: linear-gradient(135deg, #01274B 0%, #0a5f6a 100%);
    --gradient-hover: linear-gradient(135deg, #0E91A1 0%, #10C590 100%);

    /* UI Colors */
    --correct: #10C590;
    --incorrect: #e74c3c;
    --bg-light: #f0f7f8;
    --bg-mint: #e8f5f3;
    --white: #ffffff;
    --shadow: rgba(1, 39, 75, 0.1);
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'DIN Next LT Arabic', sans-serif;
    direction: rtl;
    text-align: right;
    background-color: var(--bg-light);
    color: var(--dark);
    min-height: 100vh;
    line-height: 1.6;
}

/* ===========================================
   Hero Section
   =========================================== */
.hero {
    background: var(--gradient-dark);
    min-height: 600px;
    position: relative;
    overflow: hidden;
}

.hero-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/pat-1.png');
    background-repeat: repeat;
    background-size: 300px;
    opacity: 0.05;
    pointer-events: none;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 40px;
    position: relative;
    z-index: 2;
}

.hero-header {
    padding: 20px 0;
}

.hero-header .logo {
    max-width: 180px;
    height: auto;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 40px 0;
}

.hero-text {
    flex: 1;
    max-width: 550px;
}

.hero-title {
    margin-bottom: 20px;
}

.hero-title .title-small {
    display: block;
    font-size: 2rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 8px;
}

.hero-title .title-large {
    display: block;
    font-size: 4rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: 4px;
}

.hero-tagline {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 30px;
    line-height: 1.8;
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
    font-size: 1.05rem;
}

.feature-icon {
    width: 32px;
    height: 32px;
    background: var(--secondary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon svg {
    color: var(--white);
}

.hero-image {
    flex: 1;
    max-width: 450px;
    display: flex;
    justify-content: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: contain;
}

.hero-cta-bar {
    background: var(--secondary);
    padding: 20px 30px;
    border-radius: 12px;
    text-align: center;
    margin-top: 20px;
}

.hero-cta-bar p {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 600;
}

/* ===========================================
   Info Section
   =========================================== */
.info-section {
    padding: 60px 20px;
    background: var(--bg-light);
}

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

.info-card {
    display: flex;
    align-items: center;
    gap: 40px;
    border-radius: 24px;
    overflow: hidden;
}

.info-card.dark {
    background: var(--gradient-dark);
    padding: 50px;
}

.info-card-content {
    flex: 1;
}

.info-badge {
    display: inline-block;
    background: rgba(16, 197, 144, 0.2);
    color: var(--secondary);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(16, 197, 144, 0.3);
}

.info-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 10px;
    letter-spacing: 6px;
}

.info-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 25px;
}

.info-points {
    margin-bottom: 25px;
}

.info-point {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    margin-bottom: 10px;
}

.point-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
}

.point-value {
    color: var(--secondary);
    font-size: 1.2rem;
    font-weight: 700;
}

.info-box {
    background: rgba(16, 197, 144, 0.15);
    border: 1px solid rgba(16, 197, 144, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
}

.info-box h4 {
    color: var(--secondary);
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.info-box p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

.info-highlight {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-size: 1.1rem;
}

.info-highlight strong {
    color: var(--secondary);
    font-size: 1.4rem;
}

.info-card-image {
    flex: 0 0 250px;
}

.info-card-image img {
    max-width: 100%;
    height: auto;
    max-height: 350px;
    object-fit: contain;
}

/* ===========================================
   Stats Section
   =========================================== */
.stats-section {
    padding: 60px 20px;
    background: var(--bg-mint);
}

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

.stats-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 40px;
    letter-spacing: 4px;
}

.stats-main {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    background: var(--secondary);
    border-radius: 20px;
    padding: 50px;
    margin-bottom: 30px;
}

.stat-big,
.stat-text {
    text-align: center;
    color: var(--white);
}

.stat-prefix {
    display: block;
    font-size: 1.5rem;
    font-weight: 500;
    opacity: 0.9;
}

.stat-number {
    display: block;
    font-size: 5rem;
    font-weight: 800;
    line-height: 1;
}

.stat-label {
    font-size: 1.5rem;
    font-weight: 500;
}

.stat-text p {
    font-size: 1rem;
    opacity: 0.9;
    margin-top: 5px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--white);
    border-radius: 16px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.stat-percent {
    font-size: 2rem;
    font-weight: 800;
}

.stat-percent.down {
    color: var(--secondary);
}

.stat-percent.down::before {
    content: '↓ ';
}

.stat-percent.up {
    color: var(--secondary);
}

.stat-percent.up::before {
    content: '↑ ';
}

.stat-card p {
    flex: 1;
    text-align: right;
    color: var(--dark);
    font-size: 0.95rem;
    line-height: 1.5;
}

.stats-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--primary);
    color: var(--white);
    padding: 20px;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 600;
}

/* ===========================================
   Section Styles (White & Light)
   =========================================== */
.section-white,
.section-light {
    padding: 60px 20px;
}

.section-white {
    background: var(--white);
}

.section-light {
    background: var(--bg-light);
}

.section-container {
    max-width: 1100px;
    margin: 0 auto;
}

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

.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(16, 197, 144, 0.1) 0%, rgba(76, 163, 218, 0.1) 100%);
    color: var(--primary);
    padding: 8px 24px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 15px;
    border: 1px solid rgba(16, 197, 144, 0.2);
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #6b7c93;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ===========================================
   Certificate Section
   =========================================== */
.certificate-card {
    max-width: 600px;
    margin: 0 auto;
}

.certificate-preview {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(1, 39, 75, 0.15);
    transition: transform 0.4s ease;
}

.certificate-preview:hover {
    transform: scale(1.02);
}

.certificate-preview img {
    width: 100%;
    height: auto;
    display: block;
    transition: filter 0.3s ease;
}

.certificate-preview:hover img {
    filter: brightness(0.7);
}

.certificate-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(1, 39, 75, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.certificate-preview:hover .certificate-overlay {
    opacity: 1;
}

.certificate-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 35px;
    background: var(--white);
    border: none;
    border-radius: 12px;
    font-family: 'DIN Next LT Arabic', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    cursor: pointer;
    transition: all 0.3s ease;
    transform: translateY(20px);
}

.certificate-preview:hover .certificate-btn {
    transform: translateY(0);
}

.certificate-btn:hover {
    background: var(--secondary);
    color: var(--white);
}

/* ===========================================
   Videos Section
   =========================================== */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.video-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(1, 39, 75, 0.08);
    transition: all 0.4s ease;
    border: 1px solid rgba(1, 39, 75, 0.05);
}

.video-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(1, 39, 75, 0.15);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: var(--gradient-dark);
    cursor: pointer;
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.video-card:hover .video-play-btn {
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--secondary);
    color: var(--white);
}

.video-play-btn svg {
    margin-right: -3px;
}

.video-duration {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--white);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
}

.video-info {
    padding: 20px;
}

.video-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.video-description {
    font-size: 0.95rem;
    color: #6b7c93;
    line-height: 1.6;
}

/* ===========================================
   Quiz CTA Section
   =========================================== */
.quiz-cta-section {
    padding: 60px 20px;
    background: var(--secondary);
}

.quiz-cta-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 50px;
}

.quiz-cta-image {
    flex: 0 0 280px;
}

.quiz-cta-image img {
    max-width: 100%;
    height: auto;
    max-height: 350px;
    object-fit: contain;
}

.quiz-cta-content {
    flex: 1;
}

.quiz-cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 15px;
}

.quiz-cta-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 25px;
}

.quiz-cta-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.cta-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-size: 1rem;
}

.cta-feature svg {
    color: var(--white);
}

.quiz-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 40px;
    background: var(--white);
    border: none;
    border-radius: 12px;
    font-family: 'DIN Next LT Arabic', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.quiz-cta-btn:hover {
    background: var(--dark);
    color: var(--white);
    transform: translateX(-5px);
}

/* ===========================================
   Footer
   =========================================== */
.footer {
    background: var(--dark);
    padding: 50px 20px;
    text-align: center;
}

.footer-container {
    max-width: 600px;
    margin: 0 auto;
}

.footer-logo {
    max-width: 150px;
    margin-bottom: 20px;
}

.footer p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.footer-divider {
    width: 60px;
    height: 3px;
    background: var(--secondary);
    margin: 0 auto 20px;
    border-radius: 2px;
}

.footer-copyright {
    font-size: 0.9rem !important;
    opacity: 0.7;
}

/* ===========================================
   Modal Styles
   =========================================== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(1, 39, 75, 0.85);
    backdrop-filter: blur(5px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-overlay.show {
    display: flex;
}

.modal-content {
    background: var(--white);
    border-radius: 24px;
    padding: 50px 40px;
    max-width: 500px;
    width: 100%;
    text-align: center;
    animation: fadeInUp 0.4s ease;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    background: #f5f7fa;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #6b7c93;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #e8ecf1;
    color: var(--dark);
}

.modal-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(16, 197, 144, 0.1) 0%, rgba(76, 163, 218, 0.1) 100%);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary);
    margin: 0 auto 25px;
}

.modal-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
}

.modal-subtitle {
    font-size: 1rem;
    color: #6b7c93;
    margin-bottom: 30px;
}

.modal-input {
    width: 100%;
    padding: 18px 24px;
    border: 2px solid #e8ecf1;
    border-radius: 14px;
    font-family: 'DIN Next LT Arabic', sans-serif;
    font-size: 1.15rem;
    color: var(--dark);
    text-align: center;
    margin-bottom: 25px;
    transition: all 0.3s ease;
    background: #f8fafe;
}

.modal-input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(14, 145, 161, 0.1);
}

.modal-input::placeholder {
    color: #a0aec0;
}

.modal-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 18px 35px;
    border: none;
    border-radius: 14px;
    font-family: 'DIN Next LT Arabic', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-btn.primary {
    background: var(--gradient-main);
    color: var(--white);
    box-shadow: 0 8px 25px rgba(16, 197, 144, 0.3);
}

.modal-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(16, 197, 144, 0.4);
}

.modal-btn.secondary {
    background: #f5f7fa;
    color: var(--dark);
    margin-top: 12px;
}

.modal-btn.secondary:hover {
    background: #e8ecf1;
}

/* Certificate Result */
.certificate-result {
    display: none;
}

.certificate-result.show {
    display: block;
}

.result-header {
    margin-bottom: 25px;
}

.result-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
}

.result-icon.success {
    background: linear-gradient(135deg, rgba(16, 197, 144, 0.15) 0%, rgba(16, 197, 144, 0.05) 100%);
    color: var(--secondary);
}

.certificate-canvas-container {
    margin: 25px 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(1, 39, 75, 0.15);
}

.certificate-canvas-container canvas {
    width: 100%;
    height: auto;
    display: block;
}

.result-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ===========================================
   Animations
   =========================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* ===========================================
   Responsive Design
   =========================================== */
@media (max-width: 900px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-features {
        align-items: center;
    }

    .hero-image {
        max-width: 350px;
    }

    .info-card {
        flex-direction: column;
        text-align: center;
    }

    .info-card-image {
        order: -1;
    }

    .stats-main {
        flex-direction: column;
        gap: 30px;
    }

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

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

    .quiz-cta-container {
        flex-direction: column;
        text-align: center;
    }

    .quiz-cta-features {
        align-items: center;
    }
}

@media (max-width: 768px) {
    .hero-title .title-small {
        font-size: 1.5rem;
    }

    .hero-title .title-large {
        font-size: 2.8rem;
    }

    .info-card.dark {
        padding: 30px;
    }

    .info-title {
        font-size: 2.5rem;
    }

    .stats-title {
        font-size: 2rem;
    }

    .stat-number {
        font-size: 3.5rem;
    }

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

    .section-title {
        font-size: 1.8rem;
    }

    .quiz-cta-title {
        font-size: 2rem;
    }

    .modal-content {
        padding: 40px 25px;
    }
}

/* ===========================================
   Quiz Page Styles
   =========================================== */
.bg-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/pat-1.png');
    background-repeat: repeat;
    background-size: 400px;
    opacity: 0.15;
    z-index: -1;
    pointer-events: none;
}

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

.header {
    text-align: center;
    padding: 30px 0;
}

.logo {
    max-width: 280px;
    height: auto;
}

.quiz-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px var(--shadow);
    margin-bottom: 30px;
}

.progress-container {
    margin-bottom: 30px;
}

.progress-text {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--dark);
    opacity: 0.8;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-main);
    border-radius: 10px;
    transition: width 0.4s ease;
}

.question-number {
    display: inline-block;
    background: var(--gradient-main);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.question-text {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 30px;
    line-height: 1.8;
}

.options-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.option-btn {
    display: block;
    width: 100%;
    padding: 18px 25px;
    background: var(--white);
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-family: 'DIN Next LT Arabic', sans-serif;
    font-size: 1rem;
    color: var(--dark);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: right;
    line-height: 1.6;
}

.option-btn:hover:not(:disabled) {
    border-color: var(--primary);
    background: rgba(14, 145, 161, 0.05);
    transform: translateX(-5px);
}

.option-btn:disabled {
    cursor: not-allowed;
}

.option-btn.correct {
    background: rgba(16, 197, 144, 0.15);
    border-color: var(--correct);
    color: var(--correct);
}

.option-btn.incorrect {
    background: rgba(231, 76, 60, 0.15);
    border-color: var(--incorrect);
    color: var(--incorrect);
}

.option-btn.correct::before {
    content: '✓ ';
    font-weight: bold;
}

.option-btn.incorrect::before {
    content: '✗ ';
    font-weight: bold;
}

.feedback {
    margin-top: 25px;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
    display: none;
}

.feedback.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

.feedback.correct {
    background: rgba(16, 197, 144, 0.15);
    color: var(--correct);
}

.feedback.incorrect {
    background: rgba(231, 76, 60, 0.15);
    color: var(--incorrect);
}

.next-btn {
    display: none;
    width: 100%;
    padding: 18px;
    margin-top: 20px;
    background: var(--gradient-main);
    border: none;
    border-radius: 12px;
    font-family: 'DIN Next LT Arabic', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
}

.next-btn.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

.next-btn:hover {
    background: var(--gradient-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(16, 197, 144, 0.3);
}

.results-card {
    text-align: center;
    display: none;
}

.results-card.show {
    display: block;
}

.results-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.results-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 15px;
}

.results-score {
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.results-message {
    font-size: 1.2rem;
    color: var(--dark);
    opacity: 0.8;
    margin-bottom: 30px;
    line-height: 1.8;
}

.restart-btn {
    display: inline-block;
    padding: 18px 50px;
    background: var(--gradient-main);
    border: none;
    border-radius: 12px;
    font-family: 'DIN Next LT Arabic', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.restart-btn:hover {
    background: var(--gradient-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(16, 197, 144, 0.3);
}

.quiz-content {
    animation: fadeIn 0.4s ease;
}

@media (max-width: 600px) {
    .container {
        padding: 15px;
    }

    .quiz-card {
        padding: 25px 20px;
        border-radius: 15px;
    }

    .logo {
        max-width: 220px;
    }

    .question-text {
        font-size: 1.2rem;
    }

    .option-btn {
        padding: 15px 18px;
        font-size: 0.95rem;
    }

    .results-score {
        font-size: 2.5rem;
    }

    .results-title {
        font-size: 1.5rem;
    }
}
