:root {
    --primary-blue: #0081C9;
    --dark-blue: #005B8E;
    --purple: #6C63FF;
    --white: #FFFFFF;
    --light-bg: #F8FAFC;
    --text-main: #1E293B;
    --text-muted: #64748B;
    --shadow-premium: 0 20px 40px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

html, body {
    width: 100%;
    overflow-x: hidden;
}

body {
    background-color: var(--light-bg);
    color: var(--text-main);
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
}

button, a {
    -webkit-tap-highlight-color: transparent;
}

/* HEADER */
header {
    background: var(--white);
    padding: 15px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-blue);
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}

.logo span {
    color: var(--purple);
}

.footer-logo {
    color: white;
}

nav {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

nav a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
    transition: 0.3s;
    cursor: pointer;
    white-space: nowrap;
}

nav a:hover {
    color: var(--primary-blue);
}

.btn-portal {
    background: var(--primary-blue);
    color: white !important;
    padding: 10px 20px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* HERO */
.hero-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #004e7a 100%);
    padding: 90px 8% 130px;
    text-align: center;
    position: relative;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-content {
    max-width: 800px;
    width: 100%;
    text-align: center;
}

.hero-section h1 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    word-break: break-word;
}

.hero-section p {
    font-size: 1.05rem;
    opacity: 0.92;
    margin-bottom: 10px;
}

/* SEARCH */
.search-wrapper {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: min(1100px, 90%);
    background: var(--white);
    padding: 28px 36px;
    border-radius: 28px;
    box-shadow: var(--shadow-premium);
    display: flex;
    align-items: center;
    gap: 22px;
    z-index: 10;
}

.search-icon-box {
    font-size: 2.2rem;
    color: #CBD5E1;
    flex: 0 0 auto;
}

.search-text-labels {
    flex: 1;
    min-width: 0;
}

.search-text-labels h2 {
    font-size: 1.2rem;
    color: #1e293b;
    font-weight: 700;
    margin-bottom: 6px;
}

.search-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 4px;
    line-height: 1.5;
}

.badge-free {
    background: #0056b3;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 10px;
    white-space: nowrap;
}

.input-group {
    flex: 2;
    background: #F1F5F9;
    border-radius: 12px;
    padding: 5px 15px;
    display: flex;
    align-items: center;
    border: 1px solid #E2E8F0;
    min-width: 0;
}

.input-group input {
    border: none;
    background: transparent;
    padding: 12px;
    width: 100%;
    font-size: 1rem;
    outline: none;
    min-width: 0;
}

.btn-search-now {
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 15px 32px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    white-space: nowrap;
    flex: 0 0 auto;
}

.btn-search-now:hover {
    background: var(--dark-blue);
    transform: translateY(-2px);
}

/* COURSES */
.courses-section {
    padding: 120px 8% 80px;
    min-height: 500px;
}

.section-header {
    margin-bottom: 40px;
    border-left: 6px solid var(--purple);
    padding-left: 20px;
}

.section-header h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 8px;
}

.section-description {
    color: var(--text-muted);
}

.manutencao {
    color: orange;
    margin-bottom: 6px;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.course-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #E2E8F0;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-premium);
}

.course-thumb {
    height: 180px;
    background: #DDD center/cover no-repeat;
    position: relative;
}

.course-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #FFD600;
    color: #000;
    padding: 5px 12px;
    border-radius: 6px;
    font-weight: 800;
    font-size: 0.7rem;
}

.course-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.course-body h3 {
    font-size: 1.05rem;
    margin-bottom: 15px;
    color: var(--text-main);
    line-height: 1.35;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #F1F5F9;
    gap: 12px;
    margin-top: auto;
    flex-wrap: wrap;
}

.course-meta-text {
    font-size: 0.8rem;
    color: #64748B;
    font-weight: 700;
}

.course-free {
    color: #10B981;
}

.btn-enroll {
    text-decoration: none;
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* INTERNAL PAGES */
.content-container {
    max-width: 1000px;
    margin: 60px auto;
    background: var(--white);
    padding: 50px;
    border-radius: 20px;
    box-shadow: var(--shadow-premium);
    width: calc(100% - 32px);
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #E2E8F0;
}

.page-header h1 {
    color: var(--primary-blue);
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    margin-bottom: 10px;
    word-break: break-word;
}

.page-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-top: 10px;
}

.text-content p {
    margin-bottom: 20px;
    text-align: justify;
    color: var(--text-main);
    font-size: 1.02rem;
    line-height: 1.8;
    word-break: break-word;
}

.section-h3 {
    margin-top: 30px;
    color: var(--text-main);
    margin-bottom: 15px;
}

/* COURSE DETAILS */
.curso-detalhe-bloco {
    display: none;
}

.curso-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.meta-item {
    background: var(--light-bg);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 700;
    color: var(--primary-blue);
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.aprendizado-lista {
    list-style: none;
    margin: 25px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 15px;
    background: #f8fafc;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.aprendizado-lista li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 1rem;
    color: var(--text-main);
    word-break: break-word;
}

.aprendizado-lista li i {
    color: #10B981;
    margin-top: 5px;
    font-size: 1.1rem;
    flex: 0 0 auto;
}

.btn-voltar {
    background: #E2E8F0;
    color: var(--text-main);
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    transition: 0.3s;
}

.btn-voltar:hover {
    background: #CBD5E1;
}

/* HUB */
.cursos-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.curso-hub-card {
    background: var(--light-bg);
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 35px 30px;
    text-align: center;
    transition: 0.3s;
    cursor: pointer;
    min-width: 0;
}

.curso-hub-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-premium);
    border-color: var(--primary-blue);
}

.curso-hub-icon {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.curso-hub-card h2 {
    color: var(--text-main);
    font-size: 1.4rem;
    margin-bottom: 15px;
    word-break: break-word;
}

.curso-hub-card p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 25px;
    line-height: 1.7;
}

.btn-hub-acessar {
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    width: 100%;
}

.curso-hub-card:hover .btn-hub-acessar {
    background: var(--dark-blue);
}

/* ABOUT BOX */
.info-box {
    background: var(--light-bg);
    border-left: 4px solid var(--primary-blue);
    padding: 20px;
    border-radius: 8px;
    margin-top: 30px;
}

.info-box p {
    margin-bottom: 8px;
}

/* CTA */
.cta-center {
    text-align: center;
    margin-top: 40px;
}

.btn-primary-large {
    background: var(--primary-blue);
    color: white;
    padding: 15px 40px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    font-size: 1.05rem;
    display: inline-block;
    transition: 0.3s;
}

.btn-primary-large:hover {
    background: var(--dark-blue);
    transform: translateY(-2px);
}

/* FOOTER */
footer {
    background: #0F172A;
    color: white;
    padding: 80px 8% 40px;
    margin-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.footer-col h4 {
    color: var(--primary-blue);
    margin-bottom: 25px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col a {
    color: #94A3B8;
    text-decoration: none;
    transition: 0.3s;
    cursor: pointer;
}

.footer-col a:hover {
    color: white;
}

.footer-description {
    margin-top: 20px;
    font-size: 0.95rem;
    color: #94A3B8;
    line-height: 1.7;
}

.social-icons {
    display: flex;
    gap: 15px;
    font-size: 1.5rem;
    flex-wrap: wrap;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    header {
        padding: 15px 5%;
    }

    .hero-section {
        padding: 70px 5% 90px;
    }

    .hero-section h1 {
        font-size: 2.2rem;
    }

    .search-wrapper {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        width: 100%;
        max-width: 100%;
        flex-direction: column;
        text-align: center;
        margin-top: 35px;
        padding: 22px;
        border-radius: 22px;
    }

    .search-text-labels h2 {
        font-size: 1.1rem;
    }

    .input-group,
    .btn-search-now {
        width: 100%;
    }

    .courses-section {
        padding: 70px 5% 70px;
    }

    .content-container {
        padding: 30px;
        margin: 30px auto;
        width: calc(100% - 24px);
    }

    .page-header h1 {
        font-size: 1.6rem;
    }

    .curso-meta {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: center;
        gap: 14px;
        padding: 15px 4%;
    }

    nav {
        justify-content: center;
        width: 100%;
        gap: 12px;
    }

    nav a {
        font-size: 0.9rem;
    }

    .btn-portal {
        width: 100%;
    }

    .search-icon-box {
        display: none;
    }

    .search-subtitle {
        font-size: 0.9rem;
    }

    .badge-free {
        display: inline-flex;
        margin: 10px 0 0;
    }

    .course-grid {
        grid-template-columns: 1fr;
    }

    .course-body h3 {
        -webkit-line-clamp: 4;
    }

    .course-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .btn-enroll {
        width: 100%;
        justify-content: flex-start;
    }

    .cursos-hub-grid {
        grid-template-columns: 1fr;
    }

    .aprendizado-lista {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .hero-section {
        padding: 55px 4% 70px;
    }

    .hero-section h1 {
        font-size: 1.65rem;
        line-height: 1.25;
    }

    .hero-section p {
        font-size: 0.95rem;
    }

    .search-wrapper {
        gap: 14px;
        padding: 18px;
        border-radius: 18px;
    }

    .input-group {
        width: 100%;
        padding: 4px 12px;
    }

    .input-group input {
        padding: 12px 8px;
        font-size: 0.98rem;
    }

    .btn-search-now {
        width: 100%;
        padding: 14px;
    }

    .courses-section {
        padding: 60px 4% 60px;
    }

    .section-header {
        padding-left: 14px;
        margin-bottom: 30px;
    }

    .section-header h2 {
        font-size: 1.35rem;
    }

    .content-container {
        padding: 22px 16px;
        margin: 20px auto;
        border-radius: 16px;
        width: calc(100% - 16px);
    }

    .page-subtitle {
        font-size: 0.98rem;
    }

    .text-content p {
        font-size: 0.98rem;
        line-height: 1.75;
        text-align: left;
    }

    .curso-hub-card {
        padding: 26px 18px;
    }

    .curso-hub-card h2 {
        font-size: 1.2rem;
    }

    .btn-primary-large {
        width: 100%;
        text-align: center;
        padding: 14px 20px;
    }

    footer {
        padding: 60px 4% 30px;
    }
}

/* REMOVE GOOGLE TRANSLATE BUG */
iframe,
.goog-te-banner-frame,
.goog-te-balloon-frame {
    display: none !important;
}

body {
    top: 0px !important;
}


#user-box {
  position: absolute;
  top: 15px;
  right: 20px;
  display: none;
}

#user-photo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid #fff;
  transition: 0.3s;
}

#user-photo:hover {
  transform: scale(1.1);
}

.btn-home {
    background: #fff;
    color: #000;
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid #ddd;
    transition: 0.2s;
}

.btn-home:hover {
    background: var(--azul);
    color: #fff;
    border-color: var(--azul);
}