﻿
.header-swiper{
    height: auto;
    max-height: 1500px !important;
    margin-top:0 !important;
    min-height: 81vh;
}

#courseHeader .swiper-slide {
    height: 100% !important;
}
#courseHeader .slide-background {
    background-size: cover; /* Scales image to cover entire area */
    background-position: center; /* Centers the image */
    background-repeat: no-repeat;
    /* Ensure the container fills the slide */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.header-swiper:hover .slide-content {
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(15px);
}

#courseHeader .slide-content {
    width: 75%;
    margin-left: auto;
    margin-right: auto;
    background: rgba(0, 0, 0, 0.45);
    color: var(--light);
    text-align: center;
    overflow: auto;
    border-radius: var(--border-radius);
    padding: var(--space-xl) var(--space-lg) var(--space-md);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: calc(var(--navbar-height) + var(--space-2xl));
    margin-bottom: var(--space-2xl);
}

#courseHeader .ch-main-title {
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    color: var(--soft-warm-gold);
    margin: 0 auto var(--space-md) auto;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    line-height: var(--leading-display);
    letter-spacing: var(--tracking-wide);
    /*font-family: var(--font-display);*/
    background: linear-gradient(135deg, var(--pale-gold) 0%, var(--soft-warm-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    max-width: var(--text-max-width);
}

#courseHeader .ch-subtitle {
    font-size: var(--text-lg);
    font-weight: var(--font-medium);
    color: var(--pale-gold);
    margin: 0 auto var(--space-sm);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    line-height: var(--leading-relaxed);
    letter-spacing: var(--tracking-normal);
    font-family: var(--font-primary);
    opacity: 0.95;
    max-width: var(--text-max-width);
}

/* Navigation styles */
.header-swiper-pagination {
    display: none;
}

.header-swiper-button-next,
.header-swiper-button-prev {
    display: none;
}
#courseHeader .slide-background img {
    object-position: center center !important;
}
/* Responsive design */
@media (max-width: 1200px) {
    #courseHeader .ch-main-title {
    }

    #courseHeader .ch-subtitle {
        font-size: var(--text-base);
    }

    #courseHeader .slide-content {
        width: 81%;
        padding: var(--space-lg) var(--space-md) var(--space-md);
    }
}

@media (max-width: 992px) {
    #courseHeader .ch-main-title {
        font-size: var(--text-2xl);
        margin-bottom: var(--space-sm);
    }

    #courseHeader .ch-subtitle {
        font-size: var(--text-base);
    }

    .slide-content {
        width: 85%;
        padding: var(--space-lg) var(--space-md);
    }
}

@media (max-width: 768px) {
    .header-swiper {
        margin-top: 0 !important;
    }

    #courseHeader .ch-main-title {
        /*font-size: var(--text-xl);*/
        line-height: var(--leading-tight);
    }

    #courseHeader .ch-subtitle {
        line-height: var(--leading-normal);
    }
    #courseHeader .slide-content {
        width: 90%;
        padding: var(--space-md) var(--space-sm) var(--space-sm);
        border-radius: calc(var(--border-radius) * 0.8);
    }
}

@media (max-width: 576px) {
    #courseHeader .ch-main-title {
        font-size: var(--text-2xl);
        font-weight: var(--font-semibold);
        margin-bottom: var(--space-xs);
    }

    #courseHeader .ch-subtitle {
        font-size: var(--text-base);
        opacity: 0.9;
    }

    #courseHeader .slide-content {
        width: 94%;
        padding: var(--space-md) var(--space-sm) var(--space-sm);
        margin-bottom: var(--space-xl);
    }
}

@media (max-width: 480px) {
    .header-swiper {
        margin-top: 0 !important;
        min-height: 400px;
        /*height: 75vh;*/
    }

    #courseHeader .ch-main-title {
        font-size: var(--text-2xl);
        /* background: var(--soft-warm-gold); /* Fallback for mobile gradient issues */ */
        /* -webkit-text-fill-color: initial; */
        /* background-clip: initial; */
    }

    #courseHeader .slide-content {
        width: 96%;
        padding: var(--space-sm);
    }

    .user-login-dashboard-wrapper {
        display: none;
    }

    #main-navbar {
        /*border-bottom: 1px solid rgb(0,0,0,0.1);*/
    }
}

/* Animation for content entrance */
#courseHeader .swiper-slide-active .ch-main-title {
    animation: slideInDown 0.8s ease-out;
}

#courseHeader .swiper-slide-active .ch-subtitle {
    animation: slideInUp 0.8s ease-out 0.2s both;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}