.rm-thematic-areas-container {
    margin: 20px 0;
    max-width: 1200px;
}

.rm-thematic-areas-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 20px;
}

.rm-thematic-col-1 { grid-template-columns: 1fr; }
.rm-thematic-col-2 { grid-template-columns: repeat(2, 1fr); }
.rm-thematic-col-3 { grid-template-columns: repeat(3, 1fr); }
.rm-thematic-col-4 { grid-template-columns: repeat(4, 1fr); }

/* Ensure consistent column layout regardless of number of items */
.rm-thematic-areas-grid {
    grid-auto-rows: 1fr; /* Equal height rows */
}

@media (max-width: 768px) {
    .rm-thematic-areas-grid {
        grid-template-columns: 1fr !important;
    }
}

.rm-thematic-area-card {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 25px;
    transition: all 0.3s ease;
    position: relative;
    min-height: 250px;
    display: flex;
    flex-direction: column;
}

.rm-thematic-area-card.rm-featured {
    border-color: #007cba;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.1);
}

.rm-thematic-area-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.rm-thematic-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.rm-thematic-title {
    font-size: 1.3em;
    font-weight: 600;
    margin: 0 0 15px 0;
    color: #333;
    line-height: 1.3;
}

.rm-thematic-description {
    color: #666;
    line-height: 1.6;
    margin: 0 0 20px 0;
    flex: 1;
    font-size: 0.95em;
}

.rm-thematic-actions {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.rm-thematic-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f1f3f4;
    color: #666;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9em;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    border: 1px solid #e9ecef;
}

.rm-thematic-button:hover {
    background: #007cba;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);
    text-decoration: none;
}

.rm-featured .rm-thematic-button {
    background: #007cba;
    color: white;
    border-color: #007cba;
}

.rm-featured .rm-thematic-button:hover {
    background: #005a87;
    border-color: #005a87;
}

.rm-button-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    font-size: 16px;
    font-weight: bold;
}

.rm-featured .rm-button-icon {
    background: rgba(255, 255, 255, 0.3);
}