/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Lato', sans-serif;

}

body {
    background: #FFFFFF;
    color: #222;
}

/* CONTAINER (GLOBAL FIX) */
.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 10px;
}

/* ================= BREAKING NEWS ================= */

.breaking-news {
    max-width: 1200px;
    margin: auto;
    background-color: #dd221b;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.breaking-label {
    background-color: #b11914;
    color: #fff;
    padding: 6px 20px;
    font-size: 14px;
    white-space: nowrap;

    font-family: Lato;
    font-weight: 700;
    font-style: Bold;
    font-size: 14px;
    line-height: 100%;
    letter-spacing: 0%;

}

.breaking-content {
    flex: 1;
    overflow: hidden;
}

.breaking-scroll {
    display: flex;
    gap: 50px;
    animation: scroll 25s linear infinite;
}

.breaking-item {
    color: #fff;
    font-size: 14px;
    white-space: nowrap;

    font-family: Lato;
    font-weight: 700;
    font-style: Bold;
    line-height: 100%;
    letter-spacing: 0%;

}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ================= NAVBAR ================= */

/* .navbar {
    background: #F5F5F5;
    border-bottom: 1px solid #ddd;
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 10px;
}

.content-nav-inner {
    display: flex;
    gap: 15px;
    font-family: Lato;
    font-weight: 700;
    font-style: Bold;
    font-size: 12px;
    line-height: 100%;
    letter-spacing: 0%;

}

.content-nav-inner a {
    cursor: pointer;
    color: #333;
} */

/* .content-nav-inner .active { */
/* color: red; */
/* 
    border-bottom: 2px solid red;
    font-weight: bold;
}

.nav-right {
    font-family: Lato;
    font-weight: 500;
    font-style: Medium;
    font-size: 14px;
    background-color: #FFFFFF;

    line-height: 100%;
    letter-spacing: 0%;

    display: flex;
    align-items: center;
    gap: 10px;
} */

.navbar {
    background: #F5F5F5;
    border-bottom: 1px solid #ddd;
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Move vertical padding from here... */
    padding: 0 10px;
}

.content-nav-inner {
    display: flex;
    gap: 20px;
    /* Increased gap for better spacing */
    font-family: Lato;
    font-weight: 700;
    font-size: 12px;
}

.content-nav-inner a {
    cursor: pointer;
    color: #333;
    text-decoration: none;
    position: relative;
    /* ...to here. This makes the link area fill the navbar height */
    padding: 20px 0;
    display: inline-block;
}

/* The red line logic */
.content-nav-inner .active {
    color: #333;
}

.content-nav-inner .active::after {
    content: "";
    position: absolute;
    bottom: -1px;
    /* Sits exactly on the 1px navbar border */
    left: 0;
    right: 0;
    height: 4px;
    /* Thickness of the red line */
    background: #DD221B;
    /* Your red color */
}

.nav-right {
    font-family: Lato;
    font-weight: 500;
    font-size: 14px;
    background-color: #FFFFFF;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 10px;
    border-radius: 4px;
}

/* ================= MAIN GRID ================= */

.main-grid {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

/* ================= TOP STORY ================= */

.top-story {
    display: flex;
    gap: 20px;
    background: #fff;
    padding: 10px;
}

.top-story img {
    width: 50%;
    height: 260px;
    object-fit: cover;
}

/* ================= TAGS ================= */

.tag {
    font-size: 11px;
    padding: 5px 8px;
    display: inline-block;
    /* margin-bottom: 5px; */
}


.red {
    background: red;
    color: white;
}

.category {
    display: block;
    color: red;
    font-family: Lato;
    font-weight: 900;
    font-style: Black;
    font-size: 12px;
    line-height: 100%;
    letter-spacing: 0%;
    padding-top: 4px;

}

/* ================= ADS ================= */

.ad {
    background: #e0e0e0;
    text-align: center;
    padding: 40px;
    margin: 20px 0;
    color: #666;
    font-weight: bold;
    width: 100%;
}

.horizontal {
    height: 90px;
}

.vertical {
    height: 250px;
}

/* ================= LATEST ================= */

.latest-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid red;

}




.count {
    font-size: 12px;
    color: #666;
}

/* ================= NEWS LIST ================= */

.news-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #ddd;
}

.news-item img {
    object-fit: cover;
    width: 318px;
    height: 171px;


}

/* ================= SIDEBAR ================= */

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.trending,
.insights {
    background: #F5F5F5;
    /* padding: 15px; */
}

.trending-topic-header {
    background-color: #00162F;
    padding-top: 5px;
    padding-bottom: 5px;
    color: #eee;
    /* width: 250px; */
    height: 46px;
    margin-bottom: 5px;

}

.trending-topic-header h3 {
    padding: 10px;
    font-family: Lato;
    font-weight: 500;
    font-style: Medium;
    font-size: 12px;
    line-height: 100%;
    letter-spacing: 0%;


}

/* .insight-header {
    color: white;
    padding: 10px;
    background-color: #00162F;
    display: flex;
    height: 46px;
    gap: 85px;
    padding-bottom: 5px;
}

.insight-header h3 {
    padding-top: 5px;
    font-family: Lato;
    font-weight: 500;
    font-style: Medium;
    font-size: 12px;
    line-height: 100%;
    letter-spacing: 0%;

}

.insight-header a {
    padding-top: 5px;
    padding-left: 0px;
    margin-left: 0px;
    font-family: Lato;
    font-weight: 500;
    font-style: Medium;
    font-size: 12px;
    line-height: 100%;
    letter-spacing: 0%;
    text-align: end;

} */

.insight-header {
    background-color: #00162F;
    color: white;

    display: flex;
    align-items: center;
    justify-content: space-between;

    height: 46px;
    padding: 0 12px;
}

.insight-header h3 {
    font-family: Lato;
    font-weight: 500;
    font-size: 12px;
    line-height: 100%;
}

.insight-header a {
    color: red;
    text-decoration: none;

    font-family: Lato;
    font-weight: 500;
    font-size: 12px;
    line-height: 100%;
}

.insights li {
    font-family: Lato;
    font-weight: 700;
    font-style: Bold;
    font-size: 14px;
    line-height: 100%;
    letter-spacing: 0%;
    padding: 10px;
    border-bottom: 1px solid rgb(206, 201, 201);

}

.insights ul {
    padding-left: 30px;
    line-height: 1.7;

}



.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 5px;
    width: 250px;
    background-color: #F5F5F5;
    padding: 10px;
}

/* .tags span {
    background: white;
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 20px;
    border: 0.25px solid #7F919B;


} */

.tags span {
    background: white;
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 20px;
    border: 1px solid rgba(127, 145, 155, 0.25);
}

/* ================= SUB SECTIONS ================= */

/* .sub-sections {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 10px;
}

.section-header,
.more-header {
    max-width: 1200px;
    margin: 0 auto 15px;
    padding-top: 5px;
    border-bottom: 1px solid #DD221B;


}


.sub-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}


.sub-card {
    background: #fff;
    padding: 10px;
    width: 350px;
}

.sub-card img {

    object-fit: cover;

    width: 350px;
    height: 276px;
    angle: 0 deg;
    opacity: 1;
    top: 1598px;
    left: 20px;

} */
/* SECTION */
/* .sub-sections {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0;
} */

/* SUB SECTION AREA */
.sub-sections {
    width: 100%;
    max-width: 850px;
    /* SAME WIDTH AS LEFT CONTENT */
    margin: 30px auto 30px 0;
    padding: 0;
}

/* ALIGN WITH MAIN CONTENT */
.sub-sections {
    margin-left: calc((100% - 1200px) / 2 + 10px);

}

.sub-grid,
.more-grid {
    gap: 15px;
}

.sub-card,
.more-item {
    width: 100%;
    margin-bottom: 15px;

}

/* HEADER */
.section-header,
.more-header {
    margin-bottom: 15px;
    padding-top: 5px;
    border-bottom: 1px solid #DD221B;
}

/* GRID */
.sub-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);

    /* REMOVE BIG GAP */
    gap: 10px;
}

/* CARD */
.sub-card {
    background: #fff;
    padding: 0;
    width: 100%;
}

/* IMAGE */
.sub-card img {
    width: 100%;
    height: 276px;
    object-fit: cover;
    display: block;
}

/* CONTENT SPACING */
.sub-card .category,
.sub-card h4,
.sub-card p {
    padding-left: 10px;
    padding-right: 10px;
}

.sub-card .category {
    display: inline-block;
    margin-top: 10px;
}

/* ================= MORE STORIES ================= */

.more-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.more-item {
    display: flex;
    gap: 10px;
    align-items: center;
}

.more-item img {
    width: 166px;
    height: 90px;
    object-fit: cover;


}

/* BUTTON */

.load-more {
    grid-column: 1 / -1;
    text-align: center;
    margin: 20px 0;
}

.load-more button {
    padding: 10px 20px;
    border: 1px solid #aaa;
    background: #f5f5f5;
    cursor: pointer;
}

.load-more button:hover {
    background: black;
    color: white;
}

/* ================= TYPOGRAPHY ================= */

.goa-news-tag {
    font-family: Oswald;
    font-weight: 500;
    font-style: Medium;
    font-size: 20px;
    line-height: 100%;
    letter-spacing: 0%;
    padding-top: 5px;

}

.gosnews-content {
    padding-top: 5px;
    font-family: Lato;
    font-weight: 500;
    font-style: Medium;
    font-size: 14px;
    line-height: 22px;
    letter-spacing: 0%;

}

.goanews-mid-tag {
    font-size: 16px;
    font-weight: 700;
}

/* ================= MOBILE ================= */

@media (max-width: 768px) {

    .breaking-news {
        flex-direction: column;
    }

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

    .main-grid {
        grid-template-columns: 1fr;
    }

    .top-story {
        flex-direction: column;
    }

    .top-story img {
        width: 100%;
        height: 200px;
    }

    .sub-grid {
        grid-template-columns: 1fr;
    }

    .more-grid {
        grid-template-columns: 1fr;
    }

    .nav-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .content-nav-inner {
        flex-wrap: wrap;
    }
}

.tag red {
    font-family: Lato;
    font-weight: 900;
    font-style: Black;
    font-size: 12px;
    line-height: 100%;
    letter-spacing: 0%;


}

/* --- Desktop: Hide Mobile Nav --- */
.mobile-bottom-nav {
    display: none;
}

/* ============================================================
   FINAL MOBILE RESPONSIVE OVERRIDES 
   ============================================================ */
@media (max-width: 768px) {

    /* 1. RESET DESKTOP MARGINS & WIDTHS */
    /* Resets the calc margins and fixed 1200px widths */
    .container,
    .breaking-news,
    .navbar,
    .sub-sections,
    .main-grid {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* 2. TOP STORY RESPONSIVE */
    .top-story {
        flex-direction: column !important;
        padding: 0 !important;
    }

    .top-story img {
        width: 100% !important;
        height: auto !important;
    }

    /* 3. NEWS LIST & ITEMS RESPONSIVE */
    .news-item {
        flex-direction: column !important;
    }

    .news-item img {
        width: 100% !important;
        height: auto !important;
    }

    /* 4. SUB SECTIONS & GRIDS STACKING */
    .main-grid,
    .sub-grid,
    .more-grid {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .sub-card img {
        height: auto !important;
    }

    .more-item {
        flex-direction: row !important;
        /* Keep small horizontal list items */
        align-items: flex-start !important;
    }

    .more-item img {
        width: 100px !important;
        height: 70px !important;
    }

    /* 5. HIDE SIDEBAR & HORIZONTAL NAV ON MOBILE */
    .sidebar,
    .nav-right {
        display: none !important;
    }

    /* Make the horizontal categories scrollable on mobile instead of wrapping */
    .content-nav-inner {
        overflow-x: auto !important;
        white-space: nowrap !important;
        padding-bottom: 10px !important;
    }

    /* 6. FIXED BOTTOM NAVIGATION */
    @media (max-width: 992px) {
        .mobile-bottom-nav {
            display: flex !important;
            position: fixed !important;
            bottom: 0 !important;
            left: 0 !important;
            width: 100% !important;
            height: 70px !important;
            background-color: #f8f8f8 !important;
            border-top: 1px solid #ddd !important;
            justify-content: space-around !important;
            align-items: center !important;
            /* Lower this slightly so the Sidebar can slide OVER it */
            z-index: 9999 !important;
            padding-bottom: env(safe-area-inset-bottom) !important;
        }

        /* Renamed to bottom-nav-link to stop the header conflict */
        .bottom-nav-link {
            display: flex !important;
            flex-direction: column !important;
            align-items: center !important;
            justify-content: center !important;
            flex: 1 !important;
            text-decoration: none !important;
            color: #666 !important;
        }

        .bottom-nav-link img {
            width: 24px !important;
            height: 24px !important;
            margin-bottom: 4px !important;
        }

        .bottom-nav-link span {
            font-size: 10px !important;
            font-weight: 700 !important;
            text-transform: uppercase !important;
            color: #666 !important;
        }

        .bottom-nav-link.active {
            color: #DD221B !important;
        }

        .bottom-nav-link.active span {
            color: #DD221B !important;
        }

        .bottom-nav-link.active img {
            filter: invert(21%) sepia(91%) saturate(3506%) hue-rotate(349deg) brightness(89%) contrast(98%);
        }

        body {
            padding-bottom: 80px !important;
        }
    }

    /* ============================================================
   FINAL MOBILE RESPONSIVE OVERRIDES 
   ============================================================ */
    @media (max-width: 768px) {

        /* 1. BREAKING NEWS - KEEP LAYOUT HORIZONTAL (DON'T CHANGE) */
        .breaking-news {
            flex-direction: row !important;
            /* Prevents stacking */
            display: flex !important;
            align-items: center !important;
            height: 40px !important;
            /* Fixed height for clean look */
        }

        .breaking-label {
            width: auto !important;
            /* Resets from 100% width */
            padding: 0 15px !important;
            height: 100% !important;
            display: flex !important;
            align-items: center !important;
            font-size: 12px !important;
            flex-shrink: 0 !important;
            /* Prevents the label from squishing */
        }

        .breaking-content {
            flex: 1 !important;
        }

        /* 2. CATEGORY NAV - CONVERT TO HORIZONTAL SLIDER */
        .navbar {
            width: 100% !important;
            padding: 0 !important;
        }

        .nav-inner {
            display: block !important;
            padding: 10px 0 !important;
        }

        .content-nav-inner {
            display: flex !important;
            flex-wrap: nowrap !important;
            /* Prevents items from wrapping */
            overflow-x: auto !important;
            /* Enables scrolling */
            -webkit-overflow-scrolling: touch;
            /* Smooth scroll for iOS */
            gap: 20px !important;
            padding: 5px 15px 15px 15px !important;
            scrollbar-width: none;
            /* Hides scrollbar Firefox */
        }

        /* Hide scrollbar for Chrome/Safari */
        .content-nav-inner::-webkit-scrollbar {
            display: none;
        }

        .content-nav-inner a {
            flex: 0 0 auto !important;
            /* Stops text from shrinking */
            white-space: nowrap !important;
            /* Keeps text on one line */
            font-size: 13px !important;
            padding-bottom: 5px;
        }

        /* 3. HIDE DESKTOP SORT/DATE ON MOBILE */
        .nav-right {
            display: none !important;
        }

        /* 4. OTHER GRID FIXES */
        .container,
        .main-grid,
        .sub-sections {
            width: 100% !important;
            padding: 0 15px !important;
            margin-left: 0 !important;
        }

        .top-story {
            flex-direction: column !important;
        }

        .top-story img {
            width: 100% !important;
            height: auto !important;
        }

        .news-item {
            flex-direction: column !important;
        }

        .news-item img {
            width: 100% !important;
            height: auto !important;
        }

        /* 5. FIXED BOTTOM NAVIGATION */
        .mobile-bottom-nav {
            display: flex !important;
            position: fixed !important;
            bottom: 0 !important;
            width: 100% !important;
            height: 70px !important;
            background-color: #f8f8f8 !important;
            z-index: 10000 !important;
            justify-content: space-around !important;
        }

        body {
            padding-bottom: 80px !important;
            /* Space for bottom nav */
        }
    }

}