﻿
:root {
    --fs-health-banner: 4.37rem;
    --fs-health-title: 1.95rem;
    --fs-health-text: 1.5rem;
    --fs-health-link: 1.45rem;
    --color-primary: #1e3a8a;
    --color-primary-light: #0d9488;
    --color-accent: #f97316;
    --color-accent-light: #ffedd5;
    --color-dark: #0f172a;
    --color-text: #334155;
    --color-bg: #f1f5f9;
    --color-card: #ffffff;
    --color-shadow: rgba(30, 58, 138, 0.08);
}

/* ----- Reset / Base (scoped) ----- */
.health-section * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.health-section {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--color-bg);
}

    .health-section .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 1.5rem;
    }



.health-banner-overlay {
    width: 100%;
    padding: 2.5rem 1.5rem;
    border-radius: inherit;
}

.health-banner-title {
    font-size: var(--fs-health-banner);
    font-weight: 700;
    color: #fa9e34; /* orange as in your screenshot */
    letter-spacing: 0.06em;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
    margin: 0;
    line-height: 1.2;
}

/* ============================================
        CARDS GRID — 3 per row
        ============================================ */
.health-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 1rem;
}

/* ============================================
        INDIVIDUAL CARD
        ============================================ */
.health-card {
    background: var(--color-card);
    border-radius: 20px;
    box-shadow: 0 6px 24px var(--color-shadow);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

    .health-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 16px 40px rgba(13, 148, 136, 0.15);
    }

.health-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.health-card-image {
    width: 100%;
    overflow: hidden;
    background: #e2e8f0;
    aspect-ratio: 16 / 10;
}

    .health-card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 0.4s ease;
    }

.health-card:hover .health-card-image img {
    transform: scale(1.03);
}

.health-card-content {
    padding: 1.5rem 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.health-card-title {
    font-size: var(--fs-health-title);
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.6rem;
    line-height: 1.3;
}

    .health-card-title a {
        color: inherit;
        text-decoration: none;
        transition: color 0.2s;
    }

        .health-card-title a:hover {
            color: var(--color-accent);
        }

.health-card-text {
    font-size: var(--fs-health-text);
    color: var(--color-text);
    line-height: 1.6;
    margin-bottom: 1.2rem;
    flex: 1;
}

.health-card-link {
    margin-top: auto;
}

.btn-readmore {
    display: inline-block;
    padding: 0.6rem 1.8rem;
    background: var(--color-accent);
    color: #fff;
    font-size: var(--fs-health-link);
    font-weight: 600;
    border-radius: 40px;
    text-decoration: none;
    transition: background 0.25s ease, transform 0.2s;
    border: none;
    cursor: pointer;
}

    .btn-readmore:hover {
        background: #d97706;
        transform: scale(1.02);
    }

/* ============================================
        SLIDE‑UP ANIMATION
        ============================================ */
.slide-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

    .slide-up.visible {
        opacity: 1;
        transform: translateY(0);
    }

/* Optional staggered delays (applied via JS or nth-child) */
.health-card:nth-child(2) .slide-up {
    transition-delay: 0.06s;
}

.health-card:nth-child(3) .slide-up {
    transition-delay: 0.12s;
}

.health-card:nth-child(4) .slide-up {
    transition-delay: 0.18s;
}

.health-card:nth-child(5) .slide-up {
    transition-delay: 0.24s;
}

.health-card:nth-child(6) .slide-up {
    transition-delay: 0.30s;
}

/* ============================================
        RESPONSIVE
        ============================================ */
@media (max-width: 992px) {
    .health-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 640px) {
    .health-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }


    .health-banner-title {
        font-size: 2.4rem;
    }

    .health-card-content {
        padding: 1.25rem;
    }

    .health-card-title {
        font-size: 1.25rem;
    }
}