/* ==========================================================================
   BLOG POST SPECIFIC STYLES (Google "The Keyword" Inspired)
   ========================================================================== */

.blog-post-wrapper {
    padding-top: 100px !important;
    padding-left: 60px !important;
    padding-right: 60px !important;
    align-items: flex-start !important; 
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

/* FIX: Clear potential margin/padding from global container to remove block */
main.page-container, 
.blog-post-wrapper {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.post-header {
    width: 100%;
    margin-bottom: 50px;
    border-bottom: 1px solid #eee;
    padding-bottom: 30px;
    text-align: left;
}

.post-title {
    font-size: 56px;
    font-weight: 400; 
    line-height: 1.1;
    margin-bottom: 20px;
    color: #202124;
}

.post-meta-line {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
    color: #5f6368;
    margin-bottom: 25px;
}

.meta-pipe {
    color: #dadce0;
    font-weight: 300;
}

.executive-summary {
    font-size: 18px;
    line-height: 1.6;
    color: #3c4043;
    max-width: 850px;
    margin-top: 20px;
}

.post-body {
    font-size: 18px;
    line-height: 1.8;
    color: #3c4043;
    width: 100%;
    margin-top: 40px;
    text-align: left;
}

.post-body p { margin-bottom: 25px; }

.post-image { 
    width: 100%; 
    border-radius: 16px; 
    margin: 40px 0; 
    box-shadow: 0 1px 3px rgba(60,64,67,0.3);
}

/* ==========================================================================
   FULL-SCREEN EDGE-TO-EDGE SLIDER — PERFORMANCE OPTIMIZED
   ========================================================================== */

.interlink-section {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-top: 100px;
    /* RED BLOCK FIX: Resetting bottom padding to 0 prevents gap */
    padding: 80px 0 0; 
    margin-bottom: 0 !important;
    border-top: 1px solid #eee;
    background-color: #fff;
    box-sizing: border-box;
    overflow: hidden;
}

.interlink-title {
    max-width: 1200px;
    margin: 0 auto 40px;
    text-align: left;
    font-size: 32px;
    font-weight: 400;
    color: #202124;
    padding: 0 60px;
}

.interlink-slider {
    display: flex;
    gap: 24px;
    padding: 10px 60px 80px; /* Padding bottom handles card shadows only */
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; 
    -ms-overflow-style: none;
    width: 100%;
    box-sizing: border-box;
    /* PERFORMANCE: Prepares browser for hardware acceleration to prevent lag */
    will-change: scroll-position;
    cursor: grab;
    user-select: none; 
}

.interlink-slider:active {
    cursor: grabbing;
}

.interlink-slider::-webkit-scrollbar { display: none; }

.interlink-card {
    scroll-snap-align: start;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #dadce0;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    flex: 0 0 calc(33.333% - 40px);
    min-width: 280px;
    /* Prevents dragging card images instead of sliding */
    -webkit-user-drag: none;
}

.interlink-card:hover {
    box-shadow: 0 1px 3px rgba(60,64,67,0.3), 0 4px 8px 3px rgba(60,64,67,0.15);
    transform: translateY(-4px);
}

.interlink-card img { 
    width: 100%; 
    height: 240px; 
    object-fit: cover; 
    /* Prevent image dragging from interrupting slider drag */
    pointer-events: none; 
}

.card-text { 
    padding: 24px; 
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-tag {
    font-size: 11px;
    font-weight: 700;
    color: #5f6368;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 12px;
}

.card-text h4 { 
    font-size: 20px; 
    font-weight: 400; 
    margin-bottom: 12px; 
    color: #202124; 
    line-height: 1.3; 
}

.card-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #5f6368;
}

.explore-all-card {
    background: #f8f9fa !important;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 400px;
    border: 1px dashed #dadce0 !important;
}

.explore-all-card h4 {
    color: #202124;
    font-size: 22px;
    font-weight: 400;
}

.big-arrow-btn {
    font-size: 52px;
    color: #202124;
    margin-top: 15px;
    transition: transform 0.3s ease;
}

.explore-all-card:hover .big-arrow-btn {
    transform: translateX(12px);
}

/* FOOTER BLOCK FIX: Join elements by zeroing margins */
footer {
    margin-top: 0 !important;
    padding-top: 40px !important;
    background-color: #fff;
    position: relative;
    z-index: 10;
}

@media screen and (max-width: 768px) {
    .blog-post-wrapper {
        padding-top: 120px !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .interlink-section {
        padding: 40px 0 0;
    }

    .interlink-title {
        padding: 0 20px;
        font-size: 24px;
    }

    .interlink-slider {
        padding: 10px 20px 40px;
    }

    .interlink-card {
        flex: 0 0 85%;
        min-width: unset;
    }

    .post-title { font-size: 32px; }
}