/* ==========================================================================
   1. BLOG HERO BANNER
   ========================================================================== */
.blog-hero-banner {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 10px auto 60px; 
    padding: 0;
    position: relative;
}

.hero-image-container {
    grid-column: 1 / 11; 
    grid-row: 1;
    height: 500px;
    border-radius: 12px;
    overflow: hidden;
    z-index: 1;
}

.hero-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content-card {
    grid-column: 8 / 13; 
    grid-row: 1;
    background: #ffffff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.hero-content-card h1 {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

/* ==========================================================================
   2. DYNAMIC STORY GRID (Automation Compatible)
   ========================================================================== */
.story-grid-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 24px;
    margin-bottom: 30px;
    font-weight: 600;
}

.story-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
}

.story-grid .interlink-card {
    flex: none !important; 
    width: 100% !important;
    max-width: 100%;
    margin-bottom: 0;
}

/* ==========================================================================
   3. BLOCK KILLER & DYNAMIC FOOTER (Strict Override)
   ========================================================================== */
.blog-list-container {
    padding-top: 100px !important; 
    padding-left: 0 !important;
    padding-right: 0 !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 0 !important; /* Kills the gap before footer */
}

/* FORCE the footer to be horizontal and white */
footer, .blog-footer-full {
    width: 100% !important;
    background-color: #ffffff !important;
    border-top: 1px solid #eee !important;
    padding: 30px 0 !important;
    margin-top: 0 !important;
    display: flex !important;
    justify-content: center !important;
    left: 0 !important;
    right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    position: relative !important;
}

.footer-inner {
    display: flex !important;
    flex-direction: row !important; /* Forces horizontal even if style.css says column */
    justify-content: space-between !important; 
    align-items: center !important;
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 60px !important;
}

/* Left side logo */
.footer-left .footer-logo-img {
    height: 60px !important;
    width: auto !important;
}

/* Right side group (Nav + Copyright) */
.footer-right-group {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 60px !important;
}

/* Navigation Links - Decisive Reset */
.footer-nav {
    display: flex !important;
    flex-direction: row !important;
    gap: 35px !important;
}

/* Targeted Nuclear Link Styling */
.footer-nav a, 
.footer-nav a:link, 
.footer-nav a:visited {
    text-decoration: none !important;
    color: #202124 !important; /* Normal text color */
    font-size: 15px !important;
    font-weight: 400 !important;
    border: none !important;
    padding: 0 !important;
}

.footer-nav a:hover {
    color: #1a73e8 !important;
}

.copyright-text {
    font-size: 14px !important;
    color: #70757a !important;
    margin: 0 !important;
    white-space: nowrap !important;
}

/* ==========================================================================
   4. LOAD MORE BUTTON (Google Pill Style)
   ========================================================================== */
.load-more-container {
    display: flex;
    justify-content: center;
    margin: 60px 0 100px;
}

.load-more-btn {
    background-color: transparent;
    color: #1a73e8;
    border: 1px solid #dadce0;
    padding: 12px 32px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

/* ==========================================================================
   5. MOBILE RESPONSIVE (S24 Ultra / iPhone)
   ========================================================================== */
@media (max-width: 768px) {
    .blog-hero-banner {
        display: flex;
        flex-direction: column;
        margin-bottom: 40px;
    }
    
    .hero-image-container {
        width: 100%;
        height: 300px;
        border-radius: 0;
    }
    
    .hero-content-card {
        width: 90%;
        margin: -60px auto 0;
        padding: 24px;
    }

    .story-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Keep footer stacked ONLY on mobile */
    .footer-inner {
        flex-direction: column !important;
        gap: 25px !important;
        padding: 0 20px !important;
    }

    .footer-right-group {
        flex-direction: column !important;
        gap: 15px !important;
    }
}