/* =========================================================
   Hero Slider — Corporate / Business (Swiper.js)
   Scoped to .hero-slider-area only
========================================================= */
.hero-slider-area {
    --hero-navy: #0a0f1e;
    --hero-navy-2: #0d1a33;
    --hero-accent: #2f6fed;
    --hero-accent-2: #1b3ea8;
    position: relative;
    width: 100%;
    overflow: hidden;
    background: var(--hero-navy);
}

.hero-swiper,
.hero-swiper .swiper-wrapper,
.hero-swiper .swiper-slide {
    height: 88vh;
    min-height: 560px;
    max-height: 880px;
}

.hero-swiper .swiper-slide {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Ken Burns background layer */
.hero-slide-bg {
    position: absolute;
    inset: -20px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1);
    animation: heroKenBurns 9s ease-in-out infinite alternate;
    will-change: transform;
}

@keyframes heroKenBurns {
    0%   { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.15) translate(-1.5%, -1.5%); }
}

/* Dark gradient overlay for readability + corporate mood */
.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(115deg, rgba(10, 15, 30, 0.92) 0%, rgba(10, 15, 30, 0.72) 40%, rgba(10, 15, 30, 0.35) 75%, rgba(10, 15, 30, 0.25) 100%),
        linear-gradient(0deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0) 30%);
    z-index: 1;
}

.hero-swiper .container {
    position: relative;
    z-index: 2;
}

.hero-slide-content {
    max-width: 640px;
    color: #fff;
}

.hero-slide-content > * {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.hero-slide-content.is-active > * {
    opacity: 1;
    transform: translateY(0);
}

.hero-slide-content.is-active .hero-eyebrow  { transition-delay: 0.15s; }
.hero-slide-content.is-active h1             { transition-delay: 0.3s; }
.hero-slide-content.is-active p              { transition-delay: 0.45s; }
.hero-slide-content.is-active .hero-btn      { transition-delay: 0.6s; }

.hero-eyebrow {
    display: inline-block;
    padding: 7px 18px;
    margin-bottom: 22px;
    font-family: 'Open Sans', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
    background: rgba(47, 111, 237, 0.18);
    border: 1px solid rgba(47, 111, 237, 0.55);
    border-radius: 30px;
    backdrop-filter: blur(4px);
}

.hero-slide-content h1 {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 700;
    font-size: clamp(30px, 4.2vw, 56px);
    line-height: 1.15;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 0 4px 24px rgba(0,0,0,0.25);
}

.hero-slide-content p {
    font-family: 'Open Sans', sans-serif;
    font-size: clamp(15px, 1.4vw, 18px);
    line-height: 1.7;
    color: rgba(255,255,255,0.88);
    max-width: 520px;
    margin-bottom: 36px;
}

/* Button */
.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, var(--hero-accent) 0%, var(--hero-accent-2) 100%);
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(47, 111, 237, 0.35);
    transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
}

.hero-btn i {
    transition: transform 0.35s ease;
}

.hero-btn:hover,
.hero-btn:focus {
    color: #fff;
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(47, 111, 237, 0.5);
    background: linear-gradient(135deg, var(--hero-accent-2) 0%, var(--hero-accent) 100%);
}

.hero-btn:hover i {
    transform: translateX(6px);
}

/* Navigation arrows */
.hero-nav {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    backdrop-filter: blur(6px);
    cursor: pointer;
    transform: translateY(-50%);
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.hero-nav:hover {
    background: var(--hero-accent);
    border-color: var(--hero-accent);
    transform: translateY(-50%) scale(1.08);
}

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

.hero-nav.swiper-button-disabled {
    opacity: 0.35;
    cursor: default;
}

/* Pagination dots */
.hero-pagination,
.hero-pagination.swiper-pagination {
    position: absolute !important;
    left: 50% !important;
    bottom: 32px !important;
    top: auto !important;
    width: auto !important;
    z-index: 10 !important;
    transform: translateX(-50%) !important;
    display: flex !important;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.hero-pagination .swiper-pagination-bullet {
    width: 10px !important;
    height: 10px !important;
    margin: 0 !important;
    background: rgba(255, 255, 255, 0.70) !important;
    opacity: 1 !important;
    border-radius: 30px !important;
    transition: width 0.35s ease, background 0.35s ease !important;
    box-shadow: 0 0 0 2px rgba(0,0,0,0.2), 0 2px 6px rgba(0,0,0,0.3);
    display: inline-block !important;
}

.hero-pagination .swiper-pagination-bullet-active {
    width: 32px !important;
    background: var(--hero-accent) !important;
    box-shadow: 0 0 0 2px rgba(47,111,237,0.4), 0 3px 10px rgba(47,111,237,0.5);
}

/* Floating student image — slides in from right to left.
   Triggered by JS adding .is-visible (see hero-slider.js), synced to the
   loading screen's hide event so it plays AFTER the loader disappears
   instead of finishing silently underneath it. */
.hero-float-student {
    position: absolute;
    top: 60%;
    right: 6%;
    z-index: 6;
    opacity: 0;
    transform: translateY(-50%) translateX(160px);
    transition: opacity 1.1s cubic-bezier(0.22, 1, 0.36, 1), transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-float-student.is-visible {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.hero-float-student img {
    display: block;
    width: 100%;
    height: 33rem;
    object-fit: cover;
}

@media (max-width: 1399px) {
    .hero-float-student { display: none; }
}

/* Reduced motion accessibility */
@media (prefers-reduced-motion: reduce) {
    .hero-slide-bg { animation: none; }
    .hero-slide-content > * { transition: none; }
    .hero-float-student {
        transition: none;
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

/* Responsive */
@media (max-width: 991px) {
    .hero-swiper,
    .hero-swiper .swiper-wrapper,
    .hero-swiper .swiper-slide {
        height: 76vh;
        min-height: 500px;
    }
    .hero-nav { width: 46px; height: 46px; font-size: 16px; }
    .hero-nav-prev { left: 16px; }
    .hero-nav-next { right: 16px; }
}

@media (max-width: 767px) {
    .hero-swiper,
    .hero-swiper .swiper-wrapper,
    .hero-swiper .swiper-slide {
        height: auto;
        min-height: 560px;
    }
    .hero-slide-content { padding: 90px 0 70px; }
    .hero-nav { display: none; }
    .hero-pagination { bottom: 20px; }
}

@media (max-width: 480px) {
    .hero-eyebrow { font-size: 10.5px; padding: 6px 14px; }
    .hero-btn { padding: 14px 26px; font-size: 12.5px; }
}
