/* =============================================
   NEWSROOM PAGE STYLES
   ============================================= */

/* Section Base */
.newsroom-section {
    padding: 80px 0;
    box-sizing: border-box;
}

.newsroom-section__header {
    margin-bottom: 48px;
}

.newsroom-section__title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--primary-900-rgb);
}

.newsroom-section__subtitle {
    font-size: 16px;
    color: var(--t-foreground-secondary-rgb);
    margin: 0;
}

/* =============================================
   SLIDER COMMON
   ============================================= */

.events-slider-wrapper,
.news-slider-wrapper,
.memberships-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
}

.events-slider-wrapper .swiper,
.news-slider-wrapper .swiper,
.memberships-slider-wrapper .swiper {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

/* Arrow Buttons */
.slider-arrow {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: var(--primary-25-rgb);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--t-foreground-secondary-rgb);
    transition: background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
    z-index: 10;
    padding: 0;
    line-height: 0;
    overflow: hidden;

}

.slider-arrow img {
    display: block;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.slider-arrow:hover {
    background: var(--primary-900-rgb);
    color: var(--primary-25-rgb);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.slider-arrow:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}



/* =============================================
   UPCOMING EVENTS
   ============================================= */

.upcoming-events-section {
    background: var(-primary-75-rgb);
}

.event-card {
    background: var(--primary-25);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
    box-sizing: border-box;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
}

.event-card__logo-wrapper {
    width: calc(100% + 48px);
    margin-left: -24px;
    margin-top: -32px;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
    height: 180px;
}

.event-card__logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.event-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.event-card__name {
    font-size: 16px;
    font-weight: 600;
    color: var(var(--primary-900-rgb));
    margin: 0;
    line-height: 1.4;
}

.event-card__date {
    font-size: 14px;
    color: #374151;
    margin: 0;
    font-weight: 500;
}

.event-card__location {
    font-size: 14px;
    color: var(--t-accent-dark-rgb);
    margin: 0;
}

.event-card__cta {
    display: inline-block;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 8px;
    border: 1.5px solid var(var(--primary-900-rgb));
    color: var(var(--primary-900-rgb));
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.event-card__cta:hover {
    background: var(var(--primary-900-rgb));
    color: var(--primary-25-rgb);
}

/* Events Swiper - 3 visible + peek */
.events-swiper .swiper-slide {
    width: calc((100% - 60px) / 3);
}

/* =============================================
   IN THE NEWS
   ============================================= */

/*.in-the-news-section {
  background: var(--primary-25-rgb);
}*/

.news-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: var(--primary-25);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: 28px 24px;
    height: 100%;
    box-sizing: border-box;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    min-height: 280px;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
}

.news-card__tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary-500-rgb);
    background: var(--primary-75-rgb);
    border-radius: 4px;
    padding: 4px 10px;
    align-self: flex-start;
}

.news-card__logo-wrapper {
    display: flex;
    align-items: center;
    min-height: 60px;
}

.news-card__logo {
    max-height: 50px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.news-card__headline {
    font-size: 15px;
    font-weight: 600;
    color: #001326;
    margin: 0;
    flex: 1;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.news-card__cta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-500-rgb);
    margin-top: auto;
    text-decoration: none;
}

.news-card:hover .news-card__cta {
    color: var(--primary-900-rgb);
}

/* News Swiper - 3 visible + peek */
.news-swiper .swiper-slide {
    width: calc((100% - 60px) / 3);
}

/* =============================================
   MEMBERSHIPS
   ============================================= */

/*.memberships-section {
    background: var(--primary-75-rgb);
}*/

.membership-card {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var( --primary-25);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: 32px 24px;
    height: 120px;
    box-sizing: border-box;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.membership-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
}

.membership-card__logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.membership-card__logo {
    max-height: 60px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    filter: grayscale(30%);
    transition: filter 0.2s ease;
}

.membership-card:hover .membership-card__logo {
    filter: grayscale(0%);
}

/* Memberships Swiper - 4 visible */
.memberships-swiper .swiper-slide {
    width: calc((100% - 60px) / 4);
}

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

@media (max-width: 992px) {
    .events-swiper .swiper-slide {
        width: calc((100% - 30px) / 2);
    }

    .news-swiper .swiper-slide {
        width: calc((100% - 30px) / 2);
    }

    .memberships-swiper .swiper-slide {
        width: calc((100% - 30px) / 2);
    }
}

@media (max-width: 768px) {
    .newsroom-section {
        padding: 56px 0;
    }

    .events-slider-wrapper,
    .news-slider-wrapper,
    .memberships-slider-wrapper {
        gap: 8px;
    }

    .slider-arrow {
        width: 36px;
        height: 36px;
    }

    .events-swiper .swiper-slide,
    .news-swiper .swiper-slide {
        width: 85%;
    }

    .memberships-swiper .swiper-slide {
        width: calc((100% - 20px) / 2);
    }
}

@media (max-width: 576px) {
    .memberships-swiper .swiper-slide {
        width: 80%;
    }
}
