/* =====================================================
   HICAP ABOUT PAGE — COMMITMENT AND CTA REFINEMENT
===================================================== */

/* Commitment card: balanced two-column layout */
body.page-id-33 .hicap-unbiased-section {
    display: grid !important;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    column-gap: clamp(28px, 5vw, 65px);
    row-gap: 14px;
    align-items: start;
    padding: clamp(28px, 4vw, 48px) !important;
    border-radius: 22px;
    background: linear-gradient(125deg, #f0faf8, #e6f3f2);
    border: 1px solid #d4e9e6;
    border-left: 5px solid #0b8b88;
    box-shadow: 0 12px 32px rgba(14, 57, 65, .07);
}

/* Main content stays in left column */
body.page-id-33 .hicap-unbiased-section
    > .hicap-section-label,
body.page-id-33 .hicap-unbiased-section > h2,
body.page-id-33 .hicap-unbiased-section
    > p:not(.hicap-program-note) {
    grid-column: 1;
    margin: 0 !important;
    max-width: none !important;
    width: 100%;
}

body.page-id-33 .hicap-unbiased-section
    > .hicap-section-label {
    color: #087b78 !important;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
}

body.page-id-33 .hicap-unbiased-section > h2 {
    color: #123b4a !important;
    font-size: clamp(26px, 3vw, 34px);
    line-height: 1.2;
    letter-spacing: -.025em;
    margin-bottom: 8px !important;
}

body.page-id-33 .hicap-unbiased-section
    > p:not(.hicap-program-note) {
    color: #294b57 !important;
    font-size: 15px;
    line-height: 1.75;
}

/* Organizational details become a right-side panel */
body.page-id-33 .hicap-unbiased-section
    > .hicap-program-note {
    grid-column: 2;
    grid-row: 1 / span 5;
    align-self: stretch;
    display: block;
    width: 100%;
    max-width: none !important;
    margin: 0 !important;
    padding: 28px !important;
    background: #ffffff;
    color: #294b57 !important;
    border: 1px solid #d8e9e8;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(12, 58, 66, .06);
    font-size: 15px;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

body.page-id-33 .hicap-program-note a {
    color: #08747c !important;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-color: #81cfc6;
    transition: color .2s, text-decoration-color .2s;
}

body.page-id-33 .hicap-program-note a:hover {
    color: #064750 !important;
    text-decoration-color: #064750;
}

/* Counseling CTA */
body.page-id-33 .hicap-page-cta {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 28px;
    padding: clamp(30px, 4vw, 48px) !important;
    border-radius: 22px;
    background: linear-gradient(
        115deg,
        #103b4b 0%,
        #17666a 100%
    ) !important;
    box-shadow: 0 14px 32px rgba(13, 59, 70, .14);
}

body.page-id-33 .hicap-page-cta > div {
    min-width: 0;
}

body.page-id-33 .hicap-page-cta
    .hicap-section-label {
    color: #91f4e6 !important;
    opacity: 1 !important;
    font-weight: 800;
    letter-spacing: .12em;
}

body.page-id-33 .hicap-page-cta h2 {
    color: #ffffff !important;
    opacity: 1 !important;
    font-size: clamp(25px, 3vw, 34px);
    line-height: 1.2;
    margin: 12px 0 !important;
}

body.page-id-33 .hicap-page-cta p {
    color: #e7f8f5 !important;
    opacity: 1 !important;
    max-width: 620px;
    line-height: 1.7;
    margin: 0 !important;
}

/* CTA button: high contrast and clear hover */
body.page-id-33 .hicap-page-cta
    a.hicap-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 15px 24px !important;
    background: #ffffff !important;
    color: #123b4a !important;
    border: 2px solid #ffffff !important;
    border-radius: 12px;
    font-weight: 750;
    text-decoration: none !important;
    text-align: center;
    white-space: normal;
    box-shadow: 0 7px 20px rgba(0, 0, 0, .12);
    transition:
        background .2s ease,
        color .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}

body.page-id-33 .hicap-page-cta
    a.hicap-btn:hover,
body.page-id-33 .hicap-page-cta
    a.hicap-btn:focus-visible {
    background: #a8f2e4 !important;
    color: #103b4b !important;
    border-color: #a8f2e4 !important;
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .2);
}

body.page-id-33 .hicap-page-cta
    a.hicap-btn:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 4px;
}

/* Responsive */
@media (max-width: 760px) {
    body.page-id-33 .hicap-unbiased-section,
    body.page-id-33 .hicap-page-cta {
        grid-template-columns: minmax(0, 1fr);
    }

    body.page-id-33 .hicap-unbiased-section
        > .hicap-program-note {
        grid-column: 1;
        grid-row: auto;
        padding: 23px !important;
    }

    body.page-id-33 .hicap-page-cta
        a.hicap-btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.page-id-33 .hicap-page-cta a.hicap-btn {
        transition: none;
    }

    body.page-id-33 .hicap-page-cta
        a.hicap-btn:hover {
        transform: none;
    }
}

/* ====================================================
   ABOUT HICAP — FINAL SPACING AND LAYOUT POLISH
==================================================== */

/* Commitment section */
body.page-id-33 .hicap-unbiased-section {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr) !important;
    column-gap: 38px !important;
    row-gap: 8px !important;
    padding: 34px 40px !important;
    align-items: start;
}

/* Reduce paragraph spacing */
body.page-id-33 .hicap-unbiased-section > p {
    margin: 0 0 8px !important;
    line-height: 1.65 !important;
}

body.page-id-33 .hicap-unbiased-section > h2 {
    margin: 2px 0 12px !important;
    font-size: 29px !important;
}

/* Right information panel */
body.page-id-33 .hicap-unbiased-section > .hicap-program-note {
    grid-column: 2 !important;
    grid-row: 1 / span 6 !important;
    padding: 26px 28px !important;
    line-height: 1.65 !important;
    align-self: center;
    font-size: 14px;
}

/* Remove isolated punctuation paragraphs */
body.page-id-33 .hicap-program-note p:empty {
    display: none !important;
}

/* Links */
body.page-id-33 .hicap-program-note a {
    display: inline;
    overflow-wrap: break-word;
}

/* Compact CTA */
body.page-id-33 .hicap-page-cta {
    min-height: 0 !important;
    padding: 28px 40px !important;
    gap: 24px !important;
}

body.page-id-33 .hicap-page-cta h2 {
    font-size: 28px !important;
    margin: 7px 0 10px !important;
}

body.page-id-33 .hicap-page-cta p {
    line-height: 1.55 !important;
}

body.page-id-33 .hicap-page-cta a.hicap-btn {
    min-height: 48px !important;
    padding: 13px 20px !important;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 760px) {
    body.page-id-33 .hicap-unbiased-section,
    body.page-id-33 .hicap-page-cta {
        grid-template-columns: 1fr !important;
        padding: 25px !important;
    }

    body.page-id-33 .hicap-unbiased-section
        > .hicap-program-note {
        grid-column: 1 !important;
        grid-row: auto !important;
        padding: 22px !important;
    }
}
