/* News & Events - New Layout */
.news {
    padding: 3rem 0 3.5rem;
    position: relative;
}

.news__heading {
    margin: 0 auto 1.6rem;
    height: 130px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
    animation: glow 3s ease-in-out infinite, float 3.5s ease-in-out infinite;
}

@keyframes glow {

    0%,
    100% {
        filter: brightness(1);
    }

    50% {
        filter: brightness(1.6);
    }
}

.news__heading:after {
    content: '';
    display: block;
    margin-top: .55rem;
    width: 130px;
    height: 4px;
    border-radius: 6px;
    background: linear-gradient(90deg, var(--color-purple) 0%, var(--color-gold-bright) 55%, var(--color-purple-light) 100%);
    box-shadow: 0 0 10px -2px var(--color-gold-bright);
}

/* New layout: Left slider + Right tabs & list */
.news__layout {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr 1fr;
    align-items: start;
}

/* Left: Featured Slider */
.news__featured {
    position: relative;
    background: linear-gradient(170deg, #221935 0%, #2d1e4f 55%, #1a1830 100%);
    border: 1px solid var(--color-purple-light);
    border-radius: 20px;
    box-shadow: 0 18px 40px -14px rgba(92, 54, 150, 0.55), 0 0 0 3px rgba(124, 58, 237, 0.15) inset;
    padding: 1rem;
}

.news__slider {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 14px 34px -12px rgba(92, 54, 150, .55);
    aspect-ratio: 1;
}

.news__slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: 4/3;
    background: linear-gradient(170deg, #221935, #2d1e4f 55%, #1a1830);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    color: white;
    cursor: pointer;
    transition: opacity .6s ease, transform .6s ease;
    opacity: 0;
    transform: scale(0.8) translateY(50px);
}

.news__slide.is-active {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.news__slideImg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.news__slideOverlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 0;
}

.news__slideTitle {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: .5rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    z-index: 1;
    position: relative;
}

.news__slideMeta {
    font-size: .75rem;
    opacity: .8;
    z-index: 1;
    position: relative;
}

/* Slider Navigation */
.news__sliderNav {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: .5rem;
    z-index: 2;
}

.news__sliderDot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .5);
    cursor: pointer;
    transition: background .3s;
}

.news__sliderDot.is-active {
    background: var(--color-gold-bright);
}

/* Slider Controls */
.news__sliderControls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    z-index: 3;
    pointer-events: none;
}

.news__sliderBtn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .5);
    border: 1px solid rgba(255, 255, 255, .3);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all .3s ease;
    pointer-events: auto;
}

.news__sliderBtn:hover {
    background: rgba(0, 0, 0, .8);
    transform: scale(1.1);
}

/* Right: Tabs and List */
.news__content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: linear-gradient(170deg, #221935 0%, #2d1e4f 55%, #1a1830 100%);
    border: 1px solid var(--color-purple-light);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 18px 40px -14px rgba(92, 54, 150, 0.55), 0 0 0 3px rgba(124, 58, 237, 0.15) inset;
    aspect-ratio: 1;
}

/* Category Tabs */
.news__tabs {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}

.news__tab {
    background: rgba(60, 40, 100, .35);
    border: 1px solid var(--color-purple-light);
    color: var(--color-silver);
    padding: .6rem 1rem;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .04em;
    border-radius: 11px;
    cursor: pointer;
    transition: all .25s;
    white-space: nowrap;
}

.news__tab:hover {
    background: rgba(124, 58, 237, .4);
}

.news__tab.is-active {
    background: var(--gradient-brand);
    color: #fff;
    box-shadow: 0 0 0 2px rgba(255, 215, 0, .55);
}

/* Posts List */
.news__list {
    display: flex;
    flex-direction: column;
}

.news__item {
    padding: 0rem 1rem;
    border-bottom: 1px solid rgba(124, 58, 237, .2);
    cursor: pointer;
    transition: all .3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news__item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px -8px rgba(92, 54, 150, .5);
    border-color: rgba(124, 58, 237, .6);
}

.news__itemTitle {
    font-size: .95rem;
    font-weight: 600;
    color: var(--color-silver);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.news__itemMeta {
    display: flex;
    align-items: center;
    font-size: .7rem;
    color: var(--color-silver);
    opacity: .7;
    margin-left: auto;
}

.news__itemDate {
    font-weight: 500;
}

/* Loading states */
.news__loading {
    padding: 2rem;
    text-align: center;
    color: var(--color-silver);
    opacity: .7;
}

.news__empty {
    padding: 2rem;
    text-align: center;
    color: var(--color-silver);
    opacity: .7;
    font-style: italic;
}

/* Responsive */
/* @media (max-width: 1100px) {
    .news__layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 2rem;
    }

    .news__featured {
        order: 2;
    }

    .news__content {
        order: 1;
    }
}

@media (max-width: 680px) {
    .news__tabs {
        flex-direction: column;
    }

    .news__tab {
        text-align: center;
        width: 100%;
    }

    .news__list {
        gap: .6rem;
    }
} */

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-8px);
    }
}
