/* Base layout */
.gbf-pg-page {
    max-width: 960px;
    margin: 0 auto;
    padding: 3rem 1.5rem 4rem;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #333333;
    background: #ffffff;
}

/* Hero section */
.gbf-pg-hero {
    border-bottom: 4px solid #f0b73a;
    padding-bottom: 1.75rem;
    margin-bottom: 2rem;
}

.gbf-pg-title {
    font-size: clamp(2.1rem, 3vw, 2.6rem);
    line-height: 1.15;
    margin: 0 0 0.5rem;
    color: #1f5f9c;
    font-weight: 700;
}

/* Subtitle as H3 styled like booklet */
.gbf-pg-subtitle {
    margin: 0;
    font-family: "Avenir", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 100;
    font-size: 44px;
    line-height: 47px;
    color: #689cd3;
}

/* Main two-column layout */
.gbf-pg-main-columns {
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.gbf-pg-main-columns .wp-block-column {
    margin-bottom: 0;
}

/* Drop cap style intro paragraph */
.gbf-pg-dropcap {
    font-size: 1.02rem;
    line-height: 1.6;
    position: relative;
}

/* First letter with gold border like booklet */
.gbf-pg-dropcap::first-letter {
    float: left;
    font-size: 3.2rem;
    line-height: 0.95;
    margin-right: 0.3rem;
    padding: 0.1rem 0.4rem 0.15rem;
    font-weight: 700;
    color: #000000;          /* black letter */
    border: 1px solid #d8ae66; /* gold border */
    border-radius: 4px;
}

/* General text */
.gbf-pg-page p {
    font-size: 0.99rem;
    line-height: 1.7;
    margin-bottom: 0.9rem;
}

/* Benefits side panel */
.gbf-pg-benefits-column {
    background: #f5f8fc;
    border-radius: 12px;
    padding: 1.25rem 1.4rem;
    box-shadow: 0 0 0 1px #e0e5f2;
}

/* Image + benefits text layout */
.gbf-pg-benefits-layout {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
}

/* Image placeholder to the LEFT */
.gbf-pg-side-image {
    flex: 0 0 72px;
    height: 72px;
    border-radius: 999px;
    overflow: hidden;
    background: #dbe6f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gbf-pg-side-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gbf-pg-benefits-text {
    flex: 1;
}

/* “Benefits of a ___” heading */
.gbf-pg-benefits-title {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-family: "Avenir", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 100;
    font-size: 24px;
    line-height: 1.25;
    color: #1f5f9c;
}

.gbf-pg-benefits-list {
    margin: 0;
    padding-left: 1.2rem;
}

.gbf-pg-benefits-list li {
    margin-bottom: 0.35rem;
    font-size: 0.95rem;
}

/* Process strip */
.gbf-pg-process {
    margin-top: 1rem;
    margin-bottom: 2.25rem;
    padding: 1.4rem 1.25rem 1.7rem;
    background: #fdf7ec;
    border-radius: 16px;
    border: 1px solid #f2dcc0;
}

/* How It Works heading as H5 with Avenir styling */
.gbf-pg-process-title {
    margin-top: 0;
    margin-bottom: 0.9rem;
    font-family: "Avenir", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 100;
    font-size: 34px;
    line-height: 37px;
    color: #689cd3;
    text-align: left;
}

.gbf-pg-process-columns {
    gap: 1.5rem;
}

.gbf-pg-process-column {
    position: relative;
    padding-left: 1.5rem;
}

/* Large background numbers behind each column */
.gbf-pg-process-column::before {
    content: "1";
    position: absolute;
    left: -0.3rem;
    top: -0.6rem;
    font-size: 60px;
    font-weight: 700;
    color: rgba(216, 174, 102, 0.25);
    z-index: 0;
}

.gbf-pg-process-column:nth-child(2)::before {
    content: "2";
}

.gbf-pg-process-column:nth-child(3)::before {
    content: "3";
}

/* Icon box with icon above text */
.gbf-pg-process-step {
    position: relative;
    z-index: 1;
}

.gbf-pg-process-step-icon {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    border: 1px solid #d8ae66;
    margin-bottom: 0.4rem;
    background: #fff9ef;
}

/* Optional placeholder icon (can be ignored or overridden) */
.gbf-pg-process-step-icon::before {
    content: "";
    display: block;
    width: 20px;
    height: 20px;
    margin: 11px auto 0;
    border-radius: 50%;
    border: 2px solid #d8ae66;
}

.gbf-pg-process-step-text {
    font-size: 0.94rem;
    margin-bottom: 0;
}

/* “Is a ___ right for me?” sidebar */
.gbf-pg-fit-panel {
    padding: 1.6rem 1.4rem 1.7rem;
    background: #f5f5f5;
    border-radius: 16px;
    margin-top: 1rem;
    margin-bottom: 2rem;
    max-width: 320px;
    margin-left: auto; /* push to the right to behave like sidebar */
}

.gbf-pg-fit-title {
    margin-top: 0;
    font-size: 1.1rem;
    color: #1f5f9c;
    margin-bottom: 0.8rem;
}

/* Big numbers to the left of each “right for me?” point */
.gbf-pg-fit-list {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: fit-counter;
}

.gbf-pg-fit-list li {
    counter-increment: fit-counter;
    position: relative;
    padding-left: 2.6rem;
    margin-bottom: 0.8rem;
    font-size: 0.94rem;
}

.gbf-pg-fit-list li::before {
    content: counter(fit-counter);
    position: absolute;
    left: 0;
    top: -0.1rem;
    font-size: 2rem;
    font-weight: 700;
    color: #d8ae66;
}

/* CTA */
.gbf-pg-cta {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e4e4e4;
}

.gbf-pg-cta-title {
    margin: 0 0 0.4rem;
    font-size: 1.05rem;
    color: #1f5f9c;
}

.gbf-pg-cta-text {
    margin: 0;
    font-size: 0.96rem;
    font-weight: 500;
}

/* Overview shortcode grid */
.gbf-pg-overview {
    max-width: 1100px;
    margin: 0 auto 3rem;
    padding: 3rem 1.5rem;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.gbf-pg-overview-header h1 {
    margin: 0 0 0.4rem;
    font-size: clamp(2rem, 3vw, 2.5rem);
    color: #1f5f9c;
}

.gbf-pg-overview-header p {
    margin: 0 0 1.8rem;
    font-size: 1rem;
}

.gbf-pg-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.5rem;
}

.gbf-pg-overview-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 1.25rem 1.3rem 1.3rem;
    box-shadow: 0 6px 16px rgba(0,0,0,0.06);
    border: 1px solid #e7ebf4;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.gbf-pg-overview-card h2 {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
    color: #1f5f9c;
}

.gbf-pg-overview-card p {
    margin: 0 0 0.8rem;
    font-size: 0.94rem;
}

.gbf-pg-overview-link {
    margin-top: auto;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.gbf-pg-overview-link:hover {
    border-bottom-color: currentColor;
}

/* Inline navigation */
.gbf-pg-inline-nav {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e2e2;
    font-size: 0.9rem;
}

.gbf-pg-inline-nav-label {
    font-weight: 600;
    color: #1f5f9c;
    display: block;
    margin-bottom: 0.4rem;
}

.gbf-pg-inline-nav-links a {
    text-decoration: none;
}

.gbf-pg-inline-nav-links a:hover {
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 800px) {
    .gbf-pg-page {
        padding: 2rem 1.1rem 3rem;
    }

    .gbf-pg-main-columns {
        flex-direction: column;
    }

    .gbf-pg-benefits-column {
        width: 100% !important;
    }

    .gbf-pg-process-columns {
        flex-direction: column;
    }

    .gbf-pg-fit-panel {
        max-width: none;
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .gbf-pg-title {
        font-size: 1.7rem;
    }

    .gbf-pg-dropcap::first-letter {
        font-size: 2.5rem;
    }

    .gbf-pg-subtitle {
        font-size: 30px;
        line-height: 33px;
    }
}

/* === CGA TEST LAYOUT ONLY (scoped to slug "cga") === */

/* 1) Subtitle directly under gift name (H3 look) */
.post-name-cga .gbf-pg-subtitle {
    margin: 0;
    font-family: "Avenir", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 100;
    font-size: 44px;
    line-height: 47px;
    color: #689cd3;
}

/* 2) First letter of first paragraph: gold border drop cap */
.post-name-cga .gbf-pg-dropcap::first-letter {
    float: left;
    font-size: 3.2rem;
    line-height: 0.95;
    margin-right: 0.3rem;
    padding: 0.1rem 0.4rem 0.15rem;
    font-weight: 700;
    color: #f0b73a;
    border: 1px solid #d8ae66;
    border-radius: 4px;
}

/* 3) Benefits panel – image on the left, heading + list on the right */
.post-name-cga .gbf-pg-benefits-column {
    background: #f5f8fc;
    border-radius: 12px;
    padding: 1.25rem 1.4rem;
    box-shadow: 0 0 0 1px #e0e5f2;
}

/* Treat benefits column as two-part layout: image + text */
.post-name-cga .gbf-pg-benefits-layout,
.post-name-cga .gbf-pg-benefits-column {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
}

/* Left-side image placeholder */
.post-name-cga .gbf-pg-side-image {
    flex: 0 0 72px;
    height: 72px;
    border-radius: 999px;
    overflow: hidden;
    background: #dbe6f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Right-side text block */
.post-name-cga .gbf-pg-benefits-text {
    flex: 1;
}

/* “Benefits of a Charitable Gift Annuity” heading (you’ll set the text manually) */
.post-name-cga .gbf-pg-benefits-title {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-family: "Avenir", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 100;
    font-size: 24px;
    line-height: 1.25;
    color: #1f5f9c;
}

/* Benefits list */
.post-name-cga .gbf-pg-benefits-list {
    margin: 0;
    padding-left: 1.2rem;
}

.post-name-cga .gbf-pg-benefits-list li {
    margin-bottom: 0.35rem;
    font-size: 0.95rem;
}

/* 4) How It Works heading – booklet style */
.post-name-cga .gbf-pg-process-title {
    margin-top: 0;
    margin-bottom: 0.9rem;
    font-family: "Avenir", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 100;
    font-size: 34px;
    line-height: 37px;
    color: #689cd3;
    text-align: left;
}

/* Columns with large background numbers */
.post-name-cga .gbf-pg-process-columns {
    gap: 1.5rem;
}

.post-name-cga .gbf-pg-process-column {
    position: relative;
    padding-left: 1.5rem;
}

/* Large faded numbers behind each column */
.post-name-cga .gbf-pg-process-column::before {
    content: "1";
    position: absolute;
    left: -0.3rem;
    top: -0.6rem;
    font-size: 60px;
    font-weight: 700;
    color: rgba(216, 174, 102, 0.25);
    z-index: 0;
}
.post-name-cga .gbf-pg-process-column:nth-child(2)::before {
    content: "2";
}
.post-name-cga .gbf-pg-process-column:nth-child(3)::before {
    content: "3";
}

/* Icon box above each step text */
.post-name-cga .gbf-pg-process-step {
    position: relative;
    z-index: 1;
}

.post-name-cga .gbf-pg-process-step-icon {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    border: 1px solid #d8ae66;
    margin-bottom: 0.4rem;
    background: #fff9ef;
}

.post-name-cga .gbf-pg-process-step-icon::before {
    content: "";
    display: block;
    width: 20px;
    height: 20px;
    margin: 11px auto 0;
    border-radius: 50%;
    border: 2px solid #d8ae66;
}

.post-name-cga .gbf-pg-process-step-text {
    font-size: 0.94rem;
    margin-bottom: 0;
}

/* 5) “Is a Charitable Gift Annuity right for me?” as right sidebar */
.post-name-cga .gbf-pg-fit-panel {
    padding: 1.6rem 1.4rem 1.7rem;
    background: #f5f5f5;
    border-radius: 16px;
    margin-top: 1rem;
    margin-bottom: 2rem;
    max-width: 320px;
    margin-left: auto; /* pushes it to the right */
}

/* Title in sidebar */
.post-name-cga .gbf-pg-fit-title {
    margin-top: 0;
    font-size: 1.1rem;
    color: #1f5f9c;
    margin-bottom: 0.8rem;
}

/* Big numbers aligned left for each point */
.post-name-cga .gbf-pg-fit-list {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: fit-counter;
}

.post-name-cga .gbf-pg-fit-list li {
    counter-increment: fit-counter;
    position: relative;
    padding-left: 2.6rem;
    margin-bottom: 0.8rem;
    font-size: 0.94rem;
}

.post-name-cga .gbf-pg-fit-list li::before {
    content: counter(fit-counter);
    position: absolute;
    left: 0;
    top: -0.1rem;
    font-size: 2rem;
    font-weight: 700;
    color: #d8ae66;
}

/* Mobile tweaks so sidebar drops nicely */
@media (max-width: 800px) {
    .post-name-cga .gbf-pg-fit-panel {
        max-width: none;
        margin-left: 0;
    }
}

/* === MAIN LAYOUT: 70% main, 30% sidebar, 40px gutter === */

.gbf-pg-main-layout {
    gap: 40px; /* gutter between main and sidebar */
}

.gbf-pg-main-column {
    max-width: 100%;
}

.gbf-pg-sidebar-column {
    max-width: 100%;
}

/* Description section inside main column */
.gbf-pg-desc-section {
    margin-bottom: 2rem;
}

/* BENEFITS SECTION (own section under description) */

.gbf-pg-benefits-section {
    margin-bottom: 2.5rem;
}

.gbf-pg-benefits-columns {
    align-items: flex-start;
}

/* Square image placeholder on the left (about 1/3 width) */
.gbf-pg-benefits-image {
    aspect-ratio: 1 / 1;
    background: #e7edf6;
    border-radius: 8px;
    overflow: hidden;
}

.gbf-pg-benefits-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Text on the right (2/3 width) */
.gbf-pg-benefits-title {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-family: "Avenir", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 100;
    font-size: 24px;
    line-height: 1.25;
    color: #1f5f9c;
}

.gbf-pg-benefits-list {
    margin: 0;
    padding-left: 1.2rem;
}

.gbf-pg-benefits-list li {
    margin-bottom: 0.35rem;
    font-size: 0.95rem;
}

/* HOW IT WORKS */

.gbf-pg-process {
    margin-bottom: 2.5rem;
    padding: 1.4rem 1.25rem 1.7rem;
    background: #fdf7ec;
    border-radius: 16px;
    border: 1px solid #f2dcc0;
}

.gbf-pg-process-title {
    margin-top: 0;
    margin-bottom: 0.9rem;
    font-family: "Avenir", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 100;
    font-size: 34px;
    line-height: 37px;
    color: #689cd3;
    text-align: left;
}

.gbf-pg-process-columns {
    gap: 1.5rem;
}

/* Each step: full container numeric background, centered icon and text */
.gbf-pg-process-column {
    position: relative;
    display: flex;
    align-items: stretch;
    justify-content: center;
    min-height: 140px;
    overflow: hidden;
}

.gbf-pg-process-column::before {
    content: "1";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    font-weight: 700;
    color: rgba(216, 174, 102, 0.25);
    z-index: 0;
}

.gbf-pg-process-column:nth-child(2)::before {
    content: "2";
}

.gbf-pg-process-column:nth-child(3)::before {
    content: "3";
}

.gbf-pg-process-step {
    position: relative;
    z-index: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
    padding: 1rem;
}

/* Icon image placeholder */
.gbf-pg-process-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #d8ae66;
    overflow: hidden;
}

.gbf-pg-process-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gbf-pg-process-step-text {
    font-size: 0.94rem;
    margin: 0;
}

/* A SMARTER WAY TO GIVE */

.gbf-pg-smarter {
    margin-top: 2.2rem;
    padding-top: 1.2rem;
    border-top: 1px solid #e4e4e4;
}

.gbf-pg-smarter-title {
    margin-top: 0;
    margin-bottom: 0.6rem;
    font-size: 1.1rem;
    color: #1f5f9c;
}

.gbf-pg-smarter-text {
    margin: 0 0 0.7rem;
    font-size: 0.97rem;
}

/* SIDEBAR: “Is ___ right for me?” */

.gbf-pg-fit-panel {
    padding: 1.2rem 1.2rem 1.4rem;
    background: #f5f5f5;
    border-radius: 16px;
}

/* Sidebar image above title */
.gbf-pg-fit-image {
    margin: 0 0 0.8rem;
    border-radius: 8px;
    background: #e7edf6;
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.gbf-pg-fit-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gbf-pg-fit-title {
    margin-top: 0;
    font-size: 1.1rem;
    color: #1f5f9c;
    margin-bottom: 0.8rem;
}

/* Number block in light blue, stretching full height of question/answer */
.gbf-pg-fit-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.gbf-pg-fit-list li {
    display: flex;
    align-items: stretch;
    margin-bottom: 0.8rem;
    font-size: 0.94rem;
}

.gbf-pg-fit-number {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.75rem;
    background: #689cd3;
    color: #ffffff;
    font-weight: 700;
    min-width: 32px;
}

.gbf-pg-fit-text {
    flex: 1;
    padding: 0.5rem 0.75rem;
}

/* Responsive tweaks */
@media (max-width: 800px) {
    .gbf-pg-main-layout {
        flex-direction: column;
        gap: 2rem;
    }

    .gbf-pg-sidebar-column {
        order: 2;
    }
}