:root {
    --primary: #6d0eb1;
    --primary-dark: #550a8c;
    --accent: #f7c948;
    --white: #fff;
    --dark: #1b2332;
    --gray-100: #f4f5f7;
    --gray-200: #e6e8ec;
    --gray-400: #9aa0a6;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --font: "Poppins", system-ui, -apple-system, sans-serif;
    --w: 1320px;
    --border-50: 50px;
}
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: var(--font);
    color: var(--gray-800);
    line-height: 1.55;
    background: #fff;
    overflow-x: clip;
}
a {
    text-decoration: none;
    color: inherit;
}
ul {
    list-style: none;
}
img {
    max-width: 100%;
    display: block;
}
button,
input {
    font-family: inherit;
    border: 0;
    outline: 0;
    background: none;
}
.wrap {
    width: 100%;
    max-width: var(--w);
    margin: 0 auto;
    padding: 0 24px;
}

#preloader {
    position: fixed;
    inset: 0;
    background: #fff;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition:
        opacity 0.35s,
        visibility 0.35s;
}
#preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.spinner {
    width: 44px;
    height: 44px;
    border: 3px solid #eee;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* HERO + HEADER — fundo cobre top bar até redes */
.hero-block {
    position: relative;
    /* background:
    linear-gradient(
      100deg,
      rgba(18, 22, 32, 0.88) 0%,
      rgba(18, 22, 32, 0.55) 50%,
      rgba(18, 22, 32, 0.4) 100%
    ),
    url("https://images.unsplash.com/photo-1498050108023-c5249f4df085?w=1800&q=80")
      center/cover no-repeat; */
    color: #fff;
    padding-bottom: 70px;
}
/* Top bar: idioma à esquerda | menu + redes juntos à direita */
.top-bar {
    font-size: 12px;
}
.top-bar .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 42px;
    gap: 16px;
}
.lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    font-size: 12px;
}
.lang-btn:hover {
    color: #fff;
}
.top-right {
    display: flex;
    align-items: center;
    gap: 22px;
}
.top-nav {
    display: flex;
    align-items: center;
    gap: 18px;
}
.top-nav a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    font-weight: 500;
    position: relative;
}
.top-nav a:hover {
    color: #fff;
}
.top-nav a .tag-new {
    position: absolute;
    top: -10px;
    right: -22px;
    background: #ff3b5c;
    color: #fff;
    font-size: 8px;
    font-weight: 700;
    padding: 1px 4px;
    text-transform: uppercase;
}
.top-social {
    display: flex;
    align-items: center;
    gap: 14px;
}
.top-social a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 13px;
}
.top-social a:hover {
    color: #fff;
}

/* Header: logo | search centrado | ações  (space-between) */
.header-main {
    padding: 16px 0 12px;
}
.header-main .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
}
.logo-mark {
    width: 38px;
    height: 38px;

    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 13px;
}
.header-search {
    display: flex;
    align-items: stretch;
    background: #fff;
    height: 46px;
    flex: 1;
    max-width: 520px;
    position: relative;
    margin: 0 auto;
}
.search-cat {
    position: relative;
    flex-shrink: 0;
}
.search-cat-btn {
    height: 100%;
    padding: 0 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-700);
    border-right: 1px solid var(--gray-200);
    cursor: default;
    white-space: nowrap;
    background: #fff;
}
.search-cat-btn .fa-chevron-down {
    font-size: 9px;
    color: var(--gray-400);
}
/* Categorias ao HOVER (não clique) */
.search-cat-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.14);
    z-index: 50;
}
.search-cat:hover .search-cat-menu,
.search-cat-menu:hover {
    display: block;
}
.search-cat-menu button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 11px 16px;
    font-size: 13px;
    color: var(--gray-700);
    cursor: pointer;
}
.search-cat-menu button:hover {
    background: #f3eef9;
    color: var(--primary);
}
.header-search input {
    flex: 1;
    padding: 0 14px;
    font-size: 13px;
    color: var(--gray-800);
    min-width: 0;
}
.header-search input::placeholder {
    color: var(--gray-400);
}
.header-search .search-go {
    width: 50px;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}
.header-search .search-go:hover {
    background: var(--primary-dark);
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}
.header-actions a,
.header-actions .link-login {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.92);
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
}
.header-actions a:hover,
.header-actions .link-login:hover {
    color: var(--accent);
}
.btn-signup {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    cursor: pointer;
    border-radius: var(--border-50) !important;
}
.btn-signup:hover {
    background: var(--primary-dark);
}
.icon-heart {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    cursor: pointer;
}
.mobile-toggle {
    display: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    padding: 48px 0 100px;
}
.hero-text h1 {
    font-size: clamp(2.3rem, 4.2vw, 3.5rem);
    font-weight: 700;
    line-height: 1.12;
    margin-bottom: 16px;
    letter-spacing: -0.4px;
}
.hero-text p {
    font-size: 15px;
    opacity: 0.9;
    max-width: 460px;
    margin-bottom: 28px;
    line-height: 1.7;
}
.btn-join {
    display: inline-flex;
    padding: 14px 30px;
    background: var(--primary);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    border-radius: var(--border-50) !important;
}
.btn-join:hover {
    background: var(--primary-dark);
}
.phone-mock {
    width: 250px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 28px;
    padding: 10px;
    box-shadow: 0 28px 56px rgba(0, 0, 0, 0.35);
}
.phone-inner {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    color: var(--gray-800);
}
.phone-inner img {
    width: 100%;
    height: 135px;
    object-fit: cover;
}
.phone-body {
    padding: 12px 14px 14px;
}
.phone-body h4 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
}
.phone-body .st {
    font-size: 11px;
    color: var(--gray-500);
    margin-bottom: 10px;
}
.phone-body .st i {
    color: #f1c40f;
}
.btn-phone {
    width: 100%;
    padding: 9px;
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    margin-bottom: 8px;
}
.phone-wish {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--gray-500);
    cursor: pointer;
}
/* Features: ícone em cima → título → texto (bloco centrado) */
.hero-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding-top: 36px;

    margin-top: 10px;
}
.hf-item {
    display: flex;
    flex-direction: column;

    gap: 12px;
}
.hf-item .ico {
    width: 52px;
    height: 52px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    color: #fff;
}
.hf-item h4 {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
    color: #fff;
}
.hf-item p {
    font-size: 13px;
    opacity: 0.85;
    line-height: 1.6;
    margin: 0;
    max-width: 260px;
}

/* CATEGORIAS — layout MasterStudy:
   [ Graphic 2x2 ] [ Weight ]
   [ Graphic 2x2 ] [ Env    ]
   [ Photo ] [ Music ] [ Software ] */
.section-cats {
    padding: 55px 0 45px;
    background: #fff;
}
.cats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 170px 170px 170px;
    grid-template-areas:
        "big big weight"
        "big big env"
        "photo music soft";
    gap: 12px;
}
.cat-item {
    position: relative;
    overflow: hidden;
    display: block;
    min-height: 0;
    height: 100%;
}
.cat-item.big {
    grid-area: big;
}
.cat-item.weight {
    grid-area: weight;
}
.cat-item.env {
    grid-area: env;
}
.cat-item.photo {
    grid-area: photo;
}
.cat-item.music {
    grid-area: music;
}
.cat-item.soft {
    grid-area: soft;
}
.cat-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.45s;
}
.cat-item:hover img {
    transform: scale(1.05);
}
.cat-item .shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.72) 0%,
        rgba(0, 0, 0, 0.05) 55%
    );
    pointer-events: none;
}
.cat-item .lab {
    position: absolute;
    left: 16px;
    bottom: 14px;
    z-index: 1;
    color: #fff;
}
.cat-item .lab h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 2px;
}
.cat-item .lab span {
    font-size: 12px;
    opacity: 0.85;
}

/* NEWSLETTER */
.newsletter {
    background: var(--primary);
    color: #fff;
}
.newsletter .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    min-height: 90px;
    padding: 32px 0;

    flex-wrap: wrap;
}
.newsletter-left h3 {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}
.newsletter-left p {
    font-size: 12px;
    opacity: 0.88;
    max-width: 480px;
    margin: 0;
    line-height: 1.5;
}
.newsletter-right {
    /* display: flex; */
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.newsletter-right .lbl {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    padding-bottom: 0.5rem !important;
}
.newsletter-right form {
    display: flex;
    height: 44px;
}
.newsletter-right input {
    width: 340px;
    padding: 0 14px;
    background: #fff;
    color: var(--gray-800);
    font-size: 13px;
}
.newsletter-right button {
    padding: 0 20px;
    background: var(--dark);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    cursor: pointer;
}

/* CURSOS RECENTES */
.section-courses {
    background: var(--gray-100);
    padding: 55px 0 50px;
    overflow: visible;
}
.section-courses h2 {
    text-align: center;
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 20px;
}
.filters {
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 26px;
}
.filters button {
    padding: 7px 16px;
    font-size: 12px;
    font-weight: 500;
    color: var(--gray-600);
    background: #fff;
    border-radius: 20px;
    cursor: pointer;
}
.filters button.active,
.filters button:hover {
    background: var(--primary);
    color: #fff;
}
/* Cards do carrossel popular (mantém classes antigas) */
.course-card {
    position: relative;
    background: #fff;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
    cursor: pointer;
}
.course-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 20;
}
.course-card .thumb {
    position: relative;
    height: 128px;
    overflow: hidden;
}
.course-card .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.course-card .badge {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 2px 8px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
}
.badge.hot {
    background: #e74c3c;
}
.badge.new {
    background: #27ae60;
}
.badge.special {
    background: #e67e22;
}
.course-card .body {
    padding: 12px 13px 13px;
}
.course-card .cat {
    font-size: 11px;
    color: var(--gray-500);
    margin-bottom: 2px;
}
.course-card .title {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-900);
    line-height: 1.35;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 34px;
}
.course-card .stats {
    display: flex;
    gap: 12px;
    font-size: 11px;
    color: var(--gray-400);
    margin-bottom: 10px;
}
.course-card .stats span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.course-card .wish-line {
    font-size: 11px;
    color: var(--gray-400);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.course-card .foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.course-card .stars {
    font-size: 11px;
    color: var(--gray-600);
    display: flex;
    align-items: center;
    gap: 1px;
}
.course-card .stars i {
    color: #f1c40f;
    font-size: 10px;
}
.course-card .stars i.empty {
    color: #ddd;
}
.course-card .price {
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-900);
}
.course-card .price.free {
    color: #27ae60;
}
.course-card .price .old {
    font-size: 11px;
    color: var(--gray-400);
    text-decoration: line-through;
    font-weight: 400;
    margin-right: 4px;
}

.btn-load-more {
    display: block;
    margin: 30px auto 0;
    padding: 11px 32px;
    background: var(--primary);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border-radius: var(--border-50) !important;
}

/* POPULAR */
.section-popular {
    background: var(--dark);
    padding: 55px 0 50px;
    color: #fff;
    overflow: hidden;
}
.section-popular h2 {
    text-align: center;
    font-size: 1.4rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}
.section-popular .sub {
    text-align: center;
    font-size: 13px;
    opacity: 0.7;
    margin-bottom: 30px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}
.carousel-outer {
    overflow: hidden;
}
.carousel-track {
    display: flex;
    gap: 16px;
    transition: transform 0.5s ease;
}
.carousel-track .course-card {
    flex: 0 0 calc(20% - 13px);
    min-width: 190px;
}
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 22px;
}
.carousel-dots button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    cursor: pointer;
}
.carousel-dots button.active {
    background: var(--primary);
}

/* CTA */
.section-cta {
    padding: 55px 0;
    background: #fff;
}
.cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    max-width: 860px;
    margin: 0 auto;
}
.cta-item {
    text-align: center;
}
.cta-item .ico {
    font-size: 38px;
    color: var(--gray-800);
    margin-bottom: 12px;
    line-height: 1;
}
.cta-item h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}
.cta-item p {
    font-size: 13px;
    color: var(--gray-500);
    margin-bottom: 18px;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}
.btn-cta {
    display: inline-flex;
    padding: 11px 24px;
    background: var(--primary);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    cursor: pointer;
    border-radius: var(--border-50) !important;
}

/* TESTIMONIAL */
.section-testimonial {
    background: #ebecef;
    padding: 0;
}
.testimonial-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1000px;
    margin: 0 auto;
    background: #fff;
}
.testimonial-text {
    padding: 48px 42px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fff;
}
.testimonial-text h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 16px;
    font-style: italic;
}
.testimonial-text p {
    font-size: 13px;
    color: var(--gray-500);
    line-height: 1.75;
    margin-bottom: 22px;
}
.testimonial-text .author strong {
    display: block;
    font-size: 13px;
    color: var(--gray-900);
    font-weight: 600;
}
.testimonial-text .author span {
    font-size: 12px;
    color: var(--gray-400);
}
.testimonial-photo {
    min-height: 340px;
    background: #ddd;
}
.testimonial-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

/* FOOTER */
.footer {
    background: #fff;
    border-top: 1px solid var(--gray-200);
    padding: 48px 0 0;
    color: var(--gray-500);
    font-size: 13px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1.3fr;
    gap: 36px;
    padding-bottom: 40px;
}
.footer h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--gray-900);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 14px;
}
.footer p {
    line-height: 1.7;
    margin-bottom: 8px;
}
.footer a:hover {
    color: var(--primary);
}
.footer-links li {
    margin-bottom: 8px;
}
.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}
.footer-social a {
    color: var(--gray-500);
    font-size: 14px;
}
.footer-blog-item {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    align-items: flex-start;
}
.footer-blog-item img {
    width: 54px;
    height: 54px;
    object-fit: cover;
    flex-shrink: 0;
}
.footer-blog-item .meta {
    font-size: 12px;
    line-height: 1.4;
}
.footer-blog-item .meta strong {
    display: block;
    color: var(--gray-800);
    font-weight: 500;
    margin-bottom: 2px;
}
.footer-blog-item .meta span {
    color: var(--gray-400);
    font-size: 11px;
}
.footer-bottom {
    border-top: 1px solid var(--gray-200);
    padding: 16px 0;
    text-align: center;
    font-size: 12px;
    color: var(--gray-400);
}

/* LOGIN MODAL recto */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.2s,
        visibility 0.2s;
}
.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}
.modal-login {
    background: #fff;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
    transform: translateY(8px);
    transition: transform 0.2s;
}
.modal-overlay.open .modal-login {
    transform: translateY(0);
}
.modal-login-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-200);
}
.modal-login-head h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0;
}
.modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--gray-500);
    font-size: 16px;
}
.modal-login-body {
    padding: 20px;
}
.form-group {
    margin-bottom: 14px;
}
.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 5px;
}
.form-control {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid var(--gray-200);
    font-size: 13px;
    color: var(--gray-800);
    background: #fff;
}
.form-control:focus {
    border-color: var(--primary);
}
.form-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    font-size: 12px;
    color: var(--gray-600);
}
.form-meta label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}
.form-meta a {
    color: var(--primary);
}
.btn-submit {
    width: 100%;
    padding: 12px;
    background: var(--primary);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    cursor: pointer;
}
.modal-or {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
    font-size: 11px;
    color: var(--gray-400);
    text-transform: uppercase;
}
.modal-or::before,
.modal-or::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--gray-200);
}
.modal-social {
    display: flex;
    gap: 8px;
}
.modal-social button {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--gray-200);
    font-size: 12px;
    color: var(--gray-700);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.modal-foot {
    text-align: center;
    margin-top: 16px;
    font-size: 12px;
    color: var(--gray-600);
}
.modal-foot a {
    color: var(--primary);
    font-weight: 600;
}

.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 3000;
}
.mobile-overlay.show {
    display: block;
}
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100%;
    background: #fff;
    z-index: 3001;
    padding: 60px 20px 20px;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    transition: right 0.3s;
}
.mobile-nav.open {
    right: 0;
}
.mobile-nav a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-200);
    font-size: 14px;
    color: var(--gray-800);
}
.close-mobile {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 20px;
    cursor: pointer;
    color: var(--gray-700);
}
.back-to-top {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 42px;
    height: 42px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    cursor: pointer;
    z-index: 9000;
    opacity: 0;
    visibility: hidden;
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 1100px) {
    .carousel-track .course-card {
        flex: 0 0 calc(33.33% - 11px);
    }
    .cats-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 160px 160px 160px 160px;
        grid-template-areas:
            "big big"
            "weight env"
            "photo music"
            "soft soft";
    }
}
@media (max-width: 900px) {
    .top-nav {
        display: none;
    }
    .header-actions .hide-m {
        display: none;
    }
    .mobile-toggle {
        display: block;
    }
    .header-search {
        max-width: 260px;
    }
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        padding-bottom: 40px;
    }
    .hero-text p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-features {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .carousel-track .course-card {
        flex: 0 0 calc(50% - 8px);
    }
    .cta-grid {
        grid-template-columns: 1fr;
    }
    .testimonial-wrap {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .course-popup-fixed {
        display: none !important;
    }
}
@media (max-width: 600px) {
    .header-search {
        display: none;
    }
    .carousel-track .course-card {
        flex: 0 0 85%;
    }
    .cats-grid {
        grid-template-columns: 1fr;
        grid-template-rows: none;
        grid-template-areas:
            "big"
            "weight"
            "env"
            "photo"
            "music"
            "soft";
    }
    .cat-item {
        height: 180px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .newsletter .wrap {
        flex-direction: column;
        text-align: center;
    }
}
