.badge {
    background: #ece7df;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    max-width: 100%;
    text-align: center;
    animation: subtlePulse 2s ease-in-out infinite;
}

.badge-text {
    font-size: 0.6rem;
    white-space: nowrap;
    text-align: center;
}

.badge span {
    white-space: nowrap;
}

.text-primary {
    color: var(--accent);
}

.text-muted {
    color: #6b7280;
}

/* Layout scaffolding */
:root {
    --feature-icon-size: 5rem;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 3.5rem 1rem 2.5rem 1rem;
    width: 100%;
}

.section--alt {
    background: var(--bg-secondary);
}

.section--gradient {
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
}

.hero img {
    border-radius: var(--radius-lg);
}

.brand img,
.footer__brand img,
.logo img {
    box-shadow: none;
    border-radius: 0;
}

.section--pattern {
    background: radial-gradient(circle at 20% 20%, rgba(58, 58, 58, 0.03), transparent 22%),
        radial-gradient(circle at 80% 0%, rgba(213, 43, 30, 0.08), transparent 30%), var(--bg-secondary);
}

#trust {
    background: none;
}

.section__header {
    max-width: 720px;
    margin: 0 auto 48px;
    text-align: center;
}

.section__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: none;
    background: transparent;
    color: #e53e3e;
    font-weight: 600;
    font-size: 1.25rem;
    letter-spacing: 0.01em;
}

.section__title {
    font-size: var(--heading-section);
}

.section__subtitle {
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Grid helpers */
.grid {
    display: grid;
    gap: 32px;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    align-items: center;
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
}

@media (max-width: 1024px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }
}

/* Hero */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
    position: relative;
    overflow: hidden;
    padding-right: 0;
}

.hero-section {
    overflow-x: hidden;
}

/* Courses hero tweaks */
.hero--courses {
    gap: 3.5rem;
}

.hero--courses .hero__text {
    max-width: 42rem;
}

#hero .container {
    padding-right: 0;
}

.hero__title {
    font-size: var(--heading-hero);
}

.hero__highlight {
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-decoration-break: clone;
    color: var(--text-primary);
}

.hero__text {
    max-width: 560px;
    color: var(--text-secondary);
    font-size: 19px;
    margin-top: 6px;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    margin-top: 12px;
    font-size: 0.95rem;
    color: #444;
}

.hero-features span {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.6);
    padding: 6px 10px;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    opacity: 0;
    transform: translateY(10px);
    animation: fadeUp 0.5s ease forwards;
}

.hero-features span::before {
    content: "✔";
    color: #e53935;
    font-weight: 700;
}

.hero-features span:nth-child(1) {
    animation-delay: 0.1s;
}

.hero-features span:nth-child(2) {
    animation-delay: 0.2s;
}

.hero-features span:nth-child(3) {
    animation-delay: 0.3s;
}

.hero-features span:nth-child(4) {
    animation-delay: 0.4s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero__actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.logo img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.hero__visual {
    position: relative;
    width: 100%;
    max-width: 560px;
    height: 520px;
    justify-self: end;
    perspective: 1200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0;
    padding-right: 0;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 100%;
}

.hero__image {
    width: 100%;
    max-width: none;
    margin-left: 0;
    display: block;
}

.hero__glow {
    position: absolute;
    inset: -12% -18% 0 12%;
    background: radial-gradient(circle at 70% 30%, rgba(213, 43, 30, 0.12), transparent 38%),
        radial-gradient(circle at 20% 60%, rgba(58, 58, 58, 0.08), transparent 44%);
    filter: blur(42px);
    z-index: 0;
}

.hero__visual img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: auto;
    -webkit-mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 1) 60%, rgba(0, 0, 0, 0.6) 80%, rgba(0, 0, 0, 0) 100%);
    mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 1) 60%, rgba(0, 0, 0, 0.6) 80%, rgba(0, 0, 0, 0) 100%);
    border-radius: 18px;
}

.hero-image-frame {
    position: relative;
    overflow: hidden;
    border-radius: calc(var(--radius-lg) + 8px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.14);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(236, 231, 223, 0.9));
    transition: transform 220ms ease;
    isolation: isolate;
    width: 100%;
    height: 100%;
    animation: heroFloat 6s ease-in-out infinite;
}

.hero-image-container {
    position: relative;
}

.hero-overlay-card {
    position: absolute;
    bottom: 20px;
    right: -40px;
    max-width: 260px;
}

#hero .hero__visual {
    overflow: visible;
}

#hero .hero-badge {
    position: absolute;
    bottom: 10%;
    right: 5%;
    max-width: 14rem;
    z-index: 4;
}

.hero-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    -webkit-mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 1) 60%, rgba(0, 0, 0, 0.6) 80%, rgba(0, 0, 0, 0) 100%);
    mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 1) 60%, rgba(0, 0, 0, 0.6) 80%, rgba(0, 0, 0, 0) 100%);
    border-radius: var(--radius-lg);
}

.hero__visual::before {
    content: "";
    position: absolute;
    top: -40px;
    right: -40px;
    bottom: -40px;
    left: -40px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.2), transparent);
    z-index: -1;
    filter: blur(40px);
}

.hero-layers {
    position: absolute;
    inset: -10% -5% -10% -5%;
    z-index: 0;
}

.hero-blob {
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    filter: blur(42px);
    opacity: 0.6;
}

.hero-blob--1 {
    background: rgba(213, 43, 30, 0.14);
    top: 8%;
    right: 6%;
}

.hero-blob--2 {
    background: rgba(67, 56, 202, 0.12);
    bottom: 4%;
    left: 10%;
}

.hero-blob--3 {
    background: rgba(58, 58, 58, 0.1);
    top: 28%;
    left: 28%;
}

.hero-cards {
    position: absolute;
    bottom: 10%;
    right: 5%;
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}

.floating-card {
    position: relative;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    display: grid;
    gap: 0.35rem;
    animation: float 7s ease-in-out infinite;
    z-index: 3;
    border: 1px solid rgba(0, 0, 0, 0.06);
    max-width: 12rem;
    font-size: 0.85rem;
    padding: 0.75rem 1rem;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
}

.floating-card__title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.floating-card__meta {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.floating-card__pill {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    background: rgba(213, 43, 30, 0.08);
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--accent);
}

.floating-card--rating,
.floating-card--badge,
.floating-card--clb {
    animation-duration: 8.4s;
}

/* Courses grids */
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr));
    gap: 2rem;
    align-items: stretch;
    width: 100%;
}

.course-card {
    gap: 0.9rem;
    justify-self: stretch;
}

.course-card .pill {
    align-self: flex-start;
}

.list-check {
    list-style: none;
    display: grid;
    gap: 0.35rem;
    padding: 0;
    margin: 0;
}

.list-check li {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    color: var(--text-primary);
    font-size: 0.98rem;
}

.list-check li::before {
    content: '✔';
    color: #16a34a;
    background: rgba(34, 197, 94, 0.12);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    font-size: 0.75rem;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.price-line {
    font-weight: 700;
    color: var(--text-primary);
}

.pricing-note {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    margin-top: 0.5rem;
}

.cta-line {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

.course-flex {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    align-items: center;
}

.course-flex--reverse {
    direction: rtl;
}

.course-flex--reverse>* {
    direction: ltr;
}

.course-copy {
    display: grid;
    gap: 1rem;
}

.course-visual {
    display: flex;
    justify-content: center;
}

.course-illustration {
    width: 100%;
    max-width: 42rem;
    border-radius: var(--radius-lg);
    animation: courseImageFloat 6s ease-in-out infinite;
    box-shadow: var(--shadow-soft);
}

.level-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    gap: 1.5rem;
}

.level-card {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.85rem;
}

.level-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.level-card p {
    word-break: break-word;
    line-height: 1.5;
    font-size: 0.95rem;
    color: #6b7280;
    line-clamp: 3;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.avatar-stack {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.avatar-stack img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
}

@media (max-width: 960px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .hero__visual {
        width: 100%;
        max-width: 480px;
        height: 440px;
        justify-self: center;
    }
}

@media (max-width: 768px) {
    .hero__visual {
        max-width: 100%;
        height: auto;
    }

    .hero-features {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-image-wrapper {
        min-height: 420px;
    }

    .hero-cards {
        position: absolute;
        bottom: 5%;
        left: 50%;
        transform: translateX(-50%);
        flex-direction: row;
        justify-content: center;
        gap: 0.75rem;
        width: 90%;
        padding: 0 0.25rem;
    }

    .hero-card {
        flex: 1;
        max-width: 10rem;
        padding: 0.75rem;
    }

    #hero .hero-badge {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        bottom: 5%;
    }
}

@media (max-width: 480px) {
    .hero-image-wrapper {
        min-height: 360px;
    }

    .hero-cards {
        flex-direction: column;
        align-items: center;
        bottom: 2%;
        gap: 0.65rem;
    }

    .hero-card {
        width: 80%;
        max-width: 14rem;
    }

    .hero-card .floating-card__title {
        font-size: 0.9rem;
    }

    .hero-card .floating-card__meta {
        font-size: 0.78rem;
    }

    .hero-card .floating-card__pill {
        font-size: 0.78rem;
        padding: 0.3rem 0.7rem;
    }

    #hero .hero-badge {
        bottom: 4%;
    }
}

/* Cards */
.card {
    background: var(--card);
    border-radius: var(--radius-lg);
    padding: 20px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: var(--shadow-soft);
    display: grid;
    gap: 10px;
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

/* Scoped feature row (trust section only) */
.altiora-feature-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.altiora-feature-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 1.4rem 1.5rem;
    text-align: center;
    transition: all 0.25s ease;
}

.altiora-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

#trust .feature-card {
    position: relative;
    padding: 24px;
    border-radius: 20px;
    background: #ffffff;
    overflow: hidden;
    transition: all 0.35s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUpCard 0.6s ease forwards;
}

#trust .feature-card>* {
    position: relative;
    z-index: 1;
}

#trust .feature-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(229, 57, 53, 0.15), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

#trust .feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12);
}

#trust .feature-card:hover::before {
    opacity: 1;
}

#trust .feature-card img {
    width: 40px;
    margin-bottom: 12px;
    transition: transform 0.3s ease;
}

#trust .feature-card:hover img {
    transform: scale(1.15) rotate(3deg);
}

#trust .feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

#trust .feature-card:hover h3 {
    color: #e53935;
}

#trust .feature-card::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 20px;
    width: 40px;
    height: 3px;
    background: #e53935;
    transition: width 0.3s ease;
}

#trust .feature-card:hover::after {
    width: 80px;
}

#trust .feature-card:nth-child(1) {
    animation-delay: 0.1s;
}

#trust .feature-card:nth-child(2) {
    animation-delay: 0.2s;
}

#trust .feature-card:nth-child(3) {
    animation-delay: 0.3s;
}

#trust .feature-card:nth-child(4) {
    animation-delay: 0.4s;
}

#trust .feature-card:nth-child(2)::before {
    background: radial-gradient(circle at top left, rgba(33, 150, 243, 0.12), transparent 60%);
}

#trust .feature-card:nth-child(3)::before {
    background: radial-gradient(circle at top left, rgba(76, 175, 80, 0.12), transparent 60%);
}

#trust .feature-card:nth-child(4)::before {
    background: radial-gradient(circle at top left, rgba(255, 152, 0, 0.12), transparent 60%);
}

@keyframes fadeUpCard {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.altiora-feature-icon {
    display: block;
    margin: 0 auto 0.8rem auto;
    width: 2.8rem;
    height: auto;
}

@media (max-width: 1024px) {
    .altiora-feature-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .altiora-feature-row {
        grid-template-columns: 1fr;
    }
}

.card:hover,
.card:focus-within {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(213, 43, 30, 0.18);
}

.card--feature {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 10px;
    padding: 1.5rem 1.6rem;
    border-radius: 1rem;
    background: #fff;
    transition: all 0.25s ease;
}

.card--feature:hover,
.card--feature:focus-within {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.feature-icon {
    display: block;
    width: var(--feature-icon-size);
    height: auto;
    object-fit: contain;
}

.card__title {
    font-size: 20px;
    /* margin-top: 4px;
    margin-bottom: 4px; */
}

.card__meta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 15px;
}

.card--testimonial {
    display: grid;
    gap: 10px;
}

.rating {
    color: #f4b000;
    font-weight: 700;
}

.testimonial-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.testimonial-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 18px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: var(--shadow-soft);
    display: grid;
    gap: 10px;
    min-height: 260px;
}

.testimonial-card__top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-card__avatar {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    object-fit: cover;
}

.testimonial-card__name {
    font-weight: 700;
}

.testimonial-card__meta {
    color: var(--text-secondary);
    font-size: 14px;
}

.testimonial-card__quote {
    color: var(--text-primary);
}

/* Media blocks */
.media-block {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    align-items: center;
}

.media-block+.media-block {
    margin-top: 24px;
}

.media-block__image {
    justify-self: center;
    width: 100%;
    max-width: 620px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.image-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-block__content {
    display: grid;
    gap: 12px;
}

.media-block:nth-of-type(even) .media-block__content {
    order: 2;
}

.media-block:nth-of-type(even) .media-block__image {
    order: 1;
}

/* Learning System (scoped) */
#learning-system {
    position: relative;
}

#exam-prep,
.learning-system,
.learning-system-section {
    padding: 70px 0;
}

#exam-prep,
.learning-system-section {
    background: #f5f1eb;
}

#exam-prep {
    background: linear-gradient(to right,
            #f5f1eb 0%,
            #f7f3ee 50%,
            #f5f1eb 100%);
}

#learning-system .learning-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

#learning-system .learning-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

#learning-system .learning-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.6s ease forwards;
}

#learning-system .learning-content {
    order: 2;
}

#learning-system .section-badge {
    display: inline-block;
    background: rgba(229, 57, 53, 0.1);
    color: #e53935;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 12px;
    font-weight: 600;
}

#learning-system .learning-content h2 {
    font-size: 2rem;
    margin-bottom: 16px;
}

#learning-system .learning-points {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#learning-system .learning-points li {
    margin-bottom: 0;
    position: relative;
    padding-left: 24px;
    font-size: 0.95rem;
    line-height: 1.35;
}

#learning-system .points {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#learning-system .points li {
    font-size: 0.95rem;
    line-height: 1.35;
}

#learning-system .learning-points li::before {
    content: "✔";
    position: absolute;
    left: 0;
    color: #2e7d32;
    font-weight: 700;
}

#learning-system .learning-image-wrapper {
    position: relative;
    border-radius: 20px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.6s ease forwards;
    animation-delay: 0.2s;
}

#learning-system .learning-image {
    display: flex;
    justify-content: center;
    position: relative;
    order: 1;
}

#learning-system .learning-image::before {
    content: "";
    position: absolute;
    width: 120%;
    height: 120%;
    top: -40px;
    left: -40px;
    background: radial-gradient(circle, rgba(229, 57, 53, 0.12), transparent 70%);
    filter: blur(50px);
    z-index: -1;
}

#learning-system .learning-system-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

#learning-system .learning-image img {
    width: 100%;
    max-width: 680px;
    border-radius: 28px;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.18),
        0 12px 30px rgba(0, 0, 0, 0.12);
    transition: transform 0.4s ease;
}

#learning-system .learning-image img:hover {
    transform: scale(1.03);
}

#learning-system p {
    line-height: 1.45;
}

#learning-system .learning-image-wrapper:hover .learning-system-image {
    transform: scale(1.02);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.12);
}

@media (max-width: 900px) {
    #learning-system .learning-grid {
        grid-template-columns: 1fr;
    }
}

/* Buttons & pills */
.btn--ghost {
    border: 1px solid rgba(58, 58, 58, 0.14);
    background: rgba(255, 255, 255, 0.6);
    color: var(--text-primary);
    box-shadow: none;
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
    border-color: rgba(58, 58, 58, 0.28);
    background: #ffffff;
    transform: translateY(-1px);
}

.btn--elevated {
    box-shadow: var(--shadow-soft);
}

.btn--primary {
    box-shadow: 0 12px 30px rgba(213, 43, 30, 0.18);
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(58, 58, 58, 0.06);
    border-radius: 999px;
    font-size: var(--text-small);
    color: var(--text-primary);
}

.pill--accent {
    background: transparent;
    color: var(--accent);
    font-weight: 700;
    padding: 0;
}

.hero-tag {
    font-size: 15px;
    font-weight: 700;
    color: var(--accent);
}

/* Prep cards */
.prep-grid {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.prep-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 16px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-soft);
    display: grid;
    gap: 6px;
    min-width: 240px;
}

.prep-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(213, 43, 30, 0.08);
    font-size: 18px;
}

/* Course cards */
.course-icon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    background: rgba(213, 43, 30, 0.08);
    display: grid;
    place-items: center;
    font-size: 30px;
    box-shadow: var(--shadow-soft);
}

/* Exam prep (scoped) */
#exam-prep {
    position: relative;
    background: linear-gradient(to right,
            #f6f2ec 0%,
            #f3ede5 40%,
            #eee3d6 70%,
            #e8d9c8 100%);
}

#exam-prep::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 50%,
            rgba(0, 0, 0, 0.04),
            transparent 60%);
    pointer-events: none;
}

#exam-prep .exam-container {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    align-items: stretch;
    gap: 60px;
    position: relative;
    z-index: 1;
}

#exam-prep .exam-content {
    order: 1;
    padding-left: 10px;
}

#exam-prep .exam-image-wrapper {
    order: 2;
}

#exam-prep .exam-image-wrapper {
    position: relative;
    overflow: visible;
    height: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: stretch;
}

#exam-prep .exam-image-wrapper::before {
    content: "";
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle,
            rgba(255, 255, 255, 0.35),
            transparent 70%);
    filter: blur(30px);
    z-index: -1;
}

#exam-prep .exam-image-wrapper::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 28px;
    box-shadow: inset 0 0 60px rgba(255, 255, 255, 0.12);
    pointer-events: none;
}

#exam-prep .exam-image {
    display: block;
    width: 100%;
    max-width: 520px;
    height: 100%;
    object-fit: cover;
    border-radius: 28px;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.12),
        0 10px 25px rgba(0, 0, 0, 0.08);
    background: transparent;
    transition: transform 0.4s ease;
    animation: floatImage 6s ease-in-out infinite;
}

#exam-prep .exam-image:hover {
    transform: scale(1.03);
}

@keyframes floatImage {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

#exam-prep .exam-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 600px;
}

#exam-prep .exam-content h2 {
    font-size: 2rem;
    line-height: 1.1;
    margin-bottom: 10px;
    color: #2b2b2b;
}

#exam-prep .exam-desc {
    line-height: 1.1;
    max-width: 500px;
    color: #555;
}

#exam-prep .section-label {
    display: inline-block;
    width: fit-content;
    max-width: 100%;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(229, 57, 53, 0.12);
    color: #e53935;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0;
    margin: 0;
    margin-bottom: 8px;
    box-shadow: none;
}

#exam-prep .section-label::after {
    content: none;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#exam-prep .exam-points {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
}

#exam-prep .exam-point {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin-bottom: 10px;
}

#exam-prep .exam-text strong {
    display: block;
    font-size: 0.95rem;
    line-height: 1.35;
    color: #2a2a2a;
}

#exam-prep .exam-point .check {
    color: #4CAF50;
    font-size: 18px;
    margin-top: 4px;
    font-weight: 700;
}

#exam-prep .exam-text .sub-text {
    margin: 3px 0 0;
    color: #6a6a6a;
    font-size: 0.92rem;
    line-height: 1.35;
}

#exam-prep .cta-btn {
    margin-top: 0;
}

#exam-prep .exam-cta {
    display: flex;
    justify-content: center;
    margin-top: 28px;
}

#exam-prep .exam-cta .cta-btn {
    padding: 14px 26px;
    font-size: 1rem;
}

#exam-prep .exam-prep-features {
    display: flex;
    flex-direction: column;
}

#exam-prep .feature-line {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 1rem;
}

#exam-prep .feature-subtext {
    font-size: 0.9rem;
    color: #6f6f6f;
    margin-left: 2rem;
    margin-top: 0rem;
    margin-bottom: 0rem;
}

@media (max-width: 900px) {
    #exam-prep .exam-container {
        grid-template-columns: 1fr;
    }

    #exam-prep .exam-prep-image {
        order: 1;
    }

    #exam-prep .exam-prep-content {
        order: 2;
    }
}

/* Course programs (scoped) */
#course-programs .course-programs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
}

#course-programs .course-programs-image {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

#course-programs .course-programs-illustration {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-lg);
    animation: courseImageFloat 6s ease-in-out infinite;
}

@keyframes courseImageFloat {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

#course-programs .course-programs-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
}

#course-programs .section-label {
    display: inline-block;
    width: fit-content;
    max-width: 100%;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(229, 57, 53, 0.12);
    color: #e53935;
    font-size: 0.8rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.2;
}

#course-programs .section__title {
    margin: 0 0 6px;
    line-height: 1.15;
}

#course-programs .section-desc {
    margin-top: 6px;
    margin-bottom: 10px;
    line-height: 1.4;
    color: #666;
}

#course-programs .points {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#course-programs .point {
    display: flex;
    gap: 6px;
    align-items: flex-start;
    margin-bottom: 0;
}

#course-programs .icon-dot {
    width: 10px;
    height: 10px;
    min-width: 10px;
    margin-top: 6px;
    border-radius: 50%;
    background: #e53935;
    box-shadow: 0 0 0 4px rgba(229, 57, 53, 0.12);
    transition: transform 0.25s ease;
}

#course-programs .point:hover .icon-dot {
    transform: scale(1.2);
}

#course-programs .text strong {
    display: block;
    font-size: 0.95rem;
    line-height: 1.2;
    color: #2a2a2a;
}

#course-programs .sub-text {
    margin-top: 2px;
    font-size: 0.85rem;
    color: #666;
    line-height: 1.3;
}

#course-programs .course-cta {
    margin-top: 18px;
}

#course-programs .primary-btn {
    display: inline-block;
    padding: 12px 22px;
    background: #e53935;
    color: #fff;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
}

#course-programs .primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(229, 57, 53, 0.3);
}

@media (max-width: 900px) {
    #course-programs .course-programs-grid {
        grid-template-columns: 1fr;
    }

    #course-programs .course-programs-image {
        order: 1;
    }

    #course-programs .course-programs-content {
        order: 2;
    }
}

/* Stats bar */
.section--stats {
    padding: 0;
    margin: 0;
    overflow: hidden;
    background: var(--background-color);
}

.section--stats .container {
    padding-left: 0;
    padding-right: 0;
}

.section--stats .stats-marquee {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.section--stats .stats-marquee::before,
.section--stats .stats-marquee::after {
    content: "";
    position: absolute;
    top: 0;
    width: 80px;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.section--stats .stats-marquee::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-secondary, #ffffff), transparent);
}

.section--stats .stats-marquee::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-secondary, #ffffff), transparent);
}

.section--stats .stats-track {
    display: flex;
    width: max-content;
    animation: statsScroll 30s linear infinite;
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.section--stats .stats-bar {
    display: flex;
    gap: 6rem;
    align-items: center;
    padding: 2rem 4rem;
    background: #ffffff;
    border-radius: 12px;
    flex-shrink: 0;
}


.section--stats .stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 160px;
}

@keyframes statsScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Study Environment (scoped) */
/* Study Environment (scoped) */
#study-environment {
    padding: 80px 0;
    margin-bottom: 0;
}

#study-environment .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

#study-environment .study-env-grid,
#study-environment .section-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
}

/* Live Classes (scoped) */
#live-classes .live-classes-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    align-items: center;
    gap: 2rem;
}

#live-classes .live-classes-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
    padding-right: 0;
}

#live-classes .section-label,
#study-environment .section-label {
    display: inline-block;
    width: fit-content;
    max-width: 100%;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(229, 57, 53, 0.12);
    color: #e53935;
    font-size: 0.8rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.2;
}

#live-classes .live-content h2 {
    margin: 0 0 8px;
    line-height: 1.2;
}

#live-classes p {
    margin: 0;
    line-height: 1.4;
}

#live-classes .live-desc {
    margin-top: 6px;
    margin-bottom: 14px;
    font-size: 0.98rem;
    line-height: 1.45;
    color: #666;
}

#live-classes .live-points {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#live-classes .live-point {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

#live-classes .live-point .check {
    color: #4CAF50;
    font-size: 18px;
    margin-top: 2px;
    font-weight: 700;
    flex-shrink: 0;
}

#live-classes .live-text strong {
    display: block;
    font-size: 0.95rem;
    line-height: 1.25;
    color: #2a2a2a;
}

#live-classes .live-text .sub-text {
    margin-top: 3px;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.35;
}

#live-classes .live-classes-image {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

#live-classes .live-classes-illustration {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-lg);
    animation: courseImageFloat 6s ease-in-out infinite;
}

@media (max-width: 900px) {
    #live-classes .live-classes-grid {
        grid-template-columns: 1fr;
    }

    #live-classes .live-classes-image {
        order: 1;
    }

    #live-classes .live-classes-content {
        order: 2;
        padding-right: 0;
    }
}


#study-environment .study-env-image {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
}

#study-environment .study-env-illustration {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: var(--radius-lg);
    animation: studyImageFloat 6s ease-in-out infinite;
}

#study-environment p {
    margin: 0;
}

#study-environment .study-env-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
    padding-left: 0;
    max-width: 520px;
}

#study-environment .content {
    max-width: 520px;
}

#study-environment .env-content h2 {
    margin: 0 0 8px;
    line-height: 1.2;
}

#study-environment .env-desc {
    margin-top: 6px;
    margin-bottom: 14px;
    font-size: 0.98rem;
    line-height: 1.45;
    color: #666;
}

#study-environment .env-points {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#study-environment .env-point {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

#study-environment .env-point .check {
    color: #4CAF50;
    font-size: 18px;
    margin-top: 2px;
    font-weight: 700;
    flex-shrink: 0;
}

#study-environment .env-text strong {
    display: block;
    font-size: 0.95rem;
    line-height: 1.25;
    color: #2a2a2a;
}

#study-environment .env-text .sub-text {
    margin-top: 3px;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.35;
}

#study-environment img {
    width: 100%;
    max-width: 100%;
    border-radius: 20px;
    display: block;
}

@keyframes studyImageFloat {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-12px);
    }

    100% {
        transform: translateY(0px);
    }
}

#study-environment .stack,
#study-environment .stack-md {
    gap: 0.6rem;
}

@media (max-width: 900px) {
    #study-environment .study-env-grid {
        grid-template-columns: 1fr;
    }

    #study-environment .study-env-image {
        grid-column: auto;
        order: 1;
    }

    #study-environment .study-env-content {
        grid-column: auto;
        order: 2;
        padding-left: 0;
    }

    #study-environment .study-env-illustration {
        height: auto;
    }
}

.section--stats .stat__value {
    font-size: 1.6rem;
    font-weight: 700;
}

.section--stats .stat__label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    opacity: 0.7;
}

.exam-grid {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.8rem;
    margin-top: 0px;
}

@media (max-width: 768px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }
}

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

.premium-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 40px;
}

.premium-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 28px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    display: grid;
    gap: 10px;
}

.premium-card__title {
    font-weight: 700;
    font-size: 18px;
}

.feature-line {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.feature-line::before {
    content: '✔';
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(34, 197, 94, 0.12);
    color: #16a34a;
    font-size: 12px;
    flex-shrink: 0;
    margin: 0;
}

@media (max-width: 900px) {
    .premium-grid {
        grid-template-columns: 1fr;
    }
}

/* CTA block */
.cta-block {
    text-align: center;
    background: var(--card);
    padding: 48px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0, 0, 0, 0.04);
    display: grid;
    gap: 18px;
}

.cta-block--with-figure {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    align-items: center;
    text-align: left;
}

.cta-figure {
    justify-self: center;
    position: relative;
    min-height: 200px;
}

.cta-block--glow {
    position: relative;
    overflow: hidden;
}

.cta-block--glow::before {
    content: "";
    position: absolute;
    inset: -40% -20%;
    background: var(--gradient-cta);
    filter: blur(48px);
    z-index: 0;
}

.cta-block--glow>* {
    position: relative;
    z-index: 1;
}

.section--cta {
    background: linear-gradient(180deg, rgba(236, 231, 223, 0.7), rgba(245, 241, 234, 0.9));
}

.section--divider {
    padding: 60px 0;
    background: linear-gradient(180deg, rgba(245, 241, 234, 1), rgba(236, 231, 223, 1));
}

.cta-block__actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

#testimonials {
    overflow: hidden;
}

#testimonials .testimonials-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    align-items: stretch;
    gap: 2rem;
    width: 100%;
}

#testimonials .testimonials-left {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    min-width: 0;
    overflow: hidden;
}

#testimonials .section__header {
    text-align: left !important;
    margin: 0 !important;
}

#testimonials .testimonial-marquee {
    position: relative;
    overflow: hidden;
    width: 100%;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(245, 241, 234, 0.9));
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
    padding: 14px;
    isolation: isolate;
}

#testimonials .testimonial-marquee::before,
#testimonials .testimonial-marquee::after {
    content: "";
    position: absolute;
    top: 0;
    height: 100%;
    width: 80px;
    z-index: 2;
    pointer-events: none;
}

#testimonials .testimonial-marquee::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-secondary, #ffffff), transparent);
}

#testimonials .testimonial-marquee::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-secondary, #ffffff), transparent);
}

#testimonials .testimonial-track {
    display: flex;
    gap: 1.5rem;
    align-items: stretch;
    width: max-content;
    animation: testimonialScroll 35s linear infinite;
    will-change: transform;
}

#testimonials .testimonial-card {
    min-width: 280px;
    max-width: 320px;
    min-height: 240px;
}

#testimonials .testimonial-card__quote {
    font-size: 15px;
    line-height: 1.5;
}

.testimonials-highlight [data-float] {
    animation: testimonialFloat 5.2s ease-in-out infinite;
}

@keyframes testimonialScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes testimonialFloat {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }

    100% {
        transform: translateY(0);
    }
}

@media (max-width: 900px) {
    #testimonials .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    #testimonials .testimonial-marquee {
        padding: 12px;
    }

    #testimonials .testimonial-card {
        min-width: 240px;
    }
}

.cta-layout {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 18px;
    align-items: center;
}

.cta-figure--side img {
    width: 100%;
    max-width: 260px;
    margin: 0 auto;
}

.support-float {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 70px;
    cursor: pointer;
    z-index: 1000;
}

/* FAQ */
.faq-section {
    position: relative;
    overflow: hidden;
}

.faq-section::before,
.faq-section::after {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.8;
    z-index: 0;
}

.faq-section::before {
    left: -140px;
    top: 40px;
    background: radial-gradient(circle, #ffefe9, transparent);
}

.faq-section::after {
    right: -120px;
    bottom: 0;
    background: radial-gradient(circle, rgba(213, 43, 30, 0.16), transparent);
}

.faq-section .container,
.faq-section .section__header,
.faq-section .faq {
    position: relative;
    z-index: 1;
}

.faq {
    display: grid;
    gap: 12px;
    max-width: 820px;
    margin: 0 auto;
}

.faq details {
    background: var(--card);
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 0, 0, 0.04);
    padding: 14px 16px;
    box-shadow: var(--shadow-soft);
    transition: box-shadow var(--transition-base), transform var(--transition-base), background var(--transition-base);
}

.faq details[open] {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
    background: #fff8f7;
}

.faq summary {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-weight: 600;
    list-style: none;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq__icon {
    font-weight: 700;
    color: var(--accent);
}

.faq details summary {
    color: var(--text-primary);
}

.faq details summary .faq__icon {
    transition: transform var(--transition-base), color var(--transition-base);
}

.faq details[open] .faq__icon {
    transform: rotate(45deg);
    color: #b5241a;
}

/* Footer */
.footer {
    margin-top: 0;
    padding: 2.5rem 0 2rem;
    background: #f0eae0;
}

.footer__inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
    gap: 1.5rem;
    align-items: start;
}

.footer__brand img {
    height: 40px;
    width: auto;
    display: block;
}

.footer__title {
    font-size: 0.95rem;
    margin-bottom: 0.6rem;
    font-weight: 700;
    line-height: 1.3;
}

.footer__links {
    display: grid;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.footer__links a:hover,
.footer__links a:focus-visible {
    color: var(--accent);
}

.footer__bottom {
    margin-top: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    flex-wrap: wrap;
}

/* Utility spacing */
.stack-sm {
    gap: 8px;
    display: grid;
}

.stack-md {
    gap: 12px;
    display: grid;
}

.stack-lg {
    gap: 18px;
    display: grid;
}

.muted {
    color: var(--text-secondary);
}

.center {
    text-align: center;
}