@font-face {
    font-family: 'ViceCitySans';
    src: url('../../fonts/ViceCitySans.otf');
}

body {
    font-family: 'Montserrat';
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

.hidden {
    display: none !important;
}

main {
    flex: 1;
}

.container {
    max-width: 1228px;
    margin: 0 auto;
    padding: 0 32px;
}

.arc {
    width: 150px;
    height: 150px;
    border-radius: 100%;
    background: conic-gradient(
        from 0deg,
        rgba(255,255,255,0) 0deg,
        rgba(255,255,255,1) 90deg,
        rgba(255,255,255,0) 90deg
    );
    -webkit-mask: radial-gradient(circle, transparent 50%, black 50%);
    mask: radial-gradient(circle, transparent 50%, black 50%);
}

.btn:focus,
.btn:active,
.btn.show {
    background-color: transparent !important;
    border-color: #6c757d !important;
    box-shadow: none !important;    
    color: #333333 !important;  
}

.dropdown-container {
    display: flex;
    gap: 24px;
    width: 100%;
    align-items: center;
    margin-top: 2rem;
    padding-bottom: 40px;
}

.dropdown {
    width: 374px;
}


.dropdown-label {
    font-weight: 600;
    color: #676769;
    margin-bottom: 0;
}

.dropdown-menu {
    overflow-y: auto;
    width: 100% !important;
    border: 1px solid #676769;
    max-height: 250px;
    max-width: 400px;
}

.dropdown-item.active, 
.dropdown-item:active {
    color: #333333;
    background-color: #d7dae5 !important; 
}


.dropdown-toggle:hover {
    color: #676769;
    background-color: #fff;
}

.dropdown-toggle:active, .dropdown-toggle:focus, .show > .btn-secondary.dropdown-toggle {
    box-shadow: none;
    background-color: #fff;
}

.dropdown-toggle:not(:hover) {
    background-color: #fff;
    color: #333333;
}

.dropdown-toggle::after {
    display: inline-block;
    margin-left: 0.255em;
    vertical-align: 0.255em;
    content: "";
    border: none; /* remove a seta padrão */
    background-image: url('../../images/select-arrow.svg');
    background-repeat: no-repeat;
    background-size: 1em 1em;
    width: 1em;
    height: 1em;
}

.dropdown-toggle.show::after {
    transform: rotate(180deg);
}

.dropdown-toggle {
    border: 1px solid #676769;
    border-radius: 4px;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    max-width: 373px;
    background-color: #fff;
}

.search-badge {
    padding: 5px 10px 5px 10px;
    background-color: #F3F4F5;
    border-radius: 8px;
    font-size: 12px;
    line-height: 15px;
    font-weight: 400;
    font-family: 'Montserrat';
    color: #1D1D1D;
}

.filter {
    position: relative;
    padding-top: 1rem;
    padding-left: 1.4rem;
    font-size: 1rem;
    color: #333333;
    line-height: 24px;
}

.filter-square {
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    background-color: #12253d;
    z-index: 1;
}

/* Top Banner */
.top-banner-container {
    margin-top: 1rem;
    margin-bottom: 40px;
    max-width: 100%;
    width: auto;
    height: 340px;
    background: url("../../img/banner-conhecimento.png");
    background-size: contain;
}
.top-title {
    visibility: hidden;
    color: white;
    font-family: 'ViceCitySans' ;
    font-size: 40px;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.top-description {
    color: white;
    visibility: hidden;
    font-family: 'Montserrat';
    font-size: 30px;
    font-weight: 400;
    line-height: 36px;
    text-transform: uppercase;
}

.noticias-recentes-section {
    background-color: #F3F4F5; 
    width: 100%;
    padding: 40px 0;
}

.newsletter-chat {
    display: flex;
    flex-direction: row;
    gap: 24px;
}

.carousel-track {
    gap: 24px;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .container {
        max-width: 830px;
    }

    .newsletter-chat {
        flex-direction: column;
    }

    .newsletter-container {
        width: 100% !important;
        margin-bottom: 0 !important;
    }

    .block-container {
        width: 100% !important;
        margin-top: 0 !important;
    }

    .top-banner-container {
        height: 225px;
    }

    .carousel-track {
        gap: 20px;
    }
}

@media screen and (max-width: 850px) {
     main {
        padding: 1rem;
    }

    .carousel-slide {
        flex: 0 0 100% !important;
        width: auto !important;
        max-width: 100% !important;
    }

    .post-container {
        width: 100% !important;
    }

    .dropdown-container {
        gap: 1rem;
        margin-top: 0;
        flex-direction: column;
        align-items: stretch;
        padding-bottom: 40px;
    }

    .dropdown-toggle {
        min-width: 100%;
    }

    .dropdown-menu {
        max-width: 100% !important;
    }

    .dropdown {
        min-width: 0px;
        width: 100%;
    }

    .block-container{
        padding: 2rem 1rem;
    }
    
    .bottom-title {
        font-size: 24px;
    }

    .bottom-description {
        font-size: 16px;
        line-height: 18px;
    }

    .top-banner-container {
        background: #12253d;
        padding: 3rem 1rem;
        height: auto;
    }

    .top-title {
        visibility: visible;
        font-size: 24px;
    }

    .top-description {
        visibility: visible;
        font-size: 16px;
        line-height: 20px;
    }
    
    /* Ajustar títulos de post em mobile */
    .post-title {
        font-size: 20px;
        line-height: 24px;
    }
    
    /* Ajustar navegação do carrossel em mobile */
    .carousel-navigation {
        justify-content: center;
        margin-top: 1.5rem;
    }
    
    /* Ajustar filtros em mobile */
    .filter, .name {
        font-size: 0.9rem;
    }

    .container {
        padding: 0 20px;
    }

    .highlighted-posts {
        flex-direction: column !important;
    }

    .other-posts {
        min-width: unset !important;
    }

    .carousel-track {
        gap: 20px;
    }
}

.share-box {
    z-index: 3;
    position: absolute;
    top: 35px;
    right: 0px;
    width: 300px;
    white-space: nowrap;
    padding: 0.5rem 0;
    height: auto;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.5rem;
    border-top: 2px solid #00A287;
    background-color: white;
}

.share-option {
    z-index: 1001;
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 0.5rem 1rem 0.5rem 1rem;
    text-decoration: none;
    color: #333333;
}

.share-option:hover {
    background-color: #F3F4F5;
    text-decoration: none;
    color: #333333;
    cursor: pointer;
}

.back-container {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.voltar:hover {
    text-decoration: none;
}

.post-description {
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
}