body.home .wp-site-blocks > header,
body.home .wp-site-blocks > footer {
    display: none;
}

body.home .entry-content,
body.home main,
body.home .wp-block-post-content {
    margin-block-start: 0 !important;
}

body.home .wp-block-post-title {
    display: none !important;
}

body.home #wp--skip-link--target {
    margin-top: 0 !important;
}

body.home #wp--skip-link--target > .wp-block-group.alignfull {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

body.home .entry-content.alignfull.wp-block-post-content {
    max-width: none !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
}

body.home .wp-block-post-content > .cgaf-home,
body.home .entry-content > .cgaf-home {
    max-width: none !important;
    width: 100vw !important;
    margin-right: calc(50% - 50vw) !important;
    margin-left: calc(50% - 50vw) !important;
}

.cgaf-home {
    --cgaf-ink: #111827;
    --cgaf-muted: #5c6675;
    --cgaf-line: #e4e9ef;
    --cgaf-soft: #f6f8fb;
    --cgaf-deep: #34493b;
    --cgaf-teal: #13a1ad;
    --cgaf-accent: #f35d50;
    max-width: none !important;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    color: var(--cgaf-ink);
    background: #fff;
    font-family: inherit;
}

.cgaf-home a {
    color: inherit;
    text-decoration: none;
}

.cgaf-home-header {
    border-bottom: 1px solid var(--cgaf-line);
    background: #fff;
}

.cgaf-home-utility,
.cgaf-home-mainbar,
.cgaf-home-categorybar,
.cgaf-home-main,
.cgaf-home-footer {
    max-width: 1280px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

.cgaf-home-utility {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    font-size: 0.9rem;
}

.cgaf-home-utility nav,
.cgaf-home-primary,
.cgaf-home-actions,
.cgaf-home-categorybar,
.cgaf-home-popular {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.cgaf-home-utility a,
.cgaf-home-primary a,
.cgaf-home-account {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.cgaf-home .dashicons {
    width: 18px;
    height: 18px;
    font-size: 18px;
    line-height: 1;
}

.cgaf-home-mainbar {
    min-height: 86px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 28px;
    background: var(--cgaf-deep);
    box-shadow: 0 0 0 100vmax var(--cgaf-deep);
    clip-path: inset(0 -100vmax);
    color: #fff;
}

.cgaf-home-mainbar::before,
.cgaf-home-mainbar::after {
    content: none;
}

.cgaf-home-logo {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 1.55rem;
    font-weight: 700;
    white-space: nowrap;
}

.cgaf-home-logo b {
    color: #f4b33f;
    font-size: inherit;
}

.cgaf-home-primary {
    font-weight: 700;
}

.cgaf-home-actions {
    justify-content: flex-end;
}

.cgaf-home-buy {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 22px;
    border: 1px solid #d8ecf3;
    border-radius: 8px;
    background: #fff;
    color: #096c85;
    font-weight: 800;
}

.cgaf-home .cgaf-home-buy,
.cgaf-home .cgaf-home-buy .dashicons {
    color: #096c85;
}

.cgaf-home-categorybar {
    min-height: 64px;
    justify-content: center;
    color: #141923;
    font-weight: 600;
}

.cgaf-home-main {
    padding-top: 0;
    padding-bottom: 0;
}

.cgaf-home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
    gap: 48px;
    align-items: center;
    padding: 72px 0 64px;
}

.cgaf-home-eyebrow {
    margin: 0 0 12px;
    color: var(--cgaf-teal);
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
}

.cgaf-home-hero h1 {
    max-width: 680px;
    margin: 0 0 18px;
    font-size: 3.4rem;
    line-height: 1.05;
    letter-spacing: 0;
}

.cgaf-home-hero p {
    max-width: 640px;
    margin: 0 0 12px;
    color: var(--cgaf-muted);
    font-size: 1.08rem;
    line-height: 1.6;
}

.cgaf-home-search {
    max-width: 780px;
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(150px, 210px) auto;
    gap: 10px;
    margin: 28px 0 16px;
    padding: 10px;
    border: 1px solid var(--cgaf-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.cgaf-home-search input,
.cgaf-home-search select,
.cgaf-home-search button {
    min-width: 0;
    min-height: 48px;
    border-radius: 7px;
    box-sizing: border-box;
    font: inherit;
}

.cgaf-home-search input,
.cgaf-home-search select {
    width: 100%;
    border: 1px solid #d8e0e9;
    padding: 0 14px;
}

.cgaf-home-search button {
    border: 0;
    padding: 0 24px;
    background: var(--cgaf-teal);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.cgaf-home-popular {
    gap: 10px;
    color: var(--cgaf-muted);
    font-size: 0.94rem;
}

.cgaf-home-popular a {
    padding: 7px 12px;
    border: 1px solid var(--cgaf-line);
    border-radius: 999px;
    background: var(--cgaf-soft);
    color: var(--cgaf-ink);
    font-weight: 700;
}

.cgaf-home-hero-preview {
    position: relative;
    min-height: 430px;
}

.cgaf-home-hero-preview a,
.cgaf-home-empty-preview {
    position: absolute;
    display: block;
    overflow: hidden;
    border: 1px solid var(--cgaf-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.14);
}

.cgaf-home-hero-preview a:nth-child(1) {
    inset: 0 0 auto 54px;
    z-index: 3;
}

.cgaf-home-hero-preview a:nth-child(2) {
    inset: 92px 88px auto 0;
    z-index: 2;
}

.cgaf-home-hero-preview a:nth-child(3) {
    inset: auto 28px 0 112px;
    z-index: 1;
}

.cgaf-home-hero-preview img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.cgaf-home-hero-preview span:not(.dashicons) {
    display: block;
    padding: 12px 14px;
    background: #fff;
    font-size: 0.88rem;
    font-weight: 800;
}

.cgaf-home-section {
    padding: 56px 0;
    border-top: 1px solid #eef2f6;
}

.cgaf-home-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 26px;
}

.cgaf-home-section-heading h2,
.cgaf-home-client-band h2,
.cgaf-home-stats h2 {
    margin: 0 0 8px;
    font-size: 2rem;
    line-height: 1.15;
    letter-spacing: 0;
}

.cgaf-home-section-heading p,
.cgaf-home-client-band span,
.cgaf-home-stats p {
    margin: 0;
    color: var(--cgaf-muted);
    line-height: 1.55;
}

.cgaf-home-section-heading > a,
.cgaf-home-client-band > a,
.cgaf-home-stats a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 7px;
    background: var(--cgaf-deep);
    color: #fff;
    font-weight: 800;
    white-space: nowrap;
}

.cgaf-product-grid,
.cgaf-source-category-grid,
.cgaf-purchase-steps {
    display: grid;
    gap: 20px;
}

.cgaf-source-category-grid {
    grid-template-columns: repeat(3, 1fr);
}

.cgaf-source-category-card {
    min-height: 92px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border: 1px solid var(--cgaf-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}

.cgaf-source-category-card > .dashicons:first-child {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #e9f7f8;
    color: var(--cgaf-teal);
    font-size: 24px;
}

.cgaf-source-category-card strong,
.cgaf-source-category-card small {
    display: block;
}

.cgaf-source-category-card strong {
    margin-bottom: 4px;
    font-size: 1rem;
}

.cgaf-source-category-card small {
    color: var(--cgaf-muted);
}

.cgaf-source-category-card > .dashicons:last-child {
    color: #9aa5b1;
}

.cgaf-product-card h3,
.cgaf-purchase-steps h3 {
    margin: 0 0 10px;
    font-size: 1.08rem;
    line-height: 1.35;
    letter-spacing: 0;
}

.cgaf-product-card p,
.cgaf-purchase-steps p {
    margin: 0;
    color: var(--cgaf-muted);
    line-height: 1.55;
}

.cgaf-product-grid {
    grid-template-columns: repeat(4, 1fr);
}

.cgaf-product-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--cgaf-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.cgaf-product-card-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #eef4f6;
}

.cgaf-product-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 160ms ease;
}

.cgaf-product-card:hover .cgaf-product-card-image img {
    transform: scale(1.03);
}

.cgaf-card-placeholder {
    display: grid;
    width: 100%;
    aspect-ratio: 16 / 9;
    place-items: center;
    color: #7b8794;
    font-size: 48px;
}

.cgaf-product-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 16px;
}

.cgaf-product-card-category {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--cgaf-teal);
    font-size: 0.86rem;
    font-weight: 800;
}

.cgaf-product-card-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--cgaf-line);
}

.cgaf-product-card-actions a {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 8px;
    border: 1px solid #dfe5eb;
    border-radius: 5px;
    color: #4d5968;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
}

.cgaf-product-card-actions a:last-child {
    border-color: var(--cgaf-teal);
    background: var(--cgaf-teal);
    color: #fff;
}

.cgaf-product-card-actions .dashicons {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    font-size: 16px;
}

.cgaf-home-client-band {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 28px;
    margin: 28px 0 40px;
    padding: 38px;
    border-radius: 8px;
    background: #eaf7f2;
}

.cgaf-home-client-band p {
    margin: 0 0 8px;
    color: var(--cgaf-teal);
    font-weight: 800;
}

.cgaf-purchase-steps {
    grid-template-columns: repeat(4, 1fr);
}

.cgaf-purchase-steps article {
    position: relative;
    min-height: 230px;
    padding: 22px;
    border: 1px solid var(--cgaf-line);
    border-radius: 8px;
    background: #fff;
}

.cgaf-purchase-steps article > .dashicons {
    width: 42px;
    height: 42px;
    margin: 30px 0 20px;
    color: var(--cgaf-teal);
    font-size: 42px;
}

.cgaf-step-number {
    position: absolute;
    top: 18px;
    right: 18px;
    color: #cbd3dc;
    font-size: 1.4rem;
    font-weight: 800;
}

.cgaf-home-stats {
    display: grid;
    grid-template-columns: minmax(0, 1fr) repeat(3, minmax(140px, 180px));
    gap: 20px;
    align-items: center;
    padding: 56px 0;
    border-top: 1px solid #eef2f6;
}

.cgaf-home-stats > div:not(:first-child) {
    padding: 24px;
    border: 1px solid var(--cgaf-line);
    border-radius: 8px;
    text-align: center;
}

.cgaf-home-stats strong {
    display: block;
    margin-bottom: 8px;
    font-size: 2rem;
}

.cgaf-home-stats span {
    color: var(--cgaf-muted);
}

.cgaf-home-footer {
    display: grid;
    grid-template-columns: minmax(240px, 1.2fr) repeat(4, 1fr);
    gap: 28px;
    padding-top: 42px;
    padding-bottom: 42px;
    border-top: 1px solid #253629;
    background: var(--cgaf-deep);
    box-shadow: 0 0 0 100vmax var(--cgaf-deep);
    clip-path: inset(0 -100vmax);
    color: #fff;
}

.cgaf-home-footer h2,
.cgaf-home-footer h3 {
    margin: 0 0 14px;
    letter-spacing: 0;
}

.cgaf-home-footer p {
    margin: 0;
    color: #d6e0d9;
    line-height: 1.55;
}

.cgaf-home-footer nav {
    display: grid;
    gap: 10px;
}

.cgaf-home-footer nav a {
    color: #e7eee9;
}

.cgaf-home-account {
    position: relative;
}

.cgaf-home-account small {
    position: absolute;
    top: -20px;
    right: 0;
    padding: 3px 7px;
    border-radius: 4px;
    background: #e32d28;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    white-space: nowrap;
}

.cgaf-home-empty,
.cgaf-home-empty-preview {
    padding: 24px;
    color: var(--cgaf-muted);
}

@media (max-width: 1080px) {
    .cgaf-home-mainbar,
    .cgaf-home-hero,
    .cgaf-home-client-band,
    .cgaf-home-stats {
        grid-template-columns: 1fr;
    }

    .cgaf-home-actions {
        justify-content: flex-start;
    }

    .cgaf-product-grid,
    .cgaf-source-category-grid,
    .cgaf-purchase-steps,
    .cgaf-home-footer {
        grid-template-columns: repeat(2, 1fr);
    }

    .cgaf-home-hero-preview {
        min-height: 360px;
    }
}

@media (max-width: 720px) {
    .cgaf-home-utility,
    .cgaf-home-mainbar,
    .cgaf-home-categorybar,
    .cgaf-home-main,
    .cgaf-home-footer {
        padding-left: 16px;
        padding-right: 16px;
    }

    .cgaf-home-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .cgaf-home-utility {
        min-height: 46px;
        justify-content: flex-start;
        overflow-x: auto;
        white-space: nowrap;
        scrollbar-width: none;
    }

    .cgaf-home-utility::-webkit-scrollbar,
    .cgaf-home-primary::-webkit-scrollbar,
    .cgaf-home-categorybar::-webkit-scrollbar {
        display: none;
    }

    .cgaf-home-utility nav,
    .cgaf-home-primary,
    .cgaf-home-categorybar {
        flex-wrap: nowrap;
    }

    .cgaf-home-mainbar {
        min-height: 0;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 14px;
        padding-top: 14px;
        padding-bottom: 14px;
    }

    .cgaf-home-primary {
        grid-column: 1 / -1;
        grid-row: 2;
        overflow-x: auto;
        white-space: nowrap;
    }

    .cgaf-home-actions {
        grid-column: 2;
        grid-row: 1;
        flex-wrap: nowrap;
    }

    .cgaf-home-buy {
        font-size: 0.88rem;
    }

    .cgaf-home-account > span:not(.dashicons) {
        display: none;
    }

    .cgaf-home-buy {
        min-height: 40px;
        padding: 0 12px;
    }

    .cgaf-home-categorybar {
        min-height: 50px;
        justify-content: flex-start;
        overflow-x: auto;
        white-space: nowrap;
    }

    .cgaf-home-search,
    .cgaf-product-grid,
    .cgaf-source-category-grid,
    .cgaf-purchase-steps,
    .cgaf-home-footer {
        grid-template-columns: 1fr;
    }

    .cgaf-home-hero h1 {
        font-size: 2.25rem;
    }

    .cgaf-home-section-heading h2,
    .cgaf-home-client-band h2,
    .cgaf-home-stats h2 {
        font-size: 1.65rem;
    }

    .cgaf-home-hero {
        padding-top: 42px;
    }

    .cgaf-home-hero-preview {
        min-height: auto;
    }

    .cgaf-home-hero-preview a,
    .cgaf-home-empty-preview {
        position: static;
        margin-bottom: 14px;
    }
}
