@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
--primary: #6855e8;
--primary-dark: #5541d5;
--primary-light: #eeeaff;
--accent: #a18aff;
--bg: #f7f8fc;
--surface: #ffffff;
--surface-secondary: #f1f2f8;
--surface-hover: #f6f4ff;
--text: #17172b;
--text-secondary: #666780;
--text-muted: #9698ad;
--border: #e8e8f0;
--shadow-sm: 0 4px 15px rgba(28, 27, 65, 0.045);
--shadow-md: 0 12px 35px rgba(28, 27, 65, 0.075);
--shadow-lg: 0 20px 55px rgba(28, 27, 65, 0.12);
--radius-sm: 12px;
--radius-md: 18px;
--radius-lg: 24px;
--radius-xl: 30px;
--container-width: 1440px;
--transition: 0.3s ease;
}

* {
box-sizing: border-box;
margin: 0;
padding: 0;
}

html {
scroll-behavior: smooth;
scroll-padding-top: 100px;
}

body.events-page {
font-family: 'DM Sans', sans-serif;
background: var(--bg);
color: var(--text);
overflow-x: hidden;
transition: background var(--transition), color var(--transition);
}

button,
input,
select {
font: inherit;
}

button {
cursor: pointer;
}

a {
text-decoration: none;
}

img {
max-width: 100%;
}

[hidden] {
display: none !important;
}

.page-container {
width: min(calc(100% - 80px), var(--container-width));
margin-inline: auto;
}

html[data-theme="dark"],
body.dark-mode,
body.dark-theme,
body[data-theme="dark"] {
--bg: #0d1020;
--surface: #171b2d;
--surface-secondary: #20253a;
--surface-hover: #272341;
--text: #f2f1ff;
--text-secondary: #b3b5ce;
--text-muted: #8589a6;
--border: #30364e;
--primary-light: #292347;
--shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.18);
--shadow-md: 0 12px 35px rgba(0, 0, 0, 0.25);
--shadow-lg: 0 20px 55px rgba(0, 0, 0, 0.35);
}

.hero-section {
width: 100%;
height: 520px;
position: relative;
overflow: hidden;
background: #291c38;
isolation: isolate;
}

.hero-track {
display: flex;
width: 100%;
height: 100%;
transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
will-change: transform;
}

.hero-slide {
min-width: 100%;
width: 100%;
height: 100%;
position: relative;
display: flex;
align-items: center;
justify-content: space-between;
padding: 65px max(calc((100vw - var(--container-width)) / 2 + 80px), 100px);
overflow: hidden;
isolation: isolate;
}

.hero-slide-purple {
background:
radial-gradient(circle at 85% 35%, rgba(126, 101, 231, 0.45), transparent 32%),
linear-gradient(115deg, #241c3e 0%, #42305f 52%, #7252a2 100%);
}

.hero-slide-orange {
background:
radial-gradient(circle at 85% 40%, rgba(255, 190, 138, 0.25), transparent 32%),
linear-gradient(115deg, #351b39 0%, #79405e 55%, #c26e52 100%);
}

.hero-slide-blue {
background:
radial-gradient(circle at 85% 35%, rgba(89, 154, 255, 0.3), transparent 32%),
linear-gradient(115deg, #111d3b 0%, #263f75 55%, #4777a5 100%);
}

.hero-content {
width: 55%;
max-width: 690px;
position: relative;
z-index: 3;
animation: heroContentIn 0.8s ease both;
}

@keyframes heroContentIn {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}

.hero-eyebrow {
display: inline-flex;
align-items: center;
gap: 10px;
color: #f9dcae;
font-size: 11px;
font-weight: 800;
letter-spacing: 2.5px;
margin-bottom: 28px;
}

.eyebrow-dot {
width: 8px;
height: 8px;
background: #ffd6a3;
border-radius: 50%;
box-shadow: 0 0 15px rgba(255, 214, 163, 0.8);
}

.hero-content h1 {
color: #ffffff;
font-family: 'Plus Jakarta Sans', sans-serif;
font-size: clamp(40px, 4.2vw, 66px);
line-height: 1.12;
font-weight: 800;
letter-spacing: -2.5px;
margin-bottom: 22px;
}

.hero-content h1 span {
color: #ffd0ad;
}

.hero-content p {
max-width: 510px;
color: rgba(255, 255, 255, 0.78);
font-size: 15px;
line-height: 1.9;
margin-bottom: 28px;
}

.hero-actions {
display: flex;
align-items: center;
gap: 15px;
}

.hero-primary-btn {
display: inline-flex;
align-items: center;
gap: 16px;
padding: 16px 23px;
background: #ffffff;
color: #5744d5;
border-radius: 12px;
font-size: 13px;
font-weight: 800;
transition: var(--transition);
}

.hero-primary-btn:hover {
background: #eeeaff;
color: #4936c5;
transform: translateY(-4px);
box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.hero-primary-btn i {
font-size: 16px;
}

.hero-trust {
display: flex;
align-items: center;
gap: 10px;
color: rgba(255, 255, 255, 0.78);
font-size: 12px;
margin-top: 28px;
}

.hero-trust i {
color: #e2caff;
font-size: 17px;
}

.hero-art {
width: 40%;
max-width: 450px;
height: 380px;
position: relative;
display: flex;
align-items: center;
justify-content: center;
z-index: 2;
}

.hero-orbit {
position: absolute;
width: 320px;
height: 320px;
border: 1px solid rgba(255, 255, 255, 0.18);
border-radius: 50%;
}

.hero-orbit-one {
transform: rotate(-20deg) scaleX(1.2);
}

.hero-orbit-two {
transform: rotate(40deg) scaleX(0.85);
}

.hero-art-glow {
position: absolute;
width: 250px;
height: 250px;
background: rgba(255, 255, 255, 0.12);
filter: blur(75px);
border-radius: 50%;
}

.hero-floating-card {
position: absolute;
background: rgba(255, 255, 255, 0.12);
border: 1px solid rgba(255, 255, 255, 0.25);
backdrop-filter: blur(15px);
color: #ffffff;
border-radius: 15px;
}

.hero-card-main {
width: 290px;
height: 205px;
padding: 23px;
display: flex;
flex-direction: column;
justify-content: space-between;
transform: rotate(-6deg);
box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
}

.hero-card-top,
.hero-ticket-bottom {
display: flex;
justify-content: space-between;
align-items: center;
}

.hero-card-top {
font-size: 9px;
font-weight: 800;
letter-spacing: 1.5px;
}

.hero-card-icon {
width: 34px;
height: 34px;
display: grid;
place-items: center;
background: rgba(255, 255, 255, 0.2);
border-radius: 10px;
font-size: 17px;
}

.hero-ticket-content {
display: flex;
flex-direction: column;
gap: 5px;
}

.hero-ticket-content span {
font-size: 10px;
letter-spacing: 2px;
color: #ffdbba;
}

.hero-ticket-content strong {
font-size: 30px;
}

.hero-ticket-bottom {
font-size: 10px;
letter-spacing: 2px;
}

.hero-card-small {
display: flex;
align-items: center;
gap: 10px;
padding: 13px 17px;
font-size: 12px;
font-weight: 700;
}

.hero-card-small i {
font-size: 17px;
color: #ffd1b0;
}

.hero-card-top {
top: 45px;
right: -5px;
}

.hero-card-bottom {
bottom: 40px;
left: -5px;
}

.hero-promo-art {
width: 240px;
height: 255px;
position: relative;
background: linear-gradient(145deg, #fff9ef, #ffdfcc);
border-radius: 25px;
box-shadow: 0 25px 65px rgba(0, 0, 0, 0.22);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 17px;
transform: rotate(7deg);
color: #984e3c;
animation: floatCard 5s ease-in-out infinite;
}

@keyframes floatCard {
0%, 100% {
transform: translateY(0) rotate(7deg);
}
50% {
transform: translateY(-13px) rotate(4deg);
}
}

.promo-art-sparkle {
font-size: 30px;
}

.promo-art-label {
font-size: 9px;
font-weight: 800;
letter-spacing: 2px;
}

.hero-promo-art strong {
font-family: 'Plus Jakarta Sans', sans-serif;
font-size: 27px;
line-height: 1.2;
text-align: center;
}

.promo-art-bottom {
font-size: 8px;
font-weight: 800;
letter-spacing: 1px;
}

.hero-experience-art {
width: 280px;
height: 240px;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
gap: 15px;
color: #ffffff;
transform: rotate(-5deg);
}

.hero-experience-art i {
font-size: 45px;
color: #b9d9ff;
}

.hero-experience-art span {
font-size: 12px;
letter-spacing: 5px;
}

.hero-experience-art strong {
font-family: 'Plus Jakarta Sans', sans-serif;
font-size: 33px;
letter-spacing: -1px;
}

.hero-experience-art small {
font-size: 10px;
letter-spacing: 2px;
}

.hero-sparkle {
position: absolute;
color: #ffffff;
font-size: 25px;
animation: sparkle 3s ease-in-out infinite;
}

.sparkle-one {
top: 50px;
left: 5px;
}

.sparkle-two {
top: 70px;
right: 5px;
animation-delay: 0.8s;
}

.sparkle-three {
bottom: 35px;
right: 15px;
animation-delay: 1.5s;
}

@keyframes sparkle {
0%, 100% {
opacity: 0.5;
transform: scale(0.8);
}
50% {
opacity: 1;
transform: scale(1.2);
}
}

.hero-control {
position: absolute;
top: 50%;
transform: translateY(-50%);
width: 46px;
height: 46px;
border-radius: 50%;
border: 1px solid rgba(255, 255, 255, 0.4);
background: rgba(255, 255, 255, 0.13);
backdrop-filter: blur(10px);
color: #ffffff;
display: grid;
place-items: center;
font-size: 17px;
z-index: 10;
transition: var(--transition);
}

.hero-control:hover {
background: #ffffff;
color: var(--primary);
transform: translateY(-50%) scale(1.1);
}

.hero-control-prev {
left: 25px;
}

.hero-control-next {
right: 25px;
}

.hero-indicators {
position: absolute;
bottom: 28px;
left: 50%;
transform: translateX(-50%);
display: flex;
align-items: center;
gap: 9px;
z-index: 10;
}

.hero-indicator {
width: 9px;
height: 9px;
border: none;
border-radius: 20px;
background: rgba(255, 255, 255, 0.45);
transition: var(--transition);
}

.hero-indicator.active {
width: 30px;
background: #ffffff;
}

.hero-slide-count {
position: absolute;
bottom: 30px;
right: 65px;
display: flex;
align-items: center;
gap: 12px;
color: #ffffff;
font-size: 10px;
font-weight: 800;
z-index: 10;
}

.slide-count-divider {
width: 30px;
height: 1px;
background: rgba(255, 255, 255, 0.6);
}

.discovery-sections {
padding-top: 55px;
}

.event-collection-section {
margin-bottom: 65px;
}

.collection-heading,
.events-section-heading {
display: flex;
align-items: flex-end;
justify-content: space-between;
gap: 25px;
margin-bottom: 25px;
}

.section-eyebrow {
display: block;
color: var(--primary);
font-size: 10px;
font-weight: 800;
letter-spacing: 2px;
margin-bottom: 12px;
}

.collection-heading h2,
.events-section-heading h2 {
color: var(--text);
font-family: 'Plus Jakarta Sans', sans-serif;
font-size: 27px;
font-weight: 800;
letter-spacing: -0.8px;
margin-bottom: 8px;
}

.collection-heading p,
.events-section-heading p {
color: var(--text-secondary);
font-size: 13px;
line-height: 1.7;
}

.collection-navigation {
display: flex;
align-items: center;
gap: 10px;
flex-shrink: 0;
}

.rail-control {
width: 42px;
height: 42px;
border: 1px solid var(--border);
background: var(--surface);
color: var(--text-secondary);
border-radius: 50%;
display: grid;
place-items: center;
font-size: 16px;
box-shadow: var(--shadow-sm);
transition: var(--transition);
}

.rail-control:hover {
background: var(--primary);
color: #ffffff;
border-color: var(--primary);
transform: translateY(-2px);
}

.event-rail {
display: grid;
grid-auto-columns: minmax(280px, 1fr);
grid-auto-flow: column;
grid-template-rows: 1fr;
gap: 20px;
overflow-x: auto;
overflow-y: hidden;
padding: 3px 2px 15px;
scroll-behavior: smooth;
scroll-snap-type: x mandatory;
scrollbar-width: none;
}

.event-rail::-webkit-scrollbar {
display: none;
}

.event-rail .event-card {
min-width: 0;
scroll-snap-align: start;
}

.event-card {
position: relative;
display: flex;
flex-direction: column;
min-width: 0;
height: 100%;
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius-md);
overflow: hidden;
box-shadow: var(--shadow-sm);
transition:
transform 0.35s ease,
box-shadow 0.35s ease,
border-color 0.35s ease;
animation: cardAppear 0.5s ease both;
animation-delay: calc(var(--card-index, 0) * 50ms);
}

@keyframes cardAppear {
from {
opacity: 0;
transform: translateY(15px);
}
to {
opacity: 1;
transform: translateY(0);
}
}

.event-card:hover {
transform: translateY(-6px);
box-shadow: var(--shadow-md);
border-color: rgba(104, 85, 232, 0.45);
}

.event-card-image-wrapper {
height: 250px;
width: 100%;
position: relative;
overflow: hidden;
background: var(--surface-secondary);
flex-shrink: 0;
}

.event-card-image {
display: block;
width: 100%;
height: 100%;
object-fit: contain;
object-position: center;
transition: transform 0.6s ease;
}

.event-card:hover .event-card-image {
transform: none;
}

.event-image-overlay {
position: absolute;
inset: 0;
background: linear-gradient(
to bottom,
rgba(0, 0, 0, 0.25),
transparent 40%,
rgba(0, 0, 0, 0.05)
);
pointer-events: none;
}

.event-image-category {
position: absolute;
top: 15px;
left: 15px;
padding: 7px 12px;
background: rgba(255, 255, 255, 0.95);
color: #5b48d8;
border-radius: 8px;
font-size: 9px;
font-weight: 800;
letter-spacing: 0.8px;
text-transform: uppercase;
}

.event-image-unavailable {
display: grid;
place-items: center;
color: var(--text-muted);
}

.event-image-unavailable i {
font-size: 40px;
}

.event-card-content {
display: flex;
flex-direction: column;
flex: 1;
padding: 19px;
}

.event-card-title {
color: var(--text);
font-family: 'Plus Jakarta Sans', sans-serif;
font-size: 17px;
line-height: 1.45;
font-weight: 800;
margin-bottom: 10px;
}

.event-card-description {
display: none;
}

.event-card-details {
display: flex;
flex-direction: column;
gap: 10px;
margin-top: auto;
margin-bottom: 17px;
}

.event-detail {
display: flex;
align-items: center;
gap: 9px;
color: var(--text-secondary);
font-size: 11.5px;
}

.event-detail i {
color: var(--primary);
font-size: 15px;
flex-shrink: 0;
}

.event-detail span {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}

.event-card-footer {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
padding-top: 14px;
border-top: 1px solid var(--border);
}

.event-card-price {
display: flex;
flex-direction: column;
gap: 4px;
}

.event-card-price span {
color: var(--text-muted);
font-size: 10px;
}

.event-card-price strong {
color: var(--text);
font-family: 'Plus Jakarta Sans', sans-serif;
font-size: 17px;
font-weight: 800;
}

.view-event-btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 9px;
padding: 11px 16px;
background: var(--primary-light);
color: var(--primary);
border-radius: 10px;
font-size: 11px;
font-weight: 800;
white-space: nowrap;
transition: var(--transition);
}

.view-event-btn:hover {
background: var(--primary);
color: #ffffff;
}

.highlighted-rail {
grid-auto-columns: minmax(100%, 1fr);
}

.highlighted-rail .event-card {
display: grid;
grid-template-columns: 58% 42%;
min-height: 300px;
height: 300px;
border-radius: var(--radius-lg);
}

.highlighted-rail .event-card-image-wrapper {
height: 100%;
min-height: 300px;
}

.highlighted-rail .event-card-image {
object-fit: contain;
object-position: center;
}

.highlighted-rail .event-card-content {
padding: 28px;
}

.highlighted-rail .event-card-title {
font-size: 24px;
margin-bottom: 18px;
}

.highlighted-rail .event-card-description {
display: none;
}

.highlighted-rail .event-card-details {
gap: 15px;
}

.highlighted-rail .event-detail {
font-size: 13px;
}

.highlighted-rail .event-card-price strong {
font-size: 23px;
}

.highlighted-rail .view-event-btn {
padding: 13px 20px;
}

.events-section {
padding: 65px 0 85px;
background: var(--surface-secondary);
transition: background var(--transition);
}

.events-section-heading {
margin-bottom: 30px;
}

.events-section-heading h2 {
font-size: 32px;
}

.events-sort-controls {
display: flex;
align-items: flex-end;
gap: 13px;
}

.filter-control {
display: flex;
flex-direction: column;
gap: 8px;
}

.filter-control label {
color: var(--text-secondary);
font-size: 11px;
font-weight: 700;
}

.filter-control select {
min-width: 165px;
height: 45px;
padding: 0 35px 0 14px;
background-color: var(--surface);
color: var(--text);
border: 1px solid var(--border);
border-radius: 11px;
outline: none;
font-size: 12px;
font-weight: 600;
cursor: pointer;
transition: var(--transition);
}

.filter-control select:focus {
border-color: var(--primary);
box-shadow: 0 0 0 3px rgba(104, 85, 232, 0.12);
}

.filter-control select option {
background: var(--surface);
color: var(--text);
}

.active-filters {
display: flex;
align-items: center;
justify-content: space-between;
gap: 15px;
padding: 13px 17px;
margin-bottom: 25px;
background: var(--surface);
border: 1px solid var(--border);
border-radius: 12px;
}

.active-filters span {
color: var(--text-secondary);
font-size: 12px;
font-weight: 600;
}

.active-filters button {
display: flex;
align-items: center;
gap: 5px;
border: none;
background: transparent;
color: var(--primary);
font-size: 11px;
font-weight: 800;
white-space: nowrap;
}

.active-filters button:hover {
color: var(--primary-dark);
}

.events-grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 25px;
align-items: stretch;
}

.events-grid .event-card {
min-height: 420px;
}

.events-grid .event-card-image-wrapper {
height: 250px;
}

.events-loading {
grid-column: 1 / -1;
min-height: 280px;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
gap: 15px;
color: var(--text-secondary);
font-size: 13px;
}

.categories-loading {
display: flex;
align-items: center;
justify-content: center;
gap: 12px;
min-height: 100px;
color: var(--text-secondary);
font-size: 12px;
}

.loading-spinner {
display: inline-block;
width: 30px;
height: 30px;
border: 3px solid var(--border);
border-top-color: var(--primary);
border-radius: 50%;
animation: spinnerRotate 0.8s linear infinite;
}

@keyframes spinnerRotate {
to {
transform: rotate(360deg);
}
}

.events-message-state {
grid-column: 1 / -1;
min-height: 320px;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
text-align: center;
padding: 35px;
background: var(--surface);
border: 1px dashed var(--border);
border-radius: var(--radius-lg);
}

.message-state-icon {
width: 75px;
height: 75px;
display: grid;
place-items: center;
background: var(--primary-light);
color: var(--primary);
border-radius: 22px;
margin-bottom: 20px;
font-size: 30px;
}

.events-message-state h3 {
color: var(--text);
font-family: 'Plus Jakarta Sans', sans-serif;
font-size: 20px;
margin-bottom: 9px;
}

.events-message-state p {
color: var(--text-secondary);
font-size: 13px;
line-height: 1.7;
}

.categories-error {
padding: 20px;
color: #e05b67;
font-size: 12px;
}

.events-pagination {
display: flex;
align-items: center;
justify-content: center;
flex-wrap: wrap;
gap: 8px;
margin-top: 45px;
}

.pagination-btn {
min-width: 40px;
height: 40px;
padding: 0 13px;
border: 1px solid var(--border);
background: var(--surface);
color: var(--text-secondary);
border-radius: 10px;
font-size: 12px;
font-weight: 700;
transition: var(--transition);
}

.pagination-btn:hover:not(:disabled) {
background: var(--primary-light);
border-color: var(--primary);
color: var(--primary);
}

.pagination-btn.active {
background: var(--primary);
color: #ffffff;
border-color: var(--primary);
box-shadow: 0 5px 15px rgba(104, 85, 232, 0.25);
}

.pagination-btn:disabled {
opacity: 0.4;
cursor: not-allowed;
}

.pagination-dots {
color: var(--text-muted);
padding: 0 4px;
}

.host-cta-section {
padding: 75px 0;
background: var(--bg);
}

.host-cta-card {
position: relative;
min-height: 300px;
padding: 55px 65px;
display: flex;
align-items: center;
justify-content: space-between;
overflow: hidden;
border-radius: var(--radius-xl);
background:
radial-gradient(circle at 85% 30%, rgba(176, 145, 255, 0.35), transparent 30%),
linear-gradient(120deg, #282044, #5940a0 65%, #7857d5);
box-shadow: 0 20px 50px rgba(64, 42, 133, 0.17);
}

.host-cta-content {
max-width: 600px;
position: relative;
z-index: 2;
}

.host-cta-content .section-eyebrow {
color: #d9cbff;
}

.host-cta-content h2 {
color: #ffffff;
font-family: 'Plus Jakarta Sans', sans-serif;
font-size: clamp(27px, 3vw, 40px);
line-height: 1.3;
font-weight: 800;
margin-bottom: 14px;
}

.host-cta-content p {
max-width: 480px;
color: rgba(255, 255, 255, 0.75);
font-size: 13px;
line-height: 1.8;
margin-bottom: 25px;
}

.host-cta-btn {
display: inline-flex;
align-items: center;
gap: 13px;
padding: 14px 21px;
background: #ffffff;
color: #5b46d5;
border-radius: 11px;
font-size: 12px;
font-weight: 800;
transition: var(--transition);
}

.host-cta-btn:hover {
background: #eeeaff;
color: #4936c5;
transform: translateY(-3px);
}

.host-cta-art {
width: 260px;
height: 230px;
position: relative;
display: grid;
place-items: center;
}

.host-art-circle {
width: 170px;
height: 170px;
display: grid;
place-items: center;
background: rgba(255, 255, 255, 0.13);
border: 1px solid rgba(255, 255, 255, 0.3);
border-radius: 50%;
backdrop-filter: blur(10px);
color: #ffffff;
font-size: 65px;
animation: floatCard 5s ease-in-out infinite;
}

.host-art-sparkle {
position: absolute;
top: 15px;
right: 35px;
color: #ffffff;
font-size: 30px;
}

.host-art-sparkle-two {
top: auto;
right: auto;
bottom: 15px;
left: 25px;
}

.events-footer {
padding: 38px 0 20px;
background: #111426;
color: #ffffff;
}

.footer-main {
display: flex;
align-items: center;
justify-content: space-between;
gap: 20px;
padding-bottom: 30px;
}

.footer-brand {
display: inline-flex;
align-items: center;
gap: 12px;
color: #ffffff;
font-family: 'Plus Jakarta Sans', sans-serif;
font-size: 21px;
font-weight: 800;
}

.footer-brand-mark {
width: 39px;
height: 39px;
display: grid;
place-items: center;
background: #7965ed;
border-radius: 12px;
color: #ffffff;
font-size: 18px;
}

.footer-main p {
color: #a9abc2;
font-size: 12px;
}

.footer-bottom {
display: flex;
align-items: center;
justify-content: space-between;
gap: 20px;
padding-top: 20px;
border-top: 1px solid rgba(255, 255, 255, 0.1);
color: #8589a5;
font-size: 11px;
}

@media (max-width: 1100px) {
.page-container {
width: calc(100% - 50px);
}

.hero-slide {
padding-inline: 85px;
}

.hero-content {
width: 58%;
}

.hero-content h1 {
font-size: 47px;
}

.hero-art {
width: 38%;
transform: scale(0.85);
}

.events-grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
}

.highlighted-rail .event-card {
grid-template-columns: 55% 45%;
}

.highlighted-rail .event-card-content {
padding: 20px;
}

.highlighted-rail .event-card-title {
font-size: 20px;
}
}

@media (max-width: 768px) {
.page-container {
width: calc(100% - 36px);
}

.hero-section {
height: 650px;
}

.hero-slide {
flex-direction: column;
justify-content: flex-start;
align-items: flex-start;
padding: 65px 55px 75px;
}

.hero-content {
width: 100%;
max-width: 100%;
}

.hero-content h1 {
font-size: 42px;
letter-spacing: -1.5px;
}

.hero-content p {
font-size: 13px;
}

.hero-art {
position: absolute;
width: 300px;
height: 250px;
right: 10px;
bottom: 15px;
transform: scale(0.7);
transform-origin: bottom right;
opacity: 0.9;
}

.hero-control {
width: 38px;
height: 38px;
font-size: 14px;
}

.hero-control-prev {
left: 9px;
}

.hero-control-next {
right: 9px;
}

.hero-slide-count {
right: 25px;
bottom: 25px;
}

.hero-indicators {
left: 25px;
transform: none;
bottom: 27px;
}

.discovery-sections {
padding-top: 40px;
}

.event-collection-section {
margin-bottom: 45px;
}

.collection-heading h2,
.events-section-heading h2 {
font-size: 23px;
}

.event-rail {
grid-auto-columns: minmax(260px, 75%);
}

.highlighted-rail {
grid-auto-columns: 100%;
}

.highlighted-rail .event-card {
grid-template-columns: 1fr;
height: auto;
min-height: 0;
}

.highlighted-rail .event-card-image-wrapper {
height: 260px;
min-height: 260px;
}

.highlighted-rail .event-card-content {
padding: 20px;
}

.highlighted-rail .event-card-title {
font-size: 20px;
margin-bottom: 12px;
}

.events-section {
padding: 50px 0 65px;
}

.events-section-heading {
flex-direction: column;
align-items: flex-start;
}

.events-sort-controls {
width: 100%;
}

.filter-control {
flex: 1;
min-width: 0;
}

.filter-control select {
width: 100%;
min-width: 0;
}

.events-grid {
gap: 16px;
}

.events-grid .event-card-image-wrapper {
height: 220px;
}

.events-grid .event-card-content {
padding: 15px;
}

.events-grid .event-card-title {
font-size: 15px;
}

.view-event-btn {
padding: 10px 12px;
}

.host-cta-card {
padding: 40px 30px;
}

.host-cta-art {
width: 180px;
transform: scale(0.8);
}
}

@media (max-width: 520px) {
.page-container {
width: calc(100% - 28px);
}

.hero-section {
height: 600px;
}

.hero-slide {
padding: 55px 35px 70px;
}

.hero-eyebrow {
font-size: 9px;
letter-spacing: 1.5px;
margin-bottom: 20px;
}

.hero-content h1 {
font-size: 35px;
letter-spacing: -1px;
}

.hero-content p {
font-size: 12px;
line-height: 1.8;
}

.hero-primary-btn {
padding: 13px 17px;
font-size: 11px;
}

.hero-trust {
font-size: 10px;
}

.hero-art {
right: 0;
bottom: 5px;
transform: scale(0.57);
opacity: 0.85;
}

.hero-control {
width: 32px;
height: 32px;
font-size: 12px;
}

.hero-control-prev {
left: 5px;
}

.hero-control-next {
right: 5px;
}

.collection-heading {
align-items: center;
gap: 10px;
}

.collection-heading h2,
.events-section-heading h2 {
font-size: 21px;
}

.collection-heading p {
font-size: 11px;
}

.collection-navigation {
gap: 6px;
}

.rail-control {
width: 34px;
height: 34px;
font-size: 13px;
}

.event-rail {
grid-auto-columns: 88%;
gap: 14px;
}

.highlighted-rail .event-card-image-wrapper {
height: 220px;
min-height: 220px;
}

.highlighted-rail .event-card-content {
padding: 17px;
}

.highlighted-rail .event-card-title {
font-size: 18px;
}

.events-sort-controls {
flex-direction: column;
align-items: stretch;
}

.filter-control select {
height: 43px;
}

.events-grid {
grid-template-columns: 1fr;
gap: 20px;
}

.events-grid .event-card {
min-height: 0;
}

.events-grid .event-card-image-wrapper {
height: 220px;
}

.events-grid .event-card-content {
padding: 18px;
}

.events-grid .event-card-title {
font-size: 17px;
}

.host-cta-section {
padding: 45px 0;
}

.host-cta-card {
padding: 35px 24px;
min-height: 0;
}

.host-cta-content h2 {
font-size: 27px;
}

.host-cta-art {
display: none;
}

.footer-main,
.footer-bottom {
flex-direction: column;
align-items: flex-start;
}

.footer-main p {
font-size: 11px;
}
}

@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
scroll-behavior: auto !important;
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
}
}

.event-card-image-wrapper {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--surface-secondary);
}

.event-card-image-backdrop {
  position: absolute;
  inset: -15px;
  width: calc(100% + 30px);
  height: calc(100% + 30px);
  max-width: none;
  object-fit: cover;
  object-position: center;
  filter: blur(22px) brightness(0.65) saturate(1.15);
  transform: scale(1.05);
  opacity: 0.9;
  z-index: 0;
  pointer-events: none;
}

.event-card-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  z-index: 1;
  transition: transform 0.5s ease;
}

.event-card:hover .event-card-image {
  transform: scale(1.025);
}

.event-image-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.2),
    transparent 35%,
    transparent 75%,
    rgba(0, 0, 0, 0.08)
  );
}

.event-image-category {
  z-index: 3;
}

.event-image-unavailable {
  display: grid;
  place-items: center;
  background: var(--surface-secondary);
}

.event-image-unavailable::before {
  display: none;
}

.event-image-fallback {
  color: var(--text-muted);
  font-size: 40px;
}
.events-layout {
  min-height: 100vh;
  width: 100%;
  transition: margin-left 0.3s ease, width 0.3s ease;
}

body.host-layout .events-layout {
  margin-left: 270px;
  width: calc(100% - 270px);
}

body.host-layout .hero-slide {
  padding-left: max(calc((100% - var(--container-width)) / 2 + 50px), 70px);
  padding-right: max(calc((100% - var(--container-width)) / 2 + 50px), 70px);
}
.discount-btn {
  background: #fff4e8;
  color: #bd6715;
  border: 1px solid #ffe0bd;
  gap: 7px;
}

.discount-btn:hover {
  background: #ffead5;
  color: #a95308;
  border-color: #ffc98f;
}

.event-actions {
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .event-action-btn {
    flex: 1;
  }
}
@media (max-width: 900px) {
  body.host-layout .events-layout {
    margin-left: 0;
    width: 100%;
  }

  body.host-layout .hero-slide {
    padding-left: 55px;
    padding-right: 55px;
  }
}

@media (max-width: 520px) {
  body.host-layout .hero-slide {
    padding-left: 35px;
    padding-right: 35px;
  }
}
@media (max-width: 768px) {
  .event-card-image-backdrop {
    filter: blur(18px) brightness(0.65) saturate(1.1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .event-card-image,
  .event-card {
    transition: none !important;
  }
}


/* Event cards: vertical poster layout */
.event-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  min-height: 0;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.event-card-image-wrapper,
.highlighted-rail .event-card-image-wrapper {
  position: relative;
  width: 100%;
  height: 250px;
  min-height: 250px;
  flex: 0 0 250px;
  overflow: hidden;
  isolation: isolate;
  background: #171827;
}

.event-card-image-backdrop {
  display: none;
}

.event-card-image,
.highlighted-rail .event-card-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
  transition: transform 0.55s ease;
}

.event-card:hover .event-card-image {
  transform: scale(1.045);
}

.event-image-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.22) 0%,
    transparent 42%,
    rgba(0, 0, 0, 0.04) 100%
  );
}

.event-image-category {
  position: absolute;
  z-index: 3;
  top: 13px;
  left: 13px;
  padding: 7px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  color: #6855e8;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.event-card-content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
  padding: 19px;
  background: #ffffff;
}

.event-card-title {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  min-height: 25px;
  margin: 0 0 10px;
  color: #202036;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 800;
}

.event-card-description {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  min-height: 36px;
  margin: 0 0 16px;
  color: #77788f;
  font-size: 10.5px;
  line-height: 1.7;
}

.event-card-details {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: auto 0 15px;
}

.event-detail {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 8px;
  color: #77788f;
  font-size: 11px;
}

.event-detail i {
  flex: 0 0 auto;
  color: var(--primary);
  font-size: 14px;
}

.event-detail span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.event-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.event-card-price {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.event-card-price span {
  color: var(--text-muted);
  font-size: 9px;
}

.event-card-price strong {
  color: #202036;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  font-weight: 800;
}

.view-event-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 15px;
  border-radius: 9px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
  transition: var(--transition);
}

.view-event-btn:hover {
  background: var(--primary);
  color: #fff;
}

/* Featured and popular rails use the same vertical card design */
.highlighted-rail,
.event-rail:not(.highlighted-rail) {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: 1fr;
  grid-auto-columns: minmax(280px, 1fr);
  gap: 20px;
}

.highlighted-rail .event-card {
  display: flex;
  grid-template-columns: none;
  height: 100%;
  min-height: 0;
  border-radius: 16px;
}

.highlighted-rail .event-card-content {
  padding: 19px;
}

.highlighted-rail .event-card-title {
  font-size: 16px;
  margin-bottom: 10px;
}

.highlighted-rail .event-card-description {
  display: -webkit-box;
}

.highlighted-rail .event-card-details {
  gap: 9px;
}

.highlighted-rail .event-detail {
  font-size: 11px;
}

.highlighted-rail .event-card-price strong {
  font-size: 16px;
}

.highlighted-rail .view-event-btn {
  padding: 0 15px;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.events-grid .event-card {
  min-height: 0;
}

.events-grid .event-card-image-wrapper {
  height: 250px;
  min-height: 250px;
}

@media (max-width: 1100px) {
  .events-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .highlighted-rail,
  .event-rail:not(.highlighted-rail) {
    grid-auto-columns: minmax(280px, 1fr);
  }
}

@media (max-width: 768px) {
  .event-card-image-wrapper,
  .highlighted-rail .event-card-image-wrapper,
  .events-grid .event-card-image-wrapper {
    height: 220px;
    min-height: 220px;
    flex-basis: 220px;
  }

  .highlighted-rail,
  .event-rail:not(.highlighted-rail) {
    grid-auto-columns: minmax(260px, 78%);
  }

  .highlighted-rail .event-card {
    display: flex;
    height: 100%;
  }

  .highlighted-rail .event-card-content {
    padding: 17px;
  }

  .highlighted-rail .event-card-title {
    font-size: 16px;
  }
}

@media (max-width: 520px) {
  .events-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .events-grid .event-card-image-wrapper {
    height: 230px;
    min-height: 230px;
    flex-basis: 230px;
  }

  .event-card-content,
  .highlighted-rail .event-card-content {
    padding: 17px;
  }

  .event-card-title {
    font-size: 16px;
  }

  .event-card-description {
    font-size: 11px;
  }
}
.event-banner-wrapper {
  position: relative;
  width: 100%;
  height: 250px;
  min-height: 250px;
  flex: 0 0 250px;
  overflow: hidden;
  isolation: isolate;
  background: var(--surface-secondary);
}

.event-banner-wrapper .event-card-image-backdrop {
  position: absolute;
  inset: -15px;
  width: calc(100% + 30px);
  height: calc(100% + 30px);
  max-width: none;
  object-fit: cover;
  filter: blur(20px) brightness(0.6);
  z-index: 0;
  pointer-events: none;
}

.event-banner-wrapper .event-card-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  z-index: 1;
}

.event-banner-wrapper.event-image-unavailable {
  display: grid;
  place-items: center;
}

@media (max-width: 768px) {
  .event-banner-wrapper {
    height: 220px;
    min-height: 220px;
    flex-basis: 220px;
  }
}
.events-page {
  background:
    radial-gradient(ellipse at 12% 8%, rgba(104, 85, 232, 0.07), transparent 32%),
    radial-gradient(ellipse at 88% 35%, rgba(161, 138, 255, 0.06), transparent 30%),
    linear-gradient(135deg, #f8f9ff 0%, #f1f2fa 50%, #f8f9ff 100%);
  background-attachment: fixed;
}

.discovery-sections {
  background: transparent;
}

.events-section {
  background:
    radial-gradient(ellipse at 10% 15%, rgba(104, 85, 232, 0.055), transparent 35%),
    linear-gradient(135deg, #f0f1fa 0%, #f7f8fd 55%, #f0f1fa 100%);
}

.host-cta-section {
  background: transparent;
}

.event-card {
  background: var(--surface);
  border-color: var(--border);
  box-shadow: 0 8px 28px rgba(35, 31, 85, 0.055);
}

.event-card:hover {
  box-shadow: 0 18px 40px rgba(35, 31, 85, 0.12);
}

.event-card-image-wrapper,
.event-banner-wrapper {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--surface-secondary);
}

.event-card-image-backdrop,
.event-banner-wrapper .event-card-image-backdrop {
  display: block;
  position: absolute;
  inset: -20px;
  width: calc(100% + 40px);
  height: calc(100% + 40px);
  max-width: none;
  object-fit: cover;
  object-position: center;
  filter: blur(25px) brightness(0.78) saturate(1.2);
  opacity: 0.85;
  transform: scale(1.05);
  z-index: 0;
  pointer-events: none;
}

.event-card-image,
.event-banner-wrapper .event-card-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  z-index: 1;
  transition: transform 0.55s ease;
}

.event-card:hover .event-card-image {
  transform: scale(1.025);
}

.event-image-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.18) 0%,
    transparent 35%,
    transparent 75%,
    rgba(0, 0, 0, 0.08) 100%
  );
}

.event-image-category {
  z-index: 3;
}

.event-card-content {
  background: var(--surface);
}

.event-card-title {
  color: var(--text);
}

.event-card-description,
.event-detail {
  color: var(--text-secondary);
}

.event-card-price strong {
  color: var(--text);
}

.event-card-footer {
  border-color: var(--border);
}

.rail-control,
.filter-control select,
.active-filters,
.pagination-btn,
.events-message-state {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

.rail-control:hover {
  background: var(--primary);
  color: #fff;
}

.filter-control select option {
  background: var(--surface);
  color: var(--text);
}

html[data-theme="dark"] body.events-page,
body.dark-mode.events-page,
body.dark-theme.events-page,
body[data-theme="dark"].events-page {
  background:
    radial-gradient(ellipse at 12% 8%, rgba(104, 85, 232, 0.13), transparent 32%),
    radial-gradient(ellipse at 88% 35%, rgba(83, 104, 190, 0.09), transparent 30%),
    linear-gradient(135deg, #0c1020 0%, #111629 50%, #0b1020 100%);
  background-attachment: fixed;
}

html[data-theme="dark"] .events-section,
body.dark-mode .events-section,
body.dark-theme .events-section,
body[data-theme="dark"] .events-section {
  background:
    radial-gradient(ellipse at 10% 15%, rgba(104, 85, 232, 0.12), transparent 35%),
    linear-gradient(135deg, #141a2d 0%, #101629 55%, #151a2e 100%);
}

html[data-theme="dark"] .event-card,
body.dark-mode .event-card,
body.dark-theme .event-card,
body[data-theme="dark"] .event-card {
  background: var(--surface);
  border-color: var(--border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

html[data-theme="dark"] .event-card-content,
body.dark-mode .event-card-content,
body.dark-theme .event-card-content,
body[data-theme="dark"] .event-card-content {
  background: var(--surface);
}

html[data-theme="dark"] .event-card-title,
body.dark-mode .event-card-title,
body.dark-theme .event-card-title,
body[data-theme="dark"] .event-card-title {
  color: var(--text);
}

html[data-theme="dark"] .event-card-description,
html[data-theme="dark"] .event-detail,
body.dark-mode .event-card-description,
body.dark-mode .event-detail,
body.dark-theme .event-card-description,
body.dark-theme .event-detail,
body[data-theme="dark"] .event-card-description,
body[data-theme="dark"] .event-detail {
  color: var(--text-secondary);
}

html[data-theme="dark"] .event-card-price strong,
body.dark-mode .event-card-price strong,
body.dark-theme .event-card-price strong,
body[data-theme="dark"] .event-card-price strong {
  color: var(--text);
}

html[data-theme="dark"] .event-card-footer,
body.dark-mode .event-card-footer,
body.dark-theme .event-card-footer,
body[data-theme="dark"] .event-card-footer {
  border-color: var(--border);
}

html[data-theme="dark"] .event-card-image-backdrop,
body.dark-mode .event-card-image-backdrop,
body.dark-theme .event-card-image-backdrop,
body[data-theme="dark"] .event-card-image-backdrop {
  filter: blur(25px) brightness(0.55) saturate(1.15);
  opacity: 0.9;
}

html[data-theme="dark"] .rail-control,
html[data-theme="dark"] .filter-control select,
html[data-theme="dark"] .active-filters,
html[data-theme="dark"] .pagination-btn,
body.dark-mode .rail-control,
body.dark-mode .filter-control select,
body.dark-mode .active-filters,
body.dark-mode .pagination-btn,
body.dark-theme .rail-control,
body.dark-theme .filter-control select,
body.dark-theme .active-filters,
body.dark-theme .pagination-btn,
body[data-theme="dark"] .rail-control,
body[data-theme="dark"] .filter-control select,
body[data-theme="dark"] .active-filters,
body[data-theme="dark"] .pagination-btn {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

html[data-theme="dark"] .events-message-state,
body.dark-mode .events-message-state,
body.dark-theme .events-message-state,
body[data-theme="dark"] .events-message-state {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}


@media (max-width: 768px) {
  .event-card-image-backdrop,
  .event-banner-wrapper .event-card-image-backdrop {
    filter: blur(20px) brightness(0.75) saturate(1.15);
  }
}

.event-card {
  position: relative;
}

.event-wishlist-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: #6355e7;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  transition: all 0.25s ease;
}

.event-wishlist-btn i {
  font-size: 18px;
}

.event-wishlist-btn:hover {
  transform: scale(1.1);
  background: #ffffff;
}

.event-wishlist-btn.wishlisted {
  color: #e54870;
}

.event-wishlist-btn:disabled {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}

html[data-theme="dark"] .event-wishlist-btn {
  background: rgba(30, 30, 45, 0.85);
  border-color: rgba(255, 255, 255, 0.15);
}
/* Mobile layout fixes */
@media (max-width: 768px) {

  /* Center carousel indicators */
  .hero-indicators {
    left: 50%;
    transform: translateX(-50%);
    bottom: 27px;
    justify-content: center;
  }

  /* Prevent horizontal overflow and right-side white space */
  html,
  body.events-page {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .events-layout {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-left: 0;
  }

  .hero-section,
  .hero-track,
  .hero-slide {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .hero-slide {
    box-sizing: border-box;
  }

}

/* Host mobile layout */
@media (max-width: 900px) {
  body.host-layout .events-layout {
    margin-left: 0;
    width: 100%;
    max-width: 100%;
  }
}
/* Restore original mobile carousel */
@media (max-width: 768px) {
  .hero-slide {
    min-width: 100%;
    width: 100%;
    flex: 0 0 100%;
  }

  .hero-indicators {
    left: 25px;
    transform: none;
  }
}
@media (max-width: 768px) {
  .hero-control-prev {
    left: 15px;
  }

  .hero-control-next {
    right: 15px;
  }
}