/* ==========================================================================
   Homepage Sections
   ========================================================================== */

.homepage-section { padding: 2.5rem 0; }
.section-title {
    font-size: 1.375rem; margin-bottom: 1.5rem; position: relative;
    padding-bottom: 0.5rem;
}
.section-title::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 50px; height: 3px;
    background: var(--stf-primary); border-radius: 2px;
}
.section-header-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.section-header-row .section-title { margin-bottom: 0; }
.view-all { font-size: 0.85rem; font-weight: 600; color: var(--stf-primary); }

/* Hero */
.hero-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 1.25rem; min-height: 420px; }
@media (max-width: 768px) { .hero-grid { grid-template-columns: 1fr; } }
.hero-main { position: relative; border-radius: var(--stf-radius); overflow: hidden; }
.hero-thumb { display: block; height: 100%; }
.hero-thumb img { width: 100%; height: 100%; min-height: 400px; object-fit: cover; }
.hero-content {
    position: absolute; bottom: 0; left: 0; right: 0; padding: 1.5rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    color: #fff;
}
.hero-content h3 { margin: 0.5rem 0; }
.hero-content h3 a { color: #fff; font-size: 1.5rem; }
.hero-content p { font-size: 0.9rem; opacity: 0.9; }

/* Hero Sidebar — numbered trending list */
.hero-sidebar {
    background: var(--stf-body-bg); border: 1px solid var(--stf-border);
    border-radius: var(--stf-radius); display: flex; flex-direction: column;
    overflow: hidden;
}
.hero-sidebar-header {
    padding: 0.875rem 1rem; border-bottom: 2px solid var(--stf-primary);
    background: var(--stf-surface);
}
.hero-sidebar-label {
    font-size: 0.75rem; font-weight: 800; text-transform: uppercase;
    letter-spacing: 1px; color: var(--stf-primary);
}
.hero-sidebar-list { list-style: none; margin: 0; padding: 0; flex: 1; display: flex; flex-direction: column; }
.hero-sidebar-item { flex: 1; }
.hero-sidebar-item + .hero-sidebar-item { border-top: 1px solid var(--stf-border); }
.hero-sidebar-link {
    display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem;
    color: var(--stf-body-text); text-decoration: none; height: 100%;
    transition: background 0.15s;
}
.hero-sidebar-link:hover { background: var(--stf-surface); }
.hero-sidebar-num {
    font-size: 1.5rem; font-weight: 800; color: var(--stf-primary);
    min-width: 1.75rem; text-align: center; line-height: 1; opacity: 0.5;
}
.hero-sidebar-link:hover .hero-sidebar-num { opacity: 1; }
.hero-sidebar-info { flex: 1; min-width: 0; }
.hero-sidebar-title {
    font-size: 0.8rem; font-weight: 600; line-height: 1.35; margin: 0;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    color: var(--stf-body-text);
}
.hero-sidebar-link:hover .hero-sidebar-title { color: var(--stf-primary); }
.hero-sidebar-meta { font-size: 0.65rem; color: var(--stf-muted); margin-top: 0.2rem; display: block; }
@media (max-width: 768px) {
    .hero-sidebar { flex-direction: row; flex-wrap: wrap; }
    .hero-sidebar-header { width: 100%; }
    .hero-sidebar-list { flex-direction: row; flex-wrap: wrap; }
    .hero-sidebar-item { flex: 1 1 45%; }
    .hero-sidebar-item + .hero-sidebar-item { border-top: none; border-left: 1px solid var(--stf-border); }
}

/* Featured */
.featured-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 768px) { .featured-grid { grid-template-columns: 1fr; } }

/* Category showcase */
.category-row { margin-bottom: 2rem; }
.category-row-title { font-size: 1.125rem; margin-bottom: 1rem; }
.category-row-title a { color: var(--stf-body-text); }
.category-row-posts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 960px) { .category-row-posts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .category-row-posts { grid-template-columns: 1fr; } }

/* Press releases */
.press-release-list { list-style: none; }
.press-release-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.75rem 0; border-bottom: 1px solid var(--stf-border);
    gap: 1rem; flex-wrap: wrap;
}
.press-release-item a { color: var(--stf-body-text); font-weight: 600; flex: 1; }
.press-release-item a:hover { color: var(--stf-primary); }
.press-date { font-size: 0.8rem; color: var(--stf-muted); }
.press-source { flex-shrink: 0; }

/* Sponsored */
.sponsored-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 768px) { .sponsored-grid { grid-template-columns: 1fr; } }
.sponsored-card { border: 1px solid var(--stf-border); border-radius: var(--stf-radius); overflow: hidden; }
.sponsored-card .badge-sponsored { margin: 0.75rem; display: inline-block; }
.sponsored-card h3 { padding: 0 0.75rem; font-size: 1rem; }
.sponsored-card h3 a { color: var(--stf-body-text); }
.sponsor-name { display: block; padding: 0.5rem 0.75rem 0.75rem; font-size: 0.8rem; color: var(--stf-muted); }
.sponsored-disclosure { font-size: 0.8rem; color: var(--stf-muted); font-style: italic; margin-bottom: 1rem; }

/* Trending */
.trending-list { list-style: none; counter-reset: trending; }
.trending-item {
    display: flex; align-items: flex-start; gap: 1rem;
    padding: 0.75rem 0; border-bottom: 1px solid var(--stf-border);
}
.trending-num {
    font-size: 1.75rem; font-weight: 800; color: var(--stf-primary);
    min-width: 2rem; text-align: center; line-height: 1;
}
.trending-content h3 { font-size: 1rem; margin-bottom: 0.2rem; }
.trending-content h3 a { color: var(--stf-body-text); }
.trending-content time { font-size: 0.75rem; color: var(--stf-muted); }

/* About / CTA */
.section-about-cta { background: #f9fafb; }
.about-content { max-width: 700px; }
.about-content .btn { margin-top: 1rem; }

/* Newsletter */
.section-newsletter { background: var(--stf-primary); color: #fff; text-align: center; }
.newsletter-inner { max-width: 550px; margin: 0 auto; }
.newsletter-inner h2 { color: #fff; }
.newsletter-inner p { opacity: 0.9; margin: 0.5rem 0 1.25rem; }
.newsletter-form { display: flex; gap: 0.5rem; }
.newsletter-form input {
    flex: 1; padding: 0.75rem 1rem; border: none; border-radius: var(--stf-radius);
    font-size: 0.9rem; min-height: 44px;
}
.newsletter-form .btn { background: #1f2937; color: #fff; white-space: nowrap; }
.newsletter-form .btn:hover { background: #111827; }
@media (max-width: 480px) { .newsletter-form { flex-direction: column; } }

/* Custom HTML */
.custom-html-section { padding: 1.5rem 0; }

/* Author header */
.author-header { display: flex; align-items: center; gap: 1.5rem; margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--stf-border); }
.author-header .author-avatar img { border-radius: 50%; width: 96px; height: 96px; }
.author-bio { color: var(--stf-muted); }

/* Subcategories */
.subcategories { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.75rem; }
