/* --- INDEX CONTENT MODULES --- */

/* NO SHADOWS OVERRIDE */
.hero-image-wrap, .card-vertical-thumb, .card-horizontal-thumb { box-shadow: none; }

/* 1. HERO BLOCK */
.hero-block { width: 100%; display: flex; justify-content: space-between; align-items: flex-start; }
.hero-image-wrap { width: 55%; aspect-ratio: 16 / 9; border-radius: 4px; overflow: hidden; order: 2; margin-left: 50px; }
.hero-content { width: 40%; order: 1; display: flex; flex-direction: column; align-items: flex-start; padding-top: 5px; }
.hero-title { font-family: var(--font-head); font-size: 38px; line-height: 1.2; margin-bottom: 20px; color: var(--color-text-head); display: block; }

/* 2. NEWS GRID */
.news-grid-item { 
    width: 31%; border-bottom: 3px solid #fff; transition: border-color 0.3s; 
    display: flex; flex-direction: column; align-items: flex-start; padding-bottom: 20px; 
}
.news-grid-item:hover { border-bottom-color: var(--color-gold); }
.news-grid-title { 
    font-family: var(--font-head); font-size: 22px; font-weight: 400; color: var(--color-text-head); 
    margin-top: 15px; margin-bottom: 10px;
}

/* 3. CARD: VERTICAL (Hardware, Music) */
.card-vertical { width: 31%; display: flex; flex-direction: column; align-items: flex-start; box-sizing: border-box; }
.card-vertical-thumb { width: 100%; aspect-ratio: 16 / 10; border-radius: 4px; overflow: hidden; margin-bottom: var(--spacing-card) !important; }
.card-vertical .label-cat { margin-top: 15px !important; margin-bottom: 15px !important; display: inline-block; }
.card-vertical-title {
    font-family: var(--font-head); font-size: 24px; font-weight: 400; line-height: 1.2; color: var(--color-text-head);
    display: block; margin-top: 15px !important; margin-bottom: 10px !important;
}
.card-vertical .preview-text { margin-top: 15px !important; display: block; }

/* 4. CARD: HORIZONTAL (Lifestyle, Films) */
.col-half { width: 48%; display: flex; flex-direction: column; gap: 50px; }
.card-horizontal { display: flex; gap: 30px; align-items: flex-start; }
.card-horizontal-thumb { flex-shrink: 0; width: 180px; height: 120px; border-radius: 4px; overflow: hidden; }
.card-wide .card-horizontal-thumb { width: calc(50% - 15px); height: auto; aspect-ratio: 16 / 9; }
.card-wide .card-horizontal-content { width: calc(50% - 15px); }
.poster-thumb { width: 120px; height: 180px; }
.film-thumb { width: 166px; height: 250px; }
.card-horizontal-content { display: flex; flex-direction: column; align-items: flex-start; }
.card-horizontal-title { font-family: var(--font-head); font-size: 22px; line-height: 1.2; color: var(--color-text-head); margin-top: 15px; }

/* 5. CARD: AUTO */
.card-auto { width: 31%; display: flex; flex-direction: column; align-items: flex-start; }
.card-auto .label-cat { margin-bottom: var(--spacing-card) !important; margin-top: 0 !important; }
.card-auto-bg { 
    width: 100%; height: 284px; background-size: cover; background-position: center; border-radius: 4px; display: flex; align-items: flex-end; padding: 20px; transition: filter 0.3s; box-shadow: none;
    margin-top: 15px; 
}
.card-auto-bg:hover { filter: brightness(0.9); }
.card-auto-title { color: #fff !important; font-family: var(--font-main); font-size: 20px; text-shadow: 1px 1px 2px #000; }

/* 6. BOOK GRID & SAPE */
.book-grid-container { flex-wrap: wrap; row-gap: 50px !important; column-gap: 30px !important; justify-content: flex-start; }
.card-book { width: calc((100% - 60px) / 3); margin-bottom: 0; display: flex; align-items: flex-start; }
.sape-block { width: 100%; font-size: 12px; color: #ccc; text-align: center; margin-top: 20px;}

/* --- INDEX MEDIA QUERIES --- */
@media (max-width: 900px) {
    .hero-block { flex-direction: column; }
    .hero-image-wrap { width: 100%; margin-left: 0; margin-bottom: 20px; order: -1; }
    .hero-content { width: 100%; order: 1; }
    .hero-title { font-size: 28px; }
    
    .news-grid-item, .card-vertical, .col-half, .card-auto { width: 100%; }
    
    .card-vertical { margin-bottom: 40px; border-bottom: 1px solid rgba(0,0,0,0.05); padding-bottom: 40px; }
    .card-vertical:last-child { margin-bottom: 0; border-bottom: none; padding-bottom: 0; }
    
    .card-horizontal-thumb { width: 140px; height: auto; aspect-ratio: 4/3; }
    .film-thumb { width: 120px; height: 180px; }
    .card-wide .card-horizontal-thumb { width: 140px; aspect-ratio: 4/3; }
    .card-wide .card-horizontal-content { width: auto; }
    .card-book { width: 100%; }
}