/* CSS Variables */
:root {
    --menu-color: #ffffff;
    --menu-hover-color: #f0f0f0;
    --header-bg-color: #ad4141;
}

/* Header and Navigation Styles */
.header {
    padding: 5px 0;
}

/* Navigation Links */
.nav-link {
    color: var(--menu-color) !important;
}

.nav-link:hover {
    color: var(--menu-hover-color) !important;
}

/* Search Toggle */
.search-toggle {
    background: transparent;
    border: none;
    font-size: 20px;
    color: white;
    cursor: pointer;
    padding: 6px;
    color: var(--menu-color) !important;
    display: inline-block;
    font-size: 22px;
}

.search-toggle:hover {
    color: var(--menu-hover-color) !important;
}

.search-toggle i {
    pointer-events: none;
}

/* Navbar Toggler */
.navbar-toggler:before, 
.navbar-toggler:after,
.navbar-toggler span {
    background: var(--menu-color) !important;
}

/* Search Container and Form */
.search-container {
    position: relative;
}

.search-form {
    display: none;
    position: absolute;
    top: 125%;
    right: 0;
    background: #fff;
    padding: 10px;
    z-index: 1000;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    min-width: 320px;
}

.search-container.open .search-form {
    display: block;
}

.search-input {
    width: 87%;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.search-submit {
    background-color: var(--header-bg-color);
    color: white;
    border: none;
    border-radius: 4px;
}

.fa-arrow-right {
    vertical-align: middle;
}

/* Swiper Styles */
@media (max-width: 768px) {
    .swiper-posts {
        width: 100%;
    }
    
    .swiper-posts .swiper-wrapper {
        display: flex;
        align-items: stretch;
    }
    
    .swiper-posts .swiper-slide {
        flex-shrink: 0;
        margin: 0 auto;
    }
    
    .benefit-card {
        width: 100%;
        max-width: none;
        padding: 25px 60px;
    }
}

.row {
    margin-top: 10px !important;
}

.home-posts-mobile {
    padding: 0 16px;
    overflow-x: hidden;
    position: relative;
}

.home-posts-mobile .swiper-wrapper {
    display: flex;
    justify-content: flex-start;
}

.home-posts-mobile .swiper-slide {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

/* Swiper Navigation */
.home-posts-mobile .swiper-pagination,
.home-posts-mobile .swiper-button-prev,
.home-posts-mobile .swiper-button-next {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.swiper-pagination {
    position: relative !important;
}

/* Button Styles */
.home-posts-button-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    padding-bottom: 40px; /* espaço pra não colar no rodapé */
    width: 600px;
    margin: 20px auto 0;
}

.home-posts-button-wrapper a {
    padding: 14px 28px;
    font-weight: bold;
    color: #fff;
    background-color: #0cb44c; /* ou variável vinda do painel */
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-size: 17px;
    width: 80%;
    text-align: center;
}

/* Benefits Cards */
.benefits-swiper .swiper-slide {
    display: flex;
    justify-content: center;
}

.benefit-card {
    max-width: 320px; /* opcional, limita o tamanho máximo */
    background: #fff;
    color: #000;
    padding: 20px;
    border-radius: 15px;
    height: 100%;
    text-align: left;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.faq-item {
    margin-bottom: 10px;
}

.faq-question {
    background-color: #f0f0f0; 
    color: black; 
    cursor: pointer; 
    padding: 10px 15px; 
    font-weight: normal; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    border-top-left-radius: 8px; 
    border-top-right-radius: 8px; 
    border-bottom-left-radius: 8px; 
    border-bottom-right-radius: 8px;
}

.faq-answer {
    display: none; 
    padding: 10px 15px; 
    background-color: #ffffff; 
    border-left: 1px solid #CCCCCC; 
    border-right: 1px solid #CCCCCC; 
    border-bottom: 1px solid #CCCCCC; 
    border-bottom-left-radius: 8px; 
    border-bottom-right-radius: 8px;
}

.faq-item .faq-question .arrow {
    transition: transform 0.3s ease; 
    font-size: 12px;
}