﻿.highlight-showcase-section {
    margin-top: 10px;
    width: 100%;
}

.home-banner-item {
    margin-top: 10px;
}

.highlight-carousel,
.highlight-carousel-small {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    align-items: center;
}

.highlight-carousel {
    height: calc((55vw / 2) + 10px);
}

.highlight-carousel-small {
    height: calc(55vw / 4);
}

.highlight-card {
    border-radius: 16px;
    overflow: hidden;
    height: calc((55vw / 4) - 2px);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

    .highlight-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    }

    .highlight-card img {
        object-fit: cover;
    }

/* Carousel controls */
.highlight-carousel .carousel-control-prev-icon,
.highlight-carousel .carousel-control-next-icon,
.highlight-carousel-small .carousel-control-prev-icon,
.highlight-carousel-small .carousel-control-next-icon {
    filter: invert(1);
}



.section-title {
    font-size: 20px;
    font-weight: bold;
    width: fit-content;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
    color: var(--white);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
    background-color: var(--background-dark);
    display: inline-block;
    padding-bottom: 5px;
}


.container-left {
    width: 100%;
    max-width: none;
    margin: 0;
    padding-left: 20px;
}


.home-content-section {
    padding: 20px;
    margin: 20px auto;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-color: var(--background-board);
    border: 1.5px solid var(--primary-dark);
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}


.book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    justify-content: center;
    gap: 20px;
    padding: 0 20px;
    align-items: stretch;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-left: 20px;
    margin-bottom: 5px;
}

    .section-header a {
        text-decoration: none;
        color: var(--primary-color);
        font-weight: 500;
    }

        .section-header a:hover {
            text-decoration: underline;
        }

.book-card {
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 320px;
    cursor: pointer;
}

    .book-card .book-img-wrapper {
        width: 100%;
        height: 220px;
        border-radius: 6px;
        overflow: hidden;
        margin-bottom: 10px;
    }

    .book-card img.book-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.4s ease;
    }

.book-title {
    font-size: 18px;
    font-weight: 600;
    margin: 6px 0px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.book-author {
    font-size: 14px;
    color: var(--text-mute);
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.price {
    color: var(--danger-color);
    font-weight: bold;
}


.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}


.news-item {
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

    .news-item img {
        width: 100%;
        height: 160px;
        object-fit: cover;
        display: block;
        transition: transform 0.4s ease;
    }

    .news-item h3 {
        font-size: 18px;
        padding: 10px;
        margin: 0;
    }

        .news-item h3 a {
            color: var(--text-color);
            text-decoration: none;
        }

            .news-item h3 a:hover {
                color: var(--primary-color);
            }

/* Common feature */
.book-card, .news-item {
    border: 1px solid var(--border-color);
    background: var(--background-light);
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
    color: var(--text-color);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

    .book-card:hover,
    .news-item:hover {
        box-shadow: 0 8px 20px rgba(0,0,0,0.2);
        transform: translateY(-6px);
    }

        .book-card:hover img.book-img,
        .news-item:hover img {
            transform: scale(1.1);
        }

#featuredNewsCarousel .my-carousel-item {
    height: 100%;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

#featuredNewsCarousel .my-carousel-inner {
    height: 100%
}

#featuredNewsCarousel .news-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
    padding: 1rem;
}

.news-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

    .news-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    }

    /* Optional: image zoom effect */
    .news-card img {
        transition: transform 0.4s ease;
        border-radius: 6px;
    }

    .news-card:hover img {
        transform: scale(1.05);
    }

/* List form */
.form-select {
    max-width: 10vw;
}


@media (max-width: 1000px) {
    .highlight-carousel {
        height: 280px;
    }

    .highlight-carousel-small {
        height: 180px;
    }

    .highlight-card {
        height: 280px;
    }

    .mobile-hidden {
        display: none;
    }

    .section-title {
        max-width: 60%;
    }
}
