/* 3 x 3 layout: cards flow left to right in aligned rows of three; every card
   in a row stretches to the same height. Drops to 2 / 1 columns on smaller screens. */
.section-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    align-items: stretch;
}

@media (max-width: 991.98px) {
    .section-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 575.98px) {
    .section-grid { grid-template-columns: 1fr; }
}

.section-card {
    border: 1px solid #e3e3e3;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s ease;
}

.section-card:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

/* Brand: only primary gold and black, no gold tints (brand.uiowa.edu/color).
   Gold is kept to the top bar and icon so the cards don't glare. */
.section-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 0.85rem;
    background: #FFFFFF;
    border-top: 4px solid var(--uiowa-gold);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.section-icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--uiowa-black);
    color: var(--uiowa-gold);
    font-size: 0.95rem;
}

.section-title {
    flex: 1 1 auto;
    margin: 0;
    color: var(--uiowa-black);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.02em;
}

.section-count {
    flex: 0 0 auto;
    min-width: 1.75rem;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.08);
    color: var(--uiowa-black);
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
}

.section-items {
    list-style: none;
    margin: 0;
    padding: 0.15rem 0;
}

.section-items li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.25rem 0.85rem;
    color: #212529;
    font-size: 0.9rem;
    line-height: 1.35;
    text-decoration: none;
}

.section-items li a:hover,
.section-items li a:focus {
    background: rgba(0, 0, 0, 0.05);
    color: var(--uiowa-black);
}

.section-items li a .bi {
    color: #b0b0b0;
    font-size: 0.8rem;
    transition: transform 0.15s ease, color 0.15s ease;
}

.section-items li a:hover .bi {
    color: var(--uiowa-black);
    transform: translateX(3px);
}
