/* NEWS MENU - Diamond MMORPG Style */

.news-section {
    position: absolute;
    top: 1500px;
    left: 50%;
    width: 1220px;
    transform: translateX(-50%);
    font-family: "IBM Plex Sans Thai", "Kanit", sans-serif;
}

/* Tabs */
.news-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 22px;
}

.news-tab {
    position: relative;
    width: 210px;
    height: 48px;

    border: 2px solid rgba(230,250,255,.95);
    border-radius: 10px;

    background:
        linear-gradient(180deg, #ffffff 0%, #9cefff 18%, #1b9ee8 55%, #073a80 100%);

    color: #ffffff;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 1px;

    text-shadow:
        1px 1px 0 #001b45,
        -1px 1px 0 #001b45,
        1px -1px 0 #001b45,
        -1px -1px 0 #001b45,
        0 0 8px rgba(95,220,255,1);

    box-shadow:
        inset 0 2px 0 rgba(255,255,255,.95),
        inset 0 -8px 12px rgba(0,50,125,.55),
        0 0 12px rgba(80,210,255,.7);

    cursor: pointer;
    transition: .25s;
}

.news-tab::before {
    content: "";
    position: absolute;
    inset: 5px;
    border: 1px solid rgba(190,245,255,.7);
    border-radius: 6px;
    pointer-events: none;
}

.news-tab::after {
    content: "◆";
    position: absolute;
    left: 50%;
    bottom: -9px;
    transform: translateX(-50%);
    color: #eaffff;
    font-size: 13px;
    text-shadow:
        0 0 6px #fff,
        0 0 12px #5de6ff;
    pointer-events: none;
}

.news-tab:hover,
.news-tab.active {
    transform: translateY(-3px);

    background:
        linear-gradient(180deg, #ffffff 0%, #c8f8ff 18%, #38c8ff 55%, #0755aa 100%);

    box-shadow:
        inset 0 2px 0 rgba(255,255,255,1),
        inset 0 -8px 14px rgba(0,65,150,.5),
        0 0 18px rgba(130,235,255,1),
        0 0 30px rgba(45,170,255,.7);
}

/* Content Frame */
.news-content {
    display: none;

    grid-template-columns: repeat(3, 380px);
    grid-auto-rows: 282px;
    justify-content: center;
    gap: 20px;

    padding: 24px;

    border: 2px solid rgba(205,245,255,.72);
    border-radius: 16px;

    background:
        radial-gradient(circle at top left, rgba(255,255,255,.18), transparent 34%),
        radial-gradient(circle at bottom right, rgba(70,210,255,.16), transparent 40%),
        linear-gradient(180deg, rgba(6,28,70,.22), rgba(2,12,38,.34));

    box-shadow:
        inset 0 0 0 2px rgba(90,220,255,.18),
        inset 0 0 24px rgba(255,255,255,.12),
        0 0 18px rgba(70,200,255,.35);

    backdrop-filter: blur(4px);
    overflow: hidden;
}

.news-content.active {
    display: grid;
}

/* Card */
.news-card {
    position: relative;
    display: none;

    width: 380px;
    height: 282px;

    padding: 8px;

    overflow: hidden;
    text-decoration: none;
    color: inherit;

    border: 2px solid rgba(225,250,255,.95);
    border-radius: 12px;

    background:
        linear-gradient(180deg, rgba(255,255,255,.9) 0%, rgba(115,220,255,.55) 6%, rgba(5,35,90,.92) 18%, rgba(3,18,50,.96) 100%);

    box-shadow:
        inset 0 2px 0 rgba(255,255,255,.95),
        inset 0 -10px 18px rgba(0,45,120,.55),
        inset 0 0 0 2px rgba(75,215,255,.22),
        0 0 14px rgba(60,190,255,.5);

    cursor: pointer;
    transition: .25s;
}

.news-card.show {
    display: block;
}

.news-card::before {
    content: "";
    position: absolute;
    inset: 6px;
    z-index: 3;

    border: 1px solid rgba(180,245,255,.6);
    border-radius: 8px;

    box-shadow:
        inset 0 0 10px rgba(120,230,255,.25);

    pointer-events: none;
}

.news-card::after {
    content: "◆";
    position: absolute;
    top: 4px;
    right: 12px;
    z-index: 4;

    color: #eaffff;
    font-size: 15px;

    text-shadow:
        0 0 6px #ffffff,
        0 0 12px #5de6ff,
        0 0 20px #1faeff;

    pointer-events: none;
}

.news-card:hover {
    transform: translateY(-5px);

    box-shadow:
        inset 0 2px 0 rgba(255,255,255,1),
        inset 0 -10px 20px rgba(0,55,135,.55),
        inset 0 0 0 2px rgba(130,235,255,.3),
        0 0 22px rgba(110,230,255,.9),
        0 0 34px rgba(40,165,255,.55);
}

/* Image 380x228 */
.news-card img {
    width: 100%;
    height: 228px;

    display: block;
    object-fit: cover;

    border-radius: 8px;
    border: 1px solid rgba(220,250,255,.92);

    box-shadow:
        inset 0 0 0 2px rgba(100,225,255,.25),
        0 0 10px rgba(60,190,255,.45);

    transition: .25s;
}

.news-card:hover img {
    transform: scale(1.025);
    filter: brightness(1.08) contrast(1.05);
}

/* Title under image */
.news-title {
    position: relative;
    z-index: 5;

    margin-top: 8px;
    height: 30px;
    padding: 3px 12px;

    border: 1px solid rgba(255,255,255,.88);
    border-radius: 7px;

    background:
        linear-gradient(180deg, #ffffff 0%, #9de8ff 32%, #178fdc 100%);

    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    line-height: 22px;
    text-align: center;

    text-shadow:
        1px 1px 0 #000,
        -1px 1px 0 #000,
        1px -1px 0 #000,
        -1px -1px 0 #000,
        0 0 7px rgba(70,220,255,1);

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.95),
        inset 0 -5px 10px rgba(0,70,140,.35),
        0 0 8px rgba(90,220,255,.65);

    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* Pagination */
.news-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
}

.news-page-btn {
    min-width: 38px;
    height: 38px;

    border: 2px solid rgba(220,250,255,.9);
    border-radius: 8px;

    background:
        linear-gradient(180deg, #ffffff 0%, #8deaff 28%, #1aaee8 55%, #063a82 100%);

    color: #ffffff;
    font-size: 14px;
    font-weight: 900;

    text-shadow:
        1px 1px 0 #001b45,
        -1px 1px 0 #001b45,
        1px -1px 0 #001b45,
        -1px -1px 0 #001b45,
        0 0 7px rgba(80,220,255,1);

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.9),
        inset 0 -5px 10px rgba(0,60,140,.4),
        0 0 10px rgba(70,210,255,.55);

    cursor: pointer;
    transition: .25s;
}

.news-page-btn:hover,
.news-page-btn.active {
    transform: translateY(-2px);

    background:
        linear-gradient(180deg, #ffffff 0%, #bdf6ff 30%, #42cfff 58%, #0874c7 100%);

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,1),
        inset 0 -5px 10px rgba(0,70,150,.4),
        0 0 16px rgba(120,235,255,.9);
}

/* Responsive */
@media (max-width: 1250px) {
    .news-section {
        width: 95%;
    }

    .news-content {
        grid-template-columns: repeat(2, 380px);
    }
}

@media (max-width: 850px) {
    .news-tabs {
        flex-wrap: wrap;
    }

    .news-content {
        grid-template-columns: 1fr;
    }

    .news-card {
        width: 100%;
        height: 282px;
    }

    .news-card img {
        width: 100%;
        height: 228px;
    }
}
