/* Color Palette Settings */
:root {
    --med-jungle-green: #00966c;
    --med-dark-teal: #024b43;
    --med-bright-mint: #d1fae5;
    /* Soft clean mint container tone */
    --med-mid-green: #00aa8a;
    --med-gold-accent: #eab308;
    /* Soft golden tint for quadrant markers */
    --med-matrix-teal-bg: #4fbca2;
}

/* Base utility overrides */
.layout-mint-bg {
    background-color: var(--med-bright-mint) !important;
}

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

.layout-teal-accent-bg {
    background-color: var(--med-matrix-teal-bg) !important;
}

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

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

.text-brand-gold {
    color: var(--med-gold-accent) !important;
}

.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);
}

/* ==========================================================================
   SECTION 1 & 2: RECOVERY HERO & ARCHED PROFILE (image_b5b506.png / image_b5b244.png)
   ========================================================================== */
.substance-hero-title {
    font-size: 2.6rem;
    line-height: 1.25;
    letter-spacing: -0.015em;
}

.substance-hero-text {
    font-size: 1.05rem;
    line-height: 1.7;
}

.organic-bg-blob {
    width: 140px;
    height: 240px;
    background-color: #fcefe6;
    border-radius: 0 120px 120px 0;
    opacity: 0.7;
}

/* Replicates the custom rounded group photo cutout seen in image_b5b506.png */
.substance-circle-mask {
    width: 100%;
    max-width: 440px;
    height: 440px;
    overflow: hidden;
    border-radius: 46% 54% 50% 50% / 50% 50% 50% 50%;
}

.hero-circle-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Arched Mask implementation for Introduction Viewport */
.substance-section-heading {
    font-size: 1.85rem;
    line-height: 1.35;
}

.substance-section-text p {
    font-size: 1rem;
    line-height: 1.65;
}

.substance-arch-mask {
    width: 100%;
    max-width: 420px;
    overflow: hidden;
    border-top-left-radius: 12rem !important;
    border-top-right-radius: 12rem !important;
    border-bottom-left-radius: 5rem !important;
    border-bottom-right-radius: 0px !important;
}

.arch-substance-img {
    width: 100%;
    height: auto;
    max-height: 430px;
    object-fit: cover;
}

/* ==========================================================================
   SECTION 3: DETOX QUADRANT MATRIX CONTAINER (image_b5b220.png)
   ========================================================================== */
.max-width-detox-header {
    max-width: 820px;
}

.detox-main-title {
    font-size: 2.2rem;
}

.tracking-wider {
    letter-spacing: 0.05em;
}

.fs-7 {
    font-size: 0.88rem;
}

.detox-quadrant-card {
    background-color: #ffffff;
    border-color: #f3f4f6 !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
}

.detox-quadrant-card:hover {
    transform: translateY(-2px);
}

.quadrant-label {
    font-size: 1.15rem;
    letter-spacing: -0.01em;
}

.detox-matrix-list li {
    position: relative;
    padding-left: 1.25rem;
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.55;
}

.detox-matrix-list li::before {
    content: "\2022";
    position: absolute;
    left: 0;
    color: #000000;
    font-weight: bold;
    font-size: 1.1rem;
    top: -2px;
}

/* ==========================================================================
   SECTION 4 & 5: THERAPY SPLIT & CLINICAL SPECS (image_b5b1ca.png)
   ========================================================================== */
.therapy-banner-title {
    font-size: 2rem;
    line-height: 1.3;
}

.therapy-banner-desc {
    font-size: 1.05rem;
    line-height: 1.65;
}

.meds-section-title {
    font-size: 1.9rem;
}

.substance-clinical-bullets li {
    position: relative;
    padding-left: 1.25rem;
    font-size: 0.98rem;
    color: #374151;
    line-height: 1.6;
}

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

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

/* Medium viewport boundaries adjustment profiles */
@media (min-width: 768px) {
    .border-end-md {
        border-end: 1px solid rgba(255, 255, 255, 0.25) !important;
        border-right: 1px solid rgba(255, 255, 255, 0.25) !important;
    }
}

@media (max-width: 991.98px) {
    .substance-hero-title {
        font-size: 2rem;
    }

    .substance-circle-mask {
        max-width: 320px;
        height: 320px;
        margin-top: 2rem;
    }

    .substance-arch-mask {
        max-width: 100%;
        border-top-left-radius: 6rem !important;
        border-top-right-radius: 6rem !important;
    }

    .therapy-banner-title {
        font-size: 1.6rem;
    }

    .border-end-md {
        border: 0 !important;
        padding-bottom: 1rem;
    }
}