﻿/* Eco-Events & Programs + child event pages */
.ee-hero {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 1.25rem 4rem;
    background-size: cover;
    background-position: center;
}
    .ee-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.4));
}
.ee-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 44rem;
    width: 100%;
}
.ee-hero h1 {
    color: #fff;
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 700;
    margin: 0 0 0.75rem;
}
.ee-hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.05rem;
    margin: 0 0 1.75rem;
    line-height: 1.5;
}
.ee-hero__searchwrap {
    position: relative;
    display: block;
    width: 100%;
    max-width: 42rem;
    margin: 0 auto;
}
.ee-hero__searchicon {
    position: absolute;
    left: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #1a1a1a;
    pointer-events: none;
}
.ee-hero__searchwrap .ee-hero__search {
    padding-left: 3.1rem;
}
.ee-hero__search {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: #323534;
    min-width: 0;
    width: 100%;
    max-width: 42rem;
    font-weight: 600;
    border-radius: 8px !important;
    background: #fafaf8;
    font-size: 0.85rem;
    padding: 15px 11px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    text-decoration: none;
    box-sizing: border-box;
}

.ee-container {
    max-width: 76rem;
    margin: 0 auto;
    padding-inline: 1.25rem;
}

.ee-section {
    padding: 3.5rem 0;
}
.ee-section--white {
    background: #fff;
}
.ee-section__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
}
.ee-section__head h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}
.ee-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.ee-filter {
    padding: 0.4rem 0.9rem;
    border-radius: 9999px;
    border: 1px solid #e2e8f0;
    background: #fff;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--muted-gray, #6b7280);
    cursor: pointer;
}
.ee-filter.active {
    background: #1b3d2f;
    color: #fff;
    border-color: #1b3d2f;
}

.ee-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.ee-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.07);
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.ee-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}
.ee-card__media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}
.ee-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.ee-card__badge {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
    font-size: 0.68rem;
    font-weight: 600;
    color: #fff;
    background: var(--peacock-teal, #007A73);
}
.ee-card__badge.is-past {
    background: #6b7280;
}
.ee-card__body {
    padding: 1.15rem 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.45rem;
}
.ee-card__cat {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--peacock-teal, #007A73);
    background: rgba(0,122,115,0.08);
    border-radius: 3px;
    padding: 0.18rem 0.55rem;
}
.ee-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}
.ee-card__date {
    font-size: 0.8rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.ee-card__desc {
    font-size: 0.875rem;
    color: var(--muted-gray, #6b7280);
    line-height: 1.55;
    margin: 0;
    flex: 1;
}
.ee-card__desc p {
    margin: 0;
}
.ee-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    margin-top: 0.25rem;
    border: 1px solid #6b7280;
    max-width: 85px !important;
    padding: 5px !important;
    border-color: #00000014;
    border-radius: 8px;
    background: #f4f4f4;
    color: #3e3e3e;
}
.ee-card__link:hover {
    color: #1b3d2f;
}

.ee-card--large .ee-card__media {
    aspect-ratio: 16 / 9;
}

.ee-rte-section {
    padding: 0;
}
.ee-rte-section > div {
    max-width: none !important;
    margin: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.ee-empty {
    text-align: center;
    color: #6b7280;
    padding: 2rem;
    display: none;
}

.ee-quote {
    position: relative;
   /* padding: 2rem 1.25rem;*/
    background: #1F4D3A;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.ee-quote p,
.ee-quote__rte p,
.ee-quote__rte h1,
.ee-quote__rte h2,
.ee-quote__rte h3 {
    max-width: 64rem;
    margin: 0 auto;
    font-size: 1.25rem;
    color: #fff;
    font-style: italic;
    font-weight: 700;
}
.ee-quote span,
.ee-quote__rte span {
    color: #bfff58;
    font-style: normal;
    font-weight: 700;
}

/* Child event detail */
    .ce-hero {
    position: relative;
    min-height: 420px;
    overflow: hidden;
    background: var(--forest-green, #1F4D3A);
}
.ce-hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ce-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.15));
}
.ce-hero__inner {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1;
    max-width: 64rem;
    margin: 0 auto;
    padding: 0 1.5rem 2.5rem;
    color: #fff;
}
.ce-hero h1 {
    color: #fff;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin: 0 0 0.75rem;
}
.ce-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}
.ce-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.ce-about {
    padding: 3.5rem 1.5rem;
    background: #fff;
}
.ce-about__inner {
    max-width: 48rem;
    margin: 0 auto;
}
.ce-about__inner p {
    color: var(--muted-gray, #6b7280);
    line-height: 1.8;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

.ce-gallery {
    padding: 0 1.5rem 3rem;
    background: #fff;
}
.ce-gallery__inner {
    max-width: 64rem;
    margin: 0 auto;
}
.ce-gallery h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1.25rem;
}
.ce-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
}
.ce-grid--five .ce-thumb:nth-child(4) {
    grid-column: 1;
}
.ce-grid--five .ce-thumb:nth-child(5) {
    grid-column: 2;
}
.ce-thumb {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: none;
    padding: 0;
    background: #eef2f4;
}
.ce-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.ce-thumb:hover img {
    transform: scale(1.04);
}
.ce-gallery__hint {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.75rem;
}

.ce-back {
    padding: 0 1.5rem 3rem;
    background: #fff;
}
.ce-back__inner {
    max-width: 64rem;
    margin: 0 auto;
}
.ce-back a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--peacock-teal, #007A73);
    color: #fff !important;
    padding: 0.7rem 1.35rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
}
.ce-back a:hover {
    background: var(--forest-green, #1F4D3A);
}

.ce-quote {
    position: relative;
   /* padding: 2rem 1.25rem;*/
    background: #1F4D3A;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.ce-quote p {
    max-width: 64rem;
    margin: 0 auto;
    font-size: 1.25rem;
    color: #fff;
    font-style: italic;
    font-weight: 700;
}
.ce-quote span {
    color: #bfff58;
    font-style: normal;
    font-weight: 700;
}


.ce-lb {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.92);
    align-items: center;
    justify-content: center;
}
.ce-lb.open {
    display: flex;
}
.ce-lb img {
    max-width: 88vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 8px;
}
.ce-lb__btn {
    position: absolute;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.75);
    cursor: pointer;
    font-size: 2.5rem;
    padding: 0.5rem 1rem;
}
.ce-lb__btn:hover {
    color: #fff;
}
.ce-lb__close {
    top: 1rem;
    right: 1.5rem;
}
.ce-lb__prev {
    left: 1rem;
}
.ce-lb__next {
    right: 1rem;
}
.ce-lb__count {
    position: absolute;
    bottom: 1rem;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.85rem;
}

@media (max-width: 1023px) {
    .ee-grid { grid-template-columns: repeat(2, 1fr); }
    .ee-hero { padding: 2.5rem 1.25rem 3rem; }
    .ce-hero { min-height: 320px; }
}
@media (max-width: 767px) {
    .ee-grid {
        grid-template-columns: 1fr;
    }
    .ce-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .ee-quote,
    .ce-quote {
        padding-bottom: 4rem;
    }
}
