/* Color Variable Enhancements */
:root {
    --med-jungle-green: #00966c;
    --med-dark-teal: #024b43;
    --med-bright-mint: #ccfbf1;
    --med-mid-green: #00aa8a;
    --med-warm-ivory: #faf6f0;
}

/* Base utility links */
.layout-jungle-bg {
    background-color: var(--med-jungle-green) !important;
}

.layout-mint-bg {
    background-color: var(--med-bright-mint) !important;
}

.layout-warm-bg {
    background-color: var(--med-warm-ivory) !important;
}

.text-brand-dark-teal {
    color: var(--med-dark-teal) !important;
}

.text-brand-green {
    color: var(--med-mid-green) !important;
}

/* ==========================================================================
   SECTION 1 & 2: HERO & UNDERSTANDING COMPONENTS (image_b5b9c7.png / image_b5b9a3.png)
   ========================================================================== */
.med-hero-wrapper {
    background-color: var(--med-jungle-green);
}

.med-hero-title {
    font-size: 2.65rem;
    line-height: 1.25;
    letter-spacing: -0.015em;
}

.med-hero-text {
    font-size: 1.05rem;
    line-height: 1.7;
    text-align: justify;
}

.btn-med-dark-teal {
    background-color: var(--med-dark-teal) !important;
    border-color: var(--med-dark-teal) !important;
    transition: all 0.2s ease-in-out;
}

.btn-med-dark-teal:hover {
    background-color: #01322d !important;
    transform: translateY(-1px);
}

/* Replicates the custom rounded corner masking profile for images */
.med-hero-mask {
    width: 100%;
    max-width: 480px;
    overflow: hidden;
    border-top-left-radius: 2rem !important;
    border-top-right-radius: 2rem !important;
    border-bottom-left-radius: 2rem !important;
    border-bottom-right-radius: 0rem !important;
}

.hero-med-img {
    width: 100%;
    height: auto;
    max-height: 380px;
    object-fit: cover;
}

.med-hero-angle-divider {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 35px;
    background-color: #ffffff;
    clip-path: polygon(0 100%, 100% 100%, 100% 0);
    z-index: 1;
}

/* Intro Section Props */
.med-section-heading {
    font-size: 1.85rem;
}

.med-section-text {
    font-size: 1.02rem;
    line-height: 1.65;
}

.med-intro-mask {
    width: 100%;
    max-width: 440px;
    overflow: hidden;
    border-top-left-radius: 2rem !important;
    border-top-right-radius: 2rem !important;
    border-bottom-right-radius: 2rem !important;
    border-bottom-left-radius: 0rem !important;
}

.intro-med-img {
    width: 100%;
    height: auto;
    max-height: 360px;
    object-fit: cover;
}

.med-custom-bullets li {
    position: relative;
    padding-left: 1.25rem;
    font-size: 1rem;
    color: #4b5563;
}

.med-custom-bullets li::before {
    content: "\2022";
    position: absolute;
    left: 0;
    color: #000000;
    font-weight: bold;
    font-size: 1.15rem;
    top: -2px;
}

/* ==========================================================================
   SECTION 3 & 4: CTA CARD & SYSTEM TYPE ACCORDIONS (image_b5b967.png)
   ========================================================================== */
.med-cta-card {
    border-radius: 1rem !important;
}

.med-cta-title {
    font-size: 1.7rem;
    line-height: 1.4;
}

.btn-med-mid-green {
    background-color: var(--med-mid-green) !important;
    border-color: var(--med-mid-green) !important;
}

/* Custom Accordion Integration matching context branding colors */
.med-types-heading {
    font-size: 1.8rem;
}

.med-custom-accordion .accordion-item {
    overflow: hidden;
}

.med-custom-accordion .accordion-button {
    background-color: var(--med-dark-teal) !important;
    color: #ffffff !important;
    font-size: 1rem;
    font-weight: 500;
    padding: 1rem 1.25rem;
    box-shadow: none !important;
}

.med-custom-accordion .accordion-button:not(.collapsed) {
    background-color: var(--med-dark-teal) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Replicates the custom light mint inner panel fill for open elements */
.med-custom-accordion .accordion-collapse {
    background-color: var(--med-bright-mint) !important;
}

.med-custom-accordion .accordion-body {
    font-size: 0.98rem;
    line-height: 1.6;
}

/* ==========================================================================
   SECTION 5 & 6: NUMBERED TRACKS & FAQ BLOCK (image_b5b92d.png / image_b5b90b.png)
   ========================================================================== */
.max-width-heading {
    max-width: 850px;
    font-size: 1.8rem;
}

.track-title {
    font-size: 1.1rem;
}

.med-numbered-track ul li {
    margin-bottom: 0.35rem;
    font-size: 0.98rem;
}

/* Decorative structural background marks */
.watermark-shape {
    position: absolute;
    color: rgba(0, 0, 0, 0.025);
    user-select: none;
    z-index: 1;
}

.watermark-letter-u {
    font-size: 26rem;
    font-weight: 800;
    font-family: sans-serif;
    left: -40px;
    bottom: -60px;
    line-height: 1;
}

.watermark-circle {
    width: 320px;
    height: 320px;
    border: 50px solid rgba(0, 0, 0, 0.015);
    border-radius: 50%;
    right: -60px;
    top: -20px;
}

/* FAQ UI Overrides */
.med-faq-heading {
    font-size: 2rem;
    letter-spacing: -0.01em;
}

.top-5 {
    top: 2.5rem;
}

.med-faq-accordion .accordion-item {
    border-radius: 0.25rem !important;
}

.med-faq-accordion .accordion-button {
    background-color: var(--med-dark-teal) !important;
    color: #ffffff !important;
    font-size: 1rem;
    font-weight: 500;
}

.med-faq-accordion .accordion-collapse {
    background-color: var(--med-bright-mint) !important;
}

/* Responsive Viewport Overrides */
@media (max-width: 991.98px) {
    .med-hero-title {
        font-size: 2rem;
    }

    .med-cta-title {
        font-size: 1.45rem;
    }

    .med-faq-heading {
        font-size: 1.65rem;
    }

    .med-hero-mask,
    .med-intro-mask {
        max-width: 100%;
        margin-bottom: 1rem;
    }

    .position-sticky {
        position: static !important;
    }

    .watermark-shape {
        display: none;
    }
}