
/* ============================================================
   KKU HERO IMMERSIVE SLIDER  —  Standard & Professional
   ============================================================ */

/* ── Wrapper ─────────────────────────────────────────────── */
.hero-immersive-wrap {
    position: relative;
    width: 100%;
    height: 600px;
    min-height: 500px;
    overflow: hidden;
    background: #001a3d;          /* fallback while images load */
    display: flex;
    align-items: center;
}

/* ── Background image layers (cross-fade pool) ─────────────── */
.hero-bg-vault {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.bg-layer {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    /* Smooth cross-fade transition */
    transition: opacity 1.4s cubic-bezier(0.4, 0, 0.2, 1),
                transform 10s linear;
    transform: scale(1.06);   /* start slightly zoomed for Ken Burns */
    will-change: opacity, transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.bg-layer.active {
    opacity: 1;
    transform: scale(1.0);   /* zoom out slowly — Ken Burns effect */
    z-index: 2;
}

/* ── Dark gradient overlay for text legibility ──────────────── */
.hero-color-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    background:
        linear-gradient(
            to right,
            rgba(0, 15, 60, 0.72) 0%,
            rgba(0, 15, 60, 0.40) 60%,
            rgba(0, 15, 60, 0.15) 100%
        ),
        linear-gradient(
            to top,
            rgba(0, 0, 0, 0.55) 0%,
            transparent 50%
        );
    pointer-events: none;
}

/* ── Content sits above overlay ─────────────────────────────── */
/* Desktop: 100px clears the arrow (left:28px + width:52px + 20px gap)  */
.hero-immersive-wrap .container {
    position: relative;
    z-index: 10;
    padding-left:  100px !important;
    padding-right: 100px !important;
}

/* Make the Bootstrap grid chain stretch to hero height so the         */
/* inner flex centering (justify-content-center) actually works         */
.hero-immersive-wrap .container,
.hero-immersive-wrap .container > .row {
    height: 100%;
}

.hero-immersive-wrap .container > .row > [class*="col"] {
    display: flex;
    align-items: center;   /* vertically center the content block */
}

/* ── Text block ─────────────────────────────────────────────── */
.hero-content-main {
    padding: 2rem 0;
    width: 100%;
}

/* eyebrow tag pill */
.hero-tag-minimal {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.92);
    font-family: 'Inter', sans-serif;
    font-size: 0.70rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 1.1rem;
    padding: 6px 18px;
    border: 1px solid rgba(255, 255, 255, 0.30);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.hero-tag-minimal::before {
    content: '';
    width: 20px;
    height: 2px;
    background: linear-gradient(90deg, var(--gold, #e8a020), #fff);
    border-radius: 2px;
    flex-shrink: 0;
}

/* main headline */
.hero-main-title {
    font-size: clamp(2.0rem, 4.5vw, 3.6rem);
    font-weight: 800;
    font-family: 'Playfair Display', serif;
    color: #ffffff;
    line-height: 1.18;
    margin-bottom: 1.2rem;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.55);
    letter-spacing: 0.5px;
}

/* sub-description */
.hero-desc-rgb {
    color: rgba(255, 255, 255, 0.88);
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.95rem, 1.8vw, 1.15rem);
    font-weight: 400;
    line-height: 1.75;
    max-width: 600px;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
    margin-bottom: 2rem;
    display: block;
}

/* ── CTA buttons ─────────────────────────────────────────────── */
.btn-group-rgb {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-kku-rgb {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 30px;
    background: var(--primary, #003d99);
    color: #ffffff !important;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.88rem;
    letter-spacing: 0.5px;
    text-decoration: none;
    border-radius: 50px;
    border: 2px solid var(--primary, #003d99);
    transition: all 0.35s cubic-bezier(0.2, 1, 0.2, 1);
    box-shadow: 0 8px 28px rgba(0, 61, 153, 0.45);
    overflow: hidden;
    white-space: nowrap;
}

.btn-kku-rgb::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.18), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-kku-rgb:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(0, 61, 153, 0.55);
    background: #1a5cce;
    border-color: #1a5cce;
}

.btn-kku-rgb:hover::before { opacity: 1; }

.btn-kku-rgb i {
    font-size: 0.82rem;
    transition: transform 0.3s;
}
.btn-kku-rgb:hover i { transform: translateX(4px); }

.btn-kku-outline-rgb {
    display: inline-flex;
    align-items: center;
    padding: 13px 28px;
    background: rgba(255, 255, 255, 0.10);
    color: #ffffff !important;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    border-radius: 50px;
    border: 2px solid rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.35s cubic-bezier(0.2, 1, 0.2, 1);
    margin-left: 0;
    white-space: nowrap;
}

.btn-kku-outline-rgb:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* ── Navigation arrows ──────────────────────────────────────── */
.hero-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid rgba(255, 255, 255, 0.30);
    color: #ffffff;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.30s cubic-bezier(0.2, 1, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    outline: none;
    padding: 0;
}

.hero-nav-arrow:hover {
    background: rgba(255, 255, 255, 0.28);
    border-color: rgba(255, 255, 255, 0.70);
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.hero-nav-arrow:active {
    transform: translateY(-50%) scale(0.96);
}

.hero-nav-arrow i {
    font-size: 1rem;
    transition: transform 0.25s;
    line-height: 1;
}

.hero-nav-prev { left: 28px; }
.hero-nav-next { right: 28px; }

.hero-nav-prev:hover i { transform: translateX(-2px); }
.hero-nav-next:hover i { transform: translateX(2px); }

/* ── Slide dot indicators ───────────────────────────────────── */
.hero-slide-dots {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.30);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.40);
    border: none;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.2, 1, 0.2, 1);
    padding: 0;
    outline: none;
    flex-shrink: 0;
}

.hero-dot.active {
    width: 28px;
    border-radius: 4px;
    background: #ffffff;
}

.hero-dot:hover:not(.active) {
    background: rgba(255, 255, 255, 0.70);
    transform: scale(1.2);
}

/* ── Progress bar ─────────────────────────────────────────── */
.hero-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold, #e8a020), var(--primary, #003d99));
    z-index: 20;
    width: 0%;
    transition: width 0s linear;
}

.hero-progress-bar.running {
    transition: width 8s linear;
    width: 100%;
}

/* ── Glow elements (hidden) ─────────────────────────────────── */
.hero-rgb-glows { display: none; }
.glow-orb       { display: none; }

/* ── Content reveal ─────────────────────────────────────────── */
.reveal-entry {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.2, 1, 0.2, 1),
                transform 0.8s cubic-bezier(0.2, 1, 0.2, 1);
}
.reveal-entry.visible { opacity: 1; transform: translateY(0); }

.delay-100 { transition-delay: 0.10s; }
.delay-200 { transition-delay: 0.20s; }
.delay-300 { transition-delay: 0.30s; }
.delay-400 { transition-delay: 0.40s; }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — progressive scale-down + arrow clearance
   Every breakpoint reduces: height · text · padding · arrows
   The container gets horizontal padding to clear the < > buttons
   ═══════════════════════════════════════════════════════════════ */

/* ── Large desktop (≥ 1400px) ──────────────────────────────── */
@media (min-width: 1400px) {
    .hero-immersive-wrap { height: 700px; }
}

/* ── Small desktop (≤ 1199px) ──────────────────────────────── */
@media (max-width: 1199px) {
    .hero-immersive-wrap        { height: 540px; }
    .hero-content-main          { padding: 1.5rem 0; }
    .hero-main-title            { font-size: clamp(1.7rem, 3.8vw, 3rem); }
    .hero-desc-rgb              { font-size: clamp(0.88rem, 1.6vw, 1.05rem);
                                  margin-bottom: 1.6rem; }
    .hero-tag-minimal           { font-size: 0.65rem; letter-spacing: 2.5px;
                                  padding: 5px 15px; margin-bottom: 0.9rem; }
    .btn-kku-rgb,
    .btn-kku-outline-rgb        { padding: 11px 26px; font-size: 0.84rem; }
    .hero-nav-arrow             { width: 46px; height: 46px; font-size: 1rem; }
    .hero-nav-prev              { left: 20px; }
    .hero-nav-next              { right: 20px; }
}

/* ── Tablet landscape (≤ 991px) ────────────────────────────── */
@media (max-width: 991px) {
    .hero-immersive-wrap        { height: 480px; }
    .hero-content-main          { padding: 1.2rem 0; }
    .hero-main-title            { font-size: clamp(1.5rem, 3.5vw, 2.4rem);
                                  margin-bottom: 0.9rem; }
    .hero-desc-rgb              { font-size: clamp(0.82rem, 1.5vw, 0.98rem);
                                  line-height: 1.65; margin-bottom: 1.3rem;
                                  max-width: 480px; }
    .hero-tag-minimal           { font-size: 0.60rem; letter-spacing: 2px;
                                  padding: 5px 13px; margin-bottom: 0.75rem; gap: 8px; }
    .hero-tag-minimal::before   { width: 16px; }
    .btn-group-rgb              { gap: 0.75rem; }
    .btn-kku-rgb,
    .btn-kku-outline-rgb        { padding: 10px 22px; font-size: 0.80rem; }
    .btn-kku-rgb i              { font-size: 0.75rem; }
    .hero-nav-arrow             { width: 42px; height: 46px; font-size: 0.95rem; }
    .hero-nav-prev              { left: 16px; }
    .hero-nav-next              { right: 16px; }
    .hero-slide-dots            { bottom: 22px; gap: 9px; padding: 7px 14px; }
}

/* ── Tablet portrait (≤ 768px) — ARROW CLEARANCE FIX ───────── */
/* The container gets left/right padding equal to arrow width    */
/* so text and buttons never overlap with < >                    */
@media (max-width: 768px) {
    .hero-immersive-wrap        { height: 430px; min-height: 380px;
                                  align-items: flex-end; padding-bottom: 72px; }

    /* Push content inward past the arrow buttons (38px wide + 8px gap) */
    .hero-immersive-wrap .container {
        padding-left:  56px !important;
        padding-right: 56px !important;
    }

    .hero-content-main          { padding: 0.8rem 0; }

    .hero-main-title            { font-size: clamp(1.1rem, 4.5vw, 1.75rem);
                                  line-height: 1.22; margin-bottom: 0.65rem; }

    .hero-desc-rgb              { font-size: 0.76rem; line-height: 1.55;
                                  margin-bottom: 0.9rem; max-width: 100%; }

    .hero-tag-minimal           { font-size: 0.50rem; letter-spacing: 1.4px;
                                  padding: 4px 10px; margin-bottom: 0.55rem;
                                  gap: 6px; }
    .hero-tag-minimal::before   { width: 12px; }

    /* Buttons: stay in a row, shrink to fit — NO full-width stretch */
    .btn-group-rgb              { flex-direction: row; flex-wrap: wrap;
                                  align-items: center; gap: 0.45rem; }
    .btn-kku-rgb                { padding: 7px 14px; font-size: 0.70rem;
                                  gap: 7px; }
    .btn-kku-rgb i              { font-size: 0.64rem; }
    .btn-kku-outline-rgb        { padding: 7px 12px; font-size: 0.70rem; }

    .hero-nav-arrow             { width: 34px; height: 34px; font-size: 0.80rem; }
    .hero-nav-prev              { left: 8px; }
    .hero-nav-next              { right: 8px; }

    .hero-slide-dots            { bottom: 14px; gap: 7px; padding: 5px 11px; }
    .hero-dot                   { width: 7px; height: 7px; }
    .hero-dot.active            { width: 20px; }
}

/* ── Mobile (≤ 480px) ──────────────────────────────────────── */
@media (max-width: 480px) {
    .hero-immersive-wrap        { height: 395px; min-height: 345px;
                                  padding-bottom: 66px; }

    /* Arrow is 30px wide + 6px from edge = 36px, give 48px total */
    .hero-immersive-wrap .container {
        padding-left:  48px !important;
        padding-right: 48px !important;
    }

    .hero-main-title            { font-size: clamp(1.0rem, 5vw, 1.5rem);
                                  margin-bottom: 0.55rem; }
    .hero-desc-rgb              { font-size: 0.72rem; line-height: 1.50;
                                  margin-bottom: 0.8rem; }
    .hero-tag-minimal           { font-size: 0.46rem; letter-spacing: 1.2px;
                                  padding: 3px 9px; margin-bottom: 0.45rem; gap: 5px; }
    .hero-tag-minimal::before   { width: 10px; }

    .btn-group-rgb              { flex-direction: row; flex-wrap: wrap; gap: 0.4rem; }
    .btn-kku-rgb                { padding: 6px 12px; font-size: 0.66rem; gap: 6px; }
    .btn-kku-rgb i              { font-size: 0.60rem; }
    .btn-kku-outline-rgb        { padding: 6px 10px; font-size: 0.66rem; }

    .hero-nav-arrow             { width: 30px; height: 30px; font-size: 0.75rem; }
    .hero-nav-prev              { left: 6px; }
    .hero-nav-next              { right: 6px; }

    .hero-slide-dots            { bottom: 12px; gap: 6px; padding: 5px 9px; }
    .hero-dot                   { width: 6px; height: 6px; }
    .hero-dot.active            { width: 17px; }
}

/* ── Very small phones (≤ 360px) ───────────────────────────── */
@media (max-width: 360px) {
    .hero-immersive-wrap        { height: 365px; min-height: 310px;
                                  padding-bottom: 60px; }

    /* Arrow is 28px + 4px edge = 32px, give 44px total */
    .hero-immersive-wrap .container {
        padding-left:  44px !important;
        padding-right: 44px !important;
    }

    .hero-main-title            { font-size: clamp(0.95rem, 5.5vw, 1.3rem); }
    .hero-desc-rgb              { font-size: 0.68rem; margin-bottom: 0.7rem; }
    .hero-tag-minimal           { font-size: 0.42rem; letter-spacing: 1px;
                                  padding: 3px 8px; }
    .hero-tag-minimal::before   { width: 9px; }

    .btn-kku-rgb                { padding: 5px 10px; font-size: 0.62rem; gap: 5px; }
    .btn-kku-rgb i              { font-size: 0.56rem; }
    .btn-kku-outline-rgb        { padding: 5px 9px;  font-size: 0.62rem; }

    .hero-nav-arrow             { width: 28px; height: 28px; font-size: 0.70rem; }
    .hero-nav-prev              { left: 4px; }
    .hero-nav-next              { right: 4px; }
}
