/* Illinois Tech Bible Club — theme aligned to club logo (greens + white) */

:root {
    /* Logo palette */
    --itbc-green-dark: #1b5e20;
    --itbc-green-mid: #4caf50;
    --itbc-green-light: #8bc34a;
    --itbc-green-lime: #cddc39;

    --itbc-bg: #ffffff;
    --itbc-bg-soft: #f4faf4;
    --itbc-ink: #1b5e20;
    --itbc-muted: #546e54;
    --itbc-border: rgba(27, 94, 32, 0.14);
    --itbc-shadow: rgba(27, 94, 32, 0.1);
    --itbc-max: 44rem;

    /* Legacy aliases (views may reference these) */
    --itbc-navy: var(--itbc-green-dark);
    --itbc-rust: var(--itbc-green-mid);
    --itbc-sage: var(--itbc-green-dark);
    --itbc-gold: var(--itbc-green-lime);
    --itbc-paper: var(--itbc-bg-soft);

    /* Secondary palette — teal logo (Bible Study) */
    --itbc-teal-dark: #004d56;
    --itbc-teal-mid: #00838f;
    --itbc-teal-light: #b2ebf2;
    --itbc-teal-muted: #455a64;
    --itbc-teal-panel: #e0f7fa;
}

.itbc-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.itbc-body {
    margin: 0;
    min-height: 100vh;
    font-family:
        ui-sans-serif,
        system-ui,
        -apple-system,
        'Segoe UI',
        Roboto,
        'Helvetica Neue',
        Arial,
        sans-serif;
    font-size: 17px;
    line-height: 1.55;
    color: var(--itbc-ink);
    background: var(--itbc-bg);
    background-image: radial-gradient(
        circle at 1px 1px,
        rgba(76, 175, 80, 0.07) 1px,
        transparent 0
    );
    background-size: 18px 18px;
}

.itbc-skip {
    position: absolute;
    left: -9999px;
    z-index: 9999;
    padding: 0.5rem 1rem;
    background: var(--itbc-green-dark);
    color: #fff;
}

.itbc-skip:focus {
    left: 0.5rem;
    top: 0.5rem;
}

.itbc-header {
    position: relative;
    background: linear-gradient(
        135deg,
        var(--itbc-green-dark) 0%,
        #2e7d32 55%,
        #1b5e20 100%
    );
    color: #f1f8f1;
    box-shadow: 0 4px 24px rgba(15, 46, 18, 0.35);
    border-bottom: 1px solid rgba(205, 220, 57, 0.22);
}

.itbc-header::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.12;
    pointer-events: none;
    background-image: radial-gradient(circle at center, #cddc39 0.45px, transparent 0.6px);
    background-size: 5px 5px;
}

.itbc-header-inner {
    position: relative;
    z-index: 1;
    max-width: 56rem;
    margin: 0 auto;
    padding: 1rem 1.25rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.itbc-brand-lockup {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
    color: inherit;
}

.itbc-brand-lockup:hover .itbc-brand-title,
.itbc-brand-lockup:focus .itbc-brand-title {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.itbc-logo {
    width: 4.25rem;
    height: 4.25rem;
    flex-shrink: 0;
    object-fit: contain;
    border-radius: 50%;
    box-shadow:
        0 2px 14px rgba(0, 0, 0, 0.28),
        0 0 0 2px rgba(241, 248, 241, 0.35);
}

.itbc-brand-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.itbc-brand-title {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    margin: 0;
    line-height: 1.2;
    color: #f1f8f1;
}

.itbc-brand-tag {
    font-size: 0.82rem;
    color: rgba(241, 248, 241, 0.82);
    margin: 0;
    font-weight: 500;
}

.itbc-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1.1rem;
    align-items: center;
}

.itbc-nav a {
    color: #f1f8f1;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.35rem 0;
    border-bottom: 2px solid transparent;
}

.itbc-nav a:hover,
.itbc-nav a:focus {
    color: #ffffff;
    border-bottom-color: var(--itbc-green-lime);
}

.itbc-nav a.itbc-nav-active {
    color: #ffffff;
    border-bottom-color: var(--itbc-green-lime);
}

.itbc-nav a.itbc-external {
    font-size: 0.88rem;
    font-weight: 500;
    opacity: 0.9;
}

.itbc-main {
    max-width: 56rem;
    margin: 0 auto;
    padding: 2rem 1.25rem 3rem;
}

.itbc-hero {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2.25rem;
    position: relative;
    background: linear-gradient(
        145deg,
        var(--itbc-green-dark) 0%,
        #2e7d32 42%,
        var(--itbc-green-mid) 100%
    );
    color: #f1f8f1;
    box-shadow: 0 8px 28px var(--itbc-shadow);
}

.itbc-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.35;
    background-image: radial-gradient(circle at center, #cddc39 0.5px, transparent 0.65px);
    background-size: 6px 6px;
    pointer-events: none;
}

.itbc-hero-inner {
    position: relative;
    padding: 2.25rem 1.75rem;
    max-width: var(--itbc-max);
}

.itbc-hero h1 {
    font-size: clamp(1.65rem, 4vw, 2.05rem);
    font-weight: 700;
    margin: 0 0 0.75rem;
    line-height: 1.25;
    letter-spacing: 0.02em;
}

.itbc-hero p {
    margin: 0;
    font-size: 1.05rem;
    opacity: 0.96;
    max-width: 36rem;
}

.itbc-section {
    margin-bottom: 2.5rem;
}

.itbc-section h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--itbc-green-dark);
    margin: 0 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--itbc-green-light);
    display: inline-block;
}

/* Good Word Gatherings — secondary teal palette + branding art */
.itbc-section--study h2:not(.itbc-visually-hidden) {
    color: var(--itbc-teal-dark);
    border-bottom-color: var(--itbc-teal-mid);
}

.itbc-study-panel {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(
        165deg,
        var(--itbc-teal-panel) 0%,
        #f0fdff 45%,
        #e8f6f8 100%
    );
    border: 1px solid rgba(0, 131, 143, 0.22);
    box-shadow: 0 4px 20px rgba(0, 77, 86, 0.08);
}

.itbc-study-panel-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-repeat: no-repeat;
    background-position: right -2% bottom -5%;
    background-size: min(52%, 22rem) auto;
    opacity: 0.16;
}

.itbc-study-panel--teaser .itbc-study-panel-bg {
    opacity: 0.24;
    background-size: min(62%, 26rem) auto;
    background-position: right -8% bottom -10%;
}

.itbc-study-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.2;
    pointer-events: none;
    background-image: radial-gradient(circle at center, var(--itbc-teal-mid) 0.45px, transparent 0.6px);
    background-size: 5px 5px;
}

.itbc-study-panel-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 1.25rem 1.75rem;
    padding: 1.35rem 1.35rem 1.5rem;
}

.itbc-gwg-logo-wrap {
    flex-shrink: 0;
    align-self: center;
}

/* Logo PNG includes its own white plate — no extra frame (avoids double-white). */
.itbc-gwg-logo-frame {
    display: inline-block;
    line-height: 0;
    overflow: visible;
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

.itbc-gwg-teaser-logo-shell {
    display: inline-block;
    background: #ffffff;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    border: 1px solid rgba(0, 131, 143, 0.14);
    box-shadow: 0 2px 12px rgba(0, 77, 86, 0.1);
}

.itbc-gwg-logo {
    display: block;
    width: 100%;
    max-width: min(100%, 17.5rem);
    height: auto;
    vertical-align: top;
}

.itbc-gwg-logo--compact {
    max-width: min(100%, 11.5rem);
}

.itbc-study-panel--teaser .itbc-study-panel-inner--teaser {
    align-items: center;
}

.itbc-cta--teal {
    background: var(--itbc-teal-mid);
    box-shadow: 0 2px 10px rgba(0, 131, 143, 0.35);
}

.itbc-cta--teal:hover,
.itbc-cta--teal:focus {
    background: #006978;
    color: #fff;
}

/* Good Word Gatherings full page — light hero so logo white matches page */
.itbc-main--gwg-page {
    padding-top: 1.5rem;
}

.itbc-gwg-page-hero {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2.25rem;
    background: #ffffff;
    color: var(--itbc-teal-dark);
    border: 1px solid rgba(0, 131, 143, 0.18);
    box-shadow: 0 4px 20px rgba(0, 77, 86, 0.08);
}

.itbc-gwg-page-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.18;
    pointer-events: none;
    background-image: radial-gradient(circle at center, rgba(0, 131, 143, 0.12) 0.45px, transparent 0.6px);
    background-size: 5px 5px;
}

.itbc-gwg-page-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-repeat: no-repeat;
    background-position: right -12% center;
    background-size: min(88%, 44rem) auto;
    opacity: 0.3;
}

.itbc-gwg-page-hero-inner {
    position: relative;
    z-index: 1;
    padding: 1.75rem 1.5rem 1.65rem;
    text-align: left;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 1.75rem 2.25rem;
}

.itbc-gwg-page-lede {
    margin: 0;
    flex: 1 1 16rem;
    min-width: min(100%, 16rem);
    max-width: 32rem;
    font-size: 1.05rem;
    line-height: 1.55;
    color: var(--itbc-teal-muted);
}

.itbc-gwg-page-hero-logo {
    display: flex;
    justify-content: flex-start;
    flex: 0 0 auto;
}

.itbc-gwg-page-hero-logo .itbc-gwg-logo {
    max-width: min(100%, 32rem);
    width: auto;
}

.itbc-card--gwg {
    border-color: rgba(0, 131, 143, 0.2);
    border-left: 4px solid var(--itbc-teal-mid);
}

.itbc-list--gwg li::marker {
    color: var(--itbc-teal-mid);
}

.itbc-note--gwg {
    color: var(--itbc-teal-muted);
    border-left-color: var(--itbc-teal-mid);
}

.itbc-back-link--gwg {
    color: var(--itbc-teal-mid);
}

.itbc-back-link--gwg:hover,
.itbc-back-link--gwg:focus {
    color: var(--itbc-teal-dark);
}

.itbc-study-body {
    flex: 1;
    min-width: min(100%, 14rem);
}

.itbc-study-body h3 {
    font-size: 1.1rem;
    margin: 0 0 0.65rem;
    color: var(--itbc-teal-dark);
}

.itbc-study-body p {
    margin: 0 0 0.65rem;
    color: #1a2e32;
}

.itbc-study-body p:last-child {
    margin-bottom: 0;
}

.itbc-study-body .itbc-note {
    color: var(--itbc-teal-muted);
    border-left: 3px solid var(--itbc-teal-mid);
    padding-left: 0.85rem;
    margin-top: 0.85rem;
}

.itbc-card {
    background: var(--itbc-bg);
    border: 1px solid var(--itbc-border);
    border-radius: 10px;
    padding: 1.35rem 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px var(--itbc-shadow);
}

.itbc-card h3 {
    font-size: 1.1rem;
    margin: 0 0 0.65rem;
    color: var(--itbc-green-dark);
}

.itbc-card p {
    margin: 0 0 0.65rem;
}

.itbc-card p:last-child {
    margin-bottom: 0;
}

.itbc-note {
    font-size: 0.92rem;
    color: var(--itbc-muted);
    margin-top: 0.75rem;
}

.itbc-list {
    margin: 0;
    padding-left: 1.2rem;
}

.itbc-list li {
    margin-bottom: 0.5rem;
}

.itbc-list li::marker {
    color: var(--itbc-green-mid);
}

.itbc-cta {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.55rem 1.15rem;
    background: var(--itbc-green-mid);
    color: #fff !important;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.35);
}

.itbc-cta:hover,
.itbc-cta:focus {
    background: #388e3c;
    color: #fff;
}

.itbc-footer {
    margin-top: auto;
    padding: 2rem 1.25rem;
    background: linear-gradient(180deg, #e8f5e9 0%, #f1f8f4 100%);
    border-top: 1px solid var(--itbc-border);
    font-size: 0.9rem;
    color: var(--itbc-muted);
}

.itbc-footer-inner {
    max-width: 56rem;
    margin: 0 auto;
    text-align: center;
}

.itbc-footer a {
    color: var(--itbc-green-dark);
    font-weight: 600;
}

.itbc-footer a:hover,
.itbc-footer a:focus {
    color: var(--itbc-green-mid);
    text-decoration: underline;
}

.itbc-layout {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

/* Events page */
.itbc-page-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 1.25rem;
    color: var(--itbc-green-dark);
    letter-spacing: 0.02em;
}

.itbc-lede {
    color: var(--itbc-muted);
    margin: 0 0 1.5rem;
    max-width: var(--itbc-max);
}

.itbc-back-link {
    display: inline-block;
    margin-top: 2rem;
    color: var(--itbc-green-mid);
    font-weight: 600;
    text-decoration: none;
}

.itbc-back-link:hover,
.itbc-back-link:focus {
    color: var(--itbc-green-dark);
    text-decoration: underline;
}

@media (max-width: 520px) {
    .itbc-header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .itbc-nav ul {
        width: 100%;
        justify-content: flex-start;
    }

    .itbc-logo {
        width: 3.5rem;
        height: 3.5rem;
    }

    .itbc-study-panel-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .itbc-gwg-teaser-logo-shell .itbc-gwg-logo {
        max-width: min(100%, 15rem);
    }

    .itbc-gwg-page-hero-inner {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .itbc-gwg-page-hero-logo .itbc-gwg-logo {
        max-width: min(100%, 24rem);
    }

    .itbc-gwg-page-hero-bg {
        background-position: right -20% bottom -15%;
        background-size: min(100%, 30rem) auto;
        opacity: 0.22;
    }

    .itbc-study-body .itbc-note {
        border-left: none;
        padding-left: 0;
        border-top: 3px solid var(--itbc-teal-mid);
        padding-top: 0.85rem;
    }
}
