﻿
.container-fluid {
    padding-right : 1% !important;
    padding-left : 1% !important;
}


h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 15px;
}

.subtitle {
    color: #7f8c8d;
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
    gap: 25px;

}

.book-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    background: linear-gradient(135deg, #f5f7fa, #eef2f6);
}

.book-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.book-number {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #3498db;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    z-index: 1;
}

.book-image {
    height: 200px;
    overflow: hidden;
}

.book-image img {
    width: 100%;
    height: 100%;
    object-fit: scale-down;
    transition: transform 0.5s ease;
}

.book-card:hover .book-image img {
    transform: scale(1.05);
}

.book-info {
    padding: 20px;
}

.book-title {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 8px;
    font-weight: 600;
}

.book-author {
    color: #7f8c8d;
    font-size: 1rem;
    margin-bottom: 15px;
    font-style: italic;
}



.book-description-container {
    position: relative;
    margin-bottom: 20px;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

    .book-description-container.collapsed {
        max-height: 60px;
    }

        .book-description-container.collapsed::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 20px;
            background: linear-gradient(transparent, white);
            pointer-events: none;
        }

.book-description {
    color: #34495e;
    line-height: 1.5;
    font-size: 0.95rem;
    margin: 0;
}

.btn-read-more {
    background: none;
    border: none;
    color: #3498db;
    cursor: pointer;
    font-weight: 500;
    padding: 5px 0;
    display: inline-flex;
    align-items: center;
    margin-top: 5px;
}

    .btn-read-more:hover {
        color: #2980b9;
        text-decoration: underline;
    }

    .btn-read-more i {
        margin-left: 5px;
        transition: transform 0.3s ease;
    }

    .btn-read-more.expanded i {
        transform: rotate(180deg);
    }


.book-genre {
    display: inline-block;
    background: #e8f4fc;
    color: #3498db;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 15px;
}

.btn-buy {
    display: block;
    background: #27ae60;
    color: white;
    text-align: center;
    padding: 10px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s ease;
}

.btn-buy:hover {
    background: #219653;
}

@media (max-width: 768px) {
    .books-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
}