/* ── Brand Colors ──
   Dark Blue:  #0F4C81
   Light Blue: #4DA8DA
   White:      #FFFFFF
   Light Gray: #EAF2F8
*/

/* ── Language Toggle ── */
.lang-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 36px;
    padding: 0 12px;
    border-radius: 9999px;
    border: 2px solid #4DA8DA;
    background: transparent;
    color: #0F4C81;
    font-family: 'Almarai', sans-serif;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.lang-toggle:hover {
    background: #4DA8DA;
    color: #FFFFFF;
    transform: translateY(-1px);
}

/* ── Text Logo ── */
.brand-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #0F4C81;
    transition: opacity 0.2s ease;
}

.brand-logo:hover {
    opacity: 0.85;
}

.brand-logo .brand-icon {
    font-size: 32px;
    color: #4DA8DA;
}

.brand-logo-img {
    height: 40px;
    width: auto;
    max-width: 168px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

.footer-brand .brand-logo-img {
    height: 36px;
    max-width: 140px;
}

.brand-logo .brand-name {
    font-family: 'Almarai', sans-serif;
    font-weight: 800;
    font-size: 24px;
    line-height: 1;
}

.brand-logo .brand-tagline {
    font-family: 'Tajawal', sans-serif;
    font-size: 11px;
    color: #3d7aad;
    font-weight: 400;
}

[dir="ltr"] .brand-logo {
    flex-direction: row;
}

[dir="ltr"] .text-right {
    text-align: left;
}

[dir="ltr"] .feature-item:hover {
    transform: translateX(6px);
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
}

body {
    background-color: #EAF2F8;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

.nav-student-only.hidden {
    display: none !important;
}

/* ── Header ── */
.site-header {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 4px 24px rgba(15, 76, 129, 0.1);
    border-bottom-color: rgba(184, 212, 232, 0.6);
    background: rgba(255, 255, 255, 0.96);
}

.site-header-inner {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    height: 5rem;
}

.site-header-start {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    min-width: 0;
}

.site-nav {
    display: none;
    flex-direction: row;
    gap: 1.25rem;
    flex-wrap: wrap;
    justify-content: center;
}

@media (min-width: 768px) {
    .site-nav {
        display: flex;
    }
}

.site-header-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.btn-header-start {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 8px;
    font-family: 'Almarai', sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    background: #0F4C81;
    color: #FFFFFF;
    border: 2px solid #0F4C81;
    transition: background 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
}

.btn-header-start:hover {
    background: #0d4270;
    border-color: #0d4270;
    color: #FFFFFF;
}

.btn-header-login {
    display: none;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 8px;
    font-family: 'Almarai', sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    background: transparent;
    color: #0F4C81;
    border: 1px solid rgba(15, 76, 129, 0.2);
    transition: background 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
}

@media (min-width: 640px) {
    .btn-header-login {
        display: inline-flex;
    }
}

.btn-header-login:hover {
    background: #EAF2F8;
    border-color: rgba(15, 76, 129, 0.35);
    color: #0d4270;
}

.btn-header-login--solo {
    display: inline-flex;
}

.btn-header-account {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 8px 14px;
    border-radius: 8px;
    font-family: 'Almarai', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    background: #EAF2F8;
    color: #0F4C81;
    border: 1px solid rgba(15, 76, 129, 0.15);
    white-space: nowrap;
    transition: background 0.2s ease;
}

.btn-header-account:hover {
    background: #dceaf5;
    color: #0d4270;
}

.header-account-icon {
    font-size: 18px;
}

.header-student-menu {
    position: relative;
}

.header-student-menu__toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 6px 10px 6px 8px;
    border-radius: 12px;
    border: 1px solid rgba(15, 76, 129, 0.15);
    background: #EAF2F8;
    color: #0F4C81;
    cursor: pointer;
    font-family: inherit;
    max-width: min(220px, 46vw);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.header-student-menu__toggle:hover,
.header-student-menu.is-open .header-student-menu__toggle {
    background: #dceaf5;
    border-color: rgba(15, 76, 129, 0.28);
}

.header-student-menu__avatar {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: #fff;
    flex-shrink: 0;
}

.header-student-menu__avatar .nav-chat-dot--icon {
    position: absolute;
    top: -1px;
    inset-inline-end: -1px;
    margin: 0;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #e11d48;
    border: 2px solid #fff;
    box-shadow: none;
}

.header-student-menu__link .nav-chat-badge {
    margin-inline-start: auto;
}

.header-student-menu__avatar .material-symbols-outlined {
    font-size: 1.15rem;
}

.header-student-menu__meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    line-height: 1.2;
    text-align: start;
}

.header-student-menu__name {
    font-family: 'Almarai', sans-serif;
    font-size: 0.78rem;
    font-weight: 800;
    color: #0F4C81;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.header-student-menu__balance {
    font-family: 'Tajawal', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    color: #4DA8DA;
}

.header-student-menu__chevron {
    font-size: 1.2rem;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.header-student-menu.is-open .header-student-menu__chevron {
    transform: rotate(180deg);
}

.header-student-menu__dropdown {
    position: absolute;
    top: calc(100% + 8px);
    inset-inline-end: 0;
    min-width: 190px;
    background: #fff;
    border: 1px solid rgba(15, 76, 129, 0.12);
    border-radius: 12px;
    box-shadow: 0 10px 32px rgba(15, 76, 129, 0.14);
    padding: 0.35rem;
    z-index: 80;
}

.header-student-menu__link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    text-decoration: none;
    font-family: 'Almarai', sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    color: #0F4C81;
    transition: background 0.2s ease;
}

.header-student-menu__link .material-symbols-outlined {
    font-size: 1.15rem;
    color: #4DA8DA;
}

.header-student-menu__link:hover {
    background: #EAF2F8;
}

.btn-header-logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 8px;
    font-family: 'Almarai', sans-serif;
    font-size: 13px;
    font-weight: 600;
    background: transparent;
    color: #b42318;
    border: 1px solid rgba(180, 35, 24, 0.25);
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-header-logout:hover {
    background: rgba(180, 35, 24, 0.06);
    border-color: rgba(180, 35, 24, 0.4);
}

.header-user-greeting {
    font-family: 'Tajawal', sans-serif;
    font-size: 13px;
    color: #3d7aad;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.student-nav-logout {
    margin-top: auto;
    color: #b42318 !important;
}

.student-nav-logout:hover {
    background: rgba(180, 35, 24, 0.06) !important;
}

.nav-link {
    position: relative;
    transition: color 0.25s ease;
}

.nav-chat-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.05rem;
    height: 1.05rem;
    padding: 0 0.28rem;
    margin-inline-start: 0.3rem;
    border-radius: 999px;
    background: #e11d48;
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    line-height: 1;
    vertical-align: middle;
}

.nav-chat-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-inline-start: 0.3rem;
    border-radius: 50%;
    background: #e11d48;
    box-shadow: 0 0 0 2px rgba(225, 29, 72, 0.18);
    vertical-align: middle;
}

.site-nav a[data-nav="chat"] .nav-chat-dot {
    position: absolute;
    top: 0;
    inset-inline-end: -2px;
    margin: 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    right: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #0F4C81, #4DA8DA);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

[dir="ltr"] .nav-link::after {
    right: auto;
    left: 0;
}

/* ── Nav Dropdown (Levels) ── */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Almarai', sans-serif;
    font-weight: 500;
    padding: 4px 0;
    transition: color 0.25s ease;
}

.nav-dropdown-chevron {
    font-size: 20px;
    transition: transform 0.25s ease;
}

.nav-dropdown.open .nav-dropdown-chevron {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    min-width: 280px;
    background: #FFFFFF;
    border-radius: 16px;
    border: 1px solid #b8d4e8;
    box-shadow: 0 12px 40px rgba(15, 76, 129, 0.15);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    z-index: 60;
}

[dir="ltr"] .nav-dropdown-menu {
    right: auto;
    left: 0;
}

.nav-dropdown.open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    text-decoration: none;
    color: #0F4C81;
    transition: background 0.2s ease;
}

.nav-dropdown-item:hover {
    background: #EAF2F8;
}

.nav-dropdown-icon {
    font-size: 28px;
    color: #4DA8DA;
    flex-shrink: 0;
}

.nav-dropdown-title {
    display: block;
    font-family: 'Almarai', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: #0F4C81;
}

.nav-dropdown-desc {
    display: block;
    font-family: 'Tajawal', sans-serif;
    font-size: 12px;
    color: #3d7aad;
    margin-top: 2px;
}

/* ── Levels Section (Homepage) ── */
.levels-section {
    background: linear-gradient(180deg, #FFFFFF 0%, #EAF2F8 100%);
}

.levels-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 720px;
    margin: 0 auto;
}

.level-card {
    position: relative;
    z-index: 1;
    width: 100%;
}

.level-card.open {
    z-index: 20;
}

.level-card-btn {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 24px;
    background: #FFFFFF;
    border: 2px solid #b8d4e8;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(15, 76, 129, 0.08);
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    font-family: 'Almarai', sans-serif;
}

[dir="rtl"] .level-card-btn {
    flex-direction: row-reverse;
}

.level-card-btn:hover,
.level-card.open .level-card-btn {
    border-color: #4DA8DA;
    box-shadow: 0 8px 28px rgba(77, 168, 218, 0.25);
    transform: translateY(-2px);
}

.level-card-icon {
    font-size: 32px;
    color: #4DA8DA;
    flex-shrink: 0;
}

.level-card.open .level-card-icon {
    color: #0F4C81;
}

.level-card-title {
    flex: 1;
    font-size: 18px;
    font-weight: 700;
    color: #0F4C81;
    text-align: right;
    line-height: 1.3;
}

[dir="ltr"] .level-card-title {
    text-align: left;
}

.level-card-chevron {
    font-size: 24px;
    color: #4DA8DA;
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.level-card.open .level-card-chevron {
    transform: rotate(180deg);
    color: #0F4C81;
}

.level-card-menu {
    width: 100%;
    min-width: 0;
    right: 0;
    left: 0;
    top: calc(100% + 6px);
    padding: 8px;
    max-height: none;
    overflow-y: visible;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
}

@media (min-width: 480px) {
    .level-card-menu {
        grid-template-columns: repeat(3, 1fr);
    }
}

.level-grade-item {
    display: block;
    padding: 12px 14px;
    border-radius: 10px;
    text-decoration: none;
    font-family: 'Tajawal', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #0F4C81;
    text-align: center;
    transition: background 0.2s ease, color 0.2s ease;
}

.level-grade-item:hover {
    background: #EAF2F8;
    color: #0F4C81;
}

.level-card.open .level-grade-item {
    animation: grade-fade-in 0.2s ease forwards;
}

@keyframes grade-fade-in {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Buttons ── */
.btn-primary,
a.btn-primary,
button.btn-primary,
input.btn-primary[type="submit"] {
    background: #0F4C81;
    color: #FFFFFF;
    box-shadow: none;
    font-weight: 700;
    border-radius: 8px;
    border: none;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, opacity 0.2s ease, color 0.2s ease;
}

.btn-primary:hover,
a.btn-primary:hover,
button.btn-primary:hover {
    background: #0d4270;
    color: #FFFFFF;
    transform: none;
    box-shadow: 0 2px 8px rgba(15, 76, 129, 0.18);
}

.btn-primary:active,
a.btn-primary:active,
button.btn-primary:active {
    transform: translateY(0);
    opacity: 0.9;
    color: #FFFFFF;
}

/* أزرار Tailwind بخلفية primary بدون لون نص */
.bg-primary.text-on-primary,
.bg-primary.text-white,
.page-btn.bg-primary,
a.bg-primary.page-btn,
button.bg-primary {
    color: #FFFFFF;
}

.bg-primary-container.text-on-primary-container,
.page-btn.bg-primary-container {
    color: #FFFFFF;
}

.btn-outline {
    transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-outline:hover {
    background: rgba(77, 168, 218, 0.1);
    box-shadow: 0 2px 12px rgba(15, 76, 129, 0.1);
}

/* ── Hero full-width slider ── */
.hero-slider {
    position: relative;
    width: 100vw;
    max-width: 100vw;
    margin-inline: calc(50% - 50vw);
    min-height: clamp(560px, 92vh, 960px);
    min-height: clamp(560px, 92svh, 960px);
    overflow: hidden;
    background: #0a3d66;
}

.hero-slider__viewport {
    position: absolute;
    inset: 0;
}

.hero-slider__track {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.85s ease, visibility 0.85s ease;
    z-index: 0;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.hero-slide__media {
    position: absolute;
    inset: 0;
}

.hero-slide__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hero-slide__scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        rgba(6, 36, 62, 0.92) 0%,
        rgba(8, 48, 82, 0.72) 42%,
        rgba(10, 58, 96, 0.45) 68%,
        rgba(12, 68, 110, 0.35) 100%
    );
}

.hero-slide__inner {
    position: relative;
    z-index: 2;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 1.25rem 5rem;
    display: flex;
    align-items: center;
}

@media (min-width: 768px) {
    .hero-slide__inner {
        padding: 3rem 2rem 5.5rem;
    }
}

.hero-slide__content {
    width: 100%;
    max-width: 680px;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    text-align: right;
}

.hero-slider .hero-trial-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    padding: 7px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    font-family: 'Almarai', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    backdrop-filter: blur(6px);
}

.hero-slider .hero-trial-badge .material-symbols-outlined {
    font-size: 18px;
}

.hero-slider .hero-slide__title {
    font-family: 'Almarai', sans-serif;
    font-size: clamp(1.75rem, 4.5vw, 2.75rem);
    font-weight: 800;
    line-height: 1.25;
    color: #fff;
    margin: 0;
}

.hero-slider .hero-lead {
    font-family: 'Tajawal', sans-serif;
    font-size: clamp(1rem, 2.2vw, 1.2rem);
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    max-width: 36rem;
}

.hero-slider .hero-points {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.hero-slider .hero-points li {
    position: relative;
    padding-right: 1.15rem;
    font-family: 'Tajawal', sans-serif;
    font-size: 0.95rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.88);
}

.hero-slider .hero-points li::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4da8da;
}

.hero-slider .hero-license-note {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
}

.hero-slider .hero-license-note .material-symbols-outlined {
    font-size: 1rem;
    color: #7ec8f0;
}

.hero-slider .hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 0.25rem;
}

.hero-slider .search-bar {
    margin-top: 0.35rem;
    max-width: 520px;
    background: rgba(255, 255, 255, 0.97);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.hero-slider__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(8, 48, 82, 0.45);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-slider__arrow:hover {
    background: rgba(15, 76, 129, 0.85);
    transform: translateY(-50%) scale(1.05);
}

.hero-slider__arrow--prev {
    right: 1rem;
}

.hero-slider__arrow--next {
    left: 1rem;
}

@media (min-width: 768px) {
    .hero-slider__arrow--prev { right: 1.5rem; }
    .hero-slider__arrow--next { left: 1.5rem; }
}

.hero-slider__dots {
    position: absolute;
    bottom: 1.35rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 0.5rem;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    background: rgba(8, 48, 82, 0.4);
    backdrop-filter: blur(8px);
}

.hero-slider__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.hero-slider__dot.is-active {
    background: #fff;
    transform: scale(1.2);
}

.hero-slider__dot:hover {
    background: rgba(255, 255, 255, 0.85);
}

/* ── Hero (legacy) ── */
.hero-section {
    background: #f7f9fb;
}

.hero-blob {
    mask-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><path fill="black" d="M44.7,-76.4C58.1,-69.2,69.2,-57.1,76.5,-43.3C83.8,-29.5,87.2,-14.8,86.9,-0.2C86.5,14.4,82.4,28.8,75,42.4C67.6,56,56.9,68.8,43.5,75.9C30.1,83,15,84.4,-0.4,85.1C-15.8,85.8,-31.6,85.8,-45.3,79C-59,72.2,-70.6,58.7,-77.8,43.7C-85,28.7,-87.8,12.2,-86.3,-4C-84.8,-20.3,-79.1,-36.3,-69.5,-49.4C-59.9,-62.5,-46.4,-72.7,-32.1,-79.3C-17.8,-85.9,-2.7,-88.9,12.6,-86.7C27.9,-84.5,42.2,-77.1,44.7,-76.4Z" transform="translate(100 100)" /></svg>');
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    transition: transform 0.6s ease;
}

.hero-blob:hover {
    transform: scale(1.03);
}

.hero-highlight {
    background: linear-gradient(120deg, rgba(77, 168, 218, 0.4) 0%, rgba(15, 76, 129, 0.2) 100%);
    border-radius: 9999px;
}

.hero-glow {
    animation: hero-pulse 4s ease-in-out infinite;
}

@keyframes hero-pulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

/* ── Feature list ── */
.feature-item {
    transition: transform 0.25s ease, padding 0.25s ease;
    border-radius: 12px;
    padding: 4px 8px;
    margin: -4px -8px;
}

.feature-item:hover {
    transform: translateX(-6px);
    background: rgba(255, 255, 255, 0.7);
}

/* ── Search bar ── */
.search-bar {
    box-shadow: 0 8px 32px rgba(15, 76, 129, 0.08);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.search-bar:focus-within {
    box-shadow: 0 12px 40px rgba(77, 168, 218, 0.2);
    transform: translateY(-2px);
}

/* ── Badge ── */
.license-badge {
    background: linear-gradient(135deg, #EAF2F8 0%, #FFFFFF 100%);
    transition: box-shadow 0.3s ease;
}

.license-badge:hover {
    box-shadow: 0 4px 16px rgba(15, 76, 129, 0.1);
}

/* ── Cards (Bento) ── */
.bento-card {
    transition: border-color 0.2s ease;
    box-shadow: none;
}

.bento-card:hover {
    transform: none;
    box-shadow: none;
}

.bento-dark {
    background: linear-gradient(135deg, #0F4C81 0%, #1a5f96 100%);
    box-shadow: 0 8px 32px rgba(15, 76, 129, 0.3);
}

.bento-dark:hover {
    box-shadow: 0 16px 48px rgba(15, 76, 129, 0.4);
}

/* ── App promo ── */
.app-promo-box {
    background: linear-gradient(145deg, #dceef6 0%, #EAF2F8 50%, #FFFFFF 100%);
    box-shadow: 0 8px 40px rgba(15, 76, 129, 0.08);
}

.store-btn {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.store-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(15, 76, 129, 0.2);
}

/* ── CTA ── */
.cta-section {
    background:
        radial-gradient(ellipse 60% 80% at 50% 100%, rgba(77, 168, 218, 0.12) 0%, transparent 70%);
}

.cta-btn-main {
    background: linear-gradient(135deg, #0F4C81, #4DA8DA);
    box-shadow: 0 6px 28px rgba(15, 76, 129, 0.3);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cta-btn-main:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(77, 168, 218, 0.4);
}

/* ── Hero & Band CTAs ── */
.hero-cta-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 1.5rem;
    max-width: 100%;
}

@media (min-width: 640px) {
    .hero-cta-group {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
    }
}

.hero-cta-group--inline {
    margin-top: 0;
    justify-content: center;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 8px;
    padding: 14px 24px;
    font-family: 'Almarai', sans-serif;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
    line-height: 1.2;
}

.btn-cta .material-symbols-outlined {
    font-size: 22px;
}

.btn-cta-primary {
    background: #0F4C81;
    color: #FFFFFF;
    box-shadow: none;
    animation: none;
}

.btn-cta-primary:hover {
    transform: none;
    background: #0d4270;
    box-shadow: 0 2px 8px rgba(15, 76, 129, 0.18);
}

.btn-cta-start {
    background: #FFFFFF;
    color: #0F4C81;
    border: 2px solid #0F4C81;
    box-shadow: none;
}

.btn-cta-start:hover {
    background: #EAF2F8;
    transform: none;
}

.btn-cta-whatsapp {
    background: #25A55A;
    color: #FFFFFF;
    box-shadow: none;
}

.btn-cta-whatsapp:hover {
    transform: none;
    background: #1f8f4d;
}

.btn-cta-header {
    padding: 10px 22px;
    font-size: 14px;
    animation: none;
}

.btn-cta-header .material-symbols-outlined {
    display: none;
}

.btn-cta-search {
    background: linear-gradient(135deg, #0F4C81, #4DA8DA);
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(15, 76, 129, 0.2);
}

.btn-cta-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(77, 168, 218, 0.35);
}

@keyframes cta-pulse {
    0%, 100% { box-shadow: 0 8px 32px rgba(15, 76, 129, 0.35); }
    50% { box-shadow: 0 8px 40px rgba(77, 168, 218, 0.55); }
}

.cta-band-section {
    background: linear-gradient(180deg, #EAF2F8 0%, #FFFFFF 100%);
}

.cta-band-card {
    background: #0F4C81;
    border-radius: 12px;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    text-align: center;
    box-shadow: none;
}

@media (min-width: 768px) {
    .cta-band-card {
        flex-direction: row;
        text-align: right;
        justify-content: space-between;
        padding: 2.5rem 3rem;
    }

    [dir="ltr"] .cta-band-card {
        text-align: left;
    }
}

.cta-band-title {
    font-family: 'Almarai', sans-serif;
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 0.5rem;
}

.cta-band-sub {
    font-family: 'Tajawal', sans-serif;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 420px;
    line-height: 1.6;
}

.cta-band-card .btn-cta-start {
    background: #FFFFFF;
    border-color: #FFFFFF;
}

.whatsapp-fab {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 90;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #25A55A;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transition: background 0.2s ease;
    text-decoration: none;
}

[dir="ltr"] .whatsapp-fab {
    left: auto;
    right: 24px;
}

.whatsapp-fab:hover {
    background: #1f8f4d;
    transform: none;
}

.whatsapp-fab .material-symbols-outlined {
    font-size: 30px;
}

/* ── Footer ── */
.site-footer {
    margin-top: 4rem;
    background: #f7f9fb;
    border-top: 1px solid rgba(15, 76, 129, 0.1);
}

.site-footer-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1rem 2rem;
}

@media (min-width: 640px) {
    .site-footer-inner {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .site-footer-inner {
        grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
        gap: 2.5rem;
        padding: 3.5rem 2.5rem 2rem;
    }
}

.footer-col {
    min-width: 0;
}

.footer-brand-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-brand {
    align-self: start;
}

.footer-desc {
    font-family: 'Tajawal', sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: #3d7aad;
    margin: 0;
    max-width: 320px;
}

.footer-join-teacher-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    align-self: start;
    margin-top: 0.25rem;
    padding: 0.75rem 1.35rem;
    border-radius: 12px;
    font-family: 'Almarai', sans-serif;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(135deg, #E8A317 0%, #D97706 100%);
    border: 2px solid #D97706;
    box-shadow: 0 4px 16px rgba(217, 119, 6, 0.32);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.footer-join-teacher-btn .material-symbols-outlined {
    font-size: 20px;
}

.footer-join-teacher-btn:hover {
    color: #fff;
    filter: brightness(1.05);
    box-shadow: 0 6px 20px rgba(217, 119, 6, 0.42);
    transform: translateY(-1px);
}

.footer-join-teacher-btn:active {
    transform: translateY(0);
    filter: brightness(0.98);
}

.footer-title {
    font-family: 'Almarai', sans-serif;
    font-size: 16px;
    font-weight: 800;
    color: #0F4C81;
    margin: 0 0 1rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.footer-link {
    font-family: 'Tajawal', sans-serif;
    font-size: 15px;
    color: #3d7aad;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
    width: fit-content;
}

.footer-link:hover {
    color: #0F4C81;
}

[dir="rtl"] .footer-link:hover {
    transform: translateX(-3px);
}

[dir="ltr"] .footer-link:hover {
    transform: translateX(3px);
}

.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    font-family: 'Tajawal', sans-serif;
    font-size: 14px;
    color: #3d7aad;
    text-decoration: none;
    line-height: 1.5;
    transition: color 0.2s ease;
}

a.footer-contact-item:hover {
    color: #0F4C81;
}

.footer-contact-item .material-symbols-outlined {
    font-size: 20px;
    color: #4DA8DA;
    flex-shrink: 0;
    margin-top: 1px;
}

.footer-socials {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.footer-social {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 1px solid #b8d4e8;
    color: #0F4C81;
    text-decoration: none;
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.footer-social:hover {
    transform: translateY(-3px);
    background: #4DA8DA;
    border-color: #4DA8DA;
    color: #FFFFFF;
}

.site-footer-bottom {
    border-top: 1px solid rgba(184, 212, 232, 0.6);
    padding: 1.25rem 1rem 1.75rem;
    text-align: center;
}

.site-footer-bottom p {
    margin: 0;
    font-family: 'Tajawal', sans-serif;
    font-size: 13px;
    color: #3d7aad;
    opacity: 0.75;
}

/* ── Help widget ── */
.help-widget-btn {
    background: linear-gradient(135deg, #4DA8DA, #0F4C81);
    box-shadow: 0 6px 24px rgba(77, 168, 218, 0.4);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.help-widget-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 32px rgba(15, 76, 129, 0.45);
}

.help-bubble {
    animation: float-bubble 3s ease-in-out infinite;
}

@keyframes float-bubble {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* ── Scroll reveal ── */
.reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

.section-title::after {
    display: none;
}

.auth-card {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 2.5rem 2rem;
    box-shadow: none;
    border: 1px solid rgba(15, 76, 129, 0.1);
}

.auth-icon {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    background: #EAF2F8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-submit {
    border-radius: 8px;
}

.auth-label {
    display: block;
    font-family: 'Almarai', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #0F4C81;
    margin-bottom: 8px;
}

.auth-input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid #b8d4e8;
    background: #EAF2F8;
    font-family: 'Tajawal', sans-serif;
    font-size: 16px;
    color: #0F4C81;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.auth-input:focus {
    outline: none;
    border-color: #4DA8DA;
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(77, 168, 218, 0.2);
}

.auth-role-toggle {
    display: flex;
    gap: 12px;
}

.auth-role-option {
    flex: 1;
    cursor: pointer;
}

.auth-role-option input {
    display: none;
}

.auth-role-option span {
    display: block;
    text-align: center;
    padding: 12px 16px;
    border-radius: 12px;
    border: 2px solid #b8d4e8;
    font-family: 'Almarai', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: #3d7aad;
    transition: all 0.2s ease;
}

.auth-role-option input:checked + span {
    border-color: #4DA8DA;
    background: linear-gradient(135deg, #0F4C81, #4DA8DA);
    color: #FFFFFF;
}

.auth-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-family: 'Tajawal', sans-serif;
    font-size: 14px;
    color: #3d7aad;
}

.auth-checkbox input {
    width: 18px;
    height: 18px;
    accent-color: #0F4C81;
}

.auth-submit {
    margin-top: 8px;
}

.auth-switch a {
    margin-right: 4px;
}

[dir="ltr"] .auth-switch a {
    margin-right: 0;
    margin-left: 4px;
}

.auth-redirect-banner {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: linear-gradient(135deg, rgba(77, 168, 218, 0.15), rgba(15, 76, 129, 0.08));
    border: 1px solid rgba(77, 168, 218, 0.35);
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 1.25rem;
    font-family: 'Tajawal', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #0F4C81;
}

.auth-redirect-banner .material-symbols-outlined {
    color: #4DA8DA;
    font-size: 22px;
    flex-shrink: 0;
    margin-top: 2px;
}

.auth-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 1.75rem;
}

.auth-step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 72px;
    opacity: 0.45;
    transition: opacity 0.2s;
}

.auth-step-item.active,
.auth-step-item.done {
    opacity: 1;
}

.auth-step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #dceef6;
    color: #0F4C81;
    font-family: 'Almarai', sans-serif;
    font-size: 14px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}

.auth-step-item.active .auth-step-num {
    background: #0F4C81;
    color: #FFFFFF;
}

.auth-step-item.done .auth-step-num {
    background: #4DA8DA;
    color: #FFFFFF;
}

.auth-step-label {
    font-family: 'Tajawal', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #3d7aad;
    text-align: center;
}

.auth-step-line {
    flex: 1;
    max-width: 48px;
    height: 2px;
    background: #dceef6;
    margin-bottom: 22px;
}

.auth-step-item.hidden,
.auth-step-line.hidden {
    display: none !important;
}

.auth-form-error {
    background: rgba(180, 35, 24, 0.08);
    border: 1px solid rgba(180, 35, 24, 0.25);
    color: #b42318;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 1rem;
    font-family: 'Tajawal', sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

.auth-form-success {
    background: rgba(46, 125, 50, 0.08);
    border: 1px solid rgba(46, 125, 50, 0.25);
    color: #2e7d32;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 1rem;
    font-family: 'Tajawal', sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

.auth-field-help {
    font-family: 'Tajawal', sans-serif;
    font-size: 12px;
    color: #3d7aad;
    margin-top: 6px;
}

.reg-role-locked .auth-role-toggle {
    display: none;
}

.reg-role-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(15, 76, 129, 0.1), rgba(77, 168, 218, 0.15));
    border: 1px solid rgba(77, 168, 218, 0.35);
    color: #0F4C81;
    font-family: 'Almarai', sans-serif;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.reg-role-badge.hidden {
    display: none;
}

.auth-step-panel.hidden {
    display: none;
}

.auth-step-hint {
    font-family: 'Tajawal', sans-serif;
    font-size: 14px;
    color: #3d7aad;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.auth-panel-fields {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.auth-step-actions {
    display: flex;
    gap: 12px;
    margin-top: 1.5rem;
    align-items: center;
}

.auth-back-btn {
    padding: 14px 24px;
    border-radius: 999px;
    border: 2px solid #b8d4e8;
    background: transparent;
    color: #0F4C81;
    font-family: 'Almarai', sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    white-space: nowrap;
}

.auth-back-btn:hover {
    background: #EAF2F8;
    border-color: #4DA8DA;
}

/* ── Grade Modal (Year Page) ── */
.grade-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.grade-modal.hidden {
    display: none;
}

.grade-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 76, 129, 0.45);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.grade-modal--open .grade-modal-backdrop {
    opacity: 1;
}

.grade-modal-panel {
    position: relative;
    width: 100%;
    max-width: 480px;
    background: #FFFFFF;
    border-radius: 24px;
    padding: 28px 24px 24px;
    box-shadow: 0 20px 60px rgba(15, 76, 129, 0.25);
    transform: scale(0.92) translateY(16px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    text-align: center;
}

.grade-modal--open .grade-modal-panel {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.grade-modal-close {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: #EAF2F8;
    color: #0F4C81;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

[dir="ltr"] .grade-modal-close {
    left: auto;
    right: 16px;
}

.grade-modal-close:hover {
    background: #dceef6;
}

.grade-modal-title {
    margin-bottom: 4px;
    padding-top: 8px;
}

.grade-modal-subtitle {
    margin-bottom: 20px;
}

.grade-modal-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

@media (min-width: 400px) {
    .grade-modal-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

.grade-modal-item {
    display: block;
    padding: 14px 12px;
    border-radius: 12px;
    border: 2px solid #b8d4e8;
    background: #EAF2F8;
    text-decoration: none;
    font-family: 'Tajawal', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #0F4C81;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.grade-modal-item:hover {
    background: linear-gradient(135deg, #0F4C81, #4DA8DA);
    border-color: #4DA8DA;
    color: #FFFFFF;
    transform: translateY(-2px);
}

/* ── Grade Lessons Page ── */
.grade-lessons-hero {
    text-align: right;
}

[dir="ltr"] .grade-lessons-hero {
    text-align: left;
}

.grade-lessons-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    background: #EAF2F8;
    color: #0F4C81;
    border-radius: 8px;
    border: 1px solid rgba(15, 76, 129, 0.12);
    font-family: 'Almarai', sans-serif;
    font-weight: 700;
    font-size: 15px;
    box-shadow: none;
}

.grade-lessons-badge .material-symbols-outlined {
    font-size: 22px;
}

.grade-lessons-change {
    text-decoration: none;
}

.grade-lessons-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 640px) {
    .grade-lessons-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .grade-lessons-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.grade-lesson-card {
    display: block;
    background: #FFFFFF;
    border: 1px solid rgba(15, 76, 129, 0.1);
    border-radius: 12px;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    box-shadow: none;
    transition: border-color 0.2s ease;
}

.grade-lesson-card:hover {
    transform: none;
    box-shadow: none;
    border-color: #0F4C81;
}

.grade-lesson-card-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.grade-lesson-icon {
    font-size: 28px;
    color: #4DA8DA;
}

.grade-lesson-subject {
    font-family: 'Almarai', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #4DA8DA;
    background: #EAF2F8;
    padding: 4px 12px;
    border-radius: 9999px;
}

.grade-lesson-title {
    font-family: 'Almarai', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #0F4C81;
    margin-bottom: 8px;
    line-height: 1.4;
}

.grade-lesson-desc {
    font-family: 'Tajawal', sans-serif;
    font-size: 14px;
    color: #3d7aad;
    margin-bottom: 16px;
    line-height: 1.5;
}

.grade-lesson-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid #EAF2F8;
}

.grade-lesson-units {
    font-family: 'Almarai', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #0F4C81;
    background: #dceef6;
    padding: 4px 10px;
    border-radius: 9999px;
}

.grade-lesson-arrow {
    color: #4DA8DA;
    font-size: 22px;
    transition: transform 0.2s ease;
}

.grade-lesson-card:hover .grade-lesson-arrow {
    transform: translateX(-4px);
}

[dir="ltr"] .grade-lesson-card:hover .grade-lesson-arrow {
    transform: translateX(4px);
}

/* ── Info Pages (About / Contact) ── */
.info-hero {
    padding: 3rem 0 2rem;
    background: #f7f9fb;
}

.info-hero-icon {
    display: none;
}

.info-hero-icon .material-symbols-outlined {
    font-size: 36px;
}

.info-mv-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .info-mv-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.info-card {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid rgba(15, 76, 129, 0.1);
    box-shadow: none;
}

.info-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: #EAF2F8;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0F4C81;
    margin-bottom: 1rem;
}

.info-card-icon .material-symbols-outlined {
    font-size: 28px;
}

.info-values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .info-values-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .info-values-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.value-card {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(15, 76, 129, 0.1);
    text-align: right;
}

[dir="ltr"] .value-card {
    text-align: left;
}

.value-card-icon {
    display: none;
}

.info-stats-section {
    padding: 2.5rem 0;
    background: #FFFFFF;
    border-top: 1px solid rgba(184, 212, 232, 0.4);
    border-bottom: 1px solid rgba(184, 212, 232, 0.4);
}

.info-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .info-stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-card {
    text-align: center;
    padding: 1rem;
}

.stat-card-number {
    font-family: 'Almarai', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: #0F4C81;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.stat-card-label {
    font-family: 'Tajawal', sans-serif;
    font-size: 14px;
    color: #3d7aad;
}

.info-cta-section {
    padding: 3rem 0 4rem;
}

.info-cta-card {
    background: #0F4C81;
    border-radius: 12px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: none;
}

.info-cta-card .btn-outline {
    background: transparent;
}

.info-cta-card .btn-outline:hover {
    background: rgba(255, 255, 255, 0.15);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
}

@media (min-width: 992px) {
    .contact-grid {
        grid-template-columns: 1.2fr 0.8fr;
    }
}

.contact-textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-info-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: #FFFFFF;
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    border: 1px solid rgba(184, 212, 232, 0.5);
    box-shadow: 0 2px 12px rgba(15, 76, 129, 0.05);
}

.contact-info-icon {
    font-size: 28px;
    color: #4DA8DA;
    flex-shrink: 0;
}

.contact-info-label {
    font-family: 'Almarai', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #3d7aad;
    margin-bottom: 4px;
}

.contact-info-value {
    font-family: 'Tajawal', sans-serif;
    font-size: 15px;
    color: #0F4C81;
    text-decoration: none;
}

a.contact-info-value:hover {
    color: #4DA8DA;
}

.contact-success.hidden {
    display: none;
}

.contact-form.hidden {
    display: none;
}

/* ── Booking Page ── */
.booking-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #3d7aad;
    text-decoration: none;
    font-family: 'Almarai', sans-serif;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 1.5rem;
    transition: color 0.2s ease;
}

.booking-back-link:hover {
    color: #0F4C81;
}

[dir="ltr"] .booking-back-link .material-symbols-outlined {
    transform: scaleX(-1);
}

.booking-hero {
    margin-bottom: 2rem;
}

.booking-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.booking-step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #FFFFFF;
    border: 1px solid #b8d4e8;
    border-radius: 9999px;
    padding: 0.5rem 1rem;
    font-family: 'Tajawal', sans-serif;
    font-size: 13px;
    color: #3d7aad;
}

.booking-step span:first-child {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #dceef6;
    color: #0F4C81;
    font-family: 'Almarai', sans-serif;
    font-weight: 800;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.booking-step.active {
    border-color: #4DA8DA;
    color: #0F4C81;
    font-weight: 600;
}

.booking-step.active span:first-child {
    background: linear-gradient(135deg, #0F4C81, #4DA8DA);
    color: #FFFFFF;
}

.booking-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: start;
}

@media (min-width: 992px) {
    .booking-layout {
        grid-template-columns: 1fr 340px;
    }
}

.booking-main {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.booking-card {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(15, 76, 129, 0.1);
    box-shadow: none;
}

.booking-teacher-card {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.booking-teacher-avatar {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    object-fit: cover;
    border: 2px solid #dceef6;
    flex-shrink: 0;
}

.booking-teacher-label {
    font-family: 'Almarai', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #4DA8DA;
    margin-bottom: 2px;
}

.booking-teacher-name {
    font-family: 'Almarai', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: #0F4C81;
}

.booking-teacher-sub {
    font-family: 'Tajawal', sans-serif;
    font-size: 14px;
    color: #3d7aad;
    margin: 4px 0 0;
}

.booking-section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Almarai', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: #0F4C81;
    margin: 0 0 1rem;
}

.booking-section-title .material-symbols-outlined {
    display: none;
}

.booking-courses {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.booking-course-card {
    display: block;
    cursor: pointer;
    border: 2px solid #dceef6;
    border-radius: 16px;
    padding: 1rem 1.25rem;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.booking-course-card input {
    display: none;
}

.booking-course-card:hover {
    border-color: #4DA8DA;
}

.booking-course-card.selected {
    border-color: #0F4C81;
    background: #EAF2F8;
    box-shadow: 0 4px 16px rgba(15, 76, 129, 0.08);
}

.booking-course-title {
    font-family: 'Almarai', sans-serif;
    font-size: 16px;
    font-weight: 800;
    color: #0F4C81;
    margin-bottom: 4px;
}

.booking-course-desc {
    font-family: 'Tajawal', sans-serif;
    font-size: 14px;
    color: #3d7aad;
}

.booking-lesson-card {
    display: flex;
    gap: 1rem;
    border: 2px solid #dceef6;
    border-radius: 16px;
    padding: 1rem;
    background: #f8fbfd;
}

.booking-lesson-card__thumb {
    width: 96px;
    height: 72px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
}

.booking-lesson-card__body {
    flex: 1;
    min-width: 0;
}

.booking-lesson-card__title {
    font-family: 'Almarai', sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    color: #0F4C81;
    margin-bottom: 0.5rem;
}

.booking-lesson-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    font-family: 'Tajawal', sans-serif;
    font-size: 0.85rem;
    color: #3d7aad;
    margin-bottom: 0.5rem;
}

.booking-lesson-card__schedule {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.booking-lesson-card__schedule .material-symbols-outlined {
    font-size: 16px;
}

.booking-lesson-card__desc {
    font-family: 'Tajawal', sans-serif;
    font-size: 0.88rem;
    color: #5a8fb8;
    line-height: 1.55;
    margin: 0;
}
    margin-bottom: 8px;
    line-height: 1.5;
}

.booking-course-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-family: 'Tajawal', sans-serif;
    font-size: 13px;
    color: #3d7aad;
    margin-bottom: 8px;
}

.booking-course-price {
    font-family: 'Almarai', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: #0F4C81;
}

.booking-calendar-head,
.booking-calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
}

.booking-cal-label {
    text-align: center;
    font-family: 'Almarai', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #3d7aad;
}

.booking-cal-day {
    aspect-ratio: 1;
    border: 2px solid #dceef6;
    border-radius: 12px;
    background: #FFFFFF;
    font-family: 'Almarai', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #0F4C81;
    cursor: pointer;
    transition: all 0.2s ease;
}

.booking-cal-day:hover:not(.disabled) {
    border-color: #4DA8DA;
    background: #EAF2F8;
}

.booking-cal-day.selected {
    background: #4DA8DA;
    border-color: #4DA8DA;
    color: #FFFFFF;
    font-weight: 800;
}

.booking-cal-day.disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.booking-slots {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .booking-slots {
        grid-template-columns: repeat(4, 1fr);
    }
}

.booking-slot {
    padding: 0.75rem 0.5rem;
    border: 2px solid #dceef6;
    border-radius: 12px;
    background: #FFFFFF;
    font-family: 'Almarai', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #0F4C81;
    cursor: pointer;
    transition: all 0.2s ease;
}

.booking-slot:hover:not(.disabled) {
    border-color: #4DA8DA;
}

.booking-slot.selected {
    background: #4DA8DA;
    border-color: #4DA8DA;
    color: #FFFFFF;
}

.booking-slot.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.booking-pay-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.booking-pay-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0.5rem;
    border: 2px solid #dceef6;
    border-radius: 14px;
    cursor: pointer;
    text-align: center;
    font-family: 'Almarai', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #3d7aad;
    transition: all 0.2s ease;
}

.booking-pay-card input {
    display: none;
}

.booking-pay-card .material-symbols-outlined {
    font-size: 28px;
    color: #4DA8DA;
}

.booking-pay-card:hover {
    border-color: #4DA8DA;
}

.booking-pay-card.selected {
    border-color: #0F4C81;
    background: #EAF2F8;
    color: #0F4C81;
}

.booking-notes {
    min-height: 90px;
    resize: vertical;
}

.booking-sidebar {
    position: relative;
}

.booking-summary-card {
    position: sticky;
    top: 6rem;
    background: #FFFFFF;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(15, 76, 129, 0.1);
    box-shadow: none;
}

.booking-summary-title {
    font-family: 'Almarai', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: #0F4C81;
    margin: 0 0 1.25rem;
}

.booking-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-family: 'Tajawal', sans-serif;
    font-size: 14px;
}

.booking-summary-label {
    color: #3d7aad;
    flex-shrink: 0;
}

.booking-summary-value {
    color: #0F4C81;
    font-weight: 600;
    text-align: end;
}

.booking-summary-divider {
    height: 1px;
    background: #dceef6;
    margin: 1rem 0;
}

.booking-summary-total {
    font-family: 'Almarai', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: #0F4C81;
    margin-top: 0.5rem;
}

.booking-confirm-btn {
    width: 100%;
    margin-top: 1.25rem;
    padding: 1rem;
    border-radius: 9999px;
    font-family: 'Almarai', sans-serif;
    font-weight: 800;
    font-size: 16px;
    border: none;
    cursor: pointer;
    background: #0F4C81;
    color: #FFFFFF;
}

.booking-secure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    margin-top: 1rem;
    font-family: 'Tajawal', sans-serif;
    font-size: 12px;
    color: #3d7aad;
}

.booking-secure .material-symbols-outlined {
    font-size: 16px;
}

.booking-status {
    margin: 0.75rem 0 0;
    padding: 0.65rem 0.85rem;
    border-radius: 12px;
    font-family: 'Tajawal', sans-serif;
    font-size: 0.9rem;
    line-height: 1.5;
}

.booking-status--error {
    background: #ffebee;
    color: #b71c1c;
    border: 1px solid #ffcdd2;
}

.booking-status--success {
    background: #e8f5e9;
    color: #1b5e20;
    border: 1px solid #c8e6c9;
}

.booking-status--info {
    background: #e3f2fd;
    color: #0d47a1;
    border: 1px solid #bbdefb;
}

/* ── Lesson Detail Page ── */
.ld-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #3d7aad;
    text-decoration: none;
    font-family: 'Almarai', sans-serif;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 1.5rem;
    transition: color 0.2s ease;
}

.ld-back-link:hover {
    color: #0F4C81;
}

[dir="ltr"] .ld-back-link .material-symbols-outlined {
    transform: scaleX(-1);
}

.ld-hero {
    margin-bottom: 2rem;
}

.ld-hero-cover {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    min-height: 220px;
}

.ld-hero-img {
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
    display: block;
}

.ld-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(15, 76, 129, 0.88) 0%, rgba(15, 76, 129, 0.25) 100%);
}

.ld-hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    color: #FFFFFF;
}

@media (min-width: 768px) {
    .ld-hero-content {
        padding: 2rem;
    }
}

.ld-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border-radius: 9999px;
    padding: 0.375rem 1rem;
    font-family: 'Almarai', sans-serif;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 0.75rem;
    width: fit-content;
}

.ld-hero-title {
    font-family: 'Almarai', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.35;
    margin: 0 0 0.75rem;
}

@media (min-width: 768px) {
    .ld-hero-title {
        font-size: 2rem;
    }
}

.ld-hero-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-family: 'Tajawal', sans-serif;
    font-size: 14px;
    opacity: 0.9;
}

.ld-hero-meta-item .material-symbols-outlined {
    font-size: 18px;
}

.ld-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: start;
}

@media (min-width: 992px) {
    .ld-layout {
        grid-template-columns: 1fr 320px;
    }
}

.ld-main {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.ld-card {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(15, 76, 129, 0.1);
    box-shadow: none;
}

.ld-section-title .material-symbols-outlined {
    display: none;
}

.ld-section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Almarai', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: #0F4C81;
    margin: 0 0 1rem;
}

.ld-overview-text {
    font-family: 'Tajawal', sans-serif;
    font-size: 16px;
    line-height: 1.75;
    color: #3d7aad;
    margin: 0;
}

/* Student rating & reviews */
.st-reviews-summary { margin-bottom: 1.25rem; }

.st-reviews-summary__inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    padding: 1rem 1.15rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #f0f7fc 0%, #fafcfe 100%);
    border: 1px solid rgba(15, 76, 129, 0.1);
}

.st-reviews-summary__score {
    font-family: 'Almarai', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: #0F4C81;
    line-height: 1;
}

.st-reviews-summary__meta {
    margin: 0;
    font-size: 0.875rem;
    color: #5a7f9e;
}

.st-stars {
    display: inline-flex;
    align-items: center;
    gap: 0.1rem;
    direction: ltr;
}

.st-stars--sm .st-star { font-size: 1rem; }
.st-stars--md .st-star { font-size: 1.15rem; }
.st-stars--lg .st-star { font-size: 1.45rem; }

.st-star {
    font-variation-settings: 'FILL' 0, 'wght' 400;
    color: #c5d4e0;
}

.st-star--on {
    font-variation-settings: 'FILL' 1, 'wght' 500;
    color: #f5a623;
}

.st-rating-form,
.st-rating-card {
    padding: 1.15rem 1.25rem;
    border-radius: 12px;
    border: 1px solid rgba(15, 76, 129, 0.12);
    background: #fff;
    margin-bottom: 1rem;
}

.st-rating-form__title,
.st-rating-card__title {
    font-family: 'Almarai', sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    color: #0F4C81;
    margin: 0 0 0.65rem;
}

.st-rating-form__label {
    margin: 0 0 0.5rem;
    font-size: 0.9rem;
    color: #3d6f96;
}

.st-star-picker {
    display: flex;
    gap: 0.35rem;
    margin-bottom: 0.85rem;
    direction: ltr;
    justify-content: flex-end;
}

.st-star-picker__btn {
    border: none;
    background: transparent;
    padding: 0.15rem;
    cursor: pointer;
    line-height: 1;
    transition: transform 0.15s ease;
}

.st-star-picker__btn:hover { transform: scale(1.08); }

.st-star-picker__btn .material-symbols-outlined {
    font-size: 2rem;
    color: #c5d4e0;
    font-variation-settings: 'FILL' 0;
    transition: color 0.15s ease, font-variation-settings 0.15s ease;
}

.st-star-picker__btn.is-active .material-symbols-outlined,
.st-star-picker__btn:hover .material-symbols-outlined {
    color: #f5a623;
    font-variation-settings: 'FILL' 1;
}

.st-rating-form__textarea {
    width: 100%;
    border: 1px solid #c5d9ea;
    border-radius: 10px;
    padding: 0.75rem 0.9rem;
    font-family: 'Tajawal', sans-serif;
    font-size: 0.95rem;
    resize: vertical;
    min-height: 88px;
    margin-bottom: 0.75rem;
}

.st-rating-form__textarea:focus {
    outline: none;
    border-color: #0F4C81;
    box-shadow: 0 0 0 3px rgba(15, 76, 129, 0.12);
}

.st-rating-form__submit { width: 100%; }

.st-rating-form__note {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0.65rem 0 0;
    font-size: 0.8rem;
    color: #6b8fad;
}

.st-rating-form__note .material-symbols-outlined { font-size: 1rem; }

.st-rating-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: #fff4e5;
    color: #b86e00;
    margin-bottom: 0.65rem;
}

.st-rating-card__badge--ok {
    background: #e8f6ee;
    color: #1a7a45;
}

.st-rating-card__comment {
    margin: 0.65rem 0 0;
    font-size: 0.92rem;
    line-height: 1.6;
    color: #3d5f7d;
}

.st-rating-card__hint {
    margin: 0.5rem 0 0.85rem;
    font-size: 0.82rem;
    color: #6b8fad;
}

.st-rating-edit-btn { margin-top: 0.25rem; }

.st-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.st-review-item {
    padding: 1rem 1.1rem;
    border-radius: 12px;
    border: 1px solid rgba(15, 76, 129, 0.08);
    background: #fafcfe;
}

.st-review-item__head {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.st-review-item__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0F4C81, #1a7fc4);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Almarai', sans-serif;
    font-weight: 800;
    flex-shrink: 0;
}

.st-review-item__name {
    display: block;
    font-size: 0.92rem;
    color: #0F4C81;
}

.st-review-item__date {
    display: block;
    font-size: 0.75rem;
    color: #7a96b0;
}

.st-review-item__head .st-stars { margin-inline-start: auto; }

.st-review-item__comment {
    margin: 0.65rem 0 0;
    font-size: 0.9rem;
    line-height: 1.65;
    color: #3d5f7d;
}

.st-reviews-empty {
    text-align: center;
    padding: 1.25rem;
    font-size: 0.9rem;
    color: #7a96b0;
    margin: 0;
}

.ld-broadcast-banner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    background: rgba(15, 76, 129, 0.08);
    color: #0F4C81;
    font-family: 'Almarai', sans-serif;
    font-weight: 700;
    font-size: 14px;
}

.ld-objectives {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ld-objective-item {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    font-family: 'Tajawal', sans-serif;
    font-size: 15px;
    color: #2d5f8a;
    line-height: 1.5;
}

.ld-objective-item .material-symbols-outlined {
    color: #4DA8DA;
    font-size: 22px;
    flex-shrink: 0;
    margin-top: 1px;
}

.ld-chapters {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ld-materials-grid,
.ld-exams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}

.ld-material-card,
.ld-exam-card {
    display: flex;
    gap: 0.85rem;
    padding: 1rem;
    border-radius: 14px;
    border: 1px solid rgba(15, 76, 129, 0.1);
    background: linear-gradient(180deg, #fafcfe 0%, #fff 100%);
    box-shadow: 0 8px 24px rgba(15, 76, 129, 0.06);
}

.ld-material-card__media,
.ld-material-card__icon,
.ld-exam-card__icon {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: #eaf2f8;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0F4C81;
}

.ld-material-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ld-material-card__body h3,
.ld-exam-card__body h3 {
    margin: 0 0 0.35rem;
    font-family: 'Almarai', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    color: #0F4C81;
}

.ld-material-card__body p,
.ld-exam-card__body p {
    margin: 0;
    font-family: 'Tajawal', sans-serif;
    font-size: 0.85rem;
    color: #3d7aad;
    line-height: 1.5;
}

.ld-material-card__btn,
.ld-exam-start-btn {
    margin-top: 0.75rem;
}

.ld-exam-card--done {
    border-color: rgba(21, 128, 61, 0.2);
}

.ld-exam-card__score {
    margin-top: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-family: 'Tajawal', sans-serif;
    font-size: 0.85rem;
    color: #15803d;
}

.ld-exam-card__pct {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    height: 32px;
    padding: 0 0.65rem;
    border-radius: 999px;
    background: #15803d;
    color: #fff;
    font-family: 'Almarai', sans-serif;
    font-weight: 800;
}

.ld-enrolled-banner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 1rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    background: #e8f5e9;
    color: #2e7d32;
    font-family: 'Tajawal', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
}

.ld-enrolled-banner .material-symbols-outlined {
    font-size: 1.25rem;
    font-variation-settings: 'FILL' 1;
}

.ld-empty-extras {
    margin: 0;
    padding: 1rem;
    text-align: center;
    color: #3d7aad;
    font-family: 'Tajawal', sans-serif;
    font-size: 0.9rem;
    background: #f5f9fc;
    border-radius: 12px;
}

.st-exam-modal {
    position: fixed;
    inset: 0;
    z-index: 1400;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.st-exam-modal.hidden {
    display: none;
}

.st-exam-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 76, 129, 0.5);
    backdrop-filter: blur(4px);
}

.st-exam-modal__card {
    position: relative;
    width: min(100%, 680px);
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    background: #fff;
    border-radius: 20px;
    padding: 1.35rem 1.5rem 1.5rem;
    box-shadow: 0 24px 60px rgba(15, 76, 129, 0.2);
}

.st-exam-modal__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.st-exam-modal__eyebrow {
    margin: 0 0 0.25rem;
    font-family: 'Tajawal', sans-serif;
    font-size: 0.78rem;
    color: #3d7aad;
    letter-spacing: 0.02em;
}

.st-exam-modal__title {
    margin: 0;
    font-family: 'Almarai', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    color: #0F4C81;
}

.st-exam-modal__close {
    border: none;
    background: #eaf2f8;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    cursor: pointer;
    color: #0F4C81;
}

.st-exam-modal__desc {
    margin: 0 0 1rem;
    font-family: 'Tajawal', sans-serif;
    color: #3d7aad;
    line-height: 1.6;
}

.st-exam-take-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.st-exam-question {
    border: 1px solid rgba(15, 76, 129, 0.1);
    border-radius: 14px;
    padding: 1rem 1rem 0.9rem;
    margin: 0;
    background: #f8fbfe;
}

.st-exam-question legend {
    font-family: 'Almarai', sans-serif;
    font-size: 0.98rem;
    font-weight: 800;
    color: #0F4C81;
    margin-bottom: 0.65rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.st-exam-question__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: #0F4C81;
    color: #fff;
    font-size: 0.8rem;
}

.st-exam-options {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.st-exam-option {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 0.8rem;
    border-radius: 10px;
    background: #fff;
    border: 1px solid rgba(15, 76, 129, 0.08);
    cursor: pointer;
    font-family: 'Tajawal', sans-serif;
    color: #2d5f8a;
}

.st-exam-option:has(input:checked) {
    border-color: #0F4C81;
    background: rgba(15, 76, 129, 0.06);
}

.st-exam-option input {
    accent-color: #0F4C81;
}

.st-exam-submit-btn {
    align-self: flex-start;
    min-width: 180px;
}

.st-exam-result {
    text-align: center;
    padding: 1rem 0 0.5rem;
}

.st-exam-result__ring {
    --pct: 0;
    width: 140px;
    height: 140px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, #fff 58%, transparent 59%),
        conic-gradient(#15803d calc(var(--pct) * 1%), #eaf2f8 0);
    box-shadow: inset 0 0 0 1px rgba(15, 76, 129, 0.08);
}

.st-exam-result__value {
    font-family: 'Almarai', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: #15803d;
}

.st-exam-result__title {
    margin: 0 0 0.35rem;
    font-family: 'Almarai', sans-serif;
    font-size: 1.2rem;
    color: #0F4C81;
}

.st-exam-result__meta {
    margin: 0;
    font-family: 'Tajawal', sans-serif;
    color: #3d7aad;
}

body.st-exam-modal-open {
    overflow: hidden;
}

.ld-chapter-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 14px;
    border: 1px solid #dceef6;
    background: #EAF2F8;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ld-chapter-card:hover {
    border-color: #4DA8DA;
    box-shadow: 0 4px 12px rgba(15, 76, 129, 0.08);
}

.ld-chapter-num {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0F4C81, #4DA8DA);
    color: #FFFFFF;
    font-family: 'Almarai', sans-serif;
    font-weight: 800;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ld-chapter-title {
    font-family: 'Almarai', sans-serif;
    font-size: 15px;
    font-weight: 800;
    color: #0F4C81;
    margin-bottom: 4px;
}

.ld-chapter-desc {
    font-family: 'Tajawal', sans-serif;
    font-size: 13px;
    color: #3d7aad;
    line-height: 1.5;
}

.ld-sidebar-card {
    position: sticky;
    top: 6rem;
    background: #FFFFFF;
    border-radius: 20px;
    padding: 1.5rem;
    border: 1px solid rgba(77, 168, 218, 0.35);
    box-shadow: 0 8px 32px rgba(15, 76, 129, 0.1);
}

.ld-meta-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #dceef6;
}

.ld-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-family: 'Tajawal', sans-serif;
    font-size: 14px;
}

.ld-meta-label {
    color: #3d7aad;
}

.ld-meta-value {
    color: #0F4C81;
    font-weight: 600;
}

.ld-teacher-box {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin-bottom: 1.25rem;
}

.ld-teacher-avatar {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    object-fit: cover;
    border: 2px solid #dceef6;
    flex-shrink: 0;
}

.ld-teacher-label {
    font-family: 'Almarai', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #4DA8DA;
    margin-bottom: 2px;
}

.ld-teacher-name {
    font-family: 'Almarai', sans-serif;
    font-size: 16px;
    font-weight: 800;
    color: #0F4C81;
}

.ld-teacher-sub {
    font-family: 'Tajawal', sans-serif;
    font-size: 12px;
    color: #3d7aad;
    margin: 4px 0 0;
    line-height: 1.4;
}

.ld-book-btn,
.ld-teacher-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.875rem 1rem;
    border-radius: 9999px;
    font-family: 'Almarai', sans-serif;
    font-weight: 800;
    font-size: 14px;
    text-decoration: none;
    margin-bottom: 0.75rem;
}

.ld-teacher-btn {
    margin-bottom: 0;
}

/* ── Student Dashboard ── */
.student-dashboard {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: start;
}

@media (min-width: 992px) {
    .student-dashboard {
        grid-template-columns: 260px 1fr;
    }
}

.student-sidebar {
    display: flex;
    flex-direction: column;
    background: #FFFFFF;
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid rgba(15, 76, 129, 0.1);
    box-shadow: none;
}

@media (min-width: 992px) {
    .student-sidebar {
        position: sticky;
        top: 6rem;
    }
}

.student-sidebar-user {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding-bottom: 1.25rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid #dceef6;
}

.student-avatar {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    background: #0F4C81;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.student-avatar .material-symbols-outlined {
    font-size: 28px;
}

.student-sidebar-name {
    font-family: 'Almarai', sans-serif;
    font-size: 16px;
    font-weight: 800;
    color: #0F4C81;
}

.student-sidebar-grade {
    font-family: 'Tajawal', sans-serif;
    font-size: 13px;
    color: #3d7aad;
    margin-top: 2px;
}

.student-sidebar-nav {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.375rem;
}

.student-nav-link {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-family: 'Almarai', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #3d7aad;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.student-nav-link:hover {
    background: #EAF2F8;
    color: #0F4C81;
}

.student-nav-link.active {
    background: linear-gradient(135deg, #0F4C81, #4DA8DA);
    color: #FFFFFF;
}

.student-nav-link .material-symbols-outlined {
    font-size: 22px;
}

.student-content {
    min-width: 0;
}

.student-panel-head {
    margin-bottom: 1.25rem;
}

.student-panel-title {
    font-family: 'Almarai', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: #0F4C81;
    margin: 0 0 0.375rem;
}

.student-panel-sub {
    font-family: 'Tajawal', sans-serif;
    font-size: 15px;
    color: #3d7aad;
    margin: 0;
}

.student-form--loading {
    opacity: 0.55;
    pointer-events: none;
}

.student-profile-loading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border-radius: 12px;
    background: #EAF2F8;
    color: #0F4C81;
    font-family: 'Tajawal', sans-serif;
    font-size: 14px;
}

.student-profile-loading.hidden {
    display: none;
}

.st-page-loading {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(4px);
}

.st-page-loading.hidden {
    display: none;
}

.st-page-loading__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
    padding: 1.5rem 2rem;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 40px rgba(15, 76, 129, 0.12);
    color: #0F4C81;
    font-family: 'Tajawal', sans-serif;
    font-size: 0.95rem;
}

.st-page-loading__spinner {
    font-size: 2.5rem;
    animation: student-spin 1s linear infinite;
}

body.st-page-loading-active {
    overflow: hidden;
}

.student-spin {
    animation: student-spin 1s linear infinite;
}

@keyframes student-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.auth-input[readonly] {
    background: #f5f8fb;
    cursor: not-allowed;
    color: #3d7aad;
}

.student-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

@media (min-width: 640px) {
    .student-form-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.student-joined {
    font-family: 'Tajawal', sans-serif;
    font-size: 13px;
    color: #3d7aad;
    margin: 0 0 1.25rem;
}

.student-save-btn {
    width: 100%;
    padding: 0.875rem;
    border: none;
    border-radius: 9999px;
    font-family: 'Almarai', sans-serif;
    font-weight: 800;
    cursor: pointer;
}

@media (min-width: 640px) {
    .student-save-btn {
        width: auto;
        min-width: 200px;
    }
}

.student-toast {
    background: #dceef6;
    color: #0F4C81;
    border: 1px solid #4DA8DA;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-family: 'Almarai', sans-serif;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 1rem;
    text-align: center;
}

.student-toast.hidden {
    display: none;
}

.student-panel.hidden {
    display: none;
}

.st-lessons-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.st-lesson-card {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    border: 1px solid rgba(184, 212, 232, 0.6);
    box-shadow: 0 2px 12px rgba(15, 76, 129, 0.05);
}

.st-lesson-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.st-lesson-title {
    font-family: 'Almarai', sans-serif;
    font-size: 16px;
    font-weight: 800;
    color: #0F4C81;
    margin: 0;
}

.st-lesson-status {
    font-family: 'Almarai', sans-serif;
    font-size: 12px;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    white-space: nowrap;
}

.st-lesson-status--upcoming {
    background: #dceef6;
    color: #0F4C81;
}

.st-lesson-status--completed {
    background: #e8f5e9;
    color: #2e7d32;
}

.st-lesson-status--cancelled {
    background: #ffebee;
    color: #c62828;
}

.st-lesson-teacher {
    font-family: 'Tajawal', sans-serif;
    font-size: 14px;
    color: #3d7aad;
    margin: 0 0 0.75rem;
}

.st-lesson-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    font-family: 'Tajawal', sans-serif;
    font-size: 13px;
    color: #3d7aad;
}

.st-lesson-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.st-lesson-meta .material-symbols-outlined {
    font-size: 18px;
}

.st-lesson-action {
    display: inline-block;
    font-family: 'Almarai', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #0F4C81;
    text-decoration: none;
    padding: 0.5rem 1.25rem;
    border: 2px solid #4DA8DA;
    border-radius: 9999px;
    transition: background 0.2s ease, color 0.2s ease;
}

.st-lesson-action:hover {
    background: #4DA8DA;
    color: #FFFFFF;
}

.st-empty {
    text-align: center;
    padding: 3rem 1.5rem;
    background: #FFFFFF;
    border-radius: 20px;
    border: 1px dashed #b8d4e8;
}

.st-empty .material-symbols-outlined {
    font-size: 48px;
    color: #4DA8DA;
    margin-bottom: 1rem;
}

.st-empty p {
    font-family: 'Tajawal', sans-serif;
    color: #3d7aad;
}

/* Student browse flow */
.st-browse-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.st-browse-step {
    font-family: 'Tajawal', sans-serif;
    font-size: 0.8rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: #eef4fa;
    color: #3d7aad;
}

.st-browse-step--active {
    background: #0F4C81;
    color: #fff;
    font-weight: 700;
}

.st-browse-step--done {
    background: #e8f5e9;
    color: #2e7d32;
}

.st-subjects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.st-subject-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid rgba(15, 76, 129, 0.12);
    border-radius: 16px;
    padding: 1rem;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.st-subject-card:hover {
    border-color: rgba(15, 76, 129, 0.35);
    box-shadow: 0 8px 24px rgba(15, 76, 129, 0.08);
}

.st-subject-card__img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 0.75rem;
}

.st-subject-card__icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: rgba(77, 168, 218, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0F4C81;
    margin-bottom: 0.75rem;
}

.st-subject-card__title {
    font-family: 'Almarai', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    margin: 0 0 0.5rem;
}

.st-subject-card__arrow {
    color: #0F4C81;
    align-self: flex-end;
}

.st-teachers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.st-teacher-card {
    background: #fff;
    border: 1px solid rgba(15, 76, 129, 0.12);
    border-radius: 16px;
    padding: 1.25rem;
}

.st-teacher-card__head {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.st-teacher-card__avatar {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    overflow: hidden;
    background: #eef4fa;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.st-teacher-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.st-teacher-card__name {
    font-family: 'Almarai', sans-serif;
    font-weight: 800;
    margin: 0 0 0.25rem;
}

.st-teacher-card__title {
    font-size: 0.875rem;
    color: #0F4C81;
    margin: 0 0 0.35rem;
}

.st-teacher-card__rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: #666;
}

.st-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #0F4C81;
    text-decoration: none;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.st-wallet-balance-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: linear-gradient(135deg, #0F4C81 0%, #2a7ab5 55%, #4DA8DA 100%);
    border-radius: 20px;
    padding: 1.75rem 1.5rem;
    color: #FFFFFF;
    box-shadow: 0 10px 32px rgba(15, 76, 129, 0.22);
    overflow: hidden;
    min-height: 160px;
}

.st-wallet-balance-card::after {
    content: '';
    position: absolute;
    top: -40px;
    inset-inline-end: -30px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

.st-wallet-balance-icon {
    position: relative;
    z-index: 1;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.st-wallet-balance-icon .material-symbols-outlined {
    font-size: 28px;
}

.st-wallet-balance-body {
    position: relative;
    z-index: 1;
    flex: 1;
    min-width: 0;
}

.st-wallet-balance-label {
    font-family: 'Tajawal', sans-serif;
    font-size: 14px;
    opacity: 0.92;
    margin-bottom: 0.35rem;
}

.st-wallet-balance-value {
    font-family: 'Almarai', sans-serif;
    font-size: clamp(1.75rem, 5vw, 2.35rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.35rem;
}

.st-wallet-balance-hint {
    font-family: 'Tajawal', sans-serif;
    font-size: 0.82rem;
    opacity: 0.88;
    margin: 0;
    line-height: 1.5;
}

.st-wallet-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

@media (min-width: 768px) {
    .st-wallet-layout {
        grid-template-columns: 1.05fr 1fr;
        align-items: stretch;
    }
}

.st-wallet-panels {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 900px) {
    .st-wallet-panels {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }
}

.st-wallet-topup-card.auth-card,
.st-wallet-panel.auth-card {
    padding: 1.25rem 1.15rem;
    margin: 0;
    border-radius: 16px;
    box-shadow: 0 4px 18px rgba(15, 76, 129, 0.06);
}

.st-wallet-topup-head {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.st-wallet-topup-head__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #EAF2F8 0%, #dceef6 100%);
    color: #0F4C81;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.st-wallet-topup-head__icon .material-symbols-outlined {
    font-size: 24px;
}

.st-wallet-topup-head__text {
    flex: 1;
    min-width: 0;
}

.st-wallet-topup-head__text h2 {
    font-family: 'Almarai', sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    color: #0F4C81;
    margin: 0 0 0.25rem;
    line-height: 1.35;
}

.st-wallet-topup-form {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    background: #f7fbfd;
    border: 1px solid #dceef6;
    border-radius: 14px;
    padding: 0.85rem;
    width: 100%;
    box-sizing: border-box;
}

.st-wallet-topup-form .auth-label {
    margin-bottom: 0;
    font-size: 13px;
}

.st-topup-amount-field {
    display: flex;
    align-items: stretch;
    width: 100%;
    min-width: 0;
    background: #ffffff;
    border: 1px solid #b8d4e8;
    border-radius: 12px;
    overflow: hidden;
    min-height: 48px;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.st-topup-amount-field:focus-within {
    border-color: #4DA8DA;
    box-shadow: 0 0 0 3px rgba(77, 168, 218, 0.18);
}

.st-topup-input {
    flex: 1;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 12px 14px;
    border: none;
    background: transparent;
    box-shadow: none;
    outline: none;
    font-family: 'Almarai', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: #0F4C81;
    line-height: 1.2;
    -moz-appearance: textfield;
    appearance: textfield;
}

.st-topup-input::placeholder {
    color: #8eb5d4;
    font-weight: 500;
}

.st-topup-input::-webkit-outer-spin-button,
.st-topup-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.st-topup-amount-suffix {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    min-width: 52px;
    flex-shrink: 0;
    font-family: 'Almarai', sans-serif;
    font-size: 0.9rem;
    font-weight: 800;
    color: #0F4C81;
    background: #EAF2F8;
    border-inline-start: 1px solid #dceef6;
}

.st-topup-btn {
    width: 100%;
    min-height: 48px;
    padding: 0.75rem 1rem;
    font-family: 'Almarai', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.st-wallet-card-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
}

.st-wallet-card-head .material-symbols-outlined {
    font-size: 22px;
    color: #4DA8DA;
}

.st-wallet-card-head h2,
.st-wallet-card-head .st-transactions-title {
    font-family: 'Almarai', sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    color: #0F4C81;
    margin: 0;
}

.st-wallet-card-desc {
    font-family: 'Tajawal', sans-serif;
    font-size: 0.84rem;
    color: #3d7aad;
    line-height: 1.5;
    margin: 0;
}

.st-wallet-panel.auth-card {
    padding: 1.15rem 1rem;
}

.st-wallet-panel-body {
    min-height: 80px;
}

.st-empty-text {
    font-family: 'Tajawal', sans-serif;
    font-size: 0.9rem;
    color: #5a8fb8;
    text-align: center;
    padding: 1.25rem 0.5rem;
    margin: 0;
}

.st-topup-card {
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .st-wallet-topup-card.auth-card {
        padding: 1.35rem 1.25rem;
    }

    .st-wallet-topup-form {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-end;
        gap: 0.75rem;
        padding: 1rem;
    }

    .st-wallet-topup-form .auth-label {
        width: 100%;
    }

    .st-wallet-topup-form .st-topup-amount-field {
        flex: 1;
        min-width: 0;
    }

    .st-wallet-topup-form .st-topup-btn {
        width: auto;
        min-width: 130px;
        flex-shrink: 0;
    }
}

@media (max-width: 767px) {
    .student-page-main {
        padding-top: 1.25rem;
        padding-bottom: 1.5rem;
    }

    .st-wallet-balance-card {
        padding: 1.15rem 1rem;
        min-height: auto;
        gap: 0.85rem;
    }

    .st-wallet-balance-icon {
        width: 46px;
        height: 46px;
    }

    .st-wallet-balance-hint {
        font-size: 0.78rem;
    }

    .st-wallet-layout,
    .st-wallet-panels {
        gap: 0.85rem;
    }

    .st-wallet-topup-head {
        margin-bottom: 0.75rem;
    }

    .st-wallet-topup-head__text h2 {
        font-size: 1rem;
    }

    .st-wallet-card-desc {
        font-size: 0.8rem;
    }

    .st-wallet-topup-form {
        padding: 0.75rem;
        gap: 0.6rem;
    }

    .st-topup-input {
        padding: 11px 12px;
        font-size: 16px;
    }

    .st-topup-amount-suffix {
        min-width: 48px;
        padding: 0 12px;
        font-size: 0.85rem;
    }

    .st-wallet-panel.auth-card {
        padding: 1rem 0.9rem;
    }
}

.st-topup-row {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

@media (min-width: 480px) {
    .st-topup-row {
        flex-direction: row;
        align-items: stretch;
    }

    .st-topup-row .auth-input {
        flex: 1;
        min-width: 0;
    }

    .st-topup-row .btn-primary,
    .st-topup-row .st-topup-btn {
        width: auto;
        white-space: nowrap;
        flex-shrink: 0;
    }
}

.st-topup-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.st-topup-modal.hidden {
    display: none !important;
}

.st-topup-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 76, 129, 0.45);
}

.st-topup-modal-card {
    position: relative;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    margin: 0;
    z-index: 1;
}

.st-topup-modal-close {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    border: none;
    background: #EAF2F8;
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #0F4C81;
}

.st-topup-modal-title {
    font-family: 'Almarai', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: #0F4C81;
    margin: 0 0 0.35rem;
    padding-inline-start: 2.5rem;
}

.st-topup-modal-sub {
    font-family: 'Tajawal', sans-serif;
    font-size: 14px;
    color: #3d7aad;
    margin: 0 0 1rem;
}

.st-topup-modal-amount {
    font-family: 'Almarai', sans-serif;
    font-weight: 700;
    color: #0F4C81;
    margin-bottom: 1rem;
}

.st-payment-methods {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.st-payment-method {
    display: block;
    cursor: pointer;
}

.st-payment-method input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.st-payment-method-body {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border: 1px solid #b8d4e8;
    border-radius: 12px;
    font-family: 'Almarai', sans-serif;
    font-weight: 600;
    color: #0F4C81;
    transition: border-color 0.2s, background 0.2s;
}

.st-payment-method input:checked + .st-payment-method-body {
    border-color: #0F4C81;
    background: #EAF2F8;
}

.st-payment-details-text {
    font-family: 'Tajawal', sans-serif;
    font-size: 13px;
    line-height: 1.7;
    color: #0F4C81;
    background: #f5fafd;
    border: 1px solid #dceef6;
    border-radius: 12px;
    padding: 0.875rem 1rem;
    margin: 0 0 1rem;
    white-space: pre-wrap;
}

.st-receipt-upload {
    margin-top: 0.5rem;
}

.st-receipt-preview {
    margin-top: 0.75rem;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #dceef6;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.st-receipt-preview img {
    max-width: 100%;
    max-height: 180px;
    display: block;
    border-radius: 8px;
}

.st-topup-req-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.875rem 0;
    border-bottom: 1px solid #dceef6;
}

@media (max-width: 520px) {
    .st-tx-row,
    .st-topup-req-row {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .st-tx-right {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        text-align: start;
    }
}

.st-topup-req-note {
    display: block;
    font-size: 12px;
    color: #ba1a1a;
    margin-top: 4px;
}

.st-topup-status {
    display: inline-block;
    font-family: 'Tajawal', sans-serif;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
}

.st-topup-status--pending {
    background: #fff8e1;
    color: #f57f17;
}

.st-topup-status--approved {
    background: #e8f5e9;
    color: #2e7d32;
}

.st-topup-status--rejected {
    background: #ffebee;
    color: #ba1a1a;
}

.st-topup-receipt-link {
    display: block;
    font-size: 12px;
    color: #0F4C81;
    margin-top: 4px;
}

.st-transactions-title {
    font-family: 'Almarai', sans-serif;
    font-size: 16px;
    font-weight: 800;
    color: #0F4C81;
    margin: 0;
}

.st-tx-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 0;
    border-bottom: 1px solid #dceef6;
}

.st-tx-row:last-child {
    border-bottom: none;
}

.st-tx-label {
    display: block;
    font-family: 'Almarai', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #0F4C81;
}

.st-tx-date {
    font-family: 'Tajawal', sans-serif;
    font-size: 12px;
    color: #3d7aad;
}

.st-tx-right {
    text-align: end;
}

.st-tx-type {
    display: block;
    font-family: 'Tajawal', sans-serif;
    font-size: 11px;
    margin-bottom: 2px;
}

.st-tx-type--credit {
    color: #2e7d32;
}

.st-tx-type--debit {
    color: #c62828;
}

.st-tx-amount {
    font-family: 'Almarai', sans-serif;
    font-size: 15px;
    font-weight: 800;
}

.st-tx-amount--credit {
    color: #2e7d32;
}

.st-tx-amount--debit {
    color: #c62828;
}

.td-lesson-form-title {
    font-family: 'Almarai', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--color-primary, #0F4C81);
    margin-bottom: 16px;
}

.td-lesson-form {
    margin-bottom: 24px;
}

.td-lesson-delete {
    margin-top: 12px;
    padding: 8px 20px;
    border: 2px solid #c62828;
    color: #c62828;
    background: transparent;
    border-radius: 999px;
    font-family: 'Almarai', sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.td-lesson-delete:hover {
    background: #c62828;
    color: #fff;
}

/* ── Trust & Credibility (Home) ── */
.trust-stats-section {
    padding: 2rem 0;
}

.trust-section-badge {
    display: inline-block;
    background: rgba(77, 168, 218, 0.15);
    color: #0F4C81;
    font-family: 'Almarai', sans-serif;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 999px;
}

.trust-video-section {
    border-top: 1px solid rgba(184, 212, 232, 0.4);
}

.trust-video-points {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.trust-video-points li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Tajawal', sans-serif;
    font-size: 15px;
    color: #2d5f8a;
}

.trust-video-points .material-symbols-outlined {
    color: #4DA8DA;
    font-size: 22px;
    flex-shrink: 0;
}

.trust-video-player {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #0F4C81;
    box-shadow: 0 16px 48px rgba(15, 76, 129, 0.2);
}

.trust-video-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.trust-video-poster.hidden {
    display: none;
}

.trust-video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.95);
    color: #0F4C81;
    border: none;
    border-radius: 999px;
    padding: 14px 28px;
    font-family: 'Almarai', sans-serif;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s, box-shadow 0.2s;
}

.trust-video-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.05);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.trust-video-play-btn .material-symbols-outlined {
    font-size: 28px;
}

.trust-video-embed {
    position: absolute;
    inset: 0;
}

.trust-video-embed iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.trust-success-section {
    background: linear-gradient(180deg, #EAF2F8 0%, #f5fafd 100%);
}

.trust-success-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .trust-success-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.success-story-card {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 1.75rem;
    border: 1px solid rgba(184, 212, 232, 0.5);
    box-shadow: 0 4px 20px rgba(15, 76, 129, 0.06);
    transition: transform 0.25s, box-shadow 0.25s;
}

.success-story-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(15, 76, 129, 0.12);
}

.success-story-result {
    font-family: 'Almarai', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: #4DA8DA;
    margin-bottom: 0.75rem;
}

.success-story-name {
    font-family: 'Almarai', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #0F4C81;
    margin-bottom: 4px;
}

.success-story-grade {
    font-family: 'Tajawal', sans-serif;
    font-size: 13px;
    color: #4DA8DA;
    font-weight: 600;
    margin-bottom: 12px;
}

.success-story-text {
    font-family: 'Tajawal', sans-serif;
    font-size: 14px;
    line-height: 1.7;
    color: #3d7aad;
}

.trust-rating-banner {
    text-align: center;
    background: linear-gradient(135deg, #0F4C81 0%, #4DA8DA 100%);
    border-radius: 24px;
    padding: 2rem 1.5rem;
    margin-bottom: 3rem;
    color: #FFFFFF;
    box-shadow: 0 12px 40px rgba(15, 76, 129, 0.2);
}

.trust-rating-score {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    margin-bottom: 8px;
}

.trust-rating-number {
    font-family: 'Almarai', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
}

.trust-rating-max {
    font-family: 'Almarai', sans-serif;
    font-size: 1.25rem;
    opacity: 0.85;
}

.trust-rating-stars {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 8px;
}

.trust-star-filled {
    color: #FFD54F;
    font-size: 24px;
    font-variation-settings: 'FILL' 1;
}

.trust-star-half {
    color: #FFD54F;
    font-size: 24px;
    font-variation-settings: 'FILL' 1;
}

.trust-rating-label {
    font-family: 'Almarai', sans-serif;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.trust-rating-count {
    font-family: 'Tajawal', sans-serif;
    font-size: 14px;
    opacity: 0.9;
}

.trust-reviews-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .trust-reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.parent-review-card {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(184, 212, 232, 0.5);
    box-shadow: 0 2px 12px rgba(15, 76, 129, 0.05);
    transition: box-shadow 0.25s;
}

.parent-review-card:hover {
    box-shadow: 0 8px 24px rgba(15, 76, 129, 0.1);
}

.parent-review-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
}

.parent-review-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #dceef6;
}

.parent-review-name {
    font-family: 'Almarai', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #0F4C81;
}

.parent-review-role {
    font-family: 'Tajawal', sans-serif;
    font-size: 12px;
    color: #3d7aad;
}

.parent-review-stars {
    margin-inline-start: auto;
    display: flex;
    gap: 2px;
}

.parent-review-stars .material-symbols-outlined {
    font-size: 18px;
}

.parent-review-text {
    font-family: 'Tajawal', sans-serif;
    font-size: 14px;
    line-height: 1.75;
    color: #3d7aad;
    font-style: italic;
}

/* ── Home Sections: About, How, FAQ ── */
.home-about-section {
    border-top: 1px solid rgba(184, 212, 232, 0.4);
}

.home-about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: center;
}

@media (min-width: 768px) {
    .home-about-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.home-about-values {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.home-about-value {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #EAF2F8;
    padding: 8px 14px;
    border-radius: 999px;
    font-family: 'Tajawal', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #0F4C81;
}

.home-about-value .material-symbols-outlined {
    font-size: 18px;
    color: #4DA8DA;
}

.home-about-visual {
    position: relative;
}

.home-about-img {
    width: 100%;
    border-radius: 24px;
    object-fit: cover;
    aspect-ratio: 6 / 5;
    box-shadow: 0 16px 48px rgba(15, 76, 129, 0.15);
}

.home-about-badge-card {
    position: absolute;
    bottom: -16px;
    right: 16px;
    left: 16px;
    background: #FFFFFF;
    border-radius: 16px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 32px rgba(15, 76, 129, 0.12);
    border: 1px solid rgba(184, 212, 232, 0.5);
}

[dir="ltr"] .home-about-badge-card {
    right: 16px;
    left: 16px;
}

.home-about-badge-card .material-symbols-outlined {
    color: #4DA8DA;
    font-size: 28px;
}

.home-about-badge-card p {
    font-family: 'Tajawal', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #0F4C81;
    line-height: 1.5;
}

.home-how-section {
    background: #fff;
    border-top: 1px solid rgba(15, 76, 129, 0.08);
    border-bottom: 1px solid rgba(15, 76, 129, 0.08);
}

.how-start-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .how-start-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .how-start-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.how-step-card {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 1.75rem 1.25rem;
    text-align: center;
    border: 1px solid rgba(184, 212, 232, 0.5);
    box-shadow: 0 4px 20px rgba(15, 76, 129, 0.06);
    position: relative;
    transition: transform 0.25s, box-shadow 0.25s;
}

.how-step-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(15, 76, 129, 0.12);
}

.how-step-num {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #0F4C81;
    color: #FFFFFF;
    font-family: 'Almarai', sans-serif;
    font-size: 13px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

[dir="ltr"] .how-step-num {
    left: auto;
    right: 12px;
}

.how-step-icon {
    font-size: 40px;
    color: #4DA8DA;
    margin-bottom: 12px;
}

.how-step-title {
    font-family: 'Almarai', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #0F4C81;
    margin-bottom: 8px;
}

.how-step-desc {
    font-family: 'Tajawal', sans-serif;
    font-size: 14px;
    line-height: 1.65;
    color: #3d7aad;
}

.home-section-nav {
    display: none;
}

.home-section-nav > div {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.home-section-nav > div::-webkit-scrollbar {
    display: none;
}

@media (min-width: 768px) {
    .home-section-nav {
        display: block;
        background: #FFFFFF;
        border-bottom: 1px solid rgba(184, 212, 232, 0.5);
        padding: 12px 0;
        position: sticky;
        top: 80px;
        z-index: 40;
        box-shadow: 0 2px 12px rgba(15, 76, 129, 0.06);
    }

    .home-section-nav-link {
        flex-shrink: 0;
        padding: 8px 18px;
        border-radius: 999px;
        background: #EAF2F8;
    }

    .home-section-nav-link:hover {
        background: #4DA8DA;
        color: #FFFFFF;
    }
}

.home-section-nav-link {
    font-family: 'Almarai', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #3d7aad;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

.home-sidebar-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: #0F4C81;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s ease;
}

.home-sidebar-toggle:hover {
    background: #EAF2F8;
}

.home-sidebar-toggle .material-symbols-outlined {
    font-size: 1.5rem;
}

@media (min-width: 768px) {
    .home-sidebar-toggle,
    .home-sidebar,
    .home-sidebar-overlay {
        display: none !important;
    }
}

.home-sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 35, 60, 0.45);
    z-index: 55;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.home-sidebar-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.home-sidebar {
    position: fixed;
    top: 0;
    inset-inline-start: 0;
    width: min(300px, 88vw);
    height: 100vh;
    height: 100dvh;
    z-index: 60;
    background: #FFFFFF;
    border-inline-end: 1px solid rgba(184, 212, 232, 0.6);
    box-shadow: 8px 0 32px rgba(15, 76, 129, 0.12);
    transform: translateX(-100%);
    transition: transform 0.28s ease, visibility 0.28s ease;
    display: flex;
    flex-direction: column;
    padding: 1rem 0 1.5rem;
    visibility: hidden;
    pointer-events: none;
}

[dir="rtl"] .home-sidebar {
    transform: translateX(100%);
    box-shadow: -8px 0 32px rgba(15, 76, 129, 0.12);
}

.home-sidebar.is-open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
}

.home-sidebar__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem 1rem;
    border-bottom: 1px solid rgba(184, 212, 232, 0.5);
}

.home-sidebar__title {
    font-family: 'Almarai', sans-serif;
    font-size: 1rem;
    color: #0F4C81;
}

.home-sidebar__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: none;
    border-radius: 8px;
    background: #EAF2F8;
    color: #0F4C81;
    cursor: pointer;
}

.home-sidebar__close:hover {
    background: #dceaf5;
}

.home-sidebar__nav {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1rem 1rem 0;
    overflow-y: auto;
}

.home-sidebar__link {
    display: block;
    width: 100%;
    text-align: start;
    border-radius: 10px;
    padding: 0.85rem 1rem;
    background: #f7f9fb;
    border-bottom: none;
}

.home-sidebar__link:hover {
    background: #EAF2F8;
    color: #0F4C81;
}

body.home-sidebar-open {
    overflow: hidden;
}

.home-faq-section {
    background: #FFFFFF;
    border-top: 1px solid rgba(184, 212, 232, 0.4);
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: #EAF2F8;
    border-radius: 16px;
    border: 1px solid rgba(184, 212, 232, 0.5);
    overflow: hidden;
    transition: box-shadow 0.25s;
}

.faq-item.open {
    box-shadow: 0 4px 20px rgba(15, 76, 129, 0.1);
    background: #FFFFFF;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Almarai', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #0F4C81;
    text-align: right;
}

[dir="ltr"] .faq-question {
    text-align: left;
}

.faq-chevron {
    flex-shrink: 0;
    color: #4DA8DA;
    transition: transform 0.25s;
}

.faq-item.open .faq-chevron {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding: 0 20px 18px;
    font-family: 'Tajawal', sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: #3d7aad;
}

/* ── Refined editorial look (home) ── */
body .hero-section {
    background: #f7f9fb;
}

body .hero-image-frame {
    width: 100%;
    max-width: 420px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(15, 76, 129, 0.12);
}

body .hero-image {
    width: 100%;
    display: block;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

body .hero-lead {
    max-width: 36rem;
    line-height: 1.75;
}

body .hero-trial-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    padding: 6px 14px;
    border-radius: 999px;
    background: #EAF2F8;
    border: 1px solid rgba(15, 76, 129, 0.15);
    font-family: 'Almarai', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #0F4C81;
}

body .hero-trial-badge .material-symbols-outlined {
    font-size: 18px;
}

body .trial-offer-bar {
    background: #0F4C81;
    color: #fff;
    padding: 1.25rem 0;
}

body .trial-offer-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

@media (min-width: 768px) {
    body .trial-offer-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 2rem;
    }
}

body .trial-offer-title {
    display: block;
    font-family: 'Almarai', sans-serif;
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 4px;
}

body .trial-offer-desc {
    font-family: 'Tajawal', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.9;
    margin: 0;
}

body .trial-offer-cta {
    flex-shrink: 0;
    align-self: flex-start;
    background: #fff !important;
    color: #0F4C81 !important;
    border: 2px solid #fff;
}

body .trial-offer-cta:hover {
    background: #EAF2F8 !important;
    color: #0d4270 !important;
}

@media (min-width: 768px) {
    body .trial-offer-cta {
        align-self: center;
    }
}

body .section-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 2rem;
}

body .success-story-meta {
    margin-bottom: 10px;
}

body .success-story-meta .success-story-name {
    display: block;
    font-family: 'Almarai', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #0F4C81;
    margin-bottom: 2px;
}

body .success-story-meta .success-story-grade {
    font-family: 'Tajawal', sans-serif;
    font-size: 12px;
    color: #5a7a94;
}

body .success-story-quote {
    font-family: 'Tajawal', sans-serif;
    font-size: 13px;
    line-height: 1.7;
    color: #5a7a94;
    margin: 0;
    padding-top: 10px;
    border-top: 1px solid rgba(15, 76, 129, 0.08);
}

body .trust-video-duration {
    position: absolute;
    top: 12px;
    inset-inline-start: 12px;
    z-index: 2;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-family: 'Tajawal', sans-serif;
    font-size: 12px;
    font-weight: 600;
}

body .parent-review-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 10px;
}

body .parent-review-stars .material-symbols-outlined {
    font-size: 18px;
}

body .reviews-section-head .section-sub {
    margin-top: 8px;
}

body .hero-points {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

body .hero-points li {
    position: relative;
    font-family: 'Tajawal', sans-serif;
    font-size: 14px;
    color: #3d5a73;
    line-height: 1.65;
    padding-inline-start: 14px;
    margin-bottom: 4px;
}

body .hero-points li::before {
    content: '•';
    position: absolute;
    inset-inline-start: 0;
    color: #0F4C81;
    font-weight: 700;
}

body .hero-license-note {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Tajawal', sans-serif;
    font-size: 13px;
    color: #5a7a94;
}

body .hero-license-note .material-symbols-outlined {
    font-size: 18px;
    color: #0F4C81;
}

body .btn-cta {
    border-radius: 8px;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 700;
}

body .btn-cta-primary {
    background: #0F4C81;
    animation: none;
    box-shadow: none;
}

body .btn-cta-primary:hover {
    transform: none;
    background: #0d4270;
    box-shadow: 0 2px 8px rgba(15, 76, 129, 0.18);
}

body .btn-cta-start {
    box-shadow: none;
}

body .btn-cta-start:hover {
    transform: none;
}

body .btn-cta-whatsapp {
    background: #25A55A;
    box-shadow: none;
}

body .btn-cta-whatsapp:hover {
    transform: none;
    background: #1f8f4d;
}

body .btn-cta-search {
    background: #0F4C81;
    box-shadow: none;
}

body .btn-cta-search:hover {
    transform: none;
    background: #0d4270;
}

body .search-bar {
    box-shadow: none;
    border-radius: 12px;
}

body .search-bar:focus-within {
    transform: none;
    box-shadow: 0 0 0 2px rgba(15, 76, 129, 0.12);
}

body .reveal {
    transform: translateY(12px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

body .section-eyebrow {
    display: block;
    font-family: 'Almarai', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #0F4C81;
    letter-spacing: 0.02em;
    margin-bottom: 8px;
}

body .section-head {
    margin-bottom: 2rem;
    text-align: right;
}

[dir="ltr"] body .section-head {
    text-align: left;
}

body .section-heading {
    font-family: 'Almarai', sans-serif;
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    font-weight: 800;
    color: #0F4C81;
    line-height: 1.35;
    margin-bottom: 0.5rem;
}

body .section-sub {
    font-family: 'Tajawal', sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: #5a7a94;
    max-width: 36rem;
}

body .home-about-tag {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid rgba(15, 76, 129, 0.15);
    border-radius: 6px;
    font-family: 'Tajawal', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #0F4C81;
    background: #fff;
}

body .home-about-img {
    border-radius: 12px;
    box-shadow: none;
    border: 1px solid rgba(15, 76, 129, 0.1);
}

body .home-how-section {
    background: #fff;
    border-top: 1px solid rgba(15, 76, 129, 0.08);
    border-bottom: 1px solid rgba(15, 76, 129, 0.08);
}

body .how-step-card {
    border-radius: 12px;
    box-shadow: none;
    text-align: right;
    padding: 1.5rem 1.25rem 1.25rem;
}

[dir="ltr"] body .how-step-card {
    text-align: left;
}

body .how-step-card:hover {
    transform: none;
    box-shadow: none;
}

body .how-step-num {
    position: static;
    width: auto;
    height: auto;
    border-radius: 0;
    background: none;
    color: #0F4C81;
    font-size: 14px;
    margin-bottom: 10px;
    justify-content: flex-start;
}

body .home-section-nav {
    box-shadow: none;
    background: #f7f9fb;
    border-bottom: 1px solid rgba(15, 76, 129, 0.1);
}

body .home-section-nav .home-section-nav-link {
    border-radius: 0;
    background: transparent;
    border-bottom: 2px solid transparent;
    padding: 10px 14px;
    font-weight: 600;
    color: #5a7a94;
}

body .home-section-nav .home-section-nav-link:hover {
    background: transparent;
    color: #0F4C81;
    border-bottom-color: #0F4C81;
}

body .why-features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    body .why-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

body .why-feature-card {
    background: #fff;
    border: 1px solid rgba(15, 76, 129, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
}

body .why-feature-card--accent {
    background: #0F4C81;
    border-color: #0F4C81;
}

body .why-feature-card--accent .why-feature-title,
body .why-feature-card--accent .why-feature-desc {
    color: #fff;
}

body .why-feature-title {
    font-family: 'Almarai', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #0F4C81;
    margin-bottom: 8px;
}

body .why-feature-desc {
    font-family: 'Tajawal', sans-serif;
    font-size: 14px;
    line-height: 1.7;
    color: #5a7a94;
}

body .why-level-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

body .why-level-tags span {
    font-family: 'Tajawal', sans-serif;
    font-size: 12px;
    padding: 4px 10px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 4px;
    color: #fff;
}

body .trust-video-player {
    border-radius: 12px;
    box-shadow: none;
    border: 1px solid rgba(15, 76, 129, 0.12);
}

body .trust-video-play-btn {
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 15px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

body .trust-video-play-btn:hover {
    transform: translate(-50%, -50%);
}

body .trust-video-points--plain li {
    padding-inline-start: 14px;
    position: relative;
}

body .trust-video-points--plain li::before {
    content: '—';
    position: absolute;
    inset-inline-start: 0;
    color: #0F4C81;
}

body .trust-success-section {
    background: #f7f9fb;
    border-top: 1px solid rgba(15, 76, 129, 0.08);
}

body .trust-success-strip {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    body .trust-success-strip {
        grid-template-columns: repeat(3, 1fr);
    }
}

body .success-story-card {
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: none;
    background: #fff;
}

body .success-story-card:hover {
    transform: none;
    box-shadow: none;
}

body .success-story-result {
    font-size: 1.5rem;
    color: #0F4C81;
    margin-bottom: 6px;
}

body .success-story-text {
    font-size: 13px;
    color: #5a7a94;
    line-height: 1.6;
}

body .success-story-text strong {
    color: #0F4C81;
    font-weight: 700;
}

body .reviews-section-head {
    margin-bottom: 2rem;
}

body .reviews-rating-inline {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 12px;
}

body .reviews-rating-num {
    font-family: 'Almarai', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: #0F4C81;
    line-height: 1;
}

body .reviews-rating-meta {
    display: flex;
    flex-direction: column;
    font-family: 'Tajawal', sans-serif;
    font-size: 13px;
    color: #5a7a94;
}

body .reviews-rating-count {
    font-size: 12px;
    opacity: 0.85;
}

body .parent-review-card {
    border-radius: 12px;
    box-shadow: none;
}

body .parent-review-card:hover {
    box-shadow: none;
}

body .parent-review-avatar--initials {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #EAF2F8;
    color: #0F4C81;
    font-family: 'Almarai', sans-serif;
    font-size: 16px;
    font-weight: 700;
    border: 1px solid rgba(15, 76, 129, 0.12);
}

body .parent-review-text {
    font-style: normal;
    color: #3d5a73;
}

body .faq-item {
    background: #fff;
    border-radius: 10px;
}

body .faq-item.open {
    box-shadow: none;
}

body .cta-band-section {
    background: #fff;
}

body .cta-band-card {
    background: #0F4C81;
    border-radius: 12px;
    box-shadow: none;
    padding: 2rem;
}

body .app-promo-box {
    background: #EAF2F8;
    box-shadow: none;
    border: 1px solid rgba(15, 76, 129, 0.1);
}

body .app-promo-label {
    font-family: 'Almarai', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #0F4C81;
}

body .app-promo-phone {
    width: 100%;
    max-width: 260px;
    border-radius: 12px;
    border: 1px solid rgba(15, 76, 129, 0.1);
}

body .store-btn {
    border-radius: 8px;
}

body .store-btn:hover {
    transform: none;
    box-shadow: none;
    opacity: 0.9;
}

body .whatsapp-fab {
    background: #25A55A;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    width: 52px;
    height: 52px;
}

body .whatsapp-fab:hover {
    transform: none;
}

body .stat-card {
    border-inline-end: 1px solid rgba(15, 76, 129, 0.1);
}

body .stat-card:last-child {
    border-inline-end: none;
}

body .stat-card-number {
    font-size: 1.75rem;
}

@media (max-width: 767px) {
    body .stat-card {
        border-inline-end: none;
        border-bottom: 1px solid rgba(15, 76, 129, 0.08);
        padding-bottom: 1rem;
    }

    body .stat-card:last-child {
        border-bottom: none;
    }
}

/* ── Site-wide refined components ── */
.glass-card {
    background: #FFFFFF;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid rgba(15, 76, 129, 0.1);
    border-radius: 12px;
    box-shadow: none;
}

.info-card-icon {
    display: none;
}

.contact-info-card {
    border-radius: 12px;
    box-shadow: none;
    border: 1px solid rgba(15, 76, 129, 0.1);
}

.lesson-course-card:hover {
    border-color: #0F4C81;
}

.booking-confirm-btn {
    border-radius: 8px;
}

.card-hover:hover {
    transform: none;
    box-shadow: none;
}

.year-stage-deco {
    display: none;
}

.teacher-card-deco {
    display: none;
}

.subject-card {
    border-radius: 12px;
    box-shadow: none;
}

.subject-card:hover {
    box-shadow: none;
    border-color: rgba(15, 76, 129, 0.25);
}

.subject-promo {
    border-radius: 12px;
    background: #0F4C81;
    min-height: auto;
}

.subject-promo-icon {
    display: none;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.625rem 1.125rem;
    min-height: 2.5rem;
    border-radius: 999px;
    font-family: 'Almarai', sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.25;
    cursor: pointer;
    border: none;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.filter-chip--active {
    background: #0F4C81;
    color: #fff;
    box-shadow: 0 2px 10px rgba(15, 76, 129, 0.28);
}

.filter-chip--idle {
    background: transparent;
    color: #5a7a94;
}

.filter-chip--idle:hover {
    background: rgba(255, 255, 255, 0.85);
    color: #0F4C81;
}

.filter-chip:active {
    transform: scale(0.97);
}

.tag-pill {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid rgba(15, 76, 129, 0.12);
    background: #EAF2F8;
    font-size: 13px;
    font-weight: 600;
    color: #0F4C81;
}

.lesson-profile-head {
    background: #fff;
    border: 1px solid rgba(15, 76, 129, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
}

.lesson-profile-row {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .lesson-profile-row {
        flex-direction: row;
        align-items: center;
    }
}

.lesson-profile-avatar {
    width: 96px;
    height: 96px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid rgba(15, 76, 129, 0.1);
    flex-shrink: 0;
}

.lesson-profile-info {
    flex: 1;
}

.lesson-profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.lesson-profile-actions a,
.lesson-profile-actions button {
    border-radius: 8px;
    padding: 12px 20px;
    font-family: 'Almarai', sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.lesson-profile-actions .btn-book {
    background: #0F4C81;
    color: #fff;
}

.lesson-profile-actions .btn-message {
    background: #fff;
    border: 2px solid #0F4C81;
    color: #0F4C81;
}

.lesson-course-card {
    border-radius: 12px;
    box-shadow: none;
}

.lesson-course-card:hover {
    box-shadow: none;
}

.lesson-course-card img {
    border-radius: 8px;
}

.ld-hero-cover {
    border-radius: 12px;
    min-height: auto;
    background: #fff;
    border: 1px solid rgba(15, 76, 129, 0.1);
    padding: 1.5rem;
}

.ld-hero-img,
.ld-hero-overlay {
    display: none;
}

.ld-hero-content {
    position: static;
    color: inherit;
    padding: 0;
}

.ld-hero-badge {
    background: #EAF2F8;
    color: #0F4C81;
    border-radius: 6px;
    backdrop-filter: none;
    margin-bottom: 0.75rem;
}

.ld-hero-title {
    color: #0F4C81;
}

.page-btn {
    border-radius: 8px;
    font-weight: 700;
    transition: background 0.2s ease;
}

.page-btn:hover {
    transform: none;
}

.review-avatar-initials {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #EAF2F8;
    color: #0F4C81;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Almarai', sans-serif;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

.lesson-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}
.lesson-type-badge--live { background: #ffebee; color: #c62828; }
.lesson-type-badge--recorded { background: #e3f2fd; color: #1565c0; }
.lesson-type-badge--hybrid { background: #f3e5f5; color: #6a1b9a; }

/* ── Student Store ── */
.st-store-hero {
    position: relative;
    width: 100%;
    min-height: 220px;
    overflow: hidden;
    background-color: #0a3d6b;
    background-image: url('assets/images/subjects-hero.jpg');
    background-size: cover;
    background-position: center 35%;
    background-repeat: no-repeat;
}

.st-store-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    background: linear-gradient(
        255deg,
        rgba(10, 61, 107, 0.25) 0%,
        rgba(15, 76, 129, 0.55) 45%,
        rgba(15, 76, 129, 0.82) 100%
    );
}

[dir="ltr"] .st-store-hero__overlay {
    background: linear-gradient(
        105deg,
        rgba(10, 61, 107, 0.25) 0%,
        rgba(15, 76, 129, 0.55) 45%,
        rgba(15, 76, 129, 0.82) 100%
    );
}

.st-store-hero__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    color: #fff;
    text-align: start;
    padding-block: 2.5rem;
}

@media (min-width: 768px) {
    .st-store-hero {
        min-height: 280px;
        background-position: center 30%;
    }

    .st-store-hero__inner {
        padding-block: 3.25rem;
    }
}

.st-store-hero h1 {
    font-family: 'Almarai', sans-serif;
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 800;
    margin: 0 0 0.5rem;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.st-store-hero p {
    font-family: 'Tajawal', sans-serif;
    margin: 0;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.95);
    max-width: 36rem;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.15);
}

.st-store-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.st-store-search {
    position: relative;
    flex: 1;
    min-width: 200px;
    max-width: 420px;
}

.st-store-search input {
    width: 100%;
    padding: 0.75rem 2.75rem 0.75rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(15, 76, 129, 0.15);
    background: #fff;
    font-family: 'Tajawal', sans-serif;
}

.st-store-search .material-symbols-outlined {
    position: absolute;
    right: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: #4DA8DA;
}

.st-store-filters {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
    padding: 0.3rem;
    background: #EAF2F8;
    border-radius: 999px;
    border: 1px solid rgba(15, 76, 129, 0.12);
    flex-shrink: 0;
}

.st-store-filters .filter-chip--idle {
    background: transparent;
}

.st-store-filters .filter-chip--idle:hover {
    background: rgba(255, 255, 255, 0.9);
}

.st-store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
}

.st-store-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(15, 76, 129, 0.1);
    box-shadow: 0 4px 20px rgba(15, 76, 129, 0.06);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
}

.st-store-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(15, 76, 129, 0.12);
}

.st-store-card__media {
    position: relative;
    height: 140px;
    background: linear-gradient(135deg, rgba(77, 168, 218, 0.25), rgba(15, 76, 129, 0.15));
    overflow: hidden;
}

.st-store-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.st-store-card__icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.st-store-card__icon .material-symbols-outlined {
    font-size: 48px;
    color: #0F4C81;
    opacity: 0.7;
}

.st-store-card__body {
    padding: 1rem 1.15rem 1.15rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.st-store-card__title {
    font-family: 'Almarai', sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    color: #0F4C81;
    margin: 0 0 0.35rem;
}

.st-store-card__desc {
    font-family: 'Tajawal', sans-serif;
    font-size: 0.85rem;
    color: #3d7aad;
    margin: 0 0 0.75rem;
    line-height: 1.5;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.st-store-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-family: 'Tajawal', sans-serif;
    font-size: 0.8rem;
    color: #3d7aad;
}

.st-store-card__meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.st-store-card__meta .material-symbols-outlined {
    font-size: 16px;
}

.st-store-card__teacher {
    font-family: 'Tajawal', sans-serif;
    font-size: 0.82rem;
    color: #5a8fb8;
    margin: 0 0 0.75rem;
}

.st-catalog-lesson-card__type {
    position: absolute;
    top: 0.65rem;
    inset-inline-start: 0.65rem;
    z-index: 2;
}

.st-catalog-lesson-card__type .lesson-type-badge {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.st-catalog-lesson-card__fav {
    position: absolute;
    top: 0.55rem;
    inset-inline-end: 0.55rem;
    z-index: 3;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #90a4ae;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(15, 76, 129, 0.15);
    transition: color 0.2s, transform 0.2s;
}

.st-catalog-lesson-card__fav:hover {
    transform: scale(1.06);
    color: #e53935;
}

.st-catalog-lesson-card__fav.is-active {
    color: #e53935;
}

.st-catalog-lesson-card__fav.is-active .material-symbols-outlined {
    font-variation-settings: 'FILL' 1;
}

.st-catalog-lesson-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 0.5rem;
}

.st-catalog-lesson-card__price {
    font-family: 'Almarai', sans-serif;
    font-weight: 800;
    font-size: 1.05rem;
    color: #0F4C81;
}

.st-catalog-lesson-card__detail {
    padding: 0.45rem 1rem !important;
    font-size: 0.85rem !important;
    white-space: nowrap;
}

.ld-hero-type {
    margin: 0.5rem 0 0.75rem;
}

.ld-hero-type .lesson-type-badge {
    font-size: 0.85rem;
    padding: 0.35rem 0.75rem;
}

.ld-broadcast-banner {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    background: #ffebee;
    color: #b71c1c;
    font-family: 'Tajawal', sans-serif;
}

.ld-broadcast-banner strong {
    display: block;
    font-weight: 700;
    margin-bottom: 0.15rem;
}

.ld-watch-btn {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 0.65rem;
}

.ld-join-live-btn {
    display: block;
    width: 100%;
    margin-top: 0.65rem;
}

.watch-player-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
}

.watch-watermark-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    user-select: none;
    z-index: 2;
}

.watch-watermark {
    position: absolute;
    color: rgba(255, 255, 255, 0.38);
    font-family: 'Tajawal', sans-serif;
    font-size: clamp(0.75rem, 2.2vw, 1rem);
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
    white-space: nowrap;
    transform: rotate(-18deg);
}

.watch-watermark--tl { top: 12%; inset-inline-start: 8%; }
.watch-watermark--tr { top: 18%; inset-inline-end: 6%; transform: rotate(14deg); }
.watch-watermark--center { top: 44%; left: 50%; transform: translate(-50%, -50%) rotate(-12deg); font-size: clamp(0.9rem, 3vw, 1.25rem); }
.watch-watermark--bl { bottom: 16%; inset-inline-start: 10%; transform: rotate(10deg); }
.watch-watermark--br { bottom: 12%; inset-inline-end: 8%; transform: rotate(-22deg); }

.watch-secure-note {
    line-height: 1.5;
}

.st-store-filters .filter-chip--idle:hover {
    background: rgba(15, 76, 129, 0.08);
}

.st-catalog-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.st-catalog-tabs .filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.55rem 1.15rem;
    font-size: 0.92rem;
}

.st-subject-hero {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    min-height: 200px;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #0F4C81, #4DA8DA);
}

.st-subject-hero__bg {
    position: absolute;
    inset: 0;
    object-fit: cover;
    width: 100%;
    height: 100%;
    opacity: 0.35;
}

.st-subject-hero__overlay {
    position: relative;
    z-index: 1;
    padding: 2rem;
    color: #fff;
}

.st-subject-hero__overlay h1 {
    font-family: 'Almarai', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0 0 0.5rem;
}

.st-subject-hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-top: 1rem;
    font-family: 'Tajawal', sans-serif;
    font-size: 0.9rem;
}

.st-store-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    border-bottom: 2px solid rgba(15, 76, 129, 0.08);
    padding-bottom: 0.5rem;
}

.st-store-tab {
    font-family: 'Almarai', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    border: none;
    background: transparent;
    color: #3d7aad;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.st-store-tab.active {
    background: #0F4C81;
    color: #fff;
}

.st-teacher-store-card {
    position: relative;
    background: #fff;
    border-radius: 18px;
    border: 1px solid rgba(15, 76, 129, 0.1);
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(15, 76, 129, 0.06);
    display: flex;
    flex-direction: column;
}

.st-teacher-store-card--featured {
    border-color: rgba(184, 151, 62, 0.28);
    box-shadow: 0 8px 28px rgba(15, 76, 129, 0.08);
}

.st-teacher-store-card--featured .st-teacher-store-card__cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.18) 0%, transparent 55%);
    pointer-events: none;
}

.st-teacher-store-card__badge {
    position: absolute;
    top: 0.7rem;
    inset-inline-end: 0.7rem;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.28rem 0.55rem 0.28rem 0.35rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.97);
    color: #7a5c10;
    font-family: 'Almarai', sans-serif;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    border: 1px solid rgba(201, 162, 39, 0.45);
    box-shadow: 0 4px 16px rgba(15, 76, 129, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.st-teacher-store-card__badge-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.4rem;
    height: 1.4rem;
    border-radius: 8px;
    background: linear-gradient(145deg, #d4af37 0%, #a67c00 100%);
    color: #fff;
    flex-shrink: 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.st-teacher-store-card__badge-icon .material-symbols-outlined {
    font-size: 0.9rem;
    font-variation-settings: 'FILL' 1;
    line-height: 1;
}

.st-teacher-store-card__badge-text {
    padding-inline-end: 0.15rem;
    white-space: nowrap;
}

.st-teacher-store-card__cover {
    position: relative;
    z-index: 0;
    flex-shrink: 0;
    height: 84px;
    background: linear-gradient(135deg, #0F4C81 0%, #4DA8DA 100%);
    background-size: cover;
    background-position: center;
}

.st-teacher-store-card__body {
    position: relative;
    z-index: 1;
    padding: 2.85rem 1.15rem 1.15rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.st-teacher-store-card__avatar {
    position: absolute;
    top: -2.35rem;
    inset-inline-start: 1.15rem;
    z-index: 2;
    width: 72px;
    height: 72px;
    border-radius: 16px;
    border: 3px solid #fff;
    overflow: hidden;
    background: #eef4fa;
    box-shadow: 0 4px 14px rgba(15, 76, 129, 0.18);
}

.st-teacher-store-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.st-teacher-store-card__name-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.15rem;
}

.st-teacher-store-card__name {
    font-family: 'Almarai', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    color: #0F4C81;
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    flex: 1;
    min-width: 0;
    line-height: 1.35;
}

.st-teacher-store-card__verified {
    font-size: 1rem;
    color: #4DA8DA;
    font-variation-settings: 'FILL' 1;
    flex-shrink: 0;
}

.st-teacher-store-card__profile {
    flex-shrink: 0;
    font-family: 'Tajawal', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: #0F4C81;
    text-decoration: none;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: #EAF2F8;
    border: 1px solid rgba(15, 76, 129, 0.12);
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease;
}

.st-teacher-store-card__profile:hover {
    background: #0F4C81;
    color: #fff;
}

.st-teacher-store-card__title {
    font-family: 'Tajawal', sans-serif;
    font-size: 0.85rem;
    color: #4DA8DA;
    font-weight: 600;
    margin: 0.15rem 0 0.5rem;
}

.st-teacher-store-card__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-family: 'Tajawal', sans-serif;
    font-size: 0.8rem;
    color: #3d7aad;
    margin-bottom: 0.75rem;
}

.st-teacher-store-card__stats span {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
}

.st-teacher-store-card__stats .material-symbols-outlined {
    font-size: 15px;
    color: #f9a825;
}

.st-teacher-store-card__actions {
    margin-top: auto;
    padding-top: 0.5rem;
}

.st-teacher-profile-cover {
    position: relative;
    height: 180px;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 0;
    background: linear-gradient(135deg, #0F4C81 0%, #4DA8DA 60%, #7ec8e8 100%);
}

.st-teacher-profile-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.st-teacher-profile-head {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    align-items: flex-end;
    margin-top: -48px;
    padding: 0 1.5rem 1.5rem;
    position: relative;
    z-index: 2;
}

.st-teacher-profile-avatar {
    width: 96px;
    height: 96px;
    border-radius: 20px;
    border: 4px solid #fff;
    overflow: hidden;
    background: #eef4fa;
    box-shadow: 0 8px 24px rgba(15, 76, 129, 0.2);
    flex-shrink: 0;
}

.st-teacher-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.st-teacher-profile-info {
    flex: 1;
    min-width: 200px;
    padding-bottom: 0.25rem;
}

.st-teacher-profile-info h1 {
    font-family: 'Almarai', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: #0F4C81;
    margin: 0 0 0.25rem;
}

.st-teacher-profile-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.5rem;
}

.st-teacher-profile-stat {
    font-family: 'Tajawal', sans-serif;
    font-size: 0.85rem;
    color: #3d7aad;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.st-teacher-profile-stat strong {
    color: #0F4C81;
}

.st-enrolled-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.st-enrolled-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(15, 76, 129, 0.1);
    box-shadow: 0 4px 16px rgba(15, 76, 129, 0.06);
    display: flex;
    flex-direction: column;
}

.st-enrolled-card--clickable {
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.st-enrolled-card--clickable:hover {
    transform: translateY(-2px);
    border-color: rgba(77, 168, 218, 0.45);
    box-shadow: 0 8px 24px rgba(15, 76, 129, 0.1);
}

.st-enrolled-card--clickable:focus-visible {
    outline: 2px solid #4DA8DA;
    outline-offset: 2px;
}

.st-enrolled-card__media {
    position: relative;
    height: 130px;
    background: linear-gradient(135deg, rgba(15, 76, 129, 0.08), rgba(77, 168, 218, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.st-enrolled-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.st-enrolled-card__media .material-symbols-outlined {
    font-size: 40px;
    color: #0F4C81;
    opacity: 0.5;
}

.st-enrolled-card__body {
    padding: 1rem 1.15rem 1.15rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.st-enrolled-card__title {
    font-family: 'Almarai', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    color: #0F4C81;
    margin: 0 0 0.35rem;
}

.st-enrolled-card__teacher {
    font-family: 'Tajawal', sans-serif;
    font-size: 0.85rem;
    color: #3d7aad;
    margin: 0 0 0.75rem;
}

.st-enrolled-card__type {
    position: absolute;
    top: 0.65rem;
    inset-inline-start: 0.65rem;
    z-index: 2;
}

.st-enrolled-card__type .lesson-type-badge {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.st-enrolled-card__schedule {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-family: 'Tajawal', sans-serif;
    font-size: 0.8rem;
    color: #c62828;
    background: #ffebee;
    border-radius: 8px;
    padding: 0.35rem 0.55rem;
    margin: 0 0 0.75rem;
    line-height: 1.4;
}

.st-enrolled-card__schedule .material-symbols-outlined {
    font-size: 16px;
    flex-shrink: 0;
}

.st-enrolled-card__hint {
    font-family: 'Tajawal', sans-serif;
    font-size: 0.78rem;
    color: #3d7aad;
    margin: 0.5rem 0 0;
    line-height: 1.45;
    text-align: center;
    width: 100%;
}

.st-enrolled-card__actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: auto;
    width: 100%;
}

.st-enrolled-card__actions a,
.st-enrolled-card__actions button {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    text-align: center;
    font-family: 'Almarai', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 0.65rem 0.85rem;
    border-radius: 12px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    min-height: 44px;
}

.st-enrolled-card__actions button.is-disabled,
.st-enrolled-card__actions button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.st-enrolled-card__actions .material-symbols-outlined {
    font-size: 18px;
}

.st-enrolled-card__actions .btn-primary {
    color: #fff;
}

.st-enrolled-card__actions .btn-ghost {
    background: #eef4fa;
    color: #0F4C81;
}

@media (max-width: 767px) {
    .st-enrolled-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .st-enrolled-card__media {
        height: 110px;
    }

    .st-enrolled-card__title {
        font-size: 0.95rem;
    }
}

.st-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: 'Tajawal', sans-serif;
    font-size: 0.9rem;
    color: #4DA8DA;
    text-decoration: none;
    margin-bottom: 1rem;
}

.st-back-link:hover {
    color: #0F4C81;
}

.st-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    font-family: 'Tajawal', sans-serif;
    font-size: 0.85rem;
    color: #3d7aad;
    margin-bottom: 1rem;
}

.st-breadcrumb a {
    color: #4DA8DA;
    text-decoration: none;
}

.st-breadcrumb .material-symbols-outlined {
    font-size: 16px;
}

.st-subject-nav-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.st-subject-nav-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 18px;
    padding: 1.5rem;
    border: 1px solid rgba(15, 76, 129, 0.12);
    box-shadow: 0 4px 20px rgba(15, 76, 129, 0.06);
    text-decoration: none;
    color: inherit;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}

.st-subject-nav-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(15, 76, 129, 0.12);
}

.st-subject-nav-card__icon {
    font-size: 40px;
    color: #0F4C81;
    margin-bottom: 0.75rem;
}

.st-subject-nav-card h3 {
    font-family: 'Almarai', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: #0F4C81;
    margin: 0 0 0.35rem;
}

.st-subject-nav-card p {
    font-family: 'Tajawal', sans-serif;
    font-size: 0.9rem;
    color: #3d7aad;
    margin: 0;
}

.st-subject-nav-card__arrow {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: #4DA8DA;
}

@media (max-width: 768px) {
    .st-store-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
    .st-store-card__media { height: 100px; }
    .st-store-card__title { font-size: 0.9rem; }
    .st-store-card__desc { display: none; }
    .st-teacher-profile-head { padding: 0 0.75rem 1rem; }
    .st-enrolled-grid { grid-template-columns: 1fr; }
    .fb-profile__layout { grid-template-columns: 1fr; }
    .fb-profile__header { flex-direction: column; align-items: center; text-align: center; }
    .fb-profile__avatar-wrap { margin-inline: auto; }
}

/* ── Facebook-style teacher profile ── */
.fb-profile {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(15, 76, 129, 0.08);
    overflow: hidden;
    border: 1px solid rgba(15, 76, 129, 0.08);
}

.fb-profile__cover {
    height: 260px;
    background: linear-gradient(135deg, #0F4C81 0%, #4DA8DA 55%, #7ec8e8 100%);
    background-size: cover;
    background-position: center;
}

.st-teacher-own-preview {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    background: #e8f4fc;
    border: 1px solid rgba(15, 76, 129, 0.15);
    color: #0F4C81;
    font-family: 'Tajawal', sans-serif;
    font-size: 0.9rem;
}

.st-teacher-own-preview .material-symbols-outlined {
    font-size: 1.25rem;
}

.st-teacher-own-preview a {
    margin-inline-start: auto;
    font-weight: 700;
    color: #0F4C81;
    text-decoration: none;
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    background: #fff;
    border: 1px solid rgba(15, 76, 129, 0.15);
}

.st-teacher-own-preview a:hover {
    background: #f0f7fc;
}

.fb-profile__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fb-profile__header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 1.25rem;
    padding: 0 1.5rem 1rem;
    margin-top: -56px;
    position: relative;
    z-index: 2;
    border-bottom: 1px solid rgba(15, 76, 129, 0.08);
    padding-bottom: 1.25rem;
}

.fb-profile__avatar-wrap {
    flex-shrink: 0;
}

.fb-profile__avatar {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    border: 4px solid #fff;
    object-fit: cover;
    background: #eef4fa;
    box-shadow: 0 4px 16px rgba(15, 76, 129, 0.15);
}

.fb-profile__identity {
    flex: 1;
    min-width: 200px;
    padding-bottom: 0.25rem;
}

.fb-profile__name-row {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.fb-profile__name {
    font-family: 'Almarai', sans-serif;
    font-size: 1.65rem;
    font-weight: 800;
    color: #0F4C81;
    margin: 0;
}

.fb-profile__title {
    font-family: 'Tajawal', sans-serif;
    color: #4DA8DA;
    font-weight: 600;
    margin: 0.15rem 0 0.5rem;
}

.fb-profile__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-family: 'Tajawal', sans-serif;
    font-size: 0.9rem;
    color: #3d7aad;
}

.fb-profile__stats strong {
    color: #0F4C81;
}

.fb-profile__stats .fb-star {
    font-size: 18px;
    color: #f9a825;
    vertical-align: middle;
    font-variation-settings: 'FILL' 1;
}

.fb-profile__layout {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 1rem;
    padding: 1rem 1.5rem 1.5rem;
    align-items: start;
}

.fb-profile__sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.fb-profile__feed {
    min-width: 0;
}

.fb-feed__heading {
    font-family: 'Almarai', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    color: #0F4C81;
    margin: 0 0 0.75rem;
    padding: 0 0.25rem;
}

.fb-card {
    background: #fff;
    border: 1px solid rgba(15, 76, 129, 0.1);
    border-radius: 12px;
    padding: 1rem 1.15rem;
    box-shadow: 0 1px 4px rgba(15, 76, 129, 0.04);
}

.fb-card__title {
    font-family: 'Almarai', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    color: #0F4C81;
    margin: 0 0 0.65rem;
}

.fb-card__text {
    font-family: 'Tajawal', sans-serif;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #3d7aad;
    margin: 0;
}

.fb-lessons-list .lesson-course-card {
    padding: 0.85rem;
    margin-bottom: 0.65rem;
    border-radius: 10px;
}

.fb-lessons-list .lesson-course-card h4 {
    font-size: 0.95rem;
}

.fb-post {
    background: #fff;
    border: 1px solid rgba(15, 76, 129, 0.1);
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: 0 1px 4px rgba(15, 76, 129, 0.05);
    overflow: hidden;
}

.fb-post__head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem 0.5rem;
}

.fb-post__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: #eef4fa;
}

.fb-post__meta strong {
    display: block;
    font-family: 'Almarai', sans-serif;
    font-size: 0.95rem;
    color: #0F4C81;
}

.fb-post__meta small {
    font-family: 'Tajawal', sans-serif;
    font-size: 0.75rem;
    color: #3d7aad;
}

.fb-post__body {
    padding: 0 1rem 0.75rem;
    font-family: 'Tajawal', sans-serif;
    font-size: 0.95rem;
    line-height: 1.65;
    color: #1a3a52;
    white-space: pre-wrap;
}

.fb-post__media img {
    width: 100%;
    display: block;
    max-height: 420px;
    object-fit: cover;
}

.fb-post__actions {
    border-top: 1px solid rgba(15, 76, 129, 0.08);
    padding: 0.35rem 1rem 0.65rem;
}

.fb-post__react {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: none;
    background: transparent;
    cursor: pointer;
    font-family: 'Tajawal', sans-serif;
    font-size: 0.9rem;
    color: #3d7aad;
    padding: 0.35rem 0.5rem;
    border-radius: 8px;
    transition: background 0.15s;
}

.fb-post__react:hover {
    background: rgba(244, 67, 54, 0.08);
}

.fb-post__react.is-liked {
    color: #e53935;
}

.fb-post__react .material-symbols-outlined {
    font-size: 22px;
    transition: font-variation-settings 0.15s;
}

.fb-post__react.is-liked .material-symbols-outlined {
    font-variation-settings: 'FILL' 1;
    color: #e53935;
}

.fb-post-compose {
    background: #fff;
    border: 1px solid rgba(15, 76, 129, 0.12);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.fb-post-compose textarea {
    width: 100%;
    border: 1px solid rgba(15, 76, 129, 0.15);
    border-radius: 10px;
    padding: 0.75rem;
    font-family: 'Tajawal', sans-serif;
    resize: vertical;
    min-height: 80px;
}

.fb-post-compose__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.75rem;
}

@media (max-width: 768px) {
    .st-store-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
    .st-store-card__media { height: 100px; }
    .st-store-card__title { font-size: 0.9rem; }
    .st-store-card__desc { display: none; }
    .st-teacher-profile-head { padding: 0 0.75rem 1rem; }
    .st-enrolled-grid { grid-template-columns: 1fr; }
    .st-calendar-grid { gap: 0.35rem; }
    .st-calendar-cell { min-height: 72px; padding: 0.35rem; }
    .st-calendar-event-chip__subject { display: none; }
}

/* ── Student calendar ── */
.st-calendar-toolbar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.st-calendar-nav {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 2px solid #dceef6;
    background: #fff;
    color: #0F4C81;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.st-calendar-nav:hover {
    border-color: #4DA8DA;
    background: #EAF2F8;
}

.st-calendar-month {
    min-width: 180px;
    text-align: center;
    font-family: 'Almarai', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: #0F4C81;
    margin: 0;
}

.st-calendar-today {
    margin-inline-start: auto;
    padding: 0.45rem 0.9rem;
    font-size: 0.85rem;
}

.st-calendar-card {
    background: #fff;
    border: 1px solid rgba(15, 76, 129, 0.1);
    border-radius: 16px;
    padding: 1rem;
    box-shadow: 0 8px 24px rgba(15, 76, 129, 0.06);
}

.st-calendar-head,
.st-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
}

.st-calendar-head {
    margin-bottom: 0.5rem;
}

.st-calendar-head__cell {
    text-align: center;
    font-family: 'Almarai', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: #3d7aad;
    padding: 0.25rem;
}

.st-calendar-cell {
    min-height: 96px;
    border: 2px solid #e8f2f8;
    border-radius: 12px;
    background: #fbfdff;
    padding: 0.45rem;
    text-align: start;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.st-calendar-cell--empty {
    border: none;
    background: transparent;
    cursor: default;
    min-height: 0;
}

.st-calendar-cell:hover:not(.st-calendar-cell--empty) {
    border-color: #4DA8DA;
    background: #f3f9fd;
}

.st-calendar-cell--today {
    border-color: #4DA8DA;
    box-shadow: inset 0 0 0 1px rgba(77, 168, 218, 0.25);
}

.st-calendar-cell--selected {
    background: #EAF2F8;
    border-color: #0F4C81;
}

.st-calendar-cell--has-events .st-calendar-cell__num {
    font-weight: 800;
}

.st-calendar-cell__num {
    font-family: 'Almarai', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: #0F4C81;
}

.st-calendar-cell__events {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    overflow: hidden;
}

.st-calendar-cell__more {
    font-size: 0.65rem;
    color: #3d7aad;
    font-weight: 700;
}

.st-calendar-event-chip {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.15rem 0.35rem;
    border-radius: 8px;
    background: color-mix(in srgb, var(--event-color, #0F4C81) 12%, white);
    color: #0F4C81;
    font-size: 0.65rem;
    font-weight: 700;
    text-decoration: none;
    line-height: 1.2;
    overflow: hidden;
}

.st-calendar-event-chip:hover {
    background: color-mix(in srgb, var(--event-color, #0F4C81) 20%, white);
}

.st-calendar-event-chip__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--event-color, #0F4C81);
    flex-shrink: 0;
}

.st-calendar-event-chip__time {
    flex-shrink: 0;
}

.st-calendar-event-chip__subject {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.st-calendar-day-panel {
    margin-top: 1.25rem;
    background: #fff;
    border: 1px solid rgba(15, 76, 129, 0.1);
    border-radius: 16px;
    padding: 1rem 1.15rem;
}

.st-calendar-day-title {
    font-family: 'Almarai', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    color: #0F4C81;
    margin: 0 0 0.85rem;
}

.st-calendar-events {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.st-calendar-event-card {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(15, 76, 129, 0.1);
    border-inline-start: 4px solid var(--event-color, #0F4C81);
    background: #fbfdff;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s ease, transform 0.15s ease;
}

.st-calendar-event-card:hover {
    background: #EAF2F8;
    transform: translateY(-1px);
}

.st-calendar-event-card__time {
    font-family: 'Almarai', sans-serif;
    font-size: 0.85rem;
    font-weight: 800;
    color: #0F4C81;
    min-width: 4.5rem;
}

.st-calendar-event-card__title {
    display: block;
    font-family: 'Almarai', sans-serif;
    font-size: 0.95rem;
    color: #0F4C81;
    margin-bottom: 0.15rem;
}

.st-calendar-event-card__meta {
    margin: 0;
    font-size: 0.8rem;
    color: #3d7aad;
}

.st-calendar-event-card__status {
    font-size: 0.75rem;
    font-weight: 700;
    color: #3d7aad;
    background: #EAF2F8;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    white-space: nowrap;
}

.st-calendar-event-card__arrow {
    color: #4DA8DA;
    font-size: 1.25rem;
}

.st-calendar-empty {
    text-align: center;
    color: #3d7aad;
    padding: 1.5rem 1rem;
    font-family: 'Tajawal', sans-serif;
}

