/* ===== AREAS DE ATUACAO PAGE SPECIFIC STYLES ===== */

/* Add padding to the top sections to avoid overlap with fixed header */
.areas-intro {
    padding-top: 120px; /* Reduced from 150px to make it more compact */
}

.areas-detailed {
    padding-top: 30px; /* Significantly reduced from 150px since we don't need full spacing here */
}

/* Adjust padding for smaller screens */
@media (max-width: 768px) {
    .areas-intro {
        padding-top: 100px; /* Reduced for mobile */
    }
    .areas-detailed {
        padding-top: 20px; /* Reduced for mobile */
    }
}

/* Adjust spacing for the intro section */
.areas-intro {
    padding-bottom: 30px; /* Reduced from 50px to make it more compact */
    text-align: center;
}

.areas-intro .intro-content p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: var(--gray-medium);
}

/* Styles for the detailed areas section */
.areas-detailed .area-detailed {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 80px;
    padding-top: 0; /* Reset padding-top for individual items */
}

.areas-detailed .area-detailed.reverse {
    flex-direction: row-reverse;
}

.areas-detailed .area-image {
    flex: 1 1 45%; /* Adjust flex basis */
    max-width: 450px; /* Limit image width for consistency */
}

.areas-detailed .area-image img {
    width: 100%;
    border-radius: 5px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.areas-detailed .area-content {
    flex: 1 1 55%; /* Adjust flex basis */
}

.areas-detailed .area-icon {
    font-size: 2.5rem; /* Slightly smaller icon */
    color: var(--primary-color);
    margin-bottom: 15px;
}

.areas-detailed .area-content h2 {
    font-family: var(--font-primary);
    font-size: 2rem;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.areas-detailed .area-content p {
    margin-bottom: 20px;
    color: var(--gray-medium);
}

.areas-detailed .area-content h3 {
    font-family: var(--font-secondary);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 10px;
    margin-top: 25px;
}

.areas-detailed .area-content ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 25px;
}

.areas-detailed .area-content ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 8px;
    color: var(--gray-medium);
}

.areas-detailed .area-content ul li::before {
    content: '\f00c'; /* Font Awesome check icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--primary-color);
}

.areas-detailed .area-content .btn {
    margin-top: 10px;
}

/* Responsive adjustments for detailed areas */
@media (max-width: 992px) {
    .areas-detailed .area-detailed,
    .areas-detailed .area-detailed.reverse {
        flex-direction: column;
        text-align: center;
    }

    .areas-detailed .area-image {
        max-width: 100%; /* Allow image to take full width */
        margin-bottom: 30px;
    }

    .areas-detailed .area-content {
        width: 100%;
    }

    .areas-detailed .area-icon {
        margin-left: auto;
        margin-right: auto;
    }
}

/* FAQ Section adjustments */
.faq-section {
    padding: 80px 0;
    background-color: var(--gray-light);
}

.faq-content {
    max-width: 900px; /* Increased from 800px for more space */
    margin: 0 auto;
}

.faq-item {
    background-color: var(--light-color);
    margin-bottom: 20px; /* Increased from 15px for more separation between items */
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Changed from center to allow multi-line questions */
    padding: 25px; /* Increased from 20px for more breathing room */
    cursor: pointer;
    background-color: var(--light-color);
    transition: background-color var(--transition-fast);
}

.faq-question:hover {
    background-color: #f9f9f9;
}

.faq-question h3 {
    font-family: var(--font-secondary);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.4; /* Added for better readability of multi-line questions */
    flex: 1; /* Take available space, pushing icon to the right */
    padding-right: 15px; /* Space between text and icon */
}

.faq-question .toggle-icon {
    font-size: 1.2rem;
    color: var(--primary-color);
    transition: transform var(--transition-fast);
    flex-shrink: 0; /* Prevent icon from shrinking */
    margin-top: 3px; /* Align with first line of text */
}

.faq-answer {
    padding: 0 25px 25px 25px; /* Increased from 20px for more space */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.8s ease, padding 0.8s ease; /* Increased from 0.5s for smoother transition */
}

.faq-answer p {
    margin: 0;
    color: var(--gray-medium);
    line-height: 1.6; /* Improved line height for better readability */
    font-size: 1rem; /* Explicit font size */
}

.faq-item.active .faq-question .toggle-icon {
    transform: rotate(45deg);
}

.faq-item.active .faq-answer {
    max-height: 500px; /* Increased from 300px to accommodate longer answers */
    padding-top: 15px; /* Increased from 10px for more space */
    padding-bottom: 25px; /* Increased from 20px for more space */
}

