/* ========================================
   COMMUNITY INVOLVEMENT PAGE
   ======================================== */

/* Info Section */
.info-section {
    background-color: #EAD5AF;
    padding: 80px 0;
    padding-bottom: 120px;
}

.info-section__content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 2rem;
}

.info-section__logo {
    /* width: 250px;
    height: 250px; */
    border-radius: 50%;
    overflow: hidden;
    /* background-color: #2C4F5E; */
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-section__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
}

.info-section__text {
    color: #333;
}

.info-section__title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #2C4F5E;
}

.info-section__description {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 25px;
}

.info-section__description ul {
    list-style: none;
    padding-left: 0;
    margin: 20px 0;
}

.info-section__description li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 10px;
}

.info-section__description li::before {
    content: '•';
    position: absolute;
    left: 0;
    font-weight: 900;
    color: #2C4F5E;
}

.info-section__download {
    display: inline-block;
    color: #2C4F5E;
    font-weight: 700;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.info-section__download:hover {
    color: #1a2f3d;
    text-decoration: none;
}

.info-section__download-wrapper {
    font-size: 1rem;
    line-height: 1.7;
    color: #333;
}

.info-section__download-wrapper p {
    display: inline;
    margin: 0;
    padding: 0;
}

/* Video Section */
.video-section {
    /* padding: 80px 0;
    background-color: #fff; */
    background-color: transparent;
    margin-top: -80px;
    position: relative;
    z-index: 2;
}

.video-section__wrapper {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.video-section__player {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    /* border: 5px solid #00A3E0; */
    /* border-radius: 8px; */
    overflow: hidden;
    background-color: #000;
}

.video-section__player iframe,
.video-section__player video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* .video-section__poster {
    position: relative;
    border: 5px solid #00A3E0;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.video-section__poster img {
    width: 100%;
    height: auto;
    display: block;
} */

.video-section__play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.video-section__play-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.wistia_responsive_padding {
    padding: 56.25% 0 0 0;
    position: relative;
}

.wistia_responsive_wrapper {
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
}

.wistia_responsive_wrapper iframe {
    width: 100%;
    height: 100%;
}

.video-poster {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-poster__play {
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.video-poster__play:hover {
    transform: scale(1.1);
}

/* ========================================
   EVENTS SECTION
   ======================================== */

.events-section {
    padding: 80px 0;
    overflow: hidden;
}

.events-section__title {
    font-size: 2.5rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 60px;
    color: #2C4F5E;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.events-carousel__wrapper {
    position: relative;
    width: 100%;
}

.events-carousel__viewport {
    padding: 0px 120px;
}

.events-carousel__track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.event-card {
    min-width: 100%;
    padding: 0 1.5rem;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.event-card:not(.active) .event-card__inner {
    /* opacity: 0.5;
    transform: scale(0.97); */
    pointer-events: none;
}

.event-card__inner {
    display: flex;
    background-color: #f5f5f5;
    border-radius: 28px;
    overflow: hidden;
    transition: opacity 0.4s ease, transform 0.4s ease;
    height: 632px; /* fixed height instead of max-height */
}

.event-card.active .event-card__inner {
    box-shadow: 0 8px 36px rgba(0, 0, 0, 0.13);
}

.event-card__content {
    flex: 1;
    padding: 44px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
}

.event-card__title {
    font-size: 1.4rem;
    /* font-weight: 800; */
    text-transform: uppercase;
    color: rgba(37, 57, 72, 1);
    line-height: 1.3;
    margin-bottom: 1rem;
}

.event-card__description {
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(9, 20, 33, 1);
}

.event-card__images {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 44px 40px;
    min-width: 0;
    height: 100%;
    box-sizing: border-box;
}

.event-card__img-top {
    flex: 1;        /* change from 1.3 to 1 so it fills remaining space */
    border-radius: 16px;
    overflow: hidden;
    min-height: 0;
}

.event-card__img-bottom-row {
    display: flex;
    gap: 10px;
    flex: 1;
    min-height: 0;
}

.event-card__img-bottom {
    flex: 1;
    border-radius: 16px;
    overflow: hidden;
    min-height: 0;
}

.event-card__images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.events-carousel__btn {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 1);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
    z-index: 10;
    transition: background 0.2s, box-shadow 0.2s;
    color: #3a3d52;
}

.events-carousel__btn:hover {
    background: #cacde0;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.24);
}

.events-carousel__btn svg {
    width: 18px;
    height: 18px;
    color: rgba(9, 20, 33, 1);
}

.events-carousel__btn--prev {
    left: 120px;
}

.events-carousel__btn--next {
    right: 120px;
}

.events-carousel__dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
}

.events-carousel__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    /* border: 2px solid #2C4F5E; */
    border: none;
    background-color: rgba(100, 101, 105, 0.5);
    cursor: pointer;
    padding: 0;
    transition: background-color 0.3s ease;
}

.events-carousel__dot:hover {
    background-color: rgba(100, 101, 105, 1);
}

.events-carousel__dot.active {
    background-color: rgba(100, 101, 105, 1);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1100px) {
    .events-carousel__viewport {
        padding: 16px 80px;
    }
    .events-carousel__btn--prev { left: 57px; }
    .events-carousel__btn--next { right: 57px; }
}

@media (max-width: 992px) {
    .info-section__content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .info-section__logo {
        margin: 0 auto;
    }
    
    .info-section__description li {
        text-align: left;
    }

    .events-carousel__viewport {
        padding: 0 40px;
    }

    .events-carousel__btn--prev { left: 35px; }
    .events-carousel__btn--next { right: 35px; }

    .event-card__inner {
        flex-direction: column;
        height: auto;
    }

    .event-card__content {
        padding: 30px 24px 20px;
    }

    .event-card__images {
        padding: 0 20px 20px;
        min-height: 240px;
    }
}

@media (max-width: 768px) {
    .info-section {
        padding: 60px 0;
    }
    
    .video-section {
        padding: 60px 0;
    }
    
     .events-section {
        padding: 60px 0;
    }

    .events-section__title {
        font-size: 2rem;
        margin-bottom: 40px;
    }

    .events-carousel__viewport {
        padding: 16px 48px;
    }

    .events-carousel__btn--prev { left: 25px; }
    .events-carousel__btn--next { right: 25px; }

    .event-card__inner {
        flex-direction: column;
        min-height: unset;
    }

    .event-card__images {
        display: none;
    }

    .event-card__content {
        flex: 1;
        padding: 28px 24px;
    }

    .events-carousel__dot {
        width: 8px;
        height: 8px;
    }

    .events-carousel__dot.active {
        width: 8px;
    }
}

@media (max-width: 576px) {
    .info-section__logo {
        width: 200px;
        height: 200px;
    }
    
    .events-section__title {
        font-size: 1.75rem;
        margin-bottom: 40px;
    }
    
    .event-card__content {
        padding: 25px;
    }
    
    .events-section__title {
        font-size: 1.6rem;
    }

    .events-carousel__viewport {
        padding: 12px 32px;
    }

    .events-carousel__btn--prev { left: 35px; }
    .events-carousel__btn--next { right: 35px; }

    .events-carousel__btn {
        width: 36px;
        height: 36px;
    }
}