/* Color Palette Registry Design Variables */
:root {
    --psych-ochre-mustard: #c69214;
    --psych-dark-teal: #024b43;
    --psych-brand-green: #00aa8a;
    --psych-warm-sand: #f6f1eb;
    --psych-gold-link: #dca11d;
}

/* Base Contextual Helper Overrides */
.layout-warm-sand-bg {
    background-color: var(--psych-warm-sand) !important;
}

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

.opacity-90 {
    opacity: 0.90;
}

.py-2-5 {
    padding-top: 0.72rem !important;
    padding-bottom: 0.72rem !important;
}

.z-index-2 {
    position: relative;
    z-index: 2;
}

/* ==========================================================================
   SECTION 1: HERO OVERLAY BLOCK SETUP (image_b77b84.jpg)
   ========================================================================== */
.psychiatry-hero-wrapper {
    background-color: var(--psych-ochre-mustard);
    /* Yields the signature bottom curved cut profile */
    border-bottom-left-radius: 50% 25px;
    border-bottom-right-radius: 50% 25px;
}

.psychiatry-hero-title {
    font-size: 2.5rem;
    line-height: 1.22;
    letter-spacing: -0.015em;
}

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

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

.btn-psychiatry-dark:hover {
    background-color: #01352f !important;
    border-color: #01352f !important;
}

/* Replicates custom pill rounded corners on top-left & bottom-right edge */
.psychiatry-hero-mask {
    width: 100%;
    max-width: 480px;
    overflow: hidden;
    border-top-left-radius: 2.5rem !important;
    border-bottom-right-radius: 2.5rem !important;
    border-top-right-radius: 0.5rem !important;
    border-bottom-left-radius: 0.5rem !important;
}

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

/* ==========================================================================
   SECTION 2: CLINICAL CONTENT GRID (image_b77b3f.png)
   ========================================================================== */
.psychiatry-section-heading {
    font-size: 1.85rem;
    letter-spacing: -0.01em;
}

.psychiatry-section-text {
    font-size: 1.02rem;
    line-height: 1.65;
    text-align: justify;
}

/* Flawless asymmetrical border radius matching the secondary component layout */
.psychiatry-clinical-mask {
    width: 100%;
    max-width: 440px;
    overflow: hidden;
    border-top-left-radius: 3rem !important;
    border-bottom-left-radius: 3rem !important;
    border-top-right-radius: 3rem !important;
    border-bottom-right-radius: 0rem !important;
}

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

/* ==========================================================================
   SECTION 3: SERVICE NAVIGATION LINKS COMPONENT (image_b7787c.png)
   ========================================================================== */
.psychiatry-grid-title {
    font-size: 1.65rem;
    color: var(--psych-dark-teal);
    line-height: 1.4;
}

.service-link-card {
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    min-height: 110px;
}

.service-link-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05) !important;
}

.service-card-label {
    font-size: 1.15rem;
}

.service-action-link {
    color: var(--psych-gold-link);
    font-size: 0.95rem;
}

.service-action-link:hover {
    color: #b58209;
    text-decoration: underline !important;
}

/* CSS Vector Representations of Custom Graphic Vectors */
.service-icon-frame {
    width: 60px;
    height: 60px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-shape {
    background-color: var(--psych-dark-teal);
    position: relative;
}

/* Heart element schematic */
.shape-heart {
    width: 32px;
    height: 32px;
    background-color: var(--psych-dark-teal);
    transform: rotate(-45deg);
    border-radius: 0;
    margin-top: 6px;
}

.shape-heart::before,
.shape-heart::after {
    content: "";
    width: 32px;
    height: 32px;
    background-color: var(--psych-dark-teal);
    border-radius: 50%;
    position: absolute;
}

.shape-heart::before {
    top: -16px;
    left: 0;
}

.shape-heart::after {
    left: -16px;
    top: 0;
}

/* Medical Cross element schematic */
.shape-med-cross {
    width: 16px;
    height: 44px;
    border-radius: 4px;
}

.shape-med-cross::after {
    content: "";
    width: 44px;
    height: 16px;
    background-color: var(--psych-dark-teal);
    position: absolute;
    left: -14px;
    top: 14px;
    border-radius: 4px;
}

/* Custom layout spacer behavior for 4.5 columns wide display metric */
@media (min-width: 1200px) {
    .col-xl-4-5 {
        flex: 0 0 38%;
        max-width: 38%;
    }
}

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

    .psychiatry-hero-mask,
    .psychiatry-clinical-mask {
        max-width: 100%;
    }
}