/* Dense newspaper-style homepage layout — modern palette */

/* Max-width container — breathing room on wide screens */
.news-wrapper {
    background-color: #faf8f3;
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 130px;
    padding-bottom: 48px;
}

/* ── Section dividers — dodgerblue banner matching nav containers ── */
.section-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 8px 14px;
    background: #1E90FF;
}

.section-divider span {
    font-family: Manrope, sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: white;
    white-space: nowrap;
}

.section-divider::before,
.section-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.35);
}

/* ── Two-column layout: featured article + sidebar ── */

.hp-layout {
    display: grid;
    grid-template-columns: 62% 38%;
    grid-template-rows: 460px auto;
    grid-template-areas:
        "main sidebar"
        "info sidebar";
    border-left: 1px solid #ddd8ce;
    border-right: 1px solid #ddd8ce;
    border-bottom: 1px solid #ddd8ce;
}

.hp-main {
    grid-area: main;
    border-right: 1px solid #ddd8ce;
    position: relative;
    display: flex;
    flex-direction: column;
}

.hp-info-area {
    grid-area: info;
    border-right: 1px solid #ddd8ce;
    border-top: 1px solid #ddd8ce;
}

/* Orange-to-red left accent strip on the featured column */
.hp-main::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #de8c35, #c54a2b);
    pointer-events: none;
}

/* Featured article — big top story */
.article-featured {
    display: block;
    padding: 24px 20px 24px 22px;
    text-decoration: none;
    color: inherit;
    background: #faf8f3;
    transition: background 0.18s;
    height: 100%;
    box-sizing: border-box;
}

.article-featured:hover {
    background: #f5f1e8;
}

.article-featured img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    margin-bottom: 16px;
    border: none;
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
}

.article-featured .article-tag {
    display: inline-block;
    margin-bottom: 10px;
    background: #1E90FF;
    color: white;
    padding: 3px 10px;
    font-family: Manrope, sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 2px;
}

.article-featured h2 {
    font-family: Fraunces, serif;
    font-size: 28px;
    font-weight: 400;
    line-height: 1.2;
    margin: 0 0 10px 0;
    color: #0d1b2a;
}

.article-featured .byline {
    font-family: Manrope, sans-serif;
    font-size: 9px;
    color: #999;
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.article-featured .excerpt {
    font-family: Manrope, sans-serif;
    font-size: 13px;
    line-height: 1.7;
    color: #555;
    margin: 0;
}

/* ── Sidebar ── */

.hp-sidebar {
    grid-area: sidebar;
    display: flex;
    flex-direction: column;
    background: #faf8f3;
}

.sidebar-box {
    padding: 18px 16px;
    border-bottom: 1px solid #ddd8ce;
}

.sidebar-box:last-child {
    border-bottom: none;
    flex: 1;
}

.sidebar-box-label {
    display: block;
    font-family: Manrope, sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #1E90FF;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e8e4dc;
    border-left: 3px solid #1E90FF;
    padding-left: 8px;
}

/* Weather widget */
.weather-current {
    margin-bottom: 12px;
}

.weather-main {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 4px;
}

.weather-temp {
    font-family: Fraunces, serif;
    font-size: 52px;
    font-weight: 400;
    color: #1E90FF;
    line-height: 1;
}

.weather-unit {
    font-family: Manrope, sans-serif;
    font-size: 18px;
    color: #888;
}

.weather-desc {
    font-family: Manrope, sans-serif;
    font-size: 12px;
    color: #444;
    margin-bottom: 2px;
    font-weight: 500;
}

.weather-wind {
    font-family: Manrope, sans-serif;
    font-size: 10px;
    color: #aaa;
}

.weather-location {
    font-family: Manrope, sans-serif;
    font-size: 9px;
    color: #bbb;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 6px;
}

/* 7-day forecast */
.weather-forecast {
    border-top: 1px solid #eee;
    margin-top: 10px;
    padding-top: 4px;
}

.weather-forecast-row {
    display: grid;
    grid-template-columns: 38px 1fr 28px auto;
    gap: 6px;
    align-items: center;
    padding: 5px 0;
    border-bottom: 1px solid #f4f2ee;
}

.weather-forecast-row:last-child {
    border-bottom: none;
}

.wf-day {
    font-family: Manrope, sans-serif;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #1a1a1a;
}

.wf-desc {
    font-family: Manrope, sans-serif;
    font-size: 10px;
    color: #777;
}

.wf-temps {
    font-family: Manrope, sans-serif;
    font-size: 10px;
    text-align: right;
    white-space: nowrap;
}

.wf-temps strong {
    color: #c54a2b;
    font-weight: 700;
}

.wf-low {
    color: #aaa;
    font-weight: 400;
}

/* Ad box */
.ad-box {
    background: #f0ece0;
    border: 1px dashed #ccc;
    min-height: 130px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 16px;
    box-sizing: border-box;
}

.ad-box img {
    width: 100%;
    display: block;
}

.ad-box a {
    display: block;
    width: 100%;
}

.ad-placeholder-label {
    font-family: Manrope, sans-serif;
    font-size: 9px;
    color: #bbb;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.ad-placeholder-email {
    font-family: Manrope, sans-serif;
    font-size: 8px;
    color: #ccc;
    letter-spacing: 1px;
}

/* Sidebar explore links */
.sidebar-explore-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 8px;
    border-radius: 4px;
    text-decoration: none;
    color: inherit;
    transition: background 0.12s;
    margin: 2px -8px;
}

.sidebar-explore-link:hover {
    background: #f0ece0;
}

.sidebar-explore-link img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    flex-shrink: 0;
}

.sidebar-explore-link strong {
    font-family: Fraunces, serif;
    font-size: 15px;
    font-weight: 400;
    display: block;
    color: #0d1b2a;
    transition: color 0.1s;
}

.sidebar-explore-link:hover strong {
    color: #1E90FF;
}

.sidebar-explore-link span {
    font-family: Manrope, sans-serif;
    font-size: 9px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
}

/* ── 3-column article grid (More Stories) ── */

.articles-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    border-left: 1px solid #ddd8ce;
    border-right: 1px solid #ddd8ce;
    border-bottom: 1px solid #ddd8ce;
}

.article-card {
    padding: 18px 16px;
    border-right: 1px solid #ddd8ce;
    border-bottom: 3px solid transparent;
    text-decoration: none;
    color: inherit;
    display: block;
    background: #faf8f3;
    transition: background 0.15s, border-bottom-color 0.15s;
    box-sizing: border-box;
}

.article-card:last-child {
    border-right: none;
}

.article-card:hover {
    background: #f5f1e8;
    border-bottom-color: #1E90FF;
}

.article-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
    margin-bottom: 12px;
    border: none;
    box-shadow: 0 1px 6px rgba(0,0,0,0.10);
}

.article-tag {
    font-family: Manrope, sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #1E90FF;
    display: block;
    margin-bottom: 6px;
}

/* Blue filled tag used on featured article */
.article-featured .article-tag {
    background: #1E90FF;
    color: white;
    padding: 3px 10px;
    border-radius: 2px;
    display: inline-block;
}

.article-card h2 {
    font-family: Fraunces, serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.3;
    margin: 0 0 6px 0;
    color: #0d1b2a;
}

.article-card .byline {
    font-family: Manrope, sans-serif;
    font-size: 9px;
    color: #aaa;
    margin: 0 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-card .excerpt {
    font-family: Manrope, sans-serif;
    font-size: 11px;
    line-height: 1.6;
    color: #666;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── News feed (Sports / Entertainment headlines) ── */

.news-feed-item {
    display: block;
    text-decoration: none;
    padding: 9px 0;
    border-bottom: 1px solid #f0ece0;
    color: inherit;
    transition: opacity 0.15s;
}

.news-feed-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.news-feed-item:hover {
    opacity: 0.7;
}

.news-feed-title {
    display: block;
    font-family: Fraunces, serif;
    font-size: 13px;
    line-height: 1.4;
    color: #0d1b2a;
    transition: color 0.12s;
}

.news-feed-item:hover .news-feed-title {
    color: #1E90FF;
}

.news-feed-date {
    display: block;
    font-family: Manrope, sans-serif;
    font-size: 9px;
    color: #bbb;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 3px;
}

.news-feed-loading {
    font-family: Manrope, sans-serif;
    font-size: 11px;
    color: #bbb;
}

/* ── Sidebar compact article list (More Stories) ── */

.sidebar-box-stories {
    flex: 1;
}

.sidebar-article {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px 0;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #f0ece0;
    transition: opacity 0.15s;
}

.sidebar-article:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-article:hover {
    opacity: 0.75;
}

.sidebar-article img {
    width: 68px;
    height: 52px;
    object-fit: cover;
    flex-shrink: 0;
    border-radius: 2px;
}

.sidebar-article-text {
    flex: 1;
    min-width: 0;
}

.sidebar-article-text .article-tag {
    font-size: 8px;
    letter-spacing: 1.5px;
    margin-bottom: 3px;
}

.sidebar-article-text p {
    font-family: Fraunces, serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.3;
    color: #0d1b2a;
    margin: 0 0 3px 0;
}

.sidebar-article-byline {
    font-family: Manrope, sans-serif;
    font-size: 9px;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ── Explore section — horizontal row at bottom ── */

.hp-explore {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-left: 1px solid #ddd8ce;
    border-right: 1px solid #ddd8ce;
    border-bottom: 1px solid #ddd8ce;
}

.hp-explore-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 16px;
    text-decoration: none;
    color: inherit;
    border-right: 1px solid #ddd8ce;
    transition: background 0.15s;
    text-align: center;
    background: #faf8f3;
}

.hp-explore-cell:last-child {
    border-right: none;
}

.hp-explore-cell:hover {
    background: #f5f1e8;
}

.hp-explore-cell img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 10px;
}

.hp-explore-cell strong {
    font-family: Fraunces, serif;
    font-size: 16px;
    font-weight: 400;
    color: #0d1b2a;
    margin-bottom: 4px;
    display: block;
    transition: color 0.12s;
}

.hp-explore-cell:hover strong {
    color: #1E90FF;
}

.hp-explore-cell span {
    font-family: Manrope, sans-serif;
    font-size: 9px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ── Two-column news feeds (Sports / Entertainment) below featured ── */

.hp-news-feeds {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-left: 1px solid #ddd8ce;
    border-right: 1px solid #ddd8ce;
    border-bottom: 1px solid #ddd8ce;
}

.hp-news-feed-col {
    padding: 18px 16px;
    border-right: 1px solid #ddd8ce;
}

.hp-news-feed-col:last-child {
    border-right: none;
}

/* ── Responsive ── */

@media (max-width: 900px) {
    .news-wrapper {
        padding-bottom: 24px;
    }

    .hp-layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        grid-template-areas:
            "main"
            "info"
            "sidebar";
        border-left: none;
        border-right: none;
    }

    .hp-main::before {
        display: none;
    }

    .hp-main {
        border-right: none;
        border-bottom: 1px solid #ddd8ce;
    }

    .hp-info-area {
        border-right: none;
    }

    .article-featured img {
        height: 220px;
        box-shadow: none;
    }

    .articles-grid-3 {
        grid-template-columns: 1fr 1fr;
        border-left: none;
        border-right: none;
    }

    .article-card:nth-child(2n) {
        border-right: none;
    }
}

@media (max-width: 500px) {
    .article-featured img {
        height: 180px;
    }

    .article-featured h2 {
        font-size: 22px;
    }

    .articles-grid-3 {
        grid-template-columns: 1fr;
    }

    .article-card {
        border-right: none;
    }

    .article-card:nth-child(2n) {
        border-right: none;
    }
}

@media (max-width: 600px) {
    .hp-news-feeds {
        grid-template-columns: 1fr;
        border-left: none;
        border-right: none;
    }

    .hp-news-feed-col {
        border-right: none;
        border-bottom: 1px solid #ddd8ce;
    }

    .hp-news-feed-col:last-child {
        border-bottom: none;
    }

    .hp-explore {
        grid-template-columns: 1fr;
        border-left: none;
        border-right: none;
    }

    .hp-explore-cell {
        border-right: none;
        border-bottom: 1px solid #ddd8ce;
        flex-direction: row;
        text-align: left;
        gap: 16px;
        padding: 16px;
    }

    .hp-explore-cell:last-child {
        border-bottom: none;
    }

    .hp-explore-cell img {
        width: 48px;
        height: 48px;
        margin-bottom: 0;
        flex-shrink: 0;
    }
}

/* ── Homepage info grid (Events / Spotlight / Map) ── */

.hp-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}

.hp-info-cell {
    padding: 18px 16px;
    border-right: 1px solid #ddd8ce;
    background: #faf8f3;
    box-sizing: border-box;
}

.hp-info-cell:last-child {
    border-right: none;
}

.hp-info-cell-label {
    font-family: Manrope, sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #1E90FF;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e8e4dc;
    border-left: 3px solid #1E90FF;
    padding-left: 8px;
    display: block;
}

.hp-events-list {
    list-style: none;
    margin: 0 0 14px 0;
    padding: 0;
}

.hp-events-list li {
    padding: 7px 0;
    border-bottom: 1px solid #f0ece0;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.hp-events-list li:last-child {
    border-bottom: none;
}

.hp-event-date {
    font-family: Manrope, sans-serif;
    font-size: 9px;
    font-weight: 700;
    color: #c54a2b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
    width: 44px;
    padding-top: 2px;
}

.hp-event-title {
    font-family: Georgia, serif;
    font-size: 13px;
    line-height: 1.35;
    color: #0d1b2a;
}

.hp-info-more {
    display: inline-block;
    font-family: Manrope, sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #1E90FF;
    text-decoration: none;
}

.hp-info-more:hover {
    text-decoration: underline;
}

.hp-spotlight-name {
    font-family: Fraunces, serif;
    font-size: 20px;
    font-weight: 400;
    color: #0d1b2a;
    margin-bottom: 8px;
    line-height: 1.2;
}

.hp-spotlight-text {
    font-family: Georgia, serif;
    font-size: 13px;
    line-height: 1.65;
    color: #555;
    margin: 0 0 14px 0;
}

.hp-map-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.hp-map-thumb {
    width: 100%;
    height: 110px;
    overflow: hidden;
    border: 1px solid #ddd;
    margin-bottom: 10px;
    background: #eee;
}

.hp-map-thumb iframe {
    width: 100%;
    height: 180px;
    border: none;
    pointer-events: none;
    display: block;
    margin-top: -35px;
}

.hp-map-cta {
    font-family: Manrope, sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #1E90FF;
}

.hp-map-link:hover .hp-map-cta {
    text-decoration: underline;
}

/* ── Extended weather widget ── */

.weather-feels {
    font-family: Manrope, sans-serif;
    font-size: 11px;
    color: #888;
    margin-bottom: 10px;
}

.weather-details-grid {
    display: flex;
    gap: 0;
    margin: 10px 0;
    padding: 10px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.weather-detail-item {
    flex: 1;
    text-align: center;
    border-right: 1px solid #eee;
}

.weather-detail-item:last-child {
    border-right: none;
}

.wd-label {
    font-family: Manrope, sans-serif;
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #bbb;
    display: block;
    margin-bottom: 3px;
}

.wd-val {
    font-family: Manrope, sans-serif;
    font-size: 11px;
    color: #444;
    font-weight: 600;
    display: block;
}

.weather-sun-row {
    display: flex;
    justify-content: space-between;
    font-family: Manrope, sans-serif;
    font-size: 10px;
    color: #777;
    margin-bottom: 4px;
    padding: 4px 0;
}


.wf-precip {
    font-family: Manrope, sans-serif;
    font-size: 9px;
    color: #1E90FF;
    text-align: center;
}

/* ── AQI widget ── */

.weather-aqi {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #eee;
}

.aqi-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.aqi-label-text {
    font-family: Manrope, sans-serif;
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #bbb;
}

.aqi-badge {
    font-family: Manrope, sans-serif;
    font-size: 8px;
    font-weight: 700;
    color: white;
    padding: 2px 7px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.aqi-number {
    font-family: Fraunces, serif;
    font-size: 30px;
    font-weight: 400;
    line-height: 1;
    margin-bottom: 2px;
}

.aqi-unit {
    font-family: Manrope, sans-serif;
    font-size: 13px;
    color: #888;
}

.aqi-detail {
    font-family: Manrope, sans-serif;
    font-size: 9px;
    color: #aaa;
    margin-top: 2px;
}

/* ── NWS Alert banners ── */

.weather-alert {
    padding: 8px 14px;
    border-left: 4px solid;
    margin-bottom: 1px;
}

.weather-alert.alert-severe {
    background: #fff5f5;
    border-left-color: #e53935;
}

.weather-alert.alert-moderate {
    background: #fff8ed;
    border-left-color: #ff9800;
}

.weather-alert strong {
    display: block;
    font-family: Manrope, sans-serif;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #333;
    margin-bottom: 2px;
}

.weather-alert span {
    font-family: Manrope, sans-serif;
    font-size: 9px;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

@media (max-width: 900px) {
    .hp-info-grid {
        grid-template-columns: 1fr;
        border-left: none;
        border-right: none;
    }
    .hp-info-cell {
        border-right: none;
        border-bottom: 1px solid #ddd8ce;
    }
    .hp-info-cell:last-child {
        border-bottom: none;
    }
}
