* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4a5d94;
    --secondary-color: #0f2557;
    --accent-color: #3c74b5;
    --text-color: #333;
    --light-gray: #f8f8f8;
    --medium-gray: #e6e6e6;
    --dark-gray: #666;
    --white: #fff;
    --border-color: #ddd;
}



a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 0.5em;
    font-weight: 600;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1em;
}

.lead {
    color: white; 
    font-size: 1.25rem; 
    font-weight: 400; 
    line-height: 1.5; 
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: var(--secondary-color);
}

/* Utility Classes */
.py-16 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.bg-white {
    background-color: white;
}

.bg-gray-50 {
    background-color: #f9fafb;
}

/* Section Title */
.section-title {
    color: var(--primary-color);
    margin-bottom: 40px;
    position: relative;
    font-size: 2rem;
    font-weight: 600;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 15px 0;
}

/* Áreas de Negócio Section */
.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.area-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    min-height: 350px; /* Define uma altura mínima para o card */
    padding: 16px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative; /* Adiciona um contexto para o posicionamento */
}

.area-card:hover {
    transform: translateY(20px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.area-image {
    height: 200px;
    overflow: hidden;
}

.area-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.area-card:hover .area-image img {
    transform: scale(1.05);
}

.area-card h3 {
    margin-top: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: #007BAF;
}

.area-content {
    flex-grow: 1; /* Ajuste o flex-grow para 1 para evitar que ocupe espaço excessivo */
}

.area-content p {
    text-align: justify;
    margin: 1rem 0;
}

.area-footer {
    margin-top: auto; /* Mantém o rodapé na parte inferior */
}

.link-more {
    display: inline-block;
    color: #007BAF;
    text-decoration: none;
    font-weight: bold;
    position: relative; /* Garante que o ::after seja posicionado corretamente */
}

.link-more::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.link-more:hover::after {
    width: 100%;
}


/* Combined Notícias & Informação Section */
.flex-container {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.flex-column {
    flex: 1;
    min-width: 300px;
}

.noticias-column {
    flex: 3;
}

.info-column {
    flex: 2;
}

/* News Styles */
.news-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.news-item {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.news-image {
    height: 100%;
    min-height: 200px;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-content {
    padding: 20px;
}

.news-content h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.news-content p {
    font-size: 0.95rem;
    color: var(--text-color);
}

.news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.news-date {
    font-size: 0.8rem;
    color: var(--dark-gray);
}

/* Info Section */
.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.info-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding-bottom: 20px;
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-card h3 {
    color: var(--primary-color);
    margin: 0 20px 15px;
    padding-top: 15px;
}

.info-image {
    height: 180px;
    overflow: hidden;
}

.info-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.info-card p {
    font-size: 0.9rem;
    color: var(--dark-gray);
    margin: 0 20px 15px;
}

.info-card .link-more {
    margin: 0 20px 15px;
}




/* Responsive Styles */
@media (max-width: 992px) {
    /* Adjust the flex columns */
    .flex-container {
        flex-direction: column;
    }
    
    .noticias-column,
    .info-column {
        flex: 1 100%;
    }
}

@media (max-width: 768px) {
    .news-item {
        grid-template-columns: 1fr;
    }
    
    .news-image {
        height: 200px;
    }
}

@media (max-width: 576px) {
    section {
        padding: 40px 0;
    }
    
    .area-card {
        margin-bottom: 20px;
    }
    
    .news-item {
        margin-bottom: 20px;
    }
    
    .info-card {
        margin-bottom: 20px;
    }
}