/* ==========================================================================
   Saiful Academy frontend theme
   Loaded after styles.css and custom_style.css.

   1. Tokens          6. Hero              11. Reviews
   2. Base            7. Sections          12. FAQ
   3. Buttons         8. Categories        13. Call to action
   4. Header          9. Courses           14. Page head and filters
   5. Mobile drawer  10. Stats             15. Footer
                                           16. WhatsApp and bottom bar
   Sizes are in px because the base template sets html { font-size: 10px }.
   ========================================================================== */

/* 1. Tokens
   ========================================================================== */
:root {
    --sa-primary: #6777ef;
    --sa-primary-strong: #5464e6;
    --sa-primary-dark: #3f4dc4;
    --sa-primary-soft: #eef0ff;
    --sa-accent: #ffb020;
    --sa-whatsapp: #1fa855;
    --sa-ink: #1b2140;
    --sa-text: #586080;
    --sa-muted: #8a91ab;
    --sa-border: #e4e7f6;
    --sa-tint: #f5f6ff;
    --sa-white: #ffffff;
    --sa-radius: 16px;
    --sa-radius-sm: 10px;
    --sa-shadow: 0 10px 30px rgba(63, 77, 196, 0.10);
    --sa-shadow-sm: 0 2px 10px rgba(27, 33, 64, 0.06);
    --sa-font: "Hind Siliguri", "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
    --sa-header-height: 72px;
    --sa-bottom-nav-height: 64px;

    /* Re-colour the base template so its pages match the theme. */
    --color-primary: #6777ef;
    --color-secondary: #8b5cf6;
    --font-primary: var(--sa-font);
    --font-secondary: var(--sa-font);
}

/* 2. Base
   ========================================================================== */
.sa-body {
    font-family: var(--sa-font);
    color: var(--sa-text);
    background: var(--sa-white);
}

.sa-main {
    min-height: 50vh;
}

.sa-skip-link {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 1100;
    padding: 10px 16px;
    border-radius: var(--sa-radius-sm);
    background: var(--sa-ink);
    color: var(--sa-white);
    font-size: 15px;
}

.sa-skip-link:focus {
    top: 12px;
    color: var(--sa-white);
}

.sa-body a:focus-visible,
.sa-body button:focus-visible {
    outline: 3px solid var(--sa-accent);
    outline-offset: 2px;
}

.sa-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--sa-primary-strong);
    font-size: 16px;
    font-weight: 600;
}

.sa-link:hover {
    color: var(--sa-primary-dark);
}

.sa-link i {
    transition: transform 0.2s ease;
}

.sa-link:hover i {
    transform: translateX(4px);
}

.sa-empty {
    margin: 0;
    padding: 48px 20px;
    border: 1px dashed var(--sa-border);
    border-radius: var(--sa-radius);
    background: var(--sa-tint);
    color: var(--sa-text);
    font-size: 17px;
    text-align: center;
}

/* Soft colour pairs used by category tiles and feature cards. */
.sa-tone-1 { --sa-tone: #6777ef; --sa-tone-soft: #eef0ff; }
.sa-tone-2 { --sa-tone: #f0704f; --sa-tone-soft: #fff0ec; }
.sa-tone-3 { --sa-tone: #1fa37a; --sa-tone-soft: #e7f8f2; }
.sa-tone-4 { --sa-tone: #d9891a; --sa-tone-soft: #fff5e2; }
.sa-tone-5 { --sa-tone: #c0569b; --sa-tone-soft: #fdeef7; }
.sa-tone-6 { --sa-tone: #2f8fd0; --sa-tone-soft: #e8f4fd; }

/* 3. Buttons
   ========================================================================== */
.sa-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 20px;
    border: 2px solid transparent;
    border-radius: 999px;
    font-family: var(--sa-font);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.sa-btn:hover {
    transform: translateY(-1px);
}

.sa-btn--sm {
    min-height: 40px;
    padding: 0 16px;
    font-size: 15px;
}

.sa-btn--lg {
    min-height: 52px;
    padding: 0 28px;
    font-size: 17px;
}

.sa-btn--primary {
    background: var(--sa-primary-strong);
    color: var(--sa-white);
    box-shadow: 0 6px 16px rgba(84, 100, 230, 0.28);
}

.sa-btn--primary:hover {
    background: var(--sa-primary-dark);
    color: var(--sa-white);
}

.sa-btn--ghost {
    border-color: var(--sa-border);
    background: var(--sa-white);
    color: var(--sa-ink);
}

.sa-btn--ghost:hover {
    border-color: var(--sa-primary);
    color: var(--sa-primary-dark);
}

.sa-btn--outline {
    border-color: var(--sa-primary-strong);
    background: var(--sa-white);
    color: var(--sa-primary-dark);
}

.sa-btn--outline:hover {
    background: var(--sa-primary-strong);
    color: var(--sa-white);
}

.sa-btn--light {
    background: var(--sa-white);
    color: var(--sa-primary-dark);
}

.sa-btn--light:hover {
    background: var(--sa-accent);
    color: var(--sa-ink);
}

.sa-btn--outline-light {
    border-color: rgba(255, 255, 255, 0.6);
    background: transparent;
    color: var(--sa-white);
}

.sa-btn--outline-light:hover {
    border-color: var(--sa-white);
    background: var(--sa-white);
    color: var(--sa-primary-dark);
}

/* 4. Header
   ========================================================================== */
.sa-topbar {
    background: var(--sa-ink);
    color: #d5d9ee;
    font-size: 14px;
}

.sa-topbar__inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    min-height: 38px;
}

.sa-topbar ul {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sa-topbar li {
    margin: 0;
}

.sa-topbar a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #d5d9ee;
    font-size: 14px;
}

.sa-topbar a:hover {
    color: var(--sa-white);
}

.sa-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--sa-white);
    border-bottom: 1px solid var(--sa-border);
    transition: box-shadow 0.2s ease;
}

.sa-header.is-stuck {
    box-shadow: var(--sa-shadow-sm);
}

.sa-header__inner {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: var(--sa-header-height);
}

.sa-logo {
    display: inline-flex;
    flex-shrink: 0;
}

.sa-logo img {
    width: auto;
    max-width: 180px;
    max-height: 48px;
    border-radius: 6px;
    object-fit: contain;
}

.sa-nav {
    flex: 1;
    min-width: 0;
}

.sa-nav__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sa-nav__list li {
    margin: 0;
}

.sa-nav__list a {
    display: block;
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--sa-ink);
    font-size: 16px;
    font-weight: 500;
}

.sa-nav__list a:hover,
.sa-nav__list a.is-active {
    background: var(--sa-primary-soft);
    color: var(--sa-primary-dark);
}

.sa-header__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.sa-menu-toggle,
.sa-drawer__close {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--sa-border);
    border-radius: 12px;
    background: var(--sa-white);
    color: var(--sa-ink);
    font-size: 20px;
}

.sa-user__toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    max-width: 220px;
    padding: 0 16px;
    border: 1px solid var(--sa-border);
    border-radius: 999px;
    background: var(--sa-white);
    color: var(--sa-ink);
    font-family: var(--sa-font);
    font-size: 15px;
    font-weight: 600;
}

.sa-user__name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sa-user__menu {
    min-width: 200px;
    margin-top: 8px !important;
    padding: 8px;
    border: 1px solid var(--sa-border);
    border-radius: var(--sa-radius-sm);
    box-shadow: var(--sa-shadow);
}

.sa-user__menu li {
    margin: 0;
}

.sa-user__menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--sa-ink);
    font-size: 15px;
}

.sa-user__menu .dropdown-item:hover {
    background: var(--sa-primary-soft);
    color: var(--sa-primary-dark);
}

/* 5. Mobile drawer
   ========================================================================== */
.sa-drawer {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1060;
    display: flex;
    flex-direction: column;
    width: min(320px, 86vw);
    height: 100%;
    background: var(--sa-white);
    box-shadow: var(--sa-shadow);
    transform: translateX(-105%);
    visibility: hidden;
    transition: transform 0.25s ease, visibility 0.25s ease;
    overflow-y: auto;
}

.sa-drawer.is-open {
    transform: translateX(0);
    visibility: visible;
}

.sa-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--sa-border);
}

.sa-drawer__close {
    display: inline-flex;
}

.sa-drawer__list {
    margin: 0;
    padding: 12px;
    list-style: none;
}

.sa-drawer__list li {
    margin: 0;
}

.sa-drawer__list a {
    display: block;
    padding: 13px 14px;
    border-radius: var(--sa-radius-sm);
    color: var(--sa-ink);
    font-size: 17px;
    font-weight: 500;
}

.sa-drawer__list a:hover {
    background: var(--sa-primary-soft);
    color: var(--sa-primary-dark);
}

.sa-drawer__foot {
    display: grid;
    gap: 10px;
    margin-top: auto;
    padding: 20px;
    border-top: 1px solid var(--sa-border);
}

.sa-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1050;
    background: rgba(27, 33, 64, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.sa-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

.sa-no-scroll {
    overflow: hidden !important;
}

.sa-social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 6px 0 0;
    padding: 0;
    list-style: none;
}

.sa-social li {
    margin: 0;
}

.sa-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--sa-primary-soft);
    color: var(--sa-primary-dark);
    font-size: 17px;
}

.sa-social a:hover {
    background: var(--sa-primary-strong);
    color: var(--sa-white);
}

.sa-social--light a {
    background: rgba(255, 255, 255, 0.1);
    color: var(--sa-white);
}

/* 6. Hero (headline with a wide slider below)
   ========================================================================== */
.sa-hero {
    padding: 36px 0 48px;
    background: var(--sa-tint);
}

.sa-hero__title {
    margin: 0 0 28px;
    color: var(--sa-ink);
    font-family: var(--sa-font);
    font-size: clamp(26px, 3.6vw, 44px);
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
}

.sa-hero__carousel {
    border-radius: var(--sa-radius);
    background: var(--sa-primary-soft);
    box-shadow: var(--sa-shadow);
    overflow: hidden;
}

/* Slides are uploaded at 1920 x 780; older images are centre-cropped to match. */
.sa-hero__carousel .carousel-item img {
    aspect-ratio: 1920 / 780;
    height: auto;
    border-radius: 0;
    object-fit: cover;
}

.sa-hero__carousel .carousel-indicators {
    margin-bottom: 12px;
}

.sa-hero__carousel .carousel-indicators button {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 50%;
}

.sa-hero__carousel .carousel-control-prev,
.sa-hero__carousel .carousel-control-next {
    top: 50%;
    bottom: auto;
    width: 46px;
    height: 46px;
    margin: 0 18px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--sa-shadow-sm);
    opacity: 1;
    transform: translateY(-50%);
}

.sa-hero__carousel .carousel-control-prev:hover,
.sa-hero__carousel .carousel-control-next:hover {
    background: var(--sa-white);
}

.sa-hero__carousel .carousel-control-prev-icon,
.sa-hero__carousel .carousel-control-next-icon {
    width: 20px;
    height: 20px;
    filter: invert(1);
}

/* 7. Sections
   ========================================================================== */
.sa-section {
    padding: 64px 0;
}

.sa-section--tint {
    background: var(--sa-tint);
}

.sa-section__head {
    max-width: 720px;
    margin: 0 auto 36px;
    text-align: center;
}

.sa-section__title {
    margin: 0;
    color: var(--sa-ink);
    font-family: var(--sa-font);
    font-size: clamp(25px, 3vw, 36px);
    font-weight: 700;
    line-height: 1.35;
}

.sa-section__text {
    margin: 10px 0 0;
    color: var(--sa-text);
    font-size: 17px;
    line-height: 1.6;
}

.sa-section__head--light .sa-section__title {
    color: var(--sa-white);
}

.sa-section__more {
    margin-top: 36px;
    text-align: center;
}

.sa-eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    padding: 5px 14px;
    border-radius: 999px;
    background: var(--sa-primary-soft);
    color: var(--sa-primary-dark);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
}

.sa-eyebrow--light {
    background: rgba(255, 255, 255, 0.18);
    color: var(--sa-white);
}

/* 8. Categories
   ========================================================================== */
.sa-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 18px;
}

.sa-category {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--sa-border);
    border-radius: var(--sa-radius);
    background: var(--sa-white);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.sa-category:hover {
    border-color: var(--sa-tone);
    box-shadow: var(--sa-shadow);
    transform: translateY(-3px);
}

.sa-category__icon {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: var(--sa-tone-soft);
    color: var(--sa-tone);
    font-size: 24px;
}

.sa-category__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

.sa-category__name {
    color: var(--sa-ink);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}

.sa-category__text {
    color: var(--sa-text);
    font-size: 14px;
    line-height: 1.5;
}

.sa-category__arrow {
    color: var(--sa-muted);
    font-size: 18px;
}

/* 9. Courses
   ========================================================================== */
.sa-group-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 36px 0 18px;
}

.sa-section__head + .sa-group-head {
    margin-top: 0;
}

.sa-group-head__title {
    margin: 0;
    padding-left: 12px;
    border-left: 4px solid var(--sa-primary);
    color: var(--sa-ink);
    font-family: var(--sa-font);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
}

.sa-course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.sa-course-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid var(--sa-border);
    border-radius: var(--sa-radius);
    background: var(--sa-white);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sa-course-card:hover {
    box-shadow: var(--sa-shadow);
    transform: translateY(-4px);
}

.sa-course-card__media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    background: var(--sa-primary-soft);
}

.sa-course-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sa-badge {
    position: absolute;
    top: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
}

.sa-badge--discount {
    right: 12px;
    background: #e5484d;
    color: var(--sa-white);
}

.sa-badge--featured {
    left: 12px;
    background: var(--sa-accent);
    color: var(--sa-ink);
}

.sa-course-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 10px;
    padding: 18px;
}

.sa-course-card__title {
    margin: 0;
    font-family: var(--sa-font);
    font-size: 19px;
    font-weight: 700;
    line-height: 1.4;
}

.sa-course-card__title a {
    color: var(--sa-ink);
}

.sa-course-card__title a:hover {
    color: var(--sa-primary-strong);
}

.sa-course-card__text {
    display: -webkit-box;
    margin: 0;
    color: var(--sa-text);
    font-size: 15px;
    line-height: 1.55;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.sa-course-card__includes {
    display: grid;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sa-course-card__includes li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 9px 0;
    border-bottom: 1px solid var(--sa-border);
    color: var(--sa-ink);
    font-size: 16px;
    line-height: 1.4;
}

.sa-course-card__includes li:last-child {
    border-bottom: 0;
}

.sa-course-card__include-icon {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: var(--sa-tone-soft);
    color: var(--sa-tone);
    font-size: 16px;
}

.sa-course-card__include-label {
    flex: 1;
    min-width: 0;
}

.sa-course-card__include-value {
    color: var(--sa-ink);
    font-weight: 700;
}

.sa-course-card__foot {
    display: grid;
    gap: 12px;
    margin-top: auto;
    padding-top: 6px;
}

.sa-course-card__fee {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--sa-radius-sm);
    background: var(--sa-tint);
    color: var(--sa-text);
    font-size: 15px;
}

.sa-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.sa-price__current {
    color: var(--sa-primary-dark);
    font-size: 22px;
    font-weight: 700;
}

.sa-price__old {
    color: var(--sa-muted);
    font-size: 15px;
}

/* 10. Stats
   ========================================================================== */
.sa-stats {
    background: linear-gradient(135deg, #3f4dc4 0%, #6777ef 100%);
}

.sa-stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.sa-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 26px 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--sa-radius);
    background: rgba(255, 255, 255, 0.1);
    color: var(--sa-white);
    text-align: center;
}

.sa-stat__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    font-size: 22px;
}

.sa-stat__number {
    font-family: "Poppins", var(--sa-font);
    font-size: clamp(26px, 3.4vw, 38px);
    font-weight: 700;
    line-height: 1.3;
}

.sa-stat__number .odometer {
    font-family: inherit;
}

.sa-stat__label {
    color: #e3e6ff;
    font-size: 16px;
    line-height: 1.4;
}

/* 11. Reviews
   ========================================================================== */
.sa-review-rail {
    display: flex;
    gap: 20px;
    padding: 6px max(16px, calc((100vw - 1290px) / 2)) 18px;
    overflow-x: auto;
    scroll-padding-inline: max(16px, calc((100vw - 1290px) / 2));
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
}

.sa-review {
    display: flex;
    flex: 0 0 min(340px, 84vw);
    flex-direction: column;
    gap: 12px;
    margin: 0;
    padding: 22px;
    border: 1px solid var(--sa-border);
    border-radius: var(--sa-radius);
    background: var(--sa-white);
    box-shadow: var(--sa-shadow-sm);
    scroll-snap-align: start;
}

.sa-review__stars {
    display: flex;
    gap: 3px;
    color: var(--sa-accent);
    font-size: 16px;
}

.sa-review__text {
    display: -webkit-box;
    margin: 0;
    padding: 0;
    border: 0;
    color: var(--sa-text);
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.65;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 6;
}

.sa-review__text::before {
    content: none;
}

.sa-review__author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
}

.sa-review__author strong {
    display: block;
    color: var(--sa-ink);
    font-size: 16px;
    line-height: 1.3;
}

.sa-review__author small {
    color: var(--sa-muted);
    font-size: 13px;
}

.sa-review__avatar {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--sa-primary-soft);
    color: var(--sa-primary-dark);
    font-size: 18px;
    font-weight: 700;
}

/* 12. FAQ
   ========================================================================== */
.sa-faq {
    display: grid;
    gap: 12px;
    max-width: 860px;
    margin: 0 auto;
}

.sa-faq__item {
    border: 1px solid var(--sa-border) !important;
    border-radius: var(--sa-radius-sm) !important;
    background: var(--sa-white);
    overflow: hidden;
}

.sa-faq .accordion-header {
    margin: 0;
}

.sa-faq .accordion-button {
    padding: 18px 20px;
    background: var(--sa-white);
    box-shadow: none;
    color: var(--sa-ink);
    font-family: var(--sa-font);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.5;
}

.sa-faq .accordion-button:not(.collapsed) {
    background: var(--sa-primary-soft);
    color: var(--sa-primary-dark);
}

.sa-faq .accordion-body {
    padding: 16px 20px 20px;
    color: var(--sa-text);
    font-size: 16px;
    line-height: 1.7;
}

.sa-faq .accordion-body p {
    margin: 0 0 10px;
    font-size: 16px;
    line-height: 1.7;
}

.sa-faq .accordion-body > :last-child {
    margin-bottom: 0;
}

/* 13. Call to action
   ========================================================================== */
.sa-cta {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    align-items: center;
    gap: 28px;
    padding: 40px;
    border-radius: 24px;
    background: linear-gradient(135deg, #6777ef 0%, #3f4dc4 100%);
    color: var(--sa-white);
}

.sa-cta__title {
    margin: 0;
    color: var(--sa-white);
    font-family: var(--sa-font);
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 700;
    line-height: 1.35;
}

.sa-cta__text {
    margin: 10px 0 0;
    color: #e3e6ff;
    font-size: 17px;
    line-height: 1.6;
}

.sa-cta__actions {
    display: grid;
    gap: 12px;
}

.sa-cta__actions small {
    color: #e3e6ff;
    font-size: 14px;
    text-align: center;
}

/* 14. Page head and filters
   ========================================================================== */
.sa-page-head {
    padding: 40px 0;
    background: linear-gradient(135deg, #6777ef 0%, #3f4dc4 100%);
    color: var(--sa-white);
    text-align: center;
}

.sa-page-head__title {
    margin: 0;
    color: var(--sa-white);
    font-family: var(--sa-font);
    font-size: clamp(26px, 3.4vw, 38px);
    font-weight: 700;
    line-height: 1.35;
}

.sa-page-head__text {
    margin: 8px 0 0;
    color: #e3e6ff;
    font-size: 16px;
    line-height: 1.5;
}

.sa-chips {
    display: flex;
    gap: 10px;
    margin: 0 0 28px;
    padding-bottom: 6px;
    overflow-x: auto;
    scrollbar-width: none;
}

.sa-chips::-webkit-scrollbar {
    display: none;
}

.sa-chip {
    flex-shrink: 0;
    padding: 9px 18px;
    border: 1px solid var(--sa-border);
    border-radius: 999px;
    background: var(--sa-white);
    color: var(--sa-ink);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.sa-chip:hover {
    border-color: var(--sa-primary);
    color: var(--sa-primary-dark);
}

.sa-chip.is-active {
    border-color: var(--sa-primary-strong);
    background: var(--sa-primary-strong);
    color: var(--sa-white);
}

/* 15. Footer
   ========================================================================== */
.sa-footer {
    background: var(--sa-ink);
    color: #c3c8e0;
    padding-top: 56px;
}

.sa-logo--footer img {
    padding: 6px 10px;
    background: var(--sa-white);
}

.sa-footer__about {
    max-width: 420px;
    margin: 18px 0;
    color: #c3c8e0;
    font-size: 15px;
    line-height: 1.7;
}

.sa-footer__title {
    margin: 0 0 16px;
    color: var(--sa-white);
    font-family: var(--sa-font);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
}

.sa-footer__links,
.sa-footer__contact {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sa-footer__links li,
.sa-footer__contact li {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
}

.sa-footer__contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.sa-footer__contact span {
    color: inherit;
}

.sa-footer__contact i {
    margin-top: 4px;
    color: #9aa5ff;
}

.sa-footer a {
    color: #c3c8e0;
}

.sa-footer a:hover {
    color: var(--sa-white);
}

.sa-footer__bottom {
    margin-top: 44px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sa-footer__bottom-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 20px;
    padding-top: 18px;
    padding-bottom: 18px;
}

.sa-footer__bottom p {
    margin: 0;
    color: #a9afcb;
    font-size: 14px;
    line-height: 1.5;
}

.sa-footer__bottom a {
    color: var(--sa-white);
}

/* 16. WhatsApp and bottom bar
   ========================================================================== */
.sa-whatsapp-float {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 990;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--sa-whatsapp);
    color: var(--sa-white);
    box-shadow: 0 10px 24px rgba(31, 168, 85, 0.4);
    transition: transform 0.2s ease;
}

.sa-whatsapp-float:hover {
    color: var(--sa-white);
    transform: scale(1.06);
}

.sa-whatsapp-float svg {
    width: 30px;
    height: 30px;
}

/* Template back-to-top button sits above the WhatsApp button. */
.sa-body .rbt-progress-parent {
    right: 26px;
    bottom: 92px;
}

.sa-bottom-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 995;
    display: none;
    grid-template-columns: repeat(5, 1fr);
    align-items: end;
    height: calc(var(--sa-bottom-nav-height) + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    border-top: 1px solid var(--sa-border);
    background: var(--sa-white);
    box-shadow: 0 -6px 20px rgba(27, 33, 64, 0.08);
}

.sa-bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    height: var(--sa-bottom-nav-height);
    color: var(--sa-text);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
}

.sa-bottom-nav a i {
    font-size: 20px;
}

.sa-bottom-nav a.is-active {
    color: var(--sa-primary-strong);
}

.sa-bottom-nav__bubble {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-top: -22px;
    border: 4px solid var(--sa-white);
    border-radius: 50%;
    background: var(--sa-whatsapp);
    color: var(--sa-white);
    box-shadow: 0 6px 14px rgba(31, 168, 85, 0.35);
}

/* Responsive
   ========================================================================== */
@media (max-width: 1199.98px) {
    .sa-nav {
        display: none;
    }

    .sa-menu-toggle {
        display: inline-flex;
    }
}

@media (max-width: 991.98px) {
    .sa-section {
        padding: 48px 0;
    }

    .sa-stats__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sa-cta {
        grid-template-columns: 1fr;
        padding: 30px 24px;
        text-align: center;
    }
}

@media (max-width: 767.98px) {
    :root {
        --sa-header-height: 62px;
    }

    .sa-body {
        padding-bottom: calc(var(--sa-bottom-nav-height) + env(safe-area-inset-bottom, 0px));
    }

    .sa-bottom-nav {
        display: grid;
    }

    .sa-whatsapp-float,
    .sa-body .rbt-progress-parent {
        display: none;
    }

    .sa-topbar__inner {
        justify-content: center;
    }

    .sa-header__inner {
        gap: 12px;
    }

    .sa-logo img {
        max-width: 140px;
        max-height: 40px;
    }

    .sa-header__actions .sa-btn {
        min-height: 40px;
        padding: 0 14px;
        font-size: 14px;
    }

    .sa-user__name {
        max-width: 90px;
    }

    .sa-section {
        padding: 40px 0;
    }

    .sa-hero {
        padding: 22px 0 30px;
    }

    .sa-hero__title {
        margin-bottom: 18px;
    }

    .sa-hero__carousel {
        border-radius: var(--sa-radius-sm);
    }

    .sa-hero__carousel .carousel-control-prev,
    .sa-hero__carousel .carousel-control-next {
        width: 36px;
        height: 36px;
        margin: 0 8px;
    }

    .sa-section__head {
        margin-bottom: 26px;
    }

    .sa-category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .sa-category {
        flex-direction: column;
        gap: 10px;
        padding: 16px 10px;
        text-align: center;
    }

    .sa-category__body {
        align-items: center;
    }

    .sa-category__name {
        font-size: 16px;
    }

    .sa-category__text,
    .sa-category__arrow {
        display: none;
    }

    .sa-course-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .sa-group-head__title {
        font-size: 19px;
    }

    .sa-stats__grid {
        gap: 12px;
    }

    .sa-stat {
        padding: 18px 10px;
    }

    .sa-stat__label {
        font-size: 14px;
    }

    .sa-footer {
        padding-top: 40px;
    }

    .sa-footer__bottom-inner {
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 399.98px) {
    .sa-header__actions .sa-btn--primary {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sa-body *,
    .sa-body *::before,
    .sa-body *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
