/* =========================================================
   FIT50PLUS — ARTICLES LIBRARY
   assets/css/articles.css
   ========================================================= */


/* =========================================================
   PAGE HERO
   ========================================================= */

.articles-hero {
    position: relative;
    overflow: hidden;
    padding: 110px 0 105px;
    background:
        radial-gradient(
            circle at 85% 25%,
            rgba(52, 140, 112, 0.14),
            transparent 34%
        ),
        linear-gradient(
            135deg,
            #f5faf7 0%,
            #eef7f3 55%,
            #f9fbfa 100%
        );
}

.articles-hero::after {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    right: -150px;
    bottom: -180px;
    border-radius: 50%;
    background: rgba(52, 140, 112, 0.07);
}

.articles-hero-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    padding: 8px 14px;
    border: 1px solid rgba(52, 140, 112, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: #327c67;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.articles-hero h1 {
    margin: 0 0 24px;
    color: #18352d;
    font-size: clamp(3rem, 6vw, 5.5rem);
    line-height: 0.98;
    letter-spacing: -0.055em;
    font-weight: 800;
}

.articles-hero h1 span {
    color: #3b987b;
}

.articles-hero p {
    max-width: 650px;
    margin: 0;
    color: #587069;
    font-size: 1.15rem;
    line-height: 1.8;
}


/* =========================================================
   INTRO
   ========================================================= */

.articles-intro {
    padding: 90px 0 55px;
    background: #ffffff;
}

.section-heading.centered {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.section-heading h2 {
    margin: 0 0 16px;
    color: #19362e;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.section-heading p {
    max-width: 680px;
    margin: 0 auto;
    color: #657872;
    font-size: 1.04rem;
    line-height: 1.75;
}


/* =========================================================
   ARTICLE CATEGORY SECTION
   ========================================================= */

.article-category {
    padding: 85px 0 100px;
    background: #ffffff;
}

.article-category.category-alt {
    background: #f6faf8;
}

.category-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 42px;
}

.category-heading > div {
    max-width: 760px;
}

.category-label {
    display: inline-block;
    margin-bottom: 12px;
    color: #39866e;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.category-heading h2 {
    margin: 0 0 13px;
    color: #1b3931;
    font-size: clamp(1.9rem, 3vw, 2.65rem);
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.category-heading p {
    max-width: 680px;
    margin: 0;
    color: #697b76;
    font-size: 1rem;
    line-height: 1.7;
}

.category-button {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border: 1px solid #d5e4de;
    border-radius: 12px;
    background: #ffffff;
    color: #286b57;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.category-button:hover {
    transform: translateY(-2px);
    border-color: #9dc8b9;
    box-shadow: 0 10px 25px rgba(32, 79, 66, 0.08);
}


/* =========================================================
   ARTICLE GRID
   ========================================================= */

.article-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
}


/* =========================================================
   ARTICLE CARD
   ========================================================= */

.article-card {
    overflow: hidden;
    border: 1px solid #e2ebe7;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 8px 28px rgba(31, 67, 57, 0.045);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.article-card:hover {
    transform: translateY(-6px);
    border-color: #d1e2db;
    box-shadow: 0 18px 42px rgba(31, 67, 57, 0.10);
}


/* =========================================================
   ARTICLE CARD IMAGE
   ========================================================= */

.article-card-image {
    position: relative;
    height: 225px;
    overflow: hidden;
    background:
        linear-gradient(
            135deg,
            #dcece5,
            #b9d8cb
        );
}

.article-card-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0) 45%,
            rgba(15, 43, 35, 0.15) 100%
        );
}


/*
   These classes are intentionally ready for
   actual images later.

   Example:

   .nutrition-image-1 {
       background-image: url("../images/articles/nutrition/...");
   }
*/


/* Nutrition */

.nutrition-image-1 {
    background:
        linear-gradient(135deg, #dceee5, #b7d8c8);
}

.nutrition-image-2 {
    background:
        linear-gradient(135deg, #eee4d3, #d5b98e);
}

.nutrition-image-3 {
    background:
        linear-gradient(135deg, #e0ece9, #aacfc2);
}

.nutrition-image-4 {
    background:
        linear-gradient(135deg, #e6efd9, #bdd39b);
}

.nutrition-image-5 {
    background:
        linear-gradient(135deg, #f0e4ce, #dcc29a);
}

.nutrition-image-6 {
    background:
        linear-gradient(135deg, #e9dfd2, #d0bca3);
}


/* Protein */

.protein-image-1 {
    background:
        linear-gradient(135deg, #e4ebe8, #b8ccc5);
}

.protein-image-2 {
    background:
        linear-gradient(135deg, #eee3d0, #d7b887);
}

.protein-image-3 {
    background:
        linear-gradient(135deg, #dcebe2, #afd0bd);
}

.protein-image-4 {
    background:
        linear-gradient(135deg, #e9e2d9, #cdbca8);
}


/* Gut Health */

.gut-image-1 {
    background:
        linear-gradient(135deg, #e3eee0, #b7d2ad);
}

.gut-image-2 {
    background:
        linear-gradient(135deg, #e9e2d3, #d2c09d);
}

.gut-image-3 {
    background:
        linear-gradient(135deg, #e4edd9, #c0d4a5);
}

.gut-image-4 {
    background:
        linear-gradient(135deg, #dce9e5, #b2ccc5);
}


/* Exercise */

.exercise-image-1 {
    background:
        linear-gradient(135deg, #dcece8, #afd0c6);
}

.exercise-image-2 {
    background:
        linear-gradient(135deg, #e1eee1, #b8d3b8);
}

.exercise-image-3 {
    background:
        linear-gradient(135deg, #e8e5d6, #cfc7a5);
}

.exercise-image-4 {
    background:
        linear-gradient(135deg, #dce8ec, #aec7d0);
}


/* Healthy Aging */

.aging-image-1 {
    background:
        linear-gradient(135deg, #e5ede8, #bed3c7);
}

.aging-image-2 {
    background:
        linear-gradient(135deg, #e8e4dc, #cfc3ae);
}

.aging-image-3 {
    background:
        linear-gradient(135deg, #dcece7, #b3d1c7);
}

.aging-image-4 {
    background:
        linear-gradient(135deg, #e8e2ec, #cbbdd5);
}


/* =========================================================
   ARTICLE CARD CONTENT
   ========================================================= */

.article-card-content {
    padding: 24px 24px 26px;
}

.article-tag {
    display: inline-block;
    margin-bottom: 11px;
    color: #3b866e;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.article-card h3 {
    margin: 0 0 12px;
    color: #203c34;
    font-size: 1.28rem;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.article-card p {
    margin: 0 0 19px;
    color: #6a7c76;
    font-size: 0.93rem;
    line-height: 1.7;
}

.article-link {
    display: inline-flex;
    align-items: center;
    color: #2f7b63;
    font-size: 0.9rem;
    font-weight: 750;
    text-decoration: none;
    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.article-link:hover {
    color: #1e5948;
    transform: translateX(3px);
}


/* =========================================================
   CARE MESSAGE
   ========================================================= */

.articles-care {
    padding: 90px 0;
    background: #ffffff;
}

.articles-care-card {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    padding: 55px 60px;
    border-radius: 24px;
    background:
        linear-gradient(
            135deg,
            #173c31 0%,
            #245847 55%,
            #347760 100%
        );
    box-shadow: 0 22px 55px rgba(24, 65, 53, 0.14);
}

.articles-care-card::before {
    content: "";
    position: absolute;
    width: 330px;
    height: 330px;
    right: -100px;
    top: -160px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.13);
}

.articles-care-card::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    right: 60px;
    bottom: -145px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.10);
}

.articles-care-card > div {
    position: relative;
    z-index: 2;
    max-width: 670px;
}

.articles-care-card .category-label {
    color: rgba(255, 255, 255, 0.72);
}

.articles-care-card h2 {
    margin: 0 0 17px;
    color: #ffffff;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.articles-care-card p {
    max-width: 590px;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1rem;
    line-height: 1.75;
}

.articles-care-card .button {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 23px;
    border-radius: 12px;
    background: #ffffff;
    color: #225b49;
    font-weight: 750;
    text-decoration: none;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.articles-care-card .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}


/* =========================================================
   RESPONSIVE — LARGE TABLETS
   ========================================================= */

@media (max-width: 1100px) {

    .articles-hero {
        padding: 90px 0;
    }

    .article-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .category-heading {
        align-items: flex-start;
    }

    .articles-care-card {
        padding: 48px;
    }

}


/* =========================================================
   RESPONSIVE — TABLETS
   ========================================================= */

@media (max-width: 768px) {

    .articles-hero {
        padding: 75px 0 70px;
    }

    .articles-hero h1 {
        font-size: clamp(2.7rem, 11vw, 4.2rem);
    }

    .articles-hero p {
        font-size: 1rem;
        line-height: 1.7;
    }

    .articles-intro {
        padding: 65px 0 35px;
    }

    .article-category {
        padding: 65px 0 75px;
    }

    .category-heading {
        display: block;
        margin-bottom: 32px;
    }

    .category-button {
        margin-top: 22px;
    }

    .article-grid {
        gap: 20px;
    }

    .article-card-image {
        height: 205px;
    }

    .articles-care {
        padding: 65px 0;
    }

    .articles-care-card {
        display: block;
        padding: 42px 32px;
    }

    .articles-care-card .button {
        margin-top: 28px;
    }

}


/* =========================================================
   RESPONSIVE — MOBILE
   ========================================================= */

@media (max-width: 560px) {

    .articles-hero {
        padding: 60px 0;
    }

    .hero-eyebrow {
        font-size: 0.7rem;
        letter-spacing: 0.06em;
    }

    .articles-hero h1 {
        font-size: 2.8rem;
        letter-spacing: -0.045em;
    }

    .articles-hero p {
        font-size: 0.95rem;
    }

    .articles-intro {
        padding: 55px 0 25px;
    }

    .section-heading h2 {
        font-size: 1.9rem;
    }

    .section-heading p {
        font-size: 0.94rem;
    }

    .article-category {
        padding: 55px 0 65px;
    }

    .category-heading h2 {
        font-size: 1.8rem;
    }

    .category-heading p {
        font-size: 0.94rem;
    }

    .category-button {
        width: 100%;
    }

    .article-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .article-card-image {
        height: 220px;
    }

    .article-card-content {
        padding: 22px 21px 24px;
    }

    .article-card h3 {
        font-size: 1.22rem;
    }

    .articles-care {
        padding: 55px 0;
    }

    .articles-care-card {
        padding: 36px 25px;
        border-radius: 20px;
    }

    .articles-care-card h2 {
        font-size: 2rem;
    }

}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

.article-link:focus-visible,
.category-button:focus-visible,
.articles-care-card .button:focus-visible {
    outline: 3px solid rgba(58, 137, 111, 0.35);
    outline-offset: 4px;
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .article-card,
    .category-button,
    .article-link,
    .articles-care-card .button {
        transition: none;
    }

}