﻿.discover-books {
    padding: 10px 0px 20px 0px;
    background-color: #f4f4f4;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
	font-family: "Playfair Display",'sans-serif', 'Helvetica', 'Arial';
	font-size: 26px;
    color: #1a1a1a;
    margin-bottom: 15px;
    font-weight: 100;
}

.section-header .subtitle {
    font-size: 18px;
    color: #666;
    font-family: 'Arial', sans-serif;
}

/* Tab Styles */
.books-tabs {
    margin-top: 40px;
}

.tab-buttons {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    gap: 10px;
	
}

.tab-btn {
    padding: 12px 25px;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
}

.tab-btn:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #ed1c24;
    transition: width 0.3s ease;
}

.tab-btn.active {
    color: #ed1c24;
}

.tab-btn.active:after {
    width: 80%;
}

/* Book Grid */
.book-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.book-card {
    flex: 0 0 calc(25% - 30px);
    min-width: 250px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

.book-image {
    position: relative;
    padding-top: 140%;
	border: 1px solid black;
}

.book-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.book-label {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
	
}

.best{
	 background: #FFC107;
    color: #000;
}

.featured {
    background: #ed1c24;
    color: #fff;
}

.new {
    background: #4CAF50;
    color: #fff;
}

.best-seller {
    background: #FFC107;
    color: #000;
}

.pre-order {
    background: #2196F3;
    color: #fff;
}

.hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.book-card:hover .hover-overlay {
    opacity: 1;
}

.btn-view {
    padding: 12px 25px;
    background: #ed1c24;
    color: #fff !important;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.btn-view:hover {
    background: #f4511e;
}

.book-info {
    padding: 20px;
}

.book-title {
	font-family: 'Playfair Display';
    font-size: 19px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1a1a1a;
}

.book-author {
    font-size: 16px;
    color: #ed1c24;
    margin-bottom: 8px;
}

.book-price {
    font-size: 19px;
    color: #ed1c24;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 992px) {
    .book-card {
        flex: 0 0 calc(33.333% - 30px);
    }
}

@media (max-width: 768px) {
    .discover-books {
        padding: 10px 0px 20px 0px;
    }

    .section-header h2 {
        font-size: 32px;
    }

    .tab-buttons {
        flex-wrap: wrap;
    }

    .tab-btn {
        padding: 8px 15px;
        font-size: 14px;
    }

    .book-card {
        flex: 0 0 calc(50% - 20px);
    }
}

@media (max-width: 576px) {
    .book-card {
        flex: 0 0 100%;
    }
}

/* Caption and Button Styles */
.carousel-caption {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
    padding: 0 20px;
    z-index: 10;
}

.carousel-caption h1 {
    font-size: 48px;
    font-weight: 700;
    color: #fff;
    /* text-shadow: 2px 2px 4px rgba(0,0,0,0.5); */
    margin-bottom: 30px;
}

.btn-discover {
    display: inline-block;
    background: #333;
    color: #fff;
    padding: 15px 30px;
    border-radius: 30px;
    text-transform: uppercase;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    font-size: 13px;
}

.btn-discover:hover {
    background: #ed1c24;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Animation Classes */
.animated {
    animation-duration: 1s;
    animation-fill-mode: both;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translate3d(0, -100%, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 100%, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.fadeInDown {
    animation-name: fadeInDown;
}

.fadeInUp {
    animation-name: fadeInUp;
    animation-delay: 0.5s;
}

/* Responsive Design */
/* Large Devices (1200px and up) */
@media (min-width: 1200px) {
    .carousel-inner > .item > img {
        height: auto;
    }
    .carousel-caption h1 {
        font-size: 48px;
    }
    .btn-discover {
        font-size: 15px;
        padding: 15px 30px;
    }
}

/* Medium Devices (992px to 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .carousel-inner > .item > img {
        height: auto;
    }
    .carousel-caption h1 {
        font-size: 42px;
    }
    .btn-discover {
        font-size: 13px;
        padding: 12px 25px;
    }
}

/* Tablets (768px to 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .carousel-inner > .item > img {
        height: auto;
    }
    .carousel-caption h1 {
        font-size: 36px;
        margin-bottom: 20px;
    }
    .btn-discover {
        font-size: 12px;
        padding: 10px 20px;
    }
    .carousel-caption {
        padding: 30px 15px;
    }
}

/* Mobile Landscape (576px to 767px) */
@media (min-width: 576px) and (max-width: 767px) {
    .carousel-inner > .item > img {
        height: auto;
    }
    .carousel-caption h1 {
        font-size: 28px;
        margin-bottom: 15px;
    }
    .btn-discover {
        font-size: 14px;
        padding: 8px 18px;
    }
    .carousel-caption {
        padding: 20px 10px;
    }
}

/* Mobile Portrait (575px and below) */
@media (max-width: 575px) {
    .carousel-inner > .item > img {
        height: auto;
    }
    .carousel-caption h1 {
        font-size: 24px;
        margin-bottom: 10px;
    }
    .btn-discover {
        font-size: 10px;
        padding: 8px 15px;
    }
    .carousel-caption {
        padding: 15px 10px;
    }
    .top-title {
        margin-top: 15px;
    }
}

.imgzoom{
 	transition: transform 0.3s ease;
}

.imgzoom:hover{
transform: scale(1.1);
}

.division-link {
    text-decoration: none; /* Remove underline */
    display: block;        /* Ensure the entire block is clickable */
    color: inherit;        /* Keep text colors */
}

.division-link:hover {
    text-decoration: none; /* Remove underline on hover */
    color: inherit;        /* Keep text colors */
}
