/* style/carousel.css */

.hero-carousel {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 40px auto;
    overflow: hidden;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    min-height: 450px;
    display: flex;
    align-items: center;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.carousel-slide {
    min-width: 100%;
    box-sizing: border-box;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

/* Left Side: Content */
.slide-content {
    flex: 1;
    max-width: 600px;
}

.slide-label {
    display: inline-block;
    background: #6366F1;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.slide-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    color: #1f2937;
    margin-bottom: 15px;
}

.slide-desc {
    font-size: 1.1rem;
    color: #4b5563;
    margin-bottom: 30px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.open-btn {
    background: #1f2937;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
    text-decoration: none;
    display: inline-block;
}

.open-btn:hover {
    background: #6366F1;
}

/* Right Side: Visual */
.slide-visual {
    flex: 0 0 300px;
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.book-cover {
    width: 220px;
    height: 340px;
    object-fit: cover;
    border-radius: 5px 15px 15px 5px;
    box-shadow: -15px 0 30px rgba(0,0,0,0.2), 5px 5px 15px rgba(0,0,0,0.1);
    transform: rotateY(-15deg);
    transition: transform 0.3s;
}

.book-cover:hover {
    transform: rotateY(0deg) scale(1.05);
}

/* Navigation Arrows */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    font-size: 24px;
    color: #333;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.carousel-nav:hover { background: white; transform: translateY(-50%) scale(1.1); }
.nav-prev { left: 20px; }
.nav-next { right: 20px; }

/* Responsive */
@media (max-width: 768px) {
    .carousel-slide { flex-direction: column-reverse; text-align: center; padding: 30px 20px; }
    .slide-visual { margin-bottom: 20px; }
    .slide-title { font-size: 2rem; }
    .carousel-nav { width: 40px; height: 40px; font-size: 18px; }
}