/* ============================================================
   GRID LISTING BLOCK
   Two layout modes: left (service pages) | center (solutions)
   ============================================================ */

.gl-section {
    padding: 60px 0;
    position: relative;
}

.gl-section [data-dot-sphere] {
    left: auto;
    right: calc(100% - 600px);
}

/* ── Separator override (block-scoped) ─────────────────────── */
.gl-section .gl-separator {
    display: block;
    flex-shrink: 0;
    width: 48px;
    height: 3px;
    border-radius: 2px;
    background: #03cfff;
}

/* ── Arrow ─────────────────────────────────────────────────── */
.gl-arrow {
    width: 19px;
    height: 19px;
    display: block;
    flex-shrink: 0;
}

/* ════════════════════════════════════════════════════════════
   HEADER — LEFT layout
   ════════════════════════════════════════════════════════════ */
.gl-header--left {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 50px;
}

.gl-header--left .gl-header-text {
    display: flex;
    flex-direction: column;
    gap: 26px;
    max-width: 604px;
}

.gl-header--left .gl-heading {
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 50px;
    line-height: 57px;
    letter-spacing: -0.037em;
    color: var(--clr-white);
    margin: 0;
}

.gl-header--left .gl-body {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 20px;
    line-height: 30px;
    color: var(--clr-white);
    margin: 0;
}

.gl-illustration {
    flex-shrink: 0;
    width: 309px;
    height: 304px;
}

.gl-illustration img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ════════════════════════════════════════════════════════════
   HEADER — CENTER layout
   ════════════════════════════════════════════════════════════ */
.gl-header--center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 26px;
    text-align: center;
    margin-bottom: 55px;
}

.gl-eyebrow {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 12px;
    line-height: 1.6;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #03cfff;
    display: block;
}

.gl-header--center .gl-heading {
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 50px;
    line-height: 57px;
    letter-spacing: -0.037em;
    color: var(--clr-white);
    margin: 0;
}

.gl-header--center .gl-body--center {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 20px;
    line-height: 30px;
    color: var(--clr-white);
    max-width: 752px;
    margin: 0;
}

/* ── Heading group (text + optional logo image) ─────────────── */
.gl-heading-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.gl-heading-image {
    max-width: 470px;
    width: 100%;
}

.gl-heading-image img {
    max-width: 470px;
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* ════════════════════════════════════════════════════════════
   GRID
   ════════════════════════════════════════════════════════════ */
.gl-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
}

/* Columns-per-row variants (default .gl-grid is already 2 cols) */
.gl-grid--cols-3 { grid-template-columns: repeat(3, 1fr); }
.gl-grid--cols-4 { grid-template-columns: repeat(4, 1fr); }

/* ════════════════════════════════════════════════════════════
   CARD
   ════════════════════════════════════════════════════════════ */
.gl-card {
    position: relative;
    border: 1px solid var(--clr-white);
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    border-radius: 6px;
    padding: 50px;
    min-height: 351px;
    display: flex;
    flex-direction: column;
    justify-content: start;
    overflow: hidden;
}

/* ── Card background pattern ─────────────────────────────── */
.gl-card-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: 6px;
    overflow: hidden;
}

.gl-card-bg img {
    position: absolute;
    left: 30.67%;
    top: 27.75%;
    width: 100%;
    height: 128.72%;
    object-fit: contain;
    opacity: 0;
    transform: translate(24px, 24px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.gl-card:hover .gl-card-bg img {
    opacity: 1;
    transform: translate(0, 0);
}

/* ── Card content ──────────────────────────────────────────── */
.gl-card-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
}

.gl-card-title {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 30px;
    line-height: 28.9px;
    color: #03cfff;
    margin: 0;
    max-width: 480px;
}

.gl-card-body {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 20px;
    line-height: 30px;
    color: var(--clr-white);
    margin: 0;
    max-width: 482px;
}

.gl-card-body p {
    margin: 0;
    font-size: inherit;
    line-height: inherit;
    font-weight: inherit;
}

.gl-card-body p:empty { display: none; }

/* ── Card CTA button ────────────────────────────────────────── */
.gl-card-cta {
    min-width: 0;
    width: auto;
    font-family: var(--font-body);
    color: var(--clr-black);
    font-weight: 800;
    font-size: 20px;
    line-height: 28.9px;
    text-transform: uppercase;
    padding: 14px 28px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s, transform 0.15s;
    box-shadow: none;
}

.gl-card .gl-card-cta {
    color: var(--clr-black);
    font-size: 17px;
}

.gl-card .gl-card-cta:hover{
    color: var(--clr-black);
}

.gl-card-cta--primary {
    background-color: #03cfff;
    color: var(--clr-black);
}

.gl-card-cta--secondary {
    background-color: var(--clr-secondary);
    color: var(--clr-black);
}

.gl-card-cta:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

/* ── Full-width card ────────────────────────────────────────── */
.gl-card--full {
    grid-column: 1 / -1;
}

.gl-card--full .gl-card-title,
.gl-card--full .gl-card-body {
    max-width: none;
}

.gl-card--full:not(.gl-card--has-image) .gl-card-bg img {
    left: 72.83%;
    top: 26.15%;
    width: 30.33%;
    height: 88.05%;
}

/* ── Card with image — row layout ───────────────────────────── */
.gl-card--has-image {
    flex-direction: row;
    align-items: center;
    gap: 34px;
    padding: 21px 43px;
    border-radius: 15px;
    min-height: 0;
}

.gl-card--full.gl-card--has-image {
    align-items: center;
    min-height: 313px;
}

.gl-card--has-image .gl-card-inner {
    flex: 1;
    min-width: 0;
    gap: 26px;
}

.gl-card--has-image .gl-card-bg img {
    left: 53.97%;
    top: 33.16%;
    width: 57.36%;
    height: 73.83%;
}

.gl-card--full.gl-card--has-image .gl-card-bg img {
    left: 71%;
    top: -32.5%;
    width: 42.17%;
    height: 165%;
}

/* ── Card image ─────────────────────────────────────────────── */
.gl-card-image {
    flex-shrink: 0;
    width: 102px;
    height: 102px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.gl-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gl-section .outro-content{
	text-align: center;
	margin-top: 30px;
}
.gl-section .outro-cta{
	margin-top: 30px;
}
@media (min-width: 992px){
	.gl-section .outro-content{
		margin-top: 50px;
	}
	.gl-section .outro-cta{
		margin-top: 50px;
	}
}

/* ════════════════════════════════════════════════════════════
   BOTTOM CTA
   ════════════════════════════════════════════════════════════ */
.gl-bottom-cta-wrap {
    display: flex;
    justify-content: center;
    margin-top: 55px;
}

.gl-bottom-cta {
    min-width: 0;
    width: auto;
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 20px;
    line-height: 28.9px;
    text-transform: uppercase;
    padding: 14px 28px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s, transform 0.15s;
    box-shadow: none;
}

.gl-bottom-cta--yellow {
    background-color: var(--clr-secondary);
    color: var(--clr-black);
}

.gl-bottom-cta--cyan {
    background-color: #03cfff;
    color: var(--clr-black);
}

.gl-bottom-cta:hover {
    transform: translateY(-2px);
    color: var(--clr-black);
    text-decoration: none;
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════ */
@media (max-width: 1199px) {
    .gl-header--left .gl-heading,
    .gl-header--center .gl-heading {
        font-size: clamp(32px, 4vw, 50px);
        line-height: 1.15;
    }

    .gl-card {
        padding: 40px;
        min-height: 300px;
    }

    .gl-card-title { font-size: 26px; }
    .gl-card-body  { font-size: 18px; }
}

@media (max-width: 991px) {
    .gl-section { padding: 48px 0; }

    /* Cap 3/4-col grids at 2 columns on tablet */
    .gl-grid--cols-3,
    .gl-grid--cols-4 { grid-template-columns: repeat(2, 1fr); }

    /* Left header: stack vertically on tablet */
    .gl-header--left {
        flex-direction: column-reverse;
        align-items: flex-start;
        margin-bottom: 40px;
    }

    .gl-illustration {
        width: 200px;
        height: 196px;
        align-self: center;
    }

    .gl-card-cta,
    .gl-bottom-cta {
        white-space: normal;
    }

    .gl-header--left .gl-header-text {
        max-width: 100%;
        gap: 20px;
    }

    .gl-header--center {
        margin-bottom: 40px;
    }

    .gl-header--center .gl-body--center {
        max-width: 100%;
    }
}

@media (max-width: 767px) {
    .gl-section { padding: 36px 0; }

    /* Single column on mobile (all variants) */
    .gl-grid,
    .gl-grid--cols-3,
    .gl-grid--cols-4 {
        grid-template-columns: 1fr;
    }

    .gl-card {
        padding: 32px 24px;
        min-height: 0;
    }

    .gl-card--has-image {
        flex-direction: column;
        padding: 24px 28px;
        min-height: 0;
        gap: 20px;
    }

    .gl-card-image {
        width: 72px;
        height: 72px;
    }

    .gl-card-inner { gap: 20px; }

    .gl-header--left .gl-heading,
    .gl-header--center .gl-heading {
        font-size: clamp(28px, 6vw, 40px);
        line-height: 1.2;
    }

    .gl-header--left .gl-body,
    .gl-header--center .gl-body--center { font-size: 16px; line-height: 1.5; }

    .gl-card-title { font-size: 24px; line-height: 1.2; }
    .gl-card-body  { font-size: 16px; line-height: 1.5; }

    .gl-card-cta,
    .gl-bottom-cta {
        font-size: 16px;
        padding: 12px 20px;
        white-space: normal;
    }

    .gl-bottom-cta-wrap { margin-top: 40px; }

    .gl-illustration {
        width: 160px;
        height: 157px;
        align-self: center;
    }
}

@media (max-width: 575px) {
    .gl-card-cta,
    .gl-bottom-cta {
        width: 100%;
        justify-content: center;
        white-space: normal;
        text-align: center;
    }
}

@media (min-width: 1200px){
    .gl-card .gl-card-cta { 
        font-size: var(--text-primary-cta, 16px);
    }
}