/* ===========================================
   The Core - Events Page
   Brand: Black #070707, Pink #ea246b, Green #00a880, Blue #1772dc, White #fafafa
   Vibe: Energetic, community-driven, vibrant
   =========================================== */

:root {
    --black: #070707;
    --pink: #ea246b;
    --green: #00a880;
    --blue: #1772dc;
    --white: #fafafa;
    --dark: #0e0e0e;
    --surface: #161616;
    --surface-2: #1c1c1c;
    --border: rgba(255,255,255,0.06);
    --border-hover: rgba(255,255,255,0.12);
    --text-1: #f0f0f0;
    --text-2: #999;
    --text-3: #666;
    --radius: 14px;
    --radius-sm: 8px;
    --radius-xs: 6px;
    --pink-glow: rgba(234,36,107,0.12);
    --blue-glow: rgba(23,114,220,0.12);
    --green-glow: rgba(0,168,128,0.12);
}

/* === BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--black);
    color: var(--text-1);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Body handles overflow; don't create nested scroll contexts */
a { color: var(--blue); text-decoration: none; transition: 0.2s; }
a:hover { color: var(--pink); }
img { max-width: 100%; display: block; }

/* Bootstrap overrides for dark theme */
.text-muted { color: var(--text-2) !important; }
.small, small { color: var(--text-2); }
p { color: var(--text-2); }
h1, h2, h3, h4, h5, h6 { color: var(--text-1); }
.modal-content { color: var(--text-1); }
.modal-content .text-muted { color: var(--text-2) !important; }

/* === SCROLL ANIMATIONS === */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease, transform 0.5s ease; }
.fade-in.visible { opacity: 1; transform: none; }

/* === NAVBAR === */
.navbar {
    background: rgba(7,7,7,0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0.45rem 0;
    border-bottom: 1px solid var(--border);
    z-index: 1050;
}

.navbar-brand img { height: 28px; width: auto; display: block; }

.navbar-builders-logo {
    display: flex;
    flex-direction: column;
    line-height: 1;
    margin-left: 10px;
    padding-left: 10px;
    border-left: 2px solid var(--pink);
}

.builders-the {
    font-size: 0.5rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--pink);
}

.builders-name-text {
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--white);
    margin-top: 1px;
}

/* Nav links */
.navbar-nav {
    gap: 0;
    align-items: center;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 3px;
}

.navbar-nav .nav-link {
    color: var(--text-2);
    font-weight: 500;
    font-size: 0.78rem;
    padding: 0.32rem 0.85rem;
    border-radius: 20px;
    transition: 0.2s;
    white-space: nowrap;
}

.navbar-nav .nav-link:hover {
    color: var(--white);
    background: rgba(255,255,255,0.08);
}

.navbar-nav .nav-link.active {
    color: var(--white);
    background: var(--pink);
}

.navbar-nav .nav-link::after { display: none; }

/* CTA in nav */
.nav-cta .nav-link {
    background: var(--pink);
    color: #fff !important;
    font-weight: 600;
    font-size: 0.75rem;
    padding: 0.35rem 1rem;
    margin-left: 6px;
}

.nav-cta .nav-link:hover {
    background: #c91d5b;
}

/* Animated hamburger */
.nav-hamburger {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    z-index: 1060;
}

.hamburger-line {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: 0.3s ease;
    transform-origin: center;
}

.nav-hamburger[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.nav-hamburger[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.nav-hamburger[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.navbar-toggler { display: none !important; }

/* === HERO SECTION === */
.carousel-section {
    padding-top: 60px;
    background: var(--black);
}

.hero-split {
    display: flex;
    gap: 14px;
    padding: 12px 0;
    height: 420px;
}

.hero-split-carousel {
    flex: 0 0 calc(66.666% - 7px);
    height: 100%;
}

.hero-split-form {
    flex: 0 0 calc(33.333% - 7px);
    height: 100%;
}

/* Carousel */
.hero-split-carousel { position: relative; }

.carousel-label {
    position: absolute;
    top: 12px;
    left: 14px;
    z-index: 10;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    background: var(--pink);
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
}

.hero-carousel { position: relative; overflow: hidden; border-radius: var(--radius); width: 100%; height: 100%; }

.hero-carousel-slides {
    display: flex;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-carousel-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.hero-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 8s ease;
}

.hero-carousel-slide:hover img { transform: scale(1.06); }

.hero-carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 60px 20px 16px;
    background: linear-gradient(transparent 0%, rgba(0,0,0,0.8) 100%);
    color: #fff;
}

.carousel-caption-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 2px;
}

.carousel-caption-text {
    font-size: 0.8rem;
    font-weight: 400;
    color: rgba(255,255,255,0.8);
    line-height: 1.4;
}

.hero-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.12);
    color: #fff;
    font-size: 0.9rem;
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.2s;
}

.hero-carousel-nav:hover { background: var(--pink); border-color: transparent; }
.hero-carousel-prev { left: 12px; }
.hero-carousel-next { right: 12px; }

/* Carousel dots, bottom right inside carousel */
.hero-carousel-bottom {
    position: absolute;
    bottom: 12px;
    right: 16px;
    z-index: 5;
    display: flex;
    align-items: center;
}

.hero-carousel-dots { display: flex; gap: 6px; }

.hero-carousel-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    cursor: pointer;
    transition: 0.2s;
}

.hero-carousel-dot.active {
    background: var(--pink);
    box-shadow: 0 0 6px rgba(234,36,107,0.5);
    transform: scale(1.3);
}

.hero-stats-inline {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.68rem;
    color: rgba(255,255,255,0.55);
}

.hero-stats-inline strong { color: #fff; font-weight: 700; }
.stats-dot { width: 3px; height: 3px; border-radius: 50%; background: rgba(255,255,255,0.3); }

/* Carousel empty state */
.hero-carousel:has(.hero-carousel-slides:empty) {
    background: linear-gradient(135deg, var(--surface) 0%, rgba(234,36,107,0.06) 50%, rgba(23,114,220,0.06) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-carousel:has(.hero-carousel-slides:empty)::after {
    content: 'Events coming soon';
    color: var(--text-3);
    font-size: 0.82rem;
}

/* === BUILDERS JOIN FORM (Hero Sidebar) === */
.hero-join-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Subtle gradient accent at top */
.hero-join-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--pink), var(--blue), var(--green));
}

.hero-join-badge {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--pink);
    margin-bottom: 0.5rem;
}

.hero-join-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.hero-join-desc {
    font-size: 0.82rem;
    color: var(--text-2);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.hero-join-card .form-control-sm {
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--white);
    padding: 0.4rem 0.6rem;
    font-size: 0.78rem;
    border-radius: var(--radius-xs);
    transition: 0.2s;
}

.hero-join-card .form-control-sm:focus {
    border-color: var(--pink);
    box-shadow: 0 0 0 2px var(--pink-glow);
    background: var(--surface-2);
    color: var(--white);
}

.hero-join-card .form-control-sm::placeholder { color: var(--text-3); }

.hero-join-card .mb-2 { margin-bottom: 0.3rem !important; }
.hero-join-card .form-check { margin-bottom: 0.2rem !important; }
.hero-join-card .form-check-label { font-size: 0.65rem; color: var(--text-2); line-height: 1.2; }
.hero-join-card .form-check-input { width: 13px; height: 13px; margin-top: 2px; }

.hero-join-card .btn {
    font-size: 0.85rem;
    background: var(--pink);
    color: #fff;
}

.hero-join-card .btn:hover {
    background: #c91d5b;
    color: #fff;
}

.hero-join-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hero-join-features li {
    font-size: 0.85rem;
    color: var(--text-2);
    display: flex;
    align-items: center;
    gap: 7px;
}

.hero-join-features li i {
    color: var(--green);
    font-size: 0.85rem;
}

/* === BUTTONS === */
.btn-core-pink {
    background: var(--pink);
    color: #fff;
    border: none;
    padding: 0.65rem 1.75rem;
    font-weight: 600;
    font-size: 0.88rem;
    border-radius: var(--radius-sm);
    transition: 0.25s;
}

.btn-core-pink:hover {
    background: #c91d5b;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(234,36,107,0.3);
}

.btn-core-outline {
    background: transparent;
    color: var(--text-2);
    border: 1px solid var(--border);
    padding: 0.55rem 1.35rem;
    font-weight: 500;
    font-size: 0.84rem;
    border-radius: var(--radius-sm);
    transition: 0.2s;
}

.btn-core-outline:hover {
    border-color: var(--border-hover);
    color: var(--white);
    background: rgba(255,255,255,0.03);
}

.btn-register-closed {
    background: var(--surface-2);
    color: var(--text-3);
    border: none;
    padding: 0.5rem 1rem;
    font-weight: 500;
    font-size: 0.78rem;
    border-radius: var(--radius-sm);
    cursor: not-allowed;
    width: 100%;
}

/* === SECTIONS === */
.section-padding { padding: 3rem 0; }
.section-alt { background: var(--dark); }

.section-header { margin-bottom: 1.5rem; }

.section-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--pink);
    margin-bottom: 0.35rem;
}

.section-title {
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.section-divider {
    height: 4px;
    background: url('/assets/Core_Pattern_Full_Color.svg') repeat-x center;
    background-size: auto 4px;
    opacity: 0.1;
}

/* === EVENT SCROLL ROW === */
.events-scroll-wrapper { position: relative; overflow: hidden; }

.events-scroll-row {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 4px 0;
}

.events-scroll-row .event-card-col {
    scroll-snap-align: start;
}

.events-scroll-row::-webkit-scrollbar { display: none; }

.events-scroll-row .event-card-col {
    min-width: 0;
    width: calc(33.333% - 10px);
    flex-shrink: 0;
}

.events-scroll-row.scrollable .event-card-col {
    min-width: calc(33.333% - 10px);
    width: calc(33.333% - 10px);
    flex-shrink: 0;
}

.scroll-arrows { display: flex; gap: 5px; }

.scroll-arrow-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.85rem;
    transition: 0.2s;
}

.scroll-arrow-btn:hover { background: var(--pink); border-color: transparent; color: #fff; }

/* === EVENT CARDS === */
.event-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

.event-card-link { cursor: pointer; }

.event-card-img {
    width: 100%;
    aspect-ratio: 2 / 1;
    object-fit: cover;
    background: linear-gradient(135deg, var(--surface), var(--surface-2));
}

.event-card-body {
    padding: 0.9rem 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.event-card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 0.45rem;
    flex-wrap: wrap;
}

.event-card-date {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--green);
}

.format-badge {
    font-size: 0.58rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 2px 7px;
    border-radius: 3px;
}

.format-badge-webinar { background: var(--pink-glow); color: var(--pink); }
.format-badge-in-person { background: var(--green-glow); color: var(--green); }
.format-badge-hybrid { background: var(--blue-glow); color: var(--blue); }
.paid-badge { background: rgba(255,193,7,0.15); color: #ffc107; }
.free-badge { background: rgba(0,168,128,0.1); color: var(--green); }

.event-card-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    line-height: 1.3;
}

.event-card-location {
    font-size: 0.82rem;
    color: var(--text-2);
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.event-card-speakers {
    font-size: 0.78rem;
    color: var(--text-3);
    margin-bottom: 0.35rem;
}

.event-card-speakers i { color: var(--blue); margin-right: 2px; }

.event-card-desc {
    font-size: 0.84rem;
    color: var(--text-2);
    line-height: 1.55;
    margin-bottom: 0.75rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-card-footer { padding: 0 1rem 1rem; }

/* Gallery preview strip */
.gallery-preview { display: flex; gap: 3px; padding: 0 1rem 0.65rem; overflow: hidden; }

.gallery-preview-thumb {
    width: 42px;
    height: 42px;
    object-fit: cover;
    border-radius: 4px;
    background: var(--surface-2);
    flex-shrink: 0;
}

.gallery-preview-more {
    width: 42px;
    height: 42px;
    border-radius: 4px;
    background: var(--surface-2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-3);
    flex-shrink: 0;
}

/* === REGISTER STRIP === */
.register-strip {
    background: linear-gradient(100deg, var(--pink), #d94080, var(--blue));
    padding: 1.15rem 0;
}

.register-strip-text {
    font-size: 0.95rem;
    font-weight: 500;
    color: #fff;
    margin: 0;
}

.register-strip .btn-core-pink {
    background: rgba(0,0,0,0.25);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.2);
    white-space: nowrap;
}

.register-strip .btn-core-pink:hover { background: rgba(0,0,0,0.4); box-shadow: none; }

/* === RESOURCES === */
.resource-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: 0.2s;
}

.resource-card:hover { border-color: var(--border-hover); }

.resource-card-title {
    font-size: 0.92rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--text-2);
}

.resource-meta { font-size: 0.78rem; color: var(--text-3); margin-bottom: 0.5rem; }

.resource-features {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}

.resource-features li {
    font-size: 0.84rem;
    color: var(--text-2);
    display: flex;
    align-items: center;
    gap: 7px;
}

.resource-features li i { color: var(--green); font-size: 0.8rem; }
.resource-info h4 { font-size: 0.85rem; font-weight: 600; margin-bottom: 0.15rem; }
.resource-preview { display: none; }

.newsletter-card-heading { font-size: 0.92rem; font-weight: 600; margin-bottom: 0.25rem; }

.newsletter-embed-wrap {
    margin-top: auto;
    border-radius: var(--radius-xs);
    overflow: hidden;
    min-height: 56px;
}

/* === TESTIMONIALS === */
.testimonial-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: 0.2s;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 12px;
    right: 18px;
    font-size: 3.5rem;
    font-weight: 700;
    color: rgba(234,36,107,0.08);
    line-height: 1;
}

.testimonial-card:hover { border-color: var(--border-hover); }

.testimonial-quote {
    font-size: 0.95rem;
    font-style: italic;
    line-height: 1.7;
    color: var(--text-2);
    margin-bottom: 1.25rem;
    flex: 1;
}

.testimonial-author { display: flex; align-items: center; gap: 10px; }

.testimonial-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.testimonial-name { font-size: 0.88rem; font-weight: 600; }
.testimonial-role { font-size: 0.75rem; color: var(--text-3); }

.testimonial-col {
    min-width: 0;
    width: calc(33.333% - 10px);
}

.events-scroll-row.scrollable .testimonial-col {
    min-width: 320px;
    width: 320px;
}

/* === EMBEDS (Newsletter + Podcast) === */
.embed-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.1rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.embed-card .newsletter-embed,
.embed-card .podcast-embed { flex: 1; display: flex; flex-direction: column; }
.embed-card .podcast-embed iframe { flex: 1; min-height: 200px; }

.embed-card-title { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.2rem; }
.embed-card-desc { font-size: 0.72rem; color: var(--text-2); margin-bottom: 0.65rem; }

.newsletter-embed { display: flex; }
.podcast-embed {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    padding: 4px;
    background: var(--surface);
    max-width: 100%;
}

.podcast-embed iframe {
    max-width: 100%;
    display: block;
}

/* === FORMS === */
.core-form .form-label { font-size: 0.84rem; font-weight: 500; color: var(--text-2); margin-bottom: 0.35rem; }

.core-form .form-control {
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--white);
    border-radius: var(--radius-sm);
    padding: 0.7rem 0.95rem;
    font-size: 0.88rem;
    transition: 0.2s;
}

.core-form .form-control:focus {
    background: var(--surface-2);
    border-color: var(--pink);
    color: var(--white);
    box-shadow: 0 0 0 2px var(--pink-glow);
}

.core-form .form-control::placeholder { color: var(--text-3); }
.core-form .form-control.is-invalid { border-color: var(--pink); }

.form-check-input { background-color: var(--surface-2); border-color: var(--border); }
.form-check-input:checked { background-color: var(--pink); border-color: var(--pink); }
.form-check-input:focus { box-shadow: 0 0 0 2px var(--pink-glow); border-color: var(--pink); }
.form-check-label { font-size: 0.75rem; color: var(--text-2); }

/* === MODALS === */
.modal-content {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--white);
}

.modal-header { border-bottom: 1px solid var(--border); padding: 1rem 1.15rem; }
.modal-title { font-weight: 600; font-size: 0.95rem; }
.modal-body { padding: 1.15rem; }

/* === VIDEO & GALLERY === */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--surface);
}

.video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 5px;
    padding: 0.65rem 1rem;
}

.gallery-thumb {
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--radius-xs);
    cursor: pointer;
    transition: 0.2s;
    background: var(--surface-2);
    width: 100%;
}

.gallery-thumb:hover { opacity: 0.8; transform: scale(1.04); }

/* === GALLERY LIGHTBOX === */
#galleryModal .modal-content { background: transparent; border: none; }
#galleryModal .modal-header { position: absolute; top: 0; right: 0; z-index: 10; padding: 1rem; border: none; }
#galleryModal .carousel-item img { max-height: 80vh; width: auto; max-width: 100%; margin: 0 auto; display: block; object-fit: contain; border-radius: var(--radius-sm); }

/* Gallery scroll (detail page) */
.detail-gallery .gallery-grid {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-behavior: smooth;
    padding: 0 0 8px;
}
.detail-gallery .gallery-grid::-webkit-scrollbar { display: none; }
.detail-gallery .gallery-grid .gallery-thumb { width: 160px; height: 120px; min-width: 160px; aspect-ratio: auto; border-radius: var(--radius-sm); }
.detail-gallery-wrapper { position: relative; }
.gallery-scroll-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 32px; height: 32px; border-radius: 50%;
    border: 1px solid var(--border); background: rgba(0,0,0,0.5);
    backdrop-filter: blur(6px); color: #fff;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 5; transition: 0.2s; font-size: 0.9rem;
}
.gallery-scroll-btn:hover { background: var(--pink); border-color: transparent; }
.gallery-scroll-btn-left { left: -16px; }
.gallery-scroll-btn-right { right: -16px; }

/* === DETAIL PAGE === */
.detail-page { padding-top: 64px; }
.detail-back {
    display: inline-flex; align-items: center; gap: 5px;
    color: var(--text-2); font-size: 0.78rem; font-weight: 500;
    padding: 0.85rem 0; cursor: pointer; background: none; border: none; transition: 0.2s;
}
.detail-back:hover { color: var(--white); }

.detail-hero {
    width: 100%; aspect-ratio: 2 / 1; object-fit: cover;
    border-radius: var(--radius); margin-bottom: 1.5rem;
    background: var(--surface);
}

.detail-title { font-size: 1.8rem; font-weight: 700; line-height: 1.15; margin-bottom: 0.65rem; letter-spacing: -0.02em; }

.detail-meta { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.25rem; }
.detail-meta-item { display: flex; align-items: center; gap: 5px; font-size: 0.78rem; color: var(--text-2); }
.detail-meta-item i { color: var(--green); }

.detail-description { font-size: 0.88rem; line-height: 1.7; color: var(--text-2); margin-bottom: 2rem; white-space: pre-line; }

/* Speakers */
.speakers-section { margin-bottom: 2rem; }
.speakers-section h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 1rem; }
.speaker-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1.1rem; text-align: center; transition: 0.2s;
}
.speaker-card:hover { border-color: var(--border-hover); }
.speaker-photo { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; margin: 0 auto 0.65rem; background: var(--surface-2); }
.speaker-name { font-size: 0.8rem; font-weight: 600; margin-bottom: 0.1rem; }
.speaker-designation { font-size: 0.68rem; color: var(--text-3); }

/* Agenda */
.agenda-section { margin-bottom: 2rem; }
.agenda-section h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 1rem; }
.agenda-list { list-style: none; padding: 0; position: relative; }
.agenda-list::before { content: ''; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--border); }
.agenda-item { display: flex; align-items: flex-start; gap: 0.65rem; padding: 0.5rem 0; position: relative; }
.agenda-dot { width: 16px; height: 16px; min-width: 16px; border-radius: 50%; background: var(--pink); margin-top: 2px; position: relative; z-index: 1; }
.agenda-time { font-size: 0.72rem; font-weight: 600; color: var(--green); min-width: 65px; }
.agenda-title { font-size: 0.82rem; color: var(--text-1); }

/* Share */
.share-section { margin-bottom: 2rem; }
.share-section h4 { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-3); margin-bottom: 0.5rem; }
.share-buttons { display: flex; gap: 0.35rem; }
.share-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: var(--radius-xs);
    border: 1px solid var(--border); background: var(--surface);
    color: var(--text-2); font-size: 0.9rem; transition: 0.2s; cursor: pointer; text-decoration: none;
}
.share-btn:hover { border-color: var(--pink); color: var(--pink); background: var(--pink-glow); }

/* Detail registration */
.detail-registration {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1.25rem; margin-bottom: 2rem;
}
.detail-registration h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 1rem; }

/* Detail video & gallery */
.detail-video { margin-bottom: 2rem; }
.detail-video h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.85rem; }
.detail-gallery { margin-bottom: 2rem; }
.detail-gallery h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.85rem; }

/* === REGISTRATION MODAL COMPACT === */
#registrationModal .modal-body { padding: 1rem 1.15rem; }
#registrationModal .form-label { font-size: 0.72rem; margin-bottom: 0.2rem; }
#registrationModal .form-control { padding: 0.45rem 0.7rem; font-size: 0.82rem; }
#registrationModal .mb-3 { margin-bottom: 0.6rem !important; }
#registrationModal .form-check { margin-bottom: 0.3rem !important; }
#registrationModal .form-check-label { font-size: 0.72rem; }

/* Registration type selector */
.reg-type-buttons {
    display: flex;
    gap: 8px;
}

.reg-type-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 10px 12px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-2);
    cursor: pointer;
    transition: 0.2s;
    text-align: center;
}

.reg-type-btn i {
    font-size: 1.1rem;
    margin-bottom: 2px;
}

.reg-type-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--white);
}

.reg-type-desc {
    font-size: 0.65rem;
    color: var(--text-3);
}

.reg-type-btn:hover {
    border-color: var(--border-hover);
    background: rgba(255,255,255,0.03);
}

.reg-type-btn.active {
    border-color: var(--pink);
    background: rgba(234,36,107,0.08);
}

.reg-type-btn.active i {
    color: var(--pink);
}

.reg-type-btn[data-type="vip"].active {
    border-color: #ffc107;
    background: rgba(255,193,7,0.08);
}

.reg-type-btn[data-type="vip"].active i {
    color: #ffc107;
}

.reg-lookup-box {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    margin-bottom: 0.75rem;
}

/* === STATIC PAGES === */
.static-page-content {
    max-width: 720px;
    margin: 0 auto;
    padding: 1rem 0 3rem;
}

.static-page-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--white);
    letter-spacing: -0.02em;
}

.static-page-body {
    font-size: 0.92rem;
    color: var(--text-2);
    line-height: 1.8;
}

.static-page-body h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--white);
}

.static-page-body h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.static-page-body p {
    margin: 0.6rem 0;
    color: var(--text-2);
}

.static-page-body ul, .static-page-body ol {
    padding-left: 1.5rem;
    margin: 0.5rem 0;
}

.static-page-body li {
    margin: 0.3rem 0;
    color: var(--text-2);
}

.static-page-body a {
    color: var(--pink);
}

.static-page-body strong {
    color: var(--white);
}

/* === CTA CARD === */
.cta-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(135deg, #111 0%, #161616 50%, #111 100%);
    border: 1px solid var(--border);
    padding: 2.5rem 3rem;
}

.cta-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 2.5rem;
    align-items: center;
}

/* Texture: dot grid pattern */
.cta-texture {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}

/* Floating brand dots (decorative) */
.cta-float-dot {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    animation: floatDot 6s ease-in-out infinite;
}

.cta-fd-1 { width: 120px; height: 120px; background: var(--pink); opacity: 0.07; top: -30px; right: 10%; animation-delay: 0s; }
.cta-fd-2 { width: 80px; height: 80px; background: var(--blue); opacity: 0.06; bottom: -20px; left: 5%; animation-delay: 1s; }
.cta-fd-3 { width: 60px; height: 60px; background: var(--green); opacity: 0.08; top: 20%; left: -20px; animation-delay: 2s; }
.cta-fd-4 { width: 100px; height: 100px; background: var(--blue); opacity: 0.05; bottom: 10%; right: -30px; animation-delay: 3s; }
.cta-fd-5 { width: 40px; height: 40px; background: var(--pink); opacity: 0.1; top: 60%; left: 15%; animation-delay: 4s; }

@keyframes floatDot {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-12px) scale(1.05); }
}

/* Content */
.cta-inner {
    position: relative;
    z-index: 1;
}

/* Newsletter column */
.cta-newsletter {
    position: relative;
    z-index: 1;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cta-newsletter-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--pink);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.cta-newsletter-title i { font-size: 0.95rem; }

.cta-newsletter-heading {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    margin: 0 0 0.35rem 0;
    line-height: 1.3;
}

.cta-newsletter-desc {
    font-size: 0.85rem;
    color: var(--text-2);
    line-height: 1.55;
    margin: 0 0 0.75rem 0;
}

.cta-newsletter-embed {
    border-radius: var(--radius-xs);
    overflow: hidden;
    min-height: 56px;
}

.cta-heading {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.25;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.cta-body {
    font-size: 0.88rem;
    color: var(--text-2);
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.cta-email {
    font-size: 0.92rem;
    color: var(--text-2);
}

.cta-email a {
    color: var(--pink);
    font-weight: 700;
    text-decoration: none;
    transition: 0.2s;
}

.cta-email a:hover { text-decoration: underline; }

@media (max-width: 991.98px) {
    .cta-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 767.98px) {
    .cta-card { padding: 2rem 1.25rem; border-radius: 16px; }
    .cta-heading { font-size: 1.4rem; }
    .cta-newsletter { padding: 1.25rem; }
}

/* === FOOTER === */
.site-footer {
    background: var(--dark);
    position: relative;
    overflow: hidden;
}

.footer-gradient {
    height: 3px;
    background: linear-gradient(90deg, var(--pink), var(--green), var(--blue));
}

.footer-main {
    display: flex;
    gap: 3rem;
    padding: 2.5rem 0 2rem;
    border-bottom: 1px solid var(--border);
}

.footer-brand {
    flex: 1;
    min-width: 240px;
}

.footer-logo-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.75rem;
}

.footer-builders-mark {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--pink);
    padding-left: 10px;
    border-left: 2px solid var(--pink);
    line-height: 1.2;
}

.footer-tagline {
    font-size: 0.8rem;
    color: var(--text-3);
    line-height: 1.6;
    margin-bottom: 1rem;
    max-width: 320px;
}

.footer-social {
    display: flex;
    gap: 8px;
}

.footer-social a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-2);
    font-size: 0.85rem;
    transition: 0.2s;
    text-decoration: none;
}

.footer-social a:hover {
    background: var(--pink);
    border-color: var(--pink);
    color: #fff;
}

.footer-nav {
    display: flex;
    gap: 2.5rem;
}

.footer-nav-col h6 {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-2);
    margin-bottom: 0.6rem;
}

.footer-nav-col a {
    display: block;
    font-size: 0.8rem;
    color: var(--text-3);
    padding: 0.2rem 0;
    transition: 0.2s;
    text-decoration: none;
}

.footer-nav-col a:hover {
    color: var(--white);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.footer-bottom p {
    font-size: 0.72rem;
    color: var(--text-3);
    margin: 0;
}

.footer-dots {
    display: flex;
    gap: 5px;
}

.footer-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

@media (max-width: 767.98px) {
    .footer-main {
        flex-direction: column;
        gap: 2rem;
    }
    .footer-nav {
        gap: 1.5rem;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

/* === STATES === */
.empty-state { text-align: center; padding: 2.5rem 1.5rem; }
.empty-state-icon { font-size: 2rem; color: rgba(255,255,255,0.06); margin-bottom: 0.5rem; }
.empty-state-text { color: var(--text-3); font-size: 0.82rem; }
.error-state { text-align: center; padding: 2rem 1.5rem; color: var(--pink); }
.loading-state { padding: 2.5rem 0; }

/* === CORE LIQUID LOADER (metaballs) === */
.core-loader {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
.core-loader svg { width: 100%; height: 100%; overflow: visible; display: block; }
.core-loader circle {
    transform-origin: 50px 50px;
    r: 10;
    animation-duration: 3s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}
.core-loader .c-pink   { fill: #ea246b; animation-name: core-orbit-pink; }
.core-loader .c-green  { fill: #00a880; animation-name: core-orbit-green; }
.core-loader .c-blue   { fill: #1772dc; animation-name: core-orbit-blue; }
.core-loader .c-white  { fill: #fafafa; animation-name: core-orbit-white; }
.core-loader-label {
    color: var(--text-3);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: center;
    margin-top: 0.5rem;
}
@keyframes core-orbit-pink {
    0%, 100% { transform: rotate(0deg)   translateX(36px); }
    50%      { transform: rotate(180deg) translateX(16px); }
}
@keyframes core-orbit-green {
    0%, 100% { transform: rotate(90deg)  translateX(36px); }
    50%      { transform: rotate(270deg) translateX(16px); }
}
@keyframes core-orbit-blue {
    0%, 100% { transform: rotate(180deg) translateX(36px); }
    50%      { transform: rotate(360deg) translateX(16px); }
}
@keyframes core-orbit-white {
    0%, 100% { transform: rotate(270deg) translateX(36px); }
    50%      { transform: rotate(450deg) translateX(16px); }
}
@media (prefers-reduced-motion: reduce) {
    .core-loader circle { animation: none; }
}
.toast { border-radius: var(--radius-sm); }
.event-card-img[src=""], .event-card-img:not([src]) { background: var(--surface); }

/* === RESPONSIVE === */
/* === TABLET === */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: rgba(10,10,10,0.98);
        backdrop-filter: blur(20px);
        padding: 1rem;
        border-radius: var(--radius);
        margin-top: 0.5rem;
        border: 1px solid var(--border);
    }

    .navbar-nav {
        gap: 0;
        background: none;
        border: none;
        border-radius: 0;
        padding: 0;
    }

    .navbar-nav .nav-link {
        border-radius: var(--radius-sm);
        padding: 0.6rem 1rem;
        font-size: 0.88rem;
    }

    .nav-cta .nav-link {
        margin-left: 0;
        margin-top: 8px;
        text-align: center;
        border-radius: var(--radius-sm);
    }
    .section-padding { padding: 2.5rem 0; }
    .hero-split { flex-direction: column; height: auto; }
    .hero-split-carousel { flex: none; height: 280px; }
    .hero-split-form { height: auto; }
    .hero-join-card { flex-direction: row; flex-wrap: wrap; gap: 1rem; }
    .hero-join-card > .hero-join-badge,
    .hero-join-card > .hero-join-title,
    .hero-join-card > .hero-join-desc { width: 100%; }
    .hero-join-card form { width: 100%; }
    .events-scroll-row .event-card-col { min-width: 280px; width: 280px; }
}

/* === MOBILE === */
@media (max-width: 767.98px) {
    /* Carousel */
    .hero-carousel-slide { height: 100%; }
    .hero-carousel-nav { width: 30px; height: 30px; font-size: 0.8rem; }
    .hero-carousel-prev { left: 8px; }
    .hero-carousel-next { right: 8px; }
    .hero-carousel-caption { font-size: 0.78rem; padding: 24px 12px 10px; }
    .hero-carousel-bottom { padding: 6px 10px; }
    .hero-stats-inline { font-size: 0.62rem; }
    .carousel-label { font-size: 0.5rem; padding: 3px 8px; top: 8px; left: 10px; }
    .hero-split { padding: 8px 0; gap: 10px; }

    /* Builders form: more compact on mobile */
    .hero-join-card { padding: 1rem; }
    .hero-join-title { font-size: 0.88rem; }
    .hero-join-desc { font-size: 0.68rem; margin-bottom: 0.5rem; }

    /* Sections */
    .section-padding { padding: 2rem 0; }
    .section-title { font-size: 1.3rem; }
    .section-header { margin-bottom: 1.25rem; }

    /* Event cards: snap scroll on mobile, match container padding */
    .events-scroll-row .event-card-col {
        min-width: 280px;
        width: calc(100vw - 24px);
        scroll-snap-align: start;
    }
    .events-scroll-row {
        scroll-snap-type: x mandatory;
    }
    .events-scroll-row::after {
        content: '';
        min-width: 1px;
        flex-shrink: 0;
    }

    /* Register strip */
    .register-strip { padding: 0.85rem 0; }
    .register-strip-text { font-size: 0.8rem; }
    .register-strip .btn-core-pink { font-size: 0.78rem; padding: 0.5rem 1.2rem; }

    /* Resources: stack on mobile */
    #resources-row .col-md-4 { width: 100% !important; }

    /* Testimonials: bigger on mobile since stacked */
    .testimonial-card { padding: 1.35rem; }
    .testimonial-quote { font-size: 0.9rem; }

    /* Podcast */
    #podcasts .col-lg-8 { padding: 0; }

    /* Detail page */
    .detail-title { font-size: 1.35rem; }
    .detail-hero { aspect-ratio: 16 / 9; border-radius: var(--radius-sm); }
    .detail-meta { flex-direction: column; gap: 0.5rem; }
    .detail-description { font-size: 0.84rem; }
    .speaker-photo { width: 56px; height: 56px; }

    /* Gallery */
    .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); }
    .detail-gallery .gallery-grid .gallery-thumb { width: 120px; height: 90px; min-width: 120px; }
    .gallery-scroll-btn-left { left: -6px; }
    .gallery-scroll-btn-right { right: -6px; }

    /* Footer */
    .footer-links { justify-content: flex-start; margin-top: 0.65rem; }

    /* Forms */
    .core-form .form-control { padding: 0.6rem 0.85rem; font-size: 0.85rem; }
}

/* === SMALL MOBILE === */
@media (max-width: 400px) {
    .hero-carousel-slide { height: 100%; }
    .events-scroll-row .event-card-col { min-width: 260px; width: calc(100vw - 24px); }
    .section-title { font-size: 1.15rem; }
    .hero-join-card .row.g-2 > .col-6 { width: 100% !important; flex: 0 0 100%; }
}
