@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap");

:root {
    --main-hex: #20C8A8;
    --main-h: 169;
    --main-s: 72%;
    --main-l: 45%;
    --main: var(--main-h) var(--main-s) var(--main-l);
    --main-gradient: linear-gradient(90deg, #20C8A8 0%, #0E7A66 100%);
    --main-gradient-two: linear-gradient(180deg, rgba(32, 200, 168, 0.8) 0%, rgba(32, 200, 168, 0) 100%);

    --main-six-hex: #1AA98D;
    --main-six-h: 169;
    --main-six-s: 73%;
    --main-six-l: 38%;
    --main-six: var(--main-six-h) var(--main-six-s) var(--main-six-l);

    /* Zanetti: paleta secundaria (main-two) em verde teal do logo */
    --main-two-hex: #35D6B8;
    --main-two-h: 168;
    --main-two-s: 65%;
    --main-two-l: 53%;
    --main-two: var(--main-two-h) var(--main-two-s) var(--main-two-l);
    --main-two-gradient: linear-gradient(90deg, #35D6B8 0%, #0E7A66 100%);
}

.preloader path {
    fill: #000000;
}

/* Mega menu courses */
/* O item "Cursos" precisa ser relative para o mega menu abrir exatamente ABAIXO dele */
.nav-menu__item.has-submenu { position: relative; }
.mega-menu.mega-menu-courses {
    width: 720px !important;
    min-width: 720px;
    max-width: 92vw;
    top: calc(100% + 20px);   /* abre com respiro ABAIXO da barra de menus */
}
.mega-menu.mega-menu-courses::before {   /* ponte invisível: o hover não fecha no vão */
    content: "";
    position: absolute;
    left: 0; right: 0;
    top: -22px;
    height: 22px;
}
.mega-menu-courses .mega-course-item {
    text-align: center;
}
.mega-menu-courses .mega-course-thumb {
    border-radius: 8px;
    overflow: hidden;
    height: 120px;          /* altura fixa e enxuta: 2 linhas cabem no dropdown, sem cortar */
    aspect-ratio: auto;
    position: relative;
    background: #0a1512;
}
.mega-menu-courses .mega-course-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;     /* mostra a capa COMPLETA no mega menu (sem cortar) */
    object-position: center;
    transition: transform 0.4s ease;
}
.mega-menu-courses .mega-course-item:hover .mega-course-thumb img {
    transform: scale(1.08);
}
.mega-menu-courses .mega-course-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.mega-menu-courses .mega-course-item:hover .mega-course-overlay {
    opacity: 1;
}
.mega-menu-courses .mega-course-name {
    display: block;
    margin-top: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    transition: color 0.2s;
}
.mega-menu-courses .mega-course-name:hover {
    color: #20C8A8;
}

/* Hide white circle dots from all buttons */
.tw-btn-circle-dot {
    display: none !important;
}

/* Simple nav hover - just color change */
.nav-menu__link {
    transition: color 0.25s ease !important;
}

/* Menu: only active page is orange */
.nav-menu__item.activePage > .nav-menu__link {
    color: #20C8A8 !important;
}

/* Counter vertical layout */
.counter-wrapper {
    text-align: center;
}
.counter-wrapper .counter-text {
    position: static !important;
    font-size: 16px !important;
}

/* Dark overlay for featured courses section */
.event-two-top {
    position: relative;
}
.event-two-top::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 0;
}
.event-two-top > .container {
    position: relative;
    z-index: 1;
}

/* Simple category filter buttons */
.cat-filter-btn {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255,255,255,0.7);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.25s ease, background 0.25s ease;
    text-decoration: none;
}
.cat-filter-btn:hover,
.cat-filter-btn.active {
    color: #20C8A8;
    background: rgba(32,200,168,0.1);
}

/* Simple course button */
.btn-ver-curso {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #000;
    background: #20C8A8;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.25s ease, color 0.25s ease;
}
.btn-ver-curso:hover {
    background: #fff;
    color: #20C8A8;
}
.btn-ver-curso i {
    transition: transform 0.25s ease;
}
.btn-ver-curso:hover i {
    transform: translateX(3px);
}

.search-focus-border {
    background: #20C8A8 !important;
}

.progress-wrap {
    background-color: #20C8A8 !important;
    mix-blend-mode: normal !important;
}

.progress-wrap svg.progress-circle path {
    stroke: #20C8A8;
}

.progress-wrap::after {
    color: #000 !important;
}

/* Member area form inputs - force white text */
.member-content .form-control,
.member-content input,
.member-content textarea,
.member-content select {
    color: #fff !important;
}
.member-content .form-control::placeholder {
    color: rgba(255,255,255,0.3) !important;
}
.member-content .form-label {
    color: rgba(255,255,255,0.7) !important;
}

/* Avatar upload */
.avatar-upload {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 16px;
}
.avatar-upload img,
.avatar-upload .avatar-initials {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(32,200,168,0.3);
}
.avatar-initials {
    background: #20C8A8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 700;
    color: #000;
}
.avatar-upload-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #20C8A8;
    border: 2px solid #0d0d0d;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}
.avatar-upload-btn:hover {
    background: #fff;
}
.avatar-upload-btn input {
    display: none;
}

/* Store course card locked */
.store-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}
.store-card:hover {
    border-color: rgba(32,200,168,0.3);
    transform: translateY(-4px);
}
.store-card-thumb {
    height: 180px;
    overflow: hidden;
    position: relative;
    background: rgba(255,255,255,0.03);
}
.store-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.store-card-body {
    padding: 20px;
}
.store-card-price {
    font-size: 24px;
    font-weight: 700;
    color: #20C8A8;
}
.store-card-price .original {
    font-size: 13px;
    color: rgba(255,255,255,0.35);
    text-decoration: line-through;
    font-weight: 400;
}

/* Member sidebar */
.member-sidebar {
    background: #0d0d0d;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    width: 280px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    padding-top: 0;
    overflow-y: auto;
    transition: transform 0.3s ease;
    scrollbar-width: thin;
    scrollbar-color: rgba(32, 200, 168, 0.45) transparent;
}
/* Barra de rolagem fina no padrão do tema (verde) */
.member-sidebar::-webkit-scrollbar { width: 7px; }
.member-sidebar::-webkit-scrollbar-track { background: transparent; }
.member-sidebar::-webkit-scrollbar-thumb { background: rgba(32, 200, 168, 0.35); border-radius: 4px; }
.member-sidebar::-webkit-scrollbar-thumb:hover { background: rgba(32, 200, 168, 0.65); }

.member-sidebar .sidebar-logo {
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.member-sidebar .sidebar-logo img {
    max-width: 160px;
}

.member-sidebar .sidebar-user {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    gap: 12px;
}

.member-sidebar .sidebar-user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #20C8A8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #000;
    font-size: 16px;
    flex-shrink: 0;
}

.member-sidebar .sidebar-user-info h6 {
    font-size: 14px;
    margin-bottom: 2px;
    color: #fff;
}

.member-sidebar .sidebar-user-info span {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.member-sidebar .sidebar-nav {
    padding: 16px 0;
}

.member-sidebar .sidebar-nav-title {
    padding: 8px 20px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.35);
    font-weight: 600;
}

.member-sidebar .sidebar-nav-item {
    display: block;
}

.member-sidebar .sidebar-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
    border-left: 3px solid transparent;
}

.member-sidebar .sidebar-nav-link:hover,
.member-sidebar .sidebar-nav-link.active {
    color: #20C8A8;
    background: rgba(32, 200, 168, 0.06);
    border-left-color: #20C8A8;
}

.member-sidebar .sidebar-nav-link i {
    font-size: 20px;
    width: 24px;
    text-align: center;
}

.member-content {
    margin-left: 280px;
    min-height: 100vh;
    padding: 30px;
    overflow-x: hidden;
}

.member-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.member-topbar h4 {
    margin: 0;
    color: #fff;
    font-weight: 700;
}

/* Admin sidebar extends member sidebar */
.admin-sidebar {
    background: #0a0a0a;
}

/* Stat cards */
.stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: rgba(32, 200, 168, 0.3);
    transform: translateY(-2px);
}

.stat-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 16px;
}

.stat-card-value {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.stat-card-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

/* Course sidebar sticky */
.col-lg-4 > .position-sticky {
    top: 100px;
}

/* Course card enhancement */
.course-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.course-card:hover {
    border-color: rgba(32, 200, 168, 0.3);
    transform: translateY(-4px);
}

.course-card-thumb {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    position: relative;
    background: #0a1512;
}

.course-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.course-card:hover .course-card-thumb img {
    transform: scale(1.05);
}

.course-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}

.course-card-body {
    padding: 20px;
}

.course-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1.3;
}

.course-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.course-card-title a:hover {
    color: #20C8A8;
}

.course-card-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 16px;
}

.course-card-meta i {
    color: #20C8A8;
    margin-right: 4px;
}

.course-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.course-card-price {
    font-size: 22px;
    font-weight: 700;
    color: #20C8A8;
}

.course-card-price .original {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.35);
    text-decoration: line-through;
    margin-left: 8px;
    font-weight: 400;
}

/* Progress bar */
.progress-course {
    height: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 3px;
    overflow: hidden;
}

.progress-course-bar {
    height: 100%;
    background: linear-gradient(90deg, #20C8A8, #4FE3CC);
    border-radius: 3px;
    transition: width 0.4s ease;
}

/* Auth pages */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.auth-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 460px;
}

.auth-card .form-control {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
}

.auth-card .form-control:focus {
    border-color: #20C8A8;
    box-shadow: 0 0 0 3px rgba(32, 200, 168, 0.15);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.auth-card .form-control::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.auth-card .form-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
}

/* Alert styles */
.alert-seg {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 20px;
}

.alert-seg-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.alert-seg-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

/* Admin table */
.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-table td {
    padding: 12px 16px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    vertical-align: middle;
}

.admin-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.badge-status {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-published {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.badge-draft {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.5);
}

/* Responsive member sidebar */
.sidebar-toggle {
    display: none;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 101;
    background: #20C8A8;
    border: none;
    color: #000;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    font-size: 20px;
    cursor: pointer;
}

@media (max-width: 991px) {
    .member-sidebar {
        transform: translateX(-100%);
    }
    .member-sidebar.show {
        transform: translateX(0);
    }
    .member-content {
        margin-left: 0;
        padding-top: 60px;
    }
    .sidebar-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Certificate verification */
.verify-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
}

.verify-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin-bottom: 20px;
}

.verify-icon.valid {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.verify-icon.invalid {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

/* Video player area */
.video-player-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    background: #000;
    margin-bottom: 24px;
}

.video-player-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Lesson list in player */
.lesson-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: all 0.2s;
    font-size: 14px;
}

.lesson-list-item:hover {
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
}

.lesson-list-item.active {
    background: rgba(32, 200, 168, 0.08);
    color: #20C8A8;
    border-left: 3px solid #20C8A8;
}

.lesson-list-item.completed {
    color: #22c55e;
}

.lesson-list-item i {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

/* Hero banner dark overlay */
.banner-two-area-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1;
}
.banner-two-area-wrapper > .row,
.banner-two-area-wrapper > .banner-two-spriller-1 {
    position: relative;
    z-index: 2;
}

/* CTA section dark overlay */
section.bg-img[data-background-image*="cta-bg"] {
    position: relative;
}
section.bg-img[data-background-image*="cta-bg"]::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 0;
}
section.bg-img[data-background-image*="cta-bg"] > .container {
    position: relative;
    z-index: 1;
}

/* Breadcrumb overlay */
.breadcrumb-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 0;
}

/* Breadcrumb compact height */
.breadcrumb-overlay.py-120 {
    padding-top: 50px !important;
    padding-bottom: 50px !important;
}

/* Breadcrumb enhancement */
.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.3);
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: #20C8A8;
}

/* ==================== Mobile Bottom Navigation ==================== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 6px 0;
    padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px));
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 12px;
    color: rgba(255,255,255,0.45);
    text-decoration: none;
    font-size: 10px;
    font-weight: 500;
    transition: color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.bottom-nav-item i {
    font-size: 22px;
    transition: transform 0.2s ease;
}

.bottom-nav-item.active,
.bottom-nav-item:hover {
    color: #20C8A8;
}

.bottom-nav-item.active i {
    transform: scale(1.1);
}

/* Push content above bottom nav on mobile */
@media (max-width: 1199px) {
    .footer-bottom {
        padding-bottom: 70px !important;
    }

    /* Adjust scroll-to-top button above bottom nav */
    .progress-wrap {
        inset-block-end: 110px !important;
        inset-inline-end: 20px !important;
        height: 40px !important;
        width: 40px !important;
    }

    /* Footer padding above bottom nav */
    .footer-area {
        padding-bottom: 70px !important;
    }
}

/* ===== Mobile: TODOS os botões principais em largura total, 50px de margem de cada lado ===== */
@media (max-width: 767.98px) {
    .theme-btn-main,
    .theme-btn-outline {
        display: flex !important;
        width: calc(100% - 76px) !important;   /* 38px cada lado + 12px do container = 50px reais da borda */
        max-width: none !important;
        margin-left: auto !important;
        margin-right: auto !important;
        justify-content: center;
    }
    /* wrappers em flex viram coluna, pra os botões empilharem */
    .accretia-hero-actions,
    .accretia-hero-actions { flex-direction: column; align-items: stretch; }
}

/* ==================== Mobile Header Adjustments ==================== */
@media (max-width: 767px) {
    /* Smaller logo on mobile */
    .header-left .logo img {
        max-width: 130px !important;
    }

    /* Thin header on mobile */
    .header nav {
        padding-top: 4px !important;
        padding-bottom: 4px !important;
    }
}

@media (max-width: 1199px) {
    .header nav {
        padding-top: 6px !important;
        padding-bottom: 6px !important;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .header-left .logo img {
        max-width: 170px !important;
    }
}

/* ==================== Mobile Menu Fix ==================== */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    height: 100vh;
    background: #0a0a0a;
    z-index: 10001;
    overflow-y: auto;
    transform: translateX(-110%);
    padding: 30px 24px;
    border-right: 1px solid rgba(255,255,255,0.06);
}

.mobile-menu .close-button {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.6);
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    transition: color 0.2s;
    z-index: 2;
}

.mobile-menu .close-button:hover {
    color: #20C8A8;
}

.mobile-menu .mobile-menu__logo img {
    max-width: 160px;
}

.mobile-menu .nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu .nav-menu__item {
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.mobile-menu .nav-menu__link {
    display: block;
    padding: 14px 0;
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s;
}

.mobile-menu .nav-menu__link:hover {
    color: #20C8A8;
}

.side-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 10000;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
}

/* ==================== PWA Standalone Styles ==================== */
@media all and (display-mode: standalone) {
    /* Hide browser-specific UI */
    .header {
        padding-top: env(safe-area-inset-top, 0px);
    }

    /* Ensure bottom nav respects safe area */
    .bottom-nav {
        padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    }
}

/* ==================== Hide desktop offcanvas button on mobile ==================== */
@media (max-width: 1199px) {
    .header-offcanvas {
        display: none !important;
    }
}

/* ==================== Mobile burger button ==================== */
.toggle-mobileMenu {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    -webkit-tap-highlight-color: transparent;
}

/* Show on mobile only, hide on desktop */
@media (max-width: 1199.98px) {
    .toggle-mobileMenu {
        display: flex !important;
    }
}
@media (min-width: 1200px) {
    .toggle-mobileMenu {
        display: none !important;
    }
}

.toggle-mobileMenu img {
    width: 38px;
    height: 38px;
    filter: brightness(10);
}

/* ==================================================================== */
/* ==================== ACCRETIA - Identidade visual ================== */
/* ==================================================================== */
:root {
    /* Fundo verde-escuro da marca (substitui o quase-preto do template) */
    --black: 165 32% 7%;
    --black-two: 164, 28%, 10%;
    --black-three: 162, 24%, 15%;
    /* Tipografia dos titulos */
    --heading-font: "Space Grotesk", "Titillium Web", sans-serif;
    /* Gradiente assinatura teal do logo Zanetti */
    --accretia-gradient: linear-gradient(120deg, #20C8A8 0%, #0E7A66 100%);
}

/* Fundo base navy */
body,
body[class*="home-"],
#scrollSmoother-container {
    background-color: #0a1512 !important;
}

/* Sidebars, menus e barras escuras -> navy coerente */
.member-sidebar { background: #0d1f1a !important; }
.admin-sidebar { background: #081713 !important; }
.mobile-menu { background: #0a1512 !important; }
.bottom-nav { background: rgba(10, 21, 18, 0.95) !important; }

/* Botoes primarios: estilo Accretia (gradiente + shape tech + elevacao) */
.theme-btn-main.bg-main-600,
.btn-ver-curso {
    background-image: var(--accretia-gradient) !important;
    background-color: transparent !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 15px 32px !important;
    font-family: "Space Grotesk", sans-serif !important;
    font-weight: 600 !important;
    letter-spacing: 0.3px;
    box-shadow: 0 10px 26px -10px rgba(32, 200, 168, 0.7);
    transition: transform .28s ease, box-shadow .28s ease, filter .28s ease;
    color: #fff !important;
}
.theme-btn-main.bg-main-600:hover,
.btn-ver-curso:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px -12px rgba(14, 122, 102, 0.75);
    filter: brightness(1.08);
    color: #fff !important;
}

/* Cards: glow azul e borda destacada no hover (eco do tema tech) */
.course-card:hover,
.stat-card:hover,
.store-card:hover {
    border-color: rgba(32, 200, 168, 0.45) !important;
    box-shadow: 0 18px 40px -18px rgba(32, 200, 168, 0.5);
}

/* Subtitulo de secao: azul claro solido da marca (sem clip que sumia o texto) */
.section-sub-title,
.section-sub-title * {
    color: #4FE3CC !important;
    -webkit-text-fill-color: #4FE3CC !important;
    background: none !important;
}

/* Hero: selo/eyebrow da marca */
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 20px;
    border-radius: 999px;
    font-family: "Space Grotesk", sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #fff;
    background: rgba(32, 200, 168, 0.12);
    border: 1px solid rgba(32, 200, 168, 0.45);
    box-shadow: 0 0 26px -6px rgba(32, 200, 168, 0.55);
}
.hero-eyebrow::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #20C8A8;
    box-shadow: 0 0 10px #20C8A8;
}

/* Botao secundario outline (hero) */
.theme-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 30px;
    border-radius: 8px;
    font-family: "Space Grotesk", sans-serif;
    font-weight: 600;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.04);
    text-decoration: none;
    transition: all 0.25s ease;
    backdrop-filter: blur(4px);
}
.theme-btn-outline:hover {
    border-color: #20C8A8;
    background: rgba(32, 200, 168, 0.14);
    color: #fff;
    transform: translateY(-2px);
}

/* ===== Hero centralizado geometrico (Accretia) ===== */
.accretia-hero {
    padding: 270px 0 105px;
    background: #0a1512;
}
/* Home: header FIXO e TRANSPARENTE sobre o hero; volta a cor (solido) ao rolar */
.header-over-hero {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 99;
    background: transparent !important;
    box-shadow: none !important;
    transition: background .35s ease, box-shadow .35s ease;
}
.header-over-hero.fixed-header {
    position: fixed;
    background: #0a1512 !important;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}
/* Opções dos <select> legíveis no tema escuro (o dropdown nativo abre com fundo branco
   e o texto branco ficava invisível). */
select option,
select optgroup {
    background-color: #0d1f1a;
    color: #ffffff;
}
.accretia-hero-glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(55% 45% at 50% 0%, rgba(32, 200, 168, 0.20), transparent 70%),
        radial-gradient(38% 40% at 82% 26%, rgba(14, 122, 102, 0.16), transparent 70%);
    z-index: 0;
    pointer-events: none;
}
.accretia-hero-shape {
    position: absolute;
    width: 330px;
    opacity: 0.05;
    z-index: 0;
    pointer-events: none;
    filter: drop-shadow(0 0 30px rgba(32, 200, 168, 0.4));
}
.accretia-hero-shape.shape-left { left: -70px; top: 70px; transform: rotate(-12deg); }
.accretia-hero-shape.shape-right { right: -70px; bottom: 40px; transform: rotate(18deg); }
/* Imagem de fundo do hero (hero-banner.jpg) com transparencia + fade para baixo */
.accretia-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.22;
    z-index: 0;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.5) 55%, transparent 100%);
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.5) 55%, transparent 100%);
}
.accretia-hero-title {
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.07;
    letter-spacing: -1.5px;
    margin: 24px 0 20px;
}
.accretia-grad-text { color: #4FE3CC; }
.accretia-hero-sub {
    color: rgba(255, 255, 255, 0.72);
    font-size: 19px;
    line-height: 1.7;
    max-width: 640px;
    margin: 0 auto 34px;
}
.accretia-hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}
.accretia-hero-trust {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    color: rgba(255, 255, 255, 0.62);
    font-size: 15px;
    font-weight: 500;
}
.accretia-hero-trust i { color: #4FE3CC; margin-right: 7px; font-size: 18px; vertical-align: middle; }
.accretia-hero-trust .sep { opacity: 0.35; }
@media (max-width: 767.98px) {
    .accretia-hero { padding: 70px 0 60px; }
    .accretia-hero-shape { width: 180px; opacity: 0.04; }
    .accretia-hero-sub { font-size: 17px; }
}

/* Hero: so anima o MOVIMENTO (nunca o opacity), entao o texto esta sempre
   visivel - animando ou nao. Elimina qualquer risco de "sumir". */
.accretia-hero .hero-eyebrow,
.accretia-hero-title,
.accretia-hero-sub,
.accretia-hero-actions,
.accretia-hero-trust {
    animation: accretiaRise 0.7s ease;
}
.accretia-hero-title { animation-duration: 0.8s; }
.accretia-hero-sub { animation-duration: 0.9s; }
.accretia-hero-actions { animation-duration: 1s; }
.accretia-hero-trust { animation-duration: 1.1s; }
@keyframes accretiaRise {
    from { transform: translateY(24px); }
    to { transform: translateY(0); }
}

/* Espaco de 100px entre a secao anterior e a de "Cursos em Destaque" */
.event-two-area { padding-top: 100px; }

/* ============================================================
   Botoes .reader-btn (globais) — usados no admin de modulos,
   na pagina do curso e no leitor. Antes so tinham estilo dentro
   do reader.php, por isso ficavam "crus"/escuros nas outras telas.
   ============================================================ */
.reader-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 16px;
    border-radius: 9px;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: #e9fbf6;
    transition: all 0.18s ease;
}
.reader-btn:hover {
    background: rgba(255, 255, 255, 0.11);
    border-color: rgba(32, 200, 168, 0.55);
    color: #ffffff;
}
.reader-btn i { font-size: 15px; }
.reader-btn-primary {
    background: #20C8A8;
    border-color: #20C8A8;
    color: #04201a;
    font-weight: 700;
}
.reader-btn-primary:hover {
    background: #1bb599;
    border-color: #1bb599;
    color: #04201a;
}
/* variantes de cor via style inline (ex.: excluir) mantem o texto colorido */
.reader-btn.reader-btn-danger { color: #ef4444; }
.reader-btn.reader-btn-danger:hover { border-color: rgba(239, 68, 68, 0.55); background: rgba(239, 68, 68, 0.12); }

/* ===================== AOS: garante conteúdo visível se a animação não disparar (mobile) ===================== */
@media (max-width: 991.98px) {
    [data-aos] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* ===================== RESPONSIVIDADE DO ADMIN (mobile) ===================== */
@media (max-width: 991.98px) {
    /* Tabelas do admin rolam na horizontal em vez de espremer o texto letra a letra */
    .member-content .admin-table {
        display: block;
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    .member-content .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    /* Hambúrguer não cobre o logo: empurra o topo do sidebar pra baixo do botão */
    .member-sidebar { padding-top: 56px; }
}

@media (max-width: 575.98px) {
    /* Cards de estatística do dashboard: 2 por linha e centralizados */
    .member-content .row.g-3 > .col-xl.col-md-4.col-sm-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    .member-content .stat-card {
        text-align: center;
        align-items: center;
    }
    .member-content .stat-card-icon {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 767.98px) {
    /* Categorias: empilha o display e o formulário de edição (não espreme o nome) */
    .admin-cat-row { flex-wrap: wrap; }
    .admin-cat-row > div:first-child { flex: 1 1 100%; }
    .admin-cat-row form { width: 100%; flex-wrap: wrap; }
    .admin-cat-row form input[name="name"] { flex: 1 1 100%; width: 100% !important; }
    .admin-cat-row form input[name="icon"] { flex: 1 1 120px; width: auto !important; }
}

/* Player de vídeo responsivo (16:9) — YouTube/Vimeo/embed */
.video-embed-wrap { position: relative; width: 100%; padding-top: 56.25%; border-radius: 12px; overflow: hidden; background: #000; margin-bottom: 18px; }
.video-embed-wrap iframe { position: absolute; inset: 0; width: 100% !important; height: 100% !important; border: 0; }
