/* PREMIUM GREEN THEME — HOMEBOOK */

/* Wrapper */
.homebook-wrapper {
  display: flex;
   flex-direction: column;  /*  work with homebook */
    gap: 24px;
  /*  max-width: 680px; /* match theme content width */
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}
.homebook-wrapper-random {
  display: flex;
	 flex-direction: row;  /* work with random */
    gap: 24px;
  /*  max-width: 680px; /* match theme content width */
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}
/* Force HomeBook parent group to full width */
.homebook-wrapper,.homebook-wrapper-random,
.homebook-wrapper .wp-block-group__inner-container {
  /*  max-width: 100% !important;*/
    width: 100% !important;
}

/* Card */
.homebook-card {
    /*background: #1F5E47; /* deep premium green */
	    background: #2A6B52; /* deep premium green */	
    border-radius: 18px;
    padding: 28px;
    display: flex;
	 flex-direction: row;
	width: 100%;
    gap: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.18);
    color: #ffffff;
}

/* Left side */
.homebook-left {
    width: 30%;
}

.homebook-thumb {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

/* Right side */
.homebook-right {
    width: 70%;
}

/* Title */
.homebook-title {
    font-size: 20px;
    font-weight: 600;
    margin: 8px 0 4px;
    color: #ffffff;
}

/* Author */
.homebook-author {
    font-size: 14px;
    font-style: italic;
    opacity: 0.85;
    margin-bottom: 10px;
    color: #ffffff;
}

/* Description */
.homebook-desc {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 16px;
    color: #ffffff;
}

/* Buy button */
.homebook-buy-btn {
    display: inline-block;
    background: #E67E22; /* accent green */
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    float: right;
    transition: 0.25s ease;
}

.homebook-buy-btn:hover {
    background: #D4A857;
}

/* Pagination */
.homebook-pagination {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 12px;
}

.homebook-pagination a,
.homebook-pagination span {
    padding: 8px 14px;
    border-radius: 8px;
    background: #1B5E46;
    color: #ffffff;
    font-weight: 600;
    transition: 0.25s ease;
}

.homebook-pagination a:hover {
    background: #174a38;
}

.homebook-pagination .current {
    background: #0F3D2E;
    color: #ffffff;
}

/* View More Books */
.homebook-more-books {
    margin-top: 25px;
    text-align: center;
}

.homebook-more-books a {
    display: inline-block;
    padding: 12px 20px;
    background: #1B5E46;
    color: #ffffff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.25s ease;
}

.homebook-more-books a:hover {
    background: #174a38;
}
.homebook-random-block {
    width: 100%;
    margin-bottom: 24px;
}

.homebook-random-legend {
    font-size: 22px;
    font-weight: 700;
    color: #2A6B52;
    margin-bottom: 14px;
}
.fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.homebook-random-divider {
    width: 100%;
    height: 4px;
    border-radius: 4px;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #2A6B52 0%, #D4A857 100%);
}
.legend-icon svg {
    display: block;
}
.homebook-random-legend {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 700;
    color: #2A6B52;
    margin-bottom: 10px;
}
.homebook-card-hover {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.homebook-card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(0,0,0,0.22);
}
/* Import fonts */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* Legend */
.homebook-random-block .legend-text {
    font-family: "Inter", sans-serif;
    font-weight: 500;
    letter-spacing: 0.2px;
    opacity: 0.95;
}

/* Title – sâu lắng, cảm xúc */
.homebook-random-block .homebook-title {
    font-family: "Cormorant Garamond", serif;
    font-weight: 600;
    font-size: 24px;
    line-height: 1.25;
    margin-bottom: 12px;
    color: #ffff;
}

/* Description – nhẹ, hiện đại */
.homebook-random-block .homebook-desc {
    font-family: "Inter", sans-serif;
    font-size: 15px;
    line-height: 1.75;
    opacity: 0.9;
}

/* Button – hiện đại, rõ ràng */
.homebook-random-block .homebook-buy-btn {
    font-family: "Inter", sans-serif;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* Import fonts */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* ================================
   ÁP DỤNG CHO TOÀN BỘ HOMEBOOK
   ================================ */

/* Title – sâu lắng, cảm xúc */
.homebook-title {
    font-family: "Cormorant Garamond", serif;
    font-weight: 600;
    font-size: 22px;
    line-height: 1.25;
    margin-bottom: 10px;
    color: #ffffff;
}

/* Author – nhẹ, tinh tế */
.homebook-author {
    font-family: "Inter", sans-serif;
    font-weight: 400;
    opacity: 0.9;
}

/* Description – hiện đại, dễ đọc */
.homebook-desc {
    font-family: "Inter", sans-serif;
    font-size: 15px;
    line-height: 1.75;
    opacity: 0.95;
}

/* Button – modern */
.homebook-buy-btn {
    font-family: "Inter", sans-serif;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* Legend (HomeBookRandom + HomeBook nếu có) */
.homebook-random-legend,
.homebook-section-title {
    font-family: "Inter", sans-serif;
    font-weight: 600;
    letter-spacing: 0.2px;
}

