.research-themes-section {
    padding: 60px 20px;
    background-color: #2C3B2D;
    color: #FDFAF5;
}

.research-themes-container {
    max_width: 1200px;
    margin: 0 auto;
}

.research-themes-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #FDFAF5;
}

.research-themes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.research-theme-panel {
    background-color: #F4F4F4; /* Light contrasting background */
    padding: 30px;
    border-top: 4px solid #E2725B; /* Terracotta accent */
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.research-theme-panel:hover {
    background-color: #FFFFFF; /* Brighter white on hover */
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.theme-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
    color: #2C3B2D; /* Dark olive for contrast */
}

.theme-description {
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    opacity: 0.85; /* Slight transparency for hierarchy */
    color: #2C3B2D; /* Dark olive for contrast */
    flex-grow: 1;
}

/* Tablet (2+1 grid or just stacked) */
@media (max-width: 1024px) {
    .research-themes-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    /* Make the last item span 2 columns on tablet if there's an odd number */
    .research-theme-panel:last-child:nth-child(odd) {
        grid-column: span 2;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .research-themes-section {
        padding: 40px 20px;
    }
    
    .research-themes-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .research-theme-panel:last-child:nth-child(odd) {
        grid-column: auto; /* Reset span */
    }
    
    .research-themes-title {
        margin-bottom: 30px;
        text-align: center;
    }
}
