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

}



.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;
}

.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;
}

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

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

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

/* CENTER WRAPPER */
.wrapper {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

/* BREADCRUMB */
.breadcrumb {
    font-size: 13px;
    color: #777;
    margin-bottom: 15px;
    font-family: Lato;
    font-weight: 700;
    font-style: Bold;
    line-height: 100%;
    letter-spacing: 0%;

}

/* GRID */
.article-grid {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 25px;
    align-items: start;
}

/* TITLE */
.title {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 10px;
}

.subtitle {
    color: #666;
    margin-bottom: 15px;
}

/* META */
.meta {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    padding: 10px 0;
    font-size: 13px;


}


.actions {
    display: flex;
    gap: 2px;
    align-items: center;
    margin-right: 0px;
}

.actions button {
    border: none;
    padding: 5px 8px;
    /* background: black; */
    color: black;
    cursor: pointer;
}

.print-main {
    background-color: black;
    color: white;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;

    padding: 8px 12px;
    border: none;
    cursor: pointer;
}

.print-img {
    width: 16px;
    height: 16px;
    display: block;
}

/* HERO */
.hero-section {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.hero-section img {
    width: 50%;
    height: 220px;
    object-fit: cover;
}

.hero-text {
    font-size: 14px;
    color: #444;
}

/* BODY */
.article-body {
    margin-top: 15px;
    line-height: 1.6;
    font-size: 14px;
}

/* AD */
.ad {
    background: #ddd;
    text-align: center;
    padding: 40px;
    margin: 20px 0;
    color: #666;
    max-width: 850px;

}

.ad-bottom {
    background: #ddd;
    text-align: center;
    padding: 40px;
    margin: 20px 0 0;
    color: #666;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.article-main .ad-bottom {
    margin-top: 25px;
}

.goan-ad-slot {
    width: 100%;
    min-width: 300px;
    overflow: visible;
}

.goan-ad-slot--detail_centerone {
    width: 100%;
    max-width: 851px;
    margin: 0 auto;
    min-height: 90px;
}

.goan-ad-slot--detail_rightone {
    width: 300px;
    max-width: 100%;
    margin: 0 auto;
}

.goan-ad-slot .adsbygoogle {
    display: block !important;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

/* TAGS */
.tags {
    margin-top: 15px;
}

.tags span {
    background: #eee;
    padding: 6px 10px;
    margin-right: 5px;
    font-size: 12px;
    border-radius: 20px;
    border: 1px solid rgb(151, 149, 149);
}

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

.side-ad {
    height: 250px;
}

.side-section {
    background: rgb(255, 255, 255);
    padding: 10px;
}

.side-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    border-bottom: 1px solid #373737;
    padding-bottom: 5px;


}

.side-section-main {
    background-color: #00162F;
}

.side-header-main {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    padding: 10px;
    color: white;
    font-family: Lato;
    font-weight: 500;
    font-style: Medium;
    font-size: 12px;
    line-height: 100%;
    letter-spacing: 0%;


}

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

}

.side-header a {
    font-size: 11px;
    color: red;
}

.side-item {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: flex-start;
}

a.side-item {
    text-decoration: none;
    color: inherit;
}

.side-item-thumb {
    flex: 0 0 128px;
    width: 128px;
    height: 69px;
    overflow: hidden;
    background: #eee;
}

.side-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.side-item p {
    flex: 1;
    min-width: 0;
    font-size: 13px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .article-grid {
        grid-template-columns: 1fr;
    }

    .article-main .story-next-article,
    .keep-reading .keep-header {
        max-width: 100%;
    }

    .hero-section {
        flex-direction: column;
    }

    .hero-section img {
        width: 100%;
    }
}

/* WRAPPER */
.recommended-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 20px;
}

.recommended-wrapper .meta {
    width: 100%;
    max-width: 850px;
    /* same width as top content */
    /* margin-left: 0; */
    margin-left: 18px;
    margin-right: auto;
}

/* GRID */
.recommended-container {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 20px;
    margin-bottom: 8px;
    max-width: 1200px;
    align-items: start;
}

/* LEFT */
.recommended-left {
    background-color: #ddd;
    padding: 10px;
    width: 100%;
    max-width: 100%;
    margin: 0;
    box-sizing: border-box;
}

.article-recommended {
    margin-top: 25px;
}

.recommended-left h3 {
    margin-bottom: 15px;
    font-family: Lato;
    font-weight: 700;
    font-style: Bold;
    font-size: 18px;
    line-height: 100%;
    letter-spacing: 0%;


}

/* GRID INSIDE */
.recommended-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px 20px;
}

/* ITEM */
.rec-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
}

.rec-item-copy {
    flex: 1;
    min-width: 0;
}

.rec-story-title {
    font-family: Oswald, sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 1.2;
    margin: 0 0 6px;
}

.rec-story-strap {
    font-family: Lato, sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
}

.rec-item img {
    width: 200px;
    height: 100px;
    object-fit: cover;
}

.rec-item p {
    font-size: 14px;
    line-height: 1.4;
    font-weight: 500;
}

/* RIGHT */
.most-read {
    background: #f2f2f2;
    width: 270px;
}

.most-read-header {
    background: #0c2a45;
    color: white;
    font-size: 13px;
    padding: 10px;
    font-weight: 600;
}

.most-read ul {
    list-style: none;
}

.most-read li {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    font-size: 13px;
    position: relative;
    padding-left: 20px;
}

.most-read li::before {
    content: "•";
    position: absolute;
    left: 8px;
}

/* BOTTOM META */
.bottom-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
    padding-top: 10px;
    border-top: 1px solid #ddd;
    font-size: 13px;
}

.meta-left span {
    display: block;
    color: #777;
}

/* SHARE */
.meta-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.icons span {
    background: #eee;
    padding: 5px 7px;
    cursor: pointer;
}

.print-btn {
    background: black;
    color: white;
    border: none;
    padding: 6px 10px;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .recommended-container {
        padding-left: 15px;
        grid-template-columns: 1fr;
    }

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

/* SECTION WRAPPER */
.keep-reading {

    border-bottom: 1px solid #ddd;
    background: #f5f5f5;
    padding: 30px 0;
}

/* CENTER ALIGN */
/* .keep-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
} */
.keep-container {
    padding-bottom: 20px;
    border-top: none;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* HEADER */
.keep-header {
    text-align: center;
    margin-bottom: 25px;
    border-top: 4px solid #0c2a45;
    padding-top: 20px;
    max-width: calc((100% - 25px) * 3 / 4);
    margin-left: 0;
    margin-right: auto;
    box-sizing: border-box;
}

.keep-header h2 {
    padding-top: 20px;
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
}

.keep-header p {
    font-size: 13px;
    color: #777;
    margin-top: 5px;
}

/* GRID */
.keep-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* CARD */
a.keep-card {
    display: block;
    color: inherit;
    text-decoration: none;
}

.keep-card {
    background: #fff;
    padding-bottom: 10px;
}

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

/* CATEGORY */
.keep-card .category {
    display: block;
    color: red;
    font-size: 12px;
    font-weight: 600;
    margin: 8px 10px 5px;
    text-transform: uppercase;
}

/* TITLE */
.keep-card h4 {
    font-size: 15px;
    font-weight: 600;
    margin: 0 10px 5px;
    line-height: 1.4;
}

/* TEXT */
.keep-card p {
    font-size: 13px;
    color: #555;
    margin: 0 10px;
    line-height: 1.5;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .keep-grid {
        grid-template-columns: 1fr;
    }

    .keep-card img {
        height: 200px;
    }
}

.article-main {
    min-width: 0;
    width: 100%;
}

h1.main-tagline,
h2.main-tagline {
    font-family: Oswald;
    font-weight: 400;
    font-style: Medium;
    font-size: 28px;
    line-height: 1.2;
    letter-spacing: 0%;
    padding-bottom: 5px;
    margin: 0;
}



.main-content {
    font-family: Lato;
    font-weight: 500;
    font-style: Medium;
    font-size: 16px;
    line-height: 22px;
    letter-spacing: 0%;
}

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

.recomemnded-story-content {
    font-family: Oswald;
    font-weight: 500;
    font-style: Medium;
    font-size: 20px;
    line-height: 100%;
    letter-spacing: 0%;

}

.most-read-content {
    font-family: Lato;
    font-weight: 700;
    font-style: Bold;
    line-height: 100%;
    letter-spacing: 0%;

}

.keep-readin-tag {
    font-family: Lato;
    font-weight: 700;
    font-style: Bold;
    font-size: 16px;
    line-height: 22px;
    letter-spacing: 0%;

}

.keep-reading-content {
    font-family: Lato;
    font-weight: 500;
    font-style: Medium;
    font-size: 14px;
    line-height: 100%;
    letter-spacing: 0%;
}

/* NEXT SECTION ARTICLE (flows in left column after ad) */
.article-main .story-next-article {
    border-top: 3px solid #0c2a45;
    padding-top: 30px;
    margin-top: 30px;
    box-sizing: border-box;
}

.story-next-title {
    font-family: Oswald, sans-serif;
    font-weight: 400;
    font-size: 28px;
    line-height: 1.15;
    margin-bottom: 10px;
}

.story-next-subtitle {
    font-family: Lato, sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 28px;
    color: #666;
    margin-bottom: 15px;
}

.story-next-author {
    display: block;
    font-family: Lato, sans-serif;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.3;
    color: #222;
}

.story-next-date {
    font-family: Lato, sans-serif;
    font-weight: 400;
    font-size: 13px;
    color: #777;
    margin-top: 4px;
}

.story-next-article .hero-text {
    font-family: Lato, sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 22px;
    color: #444;
}

.story-next-title-link {
    color: inherit;
    text-decoration: none;
}

.story-next-title-link:hover {
    color: #dd221b;
}

/* READ MORE (next section article) */
.story-next-article .story-read-more-wrap {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 22px;
}

.story-read-more {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 11px 22px 11px 24px;
    background: #fff;
    border: 2px solid #0c2a45;
    color: #0c2a45;
    font-family: Oswald, sans-serif;
    font-weight: 500;
    font-size: 15px;
    line-height: 1;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.story-read-more:hover {
    background: #dd221b;
    border-color: #dd221b;
    color: #fff;
    text-decoration: none;
    transform: translateX(3px);
}

.story-read-more-label {
    font-family: Oswald, sans-serif;
}

.story-read-more-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #dd221b;
    color: #fff;
    font-size: 12px;
    flex-shrink: 0;
    transition: background 0.2s ease, color 0.2s ease;
}

.story-read-more:hover .story-read-more-arrow {
    background: #fff;
    color: #dd221b;
}

.load-more {
    max-width: 820px;
    /* same as article content width */

    margin-top: 20px;
    margin-bottom: 10px;

    text-align: center;
}

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

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


/* --- RESPONSIVE ADJUSTMENTS --- */

@media (max-width: 1024px) {

    .wrapper,
    .recommended-wrapper {
        padding: 15px;
    }

    .keep-container {
        margin-left: 0;
        /* Reset that large margin */
        max-width: 100%;
    }
}

@media (max-width: 768px) {

    /* Layout */
    .article-grid,
    .recommended-container {
        grid-template-columns: 1fr;
        /* Stack Sidebar & Most Read below content */
        display: flex;
        flex-direction: column;
    }

    /* Typography */
    h1.main-tagline,
    h2.main-tagline {
        font-size: 24px;
        line-height: 1.2;
    }

    /* Meta & Buttons */
    .meta {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .actions {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 8px;
    }

    .actions span {
        width: 100%;
        /* Force "SHARE ON" to its own line or hide it */
        font-size: 11px;
        margin-bottom: 5px;
    }

    .actions button {
        flex: 1;
        /* Buttons grow to fill space */
        min-width: 45px;
        height: 40px;
        display: flex;
        justify-content: center;
        align-items: center;
        border: 1px solid #ddd;
        background: #fff;
    }

    .print-main {
        flex: 2 !important;
        /* Give Print button more room */
        font-size: 12px;
        background-color: #000 !important;
    }

    /* Hero Section (Image + Text) */
    .hero-section {
        flex-direction: column;
    }

    .hero-section img {
        width: 100%;
        height: auto;
    }

    /* Recommended Grid */
    .recommended-grid {
        grid-template-columns: 1fr;
    }

    .rec-item img {
        width: 120px;
        height: 80px;
    }

    .recomemnded-story-content {
        font-size: 16px;
    }

    /* Sidebar and Ads */
    .sidebar {
        margin-top: 30px;
    }

    .ad {
        width: 100%;
        padding: 20px;
    }

    /* Keep Reading Grid */
    .keep-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    /* Breaking News */
    .breaking-label {
        padding: 6px 10px;
        font-size: 12px;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    h1.main-tagline,
    h2.main-tagline {
        font-size: 22px;
    }

    .rec-item {
        flex-direction: column;
    }

    .rec-item img {
        width: 100%;
        height: 200px;
    }

    .actions button {
        padding: 5px;
    }
}

.mobile-bottom-nav {
    display: none;
}

@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;
    }
}

/* Mobile Fix for Recommended Section */
@media (max-width: 768px) {

    .recommended-left,
    .recommended-wrapper .meta,
    .most-read,
    .ad-bottom {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .recommended-grid {
        grid-template-columns: 1fr !important;
        /* Stacks stories 1 per row */
        gap: 20px;
    }

    .rec-item {
        flex-direction: column;
        /* Image on top, text below */
    }

    .rec-item img {
        width: 100% !important;
        height: 200px !important;
    }

    .recommended-container {
        display: flex;
        flex-direction: column;
        padding: 0 15px;
    }
}

/* Laptop Fix for Keep Reading Section */
@media (min-width: 1024px) {
    .keep-container {
        margin-left: auto !important;
        /* Fixes the 350px shift */
        margin-right: auto !important;
        /* Centers the container */
        max-width: 1200px !important;
        /* Aligns with your main site width */
        padding: 0 20px;
    }

    .keep-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr) !important;
        /* 3 cards in a row */
        gap: 25px;
    }

    .keep-header {
        text-align: center;
    }
}

/* --- Main article: image left, story text wraps around on the right --- */
.article-main > .hero-section.article-lead {
    display: block;
    margin-top: 15px;
    overflow: auto;
}

.article-main > .hero-section.article-lead .hero-img-box {
    float: left;
    width: 50%;
    max-width: 50%;
    margin: 0 20px 15px 0;
}

.article-main > .hero-section.article-lead .hero-img-box img {
    width: 100%;
    height: auto;
    display: block;
}

.article-main > .hero-section.article-lead .hero-text {
    text-align: justify;
}

.article-main > .hero-section.article-lead .hero-text.story-content {
    margin-top: 0;
}

/* Next-article teaser: image left, excerpt right */
.story-next-article .hero-section {
    display: flex !important;
    flex-direction: row !important;
    gap: 20px;
    margin-top: 15px;
    align-items: flex-start;
}

.story-next-article .hero-section img {
    width: 50% !important;
    height: auto;
    flex-shrink: 0;
    object-fit: cover;
}

.story-next-article .hero-text {
    flex: 1;
    text-align: justify !important;
    min-width: 0;
}

.article-body.story-content {
    margin-top: 15px;
    line-height: 1.6;
    font-size: 14px;
    width: 100%;
    max-width: 100%;
    text-align: justify;
}

.article-body.story-content p,
.hero-text.story-content p,
.article-body.story-content div,
.hero-text.story-content div {
    font-family: Lato;
    font-weight: 500;
    font-size: 16px;
    line-height: 22px;
    margin: 0 0 1em;
    max-width: 100%;
    text-align: justify;
}

.article-body.story-content [style*="text-align"],
.hero-text.story-content [style*="text-align"] {
    text-align: justify !important;
}

.article-body.story-content img,
.hero-text.story-content img {
    max-width: 100%;
    height: auto;
}

/* --- Point 2 & 6: Caption Styling --- */
.photo-caption {
    display: block;
    font-size: 11px;
    line-height: 1.3;
    color: #666;
    margin-top: 5px;
    text-align: left;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    /* 2 lines max */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Mobile Fix */
@media (max-width: 768px) {
    .article-main > .hero-section.article-lead .hero-img-box {
        float: none;
        width: 100%;
        max-width: 100%;
        margin: 0 0 15px 0;
    }

    .story-next-article .hero-section {
        flex-direction: column !important;
    }

    .story-next-article .hero-section img {
        width: 100% !important;
    }
}