
body {
    background-color: #f5f7fa;
}

.page-header {
    background: #0f2b46;
    color: white;
    padding: 40px 0;
    text-align: center;
}


.cards-section {
    height: 40vh;
    display: flex;
    flex-wrap: wrap;
    align-content: stretch;   /* THIS is critical */
}

.cards-section {
    height: 40vh;
    display: flex;
    flex-wrap: wrap;
    align-content: stretch;
    row-gap: 10px;   /* 👈 space between rows */
}

/* Card fills its column */
.function-card {
    cursor: pointer;
    height: 100%;
    width: 100%;
    transition: 0.2s ease;
    border: none;
}


.function-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.function-icon {
    width: 120px;
    height: 80px;
    object-fit: contain;
}

.icon-wrapper {
    height: 90px;          /* Ensures consistent spacing */
    display: flex;
    align-items: center;
    justify-content: center;
}


.card-title {
    font-weight: 600;
}

.stats-text {
    font-size: 0.9rem;
    color: #666;
}

.section-title {
    margin-top: 50px;
    margin-bottom: 20px;
    font-weight: 600;
}

.chart-box {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.table-container {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-top: 30px;
}


.function-card {
    cursor: pointer;
    transition: all 0.2s ease;
}

.function-card:hover {
    transform: scale(1.03);
}

.active-card {
    border: 2px solid #2c6da4;
    box-shadow: 0 0 10px rgba(44, 109, 164, 0.3);
}