
:root {
    --primary-color : #f46a24
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    margin: 0;
    padding: 20px;
    background-color: white;
}
.container {
    max-width: 1200px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.book-card {
    display: flex;
    align-items: flex-start;
    min-height: 150px;
}
.book-card img {
    width: 150px;
    height: auto;
    object-fit: cover;
    flex-shrink: 0;
    margin-right: 50px;
}
.book-details {
    flex: 1;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}
.book-title {
    font-size: 25px;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.book-description {
    font-size: 15px;
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}
.buttons {
    margin-top: 10px;
    text-align: right;
}
.btn {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 8px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 16px;
    margin-right: 5px;
}
.btn.preview {
    background: var(--primary-color);
}

.btn {
    transition: all 0.3s ease-in-out;
}

/* .btn:hover {
    background: #fff;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
} */

.card-seperator {
    width: 100%;
    background: var(--primary-color);
    height: 1px;
}

/* New */

.card-container {
    display: flex;
    gap: 20px;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    border: 1px solid #f46a244a;
    justify-content: space-between;
    box-sizing: border-box;
    flex: 0 1 calc((100% / 3) - 13.33px);
}

.card-content {
    flex-grow: 1;
}

.card img {
    width: 200px;
    margin: 20px auto;
    display: block;
}

.card h3 {
    margin: 0;
    font-size: 18px;
    color: #fff;
}

.card p {
    font-size: 14px;
    color: #555;
    margin-bottom: 10px;

    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;  
    overflow: hidden;
    text-overflow: ellipsis;
}

.card .price {
    color: #4c4b4b;
    font-weight: 500;
    margin-bottom: 10px;
}

.book-title-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px 5px 0px 0px;
    padding: 10px;
    text-align: center;
    background: linear-gradient(0deg, #da5a00, #ff8a29);
}

.coming-soon-text {
    color: #f46a24;
    font-weight: 500;
    font-size: 18px;
}

.header-section {
    display: flex;
    justify-content: space-between;
}

@media screen and (max-width: 768px) {
 
    .book-card img {
        width: 120px;
        margin-right: 20px;
    }

    .book-title {
        font-size: 23px;
        white-space: normal;
        text-overflow: initial;
    }

    .book-description {
        font-size: 12px;
    }

    .book-details {
        overflow: initial;
    } 

    .header-section {
        flex-direction: column;
        display: flex;
        justify-content: space-between;
    }
    .card {
    	flex:1;
    }

}
  
