:root {
    --blue-accent: #0038ff;
    --blue-accent-hover: #002cc7;
    --navy-dark: #131c2e;
    --navy-hover: #1e2b45;
    --gray-section-bg: #cfcfcf;
    --gray-card-bg: #e8e8e8;
    --course-card-bg: #efefef;
    --text-dark: #111111;
    --text-muted: #555555;
    --font-main: 'Tajawal', 'Cairo', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-main);
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #ffffff;
    color: var(--text-dark);
    overflow-x: hidden;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==================== 1. الواجهة الرئيسية (Hero) ==================== */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 620px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    color: #ffffff;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 25%;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        270deg,
        rgba(10, 8, 8, 0.78) 0%,
        rgba(15, 12, 12, 0.45) 55%,
        rgba(15, 12, 12, 0.35) 100%
    );
    z-index: 2;
}

/* الشريط العلوي */
.navbar {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 48px;
}

.nav-pills {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.pill-link {
    text-decoration: none;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 8px 26px;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.25s ease;
}

.pill-link:hover,
.pill-link.active {
    background: rgba(255, 255, 255, 0.36);
    transform: translateY(-1px);
}

.brand-logo {
    display: flex;
    align-items: center;
    opacity: 0.9;
    transition: opacity 0.2s;
}

.brand-logo:hover {
    opacity: 1;
}

/* محتوى البانر الرئيسي */
.hero-content {
    position: relative;
    z-index: 10;
    padding: 0 64px 110px;
    max-width: 700px;
    margin-right: 0;
    margin-left: auto;
    text-align: right;
}

.hero-content h1 {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 12px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
}

.hero-content p {
    font-size: 24px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 26px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.btn-blue {
    background-color: var(--blue-accent);
    color: #ffffff;
    border: none;
    padding: 12px 34px;
    border-radius: 999px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 56, 255, 0.45);
    transition: all 0.25s ease;
}

.btn-blue:hover {
    background-color: var(--blue-accent-hover);
    transform: translateY(-2px);
}

/* ==================== 2. قسم من أنا ؟ ==================== */
.about-section {
    background-color: #ffffff;
    padding: 140px 24px 160px;
    text-align: center;
}

.about-container {
    max-width: 680px;
    margin: 0 auto;
}

.blue-title {
    color: var(--blue-accent);
    font-size: 46px;
    font-weight: 800;
    margin-bottom: 36px;
}

.about-desc {
    font-size: 25px;
    line-height: 1.65;
    color: #2b2b2b;
    font-weight: 500;
}

/* ==================== 3. قسم مقالاتي ==================== */
.articles-section {
    background-color: var(--gray-section-bg);
    padding: 72px 0 90px;
}

.section-heading {
    text-align: center;
    font-size: 44px;
    font-weight: 800;
    color: #0f0f0f;
    margin-bottom: 56px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 44px;
    row-gap: 48px;
    max-width: 820px;
    margin: 0 auto;
}

.article-card {
    cursor: pointer;
    transition: transform 0.25s ease;
}

.article-card:hover {
    transform: translateY(-4px);
}

.article-thumb {
    width: 100%;
    height: 195px;
    border-radius: 18px;
    overflow: hidden;
    background-color: #e4e4e4;
    margin-bottom: 16px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* بطاقات مصغرة تحاكي مستندات المقالات في الصورة */
.dark-doc-thumb {
    background-color: #161616;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.mini-doc-preview {
    background: #8b261d;
    color: #fff;
    width: 62%;
    height: 100%;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px;
    font-size: 11px;
}

.pink-doc-thumb {
    background-color: #ebc2d3;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.mini-paper-preview {
    background: #f5f5f5;
    width: 58%;
    height: 100%;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.article-card h3 {
    font-size: 20px;
    font-weight: 500;
    color: #222222;
    line-height: 1.45;
    text-align: right;
}

/* ==================== 4. قسم دوراتي ==================== */
.courses-section {
    background-color: #ffffff;
    padding: 76px 0 96px;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 48px;
    row-gap: 38px;
    max-width: 820px;
    margin: 0 auto;
}

.course-card {
    background-color: var(--course-card-bg);
    border-radius: 26px;
    padding: 14px 14px 28px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
}

.course-img-wrap {
    width: 100%;
    height: 245px;
    background-color: #090909;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 24px;
}

.course-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-body {
    padding: 0 14px;
    text-align: right;
}

.course-body h3 {
    font-size: 21px;
    font-weight: 500;
    color: #1f1f1f;
    margin-bottom: 12px;
}

.course-price {
    display: inline-block;
    font-size: 21px;
    font-weight: 600;
    color: #2c4a9e;
    direction: ltr;
}

/* ==================== 5. قسم خدماتي ==================== */
.services-section {
    background-color: var(--gray-section-bg);
    padding: 72px 0 90px;
}

.services-stack {
    display: flex;
    flex-direction: column;
    gap: 28px;
    max-width: 780px;
    margin: 0 auto;
}

.service-box {
    background-color: var(--gray-card-bg);
    border-radius: 26px;
    padding: 46px 28px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.25s ease, background-color 0.25s ease;
}

.service-box:hover {
    transform: translateY(-3px);
    background-color: #f2f2f2;
}

.service-box h3 {
    font-size: 30px;
    font-weight: 800;
    color: #111111;
    margin-bottom: 16px;
}

.service-box p {
    font-size: 19px;
    color: #2b2b2b;
    font-weight: 500;
}

/* ==================== 6. قسم الدعوة لاتخاذ إجراء والتذييل ==================== */
.cta-section {
    background-color: #ffffff;
    padding: 130px 24px 140px;
    text-align: center;
}

.cta-content {
    max-width: 650px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 46px;
    font-weight: 800;
    color: var(--navy-dark);
    line-height: 1.3;
    margin-bottom: 24px;
}

.cta-content p {
    font-size: 21px;
    color: #6c727f;
    margin-bottom: 38px;
}

.btn-navy {
    background-color: var(--navy-dark);
    color: #ffffff;
    border: none;
    padding: 18px 68px;
    border-radius: 12px;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.25s ease, transform 0.25s ease;
}

.btn-navy:hover {
    background-color: var(--navy-hover);
    transform: translateY(-2px);
}

.site-footer {
    background-color: var(--navy-dark);
    color: #ffffff;
    text-align: center;
    padding: 34px 20px;
    font-size: 17px;
}

/* ==================== النافذة المنبثقة (Modal) ==================== */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    padding: 20px;
}

.modal-backdrop.active {
    display: flex;
}

.modal-box {
    background: #ffffff;
    border-radius: 20px;
    padding: 32px 28px;
    width: 100%;
    max-width: 420px;
    position: relative;
    text-align: right;
}

.close-modal {
    position: absolute;
    top: 16px;
    left: 20px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #555;
}

.modal-box h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--navy-dark);
}

.modal-box p {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.modal-box form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-box input,
.modal-box textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 15px;
    outline: none;
}

.modal-box input:focus,
.modal-box textarea:focus {
    border-color: var(--blue-accent);
}

.w-100 {
    width: 100%;
}

/* ==================== التجاوب مع الشاشات الصغيرة ==================== */
@media (max-width: 768px) {
    .navbar {
        padding: 20px;
        flex-direction: column-reverse;
        gap: 16px;
    }

    .nav-pills {
        justify-content: center;
        gap: 8px;
    }

    .pill-link {
        padding: 6px 16px;
        font-size: 13px;
    }

    .hero-content {
        padding: 0 24px 64px;
    }

    .hero-content h1 {
        font-size: 42px;
    }

    .hero-content p {
        font-size: 18px;
    }

    .articles-grid,
    .courses-grid {
        grid-template-columns: 1fr;
    }

    .cta-content h2 {
        font-size: 34px;
    }
}