/* ==========================================================
   HICAP SERVICES - SHARED INNER PAGE LAYOUT
========================================================== */

body.page:not(.home) {
    --hicap-layout-navy: #123b4a;
    --hicap-layout-teal: #176269;
    --hicap-layout-text: #344b59;
}

body.page:not(.home) .hicap-shared-main {
    margin: 0 !important;
    padding: 0 !important;
    max-width: none !important;
}

body.page:not(.home) .hicap-shared-hero {
    width: 100%;
    max-width: none !important;
    margin: 0 !important;
    padding: 28px 24px !important;
    background: linear-gradient(
        110deg,
        #123b4a,
        #176269
    );
    color: #fff;
}

body.page:not(.home) .hicap-shared-hero-inner {
    width: min(1100px, 100%);
    max-width: 1100px !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

body.page:not(.home) .hicap-shared-eyebrow {
    margin: 0 0 6px !important;
    color: #a7e9dc;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
}

body.page:not(.home) .hicap-shared-title {
    margin: 0 !important;
    color: #fff !important;
    font-size: clamp(1.9rem, 3vw, 2.5rem);
    line-height: 1.2;
}

body.page:not(.home) .hicap-shared-content {
    width: min(1100px, calc(100% - 40px));
    max-width: 1100px !important;
    margin: 0 auto !important;
    padding: 26px 0 42px !important;
}

body.page:not(.home) .hicap-shared-content
.wp-block-post-content {
    width: 100%;
    max-width: none !important;
    padding: 0 !important;
    font-size: 16px;
    line-height: 1.6;
    color: var(--hicap-layout-text);
}

body.page:not(.home) .hicap-shared-content
.wp-block-post-content > * {
    max-width: 100% !important;
}

body.page:not(.home) .hicap-shared-content p {
    margin-top: 0;
    margin-bottom: 12px;
}

body.page:not(.home) .hicap-shared-content h2,
body.page:not(.home) .hicap-shared-content h3,
body.page:not(.home) .hicap-shared-content h4 {
    color: var(--hicap-layout-navy);
    line-height: 1.3;
}

body.page:not(.home) .hicap-shared-content h2 {
    font-size: clamp(1.4rem, 2.2vw, 1.8rem);
    margin: 20px 0 10px;
}

body.page:not(.home) .hicap-shared-content h3 {
    font-size: 1.25rem;
    margin: 18px 0 8px;
}

body.page:not(.home) .hicap-shared-content ul,
body.page:not(.home) .hicap-shared-content ol {
    margin: 10px 0 16px;
    padding-left: 24px;
}

body.page:not(.home) .hicap-shared-content li {
    margin-bottom: 5px;
}

/* Hide old About page banner; new template supplies title */
body.page-id-33 .hicap-page-hero {
    display: none !important;
}

/* Hide old Volunteer page banner; new template supplies title */
body.page-id-81 .hicap-volunteer-hero {
    display: none !important;
}

/* Responsive media */
body.page:not(.home) .hicap-shared-content iframe,
body.page:not(.home) .hicap-shared-content img {
    max-width: 100%;
}

/* Preserve volunteer grid */
body.page-id-81 .hicap-volunteer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

@media (max-width: 800px) {
    body.page-id-81 .hicap-volunteer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    body.page:not(.home) .hicap-shared-hero {
        padding: 24px 18px !important;
    }

    body.page:not(.home) .hicap-shared-content {
        width: calc(100% - 32px);
        padding: 20px 0 32px !important;
    }
}

/* ==========================================================
   HICAP ABOUT PAGE - REDESIGN 2026
========================================================== */

body.page-id-33 .hicap-about-page {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

body.page-id-33 .hicap-content-section {
    margin: 0 0 34px;
}

body.page-id-33 .hicap-intro-section {
    padding: 8px 0 12px;
}

body.page-id-33 .hicap-intro-section h2 {
    max-width: 780px;
    font-size: clamp(1.8rem, 3vw, 2.35rem);
    line-height: 1.2;
    margin: 10px 0 16px;
}

body.page-id-33 .hicap-intro-section .hicap-page-lead {
    max-width: 760px;
    font-size: 1.2rem;
    line-height: 1.6;
    color: #176269;
    font-weight: 500;
}

body.page-id-33 .hicap-about-benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 12px 0 38px;
}

body.page-id-33 .hicap-about-benefits .hicap-info-card {
    padding: 26px 24px;
    border: 1px solid #dce8e9;
    border-radius: 14px;
    background: #f6faf9;
    box-shadow: 0 4px 16px rgba(18, 59, 74, .04);
}

body.page-id-33 .hicap-about-benefits .hicap-info-card h2 {
    font-size: 1.25rem;
    margin: 10px 0 12px;
}

body.page-id-33 .hicap-about-benefits .hicap-info-card p {
    margin-bottom: 0;
}

body.page-id-33 .hicap-section-label {
    display: inline-block;
    color: #176269;
    font-size: .75rem;
    font-weight: 750;
    letter-spacing: .09em;
    text-transform: uppercase;
}

body.page-id-33 .hicap-counties-section,
body.page-id-33 .hicap-services-detail,
body.page-id-33 .hicap-who-section {
    padding: 26px;
    border: 1px solid #e2e9ed;
    border-radius: 14px;
    background: #fff;
}

body.page-id-33 .hicap-check-list {
    list-style: none;
    padding: 0;
}

body.page-id-33 .hicap-check-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
}

body.page-id-33 .hicap-check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #167c73;
    font-weight: 800;
}

body.page-id-33 .hicap-two-column-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 28px;
}

body.page-id-33 .hicap-county-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

body.page-id-33 .hicap-county-grid li {
    padding: 13px 16px;
    background: #f1f7f7;
    border: 1px solid #dce9e8;
    border-radius: 9px;
    color: #123b4a;
    font-weight: 650;
}

body.page-id-33 .hicap-unbiased-section {
    margin: 0 0 34px;
    padding: 30px;
    border-radius: 16px;
    background: #edf7f6;
}

body.page-id-33 .hicap-video-wrapper {
    width: 100%;
    max-width: 820px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 14px;
    background: #102b3b;
}

body.page-id-33 .hicap-video-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

body.page-id-33 .hicap-page-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 30px;
    margin-top: 38px;
    border-radius: 16px;
    background: linear-gradient(115deg, #123b4a, #176269);
    color: #fff;
}

body.page-id-33 .hicap-page-cta h2,
body.page-id-33 .hicap-page-cta p,
body.page-id-33 .hicap-page-cta .hicap-section-label {
    color: #fff;
}

body.page-id-33 .hicap-page-cta .hicap-btn {
    flex-shrink: 0;
    text-decoration: none;
}

@media (max-width: 850px) {
    body.page-id-33 .hicap-about-benefits {
        grid-template-columns: 1fr;
    }

    body.page-id-33 .hicap-page-cta {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 600px) {
    body.page-id-33 .hicap-two-column-list,
    body.page-id-33 .hicap-county-grid {
        grid-template-columns: 1fr;
    }

    body.page-id-33 .hicap-counties-section,
    body.page-id-33 .hicap-services-detail,
    body.page-id-33 .hicap-who-section,
    body.page-id-33 .hicap-unbiased-section,
    body.page-id-33 .hicap-page-cta {
        padding: 20px;
    }
}


/* ==========================================================
   ABOUT HICAP - VIDEO-FIRST SHOWCASE
========================================================== */

body.page-id-33 .hicap-about-showcase {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    align-items: center;
    gap: clamp(28px, 4vw, 54px);
    padding: 22px 0 46px;
    margin-bottom: 36px;
    border-bottom: 1px solid #e2eaec;
}

body.page-id-33 .hicap-about-showcase-copy h2 {
    margin: 12px 0 20px;
    color: #123b4a;
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 800;
    line-height: 1.13;
    letter-spacing: -.035em;
}

body.page-id-33 .hicap-about-showcase-copy h2 span {
    color: #177a76;
}

body.page-id-33 .hicap-about-showcase-copy p {
    color: #425767;
    font-size: 16px;
    line-height: 1.75;
}

body.page-id-33 .hicap-about-showcase-copy
.hicap-about-showcase-lead {
    color: #176269;
    font-size: 19px;
    font-weight: 650;
    line-height: 1.5;
}

body.page-id-33 .hicap-about-showcase-actions {
    margin: 26px 0 22px;
}

body.page-id-33 .hicap-about-primary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 14px 22px;
    border-radius: 9px;
    background: #176269;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    transition: background .2s ease, transform .2s ease;
}

body.page-id-33 .hicap-about-primary-action:hover {
    background: #123b4a;
    color: #fff;
    transform: translateY(-2px);
}

body.page-id-33 .hicap-about-primary-action:focus-visible {
    outline: 3px solid #176269;
    outline-offset: 4px;
}

body.page-id-33 .hicap-about-trust-line {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    color: #176269;
    font-size: 12px;
    font-weight: 700;
}

body.page-id-33 .hicap-about-showcase-media {
    min-width: 0;
}

body.page-id-33 .hicap-about-video-card {
    overflow: hidden;
    padding: 14px;
    border: 1px solid #d7e6e5;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(18, 59, 74, .12);
}

body.page-id-33 .hicap-about-video-heading {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 3px 5px 13px;
    color: #176269;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
}

body.page-id-33 .hicap-about-video-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #23a79a;
}

body.page-id-33 .hicap-about-video-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 12px;
    background: #102b3b;
}

body.page-id-33 .hicap-about-video-frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

body.page-id-33 .hicap-about-video-caption {
    margin: 13px 5px 3px;
    color: #536b76;
    font-size: 13px;
    line-height: 1.6;
}

@media (max-width: 900px) {
    body.page-id-33 .hicap-about-showcase {
        grid-template-columns: 1fr;
        gap: 26px;
        padding-top: 12px;
    }

    body.page-id-33 .hicap-about-showcase-copy h2 {
        font-size: clamp(2rem, 6vw, 2.7rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    body.page-id-33 .hicap-about-primary-action {
        transition: none;
    }

    body.page-id-33 .hicap-about-primary-action:hover {
        transform: none;
    }
}
