@charset "utf-8";
/* CSS Document *//* ===================================================
   PROFESSIONAL BOOKS CAROUSEL & POPUP STYLING
   =================================================== */

.books-carousel-section {
    padding: 60px 5%;
    background: rgba(7, 13, 31, 0.6);
    position: relative;
    overflow: hidden;
}

.carousel-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 30px auto 0;
    display: flex;
    align-items: center;
}

.carousel-track-container {
    width: 100%;
    overflow: hidden;
    padding: 15px 0;
}

.carousel-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease-in-out;
}

/* Book Card Design */
.book-card {
    min-width: 240px;
    background: rgba(28, 37, 65, 0.85);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    padding: 20px 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.book-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: #f3e5ab;
    box-shadow: 0 10px 25px rgba(243, 229, 171, 0.3);
}

.book-img-box {
    width: 100%;
    height: 250px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.book-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.book-card h3 {
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 8px;
}

.book-price {
    color: #d4af37;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.view-details-btn {
    background: linear-gradient(135deg, #d4af37, #aa820a);
    color: #070d1f;
    border: none;
    padding: 8px 18px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.view-details-btn:hover {
    background: #ffffff;
    box-shadow: 0 0 10px rgba(255,255,255,0.8);
}

/* Carousel Control Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(13, 26, 58, 0.9);
    color: #d4af37;
    border: 1px solid #d4af37;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: 0.3s;
}

.carousel-btn:hover {
    background: #d4af37;
    color: #070d1f;
}

.prev-btn { left: -15px; }
.next-btn { right: -15px; }

/* Modal Popup Styling */
.book-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #0d1a3a;
    border: 1px solid #d4af37;
    border-radius: 15px;
    width: 90%;
    max-width: 650px;
    padding: 25px;
    position: relative;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.4);
    animation: popupAnimation 0.3s ease-in-out;
}

@keyframes popupAnimation {
    from { transform: scale(0.7); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.8rem;
    color: #ffffff;
    cursor: pointer;
}

.close-modal:hover { color: #d4af37; }

.modal-body {
    display: flex;
    gap: 20px;
    align-items: center;
}

.modal-img-box {
    width: 180px;
    height: 250px;
    flex-shrink: 0;
}

.modal-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.modal-info h2 { color: #ffffff; font-size: 1.5rem; }
.modal-price { color: #d4af37; font-size: 1.3rem; margin: 10px 0; }
.modal-info p { color: #e0e0e0; font-size: 0.95rem; line-height: 1.5; margin-bottom: 20px; }

.order-btn {
    display: inline-block;
    background: #25d366;
    color: #ffffff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: 0.3s;
}

.order-btn:hover { background: #1eb954; }

@media (max-width: 600px) {
    .modal-body { flex-direction: column; text-align: center; }
    .modal-img-box { margin: 0 auto; }
}