/* =============================================
   ARABYATI — Main Stylesheet
   Palette: Deep Lapis #1A2B4A | Gold #C8963E | Ivory #FBF7F0 | Sand #E8DFD0 | Slate #6B7A94
   Typography: Cairo (AR) | Poppins (EN/NL) | Amiri (display)
   Signature: Geometric Arabic-pattern ribbon dividers + gold ink animation on hero
============================================= */

/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --lapis:   #1A2B4A;
    --lapis-l: #243a62;
    --gold:    #C8963E;
    --gold-l:  #e0ae58;
    --ivory:   #FBF7F0;
    --sand:    #E8DFD0;
    --slate:   #6B7A94;
    --white:   #ffffff;
    --danger:  #c0392b;
    --success: #27ae60;

    --r: 10px;
    --r-lg: 18px;
    --shadow: 0 4px 24px rgba(26,43,74,.10);
    --shadow-lg: 0 8px 40px rgba(26,43,74,.16);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Cairo', 'Poppins', sans-serif;
    background: var(--ivory);
    color: var(--lapis);
    line-height: 1.7;
    min-height: 100vh;
}

body.lang-ar { font-family: 'Cairo', sans-serif; }
body.lang-en, body.lang-nl { font-family: 'Poppins', 'Cairo', sans-serif; }

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ─── Buttons ─── */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 28px; border-radius: var(--r);
    font-size: .95rem; font-weight: 600; cursor: pointer;
    transition: all .25s ease; border: 2px solid transparent;
}
.btn-primary { background: var(--gold); color: var(--white); }
.btn-primary:hover { background: var(--gold-l); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(200,150,62,.35); }
.btn-outline { background: transparent; color: var(--gold); border-color: var(--gold); }
.btn-outline:hover { background: var(--gold); color: var(--white); }
.btn-lapis { background: var(--lapis); color: var(--white); }
.btn-lapis:hover { background: var(--lapis-l); }
.btn-full { width: 100%; justify-content: center; }

/* ─── Navbar ─── */
.navbar {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    background: rgba(26,43,74,.96); backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(200,150,62,.2);
}
.nav-container {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center; gap: 32px;
    padding: 0 24px; height: 70px;
}
.nav-logo {
    display: flex; flex-direction: column; line-height: 1;
    text-decoration: none; flex-shrink: 0;
}
.logo-ar {
    font-family: 'Amiri', serif; font-size: 1.4rem;
    color: var(--gold); letter-spacing: .02em;
}
.logo-en {
    font-size: .55rem; letter-spacing: .25em; color: rgba(255,255,255,.5);
    font-family: 'Poppins', sans-serif;
}
.nav-links {
    display: flex; align-items: center; gap: 4px;
    flex: 1; justify-content: center;
}
.nav-links a {
    color: rgba(255,255,255,.8); padding: 8px 16px;
    border-radius: 8px; font-size: .9rem; font-weight: 500;
    transition: all .2s;
}
.nav-links a:hover, .nav-links a.active {
    color: var(--gold); background: rgba(200,150,62,.12);
}
.nav-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

/* Lang Switcher */
.lang-switcher { position: relative; }
.lang-btn {
    display: flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
    color: rgba(255,255,255,.85); padding: 7px 14px; border-radius: 8px;
    font-size: .85rem; font-weight: 600; cursor: pointer; font-family: inherit;
    transition: all .2s;
}
.lang-btn:hover { background: rgba(200,150,62,.2); border-color: var(--gold); color: var(--gold); }
.lang-dropdown {
    display: none; position: absolute; top: calc(100% + 8px);
    background: var(--lapis); border: 1px solid rgba(200,150,62,.2);
    border-radius: var(--r); overflow: hidden; min-width: 150px;
    box-shadow: var(--shadow-lg);
}
.dir-rtl .lang-dropdown { right: 0; }
.dir-ltr .lang-dropdown { left: 0; }
.lang-dropdown.open { display: block; }
.lang-dropdown a {
    display: block; padding: 10px 16px; color: rgba(255,255,255,.8);
    font-size: .88rem; transition: all .15s;
}
.lang-dropdown a:hover, .lang-dropdown a.active {
    background: rgba(200,150,62,.15); color: var(--gold);
}
.btn-register {
    background: var(--gold); color: var(--white); padding: 9px 20px;
    border-radius: 8px; font-size: .88rem; font-weight: 600;
    transition: all .2s;
}
.btn-register:hover { background: var(--gold-l); transform: translateY(-1px); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: white; margin: 5px 0; border-radius: 2px; transition: .3s; }

/* ─── Hero ─── */
.hero {
    min-height: 100vh; display: flex; align-items: center;
    background: linear-gradient(135deg, var(--lapis) 0%, #0f1e35 60%, #1a2b4a 100%);
    position: relative; overflow: hidden; padding-top: 70px;
}
/* Geometric pattern overlay — signature element */
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23C8963E' stroke-width='.4' opacity='.18'%3E%3Cpolygon points='40,4 76,22 76,58 40,76 4,58 4,22'/%3E%3Cpolygon points='40,14 66,28 66,52 40,66 14,52 14,28'/%3E%3Cline x1='40' y1='4' x2='40' y2='76'/%3E%3Cline x1='4' y1='22' x2='76' y2='58'/%3E%3Cline x1='76' y1='22' x2='4' y2='58'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 80px 80px;
    pointer-events: none;
}
.hero-container {
    max-width: 1200px; margin: 0 auto; padding: 80px 24px;
    display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
    position: relative; z-index: 1;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(200,150,62,.15); border: 1px solid rgba(200,150,62,.3);
    color: var(--gold); padding: 6px 16px; border-radius: 50px;
    font-size: .82rem; font-weight: 600; margin-bottom: 24px;
    animation: fadeInDown .6s ease;
}
.hero-title {
    font-family: 'Amiri', serif; font-size: clamp(2rem, 4vw, 3.2rem);
    color: var(--white); line-height: 1.25; margin-bottom: 20px;
    animation: fadeInUp .7s ease;
}
.hero-title span { color: var(--gold); }
.hero-sub {
    color: rgba(255,255,255,.7); font-size: 1.05rem;
    margin-bottom: 36px; max-width: 480px;
    animation: fadeInUp .8s ease;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; animation: fadeInUp .9s ease; }

/* Hero stats */
.hero-stats {
    display: grid; grid-template-columns: repeat(2,1fr); gap: 16px;
    margin-top: 48px; animation: fadeInUp 1s ease;
}
.stat-box {
    background: rgba(255,255,255,.06); border: 1px solid rgba(200,150,62,.15);
    border-radius: var(--r); padding: 20px 16px; text-align: center;
    transition: all .3s;
}
.stat-box:hover { background: rgba(200,150,62,.12); border-color: rgba(200,150,62,.4); }
.stat-num { font-size: 2rem; font-weight: 900; color: var(--gold); display: block; }
.stat-label { font-size: .8rem; color: rgba(255,255,255,.6); margin-top: 4px; }

/* Hero visual */
.hero-visual { position: relative; animation: fadeInRight .8s ease; }
.hero-img-wrap {
    border-radius: var(--r-lg); overflow: hidden;
    border: 3px solid rgba(200,150,62,.3);
    box-shadow: 0 24px 60px rgba(0,0,0,.4);
}
.hero-img-wrap img { width: 100%; height: 420px; object-fit: cover; }
.hero-card {
    position: absolute; background: white; border-radius: var(--r);
    padding: 14px 18px; box-shadow: var(--shadow-lg);
    display: flex; align-items: center; gap: 10px;
    animation: float 3s ease-in-out infinite;
}
.hero-card-1 { bottom: -20px; left: -24px; }
.hero-card-2 { top: 20px; right: -24px; animation-delay: 1.5s; }
.hero-card-icon { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.hero-card-icon.gold { background: rgba(200,150,62,.15); }
.hero-card-icon.blue { background: rgba(26,43,74,.1); }
.hero-card h5 { font-size: .8rem; font-weight: 700; color: var(--lapis); }
.hero-card p { font-size: .72rem; color: var(--slate); }

@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }
@keyframes fadeInUp { from{opacity:0;transform:translateY(24px)} to{opacity:1;transform:translateY(0)} }
@keyframes fadeInDown { from{opacity:0;transform:translateY(-16px)} to{opacity:1;transform:translateY(0)} }
@keyframes fadeInRight { from{opacity:0;transform:translateX(32px)} to{opacity:1;transform:translateX(0)} }

/* ─── Section Layout ─── */
.section { padding: 90px 0; }
.section-alt { background: var(--sand); }
.section-dark { background: var(--lapis); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-head { text-align: center; margin-bottom: 56px; }
.section-label {
    display: inline-block; background: rgba(200,150,62,.12);
    color: var(--gold); font-size: .78rem; font-weight: 700;
    letter-spacing: .1em; text-transform: uppercase;
    padding: 5px 14px; border-radius: 50px; margin-bottom: 14px;
}
.section-title { font-family: 'Amiri', serif; font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.3; }
.section-dark .section-title { color: var(--white); }
.section-sub { color: var(--slate); margin-top: 10px; font-size: .95rem; }
.section-dark .section-sub { color: rgba(255,255,255,.6); }

/* ─── Arabic Divider ─── (signature) */
.divider-geo {
    display: flex; align-items: center; gap: 16px; margin: 48px 0;
}
.divider-geo::before, .divider-geo::after {
    content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.divider-geo-icon { color: var(--gold); font-size: 1.2rem; flex-shrink: 0; }

/* ─── Course Cards ─── */
.courses-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 28px; }
.course-card {
    background: var(--white); border-radius: var(--r-lg);
    overflow: hidden; box-shadow: var(--shadow);
    transition: all .3s ease; border: 1px solid rgba(26,43,74,.06);
    display: flex; flex-direction: column;
}
.course-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.course-thumb { position: relative; overflow: hidden; }
.course-thumb img { width: 100%; height: 210px; object-fit: cover; transition: transform .4s; }
.course-card:hover .course-thumb img { transform: scale(1.05); }
.course-badge {
    position: absolute; top: 14px;
    background: var(--gold); color: white;
    padding: 4px 12px; border-radius: 50px; font-size: .78rem; font-weight: 700;
}
.dir-rtl .course-badge { right: 14px; }
.dir-ltr .course-badge { left: 14px; }
.level-badge {
    position: absolute; bottom: 14px;
    padding: 4px 12px; border-radius: 50px;
    font-size: .75rem; font-weight: 600;
}
.dir-rtl .level-badge { left: 14px; }
.dir-ltr .level-badge { right: 14px; }
.level-beginner { background: rgba(39,174,96,.9); color: white; }
.level-intermediate { background: rgba(243,156,18,.9); color: white; }
.level-advanced { background: rgba(192,57,43,.9); color: white; }

.course-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.course-instructor-row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.course-instructor-row img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.course-instructor-row span { font-size: .78rem; color: var(--slate); font-weight: 500; }
.course-title { font-size: 1.1rem; font-weight: 700; color: var(--lapis); margin-bottom: 8px; }
.course-desc { font-size: .88rem; color: var(--slate); line-height: 1.6; margin-bottom: 16px; flex: 1; }
.course-meta {
    display: flex; gap: 16px; padding: 12px 0; border-top: 1px solid var(--sand);
    margin-bottom: 16px;
}
.course-meta-item { display: flex; align-items: center; gap: 5px; font-size: .8rem; color: var(--slate); }
.course-meta-item svg { color: var(--gold); flex-shrink: 0; }
.course-footer { display: flex; align-items: center; justify-content: space-between; }
.course-price { font-size: 1.4rem; font-weight: 900; color: var(--lapis); }
.course-price.free { color: var(--success); }
.course-actions { display: flex; gap: 8px; }
.btn-sm { padding: 8px 16px; font-size: .82rem; }

/* ─── Course Detail ─── */
.course-detail-hero {
    background: linear-gradient(135deg, var(--lapis), #0f1e35);
    color: white; padding: 120px 0 60px;
}
.course-detail-grid { display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: start; }
.course-detail-label { color: var(--gold); font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; }
.course-detail-title { font-family: 'Amiri', serif; font-size: clamp(1.8rem,3vw,2.6rem); line-height: 1.3; margin-bottom: 16px; }
.course-detail-desc { color: rgba(255,255,255,.75); font-size: 1rem; line-height: 1.7; margin-bottom: 24px; }
.course-detail-stats { display: flex; gap: 24px; flex-wrap: wrap; }
.detail-stat { display: flex; align-items: center; gap: 7px; font-size: .88rem; color: rgba(255,255,255,.7); }
.detail-stat svg { color: var(--gold); }
.course-sticky-card {
    background: white; border-radius: var(--r-lg); overflow: hidden;
    box-shadow: var(--shadow-lg); position: sticky; top: 90px;
}
.sticky-img img { width: 100%; height: 200px; object-fit: cover; }
.sticky-body { padding: 24px; }
.sticky-price { font-size: 2rem; font-weight: 900; color: var(--lapis); margin-bottom: 16px; }
.sticky-price.free { color: var(--success); }
.course-includes-list { margin: 20px 0; }
.course-includes-list li { display: flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--slate); padding: 6px 0; }
.course-includes-list li svg { color: var(--gold); flex-shrink: 0; }
.course-content { padding: 60px 0; }
.curriculum-list { border: 1px solid var(--sand); border-radius: var(--r); overflow: hidden; }
.curriculum-item {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 20px; border-bottom: 1px solid var(--sand);
    font-size: .9rem; transition: background .2s;
}
.curriculum-item:last-child { border-bottom: none; }
.curriculum-item:hover { background: rgba(200,150,62,.05); }
.curriculum-num { width: 28px; height: 28px; background: var(--sand); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .75rem; font-weight: 700; color: var(--lapis); flex-shrink: 0; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 40px; }
.info-card { background: var(--ivory); border-radius: var(--r); padding: 24px; border: 1px solid var(--sand); }
.info-card h4 { font-size: 1rem; font-weight: 700; color: var(--lapis); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.info-card h4 svg { color: var(--gold); }
.info-card ul li { font-size: .88rem; color: var(--slate); padding: 5px 0; display: flex; align-items: flex-start; gap: 8px; }
.info-card ul li::before { content: '◆'; color: var(--gold); font-size: .5rem; margin-top: 7px; flex-shrink: 0; }

/* ─── Books ─── */
.books-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px; }
.book-card {
    background: var(--white); border-radius: var(--r-lg);
    overflow: hidden; box-shadow: var(--shadow);
    transition: all .3s; border: 1px solid rgba(26,43,74,.06);
}
.book-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.book-cover { position: relative; }
.book-cover img { width: 100%; height: 230px; object-fit: cover; }
.book-exclusive {
    position: absolute; top: 14px;
    background: var(--lapis); color: var(--gold);
    padding: 4px 12px; border-radius: 50px; font-size: .75rem; font-weight: 700;
}
.dir-rtl .book-exclusive { right: 14px; }
.dir-ltr .book-exclusive { left: 14px; }
.book-body { padding: 20px; }
.book-title { font-size: 1rem; font-weight: 700; color: var(--lapis); margin-bottom: 8px; }
.book-desc { font-size: .83rem; color: var(--slate); line-height: 1.55; margin-bottom: 14px; }
.book-meta { display: flex; gap: 12px; margin-bottom: 16px; }
.book-meta span { font-size: .78rem; color: var(--slate); display: flex; align-items: center; gap: 4px; }
.book-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--sand); }
.book-price { font-size: 1.3rem; font-weight: 900; color: var(--lapis); }

/* ─── Contact ─── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: start; }
.contact-info-cards { display: flex; flex-direction: column; gap: 16px; margin-bottom: 32px; }
.contact-info-card {
    display: flex; gap: 14px; align-items: flex-start;
    background: rgba(200,150,62,.06); border: 1px solid rgba(200,150,62,.15);
    border-radius: var(--r); padding: 16px 20px;
}
.contact-info-card svg { color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.contact-info-card h5 { font-size: .85rem; font-weight: 700; color: var(--lapis); margin-bottom: 3px; }
.contact-info-card p { font-size: .84rem; color: var(--slate); }
.contact-form-card { background: var(--white); border-radius: var(--r-lg); padding: 36px; box-shadow: var(--shadow); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: .88rem; font-weight: 600; color: var(--lapis); margin-bottom: 7px; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 12px 16px; border: 2px solid var(--sand);
    border-radius: var(--r); font-size: .9rem; font-family: inherit;
    color: var(--lapis); background: var(--ivory); transition: border-color .2s;
    outline: none;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--gold); }
.form-group textarea { height: 140px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.alert { padding: 14px 18px; border-radius: var(--r); margin-bottom: 20px; font-size: .9rem; font-weight: 500; }
.alert-success { background: rgba(39,174,96,.1); border: 1px solid rgba(39,174,96,.3); color: var(--success); }
.alert-error { background: rgba(192,57,43,.1); border: 1px solid rgba(192,57,43,.3); color: var(--danger); }

/* ─── Auth Pages ─── */
.auth-page {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--lapis) 0%, #0f1e35 100%);
    padding: 100px 24px 40px; position: relative; overflow: hidden;
}
.auth-page::before {
    content: '';
    position: absolute; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23C8963E' stroke-width='.4' opacity='.12'%3E%3Cpolygon points='40,4 76,22 76,58 40,76 4,58 4,22'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 80px 80px;
}
.auth-card {
    background: var(--white); border-radius: var(--r-lg);
    padding: 44px; width: 100%; max-width: 460px;
    box-shadow: 0 32px 80px rgba(0,0,0,.3);
    position: relative; z-index: 1;
}
.auth-logo { text-align: center; margin-bottom: 28px; }
.auth-logo .logo-ar { font-family: 'Amiri', serif; font-size: 2rem; color: var(--gold); display: block; }
.auth-logo .logo-en { font-size: .65rem; letter-spacing: .2em; color: var(--slate); font-family: 'Poppins', sans-serif; }
.auth-title { font-size: 1.4rem; font-weight: 700; color: var(--lapis); text-align: center; margin-bottom: 28px; }
.auth-footer { text-align: center; margin-top: 20px; font-size: .88rem; color: var(--slate); }
.auth-footer a { color: var(--gold); font-weight: 600; }

/* ─── Back Link ─── */
.back-link { display: inline-flex; align-items: center; gap: 7px; color: var(--gold); font-size: .88rem; font-weight: 600; padding: 8px 0; transition: gap .2s; }
.back-link:hover { gap: 11px; }

/* ─── Features Strip ─── */
.features-strip { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.feature-item { text-align: center; padding: 28px 16px; }
.feature-icon {
    width: 60px; height: 60px; margin: 0 auto 16px;
    background: rgba(200,150,62,.1); border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    color: var(--gold);
}
.feature-title { font-size: .95rem; font-weight: 700; color: var(--lapis); margin-bottom: 6px; }
.feature-desc { font-size: .82rem; color: var(--slate); line-height: 1.55; }

/* ─── RTL/LTR Adjustments ─── */
.dir-rtl .nav-container { flex-direction: row-reverse; }
.dir-rtl .nav-links { flex-direction: row-reverse; }
.dir-rtl .hero-container { direction: rtl; }
.dir-rtl .hero-card-1 { bottom: -20px; right: -24px; left: auto; }
.dir-rtl .hero-card-2 { top: 20px; left: -24px; right: auto; }
.dir-rtl .course-detail-grid { direction: rtl; }
.dir-rtl .contact-grid { direction: rtl; }

/* ─── Footer ─── */
.footer { background: #0f1e35; color: white; padding: 60px 0 0; }
.footer-container {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px;
    padding-bottom: 48px;
}
.footer-logo { margin-bottom: 14px; }
.footer-desc { font-size: .88rem; color: rgba(255,255,255,.55); line-height: 1.7; max-width: 300px; margin-bottom: 20px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
    width: 36px; height: 36px; background: rgba(255,255,255,.07);
    border-radius: 8px; display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,.6); transition: all .2s;
}
.footer-social a:hover { background: rgba(200,150,62,.2); color: var(--gold); }
.footer-col h4 { font-size: .88rem; font-weight: 700; color: var(--gold); margin-bottom: 16px; letter-spacing: .04em; }
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a { font-size: .85rem; color: rgba(255,255,255,.55); transition: color .2s; }
.footer-col ul li a:hover { color: var(--gold); }
.footer-contact-list { display: flex; flex-direction: column; gap: 10px; }
.footer-contact-list li { display: flex; align-items: center; gap: 8px; font-size: .84rem; color: rgba(255,255,255,.55); }
.footer-contact-list li svg { color: var(--gold); flex-shrink: 0; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.07);
    text-align: center; padding: 18px;
    font-size: .8rem; color: rgba(255,255,255,.35);
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .dir-ltr .hero-visual, .dir-rtl .hero-visual { order: -1; }
    .hero-visual { display: none; }
    .hero-btns { justify-content: center; }
    .hero-stats { max-width: 400px; margin: 48px auto 0; }
    .course-detail-grid { grid-template-columns: 1fr; }
    .course-sticky-card { position: static; }
    .features-strip { grid-template-columns: repeat(2,1fr); }
    .footer-container { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1/-1; }
}
@media (max-width: 768px) {
    .nav-links { display: none; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: rgba(26,43,74,.98); padding: 20px; gap: 4px; }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 12px 20px; border-radius: 8px; }
    .nav-toggle { display: block; }
    .courses-grid { grid-template-columns: 1fr; }
    .books-grid { grid-template-columns: 1fr 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .info-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .features-strip { grid-template-columns: 1fr 1fr; }
    .footer-container { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 480px) {
    .books-grid { grid-template-columns: 1fr; }
    .hero-stats { grid-template-columns: 1fr 1fr; }
    .auth-card { padding: 28px 20px; }
    .contact-form-card { padding: 24px 18px; }
}

/* logged-in nav link (no bg) */
.nav-links-plain {
    color: rgba(255,255,255,.8); font-size: .88rem; font-weight: 500;
    padding: 8px 12px; border-radius: 8px; transition: color .2s;
}
.nav-links-plain:hover { color: var(--gold); }

/* user dropdown reuse lang-switcher */
#userDropdown { min-width: 160px; }

/* ── Course Detail Mobile Fix ── */
@media (max-width: 900px) {
    /* Stack the two-column grid vertically */
    .course-detail-grid {
        grid-template-columns: 1fr !important;
    }

    /* Sidebar info box: unstick and show below content */
    .course-detail-grid > div:last-child,
    [style*="position:sticky"] {
        position: static !important;
    }

    /* Content body grid: single column */
    div[style*="grid-template-columns:1fr 380px"] {
        display: block !important;
    }

    /* Curriculum item: fix number + text overlap */
    .curriculum-item {
        align-items: flex-start !important;
        gap: 10px !important;
    }
    .curriculum-num {
        flex-shrink: 0 !important;
        margin-top: 2px;
    }
    .curriculum-item span {
        line-height: 1.5;
        word-break: break-word;
    }

    /* Sidebar stacked below on mobile */
    div[style*="position:sticky;top:90px"] {
        position: static !important;
        margin-top: 32px;
    }

    /* Related courses: single column on mobile */
    div[style*="grid-template-columns:repeat(2"] {
        grid-template-columns: 1fr !important;
    }
}

/* ── Navbar Mobile Fix ── */
@media (max-width: 768px) {
    .nav-container {
        flex-wrap: nowrap;
        justify-content: space-between;
        padding: 0 16px;
        gap: 8px;
    }

    /* Hide register + login text on small screens, keep lang switcher */
    .btn-register { display: none; }
    .nav-links-plain { display: none; }

    /* Lang switcher stays visible */
    .nav-actions {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-shrink: 0;
    }

    .lang-btn {
        padding: 6px 10px;
        font-size: .78rem;
    }

    /* Toggle button always on left (RTL) */
    .nav-toggle {
        display: block;
        order: -1;
    }
}

/* ══════════════════════════════════════
   MOBILE MENU — Professional Drawer
══════════════════════════════════════ */

/* Overlay */
.mob-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 998;
    backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity .3s ease;
}
.mob-overlay.open { display: block; opacity: 1; }

/* Drawer */
.mob-drawer {
    position: fixed;
    top: 0; right: -320px;
    width: 300px; height: 100vh;
    background: var(--lapis);
    z-index: 999;
    transition: right .35s cubic-bezier(.4,0,.2,1);
    display: flex; flex-direction: column;
    box-shadow: -8px 0 40px rgba(0,0,0,.3);
    overflow-y: auto;
}
.mob-drawer.open { right: 0; }

/* LTR languages */
body.dir-ltr .mob-drawer { right: auto; left: -320px; }
body.dir-ltr .mob-drawer.open { left: 0; right: auto; }

/* Drawer header */
.mob-drawer-head {
    padding: 20px;
    border-bottom: 1px solid rgba(200,150,62,.2);
    display: flex; align-items: center; justify-content: space-between;
}
.mob-drawer-logo .logo-ar { font-family:'Amiri',serif; font-size:1.4rem; color:var(--gold); display:block; }
.mob-drawer-logo .logo-sub { font-size:.48rem; letter-spacing:.22em; color:rgba(255,255,255,.35); font-family:sans-serif; }
.mob-close {
    width: 36px; height: 36px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: rgba(255,255,255,.7);
    transition: .2s;
}
.mob-close:hover { background: rgba(200,150,62,.2); color: var(--gold); }

/* User card inside drawer */
.mob-user-card {
    margin: 16px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(200,150,62,.15);
    border-radius: 12px;
    padding: 14px 16px;
    display: flex; align-items: center; gap: 12px;
}
.mob-user-avatar {
    width: 42px; height: 42px; border-radius: 50%;
    background: rgba(200,150,62,.2);
    display: flex; align-items: center; justify-content: center;
    color: var(--gold); font-weight: 800; font-size: 1rem;
    border: 2px solid rgba(200,150,62,.3); flex-shrink: 0;
}
.mob-user-name { font-size: .88rem; font-weight: 700; color: white; }
.mob-user-role { font-size: .72rem; color: rgba(255,255,255,.45); margin-top: 2px; }

/* Nav links */
.mob-nav { padding: 8px 12px; flex: 1; }
.mob-nav-label {
    font-size: .65rem; font-weight: 700;
    letter-spacing: .12em; text-transform: uppercase;
    color: rgba(255,255,255,.28);
    padding: 14px 8px 5px;
}
.mob-nav a {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 14px; border-radius: 10px;
    color: rgba(255,255,255,.7); font-size: .9rem;
    font-weight: 500; transition: .2s; margin-bottom: 2px;
    text-decoration: none;
}
.mob-nav a:hover, .mob-nav a.active {
    background: rgba(200,150,62,.12);
    color: var(--gold);
}
.mob-nav a svg { flex-shrink: 0; opacity: .75; }
.mob-nav a.active svg, .mob-nav a:hover svg { opacity: 1; }
.mob-nav-divider {
    height: 1px;
    background: rgba(255,255,255,.07);
    margin: 10px 0;
}

/* Lang selector in drawer */
.mob-lang {
    padding: 14px 16px;
    border-top: 1px solid rgba(255,255,255,.07);
}
.mob-lang-label { font-size:.72rem; color:rgba(255,255,255,.4); margin-bottom:8px; }
.mob-lang-btns { display: flex; gap: 7px; }
.mob-lang-btn {
    flex: 1; padding: 8px;
    border-radius: 8px; text-align: center;
    font-size: .78rem; font-weight: 700;
    border: 1.5px solid rgba(255,255,255,.12);
    color: rgba(255,255,255,.6);
    text-decoration: none; transition: .2s;
}
.mob-lang-btn:hover { border-color: var(--gold); color: var(--gold); }
.mob-lang-btn.active { background: var(--gold); color: white; border-color: var(--gold); }

/* Drawer footer */
.mob-drawer-footer {
    padding: 14px 16px;
    border-top: 1px solid rgba(255,255,255,.07);
}
.mob-drawer-footer a {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px; border-radius: 10px;
    color: rgba(255,255,255,.5); font-size: .86rem;
    text-decoration: none; transition: .2s;
}
.mob-drawer-footer a:hover { color: var(--gold); background: rgba(200,150,62,.08); }
.mob-logout { color: rgba(239,68,68,.8) !important; }
.mob-logout:hover { background: rgba(239,68,68,.1) !important; color: #ef4444 !important; }

/* Hamburger animation */
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Drawer hidden by default, shown on mobile only */
.mob-drawer {
    display: flex !important;
    right: -320px;
    visibility: hidden;
}
.mob-drawer.open {
    right: 0;
    visibility: visible;
}
.mob-overlay {
    display: none;
}
.mob-overlay.open {
    display: block;
}

@media (min-width: 769px) {
    .mob-drawer { display: none !important; }
    .mob-overlay { display: none !important; }
}

/* ══════════════════════════════════════
   PRICING SECTION
══════════════════════════════════════ */
.pricing-section { background: var(--ivory); }

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    max-width: 800px;
    margin: 0 auto;
}

.pricing-card {
    border-radius: 24px;
    padding: 36px 28px;
    position: relative;
    overflow: hidden;
    background: white;
    border: 2px solid var(--sand);
    box-shadow: var(--shadow);
    transition: transform .3s ease, box-shadow .3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

/* Popular card — gradient background */
.pricing-card.pricing-popular {
    background: linear-gradient(145deg, var(--from), var(--to));
    border: none;
    color: white;
}
.pricing-card.pricing-popular::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='rgba(255,255,255,.08)' stroke-width='.8'%3E%3Cpolygon points='30,3 57,17 57,43 30,57 3,43 3,17'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 60px;
    pointer-events: none;
}

.pricing-badge {
    position: absolute;
    top: 18px;
    background: rgba(255,255,255,.2);
    color: white;
    font-size: .74rem;
    font-weight: 800;
    padding: 4px 14px;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,.3);
    letter-spacing: .04em;
}
.dir-rtl .pricing-badge { right: 18px; }
.dir-ltr .pricing-badge { left: 18px; }

.pricing-icon {
    width: 64px; height: 64px;
    border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 18px;
    background: rgba(255,255,255,.15);
}
.pricing-card:not(.pricing-popular) .pricing-icon {
    background: rgba(124,58,237,.08);
}

.pricing-name {
    font-family: 'Amiri', serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--lapis);
}
.pricing-popular .pricing-name { color: white; }

.pricing-desc {
    font-size: .84rem;
    line-height: 1.6;
    margin-bottom: 22px;
    color: var(--slate);
}
.pricing-popular .pricing-desc { color: rgba(255,255,255,.75); }

.pricing-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 26px;
}
.pricing-currency {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gold);
}
.pricing-popular .pricing-currency { color: rgba(255,255,255,.8); }

.pricing-amount {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
    color: var(--lapis);
}
.pricing-popular .pricing-amount { color: white; }

.pricing-period {
    font-size: .88rem;
    color: var(--slate);
}
.pricing-popular .pricing-period { color: rgba(255,255,255,.65); }

.pricing-features {
    list-style: none;
    width: 100%;
    margin-bottom: 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: right;
}
.dir-ltr .pricing-features { text-align: left; }

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .88rem;
    color: var(--lapis);
}
.dir-ltr .pricing-features li { flex-direction: row; }
.dir-rtl .pricing-features li { flex-direction: row-reverse; justify-content: flex-end; }

.pricing-popular .pricing-features li { color: white; }
.pricing-features li svg { flex-shrink: 0; color: var(--gold); }
.pricing-popular .pricing-features li svg { color: rgba(255,255,255,.9); }

.pricing-cta {
    display: block;
    width: 100%;
    padding: 14px;
    border-radius: 14px;
    font-size: .95rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: all .25s ease;
    margin-top: auto;
    background: rgba(255,255,255,.15);
    color: white;
    border: 2px solid rgba(255,255,255,.3);
}
.pricing-card:not(.pricing-popular) .pricing-cta {
    background: var(--lapis);
    color: white;
    border: none;
}
.pricing-cta:hover {
    background: white;
    color: var(--lapis) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,.15);
}
.pricing-card:not(.pricing-popular) .pricing-cta:hover {
    background: var(--gold);
    color: white !important;
}

@media (max-width: 640px) {
    .pricing-grid { grid-template-columns: 1fr; max-width: 360px; }
}

/* ══════════════════════════════════════
   PLATFORM REVIEWS SECTION
══════════════════════════════════════ */
.reviews-section { background: var(--lapis); }
.reviews-section .section-title { color: white; }
.reviews-section .section-sub   { color: rgba(255,255,255,.6); }
.reviews-section .section-label { background: rgba(200,150,62,.2); color: var(--gold); border-color: rgba(200,150,62,.3); }

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.review-card {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 18px;
    padding: 26px;
    transition: transform .3s, background .3s;
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    overflow: hidden;
}
.review-card::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 80px; height: 80px;
    background: radial-gradient(circle at top right, rgba(200,150,62,.08), transparent);
    pointer-events: none;
}
.review-card:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,.09);
}

.review-stars {
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.review-quote svg {
    margin-bottom: -8px;
}

.review-text {
    font-size: .9rem;
    line-height: 1.75;
    color: rgba(255,255,255,.85);
    flex: 1;
    font-style: italic;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,.1);
}

.review-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(200,150,62,.4);
    flex-shrink: 0;
}
.review-avatar-letter {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), #e0ae58);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.review-name {
    font-size: .88rem;
    font-weight: 700;
    color: white;
}
.review-country {
    font-size: .74rem;
    color: rgba(255,255,255,.5);
    margin-top: 2px;
}
.review-verified {
    margin-right: auto;
    font-size: .7rem;
    color: #2ecc71;
    font-weight: 600;
    white-space: nowrap;
}

/* Responsive */
@media (max-width: 900px) {
    .reviews-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .reviews-grid { grid-template-columns: 1fr; }
}
