/* TAI-ECOSAFE Homepage Slideshow */

.featured-slideshow {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.featured-slideshow h2 {
    text-align: center;
    color: #2c5f2d;
    margin-bottom: 30px;
    font-size: 1.8em;
}

.slideshow-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

.slide {
    display: none;
    position: relative;
    animation: fadeIn 0.8s ease-in-out;
}

.slide.active {
    display: flex;
    flex-direction: row;
    height: 400px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide-image {
    flex: 1;
    max-width: 50%;
    min-height: 400px;
    max-height: 400px;
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
}

.slide-image img {
    width: 100%;
    height: 100%;
    min-height: 400px;
    object-fit: cover;
    object-position: center;
}

.slide-content {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fff;
}

.slide-category {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.slide-category.RED { background: #dc3545; }
.slide-category.ORANGE { background: #fd7e14; }
.slide-category.BROWN { background: #8B4513; }
.slide-category.PURPLE { background: #6f42c1; }

.slide-sciname {
    font-size: 2em;
    font-style: italic;
    color: #2c5f2d;
    margin-bottom: 15px;
    font-weight: 300;
    line-height: 1.2;
}

.slide-tai-info {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #eee;
}

.tai-info-item {
    text-align: center;
}

.tai-info-label {
    font-size: 0.8em;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.tai-info-value {
    font-size: 1.5em;
    font-weight: 700;
    color: #2c5f2d;
}

.slide-link {
    margin-top: 25px;
}

.slide-link a {
    display: inline-block;
    padding: 12px 30px;
    background: #2c5f2d;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.3s;
}

.slide-link a:hover {
    background: #234a24;
}

/* Navigation Arrows */
.slide-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5em;
    color: #2c5f2d;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.slide-nav:hover {
    background: #2c5f2d;
    color: #fff;
    transform: translateY(-50%) scale(1.1);
}

.slide-nav.prev {
    left: 20px;
}

.slide-nav.next {
    right: 20px;
}

/* Dots Navigation */
.slide-dots {
    text-align: center;
    padding: 20px 0;
    background: #fff;
}

.dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.dot:hover {
    background: #999;
    transform: scale(1.2);
}

.dot.active {
    background: #2c5f2d;
    width: 30px;
    border-radius: 6px;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .slide.active {
        flex-direction: column;
        min-height: auto;
    }
    
    .slide-image {
        max-width: 100%;
        min-height: 300px;
        max-height: 300px;
    }
    
    .slide-image img {
        min-height: 300px;
    }
    
    .slide-content {
        padding: 30px 20px;
    }
    
    .slide-sciname {
        font-size: 1.5em;
    }
    
    .slide-nav {
        width: 40px;
        height: 40px;
        font-size: 1.2em;
    }
    
    .slide-nav.prev {
        left: 10px;
    }
    
    .slide-nav.next {
        right: 10px;
    }
}

@media screen and (max-width: 480px) {
    .slide-image {
        min-height: 250px;
        max-height: 250px;
    }
    
    .slide-image img {
        min-height: 250px;
    }
    
    .slide-content {
        padding: 20px 15px;
    }
    
    .slide-sciname {
        font-size: 1.3em;
    }
    
    .slide-tai-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .tai-info-item {
        padding: 10px;
        background: #f9f9f9;
        border-radius: 8px;
    }
}
