@import url('https://fonts.googleapis.com/css2?family=Lexend+Deca:wght@400;500;600;700&display=swap');

/* =========================
   FOOTER
   ========================= */
footer {
    background-color: #092e5e;
    width: 100%;
    height: 220px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: #ffffff;
    font-weight: 500;
    margin-bottom: 0;
    /*  margin-top: 20px; */
}

#avatar-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    min-width: 160px;
    padding: 6px 0;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

#avatar-dropdown.show {
    opacity: 1;
    visibility: visible;
}

#avatar-dropdown .avatar-item,
.avatar-item {
    display: block;
    padding: 8px 12px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.avatar-item:hover {
    background: #f5f7fa;
}

#partes>a {

    display: inline-block;
    padding-bottom: 0.25rem;
    position: relative;
    text-decoration: none;
    color: #ffffff;
    margin-left: 10px;
    margin-right: 10px;
    font-size: 20px;
    margin-top: 10px;
}

.contactInfo>a {
    display: inline-block;
    padding-bottom: 0.25rem;
    position: relative;
    font-size: 18px;
    text-decoration: none;
    color: #ffffff;
    margin-left: 0px;
    margin-right: 30px;

}

#headerLinks a.active::before {
    width: 100%;
    left: 0;
}

.contactInfo>a::before,
#partes>a::before,
#headerLinks a::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: #fff;
    transform-origin: center;
    transition: 0.2s ease-out;
}

.contactInfo>a:hover::before,
#partes>a:hover::before,
#headerLinks a:hover::before {
    width: 100%;
    left: 0;
    right: 0;

}

.contactInfo {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-top: 10px;
    gap: 5px;
}

.contactInfo i {
    font-size: 18px;
    color: #ffffff;

}

#footerLogo {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

#footerLogo p {
    font-size: 35px;
    font-weight: 600;
    color: #ffffff;
    margin-left: 10px;
    margin-top: auto;
    margin-bottom: auto;
}

#partes,
#contato {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin: 10px;
}

#logoFooter {
    width: 100px;
    height: auto;
    margin-top: 20px;
    margin-bottom: 10px;
}

.contactImages {
    width: auto;
    height: 18px;
}

#linhaFooter {
    width: 100%;
    border-bottom: 1px solid white;
    opacity: 0.2;
    border-radius: 50%;
    margin-top: 20px;
}

#direitos {
    font-size: 16px;
    margin-top: 10px;
    margin-bottom: 10px;
    opacity: 0.5;
    font-weight: 200;
}

#location-icon {
    color: #faf8f1;
}

#contato .aLink:hover,
.contactInfo>a.aLink:hover {
    color: #faf8f1 !important;

}

/*FOOTER*/

label {
    margin-bottom: 14px;
    font-size: 1rem;
    color: #153866;
}


body {
    background: #ffffff;
    margin: 0;
}

/*HEADER*/

header {
    background: #092e5e;
    margin-bottom: 40px;
}

#headerItems {
    height: 80px;
    width: 90%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-right: 5px;
}

#headerLinks {
    display: flex;
    flex-direction: row;
    gap: 60px;

}

#headerLinks>a {
    display: inline-block;
    padding-bottom: 0.10rem;
    position: relative;
    text-decoration: none;

    color: #faf8f1;
    font-size: 24px;
    font-weight: 500;
}

#logo-titulo {
    display: flex;
    align-items: center;
    width: 20%;

}

#logopequena {
    height: 50px;
    margin-left: 50px;
    cursor: pointer;
}

#titulo {
    color: #fff;
    font-size: 40px;
    margin-left: 10px;
    font-weight: 600;
    cursor: pointer;
}

#usuario {
    border: 2px solid #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 20px;
    cursor: pointer;
}

/* Dropdown e seus elementos */
#avatar-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    min-width: 160px;
    padding: 6px 0;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

#avatar-dropdown.show {
    opacity: 1;
    visibility: visible;
}

.avatar-item {
    display: block;
    padding: 8px 12px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.avatar-item:hover {
    background: #f5f7fa;
}

/* Estilo da seta chevron */
.avatar-arrow {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    right: 1px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.avatar-arrow.show {
    opacity: 1;
    visibility: visible;
}

.avatar-arrow::before {
    content: '';
    position: absolute;
    width: 8px;
    height: 2px;
    background-color: #fff;
    top: 50%;
    left: 0;
    transform: rotate(45deg);
    transform-origin: right;
}

.avatar-arrow::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 2px;
    background-color: #fff;
    top: 50%;
    right: 0;
    transform: rotate(-45deg);
    transform-origin: left;
}

/* Mostra a seta quando passar o mouse sobre o wrapper do avatar */
#usuario:hover + .avatar-arrow {
    opacity: 1;
    visibility: visible;
}

#usuario-chevron {
    width: 24px;  /* Aumentado de 16px para 24px */
    height: 24px; /* Aumentado de 16px para 24px */
    fill: currentColor;
    transition: transform 0.2s ease;
}

#itensHeader {
    width: 60%;
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    align-items: center;
    margin-right: 10px;
}

/*HEADER*/


main {
    min-height: 100vh;
}

/* Cards de universidades/cursos */

#cards-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 32px;
    margin: 0 auto 0 auto;
    max-width: 1200px;
    width: 95%;

}

.cardUniversidade {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #dbe0e6;
    box-shadow: 0 6px 18px rgba(8, 20, 40, 0.06);
    box-sizing: border-box;
    color: #051933;
}


.cardUniversidade:hover,
.cardUniversidade:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);
    transition: all 0.3s ease;
}

.tag-grau:hover {
    background-color: #092e5e;
    color: white;
}

.cardUniversidade {
    width: 370px;
    max-width: 100%;
    margin: 40px auto;
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(8, 20, 40, 0.06);
    border: 1px solid #ddd;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.cardUniversidade-header {
    background-color: #092e5e;
    border-top-right-radius: 16px;
    border-top-left-radius: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 24px 12px 24px;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
}

#logo {
    height: 60px;
    width: 60px;
    border-radius: 12px;
    background: #fff;
    object-fit: contain;
}


#nomes {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

#sigla {
    color: white;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
}

#nome {
    color: #dbe0e6;
    font-size: 13px;
    font-weight: 500;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.cardUniversidade-rating {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 4px 10px;
    margin-left: 12px;
    font-size: 15px;
    color: #fff;
    font-weight: 600;
    flex-shrink: 0;
    gap: 5px;
}

.cardUniversidade-rating .star {
    margin-right: 5px;
    color: #fff;
}

.cardUniversidade-body {
    background: #fff;
    padding: 18px 24px 8px 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
}

.cardUniversidade-row {
    display: flex;
    align-items: center;
    font-size: 15px;
    color: #6b7280;
    margin-bottom: 2px;
    gap: 8px;
}

.cardUniversidade-label {
    font-weight: 500;
    color: #6b7280;
}

.cardUniversidade-value {
    color: #334155;
    /* darker for values */
    font-weight: 500;
}

.cardUniversidade-tags {
    display: flex;
    align-items: center;
}

.tag {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.tag-grau {
    background: #eef6ff;
    color: #092e5e;
    border: none;
    font-weight: 700;
    padding: 6px 18px;
    font-size: 14px;
    border-radius: 20px;
}

#linha {
    border: .01rem grey solid;
    border-radius: 50%;
    width: 95%;
    margin: auto;
}

/* From Uiverse.io by adamgiebl */
/* From Uiverse.io by cssbuttons-io */
.button, .btnVerMaisArea {
    gap: 20px;
    position: relative;
    overflow: hidden;
    height: 2.5rem;
    padding: 0 2rem;
    border-radius: 10px;
    background: #092e5e;
    background-size: 400%;
    color: #fff;
    border: none;
    cursor: pointer;
    border: 2px solid #092e5e;
    cursor: pointer;
    transition: all 0.3s ease;
}

.button, .btnVerMaisArea{
    background: #092e5e;
    color: #fff;
    border-radius: 10px;
    padding: 8px 22px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    transition: background 0.2s;
}

.button:hover, .btnVerMaisArea:hover {
    background: #0c3b79;
}

#bottomCard {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-top: 18px;
    margin: 20px 0 0 0;
    width: 100%;
    box-sizing: border-box;
}

/* =========================
   CARD CURSO (PADRONIZADO)
   ========================= */

.cardCurso {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #dbe0e6;
    box-shadow: 0 6px 18px rgba(8, 20, 40, 0.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 370px;
    max-width: 100%;
    margin: 40px auto;
    transition: all 0.3s ease;
    box-sizing: border-box;
    
}

.cardCurso:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);
}

/* Cabeçalho */
.cardCurso-header {
    background-color: #092e5e;
    border-top-right-radius: 16px;
    border-top-left-radius: 16px;
    padding: 18px 24px 12px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-sizing: border-box;
}

.cardCurso-titulo {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.5px;
}

.cardCurso-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* Corpo */
.cardCurso-body {
    background: #fff;
    padding: 18px 24px 16px 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-sizing: border-box;
}

.cardCurso-row {
    display: flex;
    align-items: center;
    font-size: 15px;
    color: #6b7280;
    margin-bottom: 2px;
}

.cardCurso-label {
    font-weight: 500;
    color: #6b7280;
}

/* Tag */
.tag {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.tag-grau {
    background: #eef6ff;
    color: #092e5e;
    border: none;
    font-weight: 700;
    padding: 6px 18px;
    font-size: 14px;
    border-radius: 20px;
}

.tag-grau:hover {
    background-color: #092e5e;
    color: white;
}

/* Botão e parte inferior */
#bottomCardCurso {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 18px;
}

.button {
    gap: 20px;
    position: relative;
    overflow: hidden;
    height: 2.5rem;
    padding: 0 2rem;
    border-radius: 10px;
    background: #092e5e;
    color: #fff;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
}

.button:hover {
    background: #0c3b79;
}

/* Load project-wide responsive overrides (keeps all responsive rules isolated).
   This file only contains non-invasive overrides and media queries.
   We keep it imported at the end so these rules have natural precedence. */
@import url('responsive.css');
