/* ── Group Landing template ─────────────────────────────────────────── */

.gl-page {
    min-height: 100vh;
    margin-top: -90px;
    background-color: #e8e8e8;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    padding: 0;
}

/* The -90px pull-up bleeds the page background under the header, which
   only reads correctly against a transparent/overlay header. The sticky
   mobile header is opaque, so the pull-up just hides the first heading
   underneath it instead - drop it there. */
@media (max-width: 767px) {
  .gl-page { margin-top: 0; }
}

/* ── Section ── */
.gl-section {
    background: rgba(255,255,255,0.75);
}

/* ── Heading row — mirrors .bell-about-heading-row ── */
.gl-section__heading-row {
    background-color: rgba(235,235,235,0.88);
    border-top: 5px solid var(--color-primary, #FFC200);
    padding: var(--space-5) 0;
    text-align: center;
}


.gl-section__heading {
    font-family: var(--font-heading, sans-serif);
    font-size: var(--fs-h2, 2rem);
    font-weight: var(--fw-heading, 400);
    color: #1a1a1a;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* ── Body ── */
.gl-section__body {
    padding: var(--space-7) 0 var(--space-8);
    text-align: center;
}

.gl-section__description {
    color: #444;
    font-size: .95rem;
    font-weight: 500;
    max-width: 680px;
    margin: 0 auto var(--space-6);
    line-height: 1.6;
}

/* ── Cards row ── */
.gl-section__cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-6);
    padding: 0 var(--space-4);
}

/* ── Individual card ── */
.gl-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    position: relative;
}

.gl-card img {
    width: 200px;
    height: auto;
    object-fit: contain;
    transition: filter .2s ease, transform .2s ease;
}
.gl-card:hover img,
.gl-card--dropdown:hover img {
    filter: drop-shadow(0 0 10px var(--color-group-hover-glow, #FFC200));
    transform: scale(1.04);
}

.gl-card--static {
    cursor: default;
}
.gl-card--static:hover img {
    filter: none;
    transform: none;
}

/* ── Dropdown card — hover popup ── */
.gl-card--dropdown {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    cursor: default;
}

.gl-card__popup {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gl-bg-color, #fff);
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 4px 16px rgba(0,0,0,.15);
    min-width: 220px;
    z-index: 200;
    /* padding-top creates visual gap without breaking the hover zone */
    padding: var(--space-2) var(--space-4) var(--space-3);
    text-align: center;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s, visibility .15s;
}

.gl-card--dropdown:hover .gl-card__popup,
.gl-card--dropdown:focus-within .gl-card__popup,
.gl-card--dropdown.is-open .gl-card__popup {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.gl-card--dropdown {
    cursor: pointer;
}

.gl-card__popup-heading {
    font-size: .8rem;
    color: #555;
    margin-bottom: var(--space-2);
}

.gl-card__links {
    list-style: none;
    margin: 0;
    padding: 0;
}
.gl-card__links li {
    border-bottom: 1px solid #eee;
}
.gl-card__links li:last-child { border-bottom: none; }

.gl-card__links a {
    display: block;
    padding: .45rem var(--space-2);
    font-size: .9rem;
    color: var(--gl-text-color, #333);
    text-decoration: none;
    transition: background .15s, color .15s;
}
.gl-card__links a:hover {
    background: var(--gl-bg-hover, #f5f5f5);
    color: var(--gl-text-hover, var(--color-primary, #FFC200));
}

/* ── Responsive ── */
@media (max-width: 479px) {
    .gl-section__body    { padding: var(--space-6) 0; }
    .gl-card img         { width: 140px; }
    .gl-section__cards   { gap: var(--space-4); }
    .gl-section__heading { font-size: 1.5rem; }

    /* 220px popup fits fine even on a 320px phone with the card centred,
       but pull it in from the page edges just in case a card sits near one */
    .gl-card__popup { max-width: calc(100vw - 32px); }
}
