@charset "UTF-8";

main {
    min-width: var(--min-w);
    width: 100%;
    padding: 0px;
}

main > p {
    color: var(--c_blue4);
}

/* Tamanho/distancia do header (.home-header) - centralizado em
   static/css/global/_header.css, mesmo valor pra todas as paginas do site. */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

/* ========================================
   HERO
   ======================================== */
.hero {
    display: flex;
    gap: 50px;
    width: 100%;
    max-width: var(--max-w);
    box-sizing: border-box;
    margin: 0 auto 90px;
    padding: 0 20px;
    align-items: flex-start;
}

.hero-image {
    flex-shrink: 0;
}

.hero-image img {
    width: 406px;
    height: auto;
    margin-left: 30.5px;
    border-radius: 15px;
    object-fit: cover;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

.hero-content {
    flex: 1;
    min-width: 0;
}

.hero-content h1 {
    font-family: var(--fonte-destaque);
    color: var(--c_red);
    font-size: 30px;
    font-weight: 500;
    margin-bottom: 26px;
}

.hero-search-wrap {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    margin-bottom: 26px;
}

.hero-search {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 680px;
    height: 56px;
    box-sizing: border-box;
    border-radius: 28px;
    background-color: #DEDEDE;
    overflow: hidden;
    transition: height 0.25s ease, border-radius 0.25s ease;
}

/* Piscada de destaque (pop-up "Por objetivo") — mesmo efeito da search-bar
   do catálogo (glow + leve escala + cor). Só no .hero-search (form), não no
   wrap — senão o glow engloba o botão de info junto. overflow:hidden vira
   visible durante a piscada pra sombra não ficar cortada (nesse fluxo o
   painel de chips já tá aberto de qualquer jeito, não tem nada pra esconder). */
@keyframes hero-search-flash-glow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(230, 54, 22, 0);
        transform: scale(1);
    }
    25%, 75% {
        box-shadow: 0 0 22px 6px rgba(230, 54, 22, 0.55);
        transform: scale(1.02);
    }
}

@keyframes hero-search-flash-color {
    0%, 100% { color: var(--c_blue2); }
    25%, 75% { color: var(--c_red); }
}

.hero-search.flash-highlight {
    overflow: visible;
    animation: hero-search-flash-glow 0.6s ease-in-out 5;
}

.hero-search.flash-highlight .hero-search-row input,
.hero-search.flash-highlight .hero-search-row button {
    animation: hero-search-flash-color 0.6s ease-in-out 5;
}

.hero-search-info {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-top: 12px;
    border: 1.5px solid var(--c_blue2);
    border-radius: 50%;
    background: transparent;
    color: var(--c_blue2);
    font-family: var(--fonte-info);
    font-size: 15px;
    font-style: italic;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.hero-search-info:hover {
    background-color: var(--c_blue2);
    color: var(--c_white);
}

/* Estado aberto: cresce só em altura (largura fica igual), pra mostrar o
   painel de "Termos mais pesquisados" abaixo do campo de busca. */
.hero-search.open {
    height: 155px;
    border-radius: 24px;
}

.hero-search-row {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 10px;
    height: 56px;
    box-sizing: border-box;
    padding: 4px 4px 4px 20px;
}

.hero-search-row input {
    flex: 1;
    border: none;
    background: transparent;
    font-family: var(--fonte-padrao);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    letter-spacing: 0.5px;
    color: var(--c_blue2);
    outline: none;
}

.hero-search-row input::placeholder {
    color: var(--c_blue2);
}

.hero-search-row button {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--c_blue2);
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.hero-search-row button:hover {
    background-color: var(--c_blue2);
    color: var(--c_white);
}

.hero-search-panel {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 20px 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
}

.hero-search.open .hero-search-panel {
    opacity: 1;
    visibility: visible;
}

.hero-search-panel-title {
    font-family: var(--fonte-padrao);
    font-size: 13px;
    font-weight: 600;
    color: var(--c_blue2);
}

.hero-search-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-search-chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border: 1px solid var(--c_blue2);
    border-radius: 999px;
    background: var(--c_white);
    color: var(--c_blue2);
    font-family: var(--fonte-padrao);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.hero-search-chip:hover {
    background: var(--c_blue2);
    color: var(--c_white);
}

/* ========================================
   POP-UP "COMO VOCÊ QUER PESQUISAR?"
   Figma: node 426:3418
   ======================================== */
.hero-info-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 22, 38, 0.55);
    display: flex;
    justify-content: safe center;
    align-items: safe center;
    overflow-y: auto;
    padding: 40px 20px;
    box-sizing: border-box;
    z-index: 2100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
}

.hero-info-overlay.open {
    opacity: 1;
    visibility: visible;
}

.hero-info-modal {
    position: relative;
    width: 100%;
    max-width: 737px;
    box-sizing: border-box;
    padding: 33px 26px 32px;
    background: var(--c_white3);
    border-radius: 32px;
    text-align: center;
}

.hero-info-close {
    position: absolute;
    top: 14px;
    right: 18px;
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    font-size: 22px;
    line-height: 1;
    color: var(--c_blue3);
    cursor: pointer;
}

.hero-info-title {
    font-family: var(--fonte-destaque);
    font-weight: 500;
    font-size: 25px;
    color: var(--c_blue3);
    margin-bottom: 6px;
}

.hero-info-subtitle {
    font-family: var(--fonte-padrao);
    font-weight: 300;
    font-size: 16px;
    color: var(--c_blue3);
    margin-bottom: 26px;
}

.hero-info-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
    margin-bottom: 22px;
}

.hero-info-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 207px;
    box-sizing: border-box;
    padding: 30px 23px 15px;
    border: 1px solid var(--c_blue3);
    border-radius: 32px;
}

.hero-info-icon {
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c_blue3);
}

i.hero-info-icon {
    font-size: 32px;
}

.hero-info-icon-img {
    width: 45px;
    height: 45px;
    object-fit: contain;
    transform: scaleY(-1);
}

.hero-info-card h3 {
    font-family: var(--fonte-destaque);
    font-weight: 700;
    font-size: 15px;
    color: var(--c_blue3);
}

.hero-info-card p {
    font-family: var(--fonte-padrao);
    font-weight: 400;
    font-size: 12px;
    color: var(--c_blue3);
    line-height: 1.4;
    min-height: 41px;
}

.hero-info-use {
    border: none;
    background: var(--c_red);
    color: var(--c_white3);
    font-family: var(--fonte-padrao);
    font-weight: 700;
    font-size: 11px;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.hero-info-use:hover {
    background-color: #c72d10;
}

.hero-info-more {
    font-family: var(--fonte-padrao);
    font-size: 12px;
    color: var(--c_blue2);
    text-decoration: underline;
}

@media (max-width: 700px) {
    .hero-info-modal {
        padding: 26px 18px 24px;
    }

    .hero-info-title {
        font-size: 20px;
    }

    .hero-info-subtitle {
        font-size: 14px;
        margin-bottom: 18px;
    }

    .hero-info-cards {
        flex-direction: column;
        align-items: center;
        gap: 16px;
        margin-bottom: 16px;
    }

    .hero-info-card {
        width: 100%;
        max-width: 260px;
        padding: 20px 20px 12px;
        gap: 10px;
    }

    .hero-info-card p {
        min-height: 0;
    }
}

.hero-content p {
    color: var(--c_blue4);
    text-align: left;
    line-height: 1.6;
    max-width: 680px;
    font-size: 16px;
    margin: 0 0 20px;
}

.hero-content p:last-child {
    margin-bottom: 0;
}

/* ========================================
   CURSOS MAIS ACESSADOS
   ======================================== */
.cursos-section {
    background: var(--c_blue3);
    color: var(--c_white);
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 30px 40px;
}

.cursos-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    max-width: var(--max-w);
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 30px;
}

.cursos-header h2 {
    font-family: var(--fonte-destaque);
    font-size: 26px;
    font-weight: 500;
}

.btn-cursos-all {
    flex-shrink: 0;
    background: var(--c_red);
    color: var(--c_white);
    font-weight: bold;
    font-size: 15px;
    text-decoration: none;
    white-space: nowrap;
    padding: 10px 20px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.btn-cursos-all:hover {
    background-color: #c72d10;
}

.cursos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: var(--max-w);
    margin: 0 auto;
}

.curso-card {
    height: 239px;
    padding: 16px;
    background: var(--c_blue3);
    border-radius: 10px;
    border: 1px solid var(--c_white3);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 12px;
}

.curso-nome,
.curso-duracao,
.curso-ferramenta {
    color: var(--c_white);
    font-family: var(--fonte-destaque);
    font-size: 16px;
    font-style: normal;
    line-height: normal;
    margin: 0;
}

.curso-nome,
.curso-duracao {
    font-weight: 500;
}

.curso-ferramenta {
    font-weight: 300;
}

.curso-btn {
    align-self: flex-end;
    background: var(--c_red);
    color: var(--c_white);
    font-weight: bold;
    font-size: 14px;
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.curso-btn:hover {
    background-color: #c72d10;
}

/* ========================================
   HOME PAGE - RESPONSIVIDADE 1100px
   ======================================== */
@media only screen and (max-width: 1100px) {
    .hero {
        flex-direction: column;
        /* base (>=1100px) usa align-items:flex-start pro layout em linha
           (alinha topo da imagem com o topo do texto). Em coluna isso vira
           "alinhar pela esquerda" e faz .hero-content encolher pro
           max-content do parágrafo em vez de ocupar a largura toda —
           é o vazamento: o texto ficava mais largo que o cartão. */
        align-items: stretch;
        gap: 30px;
        max-width: 700px;
        margin: 0 auto 90px;
    }

    .hero-image {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .hero-content {
        text-align: center;
        padding: 0 20px;
    }

    .hero-content h1 {
        text-align: left;
    }

    .hero-search {
        max-width: 100%;
    }

    .hero-content p {
        text-align: justify;
        margin-left: auto;
        margin-right: auto;
    }

    .cursos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========================================
   HOME PAGE - RESPONSIVIDADE 800px
   ======================================== */
@media only screen and (max-width: 800px) {

  .hero-image {
    display: none;
  }

  .cursos-section {
    padding: 24px;
  }
}

/* ========================================
   HOME PAGE - RESPONSIVIDADE 600px
   ======================================== */
@media only screen and (max-width: 600px) {
    .hero-content {
        padding: 0 10px;
    }

    .hero-content p {
        text-align: justify;
        width: 100%;
    }

    .cursos-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .cursos-grid {
        grid-template-columns: 1fr;
    }
}

@media only screen and (max-width: 400px) { 
    .hero-content > h1 {
        font-size: 25px;
    }
}