/* ==========================================================================
   XtClasses LMS - Public website (loaded after app.css)
   ========================================================================== */

body.xt-front { background: #fff; }

/* Navbar ----------------------------------------------------------------- */
.xt-navbar { position: sticky; top: 0; z-index: 1030; background: rgba(255, 255, 255, .95); backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid transparent; transition: border-color var(--xt-transition), box-shadow var(--xt-transition); padding: .85rem 0; }
.xt-navbar.scrolled { border-bottom-color: var(--xt-border); box-shadow: var(--xt-shadow-sm); }
.xt-navbar .nav-link { color: var(--xt-body); font-weight: 500; font-size: .925rem; padding: .5rem .9rem !important; border-radius: var(--xt-radius-sm); }
.xt-navbar .nav-link:hover { color: var(--xt-primary); }
.xt-navbar .nav-link.active { color: var(--xt-primary); }
.xt-navbar .navbar-toggler { border: 0; padding: .4rem; font-size: 1.5rem; color: var(--xt-heading); box-shadow: none; }
.xt-navbar .nav-search { position: relative; width: 260px; }
.xt-navbar .nav-search i { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: #9ca3af; }
.xt-navbar .nav-search .form-control { padding-left: 2.35rem; background: #f3f4f6; border-color: transparent; border-radius: 99px; }
.xt-navbar .nav-search .form-control:focus { background: #fff; border-color: var(--xt-primary); }
@media (max-width: 991.98px) {
    .xt-navbar .offcanvas { max-width: 85vw; }
    .xt-navbar .offcanvas .nav-link { padding: .75rem 1rem !important; }
    .xt-navbar .nav-search { width: 100%; }
}

/* Sections --------------------------------------------------------------- */
.section { padding: 5rem 0; }
.section-sm { padding: 3.5rem 0; }
.section-alt { background: var(--xt-bg); }
.section-head { max-width: 640px; margin-bottom: 2.75rem; }
.section-head.text-center { margin-left: auto; margin-right: auto; }
.section-eyebrow { display: inline-flex; align-items: center; gap: .4rem; font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--xt-primary); background: var(--xt-primary-light); padding: .35rem .8rem; border-radius: 99px; margin-bottom: 1rem; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.25rem); line-height: 1.2; margin-bottom: .75rem; }
.section-text { color: var(--xt-muted); font-size: 1.05rem; margin: 0; }
@media (max-width: 767.98px) {
    .section { padding: 3.5rem 0; }
    .section-sm { padding: 2.5rem 0; }
    .section-head { margin-bottom: 2rem; }
}

/* Hero ------------------------------------------------------------------- */
.hero { position: relative; padding: 5rem 0 6rem; overflow: hidden; background: radial-gradient(1000px 500px at 85% -10%, rgba(var(--xt-primary-rgb), .12), transparent 60%), radial-gradient(800px 400px at -10% 110%, rgba(var(--xt-secondary-rgb), .1), transparent 60%), #fff; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); line-height: 1.1; letter-spacing: -.03em; margin-bottom: 1.25rem; }
.hero h1 .highlight { background: linear-gradient(90deg, var(--xt-primary), #7c3aed); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { color: var(--xt-muted); font-size: 1.15rem; max-width: 540px; margin-bottom: 2rem; }
.hero-search { background: #fff; border: 1px solid var(--xt-border); border-radius: 14px; padding: .4rem; box-shadow: var(--xt-shadow-md); display: flex; gap: .4rem; max-width: 540px; }
.hero-search .btn { white-space: nowrap; flex-shrink: 0; }
.hero-search .form-control { border: 0; box-shadow: none; padding-left: 1rem; background: transparent; }
.hero-trust { display: flex; align-items: center; gap: 1rem; margin-top: 2rem; color: var(--xt-muted); font-size: .9rem; flex-wrap: wrap; }
.avatar-stack { display: flex; }
.avatar-stack .avatar { border: 2px solid #fff; margin-left: -10px; }
.avatar-stack .avatar:first-child { margin-left: 0; }
.hero-visual { position: relative; }
.hero-visual .hero-card-main { border-radius: 20px; overflow: hidden; box-shadow: var(--xt-shadow-lg); aspect-ratio: 4 / 3.2; font-size: 5rem; }
.hero-float { position: absolute; background: #fff; border-radius: var(--xt-radius); box-shadow: var(--xt-shadow-lg); padding: .85rem 1rem; display: flex; align-items: center; gap: .75rem; font-size: .85rem; animation: xt-float 5s ease-in-out infinite; }
.hero-float strong { display: block; color: var(--xt-heading); font-size: 1rem; }
.hero-float.f1 { left: -28px; bottom: 40px; }
.hero-float.f2 { right: -18px; top: 36px; animation-delay: -2.5s; }
@keyframes xt-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (max-width: 991.98px) {
    .hero { padding: 3rem 0 4rem; text-align: center; }
    .hero .lead, .hero-search { margin-left: auto; margin-right: auto; }
    .hero-trust { justify-content: center; }
    .hero-visual { margin-top: 3rem; max-width: 520px; margin-left: auto; margin-right: auto; }
    .hero-float.f1 { left: 8px; }
    .hero-float.f2 { right: 8px; }
}
@media (max-width: 575.98px) {
    .hero-search { flex-direction: column; }
    .hero-search .btn { width: 100%; }
    .hero-float { display: none; }
}

/* Stats strip ------------------------------------------------------------ */
.stats-strip { background: var(--xt-dark); color: #fff; border-radius: var(--xt-radius-lg); padding: 2rem; margin-top: -3rem; position: relative; z-index: 2; box-shadow: var(--xt-shadow-lg); }
.stats-strip .stat { text-align: center; }
.stats-strip .stat strong { display: block; font-size: 1.85rem; font-weight: 700; color: #fff; line-height: 1.2; }
.stats-strip .stat span { color: #9ca3af; font-size: .9rem; }
@media (max-width: 767.98px) { .stats-strip { margin-top: -2rem; padding: 1.5rem 1rem; } .stats-strip .stat strong { font-size: 1.5rem; } }

/* Category cards --------------------------------------------------------- */
.category-card { display: flex; align-items: center; gap: 1rem; padding: 1.25rem; border: 1px solid var(--xt-border); border-radius: var(--xt-radius); background: #fff; color: var(--xt-body); transition: all var(--xt-transition); height: 100%; }
.category-card:hover { border-color: var(--xt-primary); box-shadow: var(--xt-shadow-md); transform: translateY(-3px); color: var(--xt-body); }
.category-card h6 { margin: 0 0 .15rem; font-size: .95rem; }
.category-card small { color: var(--xt-muted); }
.category-card:hover .icon-box { background: var(--xt-primary); color: #fff; }

/* Course cards ----------------------------------------------------------- */
.course-card { border: 1px solid var(--xt-border); border-radius: var(--xt-radius); background: #fff; overflow: hidden; height: 100%; display: flex; flex-direction: column; transition: transform var(--xt-transition), box-shadow var(--xt-transition); box-shadow: var(--xt-shadow-sm); }
.course-card:hover { transform: translateY(-4px); box-shadow: var(--xt-shadow-lg); }
.course-card .course-thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; display: block; }
.course-card .course-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.course-card:hover .course-thumb img { transform: scale(1.05); }
.course-card .course-thumb .badge { position: absolute; top: .75rem; left: .75rem; }
.course-card .course-body { padding: 1.1rem 1.1rem 1rem; flex: 1; display: flex; flex-direction: column; }
.course-card .course-cat { font-size: .75rem; font-weight: 600; color: var(--xt-primary); text-transform: uppercase; letter-spacing: .04em; margin-bottom: .4rem; }
.course-card .course-title { font-size: 1rem; line-height: 1.4; margin-bottom: .5rem; }
.course-card .course-title a { color: var(--xt-heading); }
.course-card .course-title a:hover { color: var(--xt-primary); }
.course-card .course-meta { display: flex; flex-wrap: wrap; gap: .4rem 1rem; color: var(--xt-muted); font-size: .8rem; margin-bottom: .75rem; }
.course-card .course-meta i { margin-right: .25rem; }
.course-card .course-foot { margin-top: auto; padding-top: .85rem; border-top: 1px solid var(--xt-border); display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.course-card .instructor { display: flex; align-items: center; gap: .5rem; font-size: .8125rem; color: var(--xt-body); min-width: 0; }
.course-card .instructor span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.price { font-weight: 700; color: var(--xt-heading); font-size: 1.05rem; white-space: nowrap; }
.price del { color: var(--xt-muted); font-weight: 400; font-size: .85rem; margin-left: .3rem; }
.price.free { color: var(--xt-success); }
.rating { color: #f59e0b; font-size: .8rem; display: inline-flex; align-items: center; gap: 1px; }
.rating-value { font-weight: 600; color: var(--xt-heading); font-size: .85rem; margin-right: .25rem; }

/* Features --------------------------------------------------------------- */
.feature-card { padding: 1.75rem; border-radius: var(--xt-radius-lg); background: #fff; border: 1px solid var(--xt-border); height: 100%; transition: all var(--xt-transition); }
.feature-card:hover { box-shadow: var(--xt-shadow-md); border-color: transparent; }
.feature-card h5 { font-size: 1.05rem; margin: 1.1rem 0 .5rem; }
.feature-card p { color: var(--xt-muted); margin: 0; font-size: .925rem; }

/* Testimonials ----------------------------------------------------------- */
.testimonial-card { background: #fff; border: 1px solid var(--xt-border); border-radius: var(--xt-radius-lg); padding: 1.75rem; height: 100%; display: flex; flex-direction: column; }
.testimonial-card .quote { font-size: .975rem; color: var(--xt-body); margin: 1rem 0 1.5rem; flex: 1; }
.testimonial-card .author { display: flex; align-items: center; gap: .75rem; }
.testimonial-card .author strong { display: block; color: var(--xt-heading); font-size: .925rem; }
.testimonial-card .author small { color: var(--xt-muted); }

/* CTA -------------------------------------------------------------------- */
.cta-box { background: linear-gradient(135deg, var(--xt-primary) 0%, #7c3aed 100%); border-radius: 24px; padding: 3.5rem; color: #fff; position: relative; overflow: hidden; }
.cta-box::before { content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%; background: rgba(255, 255, 255, .08); right: -100px; top: -140px; }
.cta-box > * { position: relative; }
.cta-box h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.cta-box p { color: rgba(255, 255, 255, .85); font-size: 1.05rem; }
.cta-box .btn-light { --bs-btn-color: var(--xt-primary); --bs-btn-bg: #fff; --bs-btn-hover-bg: #f3f4f6; font-weight: 600; }
@media (max-width: 767.98px) { .cta-box { padding: 2.25rem 1.5rem; text-align: center; border-radius: var(--xt-radius-lg); } }

/* Page banner (inner pages) ---------------------------------------------- */
.page-banner { background: var(--xt-bg); padding: 3rem 0; border-bottom: 1px solid var(--xt-border); }
.page-banner h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: .5rem; }

/* Footer ----------------------------------------------------------------- */
.xt-site-footer { background: var(--xt-dark); color: #9ca3af; padding: 4rem 0 0; font-size: .9rem; }
.xt-site-footer .xt-brand { color: #fff; }
.xt-site-footer .xt-brand span b { color: #a5b4fc; }
.xt-site-footer h6 { color: #fff; font-size: .95rem; margin-bottom: 1.1rem; }
.xt-site-footer ul { list-style: none; padding: 0; margin: 0; }
.xt-site-footer li { margin-bottom: .6rem; }
.xt-site-footer a { color: #9ca3af; }
.xt-site-footer a:hover { color: #fff; }
.xt-site-footer .contact-line { display: flex; gap: .6rem; margin-bottom: .75rem; }
.xt-site-footer .contact-line i { color: #a5b4fc; }
.xt-site-footer .social { display: flex; gap: .5rem; margin-top: 1.25rem; }
.xt-site-footer .social a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .07); display: inline-flex; align-items: center; justify-content: center; color: #d1d5db; }
.xt-site-footer .social a:hover { background: var(--xt-primary); color: #fff; }
.xt-site-footer .footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 3rem; padding: 1.25rem 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; font-size: .85rem; }
@media (max-width: 767.98px) { .xt-site-footer { padding-top: 3rem; } .xt-site-footer .footer-bottom { justify-content: center; text-align: center; } }

/* Back to top ------------------------------------------------------------ */
.back-to-top { position: fixed; right: 1.25rem; bottom: 1.25rem; width: 44px; height: 44px; border-radius: 50%; background: var(--xt-primary); color: #fff; border: 0; box-shadow: var(--xt-shadow-md); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all var(--xt-transition); z-index: 1020; }
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--xt-primary-dark); }

/* Catalog filters ------------------------------------------------------- */
.filter-title { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--xt-muted); font-weight: 600; margin-bottom: .6rem; }
.filter-list, .filter-list ul { list-style: none; padding: 0; margin: 0; }
.filter-list ul { padding-left: .85rem; border-left: 1px solid var(--xt-border); margin: .15rem 0 .35rem .6rem; }
.filter-list a { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .38rem .6rem; border-radius: var(--xt-radius-sm); color: var(--xt-body); font-size: .9rem; }
.filter-list a span { font-size: .75rem; color: var(--xt-muted); }
.filter-list a:hover { background: #f3f4f6; color: var(--xt-heading); }
.filter-list a.active { background: var(--xt-primary-light); color: var(--xt-primary); font-weight: 600; }
@media (min-width: 992px) {
    .catalog-filters { position: sticky; top: 90px; max-height: calc(100vh - 110px); overflow-y: auto; padding-right: .25rem; }
}

/* Course detail ---------------------------------------------------------- */
.course-hero { background: linear-gradient(135deg, #111827 0%, #1e1b4b 100%); color: #d1d5db; padding: 3rem 0 3.5rem; }
.course-hero h1 { color: #fff; font-size: clamp(1.6rem, 3.2vw, 2.4rem); line-height: 1.2; margin-bottom: .85rem; }
.course-hero .lead { color: #c7d2fe; font-size: 1.08rem; }
.course-hero .breadcrumb-item a, .course-hero .breadcrumb-item.active, .course-hero .breadcrumb-item + .breadcrumb-item::before { color: #a5b4fc; }
.course-hero .meta { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-size: .9rem; margin-top: 1.25rem; }
.course-hero .meta i { color: #a5b4fc; margin-right: .3rem; }
.course-hero .rating-value { color: #fbbf24; }
.course-hero a { color: #c7d2fe; }
.course-hero a:hover { color: #fff; }
.buy-card { position: sticky; top: 90px; overflow: hidden; box-shadow: var(--xt-shadow-lg); }
@media (min-width: 992px) { .buy-card-wrap { margin-top: -15rem; } }
.buy-card .media { position: relative; aspect-ratio: 16/9; background: #000; display: block; }
.buy-card .media img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.buy-card .media .play { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; gap: .35rem; font-weight: 600; background: rgba(17, 24, 39, .35); border: 0; width: 100%; }
.buy-card .media .play i { font-size: 3.25rem; text-shadow: 0 4px 16px rgba(0, 0, 0, .4); }
.buy-card .big-price { font-size: 2rem; font-weight: 700; color: var(--xt-heading); line-height: 1; }
.buy-card .includes li { display: flex; gap: .6rem; padding: .3rem 0; font-size: .9rem; }
.buy-card .includes i { color: var(--xt-primary); width: 18px; }
.outcomes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .6rem 1.5rem; }
.outcomes-grid div { display: flex; gap: .6rem; font-size: .925rem; }
.outcomes-grid i { color: var(--xt-success); }
.collapsible-text { position: relative; max-height: 320px; overflow: hidden; }
.collapsible-text.expanded { max-height: none; }
.collapsible-text:not(.expanded)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; background: linear-gradient(transparent, #fff); }
.mobile-buy-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030; background: #fff; border-top: 1px solid var(--xt-border); box-shadow: 0 -6px 20px rgba(16, 24, 40, .08); padding: .75rem 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
@media (min-width: 992px) { .mobile-buy-bar { display: none; } }
@media (max-width: 991.98px) { body.has-buy-bar { padding-bottom: 76px; } body.has-buy-bar .back-to-top { bottom: 90px; } }

/* Get-the-app: store badges and QR code -------------------------------- */
.app-badges { display: flex; flex-wrap: wrap; gap: .6rem; }
.app-badge { display: inline-flex; align-items: center; gap: .6rem; min-width: 168px; padding: .5rem 1rem; border-radius: 10px; background: #111827; color: #fff; text-decoration: none; line-height: 1.1; transition: transform .15s ease, background .15s ease; }
.app-badge:hover { background: #000; color: #fff; transform: translateY(-1px); }
.app-badge i { font-size: 1.6rem; }
.app-badge span { display: flex; flex-direction: column; font-weight: 600; font-size: 1.05rem; }
.app-badge small { font-size: .65rem; font-weight: 500; letter-spacing: .02em; opacity: .85; }
.app-badge.disabled { background: #6b7280; cursor: default; transform: none; }
.app-badge-sm { min-width: 140px; padding: .4rem .8rem; }
.app-badge-sm i { font-size: 1.3rem; }
.app-badge-sm span { font-size: .9rem; }
.buy-card .app-badges { flex-direction: column; }
.buy-card .app-badge { width: 100%; justify-content: center; }
.app-badges-light .app-badge { background: #fff; color: #111827; }
.app-badges-light .app-badge:hover { background: #f3f4f6; color: #111827; }
.app-badges-light .app-badge.disabled { background: rgba(255, 255, 255, .7); color: #374151; }

.app-qr { display: flex; align-items: center; gap: .85rem; margin-top: 1rem; padding: .75rem; border: 1px dashed var(--xt-border, #e5e7eb); border-radius: 12px; font-size: .8rem; color: var(--xt-muted, #6b7280); }
.app-qr svg { width: 84px; height: 84px; flex: 0 0 84px; background: #fff; border-radius: 6px; }
.app-qr svg .dark { fill: #111827; }
.app-qr-light { margin-top: 0; max-width: 260px; border-color: rgba(255, 255, 255, .45); color: rgba(255, 255, 255, .9); }
.app-qr-lg { flex-direction: column; text-align: center; max-width: 260px; padding: 1.5rem; background: #fff; border-style: solid; box-shadow: 0 10px 30px rgba(17, 24, 39, .08); }
.app-qr-lg svg { width: 200px; height: 200px; flex-basis: auto; }
.app-points { display: inline-block; text-align: left; }
.app-points li { display: flex; gap: .6rem; margin-bottom: .6rem; color: var(--xt-body, #374151); }
.app-points i { color: var(--xt-primary, #4f46e5); }