/* carousel */

.carousel{
    width: 100vw;
    height: auto;
    min-height: 100vh;
    margin-top: 0px;
    overflow: hidden;
    position: relative;
}

.carousel .list .item{
    width: 180px;
    height: 250px;
    position: absolute;
    top: 80%;
    transform: translateY(-70%);
    left: 70%;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    background-position: 50% 50%;
    background-size: cover;
    z-index: 100;
    transition: 1s;
}

.carousel .list .item:nth-child(1),
.carousel .list .item:nth-child(2){
    top: 0;
    left: 0;
    transform: translate(0, 0);
    border-radius: 0;
    width: 100%;
    height: auto;
    min-height: 100vh;
}

.carousel .list .item:nth-child(3){
    left: 67%;
}

.carousel .list .item:nth-child(4){
    left: calc(67% + 200px);
}

.carousel .list .item:nth-child(5){
    left: calc(67% + 400px);
}

.carousel .list .item:nth-child(6){
    left: calc(67% + 600px);
}

.carousel .list .item:nth-child(n+7){
    left: calc(67% + 800px);
    opacity: 0;
}


.list .item .content{
    position: absolute;
    top: 50%;
    left: 50px;
    transform: translateY(-50%);
    width: 300px;
    text-align: left;
    color: #fff;
    display: none;
}

.list .item:nth-child(2) .content{
    display: block;
}

.content .title{
    font-size: 100px;
    text-transform: uppercase;
    color: #C38628;
    font-weight: bold;
    line-height: 1;

    opacity: 0;
    animation: animate 1s ease-in-out 0.3s 1 forwards;
}

.content .name{
    font-size: 30px;
    text-transform: uppercase;
    font-weight: bold;
    line-height: 1;
    text-shadow: 3px 4px 4px rgba(255, 255, 255, 0.8);

    opacity: 0;
    animation: animate 1s ease-in-out 0.6s 1 forwards;
}

.content .des{
    margin-top: 10px;
    margin-bottom: 20px;
    font-size: 18px;
    margin-left: 5px;

    opacity: 0;
    animation: animate 1s ease-in-out 0.9s 1 forwards;
}

.content .btn{
    margin-left: 5px;

    opacity: 0;
    animation: animate 1s ease-in-out 1.2s 1 forwards;
}

.content .btn button{
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    border: 2px solid #fff;
}

.content .btn button:nth-child(1){
    margin-right: 15px;
}

.content .btn button:nth-child(2){
    background: transparent;
    color: #C38628;
    border: 2px solid #fff;
    transition: 0.3s;
}

.content .btn button:nth-child(2):hover{
    background-color: #C38628;
    color: #fff;
    border-color: #C38628;
}


@keyframes animate {
    
    from{
        opacity: 0;
        transform: translate(0, 100px);
        filter: blur(33px);
    }

    to{
        opacity: 1;
        transform: translate(0);
        filter: blur(0);
    }
}

/* Carousel */


/* next prev arrows */

.arrows{
    position: absolute;
    top: 80%;
    right: 52%;
    z-index: 100;
    width: 300px;
    max-width: 30%;
    display: flex;
    gap: 10px;
    align-items: center;
}

.arrows button{
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #C38628;
    color: #fff;
    border: none;
    outline: none;
    font-size: 16px;
    font-family: monospace;
    font-weight: bold;
    transition: .5s;
    cursor: pointer;
}

.arrows button:hover{
    background: #fff;
    color: #000;
}


/* time running */
.carousel .timeRunning{
    position: absolute;
    z-index: 1000;
    width: 0%;
    height: 4px;
    background-color: #C38628;
    left: 0;
    top: 0;
    animation: runningTime 7s linear 1 forwards;
}

@keyframes runningTime {
    
    from{width: 0%;}
    to{width: 100%;}

}

footer .header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    background-image: linear-gradient(to right, white 20%, #1E305E 60%);
}

.footer-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: #1E305E;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    line-height: 2em;
    transition: left 0.5s ease;
    z-index: 10000;
}

#check:checked ~ .footer-nav {
    left: 0;
}

label.checkbtn {
    position: fixed;
    top: 1em;
    right: 1em;
    z-index: 10001;
    font-size: 2rem;
    color: white;
}

#check:checked ~ label #cancel {
    display: block;
    color: #CD9D49;
}

#check:checked ~ label #btn {
    display: none;
}

.footer-nav .dropdown-menu {
    position: static;
    background-color: #2A4066;
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 0.5em;
    padding: 0.5em 0;
    border-radius: 0;
    text-align: center;
}

.footer-nav .dropdown.open .dropdown-menu {
    display: block;
}

.footer-nav li {
    margin: 10px 0;
    width: 100%;
    text-align: center;
}

.footer-nav li a {
    color: white;
    display: block;
    padding: 0.5em;
}

.dropdown-trigger {
    color: white;
    font-weight: 500;
    cursor: pointer;
}

.section-two-bottom {
    display: none; /* or */
    margin: 0;
    padding: 0;
}


/* Responsive Design */

@media screen and (max-width: 999px){
    .list .item .content{
        left: 50px;
    }

    .content .title, .content .name{
        font-size: 70px;
    }

    .content .des{
        font-size: 16px;
    }

    .footer-logo img {
        filter: drop-shadow(0 0 5px white);
    }

}

@media screen and (max-width: 690px){
    .list .item .content{
        top: 40%;
    }

    .content .title, .content .name{
        font-size: 45px;
    }

    .content .btn button{
        padding: 10px 15px;
        font-size: 14px;
    }
}

@media screen and (min-width: 993px) {
    .footer-nav {
        position: static;
        display: flex;
        flex-direction: row;
        justify-content: center;
        height: auto;
        background: none;
        width: 100%;
        line-height: normal;
    }

    .footer-nav li {
        position: relative; /* ✅ Needed for absolute dropdowns */
        margin: 0 1em;
    }

    .footer-nav li a {
        font-size: 14px;
    }

    .footer-nav .dropdown-menu {
        position: absolute; /* ✅ Float below parent */
        top: 100%; /* ✅ Directly under the link */
        left: 0;
        background-color: #1E305E;
        min-width: 180px;
        display: none;
        padding: 0.5em 0;
        border-radius: 0 0 4px 4px;
        z-index: 1000;
    }

    .footer-nav li:hover .dropdown-menu,
    .footer-nav .dropdown.open .dropdown-menu {
        display: block; /* ✅ Show on hover or open */
    }


    .footer-nav .dropdown-trigger {
        display: inline-block;
        padding: 0.5em;
    }

    .footer-nav .dropdown-menu li {
        text-align: left;
        padding-left: 1em;
        margin: 0;
    }
}


@media (min-width: 320px) and (max-width: 768px) {
    footer {
        background-color: white;
    }

    .footer-bottom {
        background-color: #1E305E;
        color: #F2E4CD;
        text-align: center;
        padding: 1em 0;
        font-size: 0.9rem;
        margin-top: 0;
        width: 100%;
    }

    .footer-bottom p {
        margin: 0;
        color: #F2E4CD;
    }

    .footer-logo img {
        filter: drop-shadow(0 0 5px white); /* helps blue text/logo stand out on white */
    }

    .carousel,
    .section-two-bottom {
        background-color: white;
    }

    footer .header-container {
        background-image: linear-gradient(to right, white 20%, #CD9D49 60%);
    }
}
