.merimies-blog-section {
    padding: 120px 0 120px 0;
    background-color: #ffffff;
}

/* Header & Categories Filtering Blocks Alignment */
.blog-header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eeeeee;
    padding-bottom: 15px;
    margin-bottom: 40px;
}

.blog-main-brand-title {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin: 0;
}

.blog-filter-button-group {
    display: flex;
    gap: 10px;
}

.filter-btn {
    background-color: #ffffff;
    border: 1px solid #222222;
    color: #222222;
    padding: 6px 18px;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.2s ease-in-out;
}

.filter-btn:hover {
    background-color: #f8f8f8;
}

.filter-btn.active {
    background-color: var(--primary); /* Turns coral pink on active status */
    border-color:  var(--primary);
    color: #ffffff;
}

/* --------------------------------------------------------------------------
   3-Column Symmetric Grid Card Design Specs
   -------------------------------------------------------------------------- */
.blog-grid-card-link {
    display: block;
    text-decoration: none !important;
    color: inherit;
    margin-bottom: 40px;
}

/* Precise Aspect Ratio Calculations matching 555 x 317 PX Layout Rules */
.blog-card-media-box {
    width: 100%;
    aspect-ratio: 555 / 317; /* Keeps fluid scale identical across all image properties */
    overflow: hidden;
    background-color: #f7f7f7;
    margin-bottom: 15px;
}

.blog-card-media-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.2s ease;
}

.blog-grid-card-link:hover .blog-card-media-box img {
    opacity: 0.9;
}

/* Subtitle Row Elements Placement (Category / Date Grouping) */
.blog-card-sub-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.72rem;
    font-weight: 600;
    color: #777777;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

/* Post main headline settings */
.blog-card-headline-title {
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
    line-height: 1.4;
}

/* Paragraph text summary content wrapper */
.blog-card-body-paragraph {
    font-size: 0.82rem;
    color: #333333;
    line-height: 1.6;
    margin-bottom: 15px;
    /* Clean standard clamp limits excerpt snippet views into exactly 2 rows */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Elegant Underlined Action Links */
.blog-card-action-anchor {
    font-size: 0.75rem;
    font-weight: 600;
    color: #222222;
    letter-spacing: 1px;
    text-decoration: underline !important;
    text-underline-offset: 4px;
    text-transform: uppercase;
}



/* Responsive Adaptive Fluid Refittings */
@media (max-width: 991.98px) {
    .blog-header-wrapper { flex-direction: column; align-items: flex-start; gap: 20px; }
    .blog-filter-button-group { width: 100%; overflow-x: auto; padding-bottom: 5px; }
    .filter-btn { flex-shrink: 0; }
}