﻿body.courses-page {
    overflow: hidden;
    height: 80vh;
    margin: 0;
}

footer.courses-page {
    display: none;
}

.courses-body {
    position: relative;
    opacity: 0;
}

    .courses-body::before {
        content: "";
        position: absolute;
        top: 45%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90%;
        max-width: 1152px;
        height: 70%;
        background: rgba(200, 170, 160, 0.75);
        border-radius: 80px;
        z-index: -1;
        opacity: 1;
        box-shadow: 0 0 40px rgba(97, 12, 39, 0.25),
        0 0 80px rgba(97, 12, 39, 0.5),
        0 0 120px rgba(97, 12, 39, 0.25);
    }

.courses-h1 {
    font-size: 2rem;
    padding: 0 5rem;
    text-align: center;
    font-weight: 700;
    background: linear-gradient(135deg, #aaaaaa, #aaaaaa, #aaaaaa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 0.8px rgba(80, 80, 80, 0.25);
    background-clip: text;
    color: transparent;
    display: none !important;
}

@media (min-width: 640px) {

    .courses-h1 {
        margin-top: 1rem;
    }
}

.fade-in {
    opacity: 0;
    animation: fadeInAnimation 0.5s ease forwards;
}

@keyframes fadeInAnimation {
    to {
        opacity: 1;
    }
}

.courses-page-body-container {
    margin-top: 0;
}

.swiper-container-wrapper {
    width: 80%;
    max-width: 1024px;
    margin: 3rem auto;
    height: 100vh;
}

.swiper {
    width: 100%;
    height: 600px;
    border-radius: 100px;
    margin: 0 auto;
}

.swiper-slide {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    font-size: 18px;
    color: #EFECE9;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.5);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    overflow: hidden;
}

    .swiper-slide h1 {
        position: relative;
        display: inline-block;
        margin: 0 auto 1rem auto;
        padding-left: 1.5em;
        text-align: center;
        left: -0.75em;
        font-style: normal;
    }

        .swiper-slide h1::before {
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
            font-size: 1.2em;
            pointer-events: none;
        }

.canto-h1::before {
    content: "🎤";
    font-style: normal;
}

.piano-h1::before {
    content: "🎹";
    font-style: normal;
}

.violin-h1::before {
    content: "🎻";
    font-style: normal;
}

.guitar-h1::before {
    content: "🎸";
    font-style: normal;
}

.sax-h1::before {
    content: "🎷";
    font-style: normal;
}

.band-h1::before {
    content: "🥁";
    font-style: normal;
}

.theory-h1::before {
    content: "♫";
    color: #D4AF37;
    transform: scale(1.5);
    font-style: normal;
}

.swiper-slide p {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    padding: 2rem;
    z-index: 2;
    text-shadow: -1px -1px 0 #050505, 1px -1px 0 black, -1px 1px 0 #050505, 1px 1px 0 #050505;
    font-size: 20px;
    width: 90%;
    text-align: center;
}


.slide-image {
    position: absolute;
    width: 20rem;
    max-width: 100%;
    z-index: 1;
    pointer-events: none;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.4;
}

    .slide-image.canto-transform {
        transform: translate(-50%, -40%) scale(1.2);
    }

    .slide-image.piano-transform {
        transform: translate(-50%, -45%) scale(0.9);
    }

    .slide-image.violin-transform {
        transform: translate(-50%, -50%) scale(0.5);
    }

    .slide-image.guitar-transform {
        transform: translate(-50%, -30%) scale(1);
    }

    .slide-image.sax-transform {
        transform: translate(-50%, -40%) scale(0.6);
    }

    .slide-image.band-transform {
        transform: translate(-50%, -40%) scale(1);
    }

    .slide-image.music-transform {
        transform: translate(-50%, -40%) scale(2);
    }

.mySwiper {
    background-image: url('/images/carousel-bg.jpg');
    background-size: cover;
    background-position: center;
}

.swiper-button-next,
.swiper-button-prev {
    color: #EFECE9;
}

.swiper-pagination-bullet {
    background-color: #EFECE9;
}

.swiper-pagination-bullet-active {
    background-color: #EFECE9;
}

.open-modal-btn {
    position: fixed;
    bottom: 3rem;
    margin-top: 1rem;
    width: 9rem;
    height: 2.5rem;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    font-size: 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    z-index: 2;
    backdrop-filter: blur(4px);
    transition: background 0.3s ease;
}

    .open-modal-btn:hover {
        background: rgba(255, 255, 255, 0.4);
    }

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: grid;
    place-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 9999;
}

    .modal-overlay.active {
        opacity: 1;
        pointer-events: auto;
    }

.modal-content {
    position: relative;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 1rem;
    padding: 2rem 3rem;
    color: #fff;
    text-align: justify;
    max-width: 600px;
    width: 90%;
    max-height: 50vh;
    overflow-y: auto;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.4);
    transform: translateY(2.5rem) scale(0.95) !important;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
    opacity: 1;
    pointer-events: auto;
}

.signup-modal-btn {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.3);
    border: none;
    color: #fff;
    cursor: pointer;
    border-radius: 0.5rem;
}

.close-modal-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    z-index: 10000;
    padding: 0;
    line-height: 1;
}


@media (max-width: 680px) {
    .swiper-slide p {
        font-size: 14px;
    }
}


@media (max-width: 550px) {
    .swiper-slide p {
        font-size: 12px;
    }
}


@media (max-width: 480px) {

    :root {
        --navbar-height: 60px;
    }

    body.courses-page {
        height: 100vh;
        overflow: hidden;
    }

    .courses-h1 {
        position: absolute;
        text-align: center;
        font-size: 20px;
        margin-top: 0.5rem;
        padding: 0 1rem;
        top: calc(var(--navbar-height) + 0.5rem);
        z-index: 5;
        display: none !important;
    }

    .swiper-container-wrapper {
        position: relative;
        width: 100vw;
        height: calc(100vh - var(--navbar-height));
        margin: 0;
        overflow: hidden;
    }

    .swiper {
        width: 100%;
        height: 100%;
        border-radius: 0;
        transform: none;
    }

    .swiper-slide {
        padding: 1.5rem 1rem 6rem;
        font-size: 16px;
        justify-content: flex-start;
        text-align: center;
    }

    .slide-image {
        width: 80%;
        opacity: 0.3;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(1.7);
        object-fit: cover;
    }

        .slide-image.canto-transform {
            transform: translate(-50%, -50%) scale(1.2);
        }

        .slide-image.piano-transform {
            transform: translate(-50%, -40%) scale(0.9);
        }

        .slide-image.band-transform {
            transform: translate(-50%, -35%) scale(1);
        }

        .slide-image.music-transform {
            transform: translate(-50%, -40%) scale(1.3);
        }

    .swiper-slide h1 {
        font-size: 1.7rem;
        margin-top: 4rem;
    }

    .swiper-slide h5 {
        font-size: 1.1rem;
        margin-top: 1rem;
    }

    .swiper-slide p {
        font-size: 1rem;
        padding: 1rem 1.5rem;
        line-height: 1.4;
    }

    .open-modal-btn {
        position: absolute;
        bottom: 2.5rem;
        left: 50%;
        transform: translateX(-50%);
        width: 80%;
        font-size: 1rem;
        padding: 0.8rem 0;
    }

    .modal-content {
        max-height: 80vh;
    }

    .swiper-pagination {
        bottom: 1rem !important;
    }
}