/* Homepage — news & activity cards */

.home-section {
    margin-bottom: 28px;
}

.home-section__footer-link {
    margin-top: 12px;
}

.home-news-grid {
    margin-left: -8px;
    margin-right: -8px;
}

.home-news-grid > [class*="col-"] {
    padding-left: 8px;
    padding-right: 8px;
    margin-bottom: 16px;
}

.home-news-card {
    border: 1px solid rgba(0, 105, 92, 0.12);
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    height: 100%;
    margin-bottom: 0;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.home-news-card:hover {
    border-color: rgba(0, 105, 92, 0.25);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.home-news-card--empty {
    margin-bottom: 8px;
}

.home-news-card__title {
    font-weight: 600;
    line-height: 1.45;
    margin-bottom: 10px;
}

.home-news-card__title a {
    text-decoration: none;
}

.home-news-card__title a:hover {
    text-decoration: underline;
}

.home-news-card__meta .icon-calendar3 {
    opacity: 0.75;
}

/* Grid rows (2 cols). Do not combine with .row — its ::before eats the first grid cell. */
.home-activity-grid.row::before,
.home-activity-grid.row::after {
    display: none !important;
    content: none !important;
}

.home-activity-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-left: 0;
    margin-right: 0;
}

@media (min-width: 992px) {
    .home-activity-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.home-activity-grid__item {
    min-width: 0;
}

.home-activity-card {
    border: 1px solid rgba(0, 105, 92, 0.12);
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    height: 100%;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
}

.home-activity-card > .panel-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.home-activity-card__head {
    background: linear-gradient(135deg, #e8f4f3 0%, #e0f2f1 100%);
    border-bottom: 1px solid rgba(0, 105, 92, 0.12);
    padding: 12px 14px;
}

.home-activity-card__title {
    font-weight: 600;
    color: #00695c;
    line-height: 1.45;
    margin: 0;
    font-size: 14px;
}

.home-activity-card__meta {
    margin-bottom: 12px;
    font-size: 13px;
}

.home-activity-card__meta .icon-calendar3 {
    opacity: 0.75;
}

.home-activity-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: flex-start;
    margin-top: auto;
}

.home-action-link {
    text-decoration: none;
    display: inline-block;
}

.home-action-link:hover {
    text-decoration: none;
    opacity: 0.92;
}

.home-activity-card__actions .label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    white-space: normal;
    text-align: left;
    line-height: 1.35;
    max-width: 100%;
}

.home-activity-card__actions .label > i {
    flex-shrink: 0;
}

.home-activity-note {
    margin-top: 8px;
    margin-bottom: 0;
}

@media (max-width: 480px) {
    .home-activity-card__actions .home-action-link {
        display: block;
        width: 100%;
    }

    .home-activity-card__actions .label {
        width: 100%;
        justify-content: flex-start;
    }
}
