/* =====================================================
   ACTIVITIES PAGE
===================================================== */

.activities-page {
    position: relative;
    min-height: 700px;
    padding: 105px 0 260px;
    background: var(--white);
    overflow: hidden;
}

/* =====================================================
   TOP PATTERN
===================================================== */

.activities-top-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 38px;
    background: var(--accent-blue);
    opacity: .95;
}

/* =====================================================
   HEADING
===================================================== */

.activities-heading {
    position: relative;
    z-index: 2;
    margin-bottom: 55px;
}

.activities-heading h1 {
    margin: 0;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 600;
    font-style: italic;
}

.activities-heading h1 span {
    color: var(--primary-color);
}

.activities-heading h1 strong {
    color: var(--secondary-color);
    font-weight: 600;
}

/* =====================================================
   HEADING DECORATION
===================================================== */

.heading-decoration span {
    background: var(--secondary-color);
}

.heading-decoration i {
    color: var(--primary-color);
}

/* =====================================================
   TABS WRAPPER & TABS
===================================================== */

.activities-tabs-wrapper {
    position: relative;
    z-index: 3;
}

.activities-tabs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.activity-tab {
    position: relative;
    min-width: 150px;
    height: 51px;
    padding: 0 25px;
    border: 0;
    border-radius: 7px 7px 0 0;
    color: var(--white);
    font-family: inherit;
    font-size: 18px;
    font-weight: 400;
    cursor: pointer;
    transition: var(--transition-fast);
}

/* Tab Colors */
.activity-tab:nth-child(1) {
    background: var(--accent-green);
}

.activity-tab:nth-child(2) {
    background: var(--accent-pink);
}

.activity-tab:nth-child(3) {
    background: var(--accent-teal);
}

.activity-tab:nth-child(4) {
    background: var(--accent-cyan);
}

.activity-tab:hover {
    filter: brightness(.96);
    transform: translateY(-2px);
}

/* =====================================================
   ACTIVE TRIANGLE
===================================================== */

.activity-tab.active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid currentColor;
}

.activity-tab:nth-child(1).active::after {
    border-top-color: var(--accent-green);
}

.activity-tab:nth-child(2).active::after {
    border-top-color: var(--accent-pink);
}

.activity-tab:nth-child(3).active::after {
    border-top-color: var(--accent-teal);
}

.activity-tab:nth-child(4).active::after {
    border-top-color: var(--accent-cyan);
}

/* =====================================================
   CONTENT BOX & PANEL
===================================================== */

.activities-content {
    position: relative;
    z-index: 2;
    margin-top: 40px;
}

.activity-panel {
    display: none;
    border: 1px solid var(--border-color);
    border-radius: 0 14px 0 14px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.activity-panel.active {
    display: block;
    animation: activityFade .45s ease;
}

@keyframes activityFade {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.activity-panel-inner {
    min-height: 155px;
    display: flex;
    align-items: stretch;
}

.activity-panel-content {
    flex: 1;
    padding: 30px 40px;
}

.activity-panel-content p {
    margin: 0 0 25px;
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.8;
}

/* =====================================================
   READ MORE
===================================================== */

.activity-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--secondary-color);
    font-size: 14px;
    text-decoration: none;
    transition: var(--transition-fast);
}

.activity-read-more:hover {
    color: var(--primary-color);
    gap: 13px;
}

/* =====================================================
   IMAGE
===================================================== */

.activity-panel-image {
    width: 260px;
    display: none;
}

.activity-panel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =====================================================
   BOTTOM DECORATION
===================================================== */

.activities-bottom-decoration {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 190px;
    pointer-events: none;
    overflow: hidden;
}

.grass-layer {
    position: absolute;
    left: -2%;
    width: 104%;
    background-repeat: repeat-x;
}

.grass-back {
    bottom: 35px;
    height: 75px;
    opacity: .65;
    background: linear-gradient(
        120deg,
        transparent 48%,
        var(--accent-light-green) 49%,
        var(--accent-light-green) 53%,
        transparent 54%
    );
    background-size: 22px 42px;
}

.grass-front {
    bottom: 0;
    height: 80px;
    background: linear-gradient(
        105deg,
        transparent 45%,
        var(--accent-light-green) 46%,
        var(--accent-light-green) 54%,
        transparent 55%
    );
    background-size: 25px 45px;
}

.decoration-tree {
    position: absolute;
    bottom: 40px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--accent-tree-green);
    opacity: .8;
}

.decoration-tree::before {
    content: "";
    position: absolute;
    width: 40px;
    height: 80px;
    bottom: -55px;
    left: 30px;
    background: #b9c989;
}

.tree-left { left: 4%; }
.tree-right { right: 4%; }

.decoration-flower {
    position: absolute;
    bottom: 72px;
    font-size: 35px;
}

.decoration-flower i {
    font-size: 32px;
}

.flower-one { left: 28%; color: var(--accent-light-purple); }
.flower-two { left: 32%; color: var(--secondary-color); }
.flower-three { right: 30%; color: var(--accent-light-purple); }

/* Responsive Media Queries */
@media (max-width: 991px) {
    .activities-page { padding: 90px 0 230px; }
    .activities-heading { margin-bottom: 45px; }
    .activity-tab { min-width: 135px; font-size: 16px; }
    .activity-panel-content { padding: 25px 30px; }
}

@media (max-width: 767px) {
    .activities-page { padding: 75px 0 210px; }
    .activities-top-pattern { height: 28px; }
    .activities-heading { margin-bottom: 35px; }
    .activities-heading h1 { font-size: 25px; }
    .activities-tabs-wrapper {
        overflow-x: auto;
        overflow-y: visible;
        padding-bottom: 12px;
        scrollbar-width: none;
    }
    .activities-tabs-wrapper::-webkit-scrollbar { display: none; }
    .activities-tabs { width: max-content; }
    .activity-tab { min-width: 125px; height: 48px; padding: 0 20px; font-size: 15px; }
    .activities-content { margin-top: 30px; }
    .activity-panel { border-radius: 0 10px 0 10px; }
    .activity-panel-inner { min-height: auto; }
    .activity-panel-content { padding: 25px 22px; }
}