* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Tahoma, Arial, sans-serif;
}

html,
body {
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
}

body {
    position: static;
    background: #f8fafc;
    color: #0f172a;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}


/* =========================
   Header
========================= */

.main-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-box {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
    color: #2563eb;
}

.logo-box img {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

nav {
    display: flex;
    align-items: center;
    gap: 22px;
    font-size: 15px;
    font-weight: 600;
}

nav a {
    color: #334155;
}

.login-link {
    background: #2563eb;
    color: #ffffff !important;
    padding: 10px 18px;
    border-radius: 14px;
}


/* =========================
   Home Ads Banner
========================= */

.ads-section {
    padding: 12px 0;
    background: #f8fafc;
}

/*
 * نجعل الإعلان أصغر من محتوى الصفحة
 * حتى يظهر كشريط إعلاني وليس كقسم رئيسي.
 */
.ads-section .container {
    width: 90%;
    max-width: 900px;
    margin: 0 auto;
}

.ads-slider {
    width: 100%;
    overflow: hidden;
    border-radius: 16px;
}

.ad-banner {
    display: none;
    width: 100%;
    line-height: 0;
}

.ad-banner.active {
    display: block;
}

.ad-banner img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 16px;
}

/*
 * نقاط التنقل بين الإعلانات
 */
.ads-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    margin-top: 8px;
}

.ad-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #cbd5e1;
    cursor: pointer;
}

.ad-dot.active {
    width: 24px;
    border-radius: 20px;
    background: #2563eb;
}


/* =========================
   Hero
========================= */

.hero {
    min-height: 680px;

    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(37, 99, 235, .16),
            transparent 28%
        ),
        radial-gradient(
            circle at 85% 10%,
            rgba(124, 58, 237, .14),
            transparent 25%
        ),
        linear-gradient(
            135deg,
            #eff6ff,
            #ffffff 55%,
            #f5f3ff
        );

    display: flex;
    align-items: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 50px;
    align-items: center;
}

.badge {
    display: inline-block;
    background: #dbeafe;
    color: #1d4ed8;
    padding: 9px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 48px;
    line-height: 1.35;
    color: #0f172a;
    margin-bottom: 20px;
}

.hero p {
    font-size: 18px;
    line-height: 2;
    color: #475569;
    max-width: 620px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn {
    padding: 14px 26px;
    border-radius: 16px;
    font-weight: 800;
    display: inline-block;
}

.btn.primary {
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 14px 30px rgba(37, 99, 235, .25);
}

.btn.secondary {
    background: #ffffff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}


/* =========================
   Hero Card
========================= */

.hero-card {
    background: #ffffff;
    border-radius: 32px;
    padding: 28px;
    box-shadow: 0 25px 60px rgba(15, 23, 42, .12);
    border: 1px solid #e5e7eb;
}

.card-title {
    font-size: 22px;
    font-weight: 900;
    margin-bottom: 22px;
    color: #1e293b;
}

.student-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
    padding: 16px 18px;
    border-radius: 18px;
    margin-bottom: 14px;
    font-size: 17px;
}

.student-row.first {
    background: #fff7ed;
    border: 1px solid #fed7aa;
}

.student-row strong {
    color: #2563eb;
}

.mini-note {
    margin-top: 20px;
    background: #ecfeff;
    color: #0f766e;
    padding: 14px;
    border-radius: 16px;
    text-align: center;
    font-weight: 700;
}


/* =========================
   Features
========================= */

.features-section {
    padding: 80px 0;
    background: #ffffff;
}

.features-section h2,
.pricing-section h2,
.cta-section h2 {
    text-align: center;
    font-size: 34px;
    margin-bottom: 12px;
}

.section-desc {
    text-align: center;
    color: #64748b;
    font-size: 17px;
    margin-bottom: 40px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.feature-card {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    padding: 25px;
    text-align: center;
}

.feature-card .icon {
    font-size: 38px;
    margin-bottom: 14px;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #1e293b;
}

.feature-card p {
    color: #64748b;
    line-height: 1.8;
    font-size: 15px;
}


/* =========================
   Pricing
========================= */

.pricing-section {
    padding: 70px 0;
    background: #f1f5f9;
}

.pricing-box {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    align-items: center;
}

.pricing-box h2 {
    text-align: right;
}

.pricing-box p {
    color: #64748b;
    font-size: 18px;
    line-height: 1.9;
}

.price-card {
    background: #ffffff;
    border-radius: 28px;
    padding: 28px;
    text-align: center;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .10);
}

.price-card span {
    color: #64748b;
    font-weight: 700;
}

.price-card strong {
    display: block;
    font-size: 30px;
    color: #2563eb;
    margin: 15px 0 22px;
}

.price-card a {
    display: block;
    background: #2563eb;
    color: #ffffff;
    padding: 14px;
    border-radius: 16px;
    font-weight: 800;
}

.free-month {
    display: block;
    margin-top: 8px;
    color: #16a34a;
    font-size: 15px;
    font-weight: bold;
}


/* =========================
   CTA
========================= */

.cta-section {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(
        135deg,
        #1d4ed8,
        #7c3aed
    );
    color: #ffffff;
}

.cta-section p {
    margin: 12px 0 28px;
    font-size: 18px;
    color: #e0e7ff;
}

.cta-section .btn.primary {
    background: #ffffff;
    color: #2563eb;
}


/* =========================
   Footer
========================= */

footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 25px 0;
    font-size: 14px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.footer-links a {
    color: #cbd5e1;
    font-size: 14px;
}

.footer-links a:hover {
    color: #ffffff;
}


/* =========================
   Tablet
========================= */

@media (max-width: 900px) {

    .header-content {
        height: auto;
        padding: 15px 0;
        flex-direction: column;
        gap: 15px;
    }

    nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .hero {
        padding: 55px 0;
        min-height: auto;
    }

    .hero-content,
    .pricing-box {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 34px;
    }

    .hero p {
        font-size: 16px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .pricing-box h2 {
        text-align: center;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}


/* =========================
   Mobile Ads
========================= */

@media (max-width: 768px) {

    .ads-section {
        padding: 8px 0;
    }

    .ads-section .container {
        width: 94%;
        max-width: none;
    }

    .ads-slider {
        border-radius: 10px;
    }

    .ad-banner img {
        width: 100%;
        height: auto;
        border-radius: 10px;
    }

    .ads-dots {
        margin-top: 6px;
    }
}