.longevity-hero__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 28px;
    padding: 14px 28px;
    color: #0f6b5c;
    background: #fff;
    border: 0;
    border-radius: 10px;
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(12, 70, 60, 0.18);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.longevity-hero__cta:hover,
.longevity-hero__cta:focus {
    color: #0f6b5c;
    background: #f4fffc;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(12, 70, 60, 0.24);
}

.activities {
    padding: 56px 0 24px;
    background: #f4f7f6;
}

.activities__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
}

.activities__title {
    margin: 0;
    color: #1d2a33;
    font-family: "Montserrat", Arial, sans-serif;
    font-size: clamp(26px, 2.4vw, 36px);
    font-weight: 700;
    letter-spacing: -0.03em;
}

.activities__search {
    position: relative;
    width: min(100%, 420px);
}

.activities__search-icon {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    color: #6b7780;
    pointer-events: none;
}

.activities__search-input {
    width: 100%;
    height: 52px;
    padding: 0 18px 0 46px;
    border: 1px solid #dbe4e1;
    border-radius: 14px;
    background: #fff;
    color: #1d2a33;
    font-size: 16px;
    outline: none;
    box-shadow: 0 6px 18px rgba(20, 50, 44, 0.04);
}

.activities__search-input:focus {
    border-color: #2a9a86;
    box-shadow: 0 0 0 4px rgba(42, 154, 134, 0.15);
}

.activities__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin: 0 0 28px;
    padding: 0;
    list-style: none;
}

.activities__tab {
    padding: 8px 0;
    border: 0;
    background: none;
    color: #5b6b73;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    cursor: pointer;
}

.activities__tab.is-active {
    color: #127866;
    box-shadow: inset 0 -3px 0 #127866;
}

.activities__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.activities__lead {
    margin: -8px 0 24px;
    color: #5c6c74;
    font-size: 16px;
    line-height: 1.45;
}

.activity-card {
    display: flex;
    flex-direction: column;
    min-height: 320px;
    padding: 22px 22px 20px;
    background: #fff;
    border: 1px solid #e6eeeb;
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(24, 58, 51, 0.05);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.activity-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 32px rgba(24, 58, 51, 0.1);
}

.activity-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 14px;
    border-radius: 12px;
    background: #e8f6f2;
    color: #127866;
    font-size: 22px;
}

.activity-card__title {
    margin: 0 0 8px;
    color: #16343c;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.activity-card__desc {
    margin: 0 0 12px;
    color: #3d4f56;
    font-size: 14px;
    line-height: 1.45;
}

.activity-card__text {
    margin: 0 0 18px;
    color: #5c6c74;
    font-size: 15px;
    line-height: 1.45;
    flex: 1;
}

.activity-card__meta {
    margin: 0 0 8px;
    color: #127866;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    white-space: pre-line;
}

.activity-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
}

.activity-card__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 8px 16px;
    border: 0;
    border-radius: 10px;
    background: #168c79;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.activity-card__btn:hover,
.activity-card__btn:focus {
    background: #127866;
    color: #fff;
}

.activity-card__more {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 8px 4px;
    color: #127866;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}

.activity-card__more:hover {
    color: #0f5f51;
}

.activities__empty {
    display: none;
    padding: 36px 16px;
    color: #5c6c74;
    text-align: center;
}

.activities__empty.is-visible {
    display: block;
}

.activities__all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 10px 22px;
    border-radius: 12px;
    background: #168c79;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.activities__all:hover,
.activities__all:focus {
    background: #127866;
    color: #fff;
}

.activities--preview {
    padding-bottom: 48px;
}

.activities-slider {
    margin: 0 -6px;
}

.activities-slider .owl-stage {
    display: flex;
}

.activities-slider .owl-item {
    display: flex;
}

.activities-slider .item {
    padding: 6px;
    height: auto;
}

.activities-slider .activity-card {
    min-height: 320px;
    height: 100%;
}

.activities-slider.owl-theme .owl-nav {
    margin-top: 8px;
}

.activities-slider.owl-theme .owl-nav [class*='owl-'] {
    width: 42px;
    height: 42px;
    margin: 0 6px;
    padding: 0;
    border-radius: 50%;
    background: #168c79;
    color: #fff;
    font-size: 22px;
    line-height: 42px;
}

.activities-slider.owl-theme .owl-nav [class*='owl-']:hover {
    background: #127866;
}

.activities-slider.owl-theme .owl-dots .owl-dot.active span,
.activities-slider.owl-theme .owl-dots .owl-dot:hover span {
    background: #168c79;
}

.activities-page {
    padding-top: 24px;
}

.activities__alert {
    margin-bottom: 20px;
    padding: 14px 18px;
    border-radius: 12px;
    background: #e7f8f1;
    color: #0f5f51;
    font-weight: 600;
}

.activity-modal .modal-content {
    border: 0;
    border-radius: 18px;
}

.activity-modal .form-control,
.activity-modal .form-select {
    min-height: 48px;
    border-radius: 10px;
}

.activity-modal .btn-primary {
    background: #168c79;
    border-color: #168c79;
}

.activity-modal .btn-primary:hover {
    background: #127866;
    border-color: #127866;
}

.activity-modal .error {
    color: #c0392b;
    font-size: 13px;
}

.activities__eyebrow {
    margin: 0 0 8px;
    color: #127866;
    font-size: 14px;
    font-weight: 600;
}

.activity-table-wrap {
    overflow-x: auto;
    background: #fff;
    border: 1px solid #e6eeeb;
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(24, 58, 51, 0.05);
}

.activity-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

.activity-table th,
.activity-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #eef3f1;
    text-align: left;
    vertical-align: top;
    font-size: 14px;
    line-height: 1.4;
}

.activity-table th {
    background: #e8f6f2;
    color: #0f5f51;
    font-weight: 700;
}

.activity-table__section td {
    background: #168c79;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.activity-table tbody tr:not(.activity-table__section):hover td {
    background: #f7fbfa;
}

.activity-table__when {
    white-space: pre-line;
    min-width: 210px;
    color: #127866;
    font-weight: 600;
}

.activity-table tr[hidden] {
    display: none !important;
}

.activity-table__note,
.activity-table__desc {
    margin: 6px 0 0;
    color: #4b5d64;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 400;
}

.activity-table .activity-card__btn {
    min-height: 36px;
    padding: 6px 12px;
    font-size: 13px;
}

@media (max-width: 1199.98px) {
    .activities__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991.98px) {
    .activities {
        padding-top: 40px;
    }

    .activities__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .longevity-hero__cta {
        margin-top: 22px;
    }
}

@media (max-width: 575.98px) {
    .activities__grid {
        grid-template-columns: 1fr;
    }

    .activities__search {
        width: 100%;
    }
}
