/* ============================================================
   SANALIFE Health Magazine — Frontend Stylesheet
   ============================================================ */

/* === CSS Custom Properties === */
:root {
    --sl-primary: #00a5b5;
    --sl-primary-dark: #008a97;
    --sl-primary-light: #e0f5f7;
    --sl-primary-rgb: 0, 165, 181;
    --sl-secondary: #62cbc9;
    --sl-accent: #62cbc9;
    --sl-text: #1a1a2e;
    --sl-text-muted: #6b7280;
    --sl-bg: #ffffff;
    --sl-bg-light: #f8faf9;
    --sl-bg-section: #f0f7f5;
    --sl-border: #e5e7eb;
    --sl-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --sl-font-serif: 'Merriweather', Georgia, 'Times New Roman', serif;
    --sl-radius: 16px;
    --sl-radius-sm: 10px;
    --sl-radius-xs: 6px;
    --sl-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --sl-shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --sl-shadow-lg: 0 10px 30px rgba(0,0,0,0.1);
    --sl-transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);

    /* Category colors */
    --cat-nutrizione: #2d9f5b;
    --cat-integratori: #00a5b5;
    --cat-benessere: #5c6bc0;
    --cat-fitness: #ef6c00;
    --cat-salute-mentale: #7b1fa2;
    --cat-rimedi-naturali: #558b2f;
}

/* === Base === */
* { box-sizing: border-box; }

body {
    font-family: var(--sl-font);
    color: var(--sl-text);
    background: var(--sl-bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--sl-primary);
    text-decoration: none;
    transition: color var(--sl-transition);
}
a:hover { color: var(--sl-primary-dark); }

img { max-width: 100%; height: auto; }

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--sl-text);
}

/* === Navbar === */
.sl-navbar {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--sl-border);
    position: sticky;
    top: 0;
    z-index: 1030;
    transition: box-shadow var(--sl-transition);
}
.sl-navbar.scrolled {
    box-shadow: var(--sl-shadow-md);
}
.sl-navbar .navbar-brand {
    padding: 0.25rem 0;
    display: flex;
    align-items: center;
}
.sl-navbar .navbar-brand img {
    height: 36px;
    width: auto;
}
.sl-navbar .nav-link {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--sl-text) !important;
    padding: 0.5rem 0.85rem !important;
    border-radius: var(--sl-radius-xs);
    transition: all var(--sl-transition);
}
.sl-navbar .nav-link:hover,
.sl-navbar .nav-link.active {
    color: var(--sl-primary) !important;
    background: var(--sl-primary-light);
}
.sl-navbar .search-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--sl-border);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sl-text-muted);
    transition: all var(--sl-transition);
    cursor: pointer;
}
.sl-navbar .search-btn:hover {
    background: var(--sl-primary-light);
    color: var(--sl-primary);
    border-color: var(--sl-primary);
}

/* === Hero Section === */
.sl-hero {
    background: linear-gradient(135deg, var(--sl-primary-light) 0%, #ffffff 100%);
    padding: 3rem 0;
    margin-bottom: 2rem;
}
.sl-hero-card {
    border-radius: var(--sl-radius);
    overflow: hidden;
    background: var(--sl-bg);
    box-shadow: var(--sl-shadow-lg);
    transition: transform var(--sl-transition);
}
.sl-hero-card:hover {
    transform: translateY(-4px);
}
.sl-hero-card .hero-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}
.sl-hero-content {
    padding: 2rem;
}
.sl-hero-content h1 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}
.sl-hero-content h1 a {
    color: var(--sl-text);
}
.sl-hero-content h1 a:hover {
    color: var(--sl-primary);
}
.sl-hero-content .excerpt {
    color: var(--sl-text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

@media (min-width: 768px) {
    .sl-hero { padding: 4rem 0; }
    .sl-hero-card { display: flex; }
    .sl-hero-card .hero-img-wrapper { flex: 0 0 55%; }
    .sl-hero-card .hero-img { height: 100%; min-height: 380px; }
    .sl-hero-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 2.5rem;
    }
    .sl-hero-content h1 { font-size: 2rem; }
}

/* === Category Badge === */
.cat-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
    transition: opacity var(--sl-transition);
}
.cat-badge:hover { opacity: 0.85; color: #fff; }
.cat-nutrizione .cat-badge,
.cat-badge.cat-nutrizione { background: var(--cat-nutrizione); }
.cat-integratori .cat-badge,
.cat-badge.cat-integratori { background: var(--cat-integratori); }
.cat-benessere .cat-badge,
.cat-badge.cat-benessere { background: var(--cat-benessere); }
.cat-fitness .cat-badge,
.cat-badge.cat-fitness { background: var(--cat-fitness); }
.cat-salute-mentale .cat-badge,
.cat-badge.cat-salute-mentale { background: var(--cat-salute-mentale); }
.cat-rimedi-naturali .cat-badge,
.cat-badge.cat-rimedi-naturali { background: var(--cat-rimedi-naturali); }
.cat-badge.cat-default { background: var(--sl-primary); }

/* === Category Pills === */
.sl-category-pills {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.sl-category-pills::-webkit-scrollbar { display: none; }
.sl-category-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.15rem;
    border-radius: 50px;
    border: 1.5px solid var(--sl-border);
    background: var(--sl-bg);
    color: var(--sl-text);
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    transition: all var(--sl-transition);
    text-decoration: none;
}
.sl-category-pill:hover,
.sl-category-pill.active {
    background: var(--sl-primary);
    color: #fff;
    border-color: var(--sl-primary);
}
.sl-category-pill .pill-count {
    font-size: 0.7rem;
    background: rgba(0,0,0,0.1);
    padding: 0.1rem 0.4rem;
    border-radius: 50px;
}

/* === Article Card === */
.article-card {
    background: var(--sl-bg);
    border-radius: var(--sl-radius);
    overflow: hidden;
    border: 1px solid var(--sl-border);
    transition: all var(--sl-transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--sl-shadow-lg);
    border-color: transparent;
}
.article-card-img-wrapper {
    position: relative;
    overflow: hidden;
}
.article-card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.article-card:hover .article-card-img {
    transform: scale(1.04);
}
.article-card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.article-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}
.article-card-title a {
    color: var(--sl-text);
}
.article-card-title a:hover {
    color: var(--sl-primary);
}
.article-card-excerpt {
    color: var(--sl-text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    flex: 1;
}
.article-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--sl-text-muted);
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--sl-border);
}
.article-card-meta i { font-size: 0.85rem; }

/* === Section Headers === */
.sl-section { padding: 3rem 0; }
.sl-section-alt { background: var(--sl-bg-light); }

.sl-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.75rem;
}
.sl-section-header h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0;
    position: relative;
    padding-left: 1rem;
}
.sl-section-header h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.15em;
    bottom: 0.15em;
    width: 4px;
    background: var(--sl-primary);
    border-radius: 2px;
}
.sl-section-header .view-all {
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* === Sidebar === */
.sl-sidebar .sidebar-widget {
    background: var(--sl-bg);
    border: 1px solid var(--sl-border);
    border-radius: var(--sl-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.sl-sidebar .widget-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--sl-primary);
}
.sl-sidebar .category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sl-sidebar .category-list li {
    margin-bottom: 0.25rem;
}
.sl-sidebar .category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    color: var(--sl-text);
    font-size: 0.9rem;
    border-radius: var(--sl-radius-xs);
    transition: all var(--sl-transition);
}
.sl-sidebar .category-list a:hover {
    background: var(--sl-primary-light);
    color: var(--sl-primary);
}
.sl-sidebar .category-list .count-badge {
    background: var(--sl-bg-light);
    color: var(--sl-text-muted);
    font-size: 0.75rem;
    padding: 0.15rem 0.5rem;
    border-radius: 50px;
    font-weight: 600;
}
.sl-sidebar .recent-post {
    display: flex;
    gap: 0.75rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--sl-border);
}
.sl-sidebar .recent-post:last-child { border-bottom: 0; }
.sl-sidebar .recent-post-img {
    width: 70px;
    height: 70px;
    border-radius: var(--sl-radius-xs);
    object-fit: cover;
    flex-shrink: 0;
}
.sl-sidebar .recent-post-title {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.25rem;
}
.sl-sidebar .recent-post-title a { color: var(--sl-text); }
.sl-sidebar .recent-post-title a:hover { color: var(--sl-primary); }
.sl-sidebar .recent-post-date {
    font-size: 0.75rem;
    color: var(--sl-text-muted);
}
.sl-sidebar .tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.sl-sidebar .tag-cloud a {
    display: inline-block;
    padding: 0.3rem 0.7rem;
    border: 1px solid var(--sl-border);
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--sl-text-muted);
    transition: all var(--sl-transition);
}
.sl-sidebar .tag-cloud a:hover {
    background: var(--sl-primary);
    color: #fff;
    border-color: var(--sl-primary);
}

/* Newsletter widget */
.sl-newsletter-widget {
    background: linear-gradient(135deg, var(--sl-primary) 0%, var(--sl-primary-dark) 100%) !important;
    color: #fff !important;
    border: none !important;
}
.sl-newsletter-widget .widget-title {
    color: #fff;
    border-bottom-color: rgba(255,255,255,0.3);
}
.sl-newsletter-widget p {
    color: rgba(255,255,255,0.85);
    font-size: 0.9rem;
}
.sl-newsletter-widget .form-control {
    border: none;
    border-radius: var(--sl-radius-xs);
    padding: 0.65rem 1rem;
}
.sl-newsletter-widget .btn {
    background: #fff;
    color: var(--sl-primary);
    font-weight: 600;
    border: none;
    border-radius: var(--sl-radius-xs);
    padding: 0.65rem;
    width: 100%;
    margin-top: 0.5rem;
    transition: all var(--sl-transition);
}
.sl-newsletter-widget .btn:hover {
    background: var(--sl-primary-light);
}

/* === Newsletter Banner === */
.sl-newsletter-banner {
    background: linear-gradient(135deg, var(--sl-primary) 0%, #007a87 100%);
    color: #fff;
    padding: 4rem 0;
}
.sl-newsletter-banner h3 {
    color: #fff;
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}
.sl-newsletter-banner p {
    color: rgba(255,255,255,0.85);
    font-size: 1.05rem;
}
.sl-newsletter-banner .form-control {
    border: none;
    border-radius: var(--sl-radius-xs);
    padding: 0.85rem 1.25rem;
    font-size: 1rem;
}
.sl-newsletter-banner .btn-light {
    font-weight: 700;
    padding: 0.85rem 2rem;
    border-radius: var(--sl-radius-xs);
}

/* === Single Article === */
.sl-article-header {
    margin-bottom: 2rem;
}
.sl-article-header h1 {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 1rem;
}
@media (min-width: 768px) {
    .sl-article-header h1 { font-size: 2.5rem; }
}
.sl-article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.25rem;
    color: var(--sl-text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}
.sl-article-meta i {
    color: var(--sl-primary);
    margin-right: 0.3rem;
}
.sl-article-featured-img {
    width: 100%;
    border-radius: var(--sl-radius);
    margin-bottom: 2rem;
    max-height: 500px;
    object-fit: cover;
}

/* Article body content */
.sl-article-body {
    font-family: var(--sl-font-serif);
    font-size: 1.1rem;
    line-height: 1.85;
    color: #333;
}
.sl-article-body h2 {
    font-family: var(--sl-font);
    font-size: 1.5rem;
    font-weight: 800;
    margin: 2.5rem 0 1rem;
    color: var(--sl-text);
}
.sl-article-body h3 {
    font-family: var(--sl-font);
    font-size: 1.25rem;
    font-weight: 700;
    margin: 2rem 0 0.75rem;
    color: var(--sl-text);
}
.sl-article-body p {
    margin-bottom: 1.25rem;
}
.sl-article-body blockquote {
    border-left: 4px solid var(--sl-primary);
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background: var(--sl-primary-light);
    border-radius: 0 var(--sl-radius-xs) var(--sl-radius-xs) 0;
    font-style: italic;
}
.sl-article-body ul, .sl-article-body ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}
.sl-article-body li { margin-bottom: 0.4rem; }
.sl-article-body img {
    border-radius: var(--sl-radius-sm);
    margin: 1.5rem 0;
}

/* Article tags */
.sl-article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--sl-border);
    border-bottom: 1px solid var(--sl-border);
    margin: 2rem 0;
}
.sl-article-tags .tag-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--sl-text);
    margin-right: 0.5rem;
    display: flex;
    align-items: center;
}
.sl-article-tags a {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    border: 1px solid var(--sl-border);
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--sl-text-muted);
    transition: all var(--sl-transition);
}
.sl-article-tags a:hover {
    background: var(--sl-primary);
    color: #fff;
    border-color: var(--sl-primary);
}

/* Share buttons */
.sl-share {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}
.sl-share-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--sl-text);
}
.sl-share a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.9rem;
    transition: opacity var(--sl-transition);
}
.sl-share a:hover { opacity: 0.8; color: #fff; }
.sl-share .share-fb { background: #1877f2; }
.sl-share .share-tw { background: #1da1f2; }
.sl-share .share-wa { background: #25d366; }
.sl-share .share-li { background: #0a66c2; }

/* === Related Articles === */
.sl-related {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--sl-border);
}
.sl-related h3 {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

/* === Breadcrumb === */
.sl-breadcrumb {
    padding: 1rem 0;
}
.sl-breadcrumb .breadcrumb {
    margin: 0;
    background: transparent;
    padding: 0;
    font-size: 0.85rem;
}
.sl-breadcrumb .breadcrumb-item a {
    color: var(--sl-text-muted);
}
.sl-breadcrumb .breadcrumb-item.active {
    color: var(--sl-primary);
}

/* === Pagination === */
.sl-pagination {
    display: flex;
    justify-content: center;
    margin-top: 2.5rem;
}
.sl-pagination .page-link {
    border: 1px solid var(--sl-border);
    color: var(--sl-text);
    padding: 0.5rem 0.9rem;
    margin: 0 0.15rem;
    border-radius: var(--sl-radius-xs) !important;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all var(--sl-transition);
}
.sl-pagination .page-link:hover {
    background: var(--sl-primary-light);
    color: var(--sl-primary);
    border-color: var(--sl-primary);
}
.sl-pagination .page-item.active .page-link {
    background: var(--sl-primary);
    border-color: var(--sl-primary);
    color: #fff;
}
.sl-pagination .page-item.disabled .page-link {
    color: var(--sl-text-muted);
    opacity: 0.5;
}

/* === Footer === */
.sl-footer {
    background: #1a1a2e;
    color: rgba(255,255,255,0.7);
    padding: 4rem 0 0;
    margin-top: 4rem;
}
.sl-footer h5 {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}
.sl-footer a {
    color: rgba(255,255,255,0.7);
    transition: color var(--sl-transition);
}
.sl-footer a:hover { color: #fff; }
.sl-footer .footer-brand {
    display: inline-block;
    margin-bottom: 1rem;
}
.sl-footer .footer-brand .footer-logo {
    height: 32px;
    width: auto;
    filter: brightness(0) invert(1);
}
.sl-footer .footer-desc {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}
.sl-footer .footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sl-footer .footer-links li { margin-bottom: 0.6rem; }
.sl-footer .footer-links a {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.sl-footer .footer-links a:hover { color: var(--sl-primary); }
.sl-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1.5rem 0;
    margin-top: 3rem;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
}

/* === About Page === */
.sl-about-hero {
    background: linear-gradient(135deg, var(--sl-primary-light) 0%, #fff 100%);
    padding: 4rem 0;
    text-align: center;
}
.sl-about-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
}
.sl-about-hero .lead {
    font-size: 1.15rem;
    color: var(--sl-text-muted);
    max-width: 650px;
    margin: 0 auto;
}
.sl-about-topics .topic-card {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: var(--sl-radius);
    border: 1px solid var(--sl-border);
    transition: all var(--sl-transition);
    height: 100%;
}
.sl-about-topics .topic-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--sl-shadow-lg);
    border-color: transparent;
}
.sl-about-topics .topic-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #fff;
}
.sl-about-topics .topic-card h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.sl-about-topics .topic-card p {
    font-size: 0.9rem;
    color: var(--sl-text-muted);
    margin: 0;
}

/* === Search Page === */
.sl-search-header {
    background: var(--sl-bg-light);
    padding: 2.5rem 0;
}
.sl-search-header h1 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}
.sl-search-form .form-control {
    border: 2px solid var(--sl-border);
    border-radius: var(--sl-radius-xs);
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
    transition: border-color var(--sl-transition);
}
.sl-search-form .form-control:focus {
    border-color: var(--sl-primary);
    box-shadow: 0 0 0 3px rgba(var(--sl-primary-rgb), 0.15);
}
.sl-search-form .btn-primary {
    background: var(--sl-primary);
    border: none;
    border-radius: var(--sl-radius-xs);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
}
.sl-search-form .btn-primary:hover {
    background: var(--sl-primary-dark);
}

/* === 404 Page === */
.sl-404 {
    text-align: center;
    padding: 6rem 0;
}
.sl-404 h1 {
    font-size: 6rem;
    font-weight: 800;
    color: var(--sl-primary);
    margin-bottom: 1rem;
}
.sl-404 p {
    font-size: 1.15rem;
    color: var(--sl-text-muted);
    margin-bottom: 2rem;
}
.sl-404 .btn-primary {
    background: var(--sl-primary);
    border: none;
    border-radius: var(--sl-radius-xs);
    padding: 0.75rem 2rem;
    font-weight: 600;
}

/* === Buttons === */
.btn-sl-primary {
    background: var(--sl-primary);
    color: #fff;
    border: none;
    border-radius: var(--sl-radius-xs);
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    transition: all var(--sl-transition);
}
.btn-sl-primary:hover {
    background: var(--sl-primary-dark);
    color: #fff;
    transform: translateY(-1px);
}
.btn-sl-outline {
    background: transparent;
    color: var(--sl-primary);
    border: 2px solid var(--sl-primary);
    border-radius: var(--sl-radius-xs);
    padding: 0.55rem 1.5rem;
    font-weight: 600;
    transition: all var(--sl-transition);
}
.btn-sl-outline:hover {
    background: var(--sl-primary);
    color: #fff;
}

/* === Archive page header === */
.sl-archive-header {
    background: var(--sl-bg-light);
    padding: 2.5rem 0;
    margin-bottom: 2rem;
}
.sl-archive-header h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}
.sl-archive-header .archive-desc {
    color: var(--sl-text-muted);
    font-size: 1rem;
    max-width: 600px;
}
.sl-archive-header .result-count {
    color: var(--sl-text-muted);
    font-size: 0.9rem;
}

/* === Newsletter Feedback === */
.newsletter-feedback {
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: var(--sl-radius-xs);
    padding: 0;
    transition: all var(--sl-transition);
}
.newsletter-feedback:empty {
    display: none;
}
.newsletter-success {
    color: #d4edda;
    background: rgba(40, 167, 69, 0.15);
    padding: 0.6rem 1rem;
    border: 1px solid rgba(40, 167, 69, 0.3);
    display: block;
}
.newsletter-error {
    color: #f8d7da;
    background: rgba(220, 53, 69, 0.15);
    padding: 0.6rem 1rem;
    border: 1px solid rgba(220, 53, 69, 0.3);
    display: block;
}
/* Light background variant (sidebar) */
.sl-sidebar .newsletter-success {
    color: #155724;
    background: #d4edda;
    border-color: #c3e6cb;
}
.sl-sidebar .newsletter-error {
    color: #721c24;
    background: #f8d7da;
    border-color: #f5c6cb;
}

/* === Responsive === */
@media (max-width: 991.98px) {
    .sl-sidebar { margin-top: 2rem; }
}
@media (max-width: 575.98px) {
    .article-card-img { height: 180px; }
    .sl-hero-card .hero-img { height: 250px; }
    .sl-section { padding: 2rem 0; }
    .sl-newsletter-banner { padding: 2.5rem 0; }
    .sl-footer { padding: 3rem 0 0; }
}
