/* Islamic public theme — uses CSS variables from layouts/public (:root) */

.islamic-pattern-bg {
    background-color: #faf7f2;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cpath fill='none' stroke='%23C09144' stroke-opacity='0.11' stroke-width='0.8' d='M30 2 L35 18 L52 18 L38 28 L44 46 L30 36 L16 46 L22 28 L8 18 L25 18 Z'/%3E%3C/svg%3E");
}

@keyframes islamic-hero-photo-fade {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes islamic-hero-photo-breathe {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.035);
    }
}

.hero-islamic {
    position: relative;
    padding: 4rem 0 3.5rem;
    color: #3d2b28;
    --hero-photo-radius: clamp(1.35rem, 3.2vw, 2.35rem);
}

.hero-islamic--banner {
    background-color: #0a0a0c;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-islamic--banner::before {
    content: "";
    position: absolute;
    inset: 0;
    /* Dark wash so gold/white hero copy stays readable over the banner photo */
    background: linear-gradient(
        180deg,
        rgba(10, 10, 12, 0.62) 0%,
        rgba(10, 10, 12, 0.48) 45%,
        rgba(10, 10, 12, 0.68) 100%
    );
    pointer-events: none;
}

.hero-islamic--banner .hero-islamic__description {
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.hero-islamic--banner .hero-islamic__title,
.hero-islamic--banner .hero-islamic__site-name--featured {
    color: var(--theme-secondary);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.hero-islamic--banner .hero-islamic__subtitle {
    color: rgba(255, 248, 235, 0.95);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.hero-islamic--banner .btn-hero-outline-brand {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.85);
    background: rgba(0, 0, 0, 0.2);
}

.hero-islamic--banner .btn-hero-outline-brand:hover {
    color: #0a0a0c;
    background: #fff;
    border-color: #fff;
}

.hero-islamic--banner > .container {
    position: relative;
    z-index: 1;
}

.hero-islamic--no-gallery {
    padding: clamp(3.5rem, 8vw, 5.5rem) 0 clamp(3rem, 6vw, 4.5rem);
}

.hero-islamic__content--centered {
    max-width: 42rem;
    margin-inline: auto;
    text-align: center;
}

.hero-islamic__site-name {
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--theme-secondary);
    margin: 0 0 0.65rem;
    line-height: 1.4;
}

.hero-islamic__site-name--featured {
    font-size: clamp(1.35rem, 3vw, 1.85rem);
    font-weight: 800;
    color: var(--theme-primary);
    margin-bottom: 0.85rem;
}

.hero-islamic--no-gallery .hero-islamic__badge {
    margin-bottom: 1rem;
}

.hero-islamic--no-gallery .hero-islamic__title {
    margin-bottom: 0.65rem;
}

.hero-islamic--no-gallery .hero-islamic__subtitle {
    margin-bottom: 0.85rem;
}

.hero-islamic--no-gallery .hero-islamic__description {
    max-width: none;
    margin-inline: auto;
    margin-bottom: 2rem;
}

.hero-islamic__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: center;
    align-items: center;
}

.hero-islamic__title {
    font-size: clamp(1.85rem, 4vw, 2.75rem);
    font-weight: 800;
    color: var(--theme-primary);
    line-height: 1.25;
    margin-bottom: 0.75rem;
}

.hero-islamic__subtitle {
    font-size: clamp(1.1rem, 2.2vw, 1.45rem);
    font-weight: 600;
    color: var(--theme-secondary);
    margin-bottom: 1rem;
}

.hero-islamic__description {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #5c4e4a;
    max-width: 36rem;
    margin-bottom: 1.75rem;
}

html[dir="rtl"] .hero-islamic__description {
    margin-inline-end: 0;
    margin-inline-start: auto;
}

html[dir="ltr"] .hero-islamic__description {
    margin-inline-start: 0;
    margin-inline-end: auto;
}

.hero-islamic__gallery-wrap {
    position: relative;
    overflow: visible;
    max-width: 100%;
    margin-inline: auto;
    padding: 0.5rem 0.5rem 1.35rem;
}

.hero-islamic__gallery-wrap::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: calc(var(--hero-photo-radius) + 0.75rem);
    background:
        radial-gradient(ellipse 85% 70% at 18% 22%, rgba(192, 145, 68, 0.07), transparent 52%),
        radial-gradient(ellipse 70% 60% at 88% 78%, rgba(122, 29, 22, 0.05), transparent 48%);
    pointer-events: none;
    z-index: 0;
}

.hero-islamic__gallery {
    position: relative;
    z-index: 1;
    max-width: 100%;
    margin-inline: auto;
}

/* Public home hero gallery: CSS grid — no overlap (was absolute “collage”) */
.hero-islamic__gallery--collage {
    width: 100%;
    max-width: min(520px, 100%);
    min-height: 0;
    margin-bottom: 0.35rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: clamp(0.65rem, 2vw, 1rem);
    align-items: start;
}

.hero-islamic__gallery--collage .hero-islamic__photo {
    position: static;
    margin: 0;
    width: 100% !important;
    inset: unset !important;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
}

.hero-islamic__photo--collage-main {
    grid-column: 1;
    grid-row: 1;
}

.hero-islamic__photo--collage-bottom {
    grid-column: 1;
    grid-row: 2;
}

.hero-islamic__photo--collage-side {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: stretch;
    display: flex;
    flex-direction: column;
}

.hero-islamic__photo-inner {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    max-height: min(360px, 50vh);
    margin-inline: auto;
    border-radius: var(--hero-photo-radius);
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.97);
    box-shadow:
        0 4px 0 rgba(192, 145, 68, 0.12),
        0 22px 48px rgba(61, 43, 40, 0.22),
        0 0 0 1px rgba(192, 145, 68, 0.18) inset;
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.4) 0%, transparent 42%);
}

.hero-islamic__gallery--collage .hero-islamic__photo-inner {
    margin-inline: 0;
    max-height: min(300px, 42vw);
}

.hero-islamic__gallery--collage .hero-islamic__photo--collage-side .hero-islamic__photo-inner {
    flex: 1;
    min-height: min(320px, 46vw);
    max-height: none;
}

.hero-islamic__photo-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    animation-name: islamic-hero-photo-fade, islamic-hero-photo-breathe;
    animation-duration: 0.85s, 16s;
    animation-timing-function: ease-out, ease-in-out;
    animation-delay: 0s, 0.85s;
    animation-iteration-count: 1, infinite;
    animation-fill-mode: forwards, none;
    transform-origin: center center;
}

.hero-islamic__gallery--collage .hero-islamic__photo:nth-child(1) .hero-islamic__photo-img {
    animation-delay: 0s, 0.85s;
}

.hero-islamic__gallery--collage .hero-islamic__photo:nth-child(2) .hero-islamic__photo-img {
    animation-delay: 0.12s, 0.97s;
}

.hero-islamic__gallery--collage .hero-islamic__photo:nth-child(3) .hero-islamic__photo-img {
    animation-delay: 0.24s, 1.09s;
}

.hero-islamic__photo-fab {
    position: absolute;
    top: 0.65rem;
    inset-inline-end: 0.65rem;
    z-index: 2;
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(145deg, #e0b456, var(--theme-secondary));
    box-shadow:
        0 3px 12px rgba(192, 145, 68, 0.45),
        0 0 0 2px rgba(255, 255, 255, 0.35);
    pointer-events: none;
}

html[dir="rtl"] .hero-islamic__photo-fab-icon {
    transform: scaleX(-1);
}

/* Optional badge from CMS only (no default overlay text) */
.hero-islamic__gallery-pill {
    display: table;
    position: relative;
    margin-top: 0.65rem;
    margin-inline: auto;
    padding: 0.4rem 1rem;
    max-width: min(11rem, 92%);
    text-align: center;
    font-size: clamp(0.68rem, 1.45vw, 0.85rem);
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: 0.02em;
    color: #fff;
    border-radius: 999px;
    background: linear-gradient(135deg, #d4a84b, var(--theme-secondary));
    box-shadow:
        0 8px 28px rgba(192, 145, 68, 0.42),
        0 0 0 2px rgba(255, 255, 255, 0.5);
    pointer-events: none;
}

@media (min-width: 992px) {
    .hero-islamic__gallery--collage {
        max-width: min(560px, 100%);
        gap: clamp(0.85rem, 2vw, 1.25rem);
    }

    .hero-islamic__gallery--collage .hero-islamic__photo-inner {
        max-height: min(340px, 40vh);
    }

    .hero-islamic__gallery--collage .hero-islamic__photo--collage-side .hero-islamic__photo-inner {
        min-height: min(400px, 46vh);
    }
}

@media (max-width: 575.98px) {
    .hero-islamic__gallery--collage {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        max-width: 100%;
        gap: 0.65rem;
    }

    .hero-islamic__photo--collage-main,
    .hero-islamic__photo--collage-bottom,
    .hero-islamic__photo--collage-side {
        grid-column: 1;
    }

    .hero-islamic__photo--collage-main {
        grid-row: 1;
    }

    .hero-islamic__photo--collage-bottom {
        grid-row: 2;
    }

    .hero-islamic__photo--collage-side {
        grid-row: 3;
        display: block;
    }

    .hero-islamic__gallery--collage .hero-islamic__photo--collage-side .hero-islamic__photo-inner {
        min-height: 0;
        flex: none;
    }

    .hero-islamic__gallery-pill {
        font-size: 0.62rem;
        padding: 0.28rem 0.7rem;
    }

    .hero-islamic__gallery--collage .hero-islamic__photo-inner {
        max-height: min(260px, 58vw);
    }
}

.hero-islamic__badge {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--theme-secondary), color-mix(in srgb, var(--theme-secondary) 70%, white));
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    box-shadow: 0 6px 18px rgba(192, 145, 68, 0.35);
}

.hero-islamic .btn-hero-gold {
    background: var(--theme-secondary);
    color: #fff;
    border: none;
    padding: 0.65rem 1.75rem;
    border-radius: 999px;
    font-weight: 700;
    transition: transform 0.2s, box-shadow 0.2s;
}

.hero-islamic .btn-hero-gold:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(122, 29, 22, 0.2);
}

.hero-islamic .btn-hero-outline-brand {
    border: 2px solid var(--theme-primary);
    color: var(--theme-primary);
    background: transparent;
    padding: 0.6rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
}

.hero-islamic .btn-hero-outline-brand:hover {
    background: var(--theme-primary);
    color: #fff;
}

.stats-zad--islamic {
    background: var(--theme-primary) !important;
    margin-top: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    position: relative;
    overflow: hidden;
}

.hero-stats-bar__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
}

@media (min-width: 768px) {
    .hero-stats-bar__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 992px) {
    .hero-stats-bar__grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .hero-stats-bar--with-visitors .hero-stats-bar__grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

.hero-stats-bar__cell {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    min-height: 9.5rem;
    padding: 1.35rem 1rem;
    text-align: center;
}

.hero-stats-bar__cell:not(:last-child)::after {
    content: "";
    position: absolute;
    inset-block: 1.25rem;
    inset-inline-end: 0;
    width: 1px;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(255, 255, 255, 0.22) 18%,
        rgba(255, 255, 255, 0.22) 82%,
        transparent 100%
    );
}

@media (max-width: 991.98px) {
    .hero-stats-bar__cell:nth-child(2n)::after,
    .hero-stats-bar__cell:last-child::after {
        display: none;
    }

    .hero-stats-bar__cell {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .hero-stats-bar__cell:nth-last-child(-n + 2) {
        border-bottom: 0;
    }
}

.hero-stats-bar__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 999px;
    margin-bottom: 0.35rem;
    font-size: 1.35rem;
    color: var(--theme-secondary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.hero-stats-bar__value {
    margin: 0;
    font-size: clamp(1.55rem, 2.4vw, 2rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--theme-secondary);
    letter-spacing: 0.01em;
}

.hero-stats-bar__value--text {
    font-size: clamp(1.25rem, 2vw, 1.55rem);
}

.hero-stats-bar__value--date {
    font-size: clamp(1.15rem, 1.8vw, 1.35rem);
}

.hero-stats-bar__label {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.96);
}

.hero-stats-bar__meta {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.72);
}

.hero-stats-bar__cell--visitors .hero-stats-bar__value {
    font-variant-numeric: tabular-nums;
}

.stats-zad--islamic .stat-icon-zad,
.stats-zad--islamic .stat-number-zad {
    color: var(--theme-secondary) !important;
}

.stats-zad--islamic .stat-label-zad,
.stats-zad--islamic .stat-sublabel-zad {
    color: rgba(255, 255, 255, 0.9) !important;
}

.stats-zad--islamic .btn-hero-zad {
    background: var(--theme-secondary) !important;
    color: #fff !important;
}

footer.footer-islamic {
    background: var(--theme-primary) !important;
    margin-top: 0 !important;
}

footer.footer-islamic .footer-desc,
footer.footer-islamic a {
    color: rgba(255, 255, 255, 0.85) !important;
}

footer.footer-islamic a:hover {
    color: var(--theme-secondary) !important;
}

footer.footer-islamic h5 {
    color: #fff !important;
}

footer.footer-islamic hr {
    border-color: rgba(255, 255, 255, 0.2) !important;
}

footer.footer-islamic .social-icons-zad a {
    background: rgba(255, 255, 255, 0.12) !important;
}

footer.footer-islamic .social-icons-zad a:hover {
    background: var(--theme-secondary) !important;
}

footer.footer-islamic .col-12.text-center p {
    color: rgba(255, 255, 255, 0.75) !important;
}

.section-title-zad {
    color: var(--theme-primary) !important;
}

.btn-nav-categories {
    border: 1.5px solid color-mix(in srgb, var(--theme-secondary) 55%, #ccc);
    color: var(--theme-primary) !important;
    border-radius: var(--client-radius-md, 1rem);
    padding: 0.4rem 0.85rem !important;
    font-weight: 600;
    font-size: 0.9rem;
    margin-inline-end: 0.35rem;
    transition: background 0.2s, border-color 0.2s;
}

/* Icon + label: keep icon on the outer edge in RTL (same side as cart / account icons) */
html[dir="rtl"] .navbar-nav .btn-nav-categories,
html[dir="rtl"] .navbar-nav .nav-link.d-inline-flex {
    flex-direction: row-reverse;
}

.btn-nav-categories:hover {
    background: color-mix(in srgb, var(--theme-secondary) 12%, white);
    border-color: var(--theme-secondary);
    color: var(--theme-primary) !important;
}

.navbar-nav .nav-link.active-public {
    color: var(--theme-secondary) !important;
    font-weight: 700;
}

/* Storefront bands */
/* Solid band: avoids loud orange transitions between stacked sections */
.client-band--primary {
    background: var(--theme-primary) !important;
    color: #fff;
}

.client-band--primary .client-section__title {
    color: #fff !important;
}

.client-band--primary .client-section__subtitle {
    color: rgba(255, 255, 255, 0.88) !important;
}

.client-band--primary .btn-outline-primary {
    border-color: #fff !important;
    color: #fff !important;
}

.client-band--primary .btn-outline-primary:hover {
    background-image: var(--client-gradient-warm, linear-gradient(90deg, var(--theme-primary), var(--theme-primary))) !important;
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.45) !important;
    filter: brightness(1.06);
}

.client-band--secondary {
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--theme-secondary, var(--theme-primary)) 28%, #fff) 0%,
        color-mix(in srgb, var(--theme-primary) 12%, #fff) 100%
    ) !important;
}

.client-band--secondary .client-section__title {
    color: var(--theme-primary) !important;
}

/* Catalog cards — accent from theme */
.catalog-card-modern__badge--bundle {
    background: color-mix(in srgb, var(--theme-secondary) 25%, white) !important;
    color: var(--theme-primary) !important;
}

.catalog-card-modern__badge--path {
    background: color-mix(in srgb, var(--theme-primary) 12%, white) !important;
    color: var(--theme-primary) !important;
}

body.client-ui .catalog-card-modern .btn-primary {
    background-image: var(--client-gradient-warm, linear-gradient(90deg, var(--theme-primary), var(--theme-primary))) !important;
    background-color: transparent !important;
    border-color: transparent !important;
    color: #fff !important;
}

body.client-ui .catalog-card-modern .btn-primary:hover {
    filter: brightness(1.08);
    color: #fff !important;
}

body.client-ui .catalog-card-modern .text-primary {
    color: var(--theme-primary) !important;
}

body.client-ui .hero-zad--photo::before {
    background: var(--client-gradient-warm-vertical, linear-gradient(135deg, var(--theme-primary), var(--zad-primary-dark))) !important;
    opacity: 0.92;
}

body.client-ui .navbar .dropdown-item:active {
    color: var(--theme-primary) !important;
    background: color-mix(in srgb, var(--theme-primary) 12%, transparent) !important;
}

/* —— Bootstrap / global: gradient primary (matches --client-gradient-warm from layout) —— */
body.client-ui .btn-primary {
    --bs-btn-bg: transparent;
    --bs-btn-border-color: transparent;
    background-image: var(--client-gradient-warm, linear-gradient(90deg, var(--theme-primary), var(--theme-primary))) !important;
    background-color: transparent !important;
    border-color: transparent !important;
    color: #fff !important;
}

body.client-ui .btn-primary:hover,
body.client-ui .btn-primary:focus-visible {
    color: #fff !important;
    filter: brightness(1.07);
}

body.client-ui .btn-outline-primary {
    --bs-btn-color: var(--theme-primary);
    --bs-btn-border-color: color-mix(in srgb, var(--theme-primary) 45%, #d1d5db);
    --bs-btn-hover-bg: transparent;
    --bs-btn-hover-border-color: transparent;
    --bs-btn-hover-color: #fff;
    --bs-btn-active-bg: transparent;
    --bs-btn-active-border-color: transparent;
    --bs-btn-active-color: #fff;
}

body.client-ui .btn-outline-primary:hover,
body.client-ui .btn-outline-primary:focus-visible {
    background-image: var(--client-gradient-warm, linear-gradient(90deg, var(--theme-primary), var(--theme-primary))) !important;
    color: #fff !important;
}

body.client-ui .progress-bar {
    background-image: var(--client-gradient-warm, linear-gradient(90deg, var(--theme-primary), var(--theme-primary))) !important;
    background-color: transparent !important;
}

body.client-ui .pagination .page-item.active .page-link {
    background-image: var(--client-gradient-warm, linear-gradient(90deg, var(--theme-primary), var(--theme-primary))) !important;
    background-color: transparent !important;
    border-color: transparent !important;
    color: #fff !important;
}

body.client-ui .pagination .page-link {
    color: var(--theme-primary);
}

body.client-ui .pagination .page-link:hover {
    color: color-mix(in srgb, var(--theme-primary) 80%, black);
}

body.client-ui .text-primary {
    color: var(--theme-primary) !important;
}

body.client-ui .alert-info {
    border-left: 4px solid var(--theme-secondary);
    background: color-mix(in srgb, var(--theme-secondary) 8%, white);
    color: #3d2b28;
}

.catalog-card-modern__badge--category {
    inset-inline-start: 12px !important;
    top: 12px !important;
    bottom: auto !important;
    inset-inline-end: auto !important;
    background: color-mix(in srgb, var(--theme-primary) 88%, transparent) !important;
    color: #fff !important;
    font-size: 0.7rem !important;
}

/* —— Learn space —— */
.learn-space__title {
    font-size: clamp(1.65rem, 3vw, 2.15rem);
    font-weight: 800;
    color: var(--theme-primary);
    letter-spacing: -0.02em;
}

.learn-space__lead {
    font-size: 1.05rem;
    max-width: 36rem;
}

/* Learn dashboard hero (star backdrop + collage) */
.learn-hero__surface {
    --learn-hero-surface-bg: #faf6f1;
    position: relative;
    overflow: visible;
    padding: clamp(1.75rem, 4vw, 3rem);
    background-color: var(--learn-hero-surface-bg);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cpath fill='none' stroke='%23c95b76' stroke-opacity='0.14' stroke-width='0.75' d='M36 4 L42 26 L66 26 L46 40 L54 62 L36 48 L18 62 L26 40 L6 26 L30 26 Z'/%3E%3C/svg%3E");
    border: 1px solid color-mix(in srgb, var(--theme-primary) 12%, transparent);
    box-shadow: 0 18px 50px rgba(61, 43, 40, 0.06);
}

.learn-hero__heading {
    margin: 0;
    line-height: 1.05;
}

.learn-hero__accent {
    display: block;
    font-family: "Fraunces", Georgia, "Times New Roman", serif;
    font-size: clamp(2.65rem, 7vw, 4rem);
    font-weight: 700;
    font-variation-settings: "opsz" 72;
    color: color-mix(in srgb, var(--theme-primary) 88%, #4a1520);
    letter-spacing: -0.03em;
    margin-bottom: 0.2rem;
}

html[dir="rtl"] .learn-hero__accent {
    font-family: var(--font-family), "Tajawal", "Cairo", sans-serif;
    font-weight: 800;
    letter-spacing: 0;
}

.learn-hero__title-line {
    display: block;
    font-family: var(--font-family), system-ui, sans-serif;
    font-size: clamp(1.15rem, 2.4vw, 1.45rem);
    font-weight: 800;
    color: var(--theme-primary);
    letter-spacing: -0.02em;
}

.learn-hero__lead {
    font-size: clamp(0.98rem, 1.9vw, 1.08rem);
    line-height: 1.75;
    max-width: 38rem;
    margin-inline: auto;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (min-width: 992px) {
    .learn-hero__lead {
        margin-inline: 0;
    }
}

.learn-hero__btn {
    font-weight: 700;
    font-size: 0.92rem;
    padding: 0.55rem 1.35rem;
    border-width: 2px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.learn-hero__btn--outline {
    color: color-mix(in srgb, var(--theme-primary) 92%, #3d0810);
    border-color: color-mix(in srgb, var(--theme-primary) 65%, #c95b76);
    background: #fff;
}

.learn-hero__btn--outline:hover {
    color: color-mix(in srgb, var(--theme-primary) 88%, #3d0810);
    background: color-mix(in srgb, var(--theme-primary) 6%, white);
    border-color: color-mix(in srgb, var(--theme-primary) 75%, #c95b76);
    transform: translateY(-1px);
}

.learn-hero__btn--solid {
    color: #fff;
    background: #6d7d8c;
    border-color: #6d7d8c;
}

.learn-hero__btn--solid:hover {
    color: #fff;
    background: #5d6b78;
    border-color: #5d6b78;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(61, 43, 40, 0.15);
}

.learn-hero__cert-link {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--theme-secondary) !important;
}

.learn-hero__cert-link:hover {
    color: color-mix(in srgb, var(--theme-secondary) 80%, black) !important;
}

.learn-hero__visual {
    position: relative;
    max-width: min(760px, 100%);
    margin-inline: auto;
    overflow: visible;
}

/* Two flex rows × two slots: equal halves, min-width:0 + flex-basis 0 prevents image column bleed. */
.learn-hero__mosaic-stack {
    direction: ltr;
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: clamp(0.85rem, 2.2vw, 1.35rem);
    overflow: visible;
}

.learn-hero__pair {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    width: 100%;
    gap: clamp(0.85rem, 2.2vw, 1.35rem);
    box-sizing: border-box;
}

.learn-hero__pair--bottom .learn-hero__slot {
    flex: 1 1 0;
    width: 0;
    max-width: 50%;
}

.learn-hero__slot {
    flex: 1 1 0;
    min-width: 0;
    width: 0;
    max-width: 50%;
    box-sizing: border-box;
    position: relative;
}

.learn-hero__frame {
    margin: 0;
    width: 100%;
    max-width: 100%;
    position: static;
}

.learn-hero__frame-inner {
    position: relative;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 4 / 5;
    max-height: min(320px, 42vw);
    margin-inline: auto;
    border-radius: clamp(1.1rem, 2.8vw, 1.85rem);
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.98);
    box-shadow:
        0 4px 0 rgba(201, 91, 118, 0.07),
        0 18px 40px rgba(61, 43, 40, 0.18),
        0 0 0 1px rgba(201, 91, 118, 0.12) inset;
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.35) 0%, transparent 42%);
}

/* Softer shadow in top row so blur doesn’t read as overlap */
.learn-hero__pair--top .learn-hero__frame-inner {
    box-shadow:
        0 3px 0 rgba(201, 91, 118, 0.06),
        0 10px 28px rgba(61, 43, 40, 0.12),
        0 0 0 1px rgba(201, 91, 118, 0.1) inset;
}

.learn-hero__frame-img {
    display: block;
    width: 100%;
    height: 100%;
    min-width: 0;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    animation-name: islamic-hero-photo-fade, islamic-hero-photo-breathe;
    animation-duration: 0.85s, 16s;
    animation-timing-function: ease-out, ease-in-out;
    animation-delay: 0s, 0.85s;
    animation-iteration-count: 1, infinite;
    animation-fill-mode: forwards, none;
    transform-origin: center center;
}

.learn-hero__fab {
    position: absolute;
    top: 0.65rem;
    inset-inline-end: 0.65rem;
    z-index: 2;
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(145deg, #e0b456, var(--theme-secondary));
    box-shadow:
        0 3px 12px rgba(192, 145, 68, 0.45),
        0 0 0 2px rgba(255, 255, 255, 0.35);
    pointer-events: none;
}

html[dir="rtl"] .learn-hero__fab-icon {
    transform: scaleX(-1);
}

.learn-hero__app-mock {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0.55rem 0.65rem 0.7rem;
    border-radius: clamp(1.1rem, 2.8vw, 1.85rem);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 36px rgba(61, 43, 40, 0.12);
    border: 1px solid rgba(61, 43, 40, 0.06);
    box-sizing: border-box;
    overflow: auto;
    overflow-x: hidden;
    max-height: min(360px, 48vw);
}

.learn-hero__app-search {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.65rem;
    font-weight: 600;
    color: #8a7d78;
    padding: 0.28rem 0.45rem;
    border-radius: 0.5rem;
    background: #f3eeea;
    margin-bottom: 0.45rem;
}

.learn-hero__app-head {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.25rem;
    font-size: 0.52rem;
    font-weight: 700;
    color: #6d5c56;
    margin-bottom: 0.35rem;
    text-align: center;
    line-height: 1.25;
}

.learn-hero__app-rows {
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
}

.learn-hero__app-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.25rem;
    align-items: center;
}

.learn-hero__app-row span {
    height: 0.55rem;
    border-radius: 0.2rem;
    background: linear-gradient(90deg, #e8e2dc, #f2ebe5);
}

.learn-hero__app-row span:first-child {
    height: 1.1rem;
    max-width: 1.1rem;
    margin-inline: auto;
    border-radius: 0.25rem;
}

/* Profile thumb in mock table: full image visible inside the cell */
.learn-hero__app-row span:first-child:has(> img) {
    height: 2.25rem;
    width: 2.25rem;
    max-width: min(2.25rem, 100%);
    padding: 2px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8e2dc;
    overflow: hidden;
}

.learn-hero__app-row span:first-child > img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

@media (min-width: 992px) {
    .learn-hero__frame-inner {
        max-height: min(360px, 22vw);
    }
}

@media (max-width: 575.98px) {
    .learn-hero__visual {
        max-width: 100%;
    }

    .learn-hero__mosaic-stack,
    .learn-hero__pair {
        gap: 0.65rem;
    }

    /* Stack photo + app vertically — zero horizontal overlap on small screens */
    .learn-hero__pair--top {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0.75rem;
    }

    .learn-hero__pair--top .learn-hero__slot {
        flex: 1 1 auto !important;
        max-width: 100% !important;
        width: 100% !important;
        transform: none !important;
    }

    .learn-hero__pair--top .learn-hero__slot:last-child {
        margin-top: 0;
    }

    .learn-hero__frame-inner {
        max-height: min(200px, 38vw);
    }

    .learn-hero__pair--top .learn-hero__frame-inner {
        box-shadow:
            0 4px 0 rgba(201, 91, 118, 0.07),
            0 18px 40px rgba(61, 43, 40, 0.18),
            0 0 0 1px rgba(201, 91, 118, 0.12) inset;
    }

    .learn-hero__app-mock {
        padding: 0.45rem 0.5rem 0.55rem;
    }
}

.learn-space__section-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--theme-primary);
    margin-bottom: 1rem;
}

.learn-course-card {
    border-radius: 20px !important;
    box-shadow: 0 12px 36px rgba(61, 43, 40, 0.08) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.learn-course-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 48px rgba(61, 43, 40, 0.12) !important;
}

.learn-course-card__media {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(145deg, #e8dfd6, #d4c4b8);
}

.learn-course-card__img {
    height: 100%;
    object-fit: cover;
    display: block;
}

.learn-course-card__badges {
    position: absolute;
    inset-inline-start: 12px;
    top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.learn-pill {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.learn-pill--category {
    background: color-mix(in srgb, var(--theme-primary) 92%, transparent);
    color: #fff;
    backdrop-filter: blur(6px);
}

.learn-pill--level {
    background: rgba(255, 255, 255, 0.92);
    color: var(--theme-primary);
}

.learn-path-card,
.learn-semester-card {
    border-radius: 18px !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.learn-path-card:hover,
.learn-semester-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(61, 43, 40, 0.1) !important;
}

.learn-path-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    background: color-mix(in srgb, var(--theme-secondary) 35%, white);
    color: var(--theme-primary);
}

.learn-course-hero {
    border-radius: 24px !important;
    box-shadow: 0 16px 48px rgba(61, 43, 40, 0.1) !important;
}

.learn-course-hero__cover {
    min-height: 220px;
    height: 100%;
}

.learn-course-hero__cover img {
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
    display: block;
}

.learn-course-hero__body {
    background: linear-gradient(135deg, #fff 0%, #faf7f2 100%);
}

.learn-course-hero__title {
    color: var(--theme-primary);
}

.learn-progress-card,
.learn-section-card,
.learn-reviews-card {
    border-radius: 18px !important;
}

.learn-section-card__head {
    background: linear-gradient(90deg, color-mix(in srgb, var(--theme-primary) 8%, white), transparent);
    border-bottom: 1px solid rgba(61, 43, 40, 0.06) !important;
}

.learn-lesson-list__item {
    transition: background 0.2s ease, padding-inline-start 0.2s ease;
}

.learn-lesson-list__item:hover {
    background: color-mix(in srgb, var(--theme-secondary) 6%, white) !important;
}

.learn-type-badge {
    background: color-mix(in srgb, var(--theme-secondary) 22%, white) !important;
    color: var(--theme-primary) !important;
    font-weight: 600;
}

.learn-complete-banner {
    border-radius: 20px !important;
    background: linear-gradient(180deg, #fff, color-mix(in srgb, var(--theme-secondary) 12%, white));
}

.learn-star {
    color: #ddd;
    font-size: 22px;
}

.learn-star--on {
    color: var(--theme-secondary);
}

.learn-review-form {
    border-radius: 16px !important;
}

/* —— Motion (respect reduced motion) —— */
@media (prefers-reduced-motion: no-preference) {
    @keyframes learnFadeUp {
        from {
            opacity: 0;
            transform: translateY(18px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @keyframes learnSoftPulse {
        0%,
        100% {
            box-shadow: 0 0 0 0 color-mix(in srgb, var(--theme-primary) 35%, transparent);
        }
        50% {
            box-shadow: 0 0 0 10px transparent;
        }
    }

    .anim-fade-up {
        animation: learnFadeUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
    }

    .anim-delay-1 {
        animation-delay: 0.08s;
    }

    .anim-delay-2 {
        animation-delay: 0.16s;
    }

    .anim-delay-3 {
        animation-delay: 0.24s;
    }

    .learn-course-grid .learn-course-card {
        animation: learnFadeUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
        animation-delay: calc(0.06s * min(var(--stagger, 0), 8));
    }

    .btn-learn-cert:hover {
        animation: learnSoftPulse 1.6s ease-out infinite;
    }
}

@media (prefers-reduced-motion: reduce) {
    .anim-fade-up,
    .learn-course-grid .learn-course-card {
        animation: none !important;
    }

    .hero-islamic__photo-img,
    .learn-hero__frame-img {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* —— Public header: subtle bar + shadow (colors from theme) —— */
.navbar-gold-accent {
    border-bottom: var(--client-border-soft, 1px solid rgba(15, 23, 42, 0.08)) !important;
    box-shadow: var(--client-shadow-sm, 0 4px 22px rgba(15, 23, 42, 0.06)) !important;
}

/* —— Newsletter + layered footer (reference: gold floating band over maroon) —— */
.site-footer-stack {
    margin-top: 4rem;
}

.site-footer-stack__newsletter {
    position: relative;
    z-index: 2;
}

/* Solid “gold band” — no gradient (matches pre-redesign newsletter) */
.newsletter-float {
    margin-bottom: -3.25rem;
    padding: 1.75rem 1.85rem;
    border-radius: 18px;
    color: #fff;
    background-color: color-mix(in srgb, var(--theme-secondary) 92%, #8b6914);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cpath fill='none' stroke='%23ffffff' stroke-opacity='0.14' stroke-width='0.75' d='M24 2 L28 16 L42 16 L31 24 L36 40 L24 32 L12 40 L17 24 L6 16 L20 16 Z'/%3E%3C/svg%3E");
    box-shadow: 0 18px 40px rgba(61, 43, 40, 0.2);
}

.newsletter-float__title {
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.3;
}

.newsletter-float__lead {
    font-size: 0.98rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.92);
}

.newsletter-float__form {
    width: 100%;
}

.newsletter-float__field {
    display: flex;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 0;
    background: #fff;
    border-radius: 999px;
    padding: 5px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.newsletter-float__input {
    flex: 1 1 auto;
    min-width: 0;
    border: none !important;
    border-radius: 999px !important;
    padding: 0.65rem 1rem !important;
    font-size: 0.95rem;
    box-shadow: none !important;
}

.newsletter-float__input:focus {
    box-shadow: none !important;
}

.newsletter-float__btn {
    flex-shrink: 0;
    border-radius: 999px !important;
    padding: 0.65rem 1.35rem !important;
    font-weight: 700;
    font-size: 0.9rem;
    background: color-mix(in srgb, var(--theme-secondary) 88%, #6b4a0a) !important;
    background-image: none !important;
    color: #fff !important;
    border: none !important;
    box-shadow: none;
}

.newsletter-float__btn:hover {
    color: #fff !important;
    filter: brightness(1.06);
}

@media (max-width: 575.98px) {
    .newsletter-float__field {
        flex-direction: column;
        border-radius: 16px;
        gap: 8px;
    }

    .newsletter-float__input,
    .newsletter-float__btn {
        border-radius: 12px !important;
        width: 100%;
    }
}

.footer-islamic--layered {
    position: relative;
    z-index: 1;
    padding-top: 5rem !important;
    margin-top: 0 !important;
}

.footer-subbar {
    margin-top: 2rem;
    padding: 1rem 0 1.35rem;
    background: color-mix(in srgb, var(--theme-primary) 78%, black);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-subbar__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1.25rem;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.82);
}

.footer-subbar__inner--single {
    justify-content: center;
    text-align: center;
}

.footer-subbar__email,
.footer-subbar__patron {
    display: inline;
    padding: 0;
    color: rgba(255, 255, 255, 0.92) !important;
}

.footer-subbar__email:hover,
.footer-subbar__patron:hover {
    color: var(--theme-secondary) !important;
}

.footer-subbar__copy {
    color: rgba(255, 255, 255, 0.78);
}

.footer-subbar__visitors {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    color: rgba(255, 255, 255, 0.92);
    white-space: nowrap;
}

.footer-subbar__visitors-count {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #fff;
}

.footer-subbar__visitors-label {
    color: rgba(255, 255, 255, 0.78);
}

/* —— Storefront “latest courses” band (mustard / gold section) —— */
.client-band--gold {
    background: linear-gradient(
        180deg,
        color-mix(in srgb, var(--theme-secondary, var(--theme-primary)) 88%, #2a2010) 0%,
        color-mix(in srgb, var(--theme-secondary, var(--theme-primary)) 72%, #0f0c08) 100%
    ) !important;
    color: #fff;
}

.client-band--gold .client-section__title {
    color: #fff !important;
}

.client-band--gold .client-section__subtitle {
    color: rgba(255, 255, 255, 0.9) !important;
}

.client-band--gold .btn-outline-primary {
    border-color: #fff !important;
    color: #fff !important;
    background: rgba(255, 255, 255, 0.12) !important;
}

.client-band--gold .btn-outline-primary:hover {
    background-image: var(--client-gradient-warm, linear-gradient(90deg, var(--theme-primary), var(--theme-primary))) !important;
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.45) !important;
    filter: brightness(1.05);
}

body.client-ui .client-band--gold .catalog-card-modern {
    border: 2px solid color-mix(in srgb, var(--theme-primary) 85%, transparent) !important;
    box-shadow: 0 12px 32px rgba(40, 20, 18, 0.18) !important;
}

/* —— Featured courses showcase (maroon band + horizontal cards) —— */
.featured-courses-showcase {
    background: var(--theme-primary);
    color: #fff;
}

.featured-courses-showcase__title {
    font-size: clamp(1.5rem, 3.5vw, 2.1rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.25;
}

.featured-courses-showcase__lead {
    font-size: 1rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.9);
    max-width: 28rem;
    margin-inline: 0;
}

html[dir="rtl"] .featured-courses-showcase__lead {
    margin-inline-start: auto;
    margin-inline-end: 0;
}

html[dir="ltr"] .featured-courses-showcase__lead {
    margin-inline-start: 0;
    margin-inline-end: auto;
}

@media (max-width: 991.98px) {
    .featured-courses-showcase__lead {
        margin-inline: auto !important;
        text-align: center;
    }
}

.featured-courses-showcase__cta {
    border-width: 2px !important;
}

/* —— Swiper carousels (storefront) —— */
.lms-swiper-root {
    position: relative;
    padding: 0.25rem 0 0.5rem;
}

/* Default viewport (fallback) */
.lms-swiper__viewport {
    position: relative;
}

/* Side-by-side rail: prev | track | next — avoids RTL/absolute overlap bugs */
.lms-swiper__viewport--rail {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    padding-inline: 0;
}

.lms-swiper__rail-track {
    flex: 1 1 0;
    min-width: 0;
    position: relative;
}

.lms-swiper__viewport--rail .swiper-button-prev,
.lms-swiper__viewport--rail .swiper-button-next {
    position: static !important;
    margin: 0 !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    inset: auto !important;
    flex-shrink: 0;
}

@media (max-width: 575.98px) {
    .lms-swiper__viewport--rail {
        gap: 0.35rem;
    }
}

.lms-swiper.lms-swiper--featured,
.lms-swiper.lms-swiper--upcoming,
.lms-swiper.lms-swiper--instructors {
    overflow: hidden;
    border-radius: 16px;
}

.lms-swiper .swiper-wrapper {
    display: flex;
    align-items: stretch;
    box-sizing: content-box;
}

/* Course slides: Swiper sets slide width inline; min-width:0 avoids flex overflow bugs */
.lms-swiper-root--featured .lms-swiper__slide--course,
.lms-swiper-root--upcoming .lms-swiper__slide--course {
    height: auto;
    box-sizing: border-box;
    display: flex;
    min-width: 0;
}

.lms-swiper__slide--course .featured-course-card {
    width: 100%;
    min-width: 0;
}

/* Compact course cards (3 per row on lg) */
.lms-swiper-root--featured .featured-course-card,
.lms-swiper-root--upcoming .featured-course-card {
    border-radius: 12px;
    border-width: 1.5px;
}

/* Fixed-height media: aspect-ratio + max-height made the box shrink in width (tiny thumbnail + empty space). */
.lms-swiper-root--featured .featured-course-card__media-link,
.lms-swiper-root--upcoming .featured-course-card__media-link {
    display: block;
    width: 100%;
    min-width: 0;
}

.lms-swiper-root--featured .featured-course-card__media,
.lms-swiper-root--upcoming .featured-course-card__media {
    width: 100%;
    height: clamp(104px, 28vw, 132px);
    position: relative;
    overflow: hidden;
}

.lms-swiper-root--featured .featured-course-card__img,
.lms-swiper-root--upcoming .featured-course-card__img {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lms-swiper-root--featured .featured-course-card__body,
.lms-swiper-root--upcoming .featured-course-card__body {
    padding: 0.5rem 0.6rem 0.55rem;
}

.lms-swiper-root--featured .featured-course-card__title,
.lms-swiper-root--upcoming .featured-course-card__title {
    font-size: 0.76rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.lms-swiper-root--featured .featured-course-card__instructor,
.lms-swiper-root--upcoming .featured-course-card__instructor {
    font-size: 0.68rem;
    line-height: 1.25;
}

.lms-swiper-root--featured .featured-course-card__actions,
.lms-swiper-root--upcoming .featured-course-card__actions {
    padding-top: 0.4rem !important;
    margin-top: 0.4rem !important;
}

.lms-swiper-root--featured .featured-course-card__btn,
.lms-swiper-root--upcoming .featured-course-card__btn {
    font-size: 0.65rem !important;
    font-weight: 600;
    padding: 0.3rem 0.45rem !important;
    border-radius: 999px !important;
}

.lms-swiper__slide--instructor {
    width: 152px;
    box-sizing: border-box;
}

.lms-swiper__slide--instructor .instructor-card {
    padding: 0 0.25rem;
}

.lms-swiper__arrow {
    width: 36px !important;
    height: 36px !important;
    margin-top: 0 !important;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    color: var(--theme-primary) !important;
    transition: box-shadow 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.lms-swiper__arrow::after {
    font-size: 0.8rem !important;
    font-weight: 800 !important;
}

.lms-swiper-root--instructors .lms-swiper__arrow {
    width: 42px !important;
    height: 42px !important;
}

.lms-swiper-root--instructors .lms-swiper__arrow::after {
    font-size: 0.9rem !important;
}

.lms-swiper__arrow:hover {
    background: #fff !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

.lms-swiper__arrow.swiper-button-disabled {
    opacity: 0.35 !important;
    pointer-events: none;
}

.lms-swiper-root--featured .lms-swiper__arrow {
    background: rgba(255, 255, 255, 0.18) !important;
    border: 2px solid rgba(255, 255, 255, 0.55);
    color: #fff !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(8px);
}

.lms-swiper-root--featured .lms-swiper__arrow::after {
    color: #fff !important;
}

.lms-swiper-root--featured .lms-swiper__arrow:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    border-color: rgba(255, 255, 255, 0.85);
}

.lms-swiper__pagination--featured .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.45);
    opacity: 1;
}

.lms-swiper__pagination--featured .swiper-pagination-bullet-active {
    background: #fff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
}

.lms-swiper__pagination--upcoming .swiper-pagination-bullet,
.lms-swiper__pagination--instructors .swiper-pagination-bullet {
    background: color-mix(in srgb, var(--theme-primary) 35%, #ccc);
    opacity: 1;
}

.lms-swiper__pagination--upcoming .swiper-pagination-bullet-active,
.lms-swiper__pagination--instructors .swiper-pagination-bullet-active {
    background: var(--theme-primary);
}

.lms-swiper__pagination {
    position: relative !important;
    margin-top: 0.5rem !important;
    inset: auto !important;
}

.lms-swiper-root--featured .lms-swiper__pagination {
    text-align: center;
}

.featured-course-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 14px 36px rgba(30, 10, 8, 0.25);
    display: flex;
    flex-direction: column;
}

.upcoming-courses-section .featured-course-card {
    border: 2px solid color-mix(in srgb, var(--theme-primary) 35%, rgba(0, 0, 0, 0.06));
    box-shadow: 0 10px 28px rgba(61, 43, 40, 0.08);
}

.featured-course-card__media {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(145deg, #e8dfd6, #d4c4b8);
}

.featured-course-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.featured-course-card__body {
    padding: 1rem 1.1rem 1.15rem;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.featured-course-card__title {
    font-size: 0.98rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.35;
    margin-bottom: 0.35rem;
}

.featured-course-card__instructor {
    font-size: 0.84rem;
    color: #4b5563;
}

.featured-course-card__actions {
    border-color: rgba(61, 43, 40, 0.1) !important;
    margin-top: auto !important;
}

.featured-course-card__btn {
    background-image: var(--client-gradient-warm, linear-gradient(90deg, var(--theme-primary), var(--theme-primary))) !important;
    background-color: transparent !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    border-radius: 999px !important;
    font-weight: 600;
    font-size: 0.82rem;
    box-shadow: 0 3px 12px color-mix(in srgb, var(--theme-primary) 22%, transparent);
}

.featured-course-card__btn:hover {
    filter: brightness(1.08);
    color: #fff !important;
}

/* —— Upcoming courses (light section) —— */
.upcoming-courses-section {
    background: #fff;
}

.upcoming-courses-section__title {
    color: var(--theme-primary) !important;
}

.upcoming-courses-section__subtitle {
    max-width: 40rem;
}

/* —— Instructors —— */
.instructors-section {
    background: #fff;
}

.instructors-section__title {
    color: var(--theme-primary) !important;
}

.instructors-section__subtitle {
    max-width: 42rem;
    margin-inline: auto;
}

.instructor-card__avatar {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    margin: 0 auto 0.85rem;
    box-shadow: 0 10px 28px rgba(122, 29, 22, 0.2);
    border: 3px solid rgba(255, 255, 255, 0.95);
    overflow: hidden;
}

.instructor-card__avatar--initials {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(
        145deg,
        color-mix(in srgb, var(--theme-secondary) 90%, #fff),
        color-mix(in srgb, var(--theme-primary) 55%, var(--theme-secondary))
    );
}

.instructor-card__avatar--photo {
    padding: 0;
    background: #e8dfd6;
}

.instructor-card__avatar-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.instructor-card__name {
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--theme-primary);
    line-height: 1.3;
}

.instructor-card__role {
    font-size: 0.78rem;
    color: #6c757d;
    margin-top: 0.25rem;
    line-height: 1.4;
}

.instructors-section__cta {
    background: var(--theme-primary) !important;
    color: #fff !important;
    border: none !important;
    font-weight: 700;
}

.instructors-section__cta:hover {
    color: #fff !important;
    filter: brightness(1.06);
}

a.instructor-card--link {
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 1rem;
    padding: 0.5rem 0.25rem 0.75rem;
}

a.instructor-card--link:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(61, 43, 40, 0.1);
}

.instructor-profile-hero {
    background: var(--client-gradient-warm-soft);
    border-radius: var(--client-radius-xl);
    border: var(--client-border-soft);
    box-shadow: var(--client-shadow-sm);
}

.instructor-profile-hero__avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    margin-inline: auto;
    box-shadow: 0 12px 32px rgba(122, 29, 22, 0.18);
    border: 4px solid rgba(255, 255, 255, 0.95);
    overflow: hidden;
}

.instructor-profile-hero__avatar--initials {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(
        145deg,
        color-mix(in srgb, var(--theme-secondary) 90%, #fff),
        color-mix(in srgb, var(--theme-primary) 55%, var(--theme-secondary))
    );
}

.instructor-profile-hero__avatar--photo {
    padding: 0;
    background: #e8dfd6;
}

.instructor-profile-hero__avatar-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.instructor-directory-card {
    border-radius: var(--client-radius-lg);
    border: var(--client-border-soft);
    box-shadow: var(--client-shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

a.instructor-directory-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--client-shadow-md);
}

/* —— Educational path / track cards —— */
.paths-tracks-section {
    background: linear-gradient(180deg, #ffffff 0%, #faf7f2 55%, #f5f0ea 100%);
}

.paths-tracks-section__title {
    color: var(--theme-primary) !important;
}

.paths-tracks-section__subtitle {
    max-width: 40rem;
    margin-inline: auto;
}

.path-track-card {
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 32px rgba(61, 43, 40, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    color: inherit;
}

.path-track-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(61, 43, 40, 0.12);
}

.path-track-card__banner {
    position: relative;
    border: 2px solid var(--theme-primary);
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    background: color-mix(in srgb, var(--theme-primary) 6%, white);
    min-height: 140px;
}

.path-track-card__logo {
    position: absolute;
    top: 10px;
    z-index: 2;
    inset-inline-start: 10px;
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.12));
}

.path-track-card__cover {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.path-track-card__body {
    padding: 1.15rem 1.2rem 1.25rem;
    border: 2px solid var(--theme-primary);
    border-top: none;
    border-radius: 0 0 12px 12px;
    background: #fff;
}

.path-track-card__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--theme-secondary);
    margin-bottom: 0.4rem;
    line-height: 1.35;
}

.path-track-card__desc {
    font-size: 0.86rem;
    color: #5c4e4a;
    line-height: 1.6;
}

.paths-tracks-section__view-all {
    border-color: color-mix(in srgb, var(--theme-primary) 35%, #ccc) !important;
    color: var(--theme-primary) !important;
    font-weight: 600;
}

.paths-tracks-section__view-all:hover {
    background: var(--theme-primary) !important;
    color: #fff !important;
}
