.home-section {
    margin: 28px 0 36px;
    padding: 28px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(20, 48, 90, 0.08);
}

.home-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 18px;
}

.home-section-head h2 {
    margin: 0;
    font-size: 24px;
    color: #17324d;
}

.section-lead {
    margin: 6px 0 0;
    color: #5d7288;
    font-size: 14px;
    line-height: 1.7;
}

.category-grid,
.topic-grid {
    display: grid;
    gap: 16px;
}

.category-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.topic-grid,
#learning-tools .category-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.category-card,
.topic-card {
    display: block;
    padding: 18px;
    border-radius: 16px;
    border: 1px solid #e7eef6;
    background: linear-gradient(180deg, #ffffff 0%, #f6f9fc 100%);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover,
.topic-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(23, 50, 77, 0.12);
}

.category-card i,
.topic-card i {
    color: #2c5aa0;
    font-size: 18px;
    margin-bottom: 12px;
}

.category-card strong,
.topic-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 17px;
    color: #17324d;
}

.category-card span,
.topic-card span {
    display: block;
    color: #5d7288;
    font-size: 14px;
    line-height: 1.7;
}

.section-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.section-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid #d9e5f2;
    color: #2c5aa0;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    background: #f8fbff;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-action-link {
    font-size: 16px;
    padding: 15px 30px;
}

.hero-action-link--secondary {
    background: #16324f;
}

#tool-list {
    padding-top: 20px;
}

@media (max-width: 1180px) {
    .topic-grid,
    #learning-tools .category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .topic-grid,
    #learning-tools .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .topic-grid,
    #learning-tools .category-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}
