@font-face {
    font-family: "Interstate";
    src: url("interstate-regular.ttf") format(".ttf");
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

/*
 Theme Name:   Test Theme
 Author:       Your Name
 Description:  Custom test theme
 Version:      1.0
 Text Domain:  test-theme
*/

/* Core Layout */
/* Remove default body margin - make content go edge-to-edge */

html, body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    height: 100%;
}

body {
    min-height: 100vh;           /* at least full viewport height */
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Lora", serif !important;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
}

p, div, span {
    font-family: "Interstate", sans-serif;
}

/* Main content area expands to fill available space */
.site,
#page,
.site-content,
main,
.content-area,
.page .entry-content,
.wp-site-blocks,
.container,
article.post,
.page-content {
    flex: 1 0 auto !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Admin bar fix */
body.admin-bar {
    padding-top: 0 !important;
}

/* Header Styles */
.site-header {
    background: #fff;
    padding: 50px 0 0;
    position: relative;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-branding {
    flex: 1;
    text-align: center;
}

.branding-logo {
    width: 350px;
}

.site-title {
    font-family: 'Anton', 'Impact', 'Arial Black', sans-serif;
    font-size: 4rem;
    font-weight: 400;
    line-height: 0.85;
    text-transform: uppercase;
    letter-spacing: -3px;
    color: #000;
    text-decoration: none;
    display: block;
    margin: 0;
}

.site-title .sentinel {
    font-size: 5.8rem;
    display: block;
    margin-top: -15px;
    color: #800000;
}

.site-title img {
    max-height: 120px;
    width: auto;
    display: block;
    margin: 0 auto;
}

.header-divider {
    border: none;
    border-top: 2px solid #800000;
    margin: 5px 0 15px;
    width: 100%;
}

/* Desktop navigation */
.main-navigation {
    text-align: center;
    background: #fff;
    display: block;
}

.nav-menu {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    line-height: 1;
}

.nav-menu li {
    margin: 0;
    position: relative;
    display: flex;
    align-items: center;
}

.nav-menu li a {
    color: #000;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    white-space: nowrap;
    transition: color 0.2s;
    display: block;
    padding: 0;
}

.nav-menu li a:hover {
    color: #800000;
}

/* Hamburger & Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: #000;
}

.mobile-menu-panel {
    display: none !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 500px;
    background: rgba(255,255,255,0.98);
    z-index: 99999;
    margin-top: 220px;
    overflow-y: auto;
}

.mobile-menu-panel.active {
    display: block !important;
}

/* Search Toggle & Overlay */
.search-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.8rem;
    color: #000;
    padding: 0 10px;
    line-height: 1;
}

.search-toggle svg {
    width: 28px;
    height: 28px;
}

.search-toggle svg path {
    fill: #000 !important;
}

.search-overlay {
    display: none;
    position: absolute;
    top: 74%;
    left: 0;
    width: 100%;
    background: #f8f8f8;
    padding: 25px 0;
    z-index: 1000;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.search-overlay.active {
    display: block;
}

.search-overlay .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.search-overlay form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-overlay input[type="search"] {
    flex: 1;
    padding: 14px 18px;
    font-size: 1.3rem;
    border: 2px solid #ccc;
    border-radius: 6px;
    outline: none;
}

.search-overlay button[type="submit"] {
    background: #800000;
    color: #fff;
    border: none;
    padding: 14px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.1rem;
}

.close-search {
    position: absolute;
    top: -40px;
    right: 30px;
    background: none;
    border: none;
    font-size: 1.4rem;
    color: #333;
    cursor: pointer;
}

/* Mobile Header Adjustments */
@media (max-width: 900px) {
    .header-top {
        justify-content: flex-start;
        padding: 15px 20px;
    }
    
    .mobile-menu-toggle {
        display: block;
        margin-right: 20px;
    }

    .mobile-menu-panel {
        margin-top: 193px;
    }
    
    .site-branding {
        flex: 1;
    }
    
    .search-toggle {
        margin-left: auto;
    }
    
    .main-navigation {
        display: none !important;
    }

    .nav-menu-mobile {
        padding-left: 0px;
    }
    
    .nav-menu-mobile li {
        display: block;
        padding: 15px 0;
        border-bottom: 1px solid #270101;
        text-decoration: none !important;
    }

    .nav-menu-mobile li a {
        display: block;
        padding-left: 20px;
        font-size: 1.4rem;
        color: #000;
        text-decoration: none !important;
    }

    .search-overlay {
        top: 100%;
    }
}

@media (min-width: 901px) {
    .main-navigation {
        display: block !important;
    }
    .mobile-menu-toggle {
        display: none;
    }
}

/* === Homepage Layout – Top Stories + Category Sections === */

/* Top Stories */
.top-stories {
    margin: 40px 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    /* border-top: 3px solid #000;
    padding-top: 10px; */
    text-transform: uppercase;
}

.top-fold {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.popular-posts {
    flex: 1 1 35%;
    min-width: 300px;
}

.top-story-item {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.top-story-item:last-child {
    border-bottom: none;
}

.featured-post {
    flex: 1 1 60%;
    min-width: 300px;
}

.featured-item {
    background: #fff;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.featured-thumbnail {
    display: block;
}

.featured-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.featured-content {
    padding: 20px;
}

.featured-title a {
    font-size: 2rem;
    margin: 0 0 12px;
    text-decoration: none !important;
    color: black;
}

.featured-meta {
    font-size: 1rem;
    color: #555;
}

.featured-meta a {
    text-decoration: none;
    color: #555;
}

/* Category Section (State, Local, etc.) */
.news-image img,
.local-card img,
.small-post img,
.featured-image,
.national-image img {
    transition: opacity 0.3s ease;
}

.news-card:hover img,
.local-card:hover img,
.small-post:hover img,
.featured-item:hover img,
.national-main:hover img {
    opacity: 0.85;
}

.category-section {
    margin: 60px 0;
}

.state-fold,
.local-fold {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.state-featured,
.local-featured {
    flex: 1 1 60%;
}

.state-column,
.local-column {
    flex: 1 1 35%;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.state-item,
.local-item {
    background: #fff;
    padding: 15px;
    border-radius: 6px;
}

.state-title a,
.local-title a {
    font-size: 1.4rem;
    margin: 0 0 8px;
    text-decoration: none !important;
    color: black;
}

.state-meta,
.local-meta {
    font-size: 0.9rem;
    color: #666;
}

/* Shared Homepage Styles */
.loop-label {
    font-size: 1.8em;
    margin-bottom: 20px;
    border-bottom: 2px solid #000;
    padding-bottom: 10px;
}

.loop-entry-title a {
    color: #000;
    text-decoration: none;
}

.loop-entry-title a:hover {
    text-decoration: underline !important;
}

.loop-entry-meta {
    font-size: 1em;
    color: #555;
    margin-top: 8px;
}

/* Featured Image Hover */
.loop-entry-thumbnail-inner,
.featured-thumbnail img {
    transition: opacity 0.3s;
}

.loop-entry-thumbnail:hover .loop-entry-thumbnail-inner,
.featured-thumbnail:hover img {
    opacity: 0.85;
}

/* Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin: 60px 0 20px;
    border-top: 2px solid #800000;
}

.section-header h2 {
    font-size: 40px;
}

.view-all {
    color: #800000;
    font-weight: bold;
    text-decoration: none !important;
}

/* LOCAL SECTION GRID */

.local-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.local-card img {
    width: 100%;
    height: auto;
    display: block;
}

/* Title */
.local-title {
    margin-top: 10px;
    font-size: 16px;
    line-height: 1.4;
}

.local-title a {
    text-decoration: none;
    color: #000;
}

.local-title a:hover {
    text-decoration: underline;
}

/* SECTION HEADER */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.section-header h2 {
    font-size: 28px;
}

.view-all {
    font-size: 12px;
    text-decoration: none;
    color: #8b1c2d;
}

/* GRID LAYOUT */
.national-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
}

/* LEFT COLUMN */
.national-left {
    border-right: 1px dotted #ccc;
    padding-right: 20px;
}

.small-post {
    margin-bottom: 25px;
}

.small-post img {
    width: 100%;
    height: 200px;
    margin-bottom: 10px;
}

.small-post h4 {
    font-size: 16px;
    margin-bottom: 5px;
}

.small-post h4 > a {
    text-decoration: none;
    color: black;
}

/* MAIN FEATURE */
.national-main {
        display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
    height: 374px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.national-image img {
    width: 562px;
    height: auto;
}

.national-title {
    font-size: 32px;
    line-height: 1.2;
}

.national-title a {
    text-decoration: none;
    color: black;
}

.search-results-page {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-header {
    margin-bottom: 40px;
    text-align: center;
}

.page-title {
    font-size: 2.5rem;
    margin: 0;
}

.search-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.search-result-card {
    background: #fff;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.2s;
    margin-bottom: 20px;
}

.search-result-card:hover {
    transform: translateY(-5px);
}

.card-image img {
    width: 100%;
    height: 220px;          /* Fixed height for uniform look – adjust as needed */
    object-fit: cover;
    display: block;
}

.card-content {
    padding: 20px;
}

.category-badge {
    background: #800000; /* Maroon */
    color: white !important;
    padding: 4px 12px;
    font-size: 1em;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none !important;
    display: inline-block;
    margin-bottom: 8px;
    margin-top: 10px;
}

.entry-title {
    font-size: 1.4rem;
    margin: 0 0 10px;
    line-height: 1.3;
}

.entry-title a {
    color: #333;
    text-decoration: none;
}

.entry-meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 12px;
}

.entry-excerpt {
    font-size: 1rem;
    color: #555;
    line-height: 1.5;
}

/* META */
.meta {
    font-size: 1rem;
    color: #777;
}

.single-meta {
    padding-top: 10px;
}

/* Wrapper */
.single-wrapper {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Full width header */
.single-header {
    margin-bottom: 40px;
}

.single-title {
    font-size: 48px;
    line-height: 1.1;
    margin-bottom: 15px;
}

.single-date {
    color: #666;
}

/* 2-column grid */
.single-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    align-items: start; /* THIS makes sidebar align with top of image */
}

.single-body p > a {
    color:#800000;
}

/* Featured image */
.single-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Sidebar */
.sidebar {
    padding-top: 0;
}

.sidebar > div:nth-child(3) > ul {
    padding-left: 0px;
}

.sidebar > div:nth-child(3) > ul > li {
    list-style: none;
}

.sidebar > div:nth-child(3) > ul > li > a {
    text-decoration: none;
    color: black;
}

.related-posts {
    max-width: 1200px;     /* same as your main wrapper */
    margin: 80px auto;
    padding: 0 20px;
}

.related-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* equal width */
    gap: 40px;
}


.related-item {
    display: flex;
    flex-direction: column;
}

.related-item a {
  text-decoration: none;
  color: black;
}

.related-item h3 {
      width: 70%;
}

.related-item img {
    width: 70%;
    height: auto;
    display: block;
}

/* Footer Newsletter (unchanged) */
.footer-newsletter {
    background: #800000;
    color: #ffffff;
    padding: 80px 0 60px;
}

.newsletter-split {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.newsletter-left,
.newsletter-right {
    flex: 1;
    min-width: 300px;
}

.newsletter-heading {
    font-size: 3.2rem;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.newsletter-description {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 500px;
}

/* Gravity Forms overrides (unchanged) */
.gform_wrapper {
    background: transparent !important;
    padding: 0 !important;
}

.gform_body .gfield {
    margin-bottom: 20px;
}

.gfield_label {
    color: #fff !important;
    font-size: 1rem;
    margin-bottom: 8px;
}

.ginput_container input[type="email"],
.ginput_container input[type="tel"] {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    border: none;
    border-radius: 4px;
    background: #fff;
}

.gfield_required {
    color: #ffcc00;
}

.gfield_html.disclosure {
    font-size: 0.85rem;
    line-height: 1.5;
    color: #ddd;
    margin: 15px 0;
}

.gfield_html a {
    color: #ffcc00;
    text-decoration: underline;
}

.gform-footer .gform_button {
    background: #ffcc00 !important;
    color: #000 !important;
    font-size: 1.1rem !important;
    font-weight: bold !important;
    padding: 14px 40px !important;
    border: none !important;
    border-radius: 4px !important;
    cursor: pointer;
    text-transform: uppercase;
    width: 100%;
    max-width: 300px;
}

.gform-footer .gform_button:hover {
    background: #ffdd33 !important;
}

.gfield--type-consent label {
    color: #fff !important;
    font-size: 0.95rem;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0px 20px;
    padding-bottom: 20px !important;
}

.archive-divider {
    border: none;
    border-top: 2px solid #800000;
    width: 100%;
}

.archive-title {
    text-align: center;
    font-size: 42px;
    margin-bottom: 0px;
    font-family: serif;
}

.pagination {
    margin: 40px 0;
    text-align: center;
}

.pagination .page-numbers {
    padding: 8px 14px;
    margin: 0 4px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;                /* default text color for better readability */
    transition: all 0.2s ease;
}

.pagination .page-numbers.current {
    background: #8b1c2d;        /* your red as background for the current page */
    color: white;
    border-color: #8b1c2d;
    font-weight: bold;
}

.pagination a.page-numbers:hover {
    background: #a5273a;        /* slightly lighter red for hover (derived from #8b1c2d) */
    color: white;
    border-color: #a5273a;
}

/* Optional: make Previous/Next links match the red theme too */
.pagination .prev,
.pagination .next {
    color: #8b1c2d;
    font-weight: 600;
}

.pagination .prev:hover,
.pagination .next:hover {
    color: #a5273a;
    text-decoration: underline;
}

/* GRID */
.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-top: 20px;
}

/* CARD */
.news-card {
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.news-content {
    padding: 15px;
}

.news-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* CATEGORY BADGE */
.news-category {
    display: inline-block;
    background: #8b1c2d;
    color: white;
    font-size: 11px;
    padding: 4px 8px;
    margin-top: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* TITLE */
.news-title {
    font-size: 16px;
    margin-top: 10px;
    line-height: 1.4;
}

.news-title a {
    text-decoration: none;
    color: black;
}

.news-title a:hover {
    text-decoration: underline;
}

.podcasts-container {
    display: flex;
    justify-content: space-around;
    padding-bottom: 50px;
    align-items: center;
}

.podcast {
    flex-direction: column;
}

.podcast.spotify iframe {
  width: 100%;
  height: 450px;
}

/* Mobile Adjustments */
@media (max-width: 900px) {
    .top-fold,
    .state-fold,
    .local-fold {
        flex-direction: column;
    }
    
    .featured-image {
        height: 300px;
    }
    
    .section-title,
    .newsletter-heading {
        font-size: 2rem;
    }
    
    .newsletter-split {
        flex-direction: column;
        gap: 40px;
    }
}

@media (max-width: 900px) {

    .local-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 per row on tablet */
        gap: 25px;
    }

    /* Stack the entire section */
    .national-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* Remove right border on left column */
    .national-left {
        border-right: none;
        padding-right: 0;
    }

    /* Stack image + text inside main feature */
    .national-main {
        grid-template-columns: 1fr;
        gap: 20px;
        height: 511px;
    }

      .sidebar {
        display: none;
    }

    .single-container {
        grid-template-columns: 1fr;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    hr:nth-child(2) {
        display: none;
    }

    .national-title {
    font-size: 32px;
    line-height: 1.2;
    margin-top: 0px;
    margin-bottom: 12px;
    }

}

@media (max-width: 600px) {

    .branding-logo {
        width: 300px;
    }

   .podcasts-container {
      flex-direction: column;
      padding: 0 30px;
      padding-bottom: 30px;
   }
   .podcast-info {
      width: 350px !important;
      text-align: center !important;
   }

   /* .spotify {
     width: 80%;
   } */

   body.postid-41 .single-wrapper,
    body.postid-41 .single-container,
    body.postid-41 .single-content,
    body.postid-41 main.single-content,
    body.postid-41 .site-content,
    body.postid-41 .container {
        max-width: 100% !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
        box-sizing: border-box;
        text-align: center;
    }

    /* Reset any global body/html padding/margin that might sneak in */
    body.postid-41,
    html {
        margin: 0 !important;
        padding: 0 !important;
        overflow-x: hidden;  /* Stops any horizontal scroll/white overflow */
    }

    /* Spotify embed full edge-to-edge (no side white around player) */
    body.postid-41 figure.wp-block-embed,
    body.postid-41 .wp-block-embed__wrapper,
    body.postid-41 .wp-block-embed-spotify {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    body.postid-41 iframe[src*="open.spotify.com/embed"] {
        width: 100% !important;
        height: 352px !important;  /* Adjust if needed: 152px for compact, 200-250px for mobile balance */
        display: block;
        margin: 0 !important;
    }

    /* Featured image: Keep it contained (no full-bleed) – remove this block if you want it even tighter */
    body.postid-41 .single-featured-image,
    body.postid-41 .single-featured-image img {
        width: 100% !important;       /* Stays within container, no vw trick */
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        height: auto;
    }

    .search-results-grid {
        grid-template-columns: 1fr;
    }
    .card-image img {
        height: 180px;
    }

    .national-image img {
        width: 391px;
        height: auto;
    }

    .national-content {
        padding: 15px;
    }


    .local-grid {
        grid-template-columns: 1fr; /* 1 per row on phones */
        gap: 20px;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .small-post {
        display: flex;
        gap: 15px;
        flex-direction: column;
    }

    .small-post img {
        width: 390px;
        height: auto;
        object-fit: cover;
        margin-bottom: 0;
    }

    .small-post h4 {
        font-size: 14px;
        margin: 0;
    }

    .footer-logo {
        padding-bottom: 10px;
    }

}