/* Alkhwarzmi learning theme. Presentation only: navigation, forms and carousel
   behavior remain in their original templates and scripts. The stronger scoped
   selectors intentionally override the older inline visual effects. */
body.alkz-learning-theme {
    --alkz-blue: #006da5;
    --alkz-blue-hover: #005780;
    --alkz-blue-soft: #eef7fc;
    --alkz-yellow: #f6c544;
    --alkz-yellow-soft: #fff8e2;
    --alkz-yellow-ink: #805500;
    --alkz-purple: #6c3fbd;
    --alkz-purple-soft: #f3edfc;
    --alkz-navy: #142b4a;
    --alkz-navy-soft: #edf1f7;
    --alkz-text: #1f2933;
    --alkz-muted: #52616d;
    --alkz-line: #dce2e7;
    --alkz-audit-ink: #1f2933;
    --alkz-audit-muted: #52616d;
    --alkz-audit-border: #dce2e7;
    --alkz-audit-soft: #f5f7f9;
    --alkz-audit-gold: #006da5;
    --alkz-audit-shadow: 0 2px 8px rgb(24 54 74 / 5%);
    color: var(--alkz-text);
    background: #fff !important;
    background-image: none !important;
}

.alkz-learning-theme ::selection { color: #003e5f; background: #ccebf7; }
.alkz-learning-theme :is(a, button, input, select, textarea):focus-visible {
    outline: 2px solid var(--alkz-blue) !important;
    outline-offset: 3px;
    box-shadow: none !important;
}
.alkz-learning-theme [data-reveal] { opacity: 1 !important; transform: none !important; }
.alkz-learning-theme img[loading="lazy"] { opacity: 1; }
.alkz-learning-theme :is(.lux-blob, .lux-particles),
.alkz-learning-theme .lux-spotlight::before,
.alkz-learning-theme .lux-shine::after { display: none; }
.alkz-learning-theme :is(.alkz-hero-fade, .alkz-hero-float, .alkz-hero-mini, .alkz-hero-shine, .animate-fade-up) {
    animation: none !important;
    transform: none !important;
}
.alkz-learning-theme .lux-progress__fill {
    background: var(--alkz-blue);
    box-shadow: none;
    animation: none;
}
.alkz-learning-theme :is(.card-lift, .lux-tilt, .lux-magnetic) { transform: none !important; }
.alkz-learning-theme :is(.shadow-card, .shadow-card-lg) { box-shadow: 0 2px 8px rgb(24 54 74 / 5%); }
.alkz-learning-theme :is(.rounded-2xl, .rounded-3xl) { border-radius: 12px; }
.alkz-learning-theme main :is(a, button).rounded-full:not(.lux-carousel__dot) { border-radius: 8px; }
.alkz-learning-theme main :is(a, button):is([class*="bg-gold-"], [class*="from-gold-"]) {
    color: #fff;
    background: var(--alkz-blue);
    box-shadow: none;
}
.alkz-learning-theme main :is(a, button):is([class*="bg-gold-"], [class*="from-gold-"]):hover { background: var(--alkz-blue-hover); }
.alkz-learning-theme :is(h1, h2, h3) { letter-spacing: -.02em; }
.alkz-learning-theme :is(.alkz-home-title, .course-card h3) { color: var(--alkz-text); }
.alkz-learning-theme :is(.alkz-home-copy, .alkz-home-hero-subtitle) { color: var(--alkz-muted); }
.alkz-learning-theme .alkz-home-kicker { color: var(--alkz-blue); }
.alkz-learning-theme .alkz-home-band { background: #f7f9fb; }
.alkz-learning-theme .alkz-home-section { padding-block: 48px; }
.alkz-learning-theme .alkz-home-section h2 { font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.45; }

/* White navigation, blue actions, and the same desktop/mobile menus. */
.alkz-learning-theme .alkz-hdr-bg,
.alkz-learning-theme .alkz-hdr.is-scrolled .alkz-hdr-bg {
    background: #fff;
    border-bottom: 1px solid var(--alkz-line);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
}
.alkz-learning-theme .alkz-hdr-wave { display: none; }
.alkz-learning-theme .alkz-brand-text { color: var(--alkz-blue); text-shadow: none; }
.alkz-learning-theme .alkz-hdr-link {
    color: #34444f;
    font-weight: 500;
    border-radius: 6px;
    padding-inline: 10px;
}
.alkz-learning-theme .alkz-hdr-link:is(:hover, .is-active) { color: var(--alkz-blue); background: var(--alkz-blue-soft); }
.alkz-learning-theme .alkz-hdr-link::after { background: var(--alkz-yellow); }
.alkz-learning-theme :is(.alkz-hdr-dd-inner, .alkz-hdr-subdd-menu .alkz-hdr-dd-inner) {
    background: #fff;
    border: 1px solid var(--alkz-line);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgb(16 42 61 / 10%);
    backdrop-filter: none;
}
.alkz-learning-theme .alkz-hdr-dd-inner::before { display: none; }
.alkz-learning-theme :is(.alkz-hdr-dd-link i, .alkz-hdr-chevron, .alkz-hdr-iconbtn) { color: var(--alkz-blue); }
.alkz-learning-theme .alkz-hdr-dd-link:is(:hover, .is-active) { background: var(--alkz-blue-soft); color: var(--alkz-blue); }
.alkz-learning-theme :is(.alkz-cta-trainee, .alkz-mm-cta.is-trainee) {
    color: #fff;
    background: var(--alkz-blue);
    border: 1px solid var(--alkz-blue);
    border-radius: 6px;
    box-shadow: none;
    transform: none;
}
.alkz-learning-theme :is(.alkz-cta-marketer, .alkz-mm-cta.is-marketer) {
    color: var(--alkz-blue);
    background: #fff;
    border: 1px solid var(--alkz-blue);
    border-radius: 6px;
    box-shadow: none;
    transform: none;
}
.alkz-learning-theme :is(.alkz-cta-trainee:hover, .alkz-mm-cta.is-trainee:hover) { background: var(--alkz-blue-hover); }
.alkz-learning-theme :is(.alkz-cta-marketer:hover, .alkz-mm-cta.is-marketer:hover) { background: var(--alkz-blue-soft); }
.alkz-learning-theme :is(.alkz-hdr-iconbtn, .alkz-burger, .alkz-user-pill) {
    color: var(--alkz-blue);
    background: #fff;
    border: 1px solid var(--alkz-line);
    border-radius: 8px;
    box-shadow: none;
}
.alkz-learning-theme .alkz-hdr-badge { color: #fff; background: var(--alkz-blue); box-shadow: none; }
.alkz-learning-theme :is(.alkz-user-pill .avatar, .alkz-mm-user .avatar) { color: #fff; background: var(--alkz-blue); box-shadow: none; }
.alkz-learning-theme :is(.alkz-mm-panel, .alkz-mm-head, .alkz-mm-foot) { background: #fff; }
.alkz-learning-theme :is(.alkz-mm-head, .alkz-mm-foot) { border-color: var(--alkz-line); }
.alkz-learning-theme :is(.alkz-mm-link, .alkz-mm-summary, .alkz-mm-sublist a, .alkz-mm-brand .name) { color: var(--alkz-text); }
.alkz-learning-theme :is(.alkz-mm-link i, .alkz-mm-summary i, .alkz-mm-sublist i) { color: var(--alkz-blue); }
.alkz-learning-theme .alkz-mm-search { background: #f7f9fb; border-color: var(--alkz-line); box-shadow: none; }
.alkz-learning-theme .alkz-mm-search button { color: #fff; background: var(--alkz-blue); }

/* Full-width training footage behind the existing search, stats and banners. */
.alkz-learning-theme .alkz-home-hero {
    --hero-gutter: clamp(16px, 2.5vw, 48px);
    --hero-pad-top: 40px;
    --hero-pad-bottom: 44px;
    width: 100%;
    max-width: none;
    margin: 0;
    border-radius: 0;
    border: 0;
    background: var(--alkz-navy);
}
.alkz-learning-theme .alkz-home-hero > .pointer-events-none { display: none; }
.alkz-learning-theme .alkz-home-hero > .alkz-home-hero-media,
.alkz-learning-theme .alkz-home-hero > .alkz-home-hero-video-overlay { display: block; }
.alkz-learning-theme .alkz-home-hero .alkz-home-hero-video {
    display: block;
    object-fit: cover;
    transform: none;
}
.alkz-learning-theme .alkz-home-hero > .alkz-home-hero-video-overlay {
    background: linear-gradient(90deg, rgb(20 43 74 / 45%), rgb(0 62 95 / 83%) 60%, rgb(20 43 74 / 93%));
}
.alkz-learning-theme .alkz-home-hero-inner { padding: 40px 32px 44px !important; }
.alkz-learning-theme .alkz-hero-video-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    margin-inline-start: 8px;
    padding: 6px 10px;
    color: #fff;
    background: rgb(20 43 74 / 70%);
    border: 1px solid rgb(255 255 255 / 45%);
    border-radius: 6px;
    font: inherit;
    font-size: 12px;
    vertical-align: middle;
    cursor: pointer;
}
.alkz-learning-theme .alkz-hero-video-toggle:hover { background: var(--alkz-navy); }
.alkz-learning-theme .alkz-hero-video-toggle:focus-visible { outline-color: var(--alkz-yellow) !important; }
.alkz-learning-theme .alkz-hero-video-toggle[hidden] { display: none; }
.alkz-learning-theme .alkz-home-hero .hero-grid-2col { gap: 36px !important; align-items: center; }
.alkz-learning-theme .alkz-home-hero-content { text-align: right !important; }
.alkz-learning-theme .alkz-home-hero-content > span {
    color: var(--alkz-blue);
    background: #fff;
    border: 1px solid #cfe3ef;
    border-radius: 6px;
    box-shadow: none;
    backdrop-filter: none;
}
.alkz-learning-theme .alkz-home-hero-content > span .animate-ping { animation: none; }
.alkz-learning-theme .alkz-home-hero-title {
    color: #fff;
    font-size: clamp(1.8rem, 3vw, 2.65rem) !important;
    line-height: 1.4 !important;
    font-weight: 700;
    margin-top: 20px !important;
    text-shadow: none;
}
.alkz-learning-theme .alkz-home-hero-name {
    color: var(--alkz-yellow);
    background: none;
    -webkit-text-fill-color: currentColor;
    filter: none !important;
}
.alkz-learning-theme .alkz-home-hero-subtitle { color: #e4edf7; font-size: 16px !important; margin-top: 16px !important; line-height: 1.85; }
.alkz-learning-theme .alkz-home-search { margin-top: 24px !important; }
.alkz-learning-theme .alkz-home-search > .pointer-events-none { display: none; }
.alkz-learning-theme .alkz-home-search-shell {
    background: #fff !important;
    border: 1px solid #a9c9dd;
    border-radius: 8px !important;
    box-shadow: none;
    padding: 5px !important;
    backdrop-filter: none;
}
.alkz-learning-theme .alkz-home-search-shell > span { color: var(--alkz-blue); background: #fff; }
.alkz-learning-theme .alkz-home-search-button {
    color: #fff;
    background: var(--alkz-blue);
    border-radius: 6px !important;
    box-shadow: none;
    min-height: 44px;
}
.alkz-learning-theme .alkz-home-search-button:hover { background: var(--alkz-blue-hover); }
.alkz-learning-theme .alkz-home-search-button::after { display: none; }
.alkz-learning-theme .alkz-home-stats {
    height: auto !important;
    margin-top: 24px !important;
    padding: 18px 0 0 !important;
    background: transparent;
    border: 0;
    border-top: 1px solid rgb(255 255 255 / 25%);
    border-radius: 0 !important;
    box-shadow: none;
    backdrop-filter: none;
}
.alkz-learning-theme .alkz-home-stats > .absolute { display: none; }
.alkz-learning-theme .alkz-home-stats-grid { gap: 14px !important; }
.alkz-learning-theme .alkz-home-stat-icon {
    color: var(--alkz-blue);
    background: #e0f0f9;
    border: 0;
    border-radius: 6px !important;
    box-shadow: none;
}
.alkz-learning-theme .alkz-home-stat-value {
    color: #fff;
    background: none;
    -webkit-text-fill-color: currentColor;
    font-size: 21px !important;
}
.alkz-learning-theme .alkz-home-stat-label { color: #e4edf7; font-size: 12px !important; }
.alkz-learning-theme .alkz-home-hero .alkz-home-hero-inner {
    padding: var(--hero-pad-top) var(--hero-gutter) var(--hero-pad-bottom) !important;
}
.alkz-learning-theme .alkz-home-hero .hero-carousel-col {
    position: relative;
    align-self: stretch;
    min-width: 0;
    margin-block: calc(-1 * var(--hero-pad-top)) calc(-1 * var(--hero-pad-bottom));
    margin-left: calc(-1 * var(--hero-gutter));
    padding: 0;
}
.alkz-learning-theme .alkz-home-hero .alkz-hero-banner-stage { height: 100%; }
.alkz-learning-theme .alkz-home-hero .lux-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: none;
    margin: 0;
    min-height: 0;
    aspect-ratio: auto;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}
.alkz-learning-theme .alkz-hero-banner-image,
.alkz-learning-theme .alkz-hero-banner-fallback {
    -webkit-mask-image: linear-gradient(to right, #000 0%, #000 54%, rgb(0 0 0 / 75%) 72%, transparent 100%), linear-gradient(to bottom, transparent 0%, #000 8%, #000 91%, transparent 100%);
    mask-image: linear-gradient(to right, #000 0%, #000 54%, rgb(0 0 0 / 75%) 72%, transparent 100%), linear-gradient(to bottom, transparent 0%, #000 8%, #000 91%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
}
.alkz-learning-theme .alkz-hero-banner-image { display: block; width: 100%; height: 100%; object-fit: cover; }
.alkz-learning-theme .alkz-home-hero .lux-carousel__slide { pointer-events: none; }
.alkz-learning-theme .alkz-home-hero .lux-carousel__slide.is-active { pointer-events: auto; z-index: 1; }
.alkz-learning-theme .alkz-hero-banner-shade {
    position: absolute;
    inset: 40% 0 0;
    pointer-events: none;
    background: linear-gradient(to top, rgb(20 43 74 / 90%), transparent);
    -webkit-mask-image: linear-gradient(to right, #000 0%, #000 60%, transparent 100%);
    mask-image: linear-gradient(to right, #000 0%, #000 60%, transparent 100%);
}
.alkz-learning-theme .alkz-hero-banner-caption {
    position: absolute;
    left: 64px;
    right: 24%;
    bottom: 64px;
    z-index: 2;
    text-align: right;
}
.alkz-learning-theme .alkz-hero-banner-caption :is(h3, p) { color: #fff; }
.alkz-learning-theme .alkz-hero-banner-dots { bottom: 26px; left: 64px; right: 24%; }
.alkz-learning-theme .alkz-home-hero :is(.lux-carousel__prev, .lux-carousel__next) {
    color: #fff;
    background: rgb(20 43 74 / 60%);
    border: 1px solid rgb(255 255 255 / 35%);
    box-shadow: none;
    border-radius: 8px;
}
.alkz-learning-theme .alkz-home-hero .lux-carousel__prev { right: 17%; }
.alkz-learning-theme .alkz-home-hero .lux-carousel__next { left: 18px; }
.alkz-learning-theme .alkz-home-hero :is(.lux-carousel__prev, .lux-carousel__next):hover { color: var(--alkz-blue); background: #fff; }
.alkz-learning-theme .alkz-home-hero .lux-carousel__dot,
.alkz-learning-theme .alkz-home-hero .lux-carousel__dot.is-active {
    position: relative;
    width: 28px !important;
    min-width: 28px !important;
    height: 32px !important;
    min-height: 32px !important;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}
.alkz-learning-theme .alkz-home-hero .lux-carousel__dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 6px;
    border-radius: 999px;
    background: rgb(255 255 255 / 55%);
    transform: translate(-50%, -50%);
    transition: width .2s, background-color .2s;
    pointer-events: none;
}
.alkz-learning-theme .alkz-home-hero .lux-carousel__dot.is-active::after { width: 28px; background: var(--alkz-yellow); }
@media (min-width: 1024px) {
    .alkz-learning-theme .alkz-home-hero .hero-grid-2col { min-height: 560px; }
}
@media (max-width: 1023px) {
    .alkz-learning-theme .alkz-home-hero { --hero-pad-top: 28px; --hero-pad-bottom: 32px; }
    .alkz-learning-theme .alkz-home-hero .hero-grid-2col { display: block !important; }
    .alkz-learning-theme .alkz-home-hero .hero-carousel-col {
        margin-top: 28px;
        margin-inline: calc(-1 * var(--hero-gutter));
    }
    .alkz-learning-theme .alkz-home-hero .alkz-hero-banner-stage { height: clamp(320px, 80vw, 560px); }
    .alkz-learning-theme .alkz-home-hero .hero-carousel-col .lux-carousel { min-height: 0; }
    .alkz-learning-theme .alkz-hero-banner-image,
    .alkz-learning-theme .alkz-hero-banner-fallback {
        -webkit-mask-image: linear-gradient(to right, #000 0%, #000 75%, rgb(0 0 0 / 25%) 100%), linear-gradient(to bottom, transparent 0%, #000 12%, #000 92%, transparent 100%);
        mask-image: linear-gradient(to right, #000 0%, #000 75%, rgb(0 0 0 / 25%) 100%), linear-gradient(to bottom, transparent 0%, #000 12%, #000 92%, transparent 100%);
    }
    .alkz-learning-theme .alkz-hero-banner-caption { left: 24px; right: 24px; bottom: 58px; }
    .alkz-learning-theme .alkz-hero-banner-dots { left: 24px; right: 24px; bottom: 22px; }
    .alkz-learning-theme .alkz-home-hero .lux-carousel__prev { right: 12px; }
}
.alkz-learning-theme :is(.lux-carousel__prev, .lux-carousel__next) {
    color: var(--alkz-blue);
    background: #fff;
    box-shadow: 0 1px 4px rgb(12 58 83 / 15%);
    border: 1px solid var(--alkz-line);
    backdrop-filter: none;
}
.alkz-learning-theme .lux-carousel__dot.is-active { background: #fff; box-shadow: 0 0 0 2px var(--alkz-blue); }
.alkz-learning-theme .lux-carousel__slide a { color: #fff; background: var(--alkz-blue); box-shadow: none; }

/* Training categories sit in normal document flow below the video hero. */
.alkz-learning-theme .alkz-category-section {
    position: relative;
    margin-block: 28px 0 !important;
    transform: none !important;
}
.alkz-learning-theme .alkz-category-dock {
    padding: 0 !important;
    border: 0;
    border-radius: 0 !important;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}
.alkz-learning-theme .alkz-category-card {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 14px;
    align-items: center;
    gap: 12px !important;
    min-height: 92px;
    padding: 18px 16px !important;
    border: 1px solid var(--alkz-line);
    border-top: 3px solid var(--category-color);
    border-radius: 10px !important;
    box-shadow: none;
    text-align: right;
    text-decoration: none;
    transition: border-color .2s, background .2s;
}
.alkz-learning-theme .alkz-category-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px !important;
    height: 44px !important;
    border-radius: 10px !important;
    color: var(--category-color);
    background: #fff;
    font-size: 19px !important;
    box-shadow: none;
    transform: none;
}
.alkz-learning-theme .alkz-category-label { font-size: 14px !important; line-height: 1.65; font-weight: 600; }
.alkz-learning-theme .alkz-category-more { display: block !important; opacity: 1; font-size: 12px !important; transform: none; }
@media (max-width: 639px) {
    .alkz-learning-theme .alkz-category-section { margin-top: 20px !important; }
    .alkz-learning-theme .alkz-category-card { grid-template-columns: 34px minmax(0, 1fr); gap: 9px !important; min-height: 82px; padding: 12px !important; }
    .alkz-learning-theme .alkz-category-icon { width: 34px !important; height: 34px !important; font-size: 16px !important; }
    .alkz-learning-theme .alkz-category-label { font-size: 13px !important; }
    .alkz-learning-theme .alkz-category-more { display: none !important; }
    .alkz-learning-theme .alkz-category-card:last-child { grid-column: 1 / -1; }
}
.alkz-learning-theme .course-card {
    border: 1px solid #d6dce2;
    border-radius: 10px;
    box-shadow: none;
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.alkz-learning-theme .course-card:hover { border-color: var(--alkz-blue); box-shadow: 0 3px 12px rgb(12 58 83 / 10%); }
.alkz-learning-theme .course-card > span:first-child { display: none; }
.alkz-learning-theme .course-card .course-card__media {
    flex: 0 0 auto;
    height: auto;
    aspect-ratio: auto;
    background: #fff;
    border-bottom: 1px solid #e8edf1;
}
.alkz-learning-theme .course-card .course-card__poster {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    aspect-ratio: auto 210 / 297;
    object-fit: contain;
}
.alkz-learning-theme .course-card .course-card__media--empty { aspect-ratio: 210 / 297; background: var(--alkz-navy-soft); }
.alkz-learning-theme .course-card .course-card__media--empty > div { position: absolute; inset: 0; }
.alkz-learning-theme .course-card img { transform: none !important; }
.alkz-learning-theme .course-card > .p-5 { padding: 18px; }
.alkz-learning-theme .course-card h3 { font-size: 16px; line-height: 1.7; }
.alkz-learning-theme .course-card__footer,
.alkz-learning-theme .course-card:hover .course-card__footer {
    margin-top: auto;
    padding: 14px 18px;
    background: #fff;
    border-color: #e8edf1;
}
.alkz-learning-theme .course-card__footer .course-card-price :is(span, del) { color: var(--alkz-muted); }
.alkz-learning-theme .course-card__footer .course-card-price span.font-bold { color: var(--alkz-text); }
.alkz-learning-theme .course-card__footer > span,
.alkz-learning-theme .course-card:hover .course-card__footer > span {
    color: var(--alkz-blue);
    background: #eef7fc;
    border: 1px solid #d6eaf4;
    border-radius: 6px;
    box-shadow: none;
}
.alkz-learning-theme [role="img"][aria-label$="من 5"] > .absolute { color: #d69716; }
.alkz-learning-theme :is(.filter-tab, .view-btn) { border-radius: 6px; }
.alkz-learning-theme .filter-tab.is-active { color: #fff; background: var(--alkz-blue); border-color: var(--alkz-blue); box-shadow: none; }
.alkz-learning-theme .filter-tab.is-active .filter-count { color: #fff; }
.alkz-learning-theme .alkz-partner-card { box-shadow: none; border-color: var(--alkz-line); border-radius: 8px; }
.alkz-learning-theme .alkz-partner-card:hover { border-color: #80b9d5; }

/* The catalog and course detail keep their existing controls and tab order. */
.alkz-learning-theme main > section:first-child[class*="from-navy-"] {
    color: var(--alkz-text);
    background: #eef7fc;
    border-bottom: 1px solid #dcebf4;
}
.alkz-learning-theme main > section:first-child[class*="from-navy-"] > .pointer-events-none { display: none; }
.alkz-learning-theme main > section:first-child[class*="from-navy-"] :is(.text-white, .text-ink-200, .text-ink-300) { color: var(--alkz-text); }
.alkz-learning-theme main > section:first-child[class*="from-navy-"] :is(.text-gold-300, .text-gold-400) { color: var(--alkz-blue); }
.alkz-learning-theme main > section:first-child[class*="from-navy-"] :is([class*="bg-rose-500"], [class*="bg-emerald-500"]) { color: #fff; }
.alkz-learning-theme main > section:first-child[class*="from-navy-"] [class~="bg-white/10"] {
    background: #fff;
    border-color: #d4e4ee;
    box-shadow: none;
    backdrop-filter: none;
}
.alkz-learning-theme main > section:first-child[class*="from-navy-"] form {
    border: 1px solid #a9c9dd;
    border-radius: 8px;
    box-shadow: none;
}
.alkz-learning-theme :is(.lux-tab.is-active::after, .course-tab.is-active::after) { background: var(--alkz-blue); }
.alkz-learning-theme .lux-tab.is-active { color: var(--alkz-blue); }
.alkz-learning-theme .course-section-rail a { border-radius: 6px; }

/* Secondary colors identify learning areas while the primary actions stay blue. */
.alkz-learning-theme .alkz-home-hero-content > span {
    color: var(--alkz-navy);
    background: var(--alkz-yellow-soft);
    border-color: #eed79b;
}
.alkz-learning-theme .alkz-home-stat:nth-child(2) .alkz-home-stat-icon {
    color: var(--alkz-purple);
    background: var(--alkz-purple-soft);
}
.alkz-learning-theme .alkz-home-stat:nth-child(3) .alkz-home-stat-icon {
    color: var(--alkz-yellow-ink);
    background: var(--alkz-yellow-soft);
}
.alkz-learning-theme .alkz-home-stat:nth-child(4) .alkz-home-stat-icon {
    color: var(--alkz-navy);
    background: var(--alkz-navy-soft);
}
.alkz-learning-theme .alkz-home-hero .lux-carousel__slide a {
    color: var(--alkz-navy);
    background: var(--alkz-yellow);
}
.alkz-learning-theme .alkz-home-hero .lux-carousel__slide a:hover { background: #edba31; }
.alkz-learning-theme .alkz-category-card {
    --category-color: var(--alkz-blue);
    --category-soft: var(--alkz-blue-soft);
    background: var(--category-soft);
    border-bottom-color: var(--alkz-line);
}
.alkz-learning-theme .alkz-category-card:nth-child(2) { --category-color: var(--alkz-purple); --category-soft: var(--alkz-purple-soft); }
.alkz-learning-theme .alkz-category-card:nth-child(3) { --category-color: var(--alkz-yellow-ink); --category-soft: var(--alkz-yellow-soft); }
.alkz-learning-theme .alkz-category-card:nth-child(4) { --category-color: var(--alkz-navy); --category-soft: var(--alkz-navy-soft); }
.alkz-learning-theme .alkz-category-card:nth-child(5) { --category-color: var(--alkz-purple); --category-soft: #f7f3fd; }
.alkz-learning-theme .alkz-category-card:hover { background: var(--category-soft); border-color: var(--category-color); }
.alkz-learning-theme .alkz-category-card [class*="from-"] { color: var(--category-color); background: #fff; }
.alkz-learning-theme .alkz-category-card :is(.alkz-category-label, .alkz-category-more) { color: var(--category-color); }
.alkz-learning-theme .alkz-feature-card { border-top: 3px solid var(--feature-color); background: var(--feature-soft); }
.alkz-learning-theme .alkz-feature-card.alkz-accent-yellow { --feature-color: var(--alkz-yellow-ink); --feature-soft: var(--alkz-yellow-soft); }
.alkz-learning-theme .alkz-feature-card.alkz-accent-purple { --feature-color: var(--alkz-purple); --feature-soft: var(--alkz-purple-soft); }
.alkz-learning-theme .alkz-feature-card.alkz-accent-navy { --feature-color: #91cbe5; --feature-soft: var(--alkz-navy); }
.alkz-learning-theme .alkz-feature-card > div { color: var(--feature-color); background: #fff; }
.alkz-learning-theme .alkz-feature-card.alkz-accent-navy h3 { color: #fff; }
.alkz-learning-theme .alkz-feature-card.alkz-accent-navy p { color: #d8e2f0; }
.alkz-learning-theme .alkz-feature-card.alkz-accent-navy > div { color: var(--alkz-navy); background: #e3edf7; }
.alkz-learning-theme .alkz-featured-courses { background: #f7f4fc; }
.alkz-learning-theme .alkz-featured-courses .alkz-home-kicker { color: var(--alkz-purple); }
.alkz-learning-theme .course-card { --course-color: var(--alkz-blue); --course-soft: var(--alkz-blue-soft); border-top: 3px solid var(--course-color); }
.alkz-learning-theme .course-card.alkz-accent-purple { --course-color: var(--alkz-purple); --course-soft: var(--alkz-purple-soft); }
.alkz-learning-theme .course-card.alkz-accent-yellow { --course-color: var(--alkz-yellow-ink); --course-soft: var(--alkz-yellow-soft); }
.alkz-learning-theme .course-card.alkz-accent-navy { --course-color: var(--alkz-navy); --course-soft: var(--alkz-navy-soft); }
.alkz-learning-theme .course-card:hover { border-color: var(--course-color); }
.alkz-learning-theme .course-card .course-card__category {
    color: var(--course-color);
    background: var(--course-soft);
    border: 1px solid var(--course-color);
    box-shadow: none;
}
.alkz-learning-theme .course-card .course-card__footer > span,
.alkz-learning-theme .course-card:hover .course-card__footer > span {
    color: var(--course-color);
    background: var(--course-soft);
    border-color: var(--course-color);
}
.alkz-learning-theme .alkz-home-cta-card {
    background: var(--alkz-yellow-soft);
    border: 1px solid #ebd69c;
    border-inline-start: 6px solid var(--alkz-yellow);
    box-shadow: none;
}
.alkz-learning-theme .alkz-home-cta-card h2 { color: var(--alkz-navy); }
.alkz-learning-theme .alkz-home-cta-card p { color: #4d5260; }
.alkz-learning-theme .alkz-home-cta-card a:first-child { color: #fff; background: var(--alkz-navy); }
.alkz-learning-theme .alkz-home-cta-card a:last-child { color: var(--alkz-purple); background: #fff; border: 1px solid #d7c7ee; }

/* Give visitor pages more room on desktop while keeping form/readability
   constraints inside the content and leaving role dashboards unchanged. */
.alkz-visitor-theme {
    --alkz-visitor-width: 1728px;
    --alkz-visitor-gutter: clamp(16px, 2vw, 32px);
}
.alkz-visitor-theme main .max-w-7xl,
.alkz-visitor-theme main .container {
    width: 100% !important;
    max-width: var(--alkz-visitor-width) !important;
    margin-inline: auto;
    padding-inline: var(--alkz-visitor-gutter) !important;
}
.alkz-visitor-theme .alkz-hdr .max-w-7xl,
.alkz-visitor-theme main .alkz-home-hero-inner {
    width: 100% !important;
    max-width: none !important;
    margin-inline: 0;
    padding-inline: clamp(16px, 2.5vw, 48px) !important;
}

@media (min-width: 1024px) {
    .alkz-learning-theme .alkz-category-dock > .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
    .alkz-learning-theme .alkz-home-hero-inner { padding: 28px 18px 32px !important; }
    .alkz-learning-theme .alkz-home-hero-title { font-size: 29px !important; }
    .alkz-learning-theme .alkz-home-hero-subtitle { font-size: 15px !important; }
    .alkz-learning-theme .alkz-home-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .alkz-learning-theme .alkz-home-hero .lux-carousel { min-height: 240px; }
    .alkz-learning-theme .hero-carousel-col { padding-inline: 8px; }
    .alkz-learning-theme .alkz-home-section { padding-block: 32px; }
    .alkz-learning-theme .alkz-home-search-shell { flex-wrap: nowrap; }
    .alkz-learning-theme .alkz-home-search-input { flex-basis: auto; }
    .alkz-learning-theme .alkz-home-search-button { width: auto; min-width: 62px; }
}
@media (prefers-reduced-motion: reduce) {
    .alkz-learning-theme .alkz-home-hero .alkz-home-hero-video { display: none !important; }
    .alkz-learning-theme .alkz-hero-video-toggle { display: none; }
}
