/* =========================================================
   HICAP SERVICES - INNER PAGE DESIGN
   Compatible with Twenty Twenty-Five
========================================================= */

.hicap-about-page {
    --hicap-navy: #123b4a;
    --hicap-teal: #087f83;
    --hicap-border: #dce7ec;
    --hicap-soft: #f3f8fa;

    color: #344b59;
    font-size: 17px;
    line-height: 1.7;
}

.hicap-about-page *,
.hicap-about-page *::before,
.hicap-about-page *::after {
    box-sizing: border-box;
}

.hicap-about-page .hicap-page-container {
    width: min(1100px, calc(100% - 40px));
    max-width: none;
    margin-inline: auto;
}

.hicap-about-page h1,
.hicap-about-page h2 {
    color: var(--hicap-navy);
    line-height: 1.25;
}

.hicap-about-page h2 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    margin: 0 0 18px;
}

.hicap-about-page p {
    margin: 0 0 16px;
}

.hicap-about-page .hicap-section-label {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--hicap-teal);
    font-size: 12px;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: .1em;
}

/* HERO */

.hicap-about-page .hicap-page-hero {
    padding: 55px 0;
    background: linear-gradient(115deg, #123b4a, #176269);
    color: white;
}

.hicap-about-page .hicap-page-hero h1 {
    color: white;
    font-size: clamp(2.2rem, 4vw, 3.3rem);
    margin: 8px 0 14px;
}

.hicap-about-page .hicap-page-hero p {
    color: #e5f2f3;
    max-width: 750px;
    font-size: 1.15rem;
}

.hicap-about-page .hicap-eyebrow {
    color: #b6eee4;
    font-size: 12px;
    font-weight: 750;
    letter-spacing: .12em;
    text-transform: uppercase;
}

/* SECTIONS */

.hicap-about-page .hicap-content-section {
    padding: 45px 0;
}

.hicap-about-page .hicap-intro-section {
    max-width: 850px;
}

/* COUNTIES */

.hicap-about-page .hicap-counties-section {
    padding: 35px;
    background: var(--hicap-soft);
    border: 1px solid var(--hicap-border);
    border-radius: 16px;
}

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

.hicap-about-page .hicap-county-grid li {
    margin: 0;
    padding: 12px 16px;
    border: 1px solid var(--hicap-border);
    border-radius: 9px;
    background: white;
    font-weight: 600;
    color: var(--hicap-navy);
}

.hicap-about-page .hicap-county-grid li::before {
    content: "✓";
    margin-right: 10px;
    color: var(--hicap-teal);
}

/* TWO COLUMN CARDS */

.hicap-about-page .hicap-about-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin: 45px 0 0;
}

.hicap-about-page .hicap-info-card {
    padding: 32px;
    border: 1px solid var(--hicap-border);
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 8px 25px rgba(18, 59, 74, .05);
}

/* CHECK LISTS */

.hicap-about-page .hicap-check-list {
    list-style: none;
    margin: 15px 0;
    padding: 0;
}

.hicap-about-page .hicap-check-list li {
    position: relative;
    padding: 7px 0 7px 29px;
}

.hicap-about-page .hicap-check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--hicap-teal);
    font-weight: bold;
}

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

/* UNBIASED COUNSELING */

.hicap-about-page .hicap-unbiased-section {
    margin: 35px 0;
    padding: 35px;
    background: #eaf5f3;
    border-left: 4px solid var(--hicap-teal);
    border-radius: 12px;
}

.hicap-about-page .hicap-program-note {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #c8dfdb;
}

/* VIDEO */

.hicap-about-page .hicap-video-wrapper {
    width: 100%;
    max-width: 850px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 14px;
    background: #123b4a;
}

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

/* CONTACT BANNER */

.hicap-about-page .hicap-page-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin: 20px 0 60px;
    padding: 35px;
    border-radius: 16px;
    background: #123b4a;
    color: white;
}

.hicap-about-page .hicap-page-cta h2 {
    color: white;
}

.hicap-about-page .hicap-page-cta p {
    color: #e0eeee;
}

.hicap-about-page .hicap-page-cta .hicap-section-label {
    color: #b6eee4;
}

.hicap-about-page .hicap-page-cta .hicap-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 22px;
    border-radius: 9px;
    background: white;
    color: #123b4a;
    text-decoration: none;
    font-weight: 700;
    text-align: center;
    flex-shrink: 0;
}

.hicap-about-page .hicap-page-cta .hicap-btn:hover {
    background: #dff5f0;
}

/* RESPONSIVE */

@media (max-width: 800px) {
    .hicap-about-page .hicap-about-card-grid,
    .hicap-about-page .hicap-two-column-list {
        grid-template-columns: 1fr;
    }

    .hicap-about-page .hicap-page-cta {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 600px) {
    .hicap-about-page .hicap-county-grid {
        grid-template-columns: 1fr;
    }

    .hicap-about-page .hicap-counties-section,
    .hicap-about-page .hicap-info-card,
    .hicap-about-page .hicap-unbiased-section,
    .hicap-about-page .hicap-page-cta {
        padding: 24px;
    }

    .hicap-about-page .hicap-page-hero {
        padding: 42px 0;
    }
}

/* HICAP COMPACT SPACING START
   ==========================================================
   ABOUT PAGE - COMPACT PROFESSIONAL LAYOUT
   ========================================================== */

/* Reduce WordPress block spacing inside the About page */
.hicap-about-page {
    --wp--style--block-gap: 12px;
    line-height: 1.55;
    font-size: 16px;
}

/* Compact hero */
.hicap-about-page .hicap-page-hero {
    padding: 30px 0;
}

.hicap-about-page .hicap-page-hero h1 {
    font-size: clamp(2rem, 3vw, 2.7rem);
    margin: 4px 0 8px;
}

.hicap-about-page .hicap-page-hero p {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.5;
}

/* Reduce spacing between content sections */
.hicap-about-page .hicap-content-section {
    padding: 22px 0;
}

.hicap-about-page .hicap-content-section + .hicap-content-section {
    padding-top: 10px;
}

/* Compact headings and paragraphs */
.hicap-about-page h2 {
    font-size: clamp(1.4rem, 2.2vw, 1.8rem);
    margin: 0 0 10px;
}

.hicap-about-page p {
    margin: 0 0 10px;
}

.hicap-about-page .hicap-section-label {
    margin-bottom: 5px;
}

/* Counties */
.hicap-about-page .hicap-counties-section {
    padding: 22px 26px;
}

.hicap-about-page .hicap-county-grid {
    gap: 8px;
    margin: 14px 0 0;
}

.hicap-about-page .hicap-county-grid li {
    padding: 8px 12px;
}

/* Who We Help / What We Do cards */
.hicap-about-page .hicap-about-card-grid {
    gap: 16px;
    margin: 22px 0 0;
}

.hicap-about-page .hicap-info-card {
    padding: 22px 25px;
}

/* Lists */
.hicap-about-page .hicap-check-list {
    margin: 10px 0;
}

.hicap-about-page .hicap-check-list li {
    padding-top: 4px;
    padding-bottom: 4px;
}

/* Unbiased counseling */
.hicap-about-page .hicap-unbiased-section {
    margin: 20px 0;
    padding: 24px 28px;
}

.hicap-about-page .hicap-program-note {
    margin-top: 12px;
    padding-top: 12px;
}

/* Video */
.hicap-about-page .hicap-video-section {
    padding-top: 20px;
    padding-bottom: 20px;
}

.hicap-about-page .hicap-video-wrapper {
    max-width: 720px;
}

/* Contact banner */
.hicap-about-page .hicap-page-cta {
    gap: 20px;
    margin: 12px 0 30px;
    padding: 25px 30px;
}

.hicap-about-page .hicap-page-cta h2 {
    margin-bottom: 8px;
}

.hicap-about-page .hicap-page-cta p {
    margin-bottom: 0;
}

/* Mobile spacing */
@media (max-width: 600px) {
    .hicap-about-page .hicap-page-hero {
        padding: 25px 0;
    }

    .hicap-about-page .hicap-content-section {
        padding: 18px 0;
    }

    .hicap-about-page .hicap-counties-section,
    .hicap-about-page .hicap-info-card,
    .hicap-about-page .hicap-unbiased-section,
    .hicap-about-page .hicap-page-cta {
        padding: 18px;
    }

    .hicap-about-page .hicap-about-card-grid {
        margin-top: 18px;
    }
}

/* HICAP COMPACT SPACING END */

/* HICAP TIGHT LAYOUT START */

/* Override WordPress page-level spacing */
body.page-id-33 .wp-site-blocks,
body.page-id-33 main,
body.page-id-33 .wp-block-post-content {
    --wp--style--block-gap: 0px;
}

body.page-id-33 .wp-block-post-content > .hicap-about-page {
    margin-block-start: 0 !important;
}

/* Make the About page use available width */
body.page-id-33 .wp-block-post-content,
body.page-id-33 .hicap-about-page {
    width: 100%;
    max-width: none;
}

body.page-id-33 .hicap-about-page .hicap-page-container {
    width: min(1100px, calc(100% - 32px));
    max-width: none;
}

/* Remove inherited Gutenberg block spacing */
body.page-id-33 .hicap-about-page :where(
    section,
    header,
    div,
    h1,
    h2,
    p,
    ul
) {
    margin-block-start: 0;
}

/* Compact overall typography */
body.page-id-33 .hicap-about-page {
    font-size: 15px;
    line-height: 1.45;
}

body.page-id-33 .hicap-about-page h2 {
    font-size: clamp(1.3rem, 2vw, 1.65rem);
    line-height: 1.25;
    margin: 0 0 7px;
}

body.page-id-33 .hicap-about-page p {
    margin: 0 0 8px;
}

body.page-id-33 .hicap-about-page .hicap-section-label {
    margin: 0 0 4px;
}

/* Shorter hero */
body.page-id-33 .hicap-about-page .hicap-page-hero {
    padding: 20px 0;
}

body.page-id-33 .hicap-about-page .hicap-page-hero h1 {
    font-size: clamp(1.9rem, 3vw, 2.5rem);
    margin: 2px 0 6px;
}

/* Very compact sections */
body.page-id-33 .hicap-about-page .hicap-content-section {
    padding: 14px 0;
}

/* Counties */
body.page-id-33 .hicap-about-page .hicap-counties-section {
    padding: 16px 20px;
}

body.page-id-33 .hicap-about-page .hicap-county-grid {
    gap: 6px;
    margin: 10px 0 0;
    padding: 0;
}

body.page-id-33 .hicap-about-page .hicap-county-grid li {
    padding: 6px 10px;
}

/* Cards */
body.page-id-33 .hicap-about-page .hicap-about-card-grid {
    margin: 14px 0 0;
    gap: 12px;
}

body.page-id-33 .hicap-about-page .hicap-info-card {
    padding: 16px 20px;
}

/* Lists */
body.page-id-33 .hicap-about-page .hicap-check-list {
    margin: 6px 0;
    padding: 0;
}

body.page-id-33 .hicap-about-page .hicap-check-list li {
    padding-top: 2px;
    padding-bottom: 2px;
}

/* Unbiased section */
body.page-id-33 .hicap-about-page .hicap-unbiased-section {
    margin: 14px 0;
    padding: 18px 22px;
}

body.page-id-33 .hicap-about-page .hicap-program-note {
    margin-top: 10px;
    padding-top: 10px;
}

/* Video */
body.page-id-33 .hicap-about-page .hicap-video-section {
    padding: 12px 0;
}

body.page-id-33 .hicap-about-page .hicap-video-wrapper {
    max-width: 650px;
}

/* Contact banner */
body.page-id-33 .hicap-about-page .hicap-page-cta {
    margin: 12px 0 20px;
    padding: 18px 24px;
    gap: 15px;
}

/* Mobile */
@media (max-width: 600px) {
    body.page-id-33 .hicap-about-page .hicap-page-container {
        width: calc(100% - 24px);
    }

    body.page-id-33 .hicap-about-page .hicap-page-hero {
        padding: 18px 0;
    }

    body.page-id-33 .hicap-about-page .hicap-counties-section,
    body.page-id-33 .hicap-about-page .hicap-info-card,
    body.page-id-33 .hicap-about-page .hicap-unbiased-section,
    body.page-id-33 .hicap-about-page .hicap-page-cta {
        padding: 15px;
    }
}

/* HICAP TIGHT LAYOUT END */

/* HICAP ABOUT LAYOUT FIX START
   ==========================================================
   ABOUT HICAP - PAGE STRUCTURE CORRECTIONS
   ========================================================== */

/* Remove the duplicate WordPress page title */
body.page-id-33 .wp-block-post-title {
    display: none !important;
}

/* Remove unnecessary spacing from WordPress layout */
body.page-id-33 .wp-site-blocks main {
    margin-block-start: 0 !important;
    padding-block-start: 0 !important;
}

body.page-id-33 .wp-block-post-content {
    margin-block-start: 0 !important;
    padding-block-start: 0 !important;
}

/* Reduce outer page spacing */
body.page-id-33 .wp-block-post-content > .hicap-about-page {
    margin: 0 !important;
    padding: 0 !important;
}

/* Consistent page width */
body.page-id-33 .hicap-about-page {
    width: 100%;
    max-width: none;
}

body.page-id-33 .hicap-about-page .hicap-page-container {
    width: min(1100px, calc(100% - 48px));
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

/* Make the hero align with the rest of the page */
body.page-id-33 .hicap-about-page .hicap-page-hero {
    width: 100%;
    margin: 0 0 18px;
    padding: 28px 0;
    border-radius: 0;
    background: linear-gradient(110deg, #123b4a, #176269);
}

/* Consistent typography */
body.page-id-33 .hicap-about-page .hicap-page-hero h1 {
    margin: 4px 0 8px;
    font-size: clamp(2rem, 3vw, 2.6rem);
}

body.page-id-33 .hicap-about-page .hicap-page-hero p {
    max-width: 780px;
    margin: 0;
}

/* Align content sections */
body.page-id-33 .hicap-about-page .hicap-content-section {
    padding: 14px 0;
}

/* Prevent excessive WordPress block gaps */
body.page-id-33 .wp-block-post-content > * {
    margin-block-start: 0 !important;
}

/* Mobile */
@media (max-width: 600px) {
    body.page-id-33 .hicap-about-page .hicap-page-container {
        width: calc(100% - 28px);
    }

    body.page-id-33 .hicap-about-page .hicap-page-hero {
        padding: 22px 0;
    }
}

/* HICAP ABOUT LAYOUT FIX END */
