/**
 * blog-pages.css — page-level styles for category / author / tag pages
 * Used by: category/*.html, author/*.html, tag/*.html (built by build_site.py)
 *
 * Overrides hardcoded #0F2E44 / #FFAA47 colors emitted by build_site.py templates.
 */

/* ========== Category / tag page-hero ==========
 * The build_site.py template emits an inline `style="background-image: linear-gradient(180deg, rgba(15,46,68,...))"`
 * which is the runfishapparel deep blue. We override by making the gradient layer
 * neutral-dark and adding a brand color band via ::after.
 */
.page-hero {
    position: relative;
    min-height: 280px;
    padding: 4.5rem 1.25rem 3.5rem;
    color: #fff;
    text-align: center;
    background-color: #1A1A1A !important;
    background-image: linear-gradient(180deg, rgba(15, 15, 15, 0.55) 0%, rgba(15, 15, 15, 0.85) 100%) !important;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}
.page-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background: linear-gradient(90deg, #2A4A30 0%, #7BC67E 50%, #2A4A30 100%);
}

.page-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 760px;
    margin: 0 auto;
}
.page-hero-icon {
    display: inline-flex;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(123, 198, 126, 0.18);
    border: 1px solid rgba(123, 198, 126, 0.5);
    align-items: center;
    justify-content: center;
    color: #7BC67E;
    font-size: 1.6rem;
    margin: 0 auto 1rem;
}
.page-hero h1 {
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    font-weight: 800;
    color: #fff;
    margin: 0 0 0.6rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}
.page-hero-subtitle {
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 640px;
    margin: 0 auto;
}

/* ========== Page section + breadcrumb ========== */
.page-section-wrap {
    padding: 2.5rem 0 4rem;
    background: #f7faf6;
}
.page-breadcrumb {
    margin-bottom: 1.5rem;
}
.page-breadcrumb .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    font-size: 0.92rem;
}
.page-breadcrumb .breadcrumb-item a {
    color: #2A4A30;
    text-decoration: none;
}
.page-breadcrumb .breadcrumb-item a:hover { color: #5BA862; }
.page-breadcrumb .breadcrumb-item.active { color: #6b6b6b; }
.page-breadcrumb .breadcrumb-item + .breadcrumb-item::before { color: #c5d3c8; }

.articles-heading {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1A1A1A;
    margin: 0 0 1.25rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid #7BC67E;
    display: inline-block;
}

/* ========== Sidebar (category / tag / author pages) ========== */
.blog-sidebar { position: sticky; top: 90px; }
.blog-sidebar .sidebar-widget {
    background: #fff;
    border-radius: 12px;
    padding: 22px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 22px;
    border: 1px solid #eef1ee;
}
.blog-sidebar .sidebar-title {
    font-size: 1.0rem;
    font-weight: 700;
    color: #1A1A1A;
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid #7BC67E;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.blog-sidebar .sidebar-title i { color: #7BC67E; }

.blog-sidebar .sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.blog-sidebar .sidebar-categories li {
    padding: 8px 0;
    border-bottom: 1px solid #f1f4f1;
}
.blog-sidebar .sidebar-categories li:last-child { border-bottom: none; }
.blog-sidebar .sidebar-categories li a {
    color: #555;
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s;
}
.blog-sidebar .sidebar-categories li a:hover { color: #5BA862; }
.blog-sidebar .sidebar-categories li a i { color: #7BC67E; font-size: 1rem; }
.blog-sidebar .sidebar-categories li.sidebar-active > a {
    color: #2A4A30;
    font-weight: 700;
}

.blog-sidebar .sidebar-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.blog-sidebar .sidebar-tag {
    font-size: 0.78rem;
    color: #2A4A30;
    background: #F0FAF1;
    padding: 4px 12px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.2s;
}
.blog-sidebar .sidebar-tag:hover {
    background: #7BC67E;
    color: #fff;
}

.blog-sidebar .sidebar-authors li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    text-decoration: none;
    color: inherit;
}
.blog-sidebar .sidebar-authors li a img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    background: #e9ecef;
}
.blog-sidebar .sidebar-authors .author-name {
    font-weight: 700;
    color: #1A1A1A;
    font-size: 0.9rem;
}
.blog-sidebar .sidebar-authors .author-role {
    font-size: 0.78rem;
    color: #777;
}

.blog-sidebar .sidebar-cta {
    background: linear-gradient(135deg, #1A1A1A 0%, #2A4A30 100%) !important;
    color: #fff;
    border: none;
}
.blog-sidebar .sidebar-cta .sidebar-title {
    color: #fff;
    border-color: #7BC67E;
}
.blog-sidebar .sidebar-cta h3 {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
}
.blog-sidebar .sidebar-cta p {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.92rem;
    line-height: 1.55;
    margin-bottom: 1rem;
}
.blog-sidebar .sidebar-cta-btn {
    display: inline-block;
    background: #7BC67E;
    color: #1A1A1A;
    font-weight: 700;
    padding: 10px 22px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s;
}
.blog-sidebar .sidebar-cta-btn:hover {
    background: #5BA862;
    color: #1A1A1A;
}

@media (max-width: 991.98px) {
    .blog-sidebar { position: static; margin-top: 2rem; }
}
@media (max-width: 575px) {
    .page-hero { min-height: 220px; padding: 3.5rem 1rem 3rem; }
    .page-hero h1 { font-size: 1.6rem; }
    .articles-heading { font-size: 1.2rem; }
}
