/* Container Background */
#portfolio {
    background-color: #f8f9fa !important;
    /* Soft grey background */
    padding: 50px 0;
}

/* Card Styling */
.book-card {
    background: #ffffff;
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    /* Soft premium shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.book-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* Image Container - This creates the "Full Image" look with padding */
.book-img-container {
    width: 100%;
    aspect-ratio: 2/3;
    /* Standard book/tall product ratio */
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
}

.book-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ensures image fills the space right to left */
}

/* Typography */
.book-info {
    text-align: left;
}

.book-title {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-transform: uppercase;
}

.book-author {
    font-size: 13px;
    color: #777;
    margin-bottom: 10px;
}

/* Pricing Section */
.book-price-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.book-price {
    font-size: 18px;
    font-weight: 800;
    color: #003366;
    /* Deep blue like your image */
}

.book-old-price {
    font-size: 13px;
    text-decoration: line-through;
    color: #aaa;
}

.book-discount {
    font-size: 13px;
    font-weight: 600;
    color: #388e3c;
    /* Green for discount */
}

.book-action {
    border-top: 1px solid #eee;
    padding-top: 12px;
}

.btn-view {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #003366;
    /* Matching the price color */
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.3s ease;
    width: 40%;
    margin-left: auto;
    /* Makes it a full-width button */
}

.btn-view:hover {
    background-color: #002244;
    color: #fff;
    text-decoration: none;
}

/* Optional: Icon specific styling */
.btn-view i {
    font-size: 16px;
}