.gn-custom-blog {
    --gn-custom-primary: #0bd876;
    --gn-custom-primary-dark: #087a5a;
    --gn-custom-primary-hover: #055f48;
    --gn-custom-black: #101318;
    --gn-custom-white: #ffffff;
    --gn-custom-light-gray: #f4f7f6;
    --gn-custom-muted: #4b5563;
    --gn-custom-border: rgba(17, 17, 17, 0.08);
    --gn-custom-font-regular: 400;
    --gn-custom-font-semibold: 600;
    --gn-custom-font-bold: 700;
    background: var(--gn-custom-white);
    color: var(--gn-custom-black);
    font-family: var(--font-family-ubuntu, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
}

.gn-custom-blog-hero {
    padding: 88px 0 54px;
    background: linear-gradient(135deg, #f7f7f8 0%, #ffffff 56%, #ecfcf4 100%);
    border-bottom: 1px solid rgba(17, 17, 17, 0.07);
}

.gn-custom-blog-hero__inner,
.gn-custom-single-hero__content {
    max-width: 850px;
}

.gn-custom-blog-kicker,
.gn-custom-post-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gn-custom-primary-dark);
    font-size: 14px;
    font-weight: var(--font-weight-700, var(--gn-custom-font-bold));
    line-height: 1.4;
    text-transform: uppercase;
}

.gn-custom-blog-kicker {
    margin-bottom: 16px;
}

.gn-custom-blog-hero h1,
.gn-custom-single-hero h1 {
    max-width: 920px;
    margin: 0;
    color: var(--gn-custom-black);
    font-size: 60px;
    font-weight: var(--font-weight-700, var(--gn-custom-font-bold));
    line-height: 1.05;
}

.gn-custom-blog-hero__text,
.gn-custom-blog-hero__text p,
.gn-custom-single-hero__excerpt {
    max-width: 720px;
    margin-top: 20px;
    color: var(--gn-custom-muted);
    font-size: 18px;
    font-weight: var(--font-weight-400, var(--gn-custom-font-regular));
    line-height: 1.7;
}

.gn-custom-blog-listing {
    padding: 56px 0 84px;
}

.gn-custom-blog-content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
    gap: 54px;
    align-items: start;
}

.gn-custom-blog-content-layout--sidebar-left {
    grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
}

.gn-custom-blog-content-layout--sidebar-left .gn-custom-blog-main {
    order: 2;
}

.gn-custom-blog-content-layout--sidebar-left .gn-custom-blog-sidebar {
    order: 1;
}

.gn-custom-blog-content-layout--no-sidebar {
    grid-template-columns: 1fr;
}

.gn-custom-blog-main {
    min-width: 0;
}

.gn-custom-listing-widgets {
    display: grid;
    gap: 18px;
}

.gn-custom-listing-widgets--top {
    margin-bottom: 28px;
}

.gn-custom-listing-widgets--bottom {
    margin-top: 34px;
}

.gn-custom-listing-widget {
    overflow: hidden;
    padding: 22px;
    background: var(--gn-custom-white);
    border: 1px solid var(--gn-custom-border);
    border-radius: 8px;
    box-shadow: 0 16px 38px rgba(17, 17, 17, 0.06);
}

.gn-custom-listing-widget__title,
.gn-custom-listing-widget .wp-block-heading {
    margin-bottom: 12px;
    color: var(--gn-custom-black);
    font-size: 20px;
    font-weight: var(--font-weight-700, var(--gn-custom-font-bold));
}

.gn-custom-listing-widget img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.gn-custom-post-grid {
    display: grid;
    grid-template-columns: repeat(var(--gn-custom-grid-columns, 3), minmax(0, 1fr));
    gap: 28px;
}

.gn-custom-post-card {
    display: flex;
    min-width: 0;
    height: 100%;
    overflow: hidden;
    flex-direction: column;
    background: var(--gn-custom-white);
    border: 2px solid var(--gn-custom-border);
}

.gn-custom-post-card:hover {
    border-color: rgba(11, 216, 118, 0.55);
}

.gn-custom-post-card__media {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--gn-custom-light-gray);
}

.gn-custom-post-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gn-custom-post-card:hover .gn-custom-post-card__media img {
    transform: scale(1.04);
}

.gn-custom-post-card__placeholder {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    color: var(--gn-custom-primary-dark);
    font-size: 44px;
    background: linear-gradient(135deg, #ecfcf4, #fff8ec);
}

.gn-custom-post-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 24px;
}

.gn-custom-post-meta {
    color: #6b7280;
    font-size: 13px;
}

.gn-custom-post-meta a {
    color: var(--gn-custom-primary-dark);
    font-weight: var(--font-weight-700, var(--gn-custom-font-bold));
}

.gn-custom-post-card__title {
    margin-top: 14px;
    font-size: 24px;
    font-weight: var(--font-weight-700, var(--gn-custom-font-bold));
    line-height: 1.22;
}

.gn-custom-post-card__title a {
    color: var(--gn-custom-black);
}

.gn-custom-post-card__title a:hover {
    color: var(--gn-custom-primary-dark);
}

.gn-custom-post-card__excerpt {
    margin-top: 14px;
    color: var(--gn-custom-muted);
    font-size: 16px;
    font-weight: var(--font-weight-400, var(--gn-custom-font-regular));
    line-height: 1.65;
}

.gn-custom-post-card__link {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 24px;
    color: var(--gn-custom-primary-dark);
    font-size: 15px;
    font-weight: var(--font-weight-700, var(--gn-custom-font-bold));
}

.gn-custom-post-card__link:hover {
    color: var(--gn-custom-primary-hover);
}

.gn-custom-infeed-ad {
    display: flex;
    min-width: 0;
    height: 100%;
    overflow: hidden;
    flex-direction: column;
    padding: 0;
    color: var(--gn-custom-white);
    background: linear-gradient(135deg, var(--gn-custom-primary-dark), var(--gn-custom-primary-hover));
    border-radius: 8px;
    box-shadow: 0 22px 55px rgba(17, 17, 17, 0.1);
}

.gn-custom-infeed-ad:before {
    content: "";
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    background:
        radial-gradient(circle at 80% 18%, rgba(255, 255, 255, 0.22), transparent 30%),
        radial-gradient(circle at 10% 90%, rgba(11, 216, 118, 0.36), transparent 34%);
}

.gn-custom-infeed-ad--has-image:before {
    display: none;
}

.gn-custom-infeed-ad__media {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    margin: 0;
}

.gn-custom-infeed-ad__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gn-custom-infeed-ad--widget {
    min-height: 100%;
    padding: 0;
    color: inherit;
    background: transparent;
    box-shadow: none;
}

.gn-custom-infeed-ad--widget:before {
    display: none;
}

.gn-custom-infeed-ad__eyebrow {
    display: block;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 13px;
    font-weight: var(--font-weight-700, var(--gn-custom-font-bold));
    text-transform: uppercase;
}

.gn-custom-infeed-ad__title {
    margin: 0;
    color: var(--gn-custom-white);
    font-size: 24px;
    font-weight: var(--font-weight-700, var(--gn-custom-font-bold));
    line-height: 1.22;
}

.gn-custom-infeed-ad p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 16px;
    line-height: 1.7;
}

.gn-custom-infeed-ad .gn-custom-sidebar-button {
    margin-top: 24px;
    width: fit-content;
}

.gn-custom-infeed-ad__eyebrow,
.gn-custom-infeed-ad__title,
.gn-custom-infeed-ad p,
.gn-custom-infeed-ad .gn-custom-sidebar-button {
    margin-right: 24px;
    margin-left: 24px;
}

.gn-custom-infeed-ad__eyebrow {
    margin-top: 24px;
}

.gn-custom-infeed-ad .gn-custom-sidebar-button {
    margin-bottom: 24px;
}

.gn-custom-blog-pagination {
    margin-top: 48px;
}

.gn-custom-blog-pagination .nav-links,
.gn-custom-post-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.gn-custom-blog-pagination .page-numbers {
    display: inline-flex;
    min-width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    color: var(--gn-custom-black);
    background: var(--gn-custom-light-gray);
    border-radius: 8px;
    font-weight: var(--font-weight-700, var(--gn-custom-font-bold));
}

.gn-custom-blog-pagination .page-numbers.current,
.gn-custom-blog-pagination .page-numbers:hover {
    color: var(--gn-custom-white);
    background: var(--gn-custom-primary-dark);
}

.gn-custom-blog-empty {
    max-width: 680px;
    padding: 48px;
    background: var(--gn-custom-light-gray);
    border-radius: 8px;
}

.gn-custom-blog-empty h2 {
    margin-bottom: 12px;
    font-weight: var(--font-weight-700, var(--gn-custom-font-bold));
}

.gn-custom-blog-empty p {
    color: var(--gn-custom-muted);
    font-weight: var(--font-weight-400, var(--gn-custom-font-regular));
    line-height: 1.6;
}

.gn-custom-single-hero {
    padding: 82px 0 42px;
    background: linear-gradient(135deg, #f7f7f8 0%, #ffffff 62%, #ecfcf4 100%);
}

.gn-custom-post-meta--single {
    margin-bottom: 18px;
}

.gn-custom-single-featured {
    overflow: hidden;
    margin: 0 0 54px;
    border-radius: 8px;
    box-shadow: 0 22px 65px rgba(17, 17, 17, 0.12);
}

.gn-custom-single-featured img {
    display: block;
    width: 100%;
    max-height: 560px;
    object-fit: cover;
}

.gn-custom-single-layout {
    display: grid;
    grid-template-columns: minmax(0, 780px) minmax(280px, 340px);
    gap: 64px;
    align-items: start;
    padding-bottom: 64px;
    margin-top: 60px;
}

.gn-custom-single-layout--sidebar-left {
    grid-template-columns: minmax(280px, 340px) minmax(0, 780px);
}

.gn-custom-single-layout--sidebar-left .gn-custom-single-content {
    order: 2;
}

.gn-custom-single-layout--sidebar-left .gn-custom-blog-sidebar {
    order: 1;
}

.gn-custom-single-layout--no-sidebar {
    grid-template-columns: minmax(0, 860px);
    justify-content: center;
}

.gn-custom-blog-sidebar {
    position: sticky;
    top: 105px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.gn-custom-sidebar-widget {
    overflow: hidden;
    padding: 22px;
    background: var(--gn-custom-white);
    border: 1px solid var(--gn-custom-border);
    border-radius: 8px;
    box-shadow: 0 16px 38px rgba(17, 17, 17, 0.06);
}

.gn-custom-sidebar-widget--promo {
    color: var(--gn-custom-white);
    background: linear-gradient(135deg, var(--gn-custom-primary-dark), var(--gn-custom-primary-hover));
    border-color: transparent;
}

.gn-custom-sidebar-widget--soft {
    background: #fff8ec;
    border-color: rgba(255, 105, 0, 0.22);
}

.gn-custom-sidebar-widget--ad img,
.gn-custom-sidebar-widget img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.gn-custom-sidebar-widget__eyebrow {
    display: block;
    margin-bottom: 8px;
    color: var(--gn-custom-primary-dark);
    font-size: 13px;
    font-weight: var(--font-weight-700, var(--gn-custom-font-bold));
    text-transform: uppercase;
}

.gn-custom-sidebar-widget--promo .gn-custom-sidebar-widget__eyebrow {
    color: rgba(255, 255, 255, 0.76);
}

.gn-custom-sidebar-widget__title,
.gn-custom-sidebar-widget .wp-block-heading {
    margin-bottom: 14px;
    color: var(--gn-custom-black);
    font-size: 20px;
    font-weight: var(--font-weight-700, var(--gn-custom-font-bold));
    line-height: 1.25;
}

.gn-custom-sidebar-widget--promo .gn-custom-sidebar-widget__title,
.gn-custom-sidebar-widget--promo p {
    color: var(--gn-custom-white);
}

.gn-custom-sidebar-widget p,
.gn-custom-sidebar-widget li {
    color: var(--gn-custom-white);
    font-size: 15px;
    font-weight: var(--font-weight-400, var(--gn-custom-font-regular));
    line-height: 1.65;
}

.gn-custom-sidebar-widget ul,
.gn-custom-sidebar-widget ol {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gn-custom-sidebar-widget li {
    list-style: none;
}

.gn-custom-sidebar-widget a {
    color: var(--gn-custom-black);
    font-weight: var(--font-weight-600, var(--gn-custom-font-semibold));
}

.gn-custom-sidebar-widget a:hover {
    color: var(--gn-custom-primary-dark);
}

.gn-custom-sidebar-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    padding: 10px 14px;
    color: var(--gn-custom-black) !important;
    background: var(--gn-custom-primary);
    border-radius: 8px;
    font-size: 14px;
    font-weight: var(--font-weight-700, var(--gn-custom-font-bold));
}

.gn-custom-sidebar-button:hover {
    color: var(--gn-custom-white) !important;
    background: var(--gn-custom-black);
}

.gn-custom-sidebar-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.gn-custom-sidebar-tags a {
    display: inline-flex;
    padding: 7px 10px;
    color: var(--gn-custom-primary-dark);
    background: var(--gn-custom-white);
    border: 1px solid rgba(11, 216, 118, 0.35);
    border-radius: 8px;
    font-size: 13px;
    font-weight: var(--font-weight-700, var(--gn-custom-font-bold));
}

.gn-custom-sidebar-tags a:hover {
    color: var(--gn-custom-white);
    background: var(--gn-custom-primary-dark);
    border-color: var(--gn-custom-primary-dark);
}

.gn-custom-sidebar-posts {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.gn-custom-sidebar-post {
    display: block;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--gn-custom-border);
}

.gn-custom-sidebar-post:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.gn-custom-sidebar-post span {
    display: block;
    color: var(--gn-custom-black);
    font-size: 15px;
    font-weight: var(--font-weight-700, var(--gn-custom-font-bold));
    line-height: 1.35;
}

.gn-custom-sidebar-post time {
    display: block;
    margin-top: 6px;
    color: #6b7280;
    font-size: 13px;
}

.gn-custom-sidebar-widget .searchform .d-flex {
    gap: 8px;
}

.gn-custom-sidebar-widget .search-field {
    width: 100%;
    height: 44px;
    padding: 10px 12px;
    border: 1px solid rgba(17, 17, 17, 0.14);
    border-radius: 8px;
    font-size: 15px;
}

.gn-custom-sidebar-widget .search-field:focus {
    border-color: var(--gn-custom-primary-dark);
}

.gn-custom-sidebar-widget .ux-search-submit {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    background: var(--gn-custom-primary);
    border: 0;
    border-radius: 8px;
}

.gn-custom-sidebar-widget .ux-search-submit img {
    width: 18px;
    height: 18px;
}

.gn-custom-single-content {
    min-width: 0;
}

.gn-custom-single-content > * + * {
    margin-top: 22px;
}

.gn-custom-single-content p,
.gn-custom-single-content li {
    color: #2f343b;
    font-size: 18px;
    font-weight: var(--font-weight-400, var(--gn-custom-font-regular));
    line-height: 1.8;
}

.gn-custom-single-content h2,
.gn-custom-single-content h3,
.gn-custom-single-content h4 {
    margin-top: 42px;
    color: var(--gn-custom-black);
    font-weight: var(--font-weight-700, var(--gn-custom-font-bold));
}

.gn-custom-single-content a {
    color: var(--gn-custom-primary-dark);
    font-weight: var(--font-weight-700, var(--gn-custom-font-bold));
}

.gn-custom-single-content a:hover {
    color: var(--gn-custom-primary-hover);
    text-decoration: underline !important;
}

.gn-custom-single-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.gn-custom-single-content blockquote {
    margin: 34px 0;
    padding: 22px 28px;
    color: var(--gn-custom-black);
    background: #ecfcf4;
    border-left: 4px solid var(--gn-custom-primary);
}

.gn-custom-page-links {
    padding-top: 24px;
    font-weight: var(--font-weight-700, var(--gn-custom-font-bold));
}

.gn-custom-post-navigation {
    justify-content: space-between;
    padding: 28px 0 78px;
    border-top: 1px solid var(--gn-custom-border);
}

.gn-custom-post-navigation__item {
    max-width: min(420px, 100%);
}

.gn-custom-post-navigation__item span {
    display: block;
    margin-bottom: 8px;
    color: #6b7280;
    font-size: 13px;
    font-weight: var(--font-weight-700, var(--gn-custom-font-bold));
    text-transform: uppercase;
}

.gn-custom-post-navigation__item a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--gn-custom-black);
    font-size: 18px;
    font-weight: var(--font-weight-700, var(--gn-custom-font-bold));
}

.gn-custom-post-navigation__item a:hover {
    color: var(--gn-custom-primary-dark);
}

.gn-custom-post-navigation__item--next {
    margin-left: auto;
    text-align: right;
}

@media (max-width: 991px) {
    .gn-custom-blog-hero,
    .gn-custom-single-hero {
        padding-top: 118px;
    }

    .gn-custom-blog-content-layout,
    .gn-custom-blog-content-layout--sidebar-left,
    .gn-custom-single-layout,
    .gn-custom-single-layout--sidebar-left {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .gn-custom-blog-content-layout--sidebar-left .gn-custom-blog-main,
    .gn-custom-blog-content-layout--sidebar-left .gn-custom-blog-sidebar,
    .gn-custom-single-layout--sidebar-left .gn-custom-single-content,
    .gn-custom-single-layout--sidebar-left .gn-custom-blog-sidebar {
        order: initial;
    }

    .gn-custom-blog-sidebar {
        position: static;
    }
}

@media (max-width: 767px) {
    .gn-custom-blog-hero h1,
    .gn-custom-single-hero h1 {
        font-size: 38px;
    }

    .gn-custom-post-grid {
        grid-template-columns: 1fr;
    }

    .gn-custom-blog-listing {
        padding: 36px 0 58px;
    }

    .gn-custom-post-card__body {
        padding: 20px;
    }

    .gn-custom-single-featured {
        margin-bottom: 34px;
    }

    .gn-custom-single-content p,
    .gn-custom-single-content li {
        font-size: 17px;
    }

    .gn-custom-post-navigation {
        align-items: flex-start;
        flex-direction: column;
    }

    .gn-custom-post-navigation__item--next {
        margin-left: 0;
        text-align: left;
    }
}
