/* ========================================
   BOOKS HOMEPAGE STYLES
   ======================================== */

/* General Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero-section {
    background: #D4B5A0;
    padding: 80px 0;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-book {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.hero-book-cover {
    max-width: 350px;
    width: 100%;
    height: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.audio-player {
    width: 100%;
    max-width: 350px;
}

.audio-player audio {
    width: 100%;
    border-radius: 30px;
}

.hero-text {
    color: #fff;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin: 0 0 20px 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
    font-style: italic;
    opacity: 0.95;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 15px 35px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: #2C2C2C;
    color: #fff;
}

.btn-primary:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: transparent;
    color: #2C2C2C;
    border: 2px solid #2C2C2C;
}

.btn-secondary:hover {
    background: #2C2C2C;
    color: #fff;
}

/* ========================================
   FEATURED CONTENT SECTION
   ======================================== */
.featured-content-section {
    padding: 80px 0;
    background: #F5F5F5;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-date {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
    margin-bottom: 10px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    color: #2C2C2C;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-top: 15px;
}

.featured-content-grid {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 60px;
    align-items: start;
}

.featured-left {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.featured-book-thumb {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 30px;
}

.featured-authors {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.author-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #D4B5A0;
}

.featured-description {
    font-size: 1rem;
    line-height: 1.7;
    color: #444;
}

.featured-right {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.featured-chapters {
    list-style: none;
    padding: 0;
    margin: 0;
}

.chapter-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #E5E5E5;
    transition: background 0.3s ease;
}

.chapter-item:last-child {
    border-bottom: none;
}

.chapter-item:hover {
    background: #F9F9F9;
}

.chapter-info {
    flex: 1;
}

.chapter-number {
    display: block;
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 5px;
}

.chapter-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    color: #2C2C2C;
}

.chapter-meta {
    display: flex;
    align-items: center;
    gap: 15px;
}

.chapter-duration {
    font-size: 0.9rem;
    color: #666;
}

.chapter-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #F5F5F5;
    color: #2C2C2C;
    transition: all 0.3s ease;
}

.chapter-link:hover {
    background: #D4B5A0;
    color: #fff;
}

/* ========================================
   PODCAST SECTION
   ======================================== */
.podcast-section {
    padding: 80px 0;
    background: #fff;
}

.podcast-section .section-title {
    text-align: center;
    margin-bottom: 15px;
}

.podcast-section .section-subtitle {
    text-align: center;
    margin-bottom: 50px;
}

.podcast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.podcast-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.podcast-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.podcast-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.podcast-thumb {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.podcast-info {
    padding: 20px;
}

.podcast-platform {
    display: inline-block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    margin-bottom: 10px;
}

.podcast-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #2C2C2C;
    line-height: 1.4;
}

.podcast-date {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

/* ========================================
   POPULAR SECTION
   ======================================== */
.popular-section {
    padding: 80px 0;
    background: #F5F5F5;
}

.popular-section .section-title {
    text-align: center;
    margin-bottom: 50px;
}

.popular-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.popular-card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.popular-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.popular-link {
    text-decoration: none;
    color: inherit;
}

.popular-category {
    display: inline-block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #D4B5A0;
    margin-bottom: 15px;
}

.popular-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
    color: #2C2C2C;
    line-height: 1.4;
}

/* ========================================
   BOOKS SECTION
   ======================================== */
.books-section {
    padding: 80px 0;
    background: #fff;
}

.books-section .section-title {
    text-align: center;
    margin-bottom: 60px;
}

.books-featured {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 60px;
    background: #F5F5F5;
    padding: 60px;
    border-radius: 12px;
}

.book-featured-cover {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.book-featured-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 25px 0;
    color: #2C2C2C;
}

.book-featured-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #444;
    margin-bottom: 30px;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.book-card {
    transition: transform 0.3s ease;
}

.book-card:hover {
    transform: scale(1.05);
}

.book-card img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* ========================================
   RESOURCE HUBS SECTION
   ======================================== */
.resource-hubs-section {
    padding: 80px 0;
    background: #F5F5F5;
}

.resource-hubs-section .section-title {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px auto;
    font-size: 2rem;
    line-height: 1.4;
}

.resource-hubs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.resource-hub-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.resource-hub-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.resource-hub-link {
    display: block;
    position: relative;
    text-decoration: none;
    color: #fff;
}

.hub-thumb {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.resource-hub-card:hover .hub-thumb {
    transform: scale(1.1);
}

.hub-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 30px 20px 20px;
}

.hub-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #fff;
}

.hub-cta {
    font-size: 0.9rem;
    color: #D4B5A0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========================================
   SECTION CTA
   ======================================== */
.section-cta {
    text-align: center;
    margin-top: 50px;
}

/* ========================================
   LATEST JOURNAL CARDS (HOMEPAGE)
   ======================================== */
.home-latest-posts .post-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    height: auto;
}

.home-latest-posts .post-card-thumb {
    display: block;
    width: 100%;
    height: 300px;
    background-size: cover;
    background-position: center;
}

.home-latest-posts .post-card-content {
    display: block;           /* override global flex */
    height: auto;             /* override global height:100% */
    padding: 8px 14px 8px;    /* tighter padding */
}

.home-latest-posts .post-badge,
.home-latest-posts .post-date {
    display: inline-block;
    vertical-align: baseline;
    margin-bottom: 4px;        /* less gap above title */
}

.home-latest-posts .post-badge {
    padding: 0;
    background: none;
    color: #7a5a2f;
    border-radius: 0;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-right: 10px;
}

.home-latest-posts .post-date {
    font-size: 0.78rem;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.home-latest-posts .post-card-title {
    margin: 0;
    line-height: 1.2;
}

.home-latest-posts .post-card-title a {
    font-size: 1.15rem;
}

.home-latest-posts .post-excerpt,
.home-latest-posts .read-more-link {
    display: none;
}

/* Thumb height tweak on mobile */
@media (max-width: 768px) {
    .home-latest-posts .post-card-thumb {
        height: 220px;
    }
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 992px) {
    .hero-content,
    .featured-content-grid,
    .books-featured {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .featured-left {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .podcast-grid,
    .books-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .popular-grid {
        grid-template-columns: 1fr;
    }
    
    .books-featured {
        padding: 30px;
    }
    
    .book-featured-title {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-section,
    .featured-content-section,
    .podcast-section,
    .popular-section,
    .books-section,
    .resource-hubs-section {
        padding: 50px 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
}

.home-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.home-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.45), rgba(0,0,0,0.25), rgba(0,0,0,0.5));
}
