/* ============================================================
   St. Xavier's College Clone — Hero Slider (Premium)
   ============================================================ */

.hero-section {
    position: relative;
    height: calc(100vh - 120px);
    min-height: 550px;
    overflow: hidden;
    background-color: var(--primary-dark);
}

.hero-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), visibility 1s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.hero-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.08);
    transition: transform 8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-slide.active .hero-slide-bg {
    transform: scale(1);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(15, 35, 58, 0.75) 0%,
        rgba(15, 35, 58, 0.5) 40%,
        rgba(15, 35, 58, 0.85) 100%
    );
    z-index: 2;
}

/* Decorative geometric accent */
.hero-overlay::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, var(--bg-color) 0%, transparent 100%);
}

.hero-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    align-items: center;
    color: var(--white);
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
    max-width: 800px;
    opacity: 0;
    transform: translateY(40px);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: 0.3s;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    max-width: 650px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    opacity: 0;
    transform: translateY(40px);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: 0.5s;
    line-height: 1.7;
    font-weight: 300;
    color: rgba(255,255,255,0.9);
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 34px;
    background: var(--gradient-secondary);
    color: var(--white);
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: 0.7s;
    box-shadow: 0 4px 20px rgba(196, 30, 58, 0.35);
    letter-spacing: 0.02em;
    position: relative;
    overflow: hidden;
}

.hero-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s ease;
}

.hero-btn:hover::before {
    left: 100%;
}

.hero-btn:hover {
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(196, 30, 58, 0.45);
}

.hero-btn i {
    margin-left: 4px;
    transition: transform var(--transition-normal);
}

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

/* Active Slide Animations */
.hero-slide.active .hero-title,
.hero-slide.active .hero-subtitle,
.hero-slide.active .hero-btn {
    opacity: 1;
    transform: translateY(0);
}

/* ─── Slider Controls ─── */
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    color: var(--white);
    font-size: 1.15rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
}

.hero-arrow:hover {
    background: var(--gradient-secondary);
    border-color: transparent;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 20px rgba(196, 30, 58, 0.4);
}

.hero-arrow-prev {
    left: 30px;
}

.hero-arrow-next {
    right: 30px;
}

/* ─── Slider Dots ─── */
.hero-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
    border-radius: 20px;
}

.hero-dot {
    background-color: rgba(255, 255, 255, 0.35);
    border: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.hero-dot:hover {
    background-color: rgba(255, 255, 255, 0.6);
}

.hero-dot.active {
    background: var(--gradient-secondary);
    width: 32px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(196, 30, 58, 0.4);
}
