/* ========================================
   OPTIMAL HEALTH BLOG SECTION
   ======================================== */

.blog-section {
    background-color: #ffffff;
}

.blog-container {
    padding: 64px 16px;
}

.blog-title {
    font-family: "loew-variable", sans-serif;
    font-weight: 700;
    font-stretch: 10%;
    font-size: 38px;
    line-height: 90%;
    letter-spacing: 0;
    text-transform: uppercase;
    color: #020202;
    margin: 0 0 32px 0;
}

/* Slider */
.blog-slider {
    position: relative;
    overflow: hidden;
    margin-bottom: 32px;
}

.blog-slider-track {
    display: flex;
    gap: 0;
    transition: transform 0.3s ease;
}

/* Article Card */
.blog-article {
    width: 100%;
    flex: 0 0 100%;
    display: flex;
    flex-direction: column;
    gap: 24px;
    box-sizing: border-box;
    /* Interactivity */
    transition: transform 300ms ease, box-shadow 300ms ease;
    text-decoration: none;
    color: inherit;
    border-radius: 12px;
    /* Smooth corners for shadow */
    cursor: pointer;
}

.blog-article:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    /* Similar to What We Do */
}

/* Article Image */
.blog-article-image {
    width: 100%;
    height: 369px;
    border-radius: 8px;
    overflow: hidden;
    /* Fix for border-radius clipping with transforms */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.blog-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Article Content */
.blog-article-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Category Label */
.blog-category {
    display: inline-block;
    width: fit-content;
    padding: 5px 10px;
    background-color: #F0F0F0;
    border-radius: 5px;
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 110%;
    letter-spacing: 0%;
    text-transform: uppercase;
    color: var(--color-charcoal);
}

/* Article Title */
.blog-article-title {
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 100%;
    letter-spacing: -0.48px;
    color: var(--color-charcoal);
    margin: 0;
}

/* Article Text */
.blog-article-text {
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 110%;
    letter-spacing: 0%;
    color: var(--color-charcoal);
    margin: 0;
}

/* Read More Link */
.blog-read-more {
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 110%;
    letter-spacing: 0%;
    color: var(--color-charcoal);
    text-decoration: underline;
    transition: opacity 200ms ease;
}

.blog-read-more:hover {
    opacity: 0.7;
}

/* Navigation */
.blog-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
}

/* Dots - Matching health goals design */

.blog-dots {
    gap: 8px;
    display: flex;
}

.blog-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background-color: var(--color-charcoal);
    opacity: 0.2;
    cursor: pointer;
    transition: background-color 200ms ease;
}

.blog-dot:hover {
    background-color: #B3B3B3;
}

.blog-dot.active {
    opacity: 1;
}

/* Arrows - Matching health goals design */
.blog-arrows {
    display: flex;
    gap: 16px;
}

.blog-arrow {
    width: 48px;
    height: 48px;
    padding: 0;
    border: none;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 200ms ease;
}

.blog-arrow:hover {
    opacity: 0.7;
}

.blog-arrow img {
    width: 18px;
    height: 20px;
    object-fit: contain;
}

.blog-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.blog-arrow:disabled:hover {
    opacity: 0.3;
}

/* View All Link */
.blog-view-all {
    display: inline-block;
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 110%;
    letter-spacing: -3%;
    color: var(--color-charcoal);
    text-decoration: none;
    transition: opacity 200ms ease;
}

.blog-view-all:hover {
    opacity: 0.7;
}

@media screen and (min-width: 768px) and (max-width: 1439px) {
    .blog-article {
        /* Show ~2 items. Gap is space-between usually?
           In mobile, it's 100%.
           In desktop, fixed width.
           Here let's try 50% relative.
        */
        flex: 0 0 48%;
        min-width: 0;
    }

    .blog-slider-track {
        gap: 4%;
        /* Space between items */
    }
}

@media screen and (min-width: 1440px) {
    .blog-container {
        padding: 80px 64px;
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        align-items: center;
    }

    .blog-title {
        font-size: 64px;
        grid-column: 1;
        grid-row: 1;
        margin-bottom: 0;
    }

    .blog-view-all {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
    }

    .blog-slider {
        grid-column: 1 / -1;
        grid-row: 2;
        margin-top: 32px;
        /* Space from title row */
        margin-bottom: 0;
    }

    .blog-slider-track {
        transform: none !important;
        gap: 32px;
        width: 100%;
    }

    .blog-navigation {
        display: none;
    }

    .blog-article {
        flex: 0 0 416px;
        min-width: 416px;
        height: 701px;
    }

    .blog-article-image {
        height: 486px;
        /* Adjusted to balance the height */
    }

    .blog-article-text {
        margin-top: -8px;
    }
}

@media screen and (min-width: 1728px) {
    .blog-article {
        flex: 0 0 32% !important;
        min-width: 0;
        /* Allow shrinking if needed, but flex:1 will grow */
        height: auto;
        /* Let height adjust naturally or stay as needed */
    }

    .blog-article-image {
        height: 540px;
        /* Increase height for larger screens to maintain aspect ratio feel */
    }
}