/*
 * JUGL "Why attend" block — cassiopeia_jugl.
 *
 * FLIGHT's newly-built module (.mod-custom > .jugl-reasons-band) — clean semantic markup, one container for all of it:
 *   .jugl-reasons-band
 *     .jugl-intro         > .jugl-intro-text (h2 + intro + a.jugl-cta + .jugl-meta)  +  a.jugl-event (flyer)
 *     ol.jugl-reasons     > li > span.jugl-num + div > h3 + p          (the 6 whys)
 * Target (image #7): ONE dark box — intro top-left, flyer top-right, the 6 whys as a 3-col grid below.
 * Section + CTA colours are FLIGHT eyedrops (tokens in global/colors.css); muted text = white-alpha (no magic greys).
 */

/* the whole block is the dark box */
.jugl-reasons-band {
    background: var(--jugl-section-dark);
    color: var(--jugl-white);
    padding: clamp(1.5rem, 4vw, 3.5rem);
}

/* top row — intro left, flyer right */
.jugl-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
}
.jugl-intro-text h2 {
    margin: 0 0 1rem;
    color: var(--jugl-white);
}
.jugl-intro-text p {
    max-width: 48ch;
    color: rgb(255 255 255 / 0.78);
}
.jugl-intro-text .jugl-cta {
    display: inline-block;
    margin: 1.25rem 0 0.75rem;
    padding: 0.75rem 1.75rem;
    background: var(--jugl-cta);
    color: var(--jugl-navy);
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
}
.jugl-intro-text .jugl-meta {
    margin: 0;
    color: rgb(255 255 255 / 0.55);
    font-size: 0.85rem;
    letter-spacing: 0.03em;
}
.jugl-intro .jugl-event,
.jugl-intro .jugl-event img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
}

/* the 6 whys — 3-col grid, orange numbers, white headings, muted body */
.jugl-reasons {
    margin: 2.5rem 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem 2rem;
}
.jugl-reasons li {
    display: flex;
    gap: 0.6rem;
}
.jugl-reasons .jugl-num {
    flex: none;
    color: var(--jugl-orange);
    font-weight: 700;
    font-size: 0.8rem;
    line-height: 1.7;
}
.jugl-reasons h3 {
    margin: 0 0 0.35rem;
    color: var(--jugl-white);
    font-size: 1.05rem;
}
.jugl-reasons p {
    margin: 0;
    color: rgb(255 255 255 / 0.72);
    font-size: 0.9rem;
}

/* responsive — stack the top row and collapse the whys on narrow screens */
@media (max-width: 782px) {
    .jugl-intro { grid-template-columns: 1fr; }
    .jugl-reasons { grid-template-columns: 1fr; }
}

/* TODO (flagged, content not CSS): a.jugl-cta AND a.jugl-event (flyer) both href="/attend-a-jugl-meeting", which
   404s on dev; the topbar register route (Itemid 1388) works. Repoint in FLIGHT's module content or fix the SEF alias. */
