@keyframes scaleUp {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.rotating-panel-container {
    position: relative;
    width: 100%;
    height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    user-select: none;
}

.rotating-panel {
    width: 600px;
    height: 500px;
    background-color: #1e1e28f0;
    border-radius: 20px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.25), 
                0px 0px 15px 5px rgba(255, 198, 23, 0.6);
    position: absolute;
    left: 50%;
    transform: translate(-50%) scale(0);
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out, box-shadow 0.5s ease-in-out;
    text-align: center;
    padding: 20px;
    opacity: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    
}

.panel-title {
    font-size: 28px;
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    background: linear-gradient(to right, #FFC617, #F8E43D);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
    align-self: flex; /* Align title to the top of the panel */
}

.panel-body {
    font-size: 18px;
    font-family: 'Montserrat', sans-serif;
    color: #F7F7F7;
    margin-bottom: 20px;
    padding: 0 20px;
    line-height: 1.5;
    text-align: center;
    align-self: flex-start; /* Align body to the top of the panel */
}

.panel-image {
    width: 80%;
    height: auto;
    max-height: 300px; /* Adjust as necessary */
    border-radius: 10px;
    align-self: flex; /* Align image to the bottom of the panel */
    margin-top: auto; /* Push the image to the bottom */
}

.panel-video {
    width: 100%; /* Ensure the video takes up the full width */
    height: auto; /* Maintain aspect ratio */
    max-height: 200px; /* Limit the height to avoid overlap */
    object-fit: contain; /* Scale the video properly */
    margin: 0 auto;
}

.arrow {
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    filter: drop-shadow(0 0 3px rgba(255, 198, 23, 0.8)); /* Apply the glowing effect */
}

.arrow svg {
    width: 100%;
    height: 100%;
    fill: #FFC617; /* Default arrow color (Orange) */
    transition: fill 0.3s ease, transform 0.2s ease; /* Add transition for color change and scale effect */
}

.arrow:hover svg {
    fill: #F8E43D; /* Hover arrow color (Yellow) */
    transform: scale(1.1); /* Slightly enlarge the arrow on hover */
}

.left-arrow {
    left: 20px;
}

.right-arrow {
    right: 20px;
}

.arrow:hover {
    opacity: 1;
}

.panel-prev,
.panel-next {
    opacity: 0.1;
    transform: scale(0.8);
}

.panel-prev {
    transform: translateX(calc(-100% - 30px)) scale(0.8); /* Move to left with margin */
}

.panel-next {
    transform: translateX(calc(100% + 30px)) scale(0.8); /* Move to right with margin */
}

.rotating-panel.loaded {
    animation: scaleUp 0.5s ease-in-out forwards; /* Apply scale-up animation */
}
@media (max-width: 992px) {
    .right-arrow {
        right: 30%;
    }
    .left-arrow {
        left: 30%;
    }
    .arrow{top: inherit;
    bottom: -6%;}  
    .rotating-panel{
        width: 100%;
    }
    .rotating-panel {
        width: 400px !important;
    }
}
@media (max-width: 480px) {
    .rotating-panel {
        width: 240px !important;
    }
}

