/* ==========================================================================
   Moshrif M3mary / Omar Abdullah — website design system
   Black & gold identity. Direction-agnostic (uses logical properties) so the
   same rules serve the English (LTR) and Arabic (RTL) pages.
   ========================================================================== */

:root {
    --ink: #0f0e0c;
    --ink-2: #181613;
    --ink-3: #24211c;
    --ink-line: rgba(233, 207, 138, .14);

    --gold: #c8a04a;
    --gold-light: #e9cf8a;
    --gold-deep: #94702a;
    --gold-grad: linear-gradient(135deg, #8c6a24 0%, #d8b462 38%, #f1dc9c 52%, #c8a04a 70%, #94702a 100%);
    --gold-soft: rgba(200, 160, 74, .12);

    --ivory: #f8f4eb;
    --sand: #ece3d0;
    --paper: #ffffff;
    --text: #1d1b17;
    --muted: #6d665a;
    --muted-light: rgba(255, 255, 255, .68);

    --maroon: #6e2b26;
    --success: #2f7d4f;
    --danger: #b03a2e;
    --info: #2f6390;

    --radius: 16px;
    --radius-sm: 10px;
    --shadow-sm: 0 2px 10px rgba(29, 27, 23, .06);
    --shadow: 0 12px 34px rgba(29, 27, 23, .10);
    --shadow-lg: 0 24px 60px rgba(15, 14, 12, .22);

    --font: 'Cairo', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-display: 'Cinzel', 'Cairo', serif;
    --nav-h: 76px;
    --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    color: var(--text);
    background: var(--ivory);
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5, h6 { font-family: var(--font); font-weight: 800; color: var(--text); line-height: 1.3; }
a { color: var(--gold-deep); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold); }
img { max-width: 100%; }
::selection { background: var(--gold-light); color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.text-gold { color: var(--gold) !important; }
.text-muted-brand { color: var(--muted) !important; }
.bg-ink { background: var(--ink) !important; }
.bg-ivory { background: var(--ivory) !important; }
.gold-text {
    background: var(--gold-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Bootstrap's g-5 gutter (3rem) pulls rows 1.5rem past the 0.75rem container padding,
   which makes phones scroll sideways. Use the standard gutter below md. */
@media (max-width: 767.98px) {
    .row.g-5, .row.gx-5 { --bs-gutter-x: 1.5rem; }
    .row.g-5, .row.gy-5 { --bs-gutter-y: 2rem; }
}

/* ---------- Buttons ---------- */
.btn { font-family: var(--font); font-weight: 700; border-radius: 999px; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s, border-color .25s; }
.btn:active { transform: translateY(1px); }
.btn-gold {
    background: var(--gold-grad);
    background-size: 160% 160%;
    background-position: 0% 50%;
    color: var(--ink) !important;
    border: 0;
    padding: .8rem 1.8rem;
    box-shadow: 0 8px 22px rgba(200, 160, 74, .32);
}
.btn-gold:hover { background-position: 100% 50%; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(200, 160, 74, .42); }
.btn-ghost-light { color: #fff !important; border: 1px solid rgba(255, 255, 255, .45); padding: .8rem 1.8rem; background: rgba(255, 255, 255, .04); backdrop-filter: blur(4px); }
.btn-ghost-light:hover { border-color: var(--gold-light); color: var(--gold-light) !important; background: rgba(255, 255, 255, .08); }
.btn-ink { background: var(--ink); color: #fff !important; padding: .8rem 1.8rem; border: 1px solid var(--ink); }
.btn-ink:hover { background: var(--ink-3); color: var(--gold-light) !important; }
.btn-outline-gold { color: var(--gold-deep) !important; border: 1.5px solid var(--gold); padding: .7rem 1.6rem; background: transparent; }
.btn-outline-gold:hover { background: var(--gold); color: var(--ink) !important; }
.btn-sm.btn-gold, .btn-sm.btn-outline-gold, .btn-sm.btn-ghost-light { padding: .45rem 1.1rem; font-size: .9rem; }
.btn[disabled], .btn.is-loading { opacity: .7; pointer-events: none; }

/* ---------- Navbar ---------- */
.oa-nav {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(15, 14, 12, .94);
    backdrop-filter: saturate(140%) blur(10px);
    -webkit-backdrop-filter: saturate(140%) blur(10px);
    border-bottom: 1px solid var(--ink-line);
    min-height: var(--nav-h);
    padding: 0;
}
.oa-nav .container { min-height: var(--nav-h); }
.oa-brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.oa-brand img { height: 46px; width: auto; transition: transform .4s var(--ease); }
.oa-brand:hover img { transform: scale(1.04); }
.oa-brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.oa-brand-text strong { color: #fff; font-size: 1.12rem; font-weight: 800; }
.oa-brand-text small { font-family: var(--font-display); color: var(--gold); font-size: .68rem; letter-spacing: .22em; font-weight: 700; }
.oa-nav .nav-link {
    color: rgba(255, 255, 255, .78) !important;
    font-weight: 600;
    padding: .5rem 1rem !important;
    position: relative;
}
.oa-nav .nav-link::after {
    content: "";
    position: absolute;
    inset-inline: 1rem;
    bottom: .2rem;
    height: 2px;
    background: var(--gold-grad);
    transform: scaleX(0);
    transition: transform .3s var(--ease);
}
.oa-nav .nav-link:hover { color: #fff !important; }
.oa-nav .nav-link:hover::after, .oa-nav .nav-link.active::after { transform: scaleX(1); }
.oa-nav .nav-link.active { color: var(--gold-light) !important; }
.oa-lang {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 42px; height: 38px; padding: 0 .7rem;
    border-radius: 999px; border: 1px solid rgba(255, 255, 255, .25);
    color: #fff !important; font-weight: 700; font-size: .85rem;
}
.oa-lang:hover { border-color: var(--gold); color: var(--gold-light) !important; }
.oa-nav .navbar-toggler { border: 1px solid rgba(255, 255, 255, .25); padding: .45rem .6rem; border-radius: 10px; color: #fff; }
.oa-nav .navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(200, 160, 74, .35); }
.oa-nav .navbar-toggler i { font-size: 1.4rem; }
.oa-user-chip { display: inline-flex; align-items: center; gap: .5rem; color: #fff !important; font-weight: 600; }
.oa-avatar {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--gold-grad); color: var(--ink); font-weight: 800;
}
@media (max-width: 991.98px) {
    .oa-nav .navbar-collapse { padding: 1rem 0 1.25rem; border-top: 1px solid var(--ink-line); margin-top: .25rem; }
    .oa-nav .nav-link::after { display: none; }
    .oa-nav-actions { flex-wrap: wrap; padding-top: .75rem; }
}

/* ---------- Hero ---------- */
.oa-hero { position: relative; background: var(--ink); overflow: hidden; }
.oa-hero .owl-carousel .owl-item img { display: block; }
.oa-slide { position: relative; height: clamp(520px, 86vh, 820px); background: radial-gradient(ellipse at 70% 20%, #2b261d 0%, var(--ink) 60%); }
.oa-slide > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.oa-hero .owl-item.active .oa-slide > img { animation: oa-kenburns 9s ease-out both; }
.oa-slide::before {
    content: ""; position: absolute; inset: 0; z-index: 1;
    background:
        linear-gradient(to top, rgba(15, 14, 12, .92) 0%, rgba(15, 14, 12, .25) 45%, rgba(15, 14, 12, .55) 100%),
        linear-gradient(to var(--hero-side, right), rgba(15, 14, 12, .85) 0%, rgba(15, 14, 12, .35) 55%, rgba(15, 14, 12, 0) 100%);
}
[dir="rtl"] .oa-slide::before { --hero-side: left; }
.oa-slide-body { position: relative; z-index: 2; height: 100%; display: flex; align-items: center; padding-bottom: 90px; }
.oa-slide-copy { max-width: 640px; }
.oa-eyebrow {
    display: inline-flex; align-items: center; gap: .6rem;
    color: var(--gold-light); font-weight: 700; font-size: .95rem; letter-spacing: .04em;
    margin-bottom: 1rem;
}
.oa-eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--gold-grad); border-radius: 2px; }
.oa-slide h1 { color: #fff; font-size: clamp(2rem, 4.6vw, 3.6rem); font-weight: 800; margin-bottom: 1rem; }
.oa-slide p { color: rgba(255, 255, 255, .82); font-size: clamp(1rem, 1.4vw, 1.2rem); margin-bottom: 2rem; max-width: 560px; }
.oa-hero .owl-item.active .oa-slide-copy > * { animation: oa-rise .9s var(--ease) both; }
.oa-hero .owl-item.active .oa-slide-copy > *:nth-child(2) { animation-delay: .12s; }
.oa-hero .owl-item.active .oa-slide-copy > *:nth-child(3) { animation-delay: .24s; }
.oa-hero .owl-item.active .oa-slide-copy > *:nth-child(4) { animation-delay: .36s; }
.oa-hero .owl-nav { position: absolute; bottom: 110px; inset-inline-end: max(16px, calc((100vw - 1320px) / 2 + 12px)); z-index: 3; display: flex; gap: .5rem; }
.oa-hero .owl-nav button.owl-prev, .oa-hero .owl-nav button.owl-next {
    width: 48px; height: 48px; border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .35) !important;
    color: #fff !important; font-size: 1.1rem !important;
    background: rgba(15, 14, 12, .35) !important;
    transition: all .25s;
}
.oa-hero .owl-nav button:hover { background: var(--gold) !important; color: var(--ink) !important; border-color: var(--gold) !important; }
.oa-hero .owl-dots { position: absolute; bottom: 120px; inset-inline-start: max(16px, calc((100vw - 1320px) / 2 + 12px)); z-index: 3; display: flex; gap: .4rem; }
.oa-hero .owl-dot span { display: block; width: 26px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .35); transition: all .3s; }
.oa-hero .owl-dot.active span { width: 46px; background: var(--gold); }
.oa-hero-empty { height: clamp(460px, 70vh, 680px); background: radial-gradient(ellipse at 70% 20%, #2b261d 0%, var(--ink) 60%); }

/* Stats strip overlapping the hero */
.oa-stats { position: relative; z-index: 5; margin-top: -64px; }
.oa-stats-inner {
    background: var(--ink-2);
    border: 1px solid var(--ink-line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}
.oa-stat { padding: 1.4rem 1.2rem; text-align: center; position: relative; }
.oa-stat + .oa-stat::before { content: ""; position: absolute; inset-inline-start: 0; top: 22%; bottom: 22%; width: 1px; background: var(--ink-line); }
.oa-stat strong { display: block; font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 800; line-height: 1.2; }
.oa-stat span { color: var(--muted-light); font-size: .92rem; font-weight: 600; }
@media (max-width: 767.98px) {
    .oa-stats { margin-top: -40px; }
    .oa-stats-inner { grid-template-columns: repeat(2, 1fr); }
    .oa-stat:nth-child(3)::before { display: none; }
    .oa-stat:nth-child(n+3) { border-top: 1px solid var(--ink-line); }
}

/* ---------- Sections ---------- */
.oa-section { padding: clamp(64px, 9vw, 112px) 0; }
.oa-section-sm { padding: clamp(48px, 6vw, 72px) 0; }
.oa-section.bg-white { background: var(--paper); }
.oa-head { max-width: 680px; margin-bottom: clamp(32px, 5vw, 56px); }
.oa-head.text-center { margin-inline: auto; }
.oa-head .oa-eyebrow { color: var(--gold-deep); }
.oa-head.text-center .oa-eyebrow::after { content: ""; width: 34px; height: 2px; background: var(--gold-grad); border-radius: 2px; }
.oa-title { font-size: clamp(1.7rem, 3.2vw, 2.6rem); font-weight: 800; margin-bottom: .9rem; }
.oa-lead { color: var(--muted); font-size: 1.08rem; margin: 0; }

/* Features */
.oa-feature {
    height: 100%;
    background: var(--paper);
    border: 1px solid var(--sand);
    border-radius: var(--radius);
    padding: 2rem 1.6rem;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.oa-feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.oa-feature-icon {
    width: 58px; height: 58px; border-radius: 14px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--ink); color: var(--gold-light); font-size: 1.35rem;
    margin-bottom: 1.25rem;
    box-shadow: inset 0 0 0 1px rgba(233, 207, 138, .25);
}
.oa-feature h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.oa-feature p { color: var(--muted); margin: 0; font-size: .97rem; }

/* About */
.oa-about-media { position: relative; padding: 0 0 22px 0; padding-inline-end: 22px; }
.oa-about-media::before {
    content: ""; position: absolute; inset: 22px 0 0 0; inset-inline-start: 22px;
    border: 2px solid var(--gold); border-radius: calc(var(--radius) + 4px);
}
.oa-about-media img { position: relative; width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; object-position: top center; border-radius: var(--radius); box-shadow: var(--shadow); }
.oa-about-badge {
    position: absolute; bottom: 0; inset-inline-start: -10px; z-index: 2;
    background: var(--ink); color: #fff; border-radius: 14px; padding: .9rem 1.2rem;
    display: flex; align-items: center; gap: .8rem; box-shadow: var(--shadow-lg);
}
.oa-about-badge strong { font-size: 2rem; line-height: 1; }
.oa-about-badge span { font-size: .85rem; color: var(--muted-light); line-height: 1.4; }
.oa-checks { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem 1.5rem; }
.oa-checks li { display: flex; align-items: flex-start; gap: .6rem; font-weight: 600; }
.oa-checks i { color: var(--gold); margin-top: .35rem; }
@media (max-width: 575.98px) { .oa-checks { grid-template-columns: 1fr; } }

/* Company services (dark band on the home page) */
.oa-services {
    position: relative; overflow: hidden; color: #fff;
    background: radial-gradient(ellipse at 10% 0%, rgba(200, 160, 74, .18), transparent 50%), var(--ink);
}
.oa-services .oa-title { color: #fff; }
.oa-services .oa-lead { color: var(--muted-light); }
.oa-services .oa-eyebrow { color: var(--gold-light); }
.oa-service {
    position: relative; height: 100%;
    background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: var(--radius);
    padding: 2rem 1.6rem; transition: transform .35s var(--ease), border-color .35s;
}
.oa-service:hover { transform: translateY(-6px); border-color: rgba(233, 207, 138, .45); }
.oa-service .oa-feature-icon { background: var(--gold-grad); color: var(--ink); box-shadow: none; }
.oa-service h3 { color: #fff; font-size: 1.2rem; margin-bottom: .5rem; }
.oa-service p { color: var(--muted-light); margin: 0; }
.oa-service-num {
    position: absolute; top: 1.2rem; inset-inline-end: 1.4rem;
    font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; line-height: 1;
    color: rgba(233, 207, 138, .12);
}

/* Course cards */
.oa-course {
    display: flex; flex-direction: column; height: 100%;
    background: var(--paper);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--sand);
    color: inherit; text-decoration: none;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.oa-course:hover { transform: translateY(-6px); box-shadow: var(--shadow); color: inherit; }
.oa-course-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink-3); }
.oa-course-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.oa-course:hover .oa-course-media img { transform: scale(1.06); }
.oa-price {
    position: absolute; bottom: 12px; inset-inline-start: 12px;
    background: rgba(15, 14, 12, .88); color: #fff; backdrop-filter: blur(6px);
    border-radius: 999px; padding: .3rem .9rem; font-weight: 800; font-size: .95rem;
    display: inline-flex; align-items: baseline; gap: .45rem;
}
.oa-price b { color: var(--gold-light); }
.oa-price s { color: rgba(255, 255, 255, .55); font-size: .8rem; font-weight: 600; }
.oa-course-body { padding: 1.3rem 1.4rem 1rem; flex: 1; display: flex; flex-direction: column; }
.oa-course-body h3 { font-size: 1.15rem; margin-bottom: .6rem; }
.oa-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.oa-course-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; color: var(--muted); font-size: .9rem; font-weight: 600; margin-top: auto; }
.oa-course-meta i { color: var(--gold); margin-inline-end: .35rem; }
.oa-course-foot { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .9rem 1.4rem; border-top: 1px solid var(--sand); }
.oa-course-link { font-weight: 700; color: var(--ink); display: inline-flex; align-items: center; gap: .4rem; }
.oa-course:hover .oa-course-link { color: var(--gold-deep); }
[dir="rtl"] .oa-flip { transform: scaleX(-1); }

/* Status chips */
.oa-chip { display: inline-flex; align-items: center; gap: .35rem; border-radius: 999px; padding: .2rem .75rem; font-size: .8rem; font-weight: 700; }
.oa-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.oa-chip-pending { background: #fbf1da; color: #8a6413; }
.oa-chip-accepted { background: #e2f2e8; color: var(--success); }
.oa-chip-rejected { background: #f8e3e0; color: var(--danger); }
.oa-chip-none { background: #eef0f3; color: #4a5260; }
.oa-chip-free { background: var(--gold-soft); color: var(--gold-deep); }

/* App / CTA bands */
.oa-band {
    position: relative; overflow: hidden;
    background: radial-gradient(ellipse at 85% 0%, rgba(200, 160, 74, .22), transparent 55%), var(--ink);
    color: #fff; border-radius: calc(var(--radius) + 8px);
    padding: clamp(36px, 6vw, 64px);
}
.oa-band::after {
    content: ""; position: absolute; inset-inline-end: -60px; bottom: -80px; width: 340px; height: 340px;
    background: url('/brand/logo-mark-white.png') center / contain no-repeat; opacity: .05; pointer-events: none;
}
.oa-band h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.2rem); }
.oa-band p { color: var(--muted-light); }
.oa-store {
    display: inline-flex; align-items: center; gap: .7rem;
    border: 1px solid rgba(255, 255, 255, .25); border-radius: 12px;
    padding: .55rem 1.1rem; color: #fff !important; background: rgba(255, 255, 255, .04);
    transition: border-color .25s, background .25s, transform .25s var(--ease);
}
.oa-store:hover { border-color: var(--gold); background: rgba(255, 255, 255, .08); transform: translateY(-2px); }
.oa-store i { font-size: 1.6rem; color: var(--gold-light); }
.oa-store span { display: flex; flex-direction: column; line-height: 1.15; text-align: start; }
.oa-store small { font-size: .7rem; color: var(--muted-light); }
.oa-store b { font-size: 1rem; }

/* Inner page hero */
.oa-page-hero {
    position: relative; background: var(--ink); color: #fff;
    padding: clamp(56px, 8vw, 96px) 0 clamp(48px, 7vw, 80px);
    overflow: hidden;
}
.oa-page-hero > .oa-page-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .28; }
.oa-page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--ink) 0%, rgba(15, 14, 12, .4) 100%); }
.oa-page-hero .container { position: relative; z-index: 2; }
.oa-page-hero h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 3rem); margin-bottom: .6rem; }
.oa-page-hero p { color: var(--muted-light); max-width: 640px; margin: 0; font-size: 1.05rem; }
.oa-crumbs { display: flex; gap: .5rem; align-items: center; color: var(--muted-light); font-size: .9rem; margin-bottom: 1rem; font-weight: 600; }
.oa-crumbs a { color: var(--gold-light); }

/* Cards & forms */
.oa-card { background: var(--paper); border: 1px solid var(--sand); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: clamp(1.4rem, 3vw, 2.2rem); }
.oa-card-title { font-size: 1.2rem; display: flex; align-items: center; gap: .6rem; margin-bottom: 1.4rem; }
.oa-card-title i { color: var(--gold); }
.oa-field { margin-bottom: 1.1rem; }
.oa-field label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: .4rem; color: var(--text); }
.oa-input-wrap { position: relative; }
.oa-input-wrap > i { position: absolute; top: 50%; transform: translateY(-50%); inset-inline-start: 1rem; color: var(--muted); pointer-events: none; }
.oa-input {
    width: 100%; height: 52px;
    border: 1.5px solid var(--sand); border-radius: 12px;
    background: #fdfbf7; color: var(--text);
    padding-inline: 2.75rem 1rem; font-family: var(--font); font-size: 1rem;
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.oa-input:focus { outline: none; border-color: var(--gold); background: #fff; box-shadow: 0 0 0 4px rgba(200, 160, 74, .15); }
.oa-input[readonly] { background: #f3efe6; color: var(--muted); }
.oa-input-wrap .oa-eye {
    position: absolute; top: 50%; transform: translateY(-50%); inset-inline-end: .5rem;
    border: 0; background: transparent; color: var(--muted); width: 40px; height: 40px; border-radius: 8px;
}
.oa-input-wrap .oa-eye:hover { color: var(--gold-deep); }
.oa-input-wrap:has(.oa-eye) .oa-input { padding-inline-end: 3rem; }
.field-validation-error, .oa-error-text { color: var(--danger); font-size: .85rem; font-weight: 600; margin-top: .3rem; display: block; }

.oa-alert { display: flex; gap: .7rem; align-items: flex-start; border-radius: 12px; padding: .9rem 1.1rem; font-weight: 600; margin-bottom: 1.2rem; }
.oa-alert-error { background: #f8e3e0; color: #7d2a22; border: 1px solid #efc7c1; }
.oa-alert-success { background: #e2f2e8; color: #1f5a37; border: 1px solid #c3e2cf; }

/* Auth */
.oa-auth { min-height: calc(100vh - var(--nav-h)); display: flex; align-items: center; padding: clamp(32px, 6vw, 72px) 0; }
.oa-auth-card { display: grid; grid-template-columns: 1fr 1.1fr; background: var(--paper); border-radius: calc(var(--radius) + 6px); overflow: hidden; box-shadow: var(--shadow-lg); max-width: 980px; margin: 0 auto; }
.oa-auth-side {
    position: relative; background: radial-gradient(ellipse at 20% 0%, rgba(200, 160, 74, .25), transparent 60%), var(--ink);
    color: #fff; padding: clamp(32px, 5vw, 56px); display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
}
.oa-auth-side img { width: min(240px, 70%); }
.oa-auth-side h2 { color: #fff; font-size: 1.6rem; margin-bottom: .6rem; }
.oa-auth-side p { color: var(--muted-light); margin: 0; }
.oa-auth-side ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.oa-auth-side li { display: flex; gap: .6rem; align-items: center; color: rgba(255, 255, 255, .85); font-weight: 600; }
.oa-auth-side li i { color: var(--gold-light); }
.oa-auth-form { padding: clamp(28px, 5vw, 56px); }
.oa-auth-form h1 { font-size: clamp(1.6rem, 3vw, 2rem); margin-bottom: .3rem; }
.oa-auth-form > p { color: var(--muted); margin-bottom: 1.8rem; }
.oa-auth-switch { text-align: center; margin: 1.5rem 0 0; color: var(--muted); }
.oa-auth-switch a { font-weight: 800; }
@media (max-width: 767.98px) {
    .oa-auth-card { grid-template-columns: 1fr; }
    .oa-auth-side { padding: 28px; flex-direction: row; align-items: center; }
    .oa-auth-side img { width: 92px; }
    .oa-auth-side ul, .oa-auth-side p { display: none; }
    .oa-auth-side h2 { font-size: 1.2rem; margin: 0; }
}

/* Profile */
.oa-profile-head { display: flex; align-items: center; gap: 1.2rem; }
.oa-profile-head .oa-avatar { width: 72px; height: 72px; font-size: 1.8rem; }
.oa-profile-head h1 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0; }

/* Course details */
.oa-course-hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.oa-course-hero-grid .oa-cover { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; box-shadow: var(--shadow-lg); border: 1px solid var(--ink-line); }
.oa-course-hero-grid .oa-cover img { width: 100%; height: 100%; object-fit: cover; }
.oa-course-facts { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; color: var(--muted-light); font-weight: 600; margin: 1.2rem 0 1.6rem; }
.oa-course-facts i { color: var(--gold); margin-inline-end: .4rem; }
.oa-course-price { display: flex; align-items: baseline; gap: .7rem; margin-bottom: 1.4rem; }
.oa-course-price b { font-size: 2rem; font-weight: 800; }
.oa-course-price s { color: rgba(255, 255, 255, .5); font-weight: 600; }
.oa-note { color: var(--muted-light); font-size: .9rem; margin-top: .9rem; }
@media (max-width: 991.98px) { .oa-course-hero-grid { grid-template-columns: 1fr; } .oa-course-hero-grid .oa-cover { order: -1; } }

.oa-lessons { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: .75rem; }
.oa-lesson {
    display: flex; align-items: center; gap: 1rem;
    background: var(--paper); border: 1px solid var(--sand); border-radius: 14px;
    padding: .9rem 1.1rem; transition: border-color .25s, box-shadow .25s, transform .25s var(--ease);
}
.oa-lesson.is-playable { cursor: pointer; }
.oa-lesson.is-playable:hover { border-color: var(--gold); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.oa-lesson-num {
    flex: none; width: 44px; height: 44px; border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--ivory); color: var(--gold-deep); font-weight: 800; border: 1px solid var(--sand);
}
.oa-lesson-title { flex: 1; min-width: 0; font-weight: 700; margin: 0; font-size: 1rem; overflow-wrap: anywhere; }
@media (max-width: 400px) {
    .oa-lesson { gap: .6rem; padding: .75rem .8rem; }
    .oa-lesson-num, .oa-lesson-action { width: 38px; height: 38px; }
    .oa-lesson .oa-chip { padding: .15rem .55rem; }
}
.oa-lesson-action {
    flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--ink); color: var(--gold-light); transition: transform .25s var(--ease), background .25s;
}
.oa-lesson.is-playable:hover .oa-lesson-action { background: var(--gold); color: var(--ink); transform: scale(1.06); }
.oa-lesson-action.is-locked { background: #efebe2; color: #9a9284; }
.oa-lesson-action i { font-size: .95rem; }
[dir="ltr"] .oa-lesson-action .fa-play { margin-inline-start: 3px; }
[dir="rtl"] .oa-lesson-action .fa-play { margin-inline-end: 3px; }
.oa-empty { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.oa-empty i { font-size: 2.4rem; color: var(--gold); display: block; margin-bottom: .8rem; }

/* ---------- Secure player ---------- */
.oa-player-modal .modal-content { background: var(--ink); border: 1px solid var(--ink-line); border-radius: var(--radius); overflow: hidden; }
.oa-player-modal .modal-header { border-bottom: 1px solid var(--ink-line); padding: .9rem 1.2rem; }
.oa-player-modal .modal-title { color: #fff; font-size: 1.05rem; font-weight: 700; display: flex; align-items: center; gap: .6rem; min-width: 0; }
.oa-player-modal .modal-title span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oa-player-modal .modal-title i { color: var(--gold); }
.oa-player-close { border: 0; background: rgba(255, 255, 255, .08); color: #fff; width: 38px; height: 38px; border-radius: 50%; flex: none; }
.oa-player-close:hover { background: var(--gold); color: var(--ink); }
.oa-player-modal .modal-body { padding: 0; }
.oa-player {
    position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000;
    user-select: none; -webkit-user-select: none; overflow: hidden;
}
.oa-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.oa-player:fullscreen { aspect-ratio: auto; width: 100vw; height: 100vh; padding-top: 0; }
.oa-player:-webkit-full-screen { width: 100vw; height: 100vh; padding-top: 0; }
/* Browsers without aspect-ratio (Safari < 15): classic padding ratio box. */
@supports not (aspect-ratio: 1 / 1) {
    .oa-player { height: 0; padding-top: 56.25%; }
}
/* iPhone has no element Fullscreen API: secure-player.js fills the viewport instead. */
.oa-player.is-pseudo-fs {
    position: fixed; inset: 0; z-index: 2000;
    width: 100vw; height: 100vh; height: 100dvh; aspect-ratio: auto; padding-top: 0;
}
.oa-noscroll, .oa-noscroll body { overflow: hidden !important; }
.oa-player-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--gold-light); }
.oa-player-fs {
    position: absolute; top: 12px; inset-inline-end: 12px; z-index: 30;
    width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25);
    background: rgba(0, 0, 0, .45); color: #fff; opacity: .75; transition: opacity .2s, background .2s;
}
.oa-player-fs:hover { opacity: 1; background: rgba(0, 0, 0, .75); }
.oa-player-foot { display: flex; align-items: center; gap: .6rem; padding: .7rem 1.2rem; color: var(--muted-light); font-size: .82rem; border-top: 1px solid var(--ink-line); }
.oa-player-foot i { color: var(--gold); }

/* Watermark layers — intentionally calm: no blur, no scaling, slow fades. */
.oa-wm-layer { position: absolute; inset: 0; z-index: 20; pointer-events: none; overflow: hidden; }
.oa-wm-tile {
    position: absolute; inset: -50%;
    display: flex; flex-wrap: wrap; align-content: space-around; justify-content: space-around;
    gap: 90px 140px; transform: rotate(-24deg);
    color: #fff; opacity: .075; font: 600 15px/1.2 var(--font); white-space: nowrap;
    text-shadow: 0 0 2px rgba(0, 0, 0, .6);
}
.oa-wm-roam {
    position: absolute; max-width: 70%;
    color: rgba(255, 255, 255, .55);
    font: 700 13px/1.35 var(--font); letter-spacing: .02em; white-space: nowrap;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .75);
    opacity: 0; transition: opacity 1.6s ease;
}
.oa-wm-roam.is-on { opacity: 1; }
.oa-wm-roam small { display: block; font-weight: 600; font-size: 11px; opacity: .85; }
.oa-player-blocked {
    position: absolute; inset: 0; z-index: 40; display: flex; flex-direction: column; gap: .6rem;
    align-items: center; justify-content: center; text-align: center; padding: 1.5rem;
    background: var(--ink); color: #fff;
}
.oa-player-blocked i { color: var(--gold); font-size: 2rem; }
@media (prefers-reduced-motion: reduce) { .oa-wm-roam { transition: none; } }

/* ---------- How it works ---------- */
.oa-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--steps, 4), minmax(0, 1fr)); gap: 1.5rem; position: relative; }
.oa-steps::before {
    content: ""; position: absolute; top: 28px; inset-inline: 12%; height: 2px;
    background: repeating-linear-gradient(90deg, var(--gold) 0 10px, transparent 10px 18px); opacity: .5;
}
.oa-steps li { position: relative; text-align: center; padding: 0 .5rem; }
.oa-step-num {
    position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center;
    width: 56px; height: 56px; border-radius: 50%; margin-bottom: 1rem;
    background: var(--ink); color: var(--gold-light); font-family: var(--font-display); font-size: 1.4rem; font-weight: 700;
    box-shadow: 0 0 0 6px var(--paper), 0 0 0 7px var(--sand);
}
.oa-steps h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.oa-steps p { color: var(--muted); margin: 0; font-size: .95rem; }
@media (max-width: 991.98px) {
    .oa-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2rem; }
    .oa-steps::before { display: none; }
}
@media (max-width: 575.98px) {
    .oa-steps { grid-template-columns: minmax(0, 1fr); }
    .oa-steps li { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 1rem; text-align: start; align-items: start; }
    .oa-step-num { grid-row: span 2; margin: 0; }
    .oa-steps h3 { margin: .2rem 0 .2rem; }
}

/* ---------- Free lessons ---------- */
.oa-free {
    display: flex; align-items: center; gap: .9rem; height: 100%;
    background: var(--paper); border: 1px solid var(--sand); border-radius: 14px; padding: .9rem 1rem;
    color: inherit; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.oa-free:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: var(--gold); color: inherit; }
.oa-free-play {
    flex: none; width: 46px; height: 46px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--gold-grad); color: var(--ink);
}
.oa-free-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.4; }
.oa-free-text b { font-weight: 700; overflow-wrap: anywhere; }
.oa-free-text small { color: var(--muted); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- FAQ ---------- */
.oa-faq { display: grid; gap: .75rem; }
.oa-faq .accordion-item { border: 1px solid var(--sand); border-radius: 14px !important; overflow: hidden; background: var(--paper); }
.oa-faq .accordion-button {
    font-family: var(--font); font-weight: 700; font-size: 1.02rem; color: var(--text);
    background: var(--paper); padding: 1.1rem 1.25rem; box-shadow: none; gap: 1rem;
}
.oa-faq .accordion-button:not(.collapsed) { color: var(--gold-deep); background: #fdfaf3; }
.oa-faq .accordion-button:focus { box-shadow: 0 0 0 3px rgba(200, 160, 74, .25); }
.oa-faq .accordion-button::after { filter: sepia(1) saturate(3) hue-rotate(-10deg); }
[dir="rtl"] .oa-faq .accordion-button::after { margin-left: 0; margin-right: auto; }
.oa-faq .accordion-body { color: var(--muted); padding: 0 1.25rem 1.2rem; line-height: 1.9; }

/* ---------- Contact ---------- */
.oa-contact-item {
    display: flex; gap: 1rem; align-items: center; height: 100%;
    background: var(--paper); border: 1px solid var(--sand); border-radius: var(--radius);
    padding: 1.3rem 1.4rem; color: inherit; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
a.oa-contact-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; color: inherit; }
.oa-contact-item .oa-feature-icon { margin: 0; flex: none; width: 52px; height: 52px; }
.oa-contact-item small { display: block; color: var(--muted); font-weight: 600; }
.oa-contact-item b { font-size: 1.05rem; word-break: break-word; }

/* ---------- Footer ---------- */
.oa-footer { background: var(--ink); color: var(--muted-light); padding-top: clamp(56px, 7vw, 88px); border-top: 1px solid var(--ink-line); }
.oa-footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 1.2rem; }
.oa-footer-logo { width: 150px; margin-bottom: 1.2rem; }
.oa-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .65rem; }
.oa-footer a { color: var(--muted-light); }
.oa-footer a:hover { color: var(--gold-light); }
.oa-footer li i { color: var(--gold); width: 1.4rem; }
.oa-social { display: flex; gap: .5rem; margin-top: 1.2rem; }
.oa-social a {
    width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .18);
    display: inline-flex; align-items: center; justify-content: center; color: #fff;
    transition: all .25s;
}
.oa-social a:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); transform: translateY(-3px); }
.oa-footer-bottom { border-top: 1px solid var(--ink-line); margin-top: clamp(40px, 5vw, 64px); padding: 1.3rem 0; font-size: .88rem; display: flex; flex-wrap: wrap; gap: .5rem; justify-content: space-between; }

/* ---------- Floating actions ---------- */
.oa-float { position: fixed; z-index: 1040; bottom: 22px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; box-shadow: 0 10px 26px rgba(0, 0, 0, .25); transition: transform .3s var(--ease), opacity .3s; }
.oa-whatsapp { inset-inline-end: 22px; width: 56px; height: 56px; background: #25d366; color: #fff !important; font-size: 1.7rem; }
.oa-whatsapp:hover { transform: scale(1.08); }
.oa-top { inset-inline-start: 22px; width: 46px; height: 46px; background: var(--ink); color: var(--gold-light) !important; border: 1px solid var(--ink-line); opacity: 0; pointer-events: none; }
.oa-top.is-shown { opacity: 1; pointer-events: auto; }
.oa-top:hover { background: var(--gold); color: var(--ink) !important; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@keyframes oa-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes oa-kenburns { from { transform: scale(1.08); } to { transform: scale(1); } }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .reveal { opacity: 1; transform: none; }
}

/* Toastr in brand colors */
#toast-container > .toast-success { background-color: var(--success); }
#toast-container > .toast-error { background-color: var(--danger); }
#toast-container > div { font-family: var(--font); border-radius: 12px; opacity: .97; box-shadow: var(--shadow); }

/* Owl Carousel runs LTR in both languages; slides keep the page direction. */
.oa-hero .owl-carousel { direction: ltr; }
[dir="rtl"] .oa-hero .oa-slide { direction: rtl; }
[dir="rtl"] .oa-hero .owl-nav { right: auto; left: max(16px, calc((100vw - 1320px) / 2 + 12px)); }
[dir="rtl"] .oa-hero .owl-dots { left: auto; right: max(16px, calc((100vw - 1320px) / 2 + 12px)); }

/* Intro video (link set in the dashboard) */
.oa-video-frame {
    position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden;
    background: var(--ink); box-shadow: var(--shadow-lg); border: 1px solid var(--ink-line);
}
.oa-video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@supports not (aspect-ratio: 1 / 1) { .oa-video-frame { height: 0; padding-top: 56.25%; } }
