/* ----------------------------------------------------------------------
    1. GLOBAL RESET & BASE STYLES
---------------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html, body {
    background: #e1e2e2;
    font-family: Verdana, Tahoma, Helvetica, Arial, sans-serif;
    line-height: 1.6;
}
article, aside, footer, header, hgroup, nav, section, main {
    display: block;
}

/* ----------------------------------------------------------------------
    2. LAYOUT & STRUCTURE
---------------------------------------------------------------------- */
#main-wrapper {
    max-width: 1200px; 
    margin: 0 auto;
    background: #fff;
    padding: 0;
}
#topc {
    display: grid;
    grid-template-columns: 32% 34% 32%;
    grid-template-rows: auto auto auto;
    gap: 1%;
    width: 100%;
    padding: 1% 1%;
    background: #fff;
    border-bottom: 2px solid #ccc;
    overflow: hidden;
    margin-bottom: 0;
    padding-bottom: 0;
}
.inner {
    padding: 1%;
}

/* ----------------------------------------------------------------------
    3. HEADER & BRANDING
---------------------------------------------------------------------- */
#top-header {
    width: 100%;
    min-height: 95px;
    background: #fff;
    margin: 0 auto;
    padding: 10px 0 0;
    display: flex;
    align-items: center;
    padding-left: 20px;
}
#top-header a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}
#top-header img {
    margin: 0;
    padding: 0 5px 0 0;
}
.big-headline {
    font-size: 3.5em;
    font-family: Georgia, serif;
    color: #234e6c;
    line-height: 1.3em;
    padding-left: 10px;
}

/* ----------------------------------------------------------------------
    4. NAVIGATION (DESKTOP)
---------------------------------------------------------------------- */
.navigation ul {
    height: 45px;
    padding: 0;
    background: #a80000;
    margin: 0;
    list-style: none;
    display: flex;
}
.navigation ul li {
    list-style: none;
    border-right: 2px solid #a6bfd0;
}
.navigation ul li:first-child {
    padding-left: 50px;
}
.navigation ul li:hover {
    background: #ff8400;
}
.navigation ul li a {
    font-family: "Helvetica Neue", Verdana, Tahoma, sans-serif;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    display: block;
    text-decoration: none;
    padding: 11.5px 20px;
    white-space: nowrap;
}
.mini-navigation {
    border-left: 1px solid #fff;
    border-bottom: 1px solid #ccc;
    border-right: 1px solid #ccc;
    padding: 0;
    margin: 0 5px;
    border-radius: 0 0 8px 8px;
}
.mini-navigation ul {
    padding: 0;
    margin: 0;
    list-style: none;
}
.mini-navigation ul li {
    list-style: none;
    border-bottom: 1px solid #ebebeb;
}
.mini-navigation ul li:hover {
    background: #f0f0f0;
}
.mini-navigation ul li a {
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    color: #1e7759;
    padding: 10px;
    display: block;
}
.mini-navigation ul li a:hover {
    text-decoration: underline;
}
.mini-navigation ul li:last-child {
    border-bottom: 0;
    padding-bottom: 15px;
}
.mini-navigation ul li:last-child:hover {
    border-radius: 0 0 8px 8px;
}

/* ----------------------------------------------------------------------
    5. COLUMN LAYOUT (CSS GRID) - FINAL CLEAN UP
---------------------------------------------------------------------- */

/* --- A. CORE Universal Responsive Video Wrapper (Aspect Ratio Trick) --- */
.vid-responsive {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    padding-top: 0;
    height: 0;
    overflow: hidden;
    margin: 0; 
    width: 100%; /* Default to 100% of its parent container */
}

.vid-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
/* --- B. Container & General Padding Standard --- */
#featured-news,
#adspot,
/* .side-content-left inherits padding from .inner in HTML */
#news-content,
.side-content-right,
.responsive-ads { 
    float: none;
    width: auto;
    margin: 0;
    padding: 1%;
}

/* Specific adjustment for #vid-news on the index page (needs 0 vertical padding) */
#vid-news { 
    float: none;
    width: auto;
    margin: 0;
    padding: 0 1%; /* 0 top/bottom, 1% left/right */
    grid-column: 2;
    grid-row: 1;
}

/* --- C. ARTICLE PAGE VIDEO OVERRIDE (Cancels the 1% padding from .side-content-left) --- */
.article-page .side-content-left .vid-responsive {
    /* PULL OUT: Use negative margin to cancel the 1% horizontal padding from the parent sidebar's .inner class or article-page styles */
    margin-left: -1% !important;  
    margin-right: -1% !important; 
    
    /* Ensure vertical margins are clean */
    margin-top: 0 !important;
    margin-bottom: 0 !important; 

    /* Ensure width is managed by the responsive class, but break out horizontally */
    width: auto !important;
    max-width: none !important; 
}


/* --- Row 1: Main Content Section (Index Page) --- */
#featured-news {
    grid-column: 1;
    grid-row: 1;
}
#adspot {
    grid-column: 3;
    grid-row: 1;
}
.responsive-ads {
    grid-column: 1 / span 3;
    grid-row: 2;
    text-align: center;
}

/* --- Row 3: Secondary Content/Sidebars Section (Index Page) --- */
.side-content-left {
    grid-column: 1;
    grid-row: 3;
}
#news-content {
    grid-column: 2;
    grid-row: 3;
}
.side-content-right {
    grid-column: 3;
    grid-row: 3;
}
.side-content-right li {
    list-style: none;
}

/* --- New Section: More News Grid (#more-news-container) --- */

#more-news-container {
    /* Place this section in the second row of the main #topc grid */
    grid-row: 2; 
    
    /* Make this section span all three existing columns of #topc */
    grid-column: 1 / span 3;
    
    padding: 10px 1%; /* Add some spacing around the section */
}

/* Define the new 4-column sub-grid inside the container */
.news-grid {
    display: grid;
    
    /* Create 4 equal-width columns */
    grid-template-columns: repeat(4, 1fr); 
    
    /* Use gap for spacing between the boxes */
    gap: 15px; 
}

/* Style the individual boxes */
.news-box {
    /* This defines the size and visual style of each box */
    min-height: 150px; /* Ensures boxes have a minimum height */
    background-color: #f7f7f7; /* Light background for visibility */
    border: 1px solid #ddd;
    padding: 10px;
}

/* ----------------------------------------------------------------------
    5.5 OPTIMIZED ARTICLE PAGE GRID FIX (Two-Column Layout)
    This creates one big column (Col 1+2) and one small column (Col 3) for article pages.
---------------------------------------------------------------------- */

/* --- Article Page: Left Content (Wide) / Right Sidebar (Narrow) Layout --- */

/* 1. Target the Main Article Content (#art-big) and make it span Columns 1 and 2 (Left side) */
.article-page #art-big { 
    float: none;
    width: auto; 
    margin: 0;
    grid-column: 1 / span 2; /* Spans the first two columns */
    grid-row: 3;
}

/* 2. Reposition the Left News Brief (.side-content-left) to the Right Sidebar slot (Column 3) */
.article-page .side-content-left { 
    grid-column: 3; /* Places the sidebar in the third column */
    grid-row: 3;
    padding: 1%;
    margin: 0;
}


/* ----------------------------------------------------------------------
    6. TYPOGRAPHY
---------------------------------------------------------------------- */
/* --- Article Page Typography Alignment --- */

/* Target ALL typography elements inside the main article body (#art-big)
    when the article-page class is present. 
    This ensures we ONLY affect the article content and not the sidebar or index page.
*/

.article-page #art-big h2,
.article-page #art-big h3,
.article-page #art-big h4, 
.article-page .side-content-left h2, 
.article-page .side-content-left h3,
.article-page .side-content-left h4 {
    /* Set padding and margin to align with the main text body */
    padding: 7px 0 7px 0; /* Remove left padding from h2/h3/h4 */
    margin-left: 0;
}

.article-page #art-big p,
.article-page #art-big li,
.article-page #art-big pre,
.article-page .side-content-left p, 
.article-page .side-content-left li,
.article-page .side-content-left pre {
    /* Use the same margin/padding structure as the main article paragraphs */
    margin-left: 0; /* Override the existing margin-left: 40px; */
    padding: 15px 10px 25px 0; /* Standardized padding */
}

/* Specific override for h1 in the article header */
.article-page #art-big h1 {
    /* Reduce left padding to align with the rest of the text */
    padding: 10px 10px 10px 0; 
}

h1 {
    font-family: Helvetica, Tahoma, Verdana, sans-serif;
    font-size: 1.6em;
    padding: 10px 10px 10px 45px;
    color: #3e515e;
    line-height: 1.3em;
}
h2 {
    font-family: Helvetica, Verdana, Tahoma, sans-serif;
    font-size: 1.3em;
    padding: 0 10px 8px 50px;
    color: #334247;
    line-height: 1.8em;
}
h3, h4 {
    font-family: Helvetica, Verdana, Tahoma, sans-serif;
    font-size: 1.0em;
    padding: 7px;
    color: #094258;
}
address {
    font-family: Verdana, Helvetica, Tahoma, sans-serif;
    font-size: 1.0em;
    line-height: 1.6em;
    padding: 5px 15px;
    color: #303030;
}
#art-big li, pre, p {
    font-family: Verdana, Helvetica, Tahoma, sans-serif;
    font-size: 1.1em;
    line-height: 1.8em;
    margin-left: 40px;
    padding: 15px 10px 25px;
    color: #303030;
}
/* Crucial fix for article page paragraph flow inside #art-big */
#art-big p {
    margin-left: 0;
    padding: 15px 10px 25px 0;
}
.art-hitp {
    line-height: 1.6em;
}
.adfont {
    font-size: 0.7em;
    color: #778899;
    font-style: italic;
    padding: 0 0 5px 0;
}
.pubdate {
    font-size: 0.8em;
    color: #606060;
    margin: 0;
    padding: 0;
    font-style: italic;
}
figcaption {
    font-size: 0.9em;
    color: #606060;
    line-height: 1.1em;
    margin: 0;
    padding: 0 10px 0 10px;
}
.ul-pad, ol {
    padding: 20px;
    margin: 0;
}
/* --- Index Page Content Standardization --- */

/* 1. Standardize Headings (H1 through H4) */
#topc h1, #topc h2, #topc h3, #topc h4,
#bottom-container h1, #bottom-container h2, #bottom-container h3, #bottom-container h4,
#more-news-container h2 {
    margin-left: 0;
    padding-left: 10px;
    text-align: left;
}

/* 2. Standardize Paragraphs and Lists (p, li, pre) */
#topc p, #topc li, #topc pre,
#bottom-container p, #bottom-container li, #bottom-container pre,
#more-news-container p {
    margin-left: 0;
    padding-left: 10px; 
    text-align: left;
}

/* 3. Standardize Images (img) - CORRECTED/SIMPLIFIED RULE */
#topc img, 
#bottom-container img,
#more-news-container .news-box img {
    display: block;
    margin-left: 0;
    padding-left: 10px;
}

/* --- AD BLOCK ALIGNMENT FIXES --- */
#topc div.responsive-ads {
    margin-left: 0 !important;
    margin-right: auto !important; 
    padding-left: 10px !important;
    text-align: left !important;
    justify-self: start !important;
    align-self: start !important;
}
div.advertisement {
    padding-left: 10px !important;
    margin-left: 0 !important;
    margin-right: auto !important; 
    text-align: left !important;
}

/* --- IMAGE IN LINK FIX (Uses the simpler, effective structure) --- */
.news-link-block {
    margin-left: 0 !important;
    margin-right: auto !important;
    padding-left: 10px !important;
    text-align: left !important;
}

.news-link-block a {
    display: block !important;
    text-decoration: none;
}

.news-link-block a img,
.news-link-block .news-title {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}


/* ----------------------------------------------------------------------
    7. LINKS & IMAGES
---------------------------------------------------------------------- */
a {
    text-decoration: none;
    background: none;
    border: none;
    color: #0000ee;
}
a:hover {
    color: #f60;
}
a img {
    text-decoration: none;
    background: none;
    border: none;
}
img {
    padding: 0 10px 0 0;
    max-width: 100%;
    height: auto;
}
.image-right {
    float: right;
    margin: 0 0 1em 2em;
    width: 45%;
}
.image-left {
    float: left;
    margin: 5px 5px 0 0;
}

/* ----------------------------------------------------------------------
    8. FOOTER STYLES
---------------------------------------------------------------------- */
#bottom-container {
    display: flex;
    width: 100%;
    background: #173448;
    border-top: 1px solid #ccc;
    padding: 1% 0;
    margin-bottom: 0;
    padding-bottom: 0;
}
.bottom-box {
    flex: 1;
    padding: 0.5%;
    background: #173448;
}
.bottom-box a {
    color: #0296fd;
}
#bottom-container li {
    list-style: none;
    padding: 5px 0 0 10px;
    border: 0;
}
.btbxhd {
    color: #fff;
    padding: 7px 0 7px 10px;
}
#bottom-container .bottom-box *:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
}
#main-footer {
    margin-top: 0 !important; 
    padding-top: 0 !important;
    width: 100%;
    background: #234e6c;
    text-align: center;
    clear: both;
    display: block;
}
#main-footer p {
    margin: 0;
    color: #9fa1a2;
    padding: 10px;
}

/* ----------------------------------------------------------------------
    9. MISCELLANEOUS
---------------------------------------------------------------------- */
.hidden {
    display: none;
}
.ablock {
    padding: 10px;
}
.border-p {
    border: 1px solid #d8dbdc;
}
.tolremark {
    color: red;
}
.tblpad {
    padding: 0 0 0 5px;
}
.headP {
    text-align: center;
}
/* Removed conflicting/redundant ad styles here: .gads, .gads-inlnspan, .gads-left */
.responsive-ads {
    float: none; 
    width: auto; 
    margin: 0; 
    padding: 10px;
}

/* ----------------------------------------------------------------------
    10. MEDIA QUERIES
---------------------------------------------------------------------- */
@media screen and (max-width: 640px) {
    #main-wrapper, body {
        max-width: 100%;
        background: #fff;
    }
    #topc {
        display: grid;
        grid-template-columns: 100%; 
        grid-template-rows: auto;
        gap: 10px;
        padding: 10px 5px;
    }
    
    /* All grid children stack in column 1 (mobile view) */
    #featured-news,
    #vid-news,
    #adspot,
    .side-content-left,
    #news-content,
    .side-content-right,
    .responsive-ads,
    #art-big, /* Ensure the article content stacks in Col 1 */
    #art-side { /* Since we hid it on desktop, it remains hidden here unless specifically unhidden */
        grid-column: 1; 
        grid-row: auto; 
        width: auto;
        margin: 0;
        padding: 5px;
    }

    /* Mobile Navigation Fix */
    .navigation ul {
        flex-direction: column;
        height: auto;
        padding: 0 5px;
    }
    .navigation ul li {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #ff8400;
    }
    .navigation ul li:first-child {
        padding-left: 0;
    }
    .navigation ul li:last-child {
        border-bottom: none;
    }
    .navigation ul li a {
        padding: 10px; 
        text-align: center;
        font-size: 16px;
    }
    
    img {
        max-width: 100%;
        margin: 0;
        padding: 0;
    }
    
    /* Footer Overrides */
    #bottom-container {
        flex-direction: column;
        padding: 0;
    }
    .bottom-box {
        width: 100%;
    }
    .responsive-ads {
        padding: 10px 0;
    }
}
