:root {
    --bg-black: #0A0A0A;
    --text-white: #FFFFFF;
    --text-gray: #CCCCCC;
    --primary-orange: #FF5C00;
    --font-inter: 'Inter', sans-serif;
    --transition: all 0.3s ease;
}

.blog-section {
    background-color: var(--bg-black);
    padding: 100px 0;
    font-family: var(--font-inter);
    color: var(--text-white);
}


/* 2-Column Grid Implementation */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* Exactly 2 per row */
    gap: 30px;
    align-items: start;
}


/* Responsive adjustment for tablets/phones */

@media (max-width: 992px) {
    .blog-grid {
        grid-template-columns: 1fr;
        /* Stacks to 1 per row on smaller screens */
    }
}

.blog-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    height: 100%;
    /* Ensures cards in the same row are equal height */
    display: flex;
    flex-direction: column;
}


/* Image Focal Point Fix */

.blog-slider-container {
    position: relative;
    height: 450px;
    overflow: hidden;
    background: #111;
}

.slides img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    /* Prevents cutting off heads */
    transition: transform 0.5s ease;
}

.blog-card:hover .slides img {
    transform: scale(1.05);
}

.blog-card:hover {
    border-color: var(--primary-orange);
}

.blog-content {
    padding: 30px;
    flex-grow: 1;
}

.meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.category {
    color: var(--primary-orange);
}

.date {
    color: var(--text-gray);
}

.blog-content h3 {
    font-size: 1.6rem;
    margin-bottom: 20px;
    line-height: 1.3;
}

.excerpt p {
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 15px;
    font-size: 1rem;
}


/* Slider Navigation using your Primary Orange */

.slider-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-orange);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: var(--transition);
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

.slider-nav button:hover {
    background: var(--text-white);
    color: var(--primary-orange);
}


/* Section Header Styles */

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.8rem;
    letter-spacing: 2px;
}

.header-line {
    width: 80px;
    height: 4px;
    background: var(--primary-orange);
    margin: 20px auto;
}


/*Blog moble*/


/* ============================================================
   COMPLETE MOBILE & TABLET STYLES FOR ECCA BLOG
   ============================================================ */

@media (max-width: 768px) {
    /* 1. Section Container & Header Fixes */
    .blog-section {
        /* CRITICAL FIX: Increased top padding to push content below the fixed nav */
        padding: 120px 0 60px 0 !important;
    }
    .section-header {
        padding: 0 20px;
        margin-bottom: 40px;
        width: 100%;
        box-sizing: border-box;
        /* Prevents clipping if the text is long */
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .section-header h2 {
        /* Fixes cut-off by ensuring visibility and scaling down */
        font-size: 1.8rem !important;
        line-height: 1.2;
        word-wrap: break-word;
        text-align: center;
        letter-spacing: 1px;
        margin: 0 0 10px 0;
        color: var(--text-white);
        width: 100%;
    }
    .header-line {
        width: 60px;
        height: 3px;
        margin: 15px auto;
        background: var(--primary-orange);
    }
    .section-header p {
        font-size: 0.9rem;
        padding: 0 10px;
        color: var(--text-gray);
        text-align: center;
    }
    /* 2. Grid & Card Layout */
    .blog-grid {
        grid-template-columns: 1fr !important;
        gap: 40px;
        padding: 0 15px;
    }
    .blog-card {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 0px;
    }
    /* 3. Photography & Slider Optimization */
    .blog-slider-container {
        height: 380px;
    }
    .slides img {
        /* Ensures faces/heads stay in frame */
        object-position: top center;
        transition: transform 0.5s ease;
    }
    /* 4. Navigation (Touch Friendly) */
    .slider-nav button {
        width: 45px;
        height: 45px;
        background: rgba(255, 92, 0, 0.85);
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .prev-btn {
        left: 5px;
    }
    .next-btn {
        right: 5px;
    }
    /* 5. Typography & Content */
    .blog-content {
        padding: 25px 20px;
    }
    .blog-content h3 {
        font-size: 1.4rem;
        margin-bottom: 15px;
        line-height: 1.3;
        font-weight: 700;
    }
    .meta {
        flex-direction: column;
        gap: 5px;
        font-size: 0.75rem;
        margin-bottom: 12px;
    }
    .excerpt p {
        font-size: 0.95rem;
        line-height: 1.6;
        color: var(--text-gray);
        margin-bottom: 12px;
    }
}


/* Specific fix for very small devices (e.g., iPhone SE) */

@media (max-width: 400px) {
    .blog-section {
        padding-top: 100px !important;
    }
    .blog-slider-container {
        height: 320px;
    }
    .section-header h2 {
        font-size: 1.6rem !important;
    }
}