/* Container */
.three-slider {
    position: relative;
    height: 780px;
    max-width: 100%;
    overflow: hidden;
    background: #000;
}

/* Responsive tweak for phones */
@media (max-width: 768px) {
    .three-slider {
        height: 60vh;
        min-height: 380px;
    }
}

/* Track */
.three-slider-wrapper {
    display: flex;
    height: 100%;
    transition: transform .8s ease-in-out;
}

/* Slide */
.three-slide {
    position: relative;
    min-width: 100%;
    height: 100%;
}
.three-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Overlay filter (color + opacity set in JS) */
.three-slide-filter {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* MODIFIED: Text container styling */
.three-slide-text {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: #fff;
    text-align: left;
    z-index: 2;
    padding: 35px;
    max-width: 50%;
    background-color: #9FC54D;
    color: #111111;
    border-radius: 0 50px 0 50px;
}

.three-slide-text .tis-title {
    font-size: 36px;
    font-weight: bold;
    margin: 0;
    text-align: left;
}
.three-slide-text .tis-subtitle {
    font-size: 18px;
    font-weight: normal;
    margin: 10px 0 0;
    text-align: left;
}

.three-slide-text .tis-button {
    display: inline-block;
    background-color: #fff;
    color: #111111;
    text-decoration: none;
    font-weight: bold;
    padding: 12px 24px;
    margin-top: 20px;
    border-radius: 0px 13px 0px 13px;
}

@media (max-width: 768px) {
    .three-slide-text {
        bottom: 10px;
        left: 10px;
        padding: 35px;
    }
    .three-slide-text .tis-title {
        font-size: 28px;
    }
    .three-slide-text .tis-subtitle {
        font-size: 16px;
    }
    .three-slide-text .tis-button {
        padding: 8px 18px;
        margin-top: 10px;
    }
}

/* Arrows */
.three-prev, .three-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,.3);
    color: #fff;
    border: 0;
    border-radius: 50%;
    font-size: 24px;
    padding: 8px 18px;
    cursor: pointer;
    z-index: 3;
    transition: background .3s;
}
.three-prev:hover, .three-next:hover {
    background: rgba(0,0,0,.6);
}
.three-prev {
    left: 12px;
}
.three-next {
    right: 12px;
}

/* Dots */
.three-slider-dots {
    position: absolute;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    display: flex;
    flex-direction: row;
    gap: 6px;
    z-index: 3;
}
.three-slider-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,.55);
    border: 0;
    cursor: pointer;
    padding: 0;
}
.three-slider-dots .dot.active,
.three-slider-dots .dot[aria-selected="true"] {
    background: #fff;
}

/* MODIFIED: Animation states to work with new position */
.three-slide-text { opacity: 0; transform: translateY(50px); }
.three-slide-text.tis-anim-in { opacity: 1; transform: translateY(0); transition: all 1.0s ease; }

/* Variants */
.tis-anim-fade     { transition: opacity 1.0s ease; }
.tis-anim-fade.tis-anim-in { opacity: 1; }

.tis-anim-slide-up { transform: translateY(50px); }
.tis-anim-slide-up.tis-anim-in { transform: translateY(0); }

.tis-anim-slide-down { transform: translateY(-50px); }
.tis-anim-slide-down.tis-anim-in { transform: translateY(0); }

.tis-anim-slide-left { transform: translateX(50px); }
.tis-anim-slide-left.tis-anim-in { transform: translateX(0); }

.tis-anim-slide-right { transform: translateX(-50px); }
.tis-anim-slide-right.tis-anim-in { transform: translateX(0); }

.tis-anim-zoom-in { transform: scale(0.9); padding: 20px; }
.tis-anim-zoom-in.tis-anim-in { transform: scale(1); padding: 35px;}

/* Navigation Menu */
.three-slider-nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 4;
    padding: 10px 20px;
    box-sizing: border-box;
}

.tis-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}

.tis-menu li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.tis-menu li a:hover {
    color: #ccc;
}

/* NEW: Logo styling */
.tis-logo {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 5;
    /* width: 150px;
    height: 150px; */
    width: 12rem;
    height: 12rem;
    background-color: #123456;
    padding: 10px 20px;
    border-radius: 10px 10px 10px 10px;
        top: -50px;
        right: -35px;
        padding: 15px 15px;
        transform: rotate(45deg);
        
}

.tis-logo img {
    width: 100%;
    height: auto;
    position: relative;
    top: 75%;
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
}

@media (max-width: 1200px) {
    .tis-logo {
        top: -55px;
        right: -45px;
        width: 100px;
        padding: 15px 15px;
        display: none;
    }
}

@media (max-width: 768px) {
    .three-slide-text .tis-title {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .three-slide-text .tis-subtitle {
        font-size: 12px;
    }
}
