/*
 * main.css
 * Extracted from the original static site (backup/original/).
 * Preserves the existing Bootstrap-based design as-is.
 */
:root {
            --primary-color: #565acf;
            --primary-dark: #4145ae;
            --primary-light: #eeefff;
            --secondary-color: #15162b;
            --body-color: #646579;
            --light-bg: #f7f7fc;
            --white-color: #ffffff;
            --border-color: #e8e8f2;
            --success-color: #27ae60;
            --success-light: #e8f8ee;
            --warning-color: #e6a417;
            --warning-light: #fdf3dd;
            --danger-color: #e14b4b;
            --danger-light: #fceaea;
            --info-color: #3b82c4;
            --info-light: #e8f2fb;
            --shadow-soft: 0 15px 50px rgba(28, 30, 80, .08);
            --shadow-card: 0 20px 60px rgba(39, 42, 100, .10);
            --shadow-sm: 0 4px 14px rgba(28, 30, 80, .06);
            --radius-sm: 8px;
            --radius-md: 14px;
            --radius-lg: 24px;
            --container-width: 1280px;
        }

        * {
            scroll-behavior: smooth;
        }

        /* Bootstrap's .row negative gutter margins (e.g. `row g-5` = -12px
           each side) are normally absorbed by the matching .container
           padding, but `overflow-x: hidden` on body alone doesn't stop the
           initial containing block (html) from reporting that extra width,
           which is what produced ~12px of real horizontal scroll on mobile
           (measured via document.documentElement.scrollWidth). html needs
           the same rule body already had. */
        html {
            overflow-x: hidden;
        }

        body {
            margin: 0;
            color: var(--body-color);
            background: var(--white-color);
            font-family: "DM Sans", sans-serif;
            overflow-x: hidden;
        }

        h1,
        h2,
        h3,
        h4,
        h5,
        h6 {
            color: var(--secondary-color);
            font-weight: 700;
        }

        .brand-heading {
            font-family: "Playfair Display", serif;
        }

        .top-strip {
            background: var(--secondary-color);
            color: rgba(255,255,255,.85);
            font-size: 13px;
            padding: 9px 0;
        }

        .top-strip a {
            color: #fff;
            text-decoration: none;
        }

        .main-navigation {
            background: rgba(255,255,255,.95);
            border-bottom: 1px solid rgba(86,90,207,.08);
            transition: all .3s ease;
            z-index: 1030;
        }

        /* Keeps the auth buttons from touching the browser edge, and gives
           the nav/auth flex row a bit more room before it would otherwise
           overflow. */
        .main-navigation > .container {
            padding-left: clamp(16px, 2vw, 32px);
            padding-right: clamp(16px, 2vw, 32px);
        }

        .main-navigation .navbar-nav {
            gap: clamp(0px, 0.5vw, 8px);
        }

        .main-navigation .d-flex.gap-2 {
            gap: 11px !important;
            flex-shrink: 0;
        }

        .main-navigation.sticky-active {
            box-shadow: 0 10px 40px rgba(20,20,60,.08);
        }

        .brand-logo {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            color: var(--secondary-color);
            text-decoration: none;
            font-weight: 800;
            line-height: 1.05;
        }

        .brand-logo-mark {
            width: 44px;
            height: 44px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            color: #fff;
            background: var(--primary-color);
            border-radius: 14px;
            font-size: 21px;
            box-shadow: 0 10px 25px rgba(86,90,207,.25);
        }

        .brand-logo-image {
            height: 44px;
            width: auto;
            max-width: 140px;
            object-fit: contain;
            border-radius: 8px;
        }

        .brand-logo-text {
            font-size: 15px;
        }

        .brand-logo-text small {
            display: block;
            color: var(--primary-color);
            font-size: 10px;
            letter-spacing: 1.3px;
            text-transform: uppercase;
            margin-top: 3px;
        }

        .navigation-link {
            color: #343548 !important;
            font-weight: 600;
            font-size: 14px;
            /* Horizontal padding shrinks with viewport width (vertical
               padding stays 29px so the active-state underline below,
               which is positioned off it, is unaffected) — this is what
               keeps the Sign Up button from being pushed off-screen
               between the lg breakpoint and ~1200px, instead of letting
               the navbar's flex content overflow and get silently
               clipped by the page's overflow-x: hidden. */
            padding: 29px clamp(8px, 1vw, 13px) !important;
            position: relative;
        }

        /* border: 0 is required here, not decorative: "Courses" also
           carries Bootstrap's .dropdown-toggle class, which defines its
           own ::after (the dropdown caret) with a border-based triangle.
           Only one ::after can render per element, so this rule replaces
           Bootstrap's — but it never previously reset `border`, so
           Bootstrap's caret border-width/style/color leaked through and
           combined with this rule's width/height/background into a small
           bordered blob that read as a "dot" instead of a clean pill. */
        .navigation-link::after {
            content: "";
            position: absolute;
            width: 0;
            height: 3px;
            left: 50%;
            bottom: 18px;
            background: var(--primary-color);
            border: 0;
            border-radius: 20px;
            transform: translateX(-50%);
            transition: width .3s ease;
        }

        .navigation-link:hover::after,
        .navigation-link.active::after {
            width: 24px;
        }

        .login-button,
        .signup-button {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            height: 48px;
            padding-inline: clamp(16px, 1.6vw, 23px);
            border-radius: 12px;
            font-size: 14px;
            font-weight: 600;
            white-space: nowrap;
            flex-shrink: 0;
            transition: .3s ease;
        }

        .login-button {
            color: var(--primary-color);
            border: 1px solid rgba(86,90,207,.25);
            background: transparent;
        }

        .login-button:hover {
            color: #fff;
            background: var(--primary-color);
        }

        .signup-button {
            color: #fff;
            background: var(--primary-color);
            border: 1px solid var(--primary-color);
            box-shadow: 0 10px 25px rgba(86,90,207,.2);
        }

        .signup-button:hover {
            color: #fff;
            background: var(--primary-dark);
            transform: translateY(-2px);
        }

        .hero-section {
            position: relative;
            min-height: 690px;
            display: flex;
            align-items: center;
            overflow: hidden;
            background:
                radial-gradient(circle at 80% 20%, rgba(86,90,207,.13), transparent 32%),
                linear-gradient(135deg, #fafaff 0%, #f3f3ff 100%);
        }

        .hero-section::before {
            content: "";
            position: absolute;
            width: 500px;
            height: 500px;
            border: 1px solid rgba(86,90,207,.08);
            border-radius: 50%;
            right: -150px;
            top: -130px;
        }

        .hero-section::after {
            content: "";
            position: absolute;
            width: 340px;
            height: 340px;
            border: 1px solid rgba(86,90,207,.08);
            border-radius: 50%;
            left: -170px;
            bottom: -150px;
        }

        .hero-content {
            position: relative;
            z-index: 2;
        }

        .hero-label {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: rgba(86,90,207,.09);
            color: var(--primary-color);
            border-radius: 50px;
            padding: 8px 15px;
            font-weight: 700;
            font-size: 13px;
            margin-bottom: 20px;
        }

        .hero-title {
            font-size: clamp(43px, 5vw, 70px);
            line-height: 1.05;
            letter-spacing: -2px;
            margin-bottom: 24px;
        }

        .hero-title span {
            color: var(--primary-color);
        }

        .hero-description {
            max-width: 590px;
            font-size: 17px;
            line-height: 1.8;
            margin-bottom: 30px;
        }

        .hero-search {
            max-width: 650px;
            background: #fff;
            padding: 8px;
            border-radius: 15px;
            box-shadow: var(--shadow-card);
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .hero-search-icon {
            width: 48px;
            height: 48px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--primary-color);
            background: var(--primary-light);
            border-radius: 12px;
            flex-shrink: 0;
        }

        .hero-search input {
            border: 0;
            outline: 0;
            flex: 1;
            min-width: 0;
            font-size: 14px;
        }

        .hero-search button {
            border: 0;
            background: var(--primary-color);
            color: #fff;
            border-radius: 11px;
            padding: 14px 22px;
            font-weight: 700;
        }

        .hero-buttons {
            display: flex;
            gap: 12px;
            margin-top: 25px;
        }

        .hero-primary-btn {
            background: var(--primary-color);
            color: #fff;
            border-radius: 11px;
            padding: 14px 23px;
            font-weight: 700;
            text-decoration: none;
            box-shadow: 0 14px 30px rgba(86,90,207,.23);
            transition: .3s ease;
        }

        .hero-primary-btn:hover {
            color: #fff;
            background: var(--primary-dark);
            transform: translateY(-3px);
        }

        .hero-secondary-btn {
            background: #fff;
            color: var(--secondary-color);
            border: 1px solid var(--border-color);
            border-radius: 11px;
            padding: 14px 23px;
            font-weight: 700;
            text-decoration: none;
            transition: .3s ease;
        }

        .hero-secondary-btn:hover {
            color: var(--primary-color);
            border-color: var(--primary-color);
        }

        .hero-visual {
            position: relative;
            z-index: 2;
            padding: 35px;
        }

        .hero-image-wrapper {
            position: relative;
            max-width: 520px;
            margin: auto;
        }

        .hero-image-wrapper::before {
            content: "";
            position: absolute;
            width: 100%;
            height: 100%;
            top: 22px;
            left: -22px;
            background: var(--primary-color);
            border-radius: 35px;
            opacity: .13;
            transform: rotate(-4deg);
        }

        .hero-image {
            position: relative;
            width: 100%;
            height: 520px;
            object-fit: cover;
            border-radius: 35px;
            box-shadow: 0 30px 80px rgba(40,40,100,.18);
        }

        .hero-floating-card {
            position: absolute;
            background: #fff;
            border-radius: 16px;
            box-shadow: 0 20px 60px rgba(30,30,70,.16);
            padding: 15px;
            display: flex;
            align-items: center;
            gap: 11px;
            animation: floatMotion 4s ease-in-out infinite;
        }

        .hero-floating-card.first {
            left: -35px;
            bottom: 65px;
        }

        .hero-floating-card.second {
            right: -35px;
            top: 65px;
            animation-delay: 1.5s;
        }

        .floating-icon {
            width: 44px;
            height: 44px;
            background: var(--primary-light);
            color: var(--primary-color);
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 12px;
            font-size: 20px;
        }

        .floating-text strong {
            display: block;
            color: var(--secondary-color);
            font-size: 14px;
        }

        .floating-text small {
            font-size: 11px;
        }

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

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

        .stats-strip {
            position: relative;
            z-index: 5;
            margin-top: -45px;
        }

        .stats-box {
            background: #fff;
            border-radius: 20px;
            box-shadow: var(--shadow-card);
            padding: 28px 20px;
        }

        .stat-item {
            text-align: center;
            position: relative;
        }

        .stat-item:not(:last-child)::after {
            content: "";
            position: absolute;
            right: 0;
            top: 15%;
            height: 70%;
            width: 1px;
            background: var(--border-color);
        }

        .stat-number {
            color: var(--primary-color);
            font-size: 30px;
            font-weight: 800;
        }

        .stat-label {
            font-size: 13px;
            margin-top: 3px;
        }

        .section-space {
            padding: 105px 0;
        }

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

        .section-tag {
            color: var(--primary-color);
            font-size: 12px;
            letter-spacing: 1.8px;
            text-transform: uppercase;
            font-weight: 800;
            margin-bottom: 12px;
        }

        .section-title {
            font-family: "Playfair Display", serif;
            font-size: clamp(32px, 4vw, 48px);
            line-height: 1.15;
            margin-bottom: 15px;
        }

        .section-description {
            line-height: 1.8;
            margin: 0 auto;
        }

        .category-card {
            background: #fff;
            border: 1px solid var(--border-color);
            border-radius: 18px;
            padding: 30px 20px;
            text-align: center;
            height: 100%;
            transition: .35s ease;
            position: relative;
            overflow: hidden;
        }

        .category-card::before {
            content: "";
            position: absolute;
            width: 110px;
            height: 110px;
            border-radius: 50%;
            background: var(--primary-light);
            top: -55px;
            right: -45px;
            transition: .35s ease;
        }

        .category-card:hover {
            transform: translateY(-9px);
            border-color: rgba(86,90,207,.2);
            box-shadow: var(--shadow-card);
        }

        .category-card:hover::before {
            transform: scale(2.5);
        }

        .category-image-wrap {
            margin: -30px -20px 20px;
            height: 130px;
            overflow: hidden;
            position: relative;
        }

        .category-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform .5s ease;
        }

        .category-card:hover .category-image {
            transform: scale(1.06);
        }

        .category-icon {
            width: 66px;
            height: 66px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 20px;
            border-radius: 18px;
            color: var(--primary-color);
            background: var(--primary-light);
            font-size: 27px;
            position: relative;
            z-index: 1;
            transition: .35s ease;
        }

        .category-image-wrap + .category-icon {
            margin-top: -53px;
            border: 3px solid #fff;
            box-shadow: 0 4px 14px rgba(30,30,70,.14);
        }

        .category-card:hover .category-icon {
            color: #fff;
            background: var(--primary-color);
            transform: rotate(-5deg) scale(1.05);
        }

        .category-title {
            font-size: 17px;
            margin-bottom: 8px;
            position: relative;
            z-index: 1;
        }

        .category-count {
            font-size: 12px;
            position: relative;
            z-index: 1;
        }

        .course-section {
            background: var(--light-bg);
        }

        .course-card {
            background: #fff;
            border-radius: 18px;
            overflow: hidden;
            height: 100%;
            border: 1px solid transparent;
            transition: .35s ease;
        }

        .course-card:hover {
            transform: translateY(-8px);
            border-color: rgba(86,90,207,.12);
            box-shadow: var(--shadow-card);
        }

        .course-thumbnail {
            height: 220px;
            position: relative;
            overflow: hidden;
        }

        .course-thumbnail img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform .6s ease;
        }

        .course-card:hover .course-thumbnail img {
            transform: scale(1.07);
        }

        .course-badge {
            position: absolute;
            top: 15px;
            left: 15px;
            background: #fff;
            color: var(--primary-color);
            padding: 6px 10px;
            border-radius: 7px;
            font-size: 10px;
            font-weight: 800;
            text-transform: uppercase;
        }

        .course-content {
            padding: 22px;
        }

        .course-category {
            color: var(--primary-color);
            font-size: 11px;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: .6px;
        }

        .course-title {
            font-size: 18px;
            line-height: 1.4;
            margin: 8px 0 13px;
        }

        .course-rating {
            display: flex;
            align-items: center;
            gap: 7px;
            font-size: 12px;
        }

        .course-stars {
            color: #f5a623;
        }

        .course-meta {
            display: flex;
            justify-content: space-between;
            border-top: 1px solid var(--border-color);
            padding-top: 16px;
            margin-top: 16px;
            font-size: 12px;
        }

        .course-meta i {
            color: var(--primary-color);
            margin-right: 4px;
        }

        .course-footer {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-top: 17px;
        }

        .course-price {
            color: var(--secondary-color);
            font-size: 21px;
            font-weight: 800;
        }

        /* Compact course-detail pricing/enrollment card — deliberately its
           own class rather than reusing Bootstrap's .modal-content (which
           had no built-in size discipline and produced the oversized card
           with large empty gaps around the CTA button). */
        .course-pricing-card {
            position: sticky;
            top: 100px;
            background: #fff;
            border: 1px solid rgba(0, 0, 0, 0.08);
            border-radius: 16px;
            padding: 20px;
            box-shadow: 0 6px 24px rgba(17, 17, 17, 0.06);
        }

        .course-pricing-card .course-price {
            margin-bottom: 20px;
        }

        .course-pricing-card .auth-submit {
            height: 50px;
            white-space: nowrap;
        }

        /* No divider here by design — a border-top previously used to
           separate this list from the CTA read as an unwanted line
           directly under the button. Spacing alone (24px) separates them. */
        .course-pricing-card .course-access-bullets {
            margin-top: 24px;
            padding-top: 0;
            border-top: none;
        }

        .course-pricing-card .course-access-bullets li {
            margin-bottom: 15px;
            display: flex;
            align-items: center;
        }

        .course-pricing-card .course-access-bullets li:last-child {
            margin-bottom: 0;
        }

        @media (max-width: 767.98px) {
            .course-pricing-card {
                position: static;
                padding: 16px;
            }
        }

        .course-price del {
            color: #aaa;
            font-size: 12px;
            font-weight: 500;
            margin-left: 5px;
        }

        .course-view-btn,
        .course-view-btn:hover,
        .course-view-btn:focus,
        .course-view-btn:visited,
        .course-view-btn:active {
            color: var(--primary-color);
            font-size: 13px;
            font-weight: 800;
            text-decoration: none;
        }

        .course-view-btn:focus-visible {
            outline: 2px solid var(--primary-color);
            outline-offset: 2px;
            border-radius: 2px;
        }

        .course-view-btn i {
            transition: margin .3s ease;
        }

        .course-view-btn:hover i {
            margin-left: 5px;
        }

        .feature-section {
            overflow: hidden;
        }

        .feature-image-wrap {
            position: relative;
            padding: 20px;
        }

        .feature-image {
            width: 100%;
            height: 540px;
            object-fit: cover;
            border-radius: 28px;
            box-shadow: 0 25px 70px rgba(40,40,90,.14);
        }

        .feature-experience {
            position: absolute;
            right: 0;
            bottom: 45px;
            background: #fff;
            padding: 18px 22px;
            border-radius: 15px;
            box-shadow: var(--shadow-card);
        }

        .feature-experience strong {
            display: block;
            color: var(--primary-color);
            font-size: 27px;
        }

        .feature-experience span {
            font-size: 12px;
        }

        .feature-content {
            padding-left: 25px;
        }

        .feature-list {
            list-style: none;
            padding: 0;
            margin: 30px 0;
        }

        .feature-list li {
            display: flex;
            gap: 13px;
            margin-bottom: 18px;
        }

        .feature-check {
            flex-shrink: 0;
            width: 26px;
            height: 26px;
            border-radius: 50%;
            background: var(--primary-light);
            color: var(--primary-color);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
        }

        .feature-list strong {
            color: var(--secondary-color);
            display: block;
            margin-bottom: 3px;
        }

        .feature-list span {
            font-size: 13px;
            line-height: 1.6;
        }

        .process-section {
            background: var(--secondary-color);
            position: relative;
            overflow: hidden;
        }

        .process-section .section-title,
        .process-section .section-description {
            color: #fff;
        }

        .process-section .section-description {
            color: rgba(255,255,255,.62);
        }

        .process-step {
            position: relative;
            text-align: center;
            color: #fff;
        }

        .process-step::after {
            content: "";
            position: absolute;
            top: 35px;
            left: calc(50% + 52px);
            width: calc(100% - 105px);
            height: 1px;
            background: rgba(255,255,255,.15);
        }

        .process-step:last-child::after {
            display: none;
        }

        .process-number {
            width: 70px;
            height: 70px;
            margin: 0 auto 22px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            background: rgba(86,90,207,.2);
            border: 1px solid rgba(255,255,255,.15);
            color: #fff;
            font-size: 20px;
            font-weight: 800;
            position: relative;
            z-index: 2;
        }

        .process-step h4 {
            color: #fff;
            font-size: 17px;
        }

        .process-step p {
            color: rgba(255,255,255,.58);
            font-size: 13px;
            line-height: 1.7;
            max-width: 230px;
            margin: auto;
        }

        .instructor-card {
            text-align: center;
        }

        .instructor-image-wrap {
            position: relative;
            margin-bottom: 20px;
        }

        .instructor-image {
            width: 100%;
            height: 310px;
            object-fit: cover;
            border-radius: 20px;
            filter: saturate(.92);
        }

        .instructor-social {
            position: absolute;
            bottom: -14px;
            left: 50%;
            transform: translateX(-50%);
            background: #fff;
            padding: 8px 12px;
            border-radius: 50px;
            box-shadow: var(--shadow-soft);
            display: flex;
            gap: 7px;
        }

        .instructor-social a {
            width: 30px;
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            background: var(--primary-light);
            color: var(--primary-color);
            text-decoration: none;
            font-size: 12px;
        }

        .instructor-name {
            font-size: 18px;
            margin-bottom: 4px;
        }

        .instructor-role {
            font-size: 12px;
            color: var(--primary-color);
            font-weight: 700;
        }

        .video-section {
            background: var(--light-bg);
        }

        .video-card {
            position: relative;
            overflow: hidden;
            border-radius: 24px;
            min-height: 450px;
        }

        .video-card img {
            width: 100%;
            height: 450px;
            object-fit: cover;
        }

        .video-overlay {
            position: absolute;
            inset: 0;
            background: linear-gradient(180deg, transparent 25%, rgba(12,13,35,.86));
        }

        .video-content {
            position: absolute;
            left: 35px;
            right: 35px;
            bottom: 30px;
            color: #fff;
        }

        .video-content h3 {
            color: #fff;
            font-family: "Playfair Display", serif;
            font-size: 31px;
        }

        .video-content p {
            color: rgba(255,255,255,.72);
            max-width: 600px;
            font-size: 13px;
        }

        .video-play {
            position: absolute;
            top: 50%;
            left: 50%;
            width: 74px;
            height: 74px;
            transform: translate(-50%, -50%);
            border: 0;
            border-radius: 50%;
            color: var(--primary-color);
            background: #fff;
            font-size: 25px;
            padding-left: 5px;
            box-shadow: 0 20px 50px rgba(0,0,0,.2);
            animation: pulsePlay 2s infinite;
        }

        @keyframes pulsePlay {
            0% {
                box-shadow: 0 0 0 0 rgba(255,255,255,.5);
            }

            70% {
                box-shadow: 0 0 0 20px rgba(255,255,255,0);
            }

            100% {
                box-shadow: 0 0 0 0 rgba(255,255,255,0);
            }
        }

        .testimonial-card {
            background: #fff;
            border: 1px solid var(--border-color);
            border-radius: 18px;
            padding: 28px;
            height: 100%;
            transition: .3s ease;
        }

        .testimonial-card:hover {
            transform: translateY(-7px);
            box-shadow: var(--shadow-card);
        }

        .testimonial-quote {
            width: 42px;
            height: 42px;
            background: var(--primary-light);
            color: var(--primary-color);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 18px;
        }

        .testimonial-text {
            color: #57596c;
            line-height: 1.8;
            font-size: 14px;
            margin-bottom: 24px;
        }

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

        .testimonial-avatar {
            width: 45px;
            height: 45px;
            border-radius: 50%;
            object-fit: cover;
        }

        .testimonial-avatar-fallback {
            width: 45px;
            height: 45px;
            border-radius: 50%;
            background: var(--primary-light, #eeefff);
            color: var(--primary-color, #565acf);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            flex-shrink: 0;
        }

        .testimonial-user strong {
            display: block;
            color: var(--secondary-color);
            font-size: 13px;
        }

        .testimonial-user span {
            font-size: 11px;
        }

        .faq-section {
            background: var(--light-bg);
        }

        .faq-accordion .accordion-item {
            border: 0;
            background: #fff;
            border-radius: 12px !important;
            margin-bottom: 12px;
            overflow: hidden;
        }

        .faq-accordion .accordion-button {
            box-shadow: none;
            color: var(--secondary-color);
            font-weight: 700;
            padding: 20px;
        }

        .faq-accordion .accordion-button:not(.collapsed) {
            color: var(--primary-color);
            background: #fff;
        }

        .faq-accordion .accordion-body {
            color: var(--body-color);
            font-size: 13px;
            line-height: 1.8;
            padding-top: 0;
        }

        .newsletter-section {
            padding: 90px 0;
        }

        .newsletter-box {
            background:
                radial-gradient(circle at 85% 20%, rgba(255,255,255,.16), transparent 20%),
                linear-gradient(135deg, var(--primary-color), #4448b8);
            color: #fff;
            border-radius: 30px;
            padding: 60px;
            position: relative;
            overflow: hidden;
        }

        .newsletter-box::before {
            content: "";
            position: absolute;
            width: 250px;
            height: 250px;
            border: 1px solid rgba(255,255,255,.13);
            border-radius: 50%;
            right: -80px;
            bottom: -100px;
        }

        .newsletter-box h2 {
            color: #fff;
            font-family: "Playfair Display", serif;
            font-size: 39px;
        }

        .newsletter-box p {
            color: rgba(255,255,255,.7);
            max-width: 550px;
        }

        .newsletter-form {
            background: #fff;
            padding: 7px;
            border-radius: 12px;
            display: flex;
            max-width: 540px;
            margin-top: 25px;
        }

        .newsletter-form input {
            border: 0;
            outline: 0;
            flex: 1;
            min-width: 0;
            padding: 0 15px;
        }

        .newsletter-form button {
            border: 0;
            border-radius: 8px;
            padding: 13px 20px;
            background: var(--secondary-color);
            color: #fff;
            font-weight: 700;
        }

        .main-footer {
            background: #111225;
            color: rgba(255,255,255,.58);
            padding: 75px 0 25px;
        }

        .footer-logo-image {
            display: block;
            max-height: 48px;
            max-width: 220px;
            width: auto;
            object-fit: contain;
        }

        .footer-brand {
            color: #fff;
            font-size: 17px;
            font-weight: 800;
            margin-bottom: 15px;
            display: block;
        }

        .footer-description {
            font-size: 13px;
            line-height: 1.8;
            max-width: 330px;
        }

        .footer-title {
            color: #fff;
            font-size: 14px;
            margin-bottom: 20px;
        }

        .footer-links {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .footer-links li {
            margin-bottom: 11px;
        }

        .footer-links a {
            color: rgba(255,255,255,.55);
            text-decoration: none;
            font-size: 12px;
            transition: .25s ease;
        }

        .footer-links a:hover {
            color: #fff;
            padding-left: 4px;
        }

        .footer-social {
            display: flex;
            gap: 8px;
            margin-top: 20px;
        }

        .footer-social a {
            width: 36px;
            height: 36px;
            border-radius: 9px;
            background: rgba(255,255,255,.06);
            color: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            text-decoration: none;
            transition: .3s ease;
        }

        .footer-social a:hover {
            background: var(--primary-color);
            transform: translateY(-3px);
        }

        .footer-bottom {
            border-top: 1px solid rgba(255,255,255,.07);
            margin-top: 55px;
            padding-top: 20px;
            font-size: 11px;
        }

        .modal-content {
            border: 0;
            border-radius: 20px;
            overflow: hidden;
        }

        .auth-brand-panel {
            background:
                linear-gradient(165deg, rgba(86,90,207,.92), rgba(65,69,174,.94)),
                url('/images/demo/auth.jpg') center / cover no-repeat;
            color: #fff;
            padding: 45px 35px;
            height: 100%;
        }

        .auth-brand-panel h3 {
            color: #fff;
            font-family: "Playfair Display", serif;
            font-size: 32px;
        }

        .auth-brand-panel p {
            color: rgba(255,255,255,.7);
            font-size: 13px;
            line-height: 1.8;
        }

        .auth-feature {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-top: 17px;
            font-size: 12px;
            color: rgba(255,255,255,.85);
        }

        .auth-feature i {
            color: #fff;
        }

        .auth-form-area {
            padding: 45px 35px;
        }

        .auth-form-area h4 {
            font-size: 24px;
            margin-bottom: 5px;
        }

        .auth-form-area > p {
            font-size: 12px;
        }

        .form-control-custom {
            height: 48px;
            border-radius: 10px;
            border: 1px solid var(--border-color);
            font-size: 13px;
            padding: 0 14px;
        }

        .form-control-custom:focus {
            border-color: var(--primary-color);
            box-shadow: 0 0 0 4px rgba(86,90,207,.08);
        }

        .auth-submit {
            width: 100%;
            border: 0;
            background: var(--primary-color);
            color: #fff;
            height: 48px;
            border-radius: 10px;
            font-weight: 700;
        }

        /* Buttons rendered as <a> or <button> must centre their label both
           ways: .auth-submit has a fixed height, and without flex centring
           an <a> (or a Bootstrap d-block/d-inline-block override) leaves
           the text pinned to the top-left. */
        .auth-submit,
        .hero-primary-btn,
        .hero-secondary-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            line-height: 1.25;
            cursor: pointer;
        }

        .auth-submit.d-block,
        .hero-primary-btn.d-block,
        .hero-secondary-btn.d-block {
            display: flex !important;
        }

        .auth-submit.d-inline-block,
        .hero-primary-btn.d-inline-block,
        .hero-secondary-btn.d-inline-block {
            display: inline-flex !important;
        }

        .auth-submit:disabled {
            opacity: .6;
            cursor: not-allowed;
        }

        .floating-help {
            position: fixed;
            right: 22px;
            bottom: 22px;
            z-index: 1000;
        }

        .floating-help button {
            width: 54px;
            height: 54px;
            border: 0;
            border-radius: 50%;
            background: var(--primary-color);
            color: #fff;
            font-size: 21px;
            box-shadow: 0 15px 35px rgba(86,90,207,.35);
            transition: .3s ease;
        }

        .floating-help button:hover {
            transform: scale(1.08);
            background: var(--primary-dark);
        }

        /* Progressive enhancement: content is visible by default. JS adds
           .reveal-init (see main.js) only once it has confirmed
           IntersectionObserver support, so a page where the script fails to
           load/execute never leaves content permanently hidden. */
        .reveal-init.reveal-element {
            opacity: 0;
            transform: translateY(35px);
            transition: opacity .8s ease, transform .8s ease;
        }

        .reveal-init.reveal-element.visible {
            opacity: 1;
            transform: translateY(0);
        }

        @media (prefers-reduced-motion: reduce) {
            .reveal-init.reveal-element {
                opacity: 1;
                transform: none;
                transition: none;
            }
        }

        /* --- Password show/hide toggle (injected by main.js) --- */
        .password-field-wrap {
            position: relative;
        }

        .password-field-wrap input[type="password"],
        .password-field-wrap input[type="text"] {
            padding-right: 44px;
        }

        .password-toggle-btn {
            position: absolute;
            top: 50%;
            right: 4px;
            transform: translateY(-50%);
            width: 34px;
            height: 34px;
            border: 0;
            background: transparent;
            color: var(--body-color);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
            cursor: pointer;
        }

        .password-toggle-btn:hover {
            color: var(--primary-color);
            background: var(--primary-light);
        }

        .password-toggle-btn:focus-visible {
            outline: 2px solid var(--primary-color);
            outline-offset: 2px;
        }

        /* --- Error / empty states (403, 404, 429, 500, "no data yet" blocks) --- */
        .error-state {
            max-width: 480px;
            margin: 0 auto;
        }

        .error-state-icon {
            width: 84px;
            height: 84px;
            margin: 0 auto 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            background: var(--primary-light);
            color: var(--primary-color);
            font-size: 34px;
        }

        .error-state-code {
            font-weight: 800;
            font-size: 13px;
            letter-spacing: 2px;
            color: var(--body-color);
            text-transform: uppercase;
            margin-bottom: 6px;
        }

        .empty-state {
            text-align: center;
            padding: 56px 24px;
        }

        .empty-state-icon {
            width: 64px;
            height: 64px;
            margin: 0 auto 18px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            background: var(--light-bg);
            color: var(--body-color);
            font-size: 26px;
        }

        .empty-state-title {
            color: var(--secondary-color);
            font-weight: 700;
            font-size: 17px;
            margin-bottom: 6px;
        }

        .empty-state-text {
            color: var(--body-color);
            font-size: 14px;
            max-width: 380px;
            margin: 0 auto;
        }

        @media (max-width: 991.98px) {

            .navigation-link {
                padding: 12px 0 !important;
            }

            .navigation-link::after {
                display: none;
            }

            .hero-section {
                min-height: auto;
                padding: 75px 0 100px;
            }

            .hero-visual {
                margin-top: 45px;
            }

            .hero-floating-card.first {
                left: -10px;
            }

            .hero-floating-card.second {
                right: -10px;
            }

            .feature-content {
                padding-left: 0;
                margin-top: 45px;
            }

            .process-step::after {
                display: none;
            }
        }

        @media (max-width: 767.98px) {

            .top-strip {
                display: none;
            }

            .hero-title {
                letter-spacing: -1px;
            }

            .hero-search {
                align-items: stretch;
            }

            .hero-search button {
                padding: 10px 14px;
            }

            .hero-buttons {
                flex-direction: column;
            }

            .hero-buttons a {
                text-align: center;
            }

            .hero-image {
                height: 420px;
            }

            .hero-floating-card {
                transform: scale(.85);
            }

            .hero-floating-card.first {
                left: -25px;
            }

            .hero-floating-card.second {
                right: -25px;
            }

            .stats-strip {
                margin-top: -30px;
            }

            .stat-item {
                margin: 12px 0;
            }

            .stat-item:not(:last-child)::after {
                display: none;
            }

            .section-space {
                padding: 75px 0;
            }

            .feature-image {
                height: 430px;
            }

            .newsletter-box {
                padding: 40px 25px;
            }

            .newsletter-box h2 {
                font-size: 30px;
            }

            .newsletter-form {
                flex-direction: column;
                gap: 8px;
                background: transparent;
            }

            .newsletter-form input {
                height: 48px;
                border-radius: 8px;
            }

            .newsletter-form button {
                height: 48px;
            }
        }

        /* -------------------------------------------------------------- */
        /* Student dashboard ("My Learning")                              */
        /* -------------------------------------------------------------- */

        .dashboard-welcome {
            display: flex;
            align-items: center;
            gap: 16px;
            margin-bottom: 28px;
        }

        .dashboard-welcome-avatar {
            flex: 0 0 auto;
            width: 52px;
            height: 52px;
            border-radius: 50%;
            background: var(--primary-color);
            color: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            font-weight: 800;
        }

        .dashboard-welcome-title {
            font-size: 24px;
            margin: 0 0 4px;
        }

        .dashboard-welcome-sub {
            margin: 0;
            color: var(--body-color);
            font-size: 14px;
        }

        .dashboard-empty-state {
            text-align: center;
            padding: 60px 16px;
            background: #fff;
            border: 1px solid var(--border-color);
            border-radius: var(--radius-md);
        }

        .dashboard-summary-row {
            margin-bottom: 32px;
        }

        .dashboard-summary-card {
            background: #fff;
            border: 1px solid var(--border-color);
            border-radius: var(--radius-md);
            box-shadow: var(--shadow-sm);
            padding: 18px 14px;
            text-align: center;
            height: 100%;
        }

        .dashboard-summary-icon {
            display: block;
            font-size: 20px;
            color: var(--primary-color);
            margin-bottom: 8px;
        }

        .dashboard-summary-value {
            display: block;
            font-size: 26px;
            font-weight: 800;
            color: var(--secondary-color);
            line-height: 1.2;
        }

        .dashboard-summary-label {
            display: block;
            font-size: 12px;
            color: var(--body-color);
            margin-top: 2px;
        }

        .dashboard-progress.progress {
            height: 6px;
            border-radius: 6px;
            background: var(--border-color);
        }

        .dashboard-continue-card {
            display: flex;
            gap: 22px;
            background: #fff;
            border: 1px solid var(--border-color);
            border-radius: var(--radius-md);
            box-shadow: var(--shadow-sm);
            padding: 18px;
            margin-bottom: 8px;
        }

        .dashboard-continue-thumb {
            flex: 0 0 220px;
            border-radius: var(--radius-sm);
            overflow: hidden;
            height: 140px;
        }

        .dashboard-continue-thumb img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .dashboard-continue-body {
            flex: 1 1 auto;
            min-width: 0;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        .dashboard-continue-eyebrow {
            color: var(--primary-color);
            font-size: 11px;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: .6px;
            margin-bottom: 6px;
        }

        .dashboard-continue-title {
            font-size: 20px;
            margin: 0 0 12px;
        }

        .dashboard-continue-btn {
            width: auto;
            padding-left: 28px;
            padding-right: 28px;
        }

        .dashboard-section-title {
            font-size: 20px;
        }

        .dashboard-state-badge {
            font-size: 10px;
        }

        .dashboard-state-badge-completed {
            color: var(--success-color);
        }

        .dashboard-bottom-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
            margin-top: 32px;
        }

        .dashboard-certificates-card,
        .dashboard-quicklinks-card {
            background: #fff;
            border: 1px solid var(--border-color);
            border-radius: var(--radius-md);
            box-shadow: var(--shadow-sm);
            padding: 18px 20px;
        }

        .dashboard-certificates-count {
            font-size: 22px;
            font-weight: 800;
            color: var(--secondary-color);
        }

        .dashboard-quicklinks-title {
            font-size: 13px;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: .5px;
            color: var(--body-color);
            margin-bottom: 10px;
        }

        .dashboard-quicklinks-list {
            display: flex;
            flex-wrap: wrap;
            gap: 10px 18px;
        }

        .dashboard-quicklinks-list a {
            color: var(--secondary-color);
            text-decoration: none;
            font-size: 13px;
            font-weight: 600;
        }

        .dashboard-quicklinks-list a:hover {
            color: var(--primary-color);
        }

        .dashboard-quicklinks-list i {
            color: var(--primary-color);
            margin-right: 4px;
        }

        @media (max-width: 991.98px) {
            .dashboard-continue-thumb {
                flex-basis: 160px;
                height: 110px;
            }
        }

        @media (max-width: 767.98px) {
            .dashboard-continue-card {
                flex-direction: column;
            }

            .dashboard-continue-thumb {
                flex-basis: auto;
                width: 100%;
                height: 160px;
            }

            .dashboard-continue-btn {
                width: 100%;
                text-align: center;
            }

            .dashboard-bottom-grid {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 575.98px) {
            .dashboard-welcome {
                gap: 12px;
            }

            .dashboard-welcome-title {
                font-size: 20px;
            }

            .dashboard-summary-card {
                padding: 14px 10px;
            }

            .dashboard-summary-value {
                font-size: 21px;
            }
        }

        .contact-info-card {
            background: var(--light-bg, #f6f7ff);
            border-radius: 18px;
            padding: 28px;
        }

        /* ---- UI polish: consistent alignment across dashboard + CTAs ---- */
        .auth-submit,
        .hero-primary-btn,
        .hero-secondary-btn {
            min-height: 48px;
            padding-top: 0;
            padding-bottom: 0;
            white-space: normal;
        }

        .auth-submit:focus-visible,
        .hero-primary-btn:focus-visible,
        .hero-secondary-btn:focus-visible {
            outline: 3px solid rgba(86, 90, 207, .35);
            outline-offset: 2px;
        }

        /* Equal-height course cards with the primary button pinned to the
           bottom, so buttons line up even when a card has extra content. */
        .course-card {
            display: flex;
            flex-direction: column;
            height: 100%;
        }

        .course-card .course-content {
            flex: 1 1 auto;
            display: flex;
            flex-direction: column;
        }

        .course-card .course-content > .auth-submit:first-of-type,
        .course-card .course-content > a.auth-submit {
            margin-top: auto;
        }

        .dashboard-continue-btn {
            align-self: flex-start;
        }

        .dashboard-certificates-card > .d-flex {
            height: 100%;
            align-items: center;
        }

        .dashboard-quicklinks-list {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 10px 16px;
        }

        .dashboard-quicklinks-list a {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            text-decoration: none;
        }

        .footer-brand a,
        footer .footer-logo,
        footer a.footer-brand {
            text-decoration: none;
        }

        @media (max-width: 767.98px) {
            .dashboard-continue-btn {
                align-self: stretch;
            }
        }

        /* ---- Purchase flow: checkout, result pages, orders, invoice ---- */
        .pay-shell { max-width: 1000px; margin: 0 auto; }
        .pay-title { font-size: 28px; font-weight: 800; margin: 0 0 6px; }
        .pay-sub { color: var(--muted-color, #6b6d80); margin: 0 0 24px; }
        .pay-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; align-items: start; }
        .pay-card { background: #fff; border: 1px solid var(--border-color); border-radius: 18px; box-shadow: 0 8px 28px rgba(21, 22, 43, .06); padding: 28px; }
        .pay-card-title { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--primary-color); margin: 0 0 16px; }
        .pay-course { display: flex; gap: 16px; align-items: center; padding-bottom: 20px; margin-bottom: 8px; border-bottom: 1px solid var(--border-color); }
        .pay-course img { width: 96px; height: 72px; border-radius: 12px; object-fit: cover; flex: 0 0 auto; }
        .pay-course h2 { font-size: 18px; margin: 0 0 4px; line-height: 1.3; }
        .pay-course small { color: var(--muted-color, #6b6d80); }
        .pay-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 11px 0; font-size: 15px; }
        .pay-row > span:first-child { color: var(--muted-color, #6b6d80); }
        .pay-row > span:last-child { font-weight: 600; text-align: right; }
        .pay-row.pay-discount > span:last-child { color: var(--success-color); }
        .pay-row.pay-total { margin-top: 6px; padding-top: 16px; border-top: 2px dashed var(--border-color); }
        .pay-row.pay-total > span { color: var(--dark-color, #15162b); font-size: 20px; font-weight: 800; }
        .pay-gst-note { font-size: 12px; color: var(--muted-color, #6b6d80); margin: -4px 0 0; text-align: right; }
        .pay-benefits { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; font-size: 14px; }
        .pay-benefits i { color: var(--success-color); margin-right: 8px; }
        .pay-cta { width: 100%; height: 54px; font-size: 16px; border-radius: 12px; }
        .pay-secure { display: flex; gap: 8px; align-items: center; justify-content: center; text-align: center; font-size: 12.5px; color: var(--muted-color, #6b6d80); margin: 14px 0 0; }
        .pay-methods { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; }
        .pay-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border: 1px solid var(--border-color); border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--secondary-color); background: #fafaff; }
        .pay-error { display: none; margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: #fdecec; color: #a12b2b; font-size: 14px; text-align: center; }

        .pay-result { max-width: 560px; margin: 0 auto; text-align: center; }
        .pay-result .pay-card { padding: 36px 32px; }
        .pay-icon { width: 76px; height: 76px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 38px; margin-bottom: 18px; }
        .pay-icon.ok { background: #e6f7ee; color: var(--success-color); }
        .pay-icon.bad { background: #fdecec; color: #d64545; }
        .pay-icon.wait { background: #fff4e0; color: #d98a00; }
        .pay-result h1 { font-size: 26px; font-weight: 800; margin: 0 0 8px; }
        .pay-result .pay-sub { margin-bottom: 22px; }
        .pay-receipt { text-align: left; margin: 0 0 24px; padding: 6px 18px; background: #fafaff; border: 1px solid var(--border-color); border-radius: 14px; }
        .pay-receipt .pay-row { padding: 9px 0; font-size: 14px; border-bottom: 1px solid #eeeef6; }
        .pay-receipt .pay-row:last-child { border-bottom: 0; }
        .pay-receipt .pay-row.pay-total { margin-top: 0; padding-top: 12px; border-top: 0; }
        .pay-receipt .pay-row.pay-total > span { font-size: 17px; }
        .pay-actions { display: grid; gap: 10px; }
        .pay-actions-split { grid-template-columns: 1fr 1fr; }

        .status-pill { display: inline-flex; align-items: center; justify-content: center; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
        .status-pill.paid { background: #e6f7ee; color: #12834a; }
        .status-pill.pending { background: #fff4e0; color: #a76a00; }
        .status-pill.failed, .status-pill.cancelled { background: #fdecec; color: #b53232; }
        .status-pill.refunded { background: #eceefb; color: #4a4fb8; }

        .orders-card { background: #fff; border: 1px solid var(--border-color); border-radius: 18px; box-shadow: 0 8px 28px rgba(21, 22, 43, .05); overflow: hidden; }
        .orders-table { margin: 0; width: 100%; }
        .orders-table th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-color, #6b6d80); background: #fafaff; padding: 14px 18px; border-bottom: 1px solid var(--border-color); white-space: nowrap; }
        .orders-table td { padding: 16px 18px; vertical-align: middle; border-bottom: 1px solid #eeeef6; }
        .orders-table tr:last-child td { border-bottom: 0; }
        .orders-table td:first-child { white-space: nowrap; }
        .orders-actions { display: flex; gap: 8px; justify-content: flex-end; }
        .btn-mini { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 9px; font-size: 13px; font-weight: 700; text-decoration: none; border: 1px solid var(--border-color); background: #fff; color: var(--secondary-color); white-space: nowrap; }
        .btn-mini:hover { border-color: var(--primary-color); color: var(--primary-color); }
        .btn-mini.primary { background: var(--primary-color); border-color: var(--primary-color); color: #fff; }
        .btn-mini.primary:hover { background: var(--primary-dark); color: #fff; }

        @media (max-width: 860px) {
            .pay-grid { grid-template-columns: 1fr; }
            .pay-card { padding: 22px 18px; }
            .pay-title { font-size: 23px; }
            .pay-actions-split { grid-template-columns: 1fr; }
            .pay-course img { width: 78px; height: 60px; }
            .orders-table thead { display: none; }
            .orders-table, .orders-table tbody, .orders-table tr, .orders-table td { display: block; width: 100%; }
            .orders-table tr { padding: 14px 16px; border-bottom: 1px solid #eeeef6; }
            .orders-table td { padding: 4px 0; border: 0; display: flex; justify-content: space-between; gap: 12px; text-align: right; }
            .orders-table td::before { content: attr(data-label); color: var(--muted-color, #6b6d80); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; text-align: left; }
            .orders-table td.orders-actions-cell { padding-top: 10px; justify-content: flex-end; }
            .orders-table td.orders-actions-cell::before { content: none; }
        }

        @media print {
            header, footer, .floating-help, .pay-actions, .orders-actions { display: none !important; }
        }
