/* Slider Widget Styles - Matching Original Design */

.slider_container {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    width: 100%;
    height: 100%;
    gap: 12px;
    border-radius: 16px;
}

.icon_holder.action {
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    width: 42px;
    height: 42px;
}

.icon_holder.action.disabled{
    cursor: not-allowed;
    opacity: 0.5;
}


.icon_holder.action.back{
    transform: rotate(180deg);
}

.icon_holder.action:hover:not(.disabled) {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.icon_holder.action.back:hover:not(.disabled) {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1) rotate(180deg);
}

.icon_holder.action img {
    height: 24px;
}

.slider_content {
    position: relative;
    flex: 1;
    height: 100%;
    overflow: hidden;
    border-radius: 16px;
}

#curtain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    pointer-events: none;
}

.slider_container--container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    opacity: 0;
}

.slide:first-child {
    display: block;
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.slide_overlay {
    position: absolute;
    top: 50%;
    left: 0px;
    transform: translateY(-50%);
    color: white;
    z-index: 3;
    padding: 2rem;
    max-width: 80%;
    z-index: 10;
}

.slide_overlay h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.slide_overlay p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    opacity: 0.9;
}

.btn.main {
    display: inline-block;
    padding: 15px 30px;
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn.main:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    color: white;
    text-decoration: none;
}

.btn.main:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Data row container */

.data_row_container{

    position: absolute;
    bottom: 0px;
    width: 80%;
    left: 10%;
    background-color: white;
    z-index: 999;
    display: flex;
    flex-direction: row;
    padding: 12px;
    border-radius: 16px;
    transform: translateY(50%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.data_row{
    display: grid;
    grid-template-rows: auto auto auto;
    grid-template-columns: auto 1fr;
    column-gap: 12px;
    border-right: 2px solid rgba(0, 0, 0, 0.1);
    padding-inline: 8px;
}

.data_row:last-child{
    border-right: none;
}

.data_row_image{
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    grid-row: 1/-1
}

.data_row_image img{
    width: 48px;
    height: 48px;
    object-fit: cover;
}

.data_row p{
    margin-top: 8px;
    font-weight: thin;
}

.data_row a{
    display: flex;
    align-items: center;
    margin-top: 8px;
    position: relative;
    width: fit-content;
}

.data_row a:before{
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    left: 0px;
    bottom: 0px;
    background-color: rgba(0, 0, 0, 0.3);
    transform: scaleX(0);
    transition: transform 0.3s ease;

}

.data_row a:hover:before{
    transform: scaleX(1);
}

.data_row a img{
    width: 16px;
    margin-left: 8px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .slide_overlay {
        padding: 1rem;
        max-width: 90%;
    }

    .slide_overlay h2 {
        font-size: 2rem;
    }
   
    .slider_container {
        grid-template-columns: 1fr; 
        grid-template-rows: auto auto; 
    }

    .data_row_container{
        position: relative;
        grid-template-columns: 1fr; 
        grid-template-rows: auto auto auto;
        transform: none;
        width: 100%;
        left: 0px;
    }

    .data_row{
        border-right: none;
        border-bottom: 2px solid rgba(0, 0, 0, 0.1);
    }

    .data_row:last-child{
        border-bottom: none;
    }

    .slider_content {
        grid-row: 1; /* Slider content stays in the first row */
        grid-column: 1; /* Occupies the single column */
    }

    /* Target the action buttons to place them in the second row, side-by-side */
    .icon_holder.action {
        grid-row: 2; 
        display: flex; 
        margin-top: 15px; 
    }

    .icon_holder.action[data-slider-action="-1"] {
        grid-column: 1; 
        justify-self: center; 
        transform: rotate(180deg) translateX(calc(50% + 10px));
    }

    .icon_holder.action[data-slider-action="-1"]:hover{
        transform: rotate(180deg) translateX(calc(50% + 10px)) !important; 
    }

    .icon_holder.action[data-slider-action="1"]:hover{
        transform: translateX(calc(50% + 10px)) !important;
    }

    .icon_holder.action[data-slider-action="1"] {
        grid-column: 1; 
        justify-self: center; 
        transform: translateX(calc(50% + 10px)); 
    }

    /* A flex container for buttons if you want them truly centered as a group */
    .slider_buttons_wrapper { 
        grid-row: 2;
        grid-column: 1;
        display: flex;
        justify-content: center; /* Centers the buttons as a group */
        gap: 20px; /* Space between buttons */
        width: 100%; /* Take full width of the grid column */
        margin-top: 15px;
    }


    .slide_overlay p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .btn.main {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    .icon_holder.action {
        padding: 8px;
    }
    
    .icon_holder.action img {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 480px) {
    .slide_overlay h2 {
        font-size: 1.5rem;
        margin-bottom: 0.8rem;
    }
    
    .slide_overlay p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .btn.main {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .slider_container {
        gap: 10px;
    }
    
    .icon_holder.action {
        position: relative; /* Keep this if you need it for other reasons */
        margin: 5px; /* Adjust spacing as needed */
    }
}

/* Animation utilities */
.slide-enter {
    opacity: 0;
    transform: translateX(25%) translateY(-25%);
}

.slide-enter-active {
    opacity: 1;
    transform: translateX(0%) translateY(0%);
    transition: all 0.8s ease-in-out;
}

.slide-exit {
    opacity: 1;
    transform: translateX(0%) translateY(0%);
}

.slide-exit-active {
    opacity: 0;
    transform: translateX(-25%) translateY(25%);
    transition: all 0.8s ease-in-out;
}