/* منارة المعلم — هوية: زمردي عميق وذهبي على عاجي */
:root {
    --ink: #123f38;
    --ink-2: rgb(18 63 56 / 0.72);
    --ink-3: rgb(18 63 56 / 0.5);
    --hairline: rgb(18 63 56 / 0.12);
    --gold: #a8792a;
    --gold-dark: #8a6420;
    --gold-bright: #ecc271;
    --card: #fffdf6;
    --ground: #ece5d2;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    background: var(--ground);
    color: var(--ink);
    font-family: 'Tajawal', 'Segoe UI', sans-serif;
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
.wrap {
    max-width: 680px;
    margin: 0 auto;
    padding: 20px 16px 48px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}
h1, h2, h3, .display { font-family: 'Cairo', 'Tajawal', sans-serif; }
a { color: var(--ink); }
img { max-width: 100%; }

/* الترويسة: شريط زمردي داكن */
.hero {
    background: linear-gradient(155deg, #0d332d 0%, #14524a 60%, #1a6357 100%);
    border-radius: 20px;
    padding: 30px 24px;
    box-shadow: 0 12px 32px rgb(13 51 45 / 0.25);
}
.hero-title {
    margin: 0 0 6px;
    color: #f7f2e3;
    font-size: 40px;
    font-weight: 800;
    line-height: 1.25;
}
.hero-fact {
    margin: 0 0 14px;
    color: var(--gold-bright);
    font-weight: 700;
    font-size: 18px;
}
.hero-intro {
    margin: 0;
    color: rgb(247 242 227 / 0.88);
    font-size: 16px;
    line-height: 1.8;
}

/* صورة الغلاف */
.cover {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgb(13 51 45 / 0.18);
}
.cover img { display: block; width: 100%; height: auto; }

/* عناوين المجموعات */
.group-label {
    margin: 0 0 2px;
    color: var(--ink-3);
    font-size: 14px;
    font-weight: 500;
}
.group-heading {
    margin: 0 0 16px;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.3;
}

/* بطاقات الأقسام */
.section-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--card);
    border: 1px solid var(--hairline);
    border-radius: 18px;
    padding: 22px 20px;
    box-shadow: 0 4px 18px rgb(18 63 56 / 0.07);
    color: inherit;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s;
}
a.section-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgb(18 63 56 / 0.14);
}
.section-card + .section-card { margin-top: 14px; }
.badge {
    align-self: flex-start;
    background: rgb(168 121 42 / 0.14);
    color: var(--gold-dark);
    font-weight: 700;
    font-size: 13px;
    padding: 3px 12px;
    border-radius: 999px;
}
.section-title {
    font-family: 'Cairo', 'Tajawal', sans-serif;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.35;
}
.section-about { color: var(--ink-2); line-height: 1.7; font-size: 16px; }
.section-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
    font-weight: 700;
}
.section-count { color: var(--gold); }
.section-go { color: var(--ink); }
.section-soon {
    background: transparent;
    border-style: dashed;
    border-color: rgb(18 63 56 / 0.25);
    box-shadow: none;
}
.section-soon .section-title { color: rgb(18 63 56 / 0.6); }
.section-soon .section-about { color: rgb(18 63 56 / 0.55); }

/* خطوات مرقمة */
.steps { list-style: none; margin: 0; padding: 0; }
.steps li {
    display: flex;
    gap: 14px;
    align-items: baseline;
    padding: 12px 0;
    border-bottom: 1px solid var(--hairline);
    color: var(--ink-2);
}
.steps li:last-child { border-bottom: none; }
.step-n { color: var(--gold); font-weight: 700; flex: none; }

/* بطاقة مقدم المحتوى */
.presenter {
    background: linear-gradient(150deg, rgb(168 121 42 / 0.14), rgb(168 121 42 / 0.05));
    border: 1px solid rgb(168 121 42 / 0.3);
    border-radius: 18px;
    padding: 20px;
}
.presenter-row { display: flex; align-items: center; gap: 16px; }
.avatar {
    width: 96px;
    height: 96px;
    border-radius: 999px;
    object-fit: cover;
    object-position: top;
    border: 2.5px solid var(--gold);
    flex: none;
}
.presenter-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.presenter-label { color: var(--gold-dark); font-weight: 700; font-size: 13px; }
.presenter-name {
    font-family: 'Cairo', 'Tajawal', sans-serif;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.3;
}
.presenter-role { color: var(--ink-2); line-height: 1.6; font-size: 15px; }

/* تنبيهات */
.callout { margin: 0 0 16px; }
.callout-title { font-weight: 800; font-size: 18px; margin: 0 0 4px; font-family: 'Cairo', 'Tajawal', sans-serif; }
.callout p { margin: 0; color: var(--ink-2); }

/* بطاقات المواد */
.course {
    background: var(--card);
    border: 1px solid rgb(18 63 56 / 0.1);
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 4px 18px rgb(18 63 56 / 0.07);
}
.course + .course { margin-top: 16px; }
.course-title {
    margin: 10px 0 8px;
    font-size: 23px;
    font-weight: 800;
    line-height: 1.35;
}
.course-about { margin: 0 0 14px; color: var(--ink-2); line-height: 1.7; font-size: 16px; }

/* حقائق: صفوف تسمية/قيمة */
.facts { margin: 0 0 16px; }
.fact-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid var(--hairline);
}
.fact-row:last-child { border-bottom: none; }
.fact-label { color: var(--ink-3); }
.fact-value { font-weight: 700; }

/* أزرار حبوب */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    min-height: 46px;
    padding: 0 24px;
    font-weight: 700;
    font-size: 16px;
    font-family: 'Tajawal', sans-serif;
    text-decoration: none;
    border: 1.5px solid rgb(18 63 56 / 0.35);
    color: var(--ink);
    background: transparent;
    transition: transform 0.12s;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
    background: var(--ink);
    border-color: var(--ink);
    color: #f6f1e4;
}
.btn .ext { font-size: 14px; transform: scaleX(-1); display: inline-block; }

/* زر رجوع */
.back-row { margin-top: -10px; }

/* الخاتمة */
.closing {
    color: var(--ink-3);
    font-size: 14px;
    text-align: center;
    padding-top: 8px;
}

@media (max-width: 400px) {
    .hero-title { font-size: 34px; }
    .group-heading { font-size: 25px; }
}
