
/* =========================================================
   LATEST NEWS PAGE
========================================================= */

.latest-news-page {
    padding: 30px 0 50px;
}

.latest-news-page-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.latest-news-page-title h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
}

.latest-news-page-title h1 i {
    margin-right: 8px;
}


/* =========================================================
   CATEGORY BAR
========================================================= */

.latest-category-bar {
    position: relative;
    width: 100%;
    margin-bottom: 22px;
}

.latest-category-toggle {
    display: none;

    width: 100%;
    align-items: center;
    justify-content: space-between;

    padding: 10px 13px;

    border: 1px solid #334155;
    border-radius: 6px;

    background: #17253d;
    color: #fff;

    font-family: "Poppins", sans-serif;
    font-size: 12px;
    font-weight: 600;

    cursor: pointer;
}

.latest-category-toggle > span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.latest-category-toggle i {
    font-size: 11px;
}


/* =========================================================
   PRIMETIME NEWS - TOP HEADER
   LOGO + VIDEOS + LATEST NEWS + CATEGORIES
========================================================= */

.page-header {
    width: 100%;
    margin: 0;
    padding: 0;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.top-header {
    width: 100%;
    max-width: 1200px;
    min-height: 70px;

    margin: 0 auto;
    padding: 8px 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    box-sizing: border-box;
}


/* =========================================================
   LOGO
========================================================= */

.top-header .logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.top-header .logo a {
    display: flex;
    align-items: center;

    text-decoration: none !important;
}

.top-header .logo img {
    display: block;

    width: auto;
    max-width: 180px;
    height: 52px;

    object-fit: contain;
}


/* =========================================================
   TOP NAVIGATION
========================================================= */

.top-navigation {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 8px;

    margin-left: auto;
}


/* =========================================================
   NAVIGATION LINKS
========================================================= */

.top-navigation a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 10px 15px;

    color: #111827 !important;

    font-family: "Poppins", sans-serif;
    font-size: 14px;
    font-weight: 600;

    line-height: 1.2;

    text-decoration: none !important;

    border-radius: 5px;

    background: transparent;

    transition:
        background-color .2s ease,
        color .2s ease;
}


/* REMOVE UNDERLINE */

.top-navigation a,
.top-navigation a:hover,
.top-navigation a:focus,
.top-navigation a:active,
.top-header .logo a {
    text-decoration: none !important;
}


/* HOVER */

.top-navigation a:hover {
    background: #e00000 !important;
    color: #ffffff !important;
}


/* ACTIVE */

.top-navigation a.active {
    background: #e00000 !important;
    color: #ffffff !important;
}


/* =========================================================
   DARK MODE
========================================================= */

html.dark-mode .page-header,
body.dark-mode .page-header {
    background: #071a35 !important;
    border-bottom-color: #263752 !important;
}

html.dark-mode .top-header,
body.dark-mode .top-header {
    background: transparent !important;
}

html.dark-mode .top-navigation a,
body.dark-mode .top-navigation a {
    color: #ffffff !important;
}

html.dark-mode .top-navigation a:hover,
body.dark-mode .top-navigation a:hover,
html.dark-mode .top-navigation a.active,
body.dark-mode .top-navigation a.active {
    background: #e00000 !important;
    color: #ffffff !important;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    .page-header {
        width: 100%;
    }

    .top-header {
        width: 100%;
        min-height: 55px;

        padding: 6px 10px;

        gap: 8px;
    }


    /* LOGO */

    .top-header .logo img {
        max-width: 125px;
        height: 40px;
    }


    /* NAV */

    .top-navigation {
        gap: 2px;

        margin-left: auto;

        flex-shrink: 0;
    }


    .top-navigation a {
        padding: 7px 6px;

        font-size: 9px;

        border-radius: 4px;

        white-space: nowrap;
    }

}


/* =========================================================
   SMALL PHONES
========================================================= */

@media (max-width: 480px) {

    .top-header {
        min-height: 50px;
        padding: 5px 8px;
    }


    .top-header .logo img {
        max-width: 100px;
        height: 34px;
    }


    .top-navigation {
        gap: 1px;
    }


    .top-navigation a {
        padding: 6px 4px;

        font-size: 8px;
    }

}


/* =========================================================
   VERY SMALL PHONES
========================================================= */

@media (max-width: 360px) {

    .top-header {
        padding-left: 6px;
        padding-right: 6px;
    }


    .top-header .logo img {
        max-width: 85px;
        height: 30px;
    }


    .top-navigation a {
        padding: 5px 3px;

        font-size: 7px;
    }

}

/* =========================================================
   DESKTOP CATEGORY FILTER
========================================================= */

.latest-filters {
    display: flex;
    align-items: center;

    width: 100%;

    gap: 0;

    padding: 0;
    margin: 0;

    background: transparent;

    overflow-x: auto;

    scrollbar-width: none;
}

.latest-filters::-webkit-scrollbar {
    display: none;
}

.latest-filter {
    appearance: none;
    -webkit-appearance: none;

    border: none !important;
    outline: none !important;

    background: transparent !important;
    color: #222 !important;

    padding: 12px 16px;

    border-radius: 0 !important;

    font-family: "Poppins", sans-serif;
    font-size: 23px;
    font-weight: 600;

    cursor: pointer;

    white-space: nowrap;

    transition:
        background .2s ease,
        color .2s ease;
}

.latest-filter.active,
.latest-filter:hover {
    background: #e00000 !important;
    color: #fff !important;
}


/* =========================================================
   NEWS GRID
========================================================= */

.latest-news-grid {
    display: grid !important;

    width: 100% !important;

    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;


    gap: 20px !important;

    margin: 0 !important;

    padding-left: 18px !important;
    padding-right: 18px !important;

    box-sizing: border-box !important;
}


/* =========================================================
   NEWS CARD
========================================================= */

.latest-news-card {
    display: block !important;

    width: 100% !important;
    max-width: 430px !important;
    min-width: 0 !important;

    margin: 0 auto !important;
    padding: 0 !important;

    border-radius: 7px !important;

    box-sizing: border-box !important;

    transform: none !important;
    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.latest-news-card:hover {
    transform: translateY(-3px);

    text-decoration: none;

    box-shadow:
        0 7px 20px rgba(0, 0, 0, .12);
}


/* =========================================================
   IMAGE
========================================================= */

.latest-news-image {
    position: relative;

    width: 100%;

    aspect-ratio: 16 / 9;

    overflow: hidden;

    background: #e5e7eb;
}

.latest-news-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform .3s ease;
}

.latest-news-card:hover
.latest-news-image img {
    transform: scale(1.03);
}


/* =========================================================
   CONTENT
========================================================= */

.latest-news-content {
    padding: 12px;
}

.latest-news-category {
    display: block;

    margin-bottom: 5px;

    color: #e00000;

    font-size: 10px;
    font-weight: 600;

    line-height: 1.2;
}

/* =====================================================
   TITLE
===================================================== */

.latest-news-content h3 {
    display: -webkit-box !important;

    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;

    overflow: hidden !important;

    margin: 0 0 5px 0 !important;
    padding: 0 !important;

    font-size: 14px !important;
    line-height: 1.35 !important;
    font-weight: 600 !important;
}


/* =====================================================
   EXCERPT / SCRIPT
===================================================== */

.latest-news-excerpt {
    display: -webkit-box !important;

    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 3 !important;

    overflow: hidden !important;

    margin: 0 0 6px 0 !important;

    font-size: 10px !important;
    line-height: 1.5 !important;
}

.latest-news-meta {
    display: flex;

    align-items: center;

    gap: 6px;

    font-size: 10px;

    opacity: .65;
}




/* =========================================================
   LOADING / EMPTY
========================================================= */

.news-loading,
.no-news {
    grid-column: 1 / -1;

    padding: 40px 20px;

    text-align: center;

    opacity: .7;
}

.news-loading i,
.no-news i {
    display: block;

    font-size: 28px;

    margin-bottom: 10px;
}

.news-loading p,
.no-news p {
    margin: 0;

    font-size: 13px;
}


/* =========================================================
   DARK MODE
========================================================= */

/* DARK FOCUS */

html.dark-mode body.dark-mode
.latest-news-page
.latest-filters
.latest-filter.active:focus,
html.dark-mode body.dark-mode
.latest-news-page
.latest-filters
.latest-filter.active:focus-visible {
    background: #e00000 !important;
    background-color: #e00000 !important;
    color: #ffffff !important;
    outline: 0 !important;
}

/* DARK INACTIVE */

html.dark-mode body.dark-mode
.latest-news-page
.latest-filters
.latest-filter:not(.active) {
    background: transparent !important;
    background-color: transparent !important;
    color: #ffffff !important;
}


/* =========================================================
   MOBILE
   768px AND BELOW
========================================================= */

@media (max-width: 768px) {

    /* =====================================================
       PAGE
    ===================================================== */

    .latest-news-page {
        padding: 10px 0 25px;

        width: 100%;

        box-sizing: border-box;
    }

    .latest-news-page-title {
        margin-bottom: 10px;
    }

    .latest-news-page-title h1 {
        font-size: 18px;
    }


    /* =====================================================
       CATEGORY BAR
    ===================================================== */

    .latest-category-bar {
        position: relative;

        width: auto;

        margin-bottom: 14px;

        z-index: 5000;
    }


    /* =====================================================
       CATEGORY TOGGLE
    ===================================================== */

    .latest-category-toggle {
        display: flex !important;

        width: 100%;

        min-height: 36px;

        align-items: center;
        justify-content: space-between;

        padding: 8px 11px;

        box-sizing: border-box;

        border: 1px solid #334155;
        border-radius: 6px;

        background: #17253d;
        color: #fff;

        font-family: "Poppins", sans-serif;

        font-size: 12px;
        font-weight: 600;

        cursor: pointer;
    }

    .latest-category-toggle > span {
        display: flex;

        align-items: center;

        gap: 8px;
    }


    /* =====================================================
       CATEGORY DROPDOWN
    ===================================================== */

    .latest-filters {
        display: none !important;

        position: absolute;

        top: calc(100% + 4px);
        left: 0;

        width: 100%;

        flex-direction: column !important;

        align-items: stretch !important;

        gap: 0 !important;

        padding: 4px 0 !important;
        margin: 0 !important;

        background: #001136 !important;

        border-radius: 6px;

        overflow: hidden;

        box-shadow:
            0 8px 24px rgba(0, 0, 0, .25);

        z-index: 99999;

        box-sizing: border-box;
    }

    .latest-category-bar.open .latest-filters {
        display: flex !important;
    }


    /* =====================================================
       MOBILE FILTER BUTTON
    ===================================================== */

    .latest-filter {
        display: block !important;

        width: 100% !important;

        flex: none !important;

        padding: 9px 11px !important;

        margin: 0 !important;

        border: none !important;
        border-radius: 0 !important;

        background: transparent !important;

        color: white !important;

        text-align: left !important;

        font-family: "Poppins", sans-serif;

        font-size: 9px !important;

        font-weight: 500;

        line-height: 1.2;

        cursor: pointer;

        white-space: nowrap;

        box-sizing: border-box;
    }

    .latest-filter.active,
    .latest-filter:hover {
        background: #e00000 !important;

        color: #fff !important;
    }

    .container{
    width: auto;
}



    /* =====================================================
       MOBILE DARK MODE CATEGORY
    ===================================================== */


    /* =====================================================
       NEWS GRID
    ===================================================== */

    .latest-news-grid {
        display: grid !important;

        grid-template-columns: 1fr !important;

        gap: 12px !important;

        width: 100% !important;

        margin: 0 !important;

        padding: 0 12px !important;

        box-sizing: border-box !important;
    }


    /* =====================================================
       NEWS CARD
    ===================================================== */

    .latest-news-card {
        display: block !important;

        width: 100% !important;

        min-width: 0 !important;

        max-width: 520px !important;

        margin: 0 auto !important;

        border-radius: 7px !important;

        overflow: hidden !important;

        box-sizing: border-box !important;

        transform: none !important;
    }

    .latest-news-card:hover {
        transform: none !important;
    }


    /* =====================================================
       IMAGE
    ===================================================== */

    .latest-news-image {
        position: relative !important;

        display: block !important;

        width: 100% !important;

        height: auto !important;

        aspect-ratio: 16 / 9 !important;

        overflow: hidden !important;

        box-sizing: border-box !important;
    }

    .latest-news-image img {
        display: block !important;

        width: 100% !important;

        height: 100% !important;

        object-fit: cover !important;
    }


    /* =====================================================
       CONTENT
    ===================================================== */

    .latest-news-content {
        display: block !important;

        padding: 8px !important;

        box-sizing: border-box !important;
    }


    /* =====================================================
       NEWS CATEGORY
    ===================================================== */

    .latest-news-category {
        display: block !important;

        margin: 0 0 3px 0 !important;

        padding: 0 !important;

        font-size: 7px !important;

        line-height: 1.2 !important;

        font-weight: 600 !important;
    }


    /* =====================================================
       TITLE
    ===================================================== */

    .latest-news-content h3 {
        display: -webkit-box !important;

        -webkit-box-orient: vertical !important;

        -webkit-line-clamp: 2 !important;

        overflow: hidden !important;

        margin: 0 0 5px 0 !important;

        padding: 0 !important;

        font-size: 11px !important;

        line-height: 1.3 !important;

        font-weight: 600 !important;
    }


    /* =====================================================
       EXCERPT
    ===================================================== */

    .latest-news-excerpt {
        display: -webkit-box !important;

        -webkit-box-orient: vertical !important;

        -webkit-line-clamp: 2 !important;

        overflow: hidden !important;

        margin: 0 0 5px 0 !important;

        font-size: 8px !important;

        line-height: 1.4 !important;
    }


    /* =====================================================
       META
    ===================================================== */

    .latest-news-meta {
        display: flex !important;

        align-items: center !important;

        gap: 4px !important;

        margin-top: 3px !important;

        font-size: 7px !important;

        line-height: 1.2 !important;
    }


    /* =====================================================
       SITE HAMBURGER
    ===================================================== */

    #navbar .nav {
        position: relative;

        display: flex;

        align-items: center;

        justify-content: flex-end;

        min-height: 48px;
    }

    #navbar .menu-toggle {
        display: flex !important;

        align-items: center;

        justify-content: center;

        width: 36px;

        height: 36px;

        margin-left: auto;

        padding: 0;

        border: 0;

        background: transparent;

        color: inherit;

        cursor: pointer;

        font-size: 20px;

        line-height: 1;

        z-index: 10002;
    }


    /* =====================================================
       MOBILE NAVIGATION
    ===================================================== */

    #navbar .nav-links {
        display: none !important;

        position: absolute;

        top: calc(100% + 4px);

        right: 8px;

        width: 200px;

        flex-direction: column !important;

        align-items: stretch !important;

        gap: 0 !important;

        padding: 5px 0 !important;

        margin: 0 !important;

        z-index: 10001;

        border-radius: 7px;

        overflow: hidden;

        box-shadow:
            0 8px 24px rgba(0, 0, 0, .18);

        box-sizing: border-box;
    }

    #navbar .nav-links.mobile-open {
        display: flex !important;
    }


    /* =====================================================
       NAV ITEMS
    ===================================================== */

    #navbar .nav-links li {
        display: block !important;

        width: 100% !important;

        margin: 0 !important;

        padding: 0 !important;
    }

    #navbar .nav-links li a {
        display: block !important;

        width: 100% !important;

        padding: 9px 12px !important;

        font-size: 11px !important;

        line-height: 1.2 !important;

        text-decoration: none !important;

        box-sizing: border-box !important;
    }


    /* =====================================================
       MOBILE LOGIN
    ===================================================== */

    #navbar .mobile-auth-menu {
        display: block !important;

        width: 100% !important;

        margin: 0 !important;

        padding: 0 !important;
    }

    #navbar .mobile-auth-menu a {
        display: flex !important;

        align-items: center;

        gap: 7px;

        width: 100% !important;

        padding: 9px 12px !important;

        font-size: 11px !important;

        text-decoration: none !important;

        box-sizing: border-box !important;
    }


    /* =====================================================
       LIGHT MODE NAV
    ===================================================== */

    html:not(.dark-mode) #navbar .nav-links,
    body:not(.dark-mode) #navbar .nav-links {
        background: #fff !important;
    }

    html:not(.dark-mode) #navbar .nav-links li a,
    body:not(.dark-mode) #navbar .nav-links li a {
        color: #111827 !important;
    }

    html:not(.dark-mode) #navbar .mobile-auth-menu a {
        color: #111827 !important;
    }


    /* =====================================================
       DARK MODE NAV
    ===================================================== */

    html.dark-mode #navbar .nav-links,
    body.dark-mode #navbar .nav-links {
        background: #111827 !important;
    }

    html.dark-mode #navbar .nav-links li a,
    body.dark-mode #navbar .nav-links li a {
        color: #fff !important;
    }

    html.dark-mode #navbar .mobile-auth-menu a {
        color: #fff !important;
    }

}


/* =========================================================
   VERY SMALL PHONES
   480px AND BELOW
========================================================= */

@media (max-width: 480px) {

    .latest-news-page {
        padding: 8px 0 20px;
    }

    .latest-news-page-title {
        margin-bottom: 8px;
    }

    .latest-news-page-title h1 {
        font-size: 16px;
    }


    /* =====================================================
       GRID
    ===================================================== */

   .latest-news-grid {
    width: 100% !important;

    grid-template-columns: minmax(0, 1fr) !important;

    gap: 5px !important;

    padding-left: 14px !important;
    padding-right: 14px !important;
}

.latest-news-card {
    width: 100% !important;

    max-width: 380px !important;
}


    /* =====================================================
       IMAGE
    ===================================================== */

    .latest-news-image {
        aspect-ratio: 16 / 9 !important;
    }


    /* =====================================================
       CONTENT
    ===================================================== */

    .latest-news-content {
        padding: 7px !important;
    }

    .latest-news-category {
        font-size: 6px !important;

        margin-bottom: 3px !important;
    }

    /* =====================================================
   TITLE
===================================================== */

.latest-news-content h3 {
    display: -webkit-box !important;

    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;

    overflow: hidden !important;

    margin: 0 0 5px 0 !important;
    padding: 0 !important;

    font-size: 14px !important;
    line-height: 1.35 !important;
    font-weight: 600 !important;
}


/* =====================================================
   EXCERPT / SCRIPT
===================================================== */

.latest-news-excerpt {
    display: -webkit-box !important;

    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 3 !important;

    overflow: hidden !important;

    margin: 0 0 6px 0 !important;

    font-size: 10px !important;
    line-height: 1.5 !important;
}

    .latest-news-meta {
        font-size: 6px !important;

        gap: 4px !important;
    }


    /* =====================================================
       CATEGORY BUTTON
    ===================================================== */

    .latest-category-toggle {
        min-height: 34px !important;

        padding: 7px 10px !important;

        font-size: 9px !important;
    }

    .latest-filter {
        padding: 8px 10px !important;

        font-size: 9px !important;
    }


    /* =====================================================
       HAMBURGER
    ===================================================== */

    #navbar .nav-links {
        width: 185px;
    }

    #navbar .nav-links li a {
        padding: 8px 10px !important;

        font-size: 10px !important;
    }

    #navbar .mobile-auth-menu a {
        padding: 8px 10px !important;

        font-size: 10px !important;
    }

    #navbar .menu-toggle {
        width: 32px;

        height: 32px;

        font-size: 17px;
    }

}

/* =========================================================
   REMOVE UNDERLINE FROM LATEST NEWS
========================================================= */

.latest-news-card,
.latest-news-card:link,
.latest-news-card:visited,
.latest-news-card:hover,
.latest-news-card:active {
    text-decoration: none !important;
}

.latest-news-card *,
.latest-news-card *:link,
.latest-news-card *:visited,
.latest-news-card *:hover,
.latest-news-card *:active {
    text-decoration: none !important;
}



/* =========================================
   TOP HEADER — SAME COLOR IN ALL MODES
========================================= */

.container.top-header {
    background: #081a3b !important;
    color: #ffffff !important;
}

/* Light Mode */
body.light-mode .container.top-header {
    background: #081a3b !important;
    color: #ffffff !important;
}

/* Dark Mode */
body.dark-mode .container.top-header {
    background: #081a3b !important;
    color: #ffffff !important;
}

/* Navigation text */
.container.top-header .top-navigation a,
body.light-mode .container.top-header .top-navigation a,
body.dark-mode .container.top-header .top-navigation a {
    color: #ffffff !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Logo/header area */
.container.top-header .logo {
    background: transparent !important;
}
