:root {
    --cor-primaria: #33c3d3;
    --color-btn-red: #f25e5e;
    --color-btn-orange: #f97216;
    --color-btn-purple: #a654f6;
    --color-btn-light-green: #22c45d;
    --color-green-whatsapp: #12b981;
}

body {
    background-color: #f8fafc;
    padding-top: 56.8px;
}

.visualizar-todos {
    text-decoration: none;
    color: var(--cor-primaria);
    font-weight: 600;
}

/* ======================================== */
/* BUTTONS */
/* ======================================== */

.btn {
    color: #fff;
    font-weight: 600;
}

.btn-primary-green {
    background-color: var(--cor-primaria);
}

.btn-red {
    background-color: var(--color-btn-red);
}

.btn-orange {
    background-color: var(--color-btn-orange);
}

.btn-purple {
    background-color: var(--color-btn-purple);
}

.btn-light-green {
    background-color: var(--color-btn-light-green);
}

.btn-green-whatsapp {
    background-color: var(--color-green-whatsapp);
}

/* ======================================== */
/* HEADER */
/* ======================================== */

header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: white;
    z-index: 1000;
}

.nav-link {
    color: #333;
}

.nav-link:hover {
    color: var(--cor-primaria);
}

header svg {
    color: #999ba9 !important;
}

header #form-search .input-group {
    background-color: #f1f4f9;
    border-radius: 20px;
    overflow: hidden;
    /* Faz o input e o ícone seguirem o border-radius */
}

header #form-search input {
    border-radius: 0 20px 20px 0;
    background-color: transparent;
    color: #bec7d0;
    border: none;
    box-shadow: none;
}

header #form-search .input-group-prepend .input-group-text {
    background-color: transparent;
    border: none;
    padding-left: 0.8rem;
    padding-right: 0.5rem;
    color: #bec7d0;
    display: flex;
    align-items: center;
    height: 100%;
}

header #form-search .fas {
    color: #bec7d0;
}

header #form-search input::placeholder {
    color: #bec7d0;
    opacity: 1;
}

.btn-login {
    background-color: var(--cor-primaria);
    border: none;
    border-radius: 5px;
}

/* ======================================== */
/* BANNER */
/* ======================================== */

.banner-overlay {
    background: #1E293B;
    background: linear-gradient(90deg, rgba(30, 41, 59, 0.7) 30%, rgba(20, 92, 116, 0.1) 100%);

}

.banner-overlay-text {
    max-width: 40%;
    font-size: 19px;
}

.banner-overlay-buttons a {
    max-width: 180px;
}

.overlay-statistics-item {
    background-color: #102332;
}

/* ======================================== */
/* CURSOS */
/* ======================================== */

.section-courses {
    padding: 0;
}

.section-courses h3 {
    font-weight: 700;
}

.card-course {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 10px;
    transition: 0.3s ease-in-out;
    overflow: hidden;
}

.card-course:hover {
    cursor: pointer;
}

.card-course a {
    text-decoration: none;
    color: inherit;
}

.card-course .card-image-wrapper {
    flex-shrink: 0;
    width: 100%;
    aspect-ratio: 4 / 3;
    position: relative;
    overflow: hidden;
}

.card-course img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.3s ease;
    position: absolute;
    top: 0;
    left: 0;
}

.card-course:hover {
    transform: scale(1.02);
}

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

.card-course .card-body {
    flex-grow: 1;
    padding: 12px;
    display: flex;
    align-items: flex-start;
}

.card-course .card-title {
    font-weight: 600;
    font-size: 14px;
    line-height: 1.5;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.card-course .btn-matricule,
.card-course .btn-saiba-mais {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    width: 75%;
    text-align: center;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 0.85rem;
}

.card-course .btn-matricule {
    bottom: 25%;
    background-color: #1E293B;
    color: #fff;
    border-color: #1E293B;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.card-course .btn-matricule:hover {
    background-color: #273759;
}

.card-course .btn-saiba-mais {
    bottom: 8%;
    background-color: var(--cor-primaria);
    color: #fff;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.card-course .btn-saiba-mais:hover {
    background-color: var(--color-btn-light-green);
}


.card-course:hover .btn-matricule,
.card-course:hover .btn-saiba-mais {
    opacity: 1;
}



/* ======================================== */
/* DEPOIMENTOS */
/* ======================================== */

.section-depoimentos {
    padding: 0;
}

.section-depoimentos h3 {
    text-align: center;
    font-size: 30px;
    font-weight: 700;
}

.card-depoimento {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 10px;
    border: 1px solid #e8e9eb;
    background-color: #fff;
    min-height: 400px;
    max-height: 400px;
    align-items: flex-start;
    transition: 0.3s ease-in-out;
}

.card-depoimento svg {
    color: var(--cor-primaria) !important;
}

.card-depoimento p.text-truncate-multiline {
    display: -webkit-box;
    font-size: 14px;
    -webkit-line-clamp: 11;
    /* Ajuste o número de linhas aqui */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    /* Ajuste conforme o tamanho da fonte */
    margin: 0;
    /* Tira margens que podem afetar o cálculo */
    max-height: calc(1.4em * 11);
    /* Linha x número de linhas, opcional */
}


.card-depoimento img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    object-position: top;
    border-radius: 50%;
}

.card-depoimento .author {
    font-weight: 700;
}

.card-depoimento:hover {
    -webkit-box-shadow: 0px 6px 27px -11px rgba(194, 197, 199, 1);
    -moz-box-shadow: 0px 6px 27px -11px rgba(194, 197, 199, 1);
    box-shadow: 0px 6px 27px -11px rgba(194, 197, 199, 1);
}

/* ======================================== */
/* MODALIDADES */
/* ======================================== */

.section-modalidades {
    padding: 0;
}

.section-modalidades h3 {
    font-weight: 700;
}

.card-modalidade {
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    border: 1px solid #e3e7ea;
    /* padding: 8px; */
    background-color: #fff;
    text-align: center;
    transition: transform 0.2s;
}

.card-modalidade svg {
    color: var(--cor-primaria) !important;
}

.card-modalidade .title {
    font-weight: 600;
    font-size: 14px;
    padding: 0;
    min-height: 3em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-modalidade span {
    font-size: 12px;
    font-weight: 400;
}

/* ======================================== */
/* CONTEÚDO GRÁTIS */
/* ======================================== */

.card-aulas-free {
    overflow: hidden;
    border-radius: 10px;
    transition: transform 0.2s ease-in-out;
}

.card-aulas-free .card-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 200px;
    width: 100%;
    border-radius: 10px;
}

.card-aulas-free .card-image-wrapper img {
    object-fit: cover;
    height: 100%;
    width: 100%;
    object-position: top;
    border-radius: 10px;
    transition: transform 0.1s ease-in-out, border-radius 0.2s ease-in-out;
}

.card-aulas-free .card-image-wrapper button {
    position: absolute;
    bottom: 40%;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    padding: 10px 12px;
    font-size: 0.85rem;
    border-radius: 4px;
    text-decoration: none;
    opacity: 0;
    background-color: #dc2626;
    margin-inline: 2%;
    border: none;
    transition: opacity 0.2s ease, background-color 0.2s ease;
}

.card-aulas-free:hover {
    transform: scale(1.02);
    cursor: pointer;
}

.card-aulas-free:hover .card-image-wrapper img {
    transform: scale(1.05);
    border-radius: 10px;
}

.card-aulas-free:hover button {
    opacity: 1;
}

.card-aulas-free button:hover {
    background-color: #8f1818;
}

/* ======================================== */
/* AULAS RECOMENDADAS */
/* ======================================== */

.section-aulas-recomendadas {
    padding: 0;
}

.section-aulas-recomendadas .section-title h3 {
    font-weight: 700 !important;
}

.card-aulas {
    max-height: 300px;
    overflow: hidden;
    position: relative;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
}

.card-aulas:hover {
    cursor: pointer;
    color: inherit;
}

.card-aulas .card-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 200px;
    width: 100%;
}

.card-aulas img {
    object-fit: cover;
    object-position: top;
    height: 200px;
    width: 100%;
    transition: transform 0.3s ease;
}

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

.card-aulas .card-title {
    font-weight: 600;
    min-height: 3em;
    line-height: 1.5;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}


/* ======================================== */
/* DATA CARD */
/* ======================================== */

.card-dados .container {
    background: #1E293B;
    background: linear-gradient(90deg, rgb(138, 144, 156, 1) 0%, rgb(136, 163, 174, 1) 100%);
    color: #fff;
    border-radius: 10px;
}

.card-dados .container h4 {
    color: var(--cor-primaria);
    font-size: 36px;
    font-weight: 600;
}

/* ======================================== */
/* MEC CARD */
/* ======================================== */

.card-mec .container {
    background: #1E293B;
    background: linear-gradient(90deg, rgba(30, 41, 59, 1) 0%, rgba(20, 92, 116, 1) 100%);
    color: #fff;
    border-radius: 10px;
}

.card-mec .container i {
    font-size: 60px !important;
    color: var(--cor-primaria);
}

.card-mec .container .btn {
    max-width: 300px;
    min-width: 150px;
    background-color: var(--cor-primaria);
    color: #fff;
    padding-block: 10px;
}

/* ======================================== */
/* FOOTER */
/* ======================================== */

footer {
    background: 1D283A;
    background: linear-gradient(90deg, rgba(0, 0, 0, 1) 0%, rgba(22, 30, 49, 1) 50%, rgba(14, 22, 41, 1) 100%);
    color: #fff;
}

footer h6 {
    color: var(--cor-primaria);
    font-weight: bold;
    font-size: 20px;
}

footer a {
    text-decoration: none;
}

footer a span {
    color: #fff;
    font-weight: 500;
}

.social-links li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #555;
    /* cinza levemente escuro */
    color: #fff;
    /* ícones brancos */
    border-radius: 50%;
    text-decoration: none;
    transition: background-color 0.3s;
}

.social-links li a:hover {
    background-color: #333;
    /* cor um pouco mais escura no hover */
}

.social-links li {
    list-style: none;
    margin-right: 10px;
}

.social-links li:last-child {
    margin-right: 0;
}

.social-links span::before {
    font-size: 18px;
}

.swiper {
    width: 100%;
    height: 300px;
}

/* ======================================== */
/* FORUM PAGE */
/* ======================================== */

.fixed-discussion h5 svg {
    color: #f97316 !important;
}

.all-discussion h5 svg {
    color: #06b6d4 !important;
}

/* ======================================== */
/* DISCUSSION CARD */
/* ======================================== */

.discussion-card {
    background-color: #fff;
    transition: 0.2s ease-in-out;
}

.discussion-card:hover {
    -webkit-box-shadow: 0px 4px 12px -6px rgba(66, 68, 90, 1);
    -moz-box-shadow: 0px 4px 12px -6px rgba(66, 68, 90, 1);
    box-shadow: 0px 4px 12px -6px rgba(66, 68, 90, 1);
}

.discussion-card.fixed {
    position: relative;
    overflow: hidden;
    border-radius: 10px !important;
    border-left: 4px solid #f97316 !important;
}

.discussion-card .comment-card {
    color: #06b6d4 !important;
}

.discussion-card .class-card {
    color: #22c55e !important;
}


.discussion-card .fixed-card {
    color: #f97316 !important;
}

.discussion-card .badge {
    font-weight: 600;
    padding: 5px 12px;
    background-color: #00e5ff !important;
}

.discussion-card .badge.badge-teacher {
    background-color: #f3e8ff !important;
    color: #6b21a8 !important;
}

.discussion-card .badge.badge-student {
    background-color: #dbeafe !important;
    color: #1e40af !important;
}

.discussion-card .title {
    font-weight: 600;
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.discussion-card .description {
    color: #648596;
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.discussion-card .discussion-data {
    color: #4b5563 !important;
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.discussion-card .discussion-data p {
    margin-bottom: 0 !important;
}

.discussion-card .discussion-course-info {
    color: #6b7280 !important;
    font-size: 0.75rem;
    line-height: 1rem;
}

.btn-discussion-card {
    background-color: transparent !important;
    color: #132d3f !important;
    transition: 0.2s ease-in-out;
}

.btn-discussion-card:hover {
    background-color: #00e5ff !important;
}