/*---------------------------------------
  PALAVER CONNEKT - CINEMATIC PLAYER FLOW
-----------------------------------------*/

.connekt-section {
    padding: 60px 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

/* The Media Card Container - The "Glass Canvas" */
.connekt-card {
    position: relative;
    padding: 24px;
    margin-bottom: 60px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border-radius: 30px;
    border: 1px solid rgba(184, 155, 94, 0.15);
    perspective: 2000px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1),
        background 0.5s cubic-bezier(0.165, 0.84, 0.44, 1),
        box-shadow 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);

    /* Layer Stabilization */
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform-style: preserve-3d;
    will-change: transform, background, box-shadow;
}

.connekt-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

/* Video Layer - Sitting on the Canvas */
.connekt-video-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    /* 16:9 Aspect Ratio */
    background: #000;
    border-radius: 18px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
    /* Grounded shadow */
    overflow: hidden;
    z-index: 10;
    transform: rotateX(1.5deg) translateY(0);
    /* Very subtle 3D tilt */
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1),
        box-shadow 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);

    /* Layer Stabilization */
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    will-change: transform, box-shadow;
}

.connekt-card:hover .connekt-video-container {
    transform: rotateX(0deg) translateY(-2px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.8);
}

.connekt-video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.4s ease;
}

.connekt-card:hover .connekt-video-container video {
    filter: brightness(1.1);
}

/* Control Bar - Part of the Canvas */
.connekt-control-bar {
    position: relative;
    width: 100%;
    margin-top: 24px;
    padding: 0 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    box-shadow: none;
    z-index: 5;
}

/* Typography */
.connekt-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
}

/* Action Button */
.connekt-action-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 24px;
    background: rgba(184, 155, 94, 0.1);
    border: 1px solid rgba(184, 155, 94, 0.5);
    color: var(--gold-muted);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.connekt-action-btn:hover {
    background: var(--gold-muted);
    color: #000;
    box-shadow: 0 0 20px rgba(184, 155, 94, 0.4);
}

.connekt-action-btn i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.connekt-action-btn:hover i {
    transform: translateX(3px);
}

/*---------------------------------------
  UPCOMING EVENTS - CINEMATIC GRID
-----------------------------------------*/

#upcomingEventsContainer {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Fixed 3 Columns: Wider ("Thicker") cards */
    gap: 30px;
    /* Reduced gap slightly */
    margin-top: 40px;
}

/* Removed 4-column rule to keep cards wider */

/* Detailed Event Card */
.event-cinematic-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: #070711;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(184, 155, 94, 0.15);
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    height: 100%;

    /* Stabilization */
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    will-change: transform, border-color, box-shadow;
}

.event-cinematic-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    border-color: var(--gold-muted);
}

/* Background Image - Taller for Posters */
.event-bg-image {
    position: relative;
    width: 100%;
    height: 450px;
    /* Increased height to 450px for poster ratio */
    object-fit: cover;
    object-position: top;
    /* Ensure top of poster is always visible */
    transition: transform 0.6s ease;
    z-index: 1;
}

.event-cinematic-card:hover .event-bg-image {
    transform: scale(1.05);
}

/* Overlay Gradient - Creates the Smooth Blend */
.event-card-overlay {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 451px;
    /* Match updated image height */
    background: linear-gradient(to bottom,
            transparent 60%,
            #070711 100%);
    z-index: 2;
    pointer-events: none;
}

/* Date Badge - Overlays image */
.event-date-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(11, 13, 26, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(184, 155, 94, 0.3);
    border-radius: 12px;
    padding: 10px 15px;
    text-align: center;
    z-index: 3;
    min-width: 70px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.event-date-day {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.event-date-month {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gold-muted);
    text-transform: uppercase;
    margin-top: 2px;
}

/* Content - Bottom Section */
.event-card-content {
    position: relative;
    z-index: 3;
    padding: 25px;
    background: #070711;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    border-top: none;
    margin-top: -1px;
}

.event-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.event-card-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.event-card-meta i {
    color: var(--gold-muted);
    margin-right: 5px;
}

/* Pricing Grid */
.event-price-grid {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    background: rgba(255, 255, 255, 0.03);
    padding: 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.event-price-item {
    flex: 1;
}

.event-price-label {
    display: flex;
    align-items: center;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.event-price-label i {
    color: var(--gold-muted);
    font-size: 0.85rem;
}

.event-price-value {
    font-size: 0.95rem;
    color: #fff;
    font-weight: 600;
}

/* Actions */
.event-card-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.event-rsvp-btn {
    flex: 1;
    background: var(--gold-muted);
    color: #000;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.event-rsvp-btn:hover {
    background: #fff;
    transform: translateY(-2px);
}

.event-share-btn {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: #fff;
    transition: all 0.3s ease;
}

.event-share-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

/* Responsive */
@media (max-width: 991px) {

    .connekt-section,
    #upcomingEventsContainer {
        grid-template-columns: 1fr;
        padding: 40px 0;
    }

    .connekt-card {
        margin-bottom: 30px;
        border-radius: 16px;
    }

    .event-cinematic-card {
        height: auto;
        min-height: auto;
    }

    .event-bg-image {
        height: 350px;
        /* Slightly shorter on mobile but still tall */
    }

    .event-card-overlay {
        height: 351px;
    }

    .connekt-control-bar {
        padding: 15px 20px;
        flex-direction: row;
        align-items: center;
    }

    .connekt-title {
        font-size: 1.2rem;
    }

    .connekt-action-btn {
        padding: 8px 16px;
        font-size: 0.75rem;
    }
}