/* =========================================================
   MN ENGINEERING - BLOG ARCHIVE PAGE
   ========================================================= */

.mn-blog-page {
    background: #ffffff;
    color: #172b4d;
    font-family: 'Inter', sans-serif;
}

.blog-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================================
   BLOG BROWSE CATEGORIES
   ========================================================= */

.blog-browse {
    padding: 20px 0;
    border-bottom: 1px solid #eaeaea;
}

.blog-browse-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.blog-browse-inner span, .blog-browse-inner a {
    font-size: 11px;
    font-weight: 700;
    color: #1b3a6b;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s ease;
}

.blog-browse-inner span:hover, .blog-browse-inner a:hover {
    color: #F4A825;
}

.blog-browse-inner .browse-title {
    font-size: 14px;
    font-weight: 500;
    color: #1b3a6b;
    letter-spacing: 0;
    text-transform: none;
    margin-right: 10px;
    cursor: default;
}

.blog-browse-inner .browse-active {
    background: #1b3a6b;
    color: #ffffff;
    padding: 6px 16px;
    border-radius: 30px;
}
.blog-browse-inner .browse-active:hover {
    color: #ffffff;
}

/* =========================================================
   FEATURED ARTICLE
   ========================================================= */

.blog-featured {
    background: #fdfaf6;
    padding: 70px 0;
}

.blog-featured-inner {
    display: flex;
    align-items: center;
    gap: 60px;
}

.blog-featured-image {
    flex: 1;
    position: relative;
}

.blog-featured-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 4/3;
}

/* Featured Article Badge */
.blog-featured-image::before {
    content: "FEATURED ARTICLE";
    position: absolute;
    top: -20px;
    left: -20px;
    background: #1b3a6b;
    color: #fff;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1.2;
    padding: 10px;
    z-index: 2;
}

.blog-featured-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-featured-label {
    font-size: 11px;
    font-weight: 700;
    color: #1b3a6b;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.blog-featured-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    line-height: 1.2;
    color: #1b3a6b;
    margin: 0 0 20px 0;
}

.blog-featured-content p {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 35px;
    max-width: 90%;
}

.blog-read-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #1A56DB;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    padding: 14px 40px;
    border-radius: 60px;
    align-self: flex-start;
    transition: background 0.3s ease;
    border: none;
    cursor: pointer;
}

.blog-read-button:hover {
    background: #0d2242;
}

/* =========================================================
   LATEST INSIGHTS
   ========================================================= */

.blog-section-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 80px 0 50px;
}

.blog-section-heading h2 {
    font-size: 12px;
    font-weight: 700;
    color: #657083;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0;
    padding: 0 25px;
}

.blog-section-heading span {
    flex: 1;
    height: 1px;
    background: #e0e0e0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 80px;
}

.blog-card {
    display: flex;
    flex-direction: column;
    border: 1px solid #eaeaea;
    background: #ffffff;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.blog-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transform: translateY(-5px);
}

.blog-card-image {
    display: block;
    width: 100%;
    height: 240px; /* Fixed height to keep cards compact and uniform */
    overflow: hidden;
    background: #f8f9fa; /* Light background for contained images */
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Changed to cover so spaces aren't visible */
    display: block;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    line-height: 1.35;
    margin: 15px 0;
}

.blog-card-content h3 a {
    color: #1b3a6b;
    text-decoration: none;
}

.blog-card-content p {
    font-size: 14px;
    color: #657083;
    line-height: 1.6;
    margin-bottom: 25px;
    flex: 1;
}

.blog-card-read {
    font-size: 11px;
    font-weight: 700;
    color: #1b3a6b;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
}

.no-blog-posts {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 16px;
    color: #666;
    padding: 40px 0;
}

/* =========================================================
   PRODUCT CTA
   ========================================================= */

.blog-product-cta {
    background: #fdfaf6;
    padding: 70px 0;
    margin: 80px 0;
}

.blog-product-cta-inner {
    display: flex;
    align-items: center;
    gap: 60px;
}

.blog-product-cta-content {
    flex: 1;
}

.blog-product-cta-content span {
    font-size: 11px;
    font-weight: 700;
    color: #1b3a6b;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 15px;
}

.blog-product-cta-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 38px;
    color: #1b3a6b;
    margin: 0 0 20px;
    line-height: 1.2;
}

.blog-product-cta-content p {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 450px;
}

.blog-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #1A56DB;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    padding: 14px 40px;
    border-radius: 60px;
    transition: background 0.3s ease;
}

.blog-cta-button:hover {
    background: #0d2242;
}

.blog-product-cta-products {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

/* =========================================================
   MORE INSIGHTS GRID
   ========================================================= */

.more-insights {
    padding-bottom: 80px;
}

.more-insights-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
}

.more-insight-item {
    display: flex;
    flex-direction: column;
}

.insight-icon {
    font-size: 24px;
    color: #1b3a6b;
    margin-bottom: 20px;
}

.more-insight-item h3 {
    font-size: 15px;
    font-weight: 700;
    color: #1b3a6b;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.more-insight-item p {
    font-size: 13px;
    color: #657083;
    line-height: 1.6;
    margin: 0;
}

/* =========================================================
   RESPONSIVE STYLES
   ========================================================= */

@media (max-width: 1024px) {
    .blog-featured-inner,
    .blog-product-cta-inner {
        flex-direction: column;
        gap: 40px;
    }
    
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .more-insights-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .blog-card-image {
        height: 130px;
    }
    
    .blog-card-content {
        padding: 15px;
    }
    
    .blog-card-content h3 {
        font-size: 16px;
        margin: 10px 0;
    }
    
    .blog-card-content p {
        font-size: 13px;
        margin-bottom: 15px;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .more-insights-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .blog-featured-content h1,
    .blog-product-cta-content h2 {
        font-size: 32px;
    }
    
    .blog-featured {
        padding: 40px 0;
    }

    /* Mobile Blog Categories Pill Menu */
    .blog-browse-inner {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 12px;
        padding-bottom: 5px;
        -ms-overflow-style: none;  /* IE and Edge */
        scrollbar-width: none;  /* Firefox */
    }

    .blog-browse-inner::-webkit-scrollbar {
        display: none; /* Chrome, Safari and Opera */
    }

    .blog-browse-inner .browse-title {
        display: none;
    }

    .blog-browse-inner a, .blog-browse-inner span {
        white-space: nowrap;
        padding: 8px 18px;
        border-radius: 30px;
        background: #f4f6f9;
        border: 1px solid #e1e8f0;
        font-size: 11px;
    }

    .blog-browse-inner .browse-active {
        background: #1b3a6b;
        color: #ffffff;
        border-color: #1b3a6b;
    }

    /* Reduce size of featured article badge on mobile */
    .blog-featured-image::before {
        width: 60px;
        height: 60px;
        font-size: 7px;
        top: -10px;
        left: -10px;
        padding: 5px;
    }
}

@media (max-width: 480px) {
    .more-insights-grid {
        grid-template-columns: 1fr;
    }
}