/* ============================================================
   TAMS 2026 — Events Page Styles
   Hero design mirrors home.css hero exactly
   ============================================================ */

:root {
    --teal:        #0B1628;
    --teal2:       #142240;
    --teal3:       #1D3461;
    --teal-lt:     #EFF2F9;
    --amber:       #F97316;
    --amber2:      #FB923C;
    --amber-lt:    #FFF4EE;
    --cream:       #F8FAFF;
    --gray-100:    #EFF2F9;
    --gray-200:    #DDE3F0;
    --gray-300:    #C8D0E4;
    --gray-500:    #8899B4;
    --gray-700:    #4A5B7A;
    --white:       #FFFFFF;
    --navy:        #0B1628;
    --navy-mid:    #142240;
    --navy-light:  #1D3461;
    --blue:        #2060E8;
    --blue-light:  #4080FF;
    --orange:      #F97316;
    --gold:        #F97316;
    --gold-light:  #FB923C;
    --off-white:   #F8FAFF;
}

/* ── Category colour tokens ── */
:root {
    --cat-science:     #0ea5e9;
    --cat-science-bg:  rgba(14,165,233,.12);
    --cat-mgmt:        #f59e0b;
    --cat-mgmt-bg:     rgba(245,158,11,.12);
    --cat-creative:    #a855f7;
    --cat-creative-bg: rgba(168,85,247,.12);
    --cat-tech:        #10b981;
    --cat-tech-bg:     rgba(16,185,129,.12);
    --cat-fun:         #ef4444;
    --cat-fun-bg:      rgba(239,68,68,.12);
}

/* ── Shared helpers ── */
.tag-line {
    display: inline-block;
    font-size: 11px; font-weight: 700;
    letter-spacing: .2em; text-transform: uppercase;
    color: var(--amber); margin-bottom: 12px;
}
.text-gold { color: var(--amber); }
.link-arrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 14px; font-weight: 600; color: var(--teal);
    border-bottom: 1.5px solid currentColor; padding-bottom: 2px;
    text-decoration: none;
    transition: gap var(--dur), color var(--dur), border-color var(--dur);
}
.link-arrow:hover { gap: 13px; color: var(--amber); border-color: var(--amber); }

/* ── Reveal animations ── */
.reveal, .reveal-left, .reveal-right {
    opacity: 0;
    transition: opacity .6s var(--ease), transform .6s var(--ease);
    transition-delay: var(--delay, 0s);
}
.reveal        { transform: translateY(28px); }
.reveal-left   { transform: translateX(-36px); }
.reveal-right  { transform: translateX(36px); }
.reveal.revealed,
.reveal-left.revealed,
.reveal-right.revealed { opacity: 1; transform: none; }


/* ============================================================
   BUTTON OVERRIDES
   ============================================================ */
.btn--gold { background: var(--amber); color: var(--white); border-color: var(--amber); }
.btn--gold:hover { background: var(--amber2); border-color: var(--amber2); }
.btn--outline-white { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,.35); }
.btn--outline-white:hover { border-color: rgba(255,255,255,.8); }
.btn--navy { background: var(--teal); color: var(--white); border-color: var(--teal); }
.btn--navy:hover { background: var(--teal2); }


/* ============================================================
   HERO  ←  identical DNA to home .hero
   ============================================================ */

.ev-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(var(--nav-h) + 48px) 0 88px;
    overflow: hidden;
    background: var(--teal);
}

/* ── Background layer (grid + orbs) ── */
.ev-hero__bg {
    position: absolute; inset: 0;
    pointer-events: none; overflow: hidden;
}

.ev-hero__orb {
    position: absolute; border-radius: 50%; pointer-events: none;
}
.ev-hero__orb--1 {
    width: 580px; height: 580px; top: -220px; left: -160px;
    background: rgba(32,96,232,.12);
    animation: orbDrift 14s ease-in-out infinite alternate;
}
.ev-hero__orb--2 {
    width: 500px; height: 500px; bottom: -140px; right: -110px;
    background: rgba(249,115,22,.09);
    animation: orbDrift 18s ease-in-out infinite alternate-reverse;
}
.ev-hero__orb--3 {
    width: 280px; height: 280px; top: 35%; left: 57%;
    background: rgba(32,96,232,.06);
    animation: orbDrift 11s ease-in-out infinite alternate;
}
@keyframes orbDrift {
    from { transform: translate(0,0); }
    to   { transform: translate(28px,16px); }
}

.ev-hero__grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
    background-size: 52px 52px;
}

/* ── Inner content block ── */
.ev-hero__inner {
    position: relative; z-index: 1;
    max-width: 620px;
}

/* ── Breadcrumb ── */
.breadcrumb--light {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; margin-bottom: 18px;
    color: rgba(255,255,255,.38); text-decoration: none;
}
.breadcrumb--light a {
    color: rgba(255,255,255,.38); text-decoration: none;
    transition: color .2s;
}
.breadcrumb--light a:hover { color: var(--amber); }
.breadcrumb--light span { color: rgba(255,255,255,.65); font-weight: 500; }
.breadcrumb--light i { font-size: 10px; }

/* ── Badge — same as home hero__badge ── */
.ev-hero__badge {
    display: inline-flex; align-items: center; gap: 10px;
    background: rgba(249,115,22,.14);
    border: 1px solid rgba(249,115,22,.34);
    color: var(--amber2);
    font-size: 11px; font-weight: 700;
    letter-spacing: .14em; text-transform: uppercase;
    padding: 7px 18px; border-radius: 999px; margin-bottom: 26px;
}
.ev-hero__badge i { font-size: 7px; color: var(--amber); animation: dotPulse 2s ease-in-out infinite; }
@keyframes dotPulse { 0%,100%{opacity:1} 50%{opacity:.35} }

/* ── Title ── */
.ev-hero__title {
    font-family: var(--serif);
    font-size: clamp(42px, 6.5vw, 76px);
    font-weight: 800; line-height: 1.1;
    color: var(--white); margin-bottom: 22px;
}
.ev-hero__title em        { font-style: italic; color: rgba(255,255,255,.5); }
.ev-hero__title .text-gold { color: var(--amber2); }

/* ── Sub ── */
.ev-hero__sub {
    font-size: clamp(15px, 1.8vw, 18px);
    color: rgba(255,255,255,.6);
    max-width: 500px; line-height: 1.75; margin-bottom: 36px;
}

/* ── Stat row ── */
.ev-hero__stats {
    display: flex; align-items: center; gap: 24px;
    margin-bottom: 32px; padding: 20px 28px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    flex-wrap: wrap;
}
.ev-hero__stat { display: flex; flex-direction: column; align-items: center; }
.ev-hero__stat-num {
    font-family: var(--serif); font-size: 32px;
    font-weight: 800; color: var(--amber); line-height: 1;
}
.ev-hero__stat-label {
    font-size: 10px; font-weight: 600;
    letter-spacing: .12em; text-transform: uppercase;
    color: rgba(255,255,255,.4); margin-top: 5px;
}
.ev-hero__stat-sep { width: 1px; height: 40px; background: rgba(255,255,255,.12); }

/* ── Category pills ── */
.ev-hero__pills { display: flex; flex-wrap: wrap; gap: 10px; }
.ev-pill {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 12px; font-weight: 700;
    letter-spacing: .05em; text-transform: uppercase;
    padding: 8px 16px; border-radius: 999px; border: 1.5px solid;
    transition: transform .2s, box-shadow .2s;
}
.ev-pill:hover { transform: translateY(-2px); }
.ev-pill--science  { color: var(--cat-science);  border-color: rgba(14,165,233,.45);  background: rgba(14,165,233,.12); }
.ev-pill--mgmt     { color: var(--cat-mgmt);     border-color: rgba(245,158,11,.45);  background: rgba(245,158,11,.12); }
.ev-pill--creative { color: var(--cat-creative); border-color: rgba(168,85,247,.45);  background: rgba(168,85,247,.12); }
.ev-pill--tech     { color: var(--cat-tech);     border-color: rgba(16,185,129,.45);  background: rgba(16,185,129,.12); }
.ev-pill--fun      { color: var(--cat-fun);      border-color: rgba(239,68,68,.45);   background: rgba(239,68,68,.12); }

/* ── Mascot — same positioning logic as home ── */
.ev-hero__mascot {
    position: absolute;
    left: 54%;
    top: 50%;
    transform: translate(0%, -50%);
    height: 80%; max-height: 540px;
    width: auto; pointer-events: none;
    user-select: none; object-fit: contain;
    z-index: 2;
    animation: mascotFade 1.2s ease .3s both;
}
@keyframes mascotFade {
    from { opacity: 0; transform: translate(0%, -46%); }
    to   { opacity: 1; transform: translate(0%, -50%); }
}

/* ── Decorative rings ── */
.ev-hero__ring {
    position: absolute; border-radius: 50%;
    border: 1px solid rgba(249,115,22,.12);
    pointer-events: none; z-index: 1;
}
.ev-hero__ring--1 {
    width: 440px; height: 440px;
    left: 50%; top: 50%;
    transform: translate(8%, -50%);
    animation: heroRingPulse 5s ease-in-out infinite alternate;
}
.ev-hero__ring--2 {
    width: 630px; height: 630px;
    left: 50%; top: 50%;
    transform: translate(1%, -50%);
    border-color: rgba(249,115,22,.05);
    animation: heroRingPulse 5s ease-in-out infinite alternate .9s;
}
@keyframes heroRingPulse {
    from { opacity:.4; scale:.94; }
    to   { opacity:1;  scale:1.04; }
}

/* ── Floating photo cards ── */
.ev-hero .hero__pcard {
    position: absolute;
    border-radius: 14px; overflow: hidden;
    border: 3px solid rgba(255,255,255,.18);
    box-shadow: 0 20px 56px rgba(0,0,0,.5), 0 4px 16px rgba(0,0,0,.3);
    background: var(--teal2);
    z-index: 3; pointer-events: none; user-select: none;
}
.ev-hero .hero__pcard img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ev-hero .hero__pcard.pcard-missing img { display: none; }
.ev-hero .hero__pcard__fb {
    display: none; align-items: center; justify-content: center;
    height: 100%; color: rgba(255,255,255,.2); font-size: 32px;
}
.ev-hero .hero__pcard.pcard-missing .hero__pcard__fb { display: flex; }

.ev-hero .hero__pcard--1 {
    width: 210px; height: 158px;
    right: 6%; top: 32%; left: auto;
    transform: rotate(-5deg);
    animation: pcard1Float 7s ease-in-out infinite;
    z-index: 4;
}
.ev-hero .hero__pcard--2 {
    width: 180px; height: 140px;
    left: 51%; bottom: 8%;
    transform: rotate(5deg);
    animation: pcard2Float 8.5s ease-in-out infinite .8s;
    z-index: 4;
}
@keyframes pcard1Float { 0%,100%{transform:rotate(-5deg) translateY(0)} 50%{transform:rotate(-5deg) translateY(-12px)} }
@keyframes pcard2Float { 0%,100%{transform:rotate(5deg) translateY(0)} 50%{transform:rotate(5deg) translateY(-10px)} }

/* ── Floating info pills ── */
.ev-hero .hero__vpill {
    position: absolute;
    display: flex; align-items: center; gap: 9px;
    background: rgba(255,255,255,.09);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255,255,255,.18);
    color: var(--white); font-size: 13px; font-weight: 600;
    padding: 10px 18px; border-radius: 999px;
    box-shadow: 0 8px 32px rgba(0,0,0,.25);
    pointer-events: none; z-index: 5; white-space: nowrap;
}
.ev-hero .hero__vpill i { color: var(--amber); font-size: 12px; }
.ev-hero .hero__vpill--1 {
    right: 15%; top: 18%; left: auto;
    animation: vpillFloat 5s ease-in-out infinite;
}
.ev-hero .hero__vpill--2 {
    right: 12%; bottom: 30%; left: auto;
    animation: vpillFloat 6s ease-in-out infinite .9s;
}
.ev-hero .hero__vpill--3 {
    right: 16%; top: 44%; left: auto;
    animation: vpillFloat 7s ease-in-out infinite 1.6s;
}
@keyframes vpillFloat { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-9px)} }

/* ── Scroll hint ── */
.ev-hero__scroll-hint {
    position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
    color: rgba(255,255,255,.28);
}
.scroll-mouse { width: 22px; height: 34px; border: 2px solid rgba(255,255,255,.18); border-radius: 11px; display: flex; justify-content: center; padding-top: 5px; }
.scroll-wheel { width: 4px; height: 8px; background: rgba(255,255,255,.4); border-radius: 2px; animation: scrollAnim 1.8s ease-in-out infinite; }
@keyframes scrollAnim { 0%{opacity:1;transform:translateY(0)} 100%{opacity:0;transform:translateY(10px)} }

/* ── Mobile ── */
@media (max-width: 768px) {

    /* Hero shell: flex-column, no mascot zone needed */
    .ev-hero {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: calc(var(--nav-h) + 28px) 0 60px;
        min-height: auto;
        overflow: hidden;
    }

    /* Text zone */
    .ev-hero .container { width: 100%; flex: 0 0 auto; padding-bottom: 0; }
    .ev-hero__inner     { text-align: center; margin: 0 auto; max-width: 100%; position: relative; z-index: 2; }
    .ev-hero__badge     { margin-left: auto; margin-right: auto; align-self: center; }
    .ev-hero__title     { font-size: clamp(32px, 8vw, 48px); }
    .ev-hero__sub       { font-size: 14.5px; line-height: 1.7; margin-bottom: 28px; }
    .ev-hero__stats     { justify-content: center; }
    .ev-hero__pills     { justify-content: center; }

    /* Hide: photo-cards · rings · scroll hint */
    .ev-hero .hero__pcard   { display: none; }
    .ev-hero__ring          { display: none; }
    .ev-hero__scroll-hint   { display: none; }

    /* Hide pills and mascot on mobile */
    .ev-hero .hero__vpill { display: none !important; }
    .ev-hero__mascot      { display: none !important; }
}


/* ============================================================
   FILTER BAR
   ============================================================ */

.filter-bar {
    position: sticky; top: var(--nav-h); z-index: 800;
    background: var(--white);
    border-bottom: 1px solid var(--gray-100);
    transition: box-shadow .3s;
}
.filter-bar--shadow { box-shadow: 0 4px 24px rgba(0,0,0,.09); }

.filter-bar__inner {
    display: flex; align-items: center; gap: 6px;
    overflow-x: auto; padding: 14px 0; scrollbar-width: none;
}
.filter-bar__inner::-webkit-scrollbar { display: none; }

.filter-btn {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 9px 20px; border-radius: 999px;
    border: 1.5px solid var(--gray-300);
    background: var(--white); color: var(--gray-700);
    font-family: var(--sans); font-size: 13px; font-weight: 600;
    cursor: pointer; white-space: nowrap;
    transition: all .2s;
}
.filter-btn:hover { border-color: var(--navy); color: var(--navy); }
.filter-btn.active { background: var(--navy); border-color: var(--navy); color: var(--white); }

.filter-count {
    display: inline-flex; align-items: center; justify-content: center;
    width: 20px; height: 20px; border-radius: 50%;
    font-size: 11px; font-weight: 700;
    background: rgba(255,255,255,.18); color: inherit;
}
.filter-btn:not(.active) .filter-count { background: var(--gray-100); color: var(--gray-700); }


/* ============================================================
   EVENTS GRID
   ============================================================ */

.events-section { background: var(--off-white); padding: 64px 0 96px; }

.ev-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* ── Card ── */
.ev-card {
    background: var(--white);
    border-radius: 16px; overflow: hidden;
    display: flex; flex-direction: column;
    border: 1px solid var(--gray-100);
    box-shadow: 0 2px 8px rgba(11,22,40,.06);
    transition: transform .35s, box-shadow .35s, border-color .35s;
}
.ev-card:hover { transform: translateY(-8px); box-shadow: 0 24px 64px rgba(0,0,0,.13); }

/* Card top stripe */
.ev-card__top {
    position: relative;
    display: flex; align-items: flex-start; justify-content: space-between;
    padding: 28px 24px 20px;
    background: var(--off-white);
    border-bottom: 1px solid var(--gray-100);
}

/* Science */
.ev-card--science .ev-card__top   { background: var(--cat-science-bg); }
.ev-card--science .ev-card__top::before { content:''; position:absolute; top:0; left:0; right:0; height:4px; background:var(--cat-science); border-radius:16px 16px 0 0; }
.ev-card--science .ev-card__icon-circle { background:rgba(14,165,233,.15); color:var(--cat-science); }
.ev-card--science .ev-card__cat-pill   { background:rgba(14,165,233,.12); color:var(--cat-science); }
.ev-card--science:hover { border-color:var(--cat-science); }

/* Management */
.ev-card--management .ev-card__top { background:var(--cat-mgmt-bg); }
.ev-card--management .ev-card__top::before { content:''; position:absolute; top:0; left:0; right:0; height:4px; background:var(--cat-mgmt); border-radius:16px 16px 0 0; }
.ev-card--management .ev-card__icon-circle { background:rgba(245,158,11,.15); color:var(--cat-mgmt); }
.ev-card--management .ev-card__cat-pill   { background:rgba(245,158,11,.12); color:var(--cat-mgmt); }
.ev-card--management:hover { border-color:var(--cat-mgmt); }

/* Creative */
.ev-card--creative .ev-card__top { background:var(--cat-creative-bg); }
.ev-card--creative .ev-card__top::before { content:''; position:absolute; top:0; left:0; right:0; height:4px; background:var(--cat-creative); border-radius:16px 16px 0 0; }
.ev-card--creative .ev-card__icon-circle { background:rgba(168,85,247,.15); color:var(--cat-creative); }
.ev-card--creative .ev-card__cat-pill   { background:rgba(168,85,247,.12); color:var(--cat-creative); }
.ev-card--creative:hover { border-color:var(--cat-creative); }

/* Tech */
.ev-card--tech .ev-card__top { background:var(--cat-tech-bg); }
.ev-card--tech .ev-card__top::before { content:''; position:absolute; top:0; left:0; right:0; height:4px; background:var(--cat-tech); border-radius:16px 16px 0 0; }
.ev-card--tech .ev-card__icon-circle { background:rgba(16,185,129,.15); color:var(--cat-tech); }
.ev-card--tech .ev-card__cat-pill   { background:rgba(16,185,129,.12); color:var(--cat-tech); }
.ev-card--tech:hover { border-color:var(--cat-tech); }

/* Fun */
.ev-card--fun .ev-card__top { background:var(--cat-fun-bg); }
.ev-card--fun .ev-card__top::before { content:''; position:absolute; top:0; left:0; right:0; height:4px; background:var(--cat-fun); border-radius:16px 16px 0 0; }
.ev-card--fun .ev-card__icon-circle { background:rgba(239,68,68,.15); color:var(--cat-fun); }
.ev-card--fun .ev-card__cat-pill   { background:rgba(239,68,68,.12); color:var(--cat-fun); }
.ev-card--fun:hover { border-color:var(--cat-fun); }

/* Icon circle */
.ev-card__icon-circle {
    width: 52px; height: 52px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; flex-shrink: 0;
    transition: transform .2s;
}
.ev-card:hover .ev-card__icon-circle { transform: scale(1.08) rotate(-4deg); }

/* Number watermark */
.ev-card__num {
    position: absolute; bottom: 12px; right: 20px;
    font-family: var(--serif); font-size: 52px; font-weight: 800;
    color: rgba(0,0,0,.06); line-height: 1;
    pointer-events: none; user-select: none;
}

/* Category pill */
.ev-card__cat-pill {
    display: inline-block; font-size: 10px; font-weight: 700;
    letter-spacing: .12em; text-transform: uppercase;
    padding: 4px 10px; border-radius: 999px; align-self: flex-start;
}

/* Card body */
.ev-card__body {
    display: flex; flex-direction: column; flex: 1;
    padding: 24px 24px 28px; gap: 10px;
}
.ev-card__title { font-family: var(--serif); font-size: 20px; font-weight: 700; color: var(--navy); line-height: 1.25; }
.ev-card__desc  { font-size: 14px; color: var(--gray-700); line-height: 1.78; flex: 1; }

/* Footer row */
.ev-card__footer {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; margin-top: 8px; flex-wrap: wrap;
}
.ev-card__team {
    display: flex; align-items: center; gap: 7px;
    font-size: 12px; font-weight: 600; color: var(--gray-500); letter-spacing: .03em;
}
.ev-card__team i { color: var(--navy); font-size: 11px; }
.ev-card__cta { padding: 9px 20px; font-size: 13px; }
.ev-card__cta i { font-size: 11px; transition: transform .2s; }
.ev-card:hover .ev-card__cta i { transform: translateX(3px); }

/* No-results */
.ev-no-results {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 16px; padding: 80px 0;
    color: var(--gray-500); font-size: 16px;
}
.ev-no-results i { font-size: 48px; opacity: .3; }


/* ============================================================
   REGISTER STRIP
   ============================================================ */
.register-strip { background: var(--amber); padding: 64px 0; }
.register-strip__inner {
    display: flex; align-items: center;
    justify-content: space-between; gap: 28px; flex-wrap: wrap;
}
.register-strip__title {
    font-family: var(--serif);
    font-size: clamp(20px, 3vw, 32px);
    font-weight: 800; color: var(--teal);
    max-width: 520px; line-height: 1.25;
}
.register-strip .btn--gold { background: white; color: var(--teal); border-color: var(--teal); }
.register-strip .btn--gold:hover { background: white; border-color: var(--teal2); }


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .ev-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .ev-grid { grid-template-columns: 1fr; }
    .ev-hero { padding-bottom: 64px; }
    .filter-bar__inner { gap: 8px; }
}