
/* ================= GLOBAL RESET ================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    color: inherit;
    text-decoration: none;
    transition: none;
}

a:hover,
a:focus {
    text-decoration: none;
}

img {
    display: block;
    width: 100%;
}

.main-content {
    flex: 1;
    min-width: 0;
}


/* ================= HOME NEWS LAYOUT ================= */

.home-news {
    max-width: 1600px;
    margin: 35px auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 2.3fr 1fr;
    gap: 28px;
    align-items: start;
}


/* ================= FEATURED NEWS ================= */

.featured-body {
    display: grid;
    grid-template-columns: 1.1fr 1.4fr;
    gap: 28px;
    align-items: center;
}

.news-featured img {
    height: 300px;
    object-fit: cover;
}

.news-featured .overlay {
    position: static;
    background: none;
    color: inherit;
    padding: 0;
}

.news-featured h1 {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.35;
    color: #000;
    margin-bottom: 14px;
}

.news-featured p {
    font-size: 15px;
    color: #000;
    line-height: 1.8;
    margin-bottom: 18px;
}

.news-featured time {
    display: block;
    font-size: 13px;
    color: #888;
    font-weight: 500;
}


/* ================= TOP NEWS ================= */

.news-top img {
    height: 220px;
    object-fit: cover;
    margin-bottom: 16px;
}

.news-top .badge.subtle {
    display: inline-block;
    border: 2px solid #8b1e1a;
    color: #8b1e1a;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .5px;
    padding: 6px 14px;
    margin-bottom: 14px;
    text-transform: uppercase;
}

.news-top h2 {
    font-size: 21px;
    line-height: 1.4;
    font-weight: 700;
    color: #000;
    margin-bottom: 12px;
}

.news-top p {
    font-size: 14px;
    line-height: 1.7;
    color: #000;
    margin-bottom: 14px;
}

.news-top time {
    display: block;
    font-size: 13px;
    color: #888;
    font-weight: 500;
}


/* ================= BELOW 4 NEWS ================= */

.news-grid {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    margin-top: 40px;
}

.news-grid img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.news-grid article .content {
    padding: 18px;
}

.home-news .news-grid article h3 {
    margin-top: 12px;
}

.news-grid h3 {
    font-size: 18px;
    line-height: 1.4;
    font-weight: 700;
    color: #000;
    margin-bottom: 10px;
}

.news-grid p {
    font-size: 14px;
    line-height: 1.7;
    color: #000;
    margin-bottom: 14px;
}

.news-grid time {
    display: block;
    font-size: 13px;
    color: #888;
}


/* ================= NEWS HOVER UNDERLINE ================= */

/* Featured news title and article content */

.news-featured a:hover h1,
.news-featured a:hover p,
.news-featured a:focus h1,
.news-featured a:focus p {
    color: #000;
    text-decoration: underline;
    text-decoration-color: #000;
}

/* Top news title and article content */

.news-top a:hover h2,
.news-top a:hover p,
.news-top a:focus h2,
.news-top a:focus p {
    color: #000;
    text-decoration: underline;
    text-decoration-color: #000;
}

/* News grid title and article content */

.news-grid a:hover h3,
.news-grid a:hover p,
.news-grid a:focus h3,
.news-grid a:focus p {
    color: #000;
    text-decoration: underline;
    text-decoration-color: #000;
}

/* More news title and article content */

.news-box a:hover .news-text h3,
.news-box a:hover .news-text p,
.news-box a:focus .news-text h3,
.news-box a:focus .news-text p {
    color: #000;
    text-decoration: underline;
    text-decoration-color: #000;
}


/* ================= MORE NEWS ================= */

.news-grid.two-per-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 26px;
    margin-top: 40px;
}

.news-box-header {
    font-size: 15px;
    font-weight: 700;
    color: #8b1e1a;
    padding: 16px 18px;
    border-bottom: 1px solid #ececec;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.news-box-content {
    display: flex;
    gap: 18px;
    padding: 18px;
    align-items: flex-start;
}

.news-img {
    width: 240px;
    height: 150px;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
}

.news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-text {
    flex: 1;
}

.news-text h3 {
    font-size: 18px;
    line-height: 1.4;
    color: #000;
    margin-bottom: 10px;
}

.news-text p {
    font-size: 14px;
    color: #000;
    line-height: 1.7;
    margin-bottom: 12px;
}

.news-text time {
    display: block;
    font-size: 13px;
    color: #888;
}


/* ================= BADGE ================= */

.more-news-badge {
    position: absolute;
    left: 10px;
    bottom: 10px;
    background: #8b1e1a;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 10px;
    text-transform: uppercase;
}


/* ================= MORE NEWS BUTTON ================= */

.more-news-btn {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    margin: 45px 0;
}

.more-news-btn .btn-maroon {
    padding: 12px 32px;
    border: 2px solid #bf3b35;
    background: #fff;
    color: #8b1e1a;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}


/* ================= LEGEND FM WIDGET ================= */

.legendfm-widget {
    max-width: 900px;
    margin: 0 auto;
    font-family: Arial, sans-serif;
    padding: 25px 12px;
}

.legendfm-channel {
    margin-bottom: 40px;
    padding: 20px;
    border-radius: 16px;
}

/* Channel Themes */

.channel-yumifm {
    background: linear-gradient(135deg, #eef8ff, #ffffff);
    border: 2px solid #008cff;
}

.channel-legendfm {
    background: linear-gradient(135deg, #fff0f8, #ffffff);
    border: 2px solid #e60073;
}

.channel-naufm {
    background: linear-gradient(135deg, #f4fff0, #ffffff);
    border: 2px solid #39a84c;
}

.legendfm-channel-title {
    font-weight: 800;
    font-size: 24px;
    margin-bottom: 18px;
    text-align: center;
    letter-spacing: .5px;
}

.legendfm-channel-title a {
    text-decoration: none;
    color: #111;
}

.legendfm-videos {
    display: flex;
    gap: 18px;
    flex-wrap: nowrap;
    justify-content: center;
}

.legendfm-card {
    flex: 1 1 280px;
    max-width: 320px;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
}

.legendfm-card img {
    width: 100%;
    height: auto;
    display: block;
}

.legendfm-card .info {
    padding: 14px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    flex-grow: 1;
}

.legendfm-card a {
    color: inherit;
    text-decoration: none;
}

.legendfm-nav {
    text-align: center;
    margin-top: 18px;
}

.legendfm-nav button {
    background: linear-gradient(135deg, #222, #444);
    color: white;
    border: none;
    padding: 10px 22px;
    margin: 0 6px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    border-radius: 25px;
}

.legendfm-nav button:disabled {
    background: #aaa;
    cursor: not-allowed;
}

.error-message {
    text-align: center;
    color: #d0003a;
    font-weight: 600;
    font-size: 16px;
    margin-top: 20px;
}

@media (max-width: 900px) {
    .legendfm-videos {
        flex-wrap: wrap;
    }
}

@media (max-width: 600px) {
    .legendfm-videos {
        flex-direction: column;
        gap: 24px;
    }

    .legendfm-card {
        max-width: 100%;
    }
}


/* ================= YU STORI ================= */

.yu-stori-widget-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    font-family: Arial, sans-serif;
}

.yu-stori-header-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 10px;
}

.yu-stori-subtitle {
    font-size: 1.3rem;
    font-weight: 800;
    color: #222;
}

.yu-stori-subscribe-btn {
    background: linear-gradient(135deg, #ff0000, #b90000);
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    font-size: .95rem;
}

.yu-stori-video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.yu-stori-video-card {
    border: none;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
}

.yu-stori-video-card iframe {
    width: 100%;
    height: 200px;
    border: none;
}

.yu-stori-card-info {
    padding: 12px;
    font-size: .95rem;
    font-weight: 600;
    color: #333;
}

.yu-stori-pagination {
    text-align: center;
    margin-top: 22px;
}

.yu-stori-pagination button {
    background: #222;
    color: white;
    padding: 10px 20px;
    margin: 0 8px;
    font-size: 14px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
}

.yu-stori-pagination button:disabled {
    background: #ccc;
}

#yu-stori-prev-btn,
#yu-stori-next-btn {
    color: white;
}

@media (max-width: 1024px) {
    .yu-stori-video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .yu-stori-header-box {
        flex-direction: column;
        align-items: flex-start;
    }

    .yu-stori-subscribe-btn {
        width: 100%;
        text-align: center;
    }

    .yu-stori-video-grid {
        grid-template-columns: 1fr;
    }
}


/* ================= SCOREBOARD ================= */

.scoreboard {
    max-width: 1000px;
    margin: 25px auto;
    border-top: 4px solid #002147;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}

.scoreboard h2 {
    font-size: 26px;
    font-weight: 800;
    padding: 18px 0;
    text-align: center;
}


/* Tabs */

.tabs {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 5px;
    background: #fff;
    padding: 5px;
}

.tab {
    padding: 14px;
    text-align: center;
    font-weight: 700;
    font-size: 14px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background: #f5f5f5;
}

.tab.active {
    background: linear-gradient(135deg, #ff9800, #ffb74d);
    color: #4b2600;
}


/* Table */

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    margin-top: 12px;
}

th,
td {
    padding: 13px;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

th {
    background: #f3f3f3;
    font-weight: bold;
}


/* ================= TABLET (991px and below) ================= */

@media (max-width: 991px) {

    .home-news {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .featured-body {
        grid-template-columns: 1fr;
    }

    .news-featured img {
        height: 340px;
    }

    .news-top img {
        height: 280px;
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .news-grid.two-per-row {
        grid-template-columns: 1fr;
    }

    .news-box-content {
        flex-direction: column;
    }

    .news-img {
        width: 100%;
        height: 240px;
    }

    .news-top-tablet {
        display: none;
    }
}


/* ================= MOBILE (768px and below) ================= */

@media (max-width: 768px) {

    html,
    body {
        overflow-x: hidden;
        padding: 0;
    }

    .home-news {
        margin: 0;
        padding: 16px;
        gap: 24px;
    }

    .featured-body {
        display: flex;
        flex-direction: column;
    }

    .news-featured,
    .news-top,
    .news-grid article {
        padding: 18px;
    }

    .news-featured img {
        width: 100%;
        height: 240px;
        order: 1;
    }

    .news-featured .overlay {
        order: 2;
        margin-top: 18px;
    }

    .news-featured h1 {
        font-size: 22px;
    }

    .news-featured p {
        font-size: 14px;
    }

    .news-top img {
        height: 220px;
    }

    .news-top h2 {
        font-size: 20px;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .news-grid img {
        height: 220px;
    }

    .news-grid h3 {
        font-size: 18px;
    }

    /* Keep news box edge-to-edge internally */

    .news-box {
        padding: 0;
    }

    .news-box-header {
        padding: 16px;
    }

    .news-box-content {
        flex-direction: column;
        padding: 16px;
    }

    .news-img {
        height: 220px;
    }

    .news-text {
        padding: 0;
    }

    .more-news-btn {
        margin: 32px 0;
    }

    .more-news-btn .btn-maroon {
        width: 100%;
        max-width: 260px;
    }
}


/* ================= SMALL PHONES (480px and below) ================= */

@media (max-width: 480px) {

    .home-news {
        padding: 12px;
    }

    .news-featured img {
        height: 200px;
    }

    .news-top img {
        height: 190px;
    }

    .news-grid img,
    .news-img {
        height: 190px;
    }

    .news-featured h1 {
        font-size: 20px;
    }

    .news-top h2 {
        font-size: 18px;
    }

    .news-grid h3,
    .news-text h3 {
        font-size: 17px;
    }

    .news-featured p,
    .news-top p,
    .news-grid p,
    .news-text p {
        font-size: 13px;
    }

    .more-news-btn .btn-maroon {
        padding: 12px 20px;
        font-size: 14px;
    }
}
