/* Home Page Specific Styles */
html,
body {
    overflow-x: hidden;
    max-width: 100%;
}

.bg-blue-lights {
    left: 0;
    right: 0;
    width: 100%;
    max-width: none;
    transform: translateY(-50%);
}

.decoration-blueball-1 {
    left: calc(50% - 510px);
    top: 3030px;
    width: 1201px;
    height: 792px;
    background-image: radial-gradient(circle closest-side at center, rgba(60, 150, 255, 0.52) 0%, rgba(60, 150, 255, 0.28) 18%, rgba(60, 150, 255, 0.12) 42%, rgba(60, 150, 255, 0.06) 60%, rgba(60, 150, 255, 0.02) 82%, transparent 100%);
}

.decoration-blueball-2 {
    left: calc(50% - 640px);
    top: 3892px;
    width: 1201px;
    height: 792px;
    background-image: radial-gradient(circle closest-side at center, rgba(60, 150, 255, 0.52) 0%, rgba(60, 150, 255, 0.28) 18%, rgba(60, 150, 255, 0.12) 42%, rgba(60, 150, 255, 0.06) 60%, rgba(60, 150, 255, 0.02) 82%, transparent 100%);
}

.decoration-blueball-3 {
    left: calc(50% - 1000px);
    top: 701px;
    width: 1530px;
    height: 947px;
    background-image: radial-gradient(circle closest-side at center, rgba(60, 150, 255, 0.52) 0%, rgba(60, 150, 255, 0.28) 18%, rgba(60, 150, 255, 0.12) 42%, rgba(60, 150, 255, 0.06) 60%, rgba(60, 150, 255, 0.02) 82%, transparent 100%);
}

.decoration-pinkcloud {
    left: calc(50% - 800px);
    top: -120px;
    width: 1357px;
    height: 777px;
    background-image: url('../images/decorations/decoration-pinkcloud.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    transform: scaleY(-1);
    opacity: 0.15; /* Initial state; JS animates to 0.75 as user scrolls */
    transition: opacity 0.2s ease-out; /* Smooth opacity changes to prevent blinking on scroll */
}

/* Locations heading arrows: shared rules in style.css (.locations-title-row) */

.decoration-spotlight {
    left: calc(50% + 0.5px);
    top: 33px;
    width: 1289px;
    height: 744px;
    background-image: url('../images/decorations/decoration-spotlight.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    transform: translateX(-50%);
}

@keyframes faq-spotlight-blink {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.5); }
}

.decoration-spotlight.faq-spotlight-blink {
    animation: faq-spotlight-blink 0.4s ease-out;
}


/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    height: 740px;
    overflow: hidden;
    margin-top: 0;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 960px;
    transform: translateY(calc(50% - 200px)) translateY(-50%);
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 744px;
    background: linear-gradient(to bottom, rgba(5, 18, 43, 0) 38.777%, #05122b 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 48px;
    row-gap: 23px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 500px 100px 0;
}

.hero-heading {
    font-family: 'Urbanist', sans-serif;
    font-weight: 700;
    font-size: 96px;
    line-height: 96px;
    color: var(--text-primary);
    margin: 0;
    max-width: 900px;
    grid-column: 1;
    grid-row: 1 / -1;
    align-self: center;
    justify-self: start;
}

.hero-description {
    grid-column: 2;
    grid-row: 1;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 24px;
    line-height: 32px;
    color: var(--text-primary);
    margin: 0;
}

.hero-buttons {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    gap: 24px;
    align-items: center;
    margin: 0;
}


/* Event Cards */
#events,
#events {
    overflow-x: hidden;
}

/* Nearest events → What makes ZoukKTH special: tighter vertical rhythm */
.section.home-section-nearest-events {
    padding-bottom: 28px;
}

.section.home-section-after-events {
    padding-top: 20px;
}

/* Home #events only: less air under the cards / carousel before the next section */
#events .events-grid-wrapper {
    margin-bottom: 36px;
    padding-bottom: 20px;
}

.events-grid-wrapper {
    --events-edge-fade: 140px;
    overflow-x: hidden;
    overflow-y: visible;
    width: calc(100% + 600px);
    max-width: none;
    position: relative;
    left: 0;
    right: auto;
    margin-left: -300px;
    margin-right: -300px;
    margin-bottom: 60px;
    padding: 32px 0 40px;
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0,
        #000 var(--events-edge-fade),
        #000 calc(100% - var(--events-edge-fade)),
        transparent 100%
    );
    mask-image: linear-gradient(
        to right,
        transparent 0,
        #000 var(--events-edge-fade),
        #000 calc(100% - var(--events-edge-fade)),
        transparent 100%
    );
    /* Hide scrollbar */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.events-grid-wrapper::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.events-grid {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    position: relative;
    width: fit-content;
    transition: transform 0.3s ease;
    will-change: transform;
}

.events-grid-wrapper.events-grid-centered {
    display: flex;
    justify-content: center;
    left: 0;
    right: 0;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
}

.events-grid.events-grid-centered {
    margin: 0 auto;
    transform: none !important;
}

.event-card {
    border: 1px solid var(--alfa-grey-1);
    border-radius: 16px;
    overflow: hidden;
    width: 564px;
    min-width: 564px;
    height: 382px;
    display: flex;
    background: radial-gradient(70% 70% at 50% 50%, #2a364b 0%, #121e36 100%);
}

.event-card-link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.event-image {
    width: 298px;
    height: 100%;
    overflow: hidden;
    flex-shrink: 0;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-content {
    flex: 1;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.event-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.event-badge {
    display: inline-block;
    padding: 2px 8px;
    border: 1px solid var(--neon-500);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 12px;
    line-height: 16px;
    color: var(--neon-500);
    width: fit-content;
}

.event-badge-drop-in {
    border-color: var(--badge-drop-in);
    color: var(--badge-drop-in);
}

.event-title {
    font-family: 'Urbanist', sans-serif;
    font-weight: 700;
    font-size: 32px;
    line-height: 40px;
    color: var(--text-primary);
    margin: 0;
}

.event-description {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: var(--text-secondary);
    flex: 1;
}

.event-date {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    color: var(--text-primary);
}

.event-date .icon-calendar {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    object-fit: contain;
}

.event-arrow {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-arrow .icon-angle-right {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.carousel-controls {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
}

.carousel-btn {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    border: none;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
}

.carousel-btn .icon-btn-icon {
    width: 24px;
    height: 24px;
}

.carousel-btn .icon-angle-left,
.carousel-btn .icon-angle-right {
    width: 24px;
    height: 24px;
    object-fit: contain;
    transition: transform 0.3s, opacity 0.3s;
}

.carousel-btn:disabled {
    opacity: 0.4;
}

.carousel-btn:disabled .icon-angle-left,
.carousel-btn:disabled .icon-angle-right {
    opacity: 0.6;
}

.carousel-btn:not(:disabled):hover .icon-angle-left,
.carousel-btn:not(:disabled):hover .icon-angle-right,
.carousel-btn:not(:disabled):active .icon-angle-left,
.carousel-btn:not(:disabled):active .icon-angle-right {
    transform: scale(1.25);
}


.carousel-page {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 24px;
    line-height: 32px;
    color: var(--text-primary);
}

/* Features Section */
.features-section {
    background-color: transparent;
    padding-top: 72px;
}

.features-header {
    display: flex;
    gap: 122px;
    margin-bottom: 120px;
    position: relative;
    z-index: 2;
}

.features-title-container {
    flex: 1.2;
}

.features-title {
    font-family: 'Urbanist', sans-serif;
    font-weight: 700;
    font-size: 48px;
    line-height: 56px;
    color: var(--text-primary);
    margin: 0;
}

.features-description-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.features-description {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 24px;
    line-height: 32px;
    color: var(--text-secondary);
}

.features-show-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px 16px 28px;
    border-radius: 8px;
    font-family: 'Urbanist', sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 32px;
    color: var(--text-primary);
    text-decoration: none;
    width: fit-content;
    transition: color 0.3s, text-shadow 0.3s;
}

.features-show-btn .icon-angle-right {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.features-show-btn:hover,
.features-show-btn:active {
    color: var(--white-100);
    text-shadow: 0 0 10px rgba(60, 150, 255, 0.85), 0 0 22px rgba(60, 150, 255, 0.6), 0 0 36px rgba(60, 150, 255, 0.4);
}

.features-grid {
    display: flex;
    gap: 32px;
}

.feature-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 32px 20px 40px;
    border-radius: 30px;
}

.feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 9px;
    margin: 0 auto;
    transform: translateY(-48px);
}

.feature-icon img, .feature-icon svg {
    width: 155px;
    height: 155px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 0 24px rgba(255, 255, 255, 0.9)) drop-shadow(0 0 44px rgba(255, 255, 255, 0.6));
}

.feature-title {
    font-family: 'Urbanist', sans-serif;
    font-weight: 700;
    font-size: 32px;
    line-height: 40px;
    color: var(--text-primary);
    text-align: center;
    margin: 0;
    width: 100%;
}

.feature-description {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: var(--text-secondary);
    text-align: center;
    width: 100%;
}

/* Why Choose Us Section */
.why-section {
    display: flex;
    gap: 20px;
    align-items: center;
}

.why-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.why-title {
    font-family: 'Urbanist', sans-serif;
    font-weight: 700;
    font-size: 56px;
    line-height: 64px;
    color: var(--text-primary);
    margin: 0;
}

.why-list {
    display: flex;
    flex-direction: column;
}

.why-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-top: 2px solid var(--alfa-grey-2);
}

.why-number {
    font-family: 'Urbanist', sans-serif;
    font-weight: 700;
    font-size: 30px;
    line-height: 36px;
    color: var(--text-primary);
}

.why-text {
    font-family: 'Urbanist', sans-serif;
    font-weight: 500;
    font-size: 24px;
    line-height: 32px;
    color: var(--text-primary);
}

.why-image {
    flex: 1;
    height: 380px;
    border-radius: 16px;
    overflow: hidden;
}

.why-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Instructors Section */
.instructors-grid {
    display: flex;
    gap: 40px;
}

.instructor-card {
    flex: 1;
    border: 2px solid var(--alfa-grey-2);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    user-select: none;
    -webkit-user-select: none;
}

.instructor-card * {
    user-select: none;
    -webkit-user-select: none;
}

.instructor-image {
    width: 292px;
    height: 379px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

.instructor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.instructor-image.hover-video-container video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(0.25, 0.1, 0.25, 1);
    pointer-events: none;
    z-index: 2;
}

.instructor-image.hover-video-container {
    background: transparent;
}

.instructor-image.hover-video-container img {
    transition: opacity 1.2s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.instructor-content {
    flex: 1;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.instructor-name {
    font-family: 'Urbanist', sans-serif;
    font-weight: 700;
    font-size: 32px;
    line-height: 40px;
    color: var(--text-primary);
    margin: 0;
}

.instructor-bio {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: var(--text-primary);
}

/* Locations Section */
.locations-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.location-row {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

/* Map column matches stacked location cards height (desktop row layout). */
.location-row-shared-map {
    align-items: stretch;
    gap: 48px;
}

.location-row-shared-map .location-row-map {
    align-self: stretch;
    height: auto;
    min-height: 280px;
}

.location-items-stack {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.location-items-stack .location-item {
    flex: 0 1 auto;
}

.location-row-map {
    flex: 1;
    height: 352px;
    min-width: 0;
    border-radius: 16px;
    overflow: hidden;
    background-color: transparent;
}

.location-row-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.location-item {
    flex: 1;
    min-width: 0;
    padding: 0;
    border-top: 2px solid var(--text-disabled);
    padding-top: 24px;
}

.location-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
    -webkit-user-select: none;
}

.location-title {
    font-family: 'Urbanist', sans-serif;
    font-weight: 700;
    font-size: 32px;
    line-height: 40px;
    color: var(--text-primary);
    user-select: none;
    -webkit-user-select: none;
}

.location-toggle {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    border: none;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.location-details {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-top: 16px;
    padding-bottom: 12px;
}

.location-detail {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    position: relative;
}

.location-detail:has(.location-copy-location) {
    align-items: flex-start;
}

/* Text + copy share one flex group so the icon stays left and copy sits next to the address */
.location-detail-main {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px;
    flex: 1 1 auto;
    min-width: 0;
}

.location-detail-main .location-detail-text {
    flex: 0 1 auto;
    min-width: 0;
}

.location-copy-location {
    flex-shrink: 0;
    margin-left: 0;
}

.location-detail-place {
    margin-left: 32px;
    margin-top: -12px;
}

.location-detail-place .location-detail-text {
    padding-left: 0;
}

.location-detail-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    position: relative;
}

.location-detail-text {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: var(--text-primary);
    flex: 0 1 auto;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.location-item.collapsed .location-details {
    display: none;
}

/* FAQ Section */
.faq-content {
    display: flex;
    gap: 16px;
    padding: 0 98px;
}

.faq-list {
    flex: 1;
}

.faq-item {
    border-top: 2px solid var(--text-disabled);
    padding: 8px 0;
}

.faq-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    gap: 12px;
    -webkit-tap-highlight-color: transparent;
}

.faq-question {
    font-family: 'Urbanist', sans-serif;
    font-weight: 500;
    font-size: 24px;
    line-height: 32px;
    color: var(--text-primary);
    flex: 1;
    user-select: none;
    -webkit-user-select: none;
    cursor: pointer;
    transition: color 0.3s, text-shadow 0.3s;
}

.faq-toggle {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    border: none;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}

.faq-toggle i {
    font-size: 24px;
    color: var(--text-secondary);
    display: inline-block;
    visibility: visible;
    opacity: 1;
    transition: color 0.3s, text-shadow 0.3s;
}

.faq-header:hover .faq-question,
.faq-header:hover .faq-toggle i {
    color: var(--white-100);
    text-shadow: 0 0 10px rgba(60, 150, 255, 0.85), 0 0 22px rgba(60, 150, 255, 0.6), 0 0 36px rgba(60, 150, 255, 0.4);
}

.faq-answer {
    padding-top: 0;
    padding-bottom: 32px;
}

.faq-answer-text {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: var(--text-secondary);
}

.faq-item.collapsed .faq-answer {
    display: none;
}

/* Responsive */
@media (max-width: 1440px) {
    .hero-content {
        padding: 40px 80px 0;
    }
}

@media (max-width: 1024px) {
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 40px 40px 0;
        text-align: center;
        row-gap: 0;
        column-gap: 0;
        gap: 23px;
    }

    .hero-heading {
        order: 1;
        font-size: 64px;
        line-height: 64px;
        grid-column: auto;
        grid-row: auto;
        max-width: 100%;
    }

    .hero-description {
        order: 2;
        grid-column: auto;
        grid-row: auto;
        max-width: 100%;
    }

    .hero-buttons {
        order: 3;
        grid-column: auto;
        grid-row: auto;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .events-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .event-card {
        width: 100%;
        max-width: 564px;
        min-width: 0;
        flex-direction: column;
        height: auto;
        min-height: 0;
    }

    .event-image {
        width: 100%;
        height: 220px;
    }

    .events-grid-wrapper {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        --events-edge-fade: 48px;
    }
    
    .features-header {
        flex-direction: column;
        gap: 32px;
    }
    
    .features-grid {
        flex-direction: column;
    }
    
    .why-section {
        flex-direction: column;
    }
    
    .instructors-grid {
        flex-direction: column;
    }

    .instructor-card {
        flex-direction: column;
    }

    .instructor-image {
        width: 100%;
        max-height: none;
        aspect-ratio: unset;
        height: 240px;
    }

    .instructor-content {
        padding: 24px 20px;
    }
    
    .locations-content {
        flex-direction: column;
    }
    
    .location-row {
        flex-direction: column;
    }

    /* Home: indent list copy only so border-top on items spans full row (map width) */
    .location-row-shared-map .location-items-stack {
        padding-left: 0;
        box-sizing: border-box;
    }

    .location-row-shared-map .location-items-stack .location-item {
        padding-left: 24px;
        box-sizing: border-box;
    }
    
    .location-row-map {
        height: 320px;
    }

    .location-row-shared-map .location-row-map {
        height: 320px;
    }
}