/* ==========================================================================
   Banner Superior Institucional
   ========================================================================== */
.course-hero-banner {
    width: 100%;
    background-color: #0f234b;
    padding: 40px 8%;
    color: #ffffff;
}

.course-hero-banner__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.course-hero-banner__breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: "Inter", sans-serif;
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 10px;
}

.course-hero-banner__title {
    margin: 0 0 8px 0;
    font-family: "Inter", sans-serif;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
}

.course-hero-banner__subtitle {
    margin: 0;
    font-family: "Inter", sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: #cbd5e1;
}

.course-hero-banner__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #f6b529;
    color: #0f234b !important;
    font-family: "Inter", sans-serif;
    font-size: 14px;
    font-weight: 700;
    padding: 13px 24px;
    border-radius: 6px;
    text-decoration: none !important;
    transition: background-color 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}

.course-hero-banner__btn:hover {
    background-color: #e0a11b;
    transform: translateY(-1px);
}

.vestibular-options-modal .modal-dialog {
    max-width: 560px;
}

.vestibular-options-modal .modal-content {
    overflow: hidden;
    border: 0;
    border-radius: 12px;
    box-shadow: 0 24px 70px rgba(15, 35, 75, 0.28);
}

.vestibular-options-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 28px 30px 24px;
    border: 0;
    background: linear-gradient(135deg, #0f234b 0%, #18396d 100%);
    color: #ffffff;
}

.vestibular-options-modal__eyebrow {
    display: block;
    margin-bottom: 10px;
    color: #f6b529;
    font-family: "Inter", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
}

.vestibular-options-modal__title {
    margin: 0;
    color: #ffffff;
    font-family: "Inter", sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.25;
}

.vestibular-options-modal__intro {
    margin: 8px 0 0;
    color: #d3deef;
    font-family: "Inter", sans-serif;
    font-size: 14px;
}

.vestibular-options-modal__close {
    margin: -8px -10px 0 16px;
    color: #ffffff;
    opacity: 0.8;
    text-shadow: none;
}

.vestibular-options-modal__close:hover,
.vestibular-options-modal__close:focus {
    color: #f6b529;
    opacity: 1;
}

.vestibular-options-modal__body {
    display: grid;
    gap: 12px;
    padding: 24px 30px 30px;
    background: #f6f8fb;
}

.vestibular-options-modal__option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    border: 1px solid #e1e7f0;
    border-radius: 8px;
    background: #ffffff;
    color: #0f234b !important;
    text-decoration: none !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.vestibular-options-modal__option:hover,
.vestibular-options-modal__option:focus {
    transform: translateY(-2px);
    border-color: #f6b529;
    box-shadow: 0 8px 20px rgba(15, 35, 75, 0.09);
    color: #0f234b !important;
    text-decoration: none !important;
}

.vestibular-options-modal__option:focus {
    outline: 2px solid #0f234b;
    outline-offset: 2px;
}

.vestibular-options-modal__number {
    display: flex;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fff3d4;
    color: #0f234b;
    font-family: "Inter", sans-serif;
    font-size: 13px;
    font-weight: 700;
}

.vestibular-options-modal__copy {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 4px;
    font-family: "Inter", sans-serif;
}

.vestibular-options-modal__copy strong {
    color: #0f234b;
    font-size: 15px;
    font-weight: 700;
}

.vestibular-options-modal__copy small {
    color: #64748b;
    font-size: 13px;
    line-height: 1.45;
}

.vestibular-options-modal__arrow {
    color: #b47a00;
    font-size: 20px;
    transition: transform 0.2s ease;
}

.vestibular-options-modal__option:hover .vestibular-options-modal__arrow,
.vestibular-options-modal__option:focus .vestibular-options-modal__arrow {
    transform: translateX(3px);
}

/* ==========================================================================
   Contador de Cursos e Filtros Ativos
   ========================================================================== */
.course-list__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
    font-family: "Inter", sans-serif;
    font-size: 14px;
    color: #64748b;
    max-width: 1100px;
    margin-left: 10px;
}

.course-list__active-filters strong {
    color: #0f172a;
    font-weight: 700;
}

/* ==========================================================================
   Card de Destaque na Sidebar
   ========================================================================== */
/* ==========================================================================
   Card de Destaque na Sidebar
   ========================================================================== */
.course-highlight-card {
    position: relative;
    overflow: hidden;
    margin-top: 20px;
    width: 229px;
    padding: 20px;
    border-radius: 12px;
    background-color: #0f234b;
    color: #ffffff;
    font-family: "Inter", sans-serif;
}

.course-highlight-card--mobile {
    display: none;
}

/* Bola azul decorativa no canto superior direito */
.course-highlight-card::after {
    content: "";
    position: absolute;
    top: -35px;
    right: -35px;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: rgba(56, 189, 248, 0.14);
    pointer-events: none;
}

.course-highlight-card__title,
.course-highlight-card__badge,
.course-highlight-card__text,
.course-highlight-card__btn {
    position: relative;
    z-index: 1;
}
h3{
    border-bottom:0 !important;
}


.course-highlight-card__badge {
    display: inline-block;
    background-color: #2596be;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 12px;
}

.course-highlight-card__title {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    color: #ffffff;
}

.course-highlight-card__title--accent {
    color: #38bdf8;
   
}

.course-highlight-card__text {
    margin: 0 0 18px 0;
    font-size: 13px;
    line-height: 1.45;
    color: #cbd5e1;
}

.course-highlight-card__btn {
    display: block;
    width: 100%;
    text-align: center;
    background-color: #f6b529;
    color: #0f234b !important;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 14px;
    border-radius: 6px;
    text-decoration: none !important;
    transition: background-color 0.2s ease;
}

.course-highlight-card__btn:hover {
    background-color: #e0a11b;
}
/* ==========================================================================
   Layout Principal de Cursos e Filtros
   ========================================================================== */
.course-layout {
    display: flex;
    gap: 20px;
    margin-top: 3%;
    justify-content: center;
}

.course-list__container {
    width: 100%;
    
}

label,input{
    cursor: pointer;
}

.course-list__content {
    display: flex;
    width: 100%;
    margin-right: 8%;
   
    flex-direction: column;
}

/* Estou sobrescrevendo o arquivo .custom.css */
.curso-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    box-sizing: border-box;
    height: 350px !important;
    padding-bottom: 0;
}

.curso-box{
    max-width: 295px !important;
}

/* ==========================================================================
   Imagem e Tags do Card
   ========================================================================== */
/* Container da imagem no card */
.curso-card .img {
    position: relative;
    flex: 0 0 190px;
    height: 190px;
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;

    background-color: #e2e8f0; /* Placeholder visual enquanto carrega */
}

/*Imagem com preenchimento total e proporção preservada */
.curso-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/*Garante que o botão de "Saiba Mais" fique acima da imagem */
.curso-card .div-btn-course {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.course-card__tags {
    display: flex;
    flex: 0 0 44px;
    align-content: flex-start;
    gap: 4px;
    margin: 0;
    overflow: hidden;
    flex-wrap: wrap;
}

.course-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    width: 100%;
    min-height: 0;
    padding: 10px 12px;
    box-sizing: border-box;
}

.course-card__title {
    display: -webkit-box;
    min-height: 2.4em;
    max-height: 2.4em;
    margin: 0 0 8px;
    overflow: hidden;
    font-size: 20px;
    line-height: 1.2;
    text-align: center;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.course-card__type {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 20px;
    margin-top: auto;
}

.course-card__tag-badge {
    background-color: #3f4c75;
    box-shadow: 1px 1px 2px black;
    border-radius: initial;
}

.curso-card .course-modality-tag {
    display: flex;
    align-items: center;
    height: 20px;
    min-height: 20px;
    max-width: 100%;
    padding: 0 8px;
    border-radius: 2px;
    background: #2d4388;
    color: #fff;
    font-size: 12px;
    line-height: 1;
    box-sizing: border-box;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ==========================================================================
   Filtros
   ========================================================================== */
.course-filter__sidebar {
    width: auto;
    margin-left: 8%;
    margin-bottom: 2rem;
}

.course-filter__group {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.course-filter__card {
    padding: 20px;
    width: 229px;
    border-radius: 8px;
    background: rgba(241, 241, 241, 0.3);
    box-shadow:
        4px -4px 4px 0 rgba(0, 0, 0, 0.25),
        -4px 4px 4px 0 rgba(0, 0, 0, 0.25);
}

.title-cards-mobile,
.title-cards-desktop {
    color: #000;
    font-family: Inter;
    font-size: 20px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
}

.course-filter__title {
    display: block;
    margin-bottom: 26px;
    color: #1f2b50;
    font-family: "Inter", sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
}

/* ==========================================================================
   Form Checks & Controles
   ========================================================================== */
.form-check {
    display: flex;
    align-items: center;
    gap: 16px;
}

.form-check + .form-check {
    margin-top: 16px;
}

.form-check-input {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    margin: 0;
    border-radius: 5px;
    border: 0.5px solid #000;
    background: #fff;
}

.form-check-label {
    margin: 0;
    color: #000;
    font-family: "Inter", sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

/* ==========================================================================
   Botão Flutuante e Drawer Mobile
   ========================================================================== */
.floating-filter-btn {
    display: none;
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1050;
    background: #2d4388;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 12px 20px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

.floating-filter-btn:hover {
    background: #1f2b50;
    transform: scale(1.05);
}

.drawer-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1060;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.drawer-overlay.active {
    display: block;
    opacity: 1;
}

.drawer-header {
    display: none;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #ddd;
}

.drawer-close-btn {
    background: transparent;
    border: none;
    font-size: 32px;
    line-height: 1;
    color: #333;
    cursor: pointer;
    padding: 0 6px;
}

/* ==========================================================================
   Media Queries: Responsividade (<= 991px)
   ========================================================================== */
@media (max-width: 991px) {
    .course-hero-banner {
        padding: 28px 20px;
    }

    .course-hero-banner__title {
        font-size: 26px;
    }

    .floating-filter-btn {
        display: flex;
    }

    .drawer-header {
        display: flex;
    }

    body.drawer-no-scroll {
        overflow: hidden;
    }

    .course-layout {
        margin-top: 20px;
        display: block;
    }

    .course-list__content {
        align-items: center;
        margin-right: 0;
    }

    .course-list__content > .row {
        justify-content: center;
    }

    .course-list__content > .row > .graduacao-curso {
        display: contents;
    }

    .course-list__content > .row > .curso-box {
        flex: 0 0 50%;
        width: 100%;
    }

    .course-list__summary {
        width: 100%;
        padding: 0;
        margin-left: 20px;
        margin-right: 20px;
    }
    .row{
        width: 100% !important;
    }
    /* Transformação da Sidebar em Drawer Deslizante */
    .course-filter__sidebar {
        position: fixed;
        top: 0;
        right: -330px;
        width: 300px;
        max-width: 85vw;
        height: 100vh;
        margin-left: 0;
        background: #ffffff;
        z-index: 1070;
        padding: 24px 20px;
        overflow-y: auto;
        box-shadow: -6px 0 20px rgba(0, 0, 0, 0.25);
        transition: right 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    }

    .course-filter__sidebar.drawer-open {
        right: 0;
    }

    .title-cards-desktop {
        display: none;
    }

    .course-filter__card,
    .course-highlight-card {
        width: 100%;
        box-shadow: none;
        border: 1px solid #e2e8f0;
        background: #fbfbfb;
        margin: 0;
        border-radius:0;
        margin-top: 1px;
       
    }

    .course-highlight-card {
        background-color: #0f234b;
        border: none;
        
    }

    .course-highlight-card--sidebar {
        display: none;
    }

    .course-highlight-card--mobile {
        display: block;
        width: 100%;
        box-sizing: border-box;
        margin-top: 1px;
    }


}

@media (max-width: 575px) {
    .course-list__content > .row > .curso-box {
        flex-basis: 100%;
    }

    .vestibular-options-modal .modal-dialog {
        margin: 12px;
    }

    .vestibular-options-modal__header {
        padding: 24px 22px 20px;
    }

    .vestibular-options-modal__title {
        font-size: 21px;
    }

    .vestibular-options-modal__body {
        padding: 18px 18px 22px;
    }

    .vestibular-options-modal__option {
        gap: 12px;
        padding: 14px;
    }

    .vestibular-options-modal__number {
        flex-basis: 36px;
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 400px) {
    .row{
        width: auto !important;
    }
}