﻿/* ============================================================
   PIB WORKSHOPS — SHARED STYLESHEET  (pib-workshops.css)
   Used by all 21 workshop detail pages.
   Depends on :root tokens defined in site-wide CSS.
   ============================================================ */


/* 1. ELIGIBILITY BANNER */

.wshop-elig {
    background: var(--color-accent);
    padding: .52rem 0;
    text-align: center;
}

    .wshop-elig p {
        margin: 0;
        font-size: .81rem;
        font-weight: 600;
        color: var(--color-text-on-accent);
    }


/* 2. HERO */

.wshop-hero {
    background: var(--color-primary);
    padding: 3.5rem 0 2.75rem;
    position: relative;
    overflow: hidden;
}

    .wshop-hero::before {
        content: '';
        position: absolute;
        inset: 0;
        background: repeating-linear-gradient( -45deg, rgba(244,187,68,.04) 0, rgba(244,187,68,.04) 1px, transparent 1px, transparent 34px );
        pointer-events: none;
    }

.wshop-badge {
    display: inline-block;
    background: rgba(244,187,68,.14);
    color: var(--color-accent);
    font-size: .69rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: .25rem .78rem;
    border-radius: 2rem;
    border: 1px solid rgba(244,187,68,.28);
    margin-bottom: .85rem;
}

    .wshop-badge.wshop-badge--free {
        background: rgba(26,110,59,.22);
        color: #5fd98a;
        border-color: rgba(26,110,59,.35);
    }

.wshop-hero h1 {
    color: #fff;
    font-size: clamp(1.65rem, 3.2vw, 2.4rem);
    font-weight: 700;
    line-height: 1.22;
    margin-bottom: .8rem;
}

    .wshop-hero h1 span {
        color: var(--color-accent);
    }

.wshop-hero-lead {
    color: rgba(255,255,255,.72);
    font-size: .93rem;
    font-weight: 400;
    max-width: 500px;
    line-height: 1.65;
    margin-bottom: 1.5rem;
}

.wshop-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem 1.3rem;
    color: rgba(255,255,255,.6);
    font-size: .82rem;
}

    .wshop-hero-meta span {
        display: flex;
        align-items: center;
        gap: .35rem;
    }

.wshop-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--color-accent);
    flex-shrink: 0;
    display: inline-block;
}

.wshop-btn {
    display: inline-block;
    background: var(--btn-accent-bg);
    color: var(--btn-accent-text);
    font-weight: 600;
    font-size: .87rem;
    padding: .6rem 1.45rem;
    border-radius: var(--btn-radius);
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: background .15s;
}

    .wshop-btn:hover {
        background: var(--btn-accent-hover-bg);
        color: var(--btn-accent-text);
    }

.wshop-btn-outline {
    display: inline-block;
    background: transparent;
    color: #fff;
    font-size: .87rem;
    font-weight: 500;
    padding: .58rem 1.35rem;
    border-radius: var(--btn-radius);
    text-decoration: none;
    border: 1.5px solid rgba(255,255,255,.32);
    transition: border-color .15s, background .15s;
}

    .wshop-btn-outline:hover {
        border-color: rgba(255,255,255,.75);
        background: rgba(255,255,255,.06);
        color: #fff;
    }


/* 3. TRUST BAR */

.wshop-trust {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 1.25rem 0;
}

.wshop-stat h3 {
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0;
}

    .wshop-stat h3.wshop-stat--free {
        color: var(--color-success);
    }

.wshop-stat p {
    font-size: .74rem;
    color: var(--color-text-muted);
    margin: 0;
    font-weight: 500;
}


/* 4. SECTION TYPOGRAPHY */

.wshop-eyebrow {
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--color-accent-dim);
    margin-bottom: .28rem;
}

.wshop-rule {
    display: block;
    width: 34px;
    height: 3px;
    background: var(--color-accent);
    border-radius: 2px;
    margin-bottom: 1.35rem;
}

.wshop-section-title {
    font-size: clamp(1.2rem, 2.2vw, 1.6rem);
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: .3rem;
}

.wshop-body-text {
    color: var(--color-text-muted);
    font-size: .92rem;
    line-height: 1.7;
}


/* 5. HIGHLIGHT CARDS */

.wshop-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-top: 3px solid var(--color-primary);
    border-radius: .55rem;
    padding: 1.1rem 1rem;
    height: 100%;
    transition: box-shadow .17s, transform .17s;
}

    .wshop-card:hover {
        box-shadow: 0 4px 18px rgba(26,79,110,.09);
        transform: translateY(-2px);
    }

    .wshop-card.wshop-card--free {
        border-top-color: var(--color-accent);
    }

.wshop-card-icon {
    font-size: 1.1rem;
    margin-bottom: .6rem;
    display: block;
}

.wshop-card h5 {
    font-size: .87rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: .18rem;
}

.wshop-card p {
    font-size: .825rem;
    color: var(--color-text-muted);
    margin: 0;
    line-height: 1.55;
}


/* 6. CURRICULUM STEPS */

.wshop-step {
    display: flex;
    gap: .85rem;
    align-items: flex-start;
    padding: .85rem 0;
    border-bottom: 1px solid var(--color-border);
}

    .wshop-step:last-child {
        border-bottom: none;
    }

.wshop-step-num {
    width: 27px;
    height: 27px;
    background: var(--color-primary);
    color: var(--color-text-on-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .7rem;
    font-weight: 600;
    flex-shrink: 0;
}

.wshop-step h6 {
    font-size: .88rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: .08rem;
}

.wshop-step p {
    font-size: .825rem;
    color: var(--color-text-muted);
    margin: 0;
    line-height: 1.55;
}


/* 7. CHECKLIST */

.wshop-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: .45rem;
}

    .wshop-checklist li {
        display: flex;
        align-items: flex-start;
        gap: .55rem;
        font-size: .875rem;
        color: var(--color-text-muted);
        line-height: 1.5;
    }

        .wshop-checklist li::before {
            content: '✓';
            width: 20px;
            height: 20px;
            min-width: 20px;
            background: var(--color-primary);
            color: #fff;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: .65rem;
            font-weight: 700;
            margin-top: .1rem;
        }

    .wshop-checklist.wshop-checklist--outcomes li::before {
        background: var(--color-accent);
        color: var(--color-text-on-accent);
    }


/* 8. TAG PILLS */

.wshop-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: .5rem;
}

.wshop-pill {
    display: inline-flex;
    align-items: center;
    gap: .28rem;
    background: var(--color-surface);
    color: var(--color-primary);
    border: 1px solid var(--color-border);
    border-radius: 2rem;
    padding: .26rem .78rem;
    font-size: .79rem;
    font-weight: 500;
}


/* 9. CAREER ROLES */

.wshop-roles {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    margin-top: .5rem;
}

.wshop-role-tag {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-left: 3px solid var(--color-primary);
    border-radius: .35rem;
    padding: .32rem .85rem;
    font-size: .8rem;
    font-weight: 500;
    color: var(--color-text);
}


/* 10. BOOKING CARD */

.wshop-contact-card {
    background: var(--color-primary);
    border-radius: .75rem;
    padding: 1.65rem 1.45rem;
    position: sticky;
    top: 80px;
}

    .wshop-contact-card h4 {
        color: #fff;
        font-size: 1.1rem;
        font-weight: 700;
        margin-bottom: .22rem;
    }

    .wshop-contact-card .wshop-card-sub {
        color: rgba(255,255,255,.52);
        font-size: .79rem;
        margin-bottom: 1.25rem;
    }

    .wshop-contact-card label {
        font-size: .74rem;
        font-weight: 500;
        color: rgba(255,255,255,.62);
        margin-bottom: .22rem;
        display: block;
    }

    .wshop-contact-card input,
    .wshop-contact-card select,
    .wshop-contact-card textarea {
        width: 100%;
        background: rgba(255,255,255,.1);
        border: 1px solid rgba(255,255,255,.2);
        border-radius: var(--input-radius);
        padding: var(--input-padding);
        color: #fff;
        font-size: .835rem;
        font-family: inherit;
        outline: none;
        transition: border-color .15s, box-shadow .15s;
    }

        .wshop-contact-card input::placeholder,
        .wshop-contact-card textarea::placeholder {
            color: rgba(255,255,255,.32);
        }

        .wshop-contact-card input:focus,
        .wshop-contact-card select:focus,
        .wshop-contact-card textarea:focus {
            border-color: var(--color-accent);
            box-shadow: var(--input-shadow-focus);
        }

        .wshop-contact-card select option {
            background: var(--color-primary);
        }

.wshop-fg {
    margin-bottom: .7rem;
}

.wshop-submit {
    width: 100%;
    background: var(--btn-accent-bg);
    color: var(--btn-accent-text);
    font-weight: 600;
    font-size: .87rem;
    padding: .62rem;
    border-radius: var(--btn-radius);
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: background .15s;
    margin-top: .25rem;
}

    .wshop-submit:hover {
        background: var(--btn-accent-hover-bg);
    }

    .wshop-submit:disabled {
        opacity: .6;
        cursor: not-allowed;
    }

.wshop-divider {
    border: none;
    border-top: 1px solid rgba(255,255,255,.13);
    margin: 1.1rem 0;
}

.wshop-info {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .79rem;
    color: rgba(255,255,255,.62);
    margin-bottom: .42rem;
}

    .wshop-info a {
        color: rgba(255,255,255,.78);
        text-decoration: none;
    }

        .wshop-info a:hover {
            color: var(--color-accent);
        }

.wshop-info-ico {
    width: 23px;
    height: 23px;
    background: rgba(255,255,255,.1);
    border-radius: .3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .76rem;
    flex-shrink: 0;
}


/* 11. COLLEGE / STUDENT TOGGLE
   JS must use querySelectorAll('.wshop-toggle') — NOT '.pib-toggle'
   ───────────────────────────────────────────── */

.wshop-toggle-group {
    display: flex;
    border-radius: var(--btn-radius);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.25);
}

.wshop-toggle {
    flex: 1;
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.6);
    border: none;
    padding: .45rem .5rem;
    font-size: .775rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: background .15s, color .15s;
    line-height: 1.3;
}

    .wshop-toggle + .wshop-toggle {
        border-left: 1px solid rgba(255,255,255,.18);
    }

    /* ✅ Active state — accent gold background */
    .wshop-toggle.active {
        background: var(--color-accent);
        color: var(--color-text-on-accent);
    }

    .wshop-toggle:not(.active):hover {
        background: rgba(255,255,255,.14);
        color: rgba(255,255,255,.88);
    }


/* 12. FREE ASSURANCE STRIP */

.wshop-freeband {
    background: rgba(26,110,59,.08);
    border: 1px solid rgba(26,110,59,.18);
    border-radius: .55rem;
    padding: .9rem 1.1rem;
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-top: 1.5rem;
}

.wshop-freeband-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
}

.wshop-freeband p {
    margin: 0;
    font-size: .85rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

.wshop-freeband strong {
    color: var(--color-success);
}


/* 13. WORKSHOP MODE BADGES */

.wshop-mode-badges {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-top: .5rem;
}

.wshop-mode-badge {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-size: .75rem;
    font-weight: 600;
    padding: .22rem .7rem;
    border-radius: 2rem;
    border: 1px solid transparent;
}

.wshop-mode-badge--offline {
    background: rgba(26,79,110,.1);
    color: var(--color-primary);
    border-color: rgba(26,79,110,.2);
}

.wshop-mode-badge--online {
    background: rgba(26,110,59,.1);
    color: var(--color-success);
    border-color: rgba(26,110,59,.2);
}

.wshop-mode-badge--hybrid {
    background: rgba(244,187,68,.12);
    color: var(--color-accent-dim);
    border-color: rgba(244,187,68,.3);
}


/* 14. RESPONSIVE */

@media (max-width: 575.98px) {
    .wshop-hero {
        padding: 2.25rem 0 2rem;
    }

        .wshop-hero h1 {
            font-size: 1.6rem;
        }

    .wshop-contact-card {
        position: static;
        margin-top: .5rem;
    }

    .wshop-stat h3 {
        font-size: 1.25rem;
    }
}

@media (max-width: 767.98px) {
    .wshop-toggle {
        font-size: .73rem;
        padding: .42rem .35rem;
    }
}
