/* Ensure main wrapper and content spans the full width */
.site-main-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

.main-content {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Base Mobile Spacing - Completely unchanged from before */
.site-main-wrapper .gh-inner,
.main-content .container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 1vw !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

/* Desktop and Tablet Spacing (Reduced width so it doesn't feel overly packed) */
@media (min-width: 768px) {
    .site-main-wrapper .gh-inner,
    .main-content .container {
        /* Increases the breathable white-space on the massive monitors while remaining fluid */
        padding: 0 5vw !important; 
        max-width: 1600px !important; 
        margin: 0 auto !important;
    }
}

/* Header and Footer remain untouched */
body {
    overflow-x: hidden; /* Avoid horizontal scrollbar caused by widths */
}

/* Vibrant Animation for Latest News */
@keyframes fireIconPulse {
    0% { transform: scale(1); filter: drop-shadow(0 0 2px rgba(255, 61, 0, 0.4)); }
    50% { transform: scale(1.15); filter: drop-shadow(0 0 10px rgba(255, 61, 0, 0.9)); }
    100% { transform: scale(1); filter: drop-shadow(0 0 2px rgba(255, 61, 0, 0.4)); }
}
.animated-fire-icon {
    animation: fireIconPulse 1.5s infinite ease-in-out;
    transform-origin: bottom center;
}
@keyframes titleVibrantPulse {
    0% { color: #222; text-shadow: 0 0 0px transparent; }
    50% { color: #D84315; text-shadow: 0 0 8px rgba(216, 67, 21, 0.2); }
    100% { color: #222; text-shadow: 0 0 0px transparent; }
}
.vibrant-latest-title {
    animation: titleVibrantPulse 2.5s infinite ease-in-out;
    transition: all 0.3s;
}

/* Custom Section Head - Black Line, Black Text, ONLY Red See All */
.section-head.section-red-link {
    border-bottom-color: #222 !important;
}
.section-head.section-red-link h2 {
    color: #222 !important;
}
.section-head.section-red-link h2::after {
    background-color: #222 !important;
}
.section-head.section-red-link .see-all {
    color: #C0211B !important; 
}
.section-head.section-red-link .see-all:hover {
    color: #A01B16 !important;
}

/* Mobile Grid Layout Fixes (Overrides high-specificity desktop selectors) */
@media (max-width: 768px) {
    .latest-news .latest-grid,
    .latest-grid,
    .sub-latest-grid {
        grid-template-columns: 1fr !important;
        display: grid !important;
    }
    
    .latest-grid .side-articles {
        width: 100% !important;
    }

    .latest-grid .featured-article {
        margin-bottom: 10px;
    }
}

/* Fix Vertical Alignment in Section Heads with Icons */
.section-head {
    align-items: center !important;
}
