/* ============================================================
   Nexus Hero Slider – Gradient Split-Column Layout
   Reference: 45% text | 10% gap | 35% image | 10px radius
   Header is in NORMAL FLOW above the hero (not overlaid).
   ============================================================ */

/* ── Full-Width Slider Container ─────────────────────────────── */
.nx-hero-slider {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 2px auto 20px;
    overflow: hidden; /* Prevents image from bleeding outside */
    border-radius: 10px;
    font-family: var(--nexus-font-primary, 'Segoe UI', system-ui, sans-serif);
    /* Brand teal gradient — height driven by content */
    background: linear-gradient(
        135deg,
        #052e2f 0%,
        #0b4547 20%,
        #115c5e 50%,
        #1a7476 75%,
        #0d4e50 100%
    );
}

/* Subtle radial overlay for depth */
.nx-hero-slider::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.04) 0%, transparent 50%),
        radial-gradient(circle at 15% 80%, rgba(0,0,0,0.15) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* ── Slide ───────────────────────────────────────────────────── */
.nx-hero-slide {
    display: none;
    width: 100%;
    position: relative;
    z-index: 1;
}

.nx-hero-slide.active {
    display: block;
}

/* ── Inner Container: 45% text | 10% gap | 35% image ──────────
   Total = 5%(pad) + 45%(left) + 10%(gap) + 35%(right) + 5%(pad) = 100%
   ─────────────────────────────────────────────────────────────── */
.nx-hero-container {
    display: flex;
    align-items: stretch;   /* Both columns same height */
    padding: 60px 30px;    /* Tighter left/right spacing */
    gap: 40px;             /* Fixed space between content and image */
    height:550px !important; /* Fixed slide height */
    box-sizing: border-box;
}

/* ── Left Column: 45% ────────────────────────────────────────── */
.nx-hero-left {
    width: auto;
    flex: 0 1 45%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 0;
    height: 100% !important;
    min-width: 0; /* Prevent overflow on smaller widths */
}

/* ── Subtitle ────────────────────────────────────────────────── */
.nx-hero-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 3.5px;
    margin-bottom: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 7px 18px;
    border-radius: 30px;
    backdrop-filter: blur(8px);
}

/* ── Title ───────────────────────────────────────────────────── */
.nx-hero-title {
    font-size: 54px;
    line-height: 1.08;
    color: #ffffff;
    margin: 0 0 20px 0;
    font-weight: 800;
    letter-spacing: -1.5px;
}

.nx-hero-title em {
    font-style: normal;
    color: #f0d060;
}

/* ── Description ─────────────────────────────────────────────── */
.nx-hero-description {
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 32px;
    max-width: 480px;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.nx-hero-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.nx-hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 54px;
    padding: 0 30px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.25s ease;
    letter-spacing: 0.2px;
    line-height: 1;
    white-space: nowrap;
    box-sizing: border-box;
    vertical-align: top;
}

/* SVG icon inline with text */
.nx-hero-btn svg {
    flex-shrink: 0;
    display: block;
    width: 17px;
    height: 17px;
}

/* Primary: gold */
.nx-hero-btn-primary {
    background: #f0d060;
    color: #1a2e1a;
    border: 2px solid #f0d060;
    height: 54px;
}

.nx-hero-btn-primary:hover {
    background: #f5dc70;
    border-color: #f5dc70;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(240, 208, 96, 0.3);
    color: #1a2e1a;
}

/* Secondary: dark glass */
.nx-hero-btn-secondary {
    background: rgba(0, 0, 0, 0.3);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    height: 54px;
}

.nx-hero-btn-secondary:hover {
    background: rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    color: #ffffff;
}

/* ── Upcoming Event Card ─────────────────────────────────────── */
.nx-hero-event-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    padding: 18px 22px;
    width: 100%;
    max-width: 380px;
}

.nx-event-card-label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 10px;
}

.nx-event-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px 0;
    line-height: 1.35;
}

.nx-event-card-meta {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 5px;
}

.nx-event-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 12px;
    padding: 9px 20px;
    background: #f0d060;
    color: #1a2e1a;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.nx-event-card-btn:hover {
    background: #f5dc70;
    transform: translateY(-1px);
    color: #1a2e1a;
}

/* ── Right Column: 35% Image ─────────────────────────────────── */
.nx-hero-right {
    width: auto;
    flex: 0 1 35%;
    position: relative;     /* Image fills this box */
    height: 100% !important;
    overflow: hidden;       /* Clip image to column bounds */
    border-radius: 10px;
    min-height: 0; /* Prevent column from forcing layout overflow */
}

.nx-hero-right::after {
    content: '';
    position: absolute;
    inset: 0;
    /* Gradient overlay on top of the image for readability */
    background: linear-gradient(
        135deg,
        rgba(5, 46, 47, 0.75) 0%,
        rgba(5, 46, 47, 0.35) 55%,
        rgba(5, 46, 47, 0.05) 100%
    );
    z-index: 1;
    pointer-events: none;
}

.nx-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 0;
    border-radius: 10px;    /* Matching parent */
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

/* ── Navigation Dots ─────────────────────────────────────────── */
.nx-hero-dots {
    position: absolute;
    bottom: 28px;
    left: 5%;
    z-index: 10;
    display: flex;
    gap: 10px;
    align-items: center;
}

.nx-hero-dot {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
}

.nx-hero-dot.active {
    background: #f0d060;
    width: 28px;
    border-radius: 10px;
    border-color: transparent;
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 1200px) {
    .nx-hero-title  { font-size: 44px; }
    .nx-hero-left   { width: 48%; }
    .nx-hero-right  { width: 42%; }
    .nx-hero-container { gap: 7%; }
}

@media (max-width: 960px) {
    .nx-hero-slider { margin: 0 auto 10px; }
    .nx-hero-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 34px 5% 40px 5% !important;
        gap: 18px;
        height: auto !important; /* Let content drive height on mobile */
    }
    /* Image first, then content */
    .nx-hero-right  { width: 100%; height: 340px !important; order: 1; }
    .nx-hero-img {
        background-size: cover;
        background-position: center center;
    }
    .nx-hero-left   { width: 100%; order: 2; height: auto !important; align-items: center; }
    .nx-hero-title  { font-size: 38px; letter-spacing: -1px; }
    .nx-hero-description {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    .nx-hero-actions {
        justify-content: center;
        margin-bottom: 28px;
    }
}

@media (max-width: 600px) {
    .nx-hero-title       { font-size: 30px; }
    .nx-hero-description { font-size: 15px; }
    .nx-hero-container   { padding: 34px 5% 40px 5% !important; }
    .nx-hero-btn         { height: 48px; padding: 0 22px; font-size: 14px; }
    .nx-hero-event-card  { max-width: 100%; }
    .nx-hero-right  { height: 300px !important; }
    .nx-hero-actions { margin-bottom: 22px; }
}