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

:root {
    /* Colors */
    --primary-color: #0d7377;
    --secondary-color: #14a085;
    --accent-color: #32e0c4;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --white: #ffffff;
    --gradient-1: linear-gradient(135deg, #0d7377 0%, #14a085 100%);
    --gradient-2: linear-gradient(135deg, #14a085 0%, #32e0c4 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s ease;
}

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

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

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ========================================
   Header
   ======================================== */
.header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.logo i {
    font-size: 32px;
    color: var(--secondary-color);
}

.nav ul {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-weight: 600;
    color: var(--dark-color);
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.cta-btn {
    background: var(--gradient-1);
    color: var(--white);
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Cairo', sans-serif;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--primary-color);
    cursor: pointer;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    position: relative;
    background: var(--gradient-1);
    color: var(--white);
    padding: 180px 0 100px;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-position: bottom;
    background-repeat: no-repeat;
    background-size: cover;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease;
}

.hero-description {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease 0.2s;
    animation-fill-mode: backwards;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 40px;
}

.stat-item {
    text-align: center;
}

.stat-item i {
    font-size: 48px;
    margin-bottom: 10px;
    color: var(--accent-color);
}

.stat-item h3 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 16px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    border: none;
    font-family: 'Cairo', sans-serif;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border: 2px solid var(--white);
}

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

/* ========================================
   Section Header
   ======================================== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

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

.section-subtitle {
    font-size: 18px;
    color: #666;
}

/* ========================================
   Topics Section
   ======================================== */
.topics {
    padding: 80px 0;
    background: var(--light-color);
}

/* Grid */
.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Card */
.topic-card {
    background-color: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    text-align: center;
}

/* Hover Effect */
.topic-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

/* Image */
.topic-card img {
    width: 100%;
    height: 150px; /* ارتفاع ثابت لجميع الصور */
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Image Hover Zoom */
.topic-card:hover img {
    transform: scale(1.1);
}

/* Card Title */
.topic-card h3 {
    margin: 10px 0 5px;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

/* Card Description */
.topic-card p {
    font-size: 0.9rem;
    color: #555;
    padding: 0 10px 10px;
}

/* Badge Icon */
.topic-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #4CAF50;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

/* Optional: make entire card clickable */
.topic-card a.full-link {
    position: absolute;
    inset: 0;
    z-index: 1;
}



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

.about-content {
    margin-top: 40px;
}

.about-text {
    text-align: center;
    margin-bottom: 60px;
}

.about-description {
    font-size: 18px;
    line-height: 2;
    color: #555;
    max-width: 900px;
    margin: 0 auto;
}

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

.feature-card {
    text-align: center;
    padding: 40px 20px;
    background: var(--light-color);
    border-radius: 15px;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 36px;
}

.feature-card h3 {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature-card p {
    color: #666;
    line-height: 1.8;
}

/* ========================================
   Features Section
   ======================================== */
.features {
    padding: 80px 0;
    background: var(--gradient-1);
    color: var(--white);
}

.features .section-title,
.features .section-subtitle {
    color: var(--white);
}

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

.feature-box {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.feature-box:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.feature-box i {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.feature-box h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.feature-box p {
    opacity: 0.9;
    line-height: 1.8;
}

/* ========================================
   Motivation Section
   ======================================== */
.motivation {
    padding: 80px 0;
    background: var(--light-color);
}

.motivation-content {
    max-width: 900px;
    margin: 0 auto;
}

.quote-card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    margin-bottom: 30px;
    position: relative;
    text-align: center;
}

.quote-icon {
    font-size: 48px;
    color: var(--accent-color);
    opacity: 0.3;
    margin-bottom: 20px;
}

.quote-text {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-color);
    line-height: 1.8;
    margin-bottom: 20px;
}

.quote-line {
    width: 100px;
    height: 4px;
    background: var(--gradient-1);
    margin: 0 auto;
    border-radius: 2px;
}

.motivation-icons {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 40px;
}

.motiv-icon {
    text-align: center;
}

.motiv-icon i {
    font-size: 64px;
    color: var(--secondary-color);
    margin-bottom: 15px;
    display: block;
}

.motiv-icon p {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark-color);
}

/* ========================================
   Register Section
   ======================================== */
.register {
    padding: 80px 0;
    background: var(--white);
}

.register-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.register-info h2 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.register-info > p {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.8;
}

.register-benefits {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 16px;
    color: #555;
}

.benefit-item i {
    font-size: 24px;
    color: var(--secondary-color);
}

.register-form {
    background: var(--light-color);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.register-form h3 {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
}

.form-group {
    position: relative;
    margin-bottom: 25px;
}

.form-group i {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 18px;
}

.form-group input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
    font-family: 'Cairo', sans-serif;
    transition: var(--transition);
}

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

.submit-btn {
    width: 100%;
    padding: 15px;
    background: var(--gradient-1);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: 'Cairo', sans-serif;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ========================================
   FAQ Section
   ======================================== */
.faq {
    padding: 80px 0;
    background: var(--light-color);
}

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

.faq-item {
    background: var(--white);
    border-radius: 15px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
}

.faq-question {
    padding: 25px 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--white);
    transition: var(--transition);
}

.faq-question:hover {
    background: var(--light-color);
}

.faq-question h3 {
    font-size: 20px;
    color: var(--primary-color);
    font-weight: 600;
}

.faq-question i {
    font-size: 20px;
    color: var(--secondary-color);
    transition: var(--transition);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 30px 25px;
    color: #666;
    line-height: 1.8;
    font-size: 16px;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-logo i {
    font-size: 32px;
    color: var(--accent-color);
}

.footer-description {
    color: #ccc;
    line-height: 1.8;
    margin-bottom: 25px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 20px;
}

.social-links a:hover {
    background: var(--gradient-1);
    transform: translateY(-3px);
}

.footer-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: #ccc;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-right: 5px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 8px;
    font-family: 'Cairo', sans-serif;
}

.newsletter-form button {
    padding: 12px 20px;
    background: var(--gradient-1);
    color: var(--white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    transform: scale(1.05);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #999;
}

/* ========================================
   Scroll to Top Button
   ======================================== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-1);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow-md);
}

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

.scroll-top:hover {
    transform: translateY(-5px);
}

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

.animate-fade-in {
    animation: fadeInUp 0.8s ease;
}

.animate-fade-in-delay {
    animation: fadeInUp 0.8s ease 0.2s;
    animation-fill-mode: backwards;
}

/* ========================================
   Responsive Design
   ======================================== */

/* Tablet */
@media (max-width: 768px) {
    .header-content {
        position: relative;
    }

    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: var(--shadow-md);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav.active {
        max-height: 400px;
    }

    .nav ul {
        flex-direction: column;
        padding: 20px;
        gap: 15px;
    }

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

    .cta-btn {
        display: none;
    }

    .hero-title {
        font-size: 36px;
    }

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

    .hero-stats {
        gap: 30px;
    }

    .stat-item i {
        font-size: 36px;
    }

    .stat-item h3 {
        font-size: 28px;
    }

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

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

    .register-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .motivation-icons {
        gap: 40px;
    }

    .motiv-icon i {
        font-size: 48px;
    }

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

/* Mobile */
@media (max-width: 480px) {
    .hero {
        padding: 150px 0 80px;
    }

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

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

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

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

    .btn {
        width: 100%;
    }

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

    .section-subtitle {
        font-size: 16px;
    }

    .topics-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .topic-files {
        flex-direction: column;
    }

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

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

    .motivation-icons {
        flex-direction: column;
        gap: 30px;
    }

    .register-form {
        padding: 30px 20px;
    }

    .scroll-top {
        bottom: 20px;
        left: 20px;
        width: 45px;
        height: 45px;
    }

    .quote-text {
        font-size: 20px;
    }
}
/* ===============================
   Topic Cards – Final ضبط نهائي
   =============================== */

.topic-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.topic-card {
  position: relative;
  background-color: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.topic-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 35px rgba(0,0,0,0.15);
}

/* الصورة */
.topic-poster {
  height: 190px;
  overflow: hidden;
}

.topic-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.topic-card:hover .topic-poster img {
  transform: scale(1.05);
}

/* المحتوى */
.topic-content {
  padding: 15px;
}

.topic-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: #333;
}

.topic-description {
  font-size: 0.9rem;
  color: #555;
}

/* الباج */
.topic-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--secondary-color);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}
.contact-box {
    text-align: center;
}

.contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    border-radius: 50px;
    color: #fff;
    font-size: 16px;
    text-decoration: none;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.contact-btn i {
    font-size: 20px;
}

.contact-btn.whatsapp {
    background: #25D366;
}

.contact-btn.telegram {
    background: #0088cc;
}

.contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}
/* ==========================
   Search Bar
   ========================== */
.search-bar {
    max-width: 500px;
    margin: 30px auto;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 12px 40px 12px 15px;
    font-size: 1rem;
    border-radius: 50px;
    border: 1px solid #ccc;
    outline: none;
}

.search-bar i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #0d7377;
}
/* ===== BLS Card Content ===== */

.bls-content {
    display: none;
    margin-top: 40px;
    padding: 30px;
    background: #f9fafb;
    border-radius: 16px;
}

.topic-video iframe {
    width: 100%;
    height: 450px;
    border-radius: 16px;
}

.bls-files {
    text-align: center;
}

.bls-files img {
    max-width: 220px;
    margin-bottom: 20px;
}

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

.bls-download-btn {
    background: #0d6efd;
    color: #fff;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
}

.bls-download-btn:hover {
    background: #084298;
}
.topic-details {
  display: none;
  margin-top: 60px;
}

.fluids-card {
  max-width: 300px;
  aspect-ratio: 1 / 1;
}
/* ===== HERO QUIZ BUTTON ===== */
.hero-quiz-btn {
  display: inline-block;
  margin-top: 25px;
  padding: 14px 35px;
  background: linear-gradient(135deg, #0d6efd, #2563eb);
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  border-radius: 40px;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(13,110,253,0.4);
  transition: 0.3s ease;
}

.hero-quiz-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(13,110,253,0.55);
}

/* ===== NCLEX QUIZ BUTTON ===== */
.hero-quiz-btn {
  margin-top: 25px;
  display: inline-block;
  background: linear-gradient(135deg, #0077ff, #00c6ff);
  color: #fff;
  padding: 16px 40px;
  border-radius: 50px;
  font-weight: 800;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0,119,255,0.35);
  transition: all 0.3s ease;
}

.hero-quiz-btn:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 15px 35px rgba(0,119,255,0.45);
}

.hero-quiz-btn:active {
  transform: scale(0.96);
}

/* ===== QUIZ OVERLAY ===== */
.quiz-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  overflow: auto;
}

/* ===== QUIZ MODAL ===== */
.quiz-modal {
  background: linear-gradient(135deg, #6a11cb, #2575fc); /* لون ملون */
  color: #fff;
  padding: 25px 30px;
  border-radius: 12px;
  max-width: 800px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  position: relative;
  transition: all 0.3s;
}

/* ===== CLOSE BUTTON ===== */
.quiz-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 24px;
  cursor: pointer;
  color: #fff;
}

/* ===== QUIZ OPTIONS ===== */
.quiz-options {
  list-style: none;
  padding: 0;
  margin: 15px 0;
}

.quiz-options li {
  margin: 10px 0;
  padding: 12px 15px;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.4);
  transition: all 0.3s;
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.quiz-options li:hover {
  background: rgba(255,255,255,0.3);
  transform: translateY(-2px);
}

.quiz-options li.correct {
  background: #4CAF50 !important;
  color: #fff !important;
}

.quiz-options li.wrong {
  background: #F44336 !important;
  color: #fff !important;
}

/* ===== BUTTONS ===== */
.quiz-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.quiz-buttons button {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  color: #fff;
  background: rgba(0,0,0,0.3);
  transition: all 0.3s;
}

.quiz-buttons button:hover {
  background: rgba(0,0,0,0.6);
}

.quiz-buttons button:active {
  transform: scale(0.95);
}

.faq-item {
  border-radius: 12px;
  margin-bottom: 15px;
  background: #ffffff;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  overflow: hidden;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 18px 20px;
}

.faq-question h3 {
  margin: 0;
  font-size: 18px;
}

.faq-question i {
  transition: transform 0.3s ease;
}

.faq-question i.rotate {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  padding: 0 20px;
}

.faq-answer p {
  margin: 15px 0;
  color: #555;
}
/* ===== STANDALONE NAVBAR ===== */

.header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  background: #fff;
  z-index: 99999;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.nav ul {
  display: flex;
  gap: 25px;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
}

/* MOBILE */
@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
    z-index: 100000;
  }

  .nav {
    position: absolute;
    top: 70px;
    right: 0;
    left: 0;
    background: #fff;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav.active {
    max-height: 300px;
  }

  .nav ul {
    flex-direction: column;
    padding: 20px;
  }
}

/* تحسين Navbar للشاشات الكبيرة */
@media (min-width: 992px) {
    .navbar .nav-wrapper {
        display: flex;
        justify-content: space-between; /* يبعد الشعار عن الروابط */
        align-items: center;
        padding: 15px 60px; /* تعديل المسافة الجانبية */
    }

    .navbar .nav-links {
        display: flex;
        gap: 30px; /* مسافة بين الروابط */
    }

    .navbar .nav-links li a {
        font-size: 18px; /* تكبير الخط قليلاً */
        padding: 10px 15px;
    }

    .navbar .nav-cta {
        padding: 10px 25px;
        font-size: 16px;
    }

    /* اخفاء زر الموبايل على الديسكتوب */
    .mobile-menu-toggle {
        display: none;
    }
}
.navbar .logo {
    font-size: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar .logo i {
    font-size: 28px; /* أيقونة أكبر شوي */
    color: #007bff; /* لون متناسق مع التصميم */
}
@media (min-width: 992px) {
    .navbar .nav-links li {
        margin: 0; /* يضمن توزيع منتظم */
    }
}
.nav-list {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
}

.nav-link {
    font-family: 'Cairo', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #1f2933;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #2563eb;
}

/* خط صغير تحت الرابط */
.nav-link::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #2563eb;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* زر ابدأ الآن */
.nav-cta {
    margin-right: 20px;
}

.btn-primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    padding: 10px 22px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.35);
}
.btn-dashboard {
    font-size: 24px;
    color: #fff;
    background: #0d7377;
    border-radius: 50%;
    padding: 8px 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.btn-dashboard:hover {
    background: #14a085;
}
