/*
 * =============================================
 * BullRun — Stock Market Blog Stylesheet
 * Theme: Dark | Fonts: Syne + DM Sans
 * =============================================
 */

/* ----- CSS Variables ----- */
:root {
    --bg: #0a0a0a;
    --card: #141414;
    --border: #1e1e1e;
    --text: #f0ebe0;
    --muted: #888888;
    --green: #00e676;
    --red: #ff5252;
    --gold: #f5c842;
    --blue: #64b5f6;
    --purple: #ce93d8;
    --orange: #ff8a65;
    --radius: 12px;
    --shadow: 0 4px 24px rgba(0,0,0,0.3);
}

/* ----- Light mode overrides ----- */
.light-mode {
    --bg:     #f5f5f0;
    --card:   #ffffff;
    --border: #e0ddd6;
    --text:   #1a1a1a;
    --muted:  #666666;
    --shadow: 0 4px 24px rgba(0,0,0,0.08);
}
.light-mode .ticker-wrap { background: #e8e8e3; border-color: #d4d0c8; }
.light-mode .ticker-item { border-color: #d4d0c8; }
.light-mode .navbar { background: rgba(245,245,240,0.95); border-color: #e0ddd6; }
.light-mode .hero-featured { background: #e8e5de; }
.light-mode .hero-featured-bg { background-color: #e8e5de; }
.light-mode .hero-featured-bg::after {
    background: linear-gradient(to top, rgba(245,245,240,0.96) 0%, rgba(245,245,240,0.55) 55%, transparent 100%);
}
.light-mode .hero-latest { background: #fff; }
.light-mode .site-footer { background: #eeede8; border-color: #dddad2; }
.light-mode .post-card { background: #fff; }
.light-mode .mobile-menu { background: #f5f5f0; }
.light-mode .newsletter-banner {
    background: linear-gradient(135deg, #e8f5e9 0%, #f0f4f0 40%, #eaf2ea 100%);
    border-top: 1px solid rgba(0, 180, 80, 0.2);
    border-bottom: 1px solid rgba(0, 180, 80, 0.2);
}
.light-mode .newsletter-banner-form input[type="email"] {
    background: #fff;
    border-color: rgba(0, 150, 60, 0.3);
    color: #1a1a1a;
}
.light-mode .newsletter-banner-form input[type="email"]::placeholder { color: #999; }

/* Theme toggle button */
.theme-toggle {
    background: none;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 5px 12px;
    cursor: pointer;
    color: var(--text);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: border-color 0.2s, background 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--green); color: var(--green); }
.theme-toggle .icon-dark  { display: inline; }
.theme-toggle .icon-light { display: none; }
.light-mode .theme-toggle .icon-dark  { display: none; }
.light-mode .theme-toggle .icon-light { display: inline; }

/* ----- Reset ----- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'DM Sans', sans-serif;
    font-weight: 300;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: var(--green);
    text-decoration: none;
    transition: opacity 0.2s;
}
a:hover { opacity: 0.8; }

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    line-height: 1.3;
}

/* =============================================
   TICKER TAPE
   ============================================= */
.ticker-wrap {
    width: 100%;
    overflow: hidden;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
    position: relative;
}

.ticker {
    display: flex;
    animation: ticker-scroll 30s linear infinite;
    width: max-content;
}

.ticker:hover { animation-play-state: paused; }

.ticker-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 24px;
    white-space: nowrap;
    font-size: 0.85rem;
    font-weight: 400;
}

.ticker-item .symbol {
    color: var(--text);
    font-weight: 700;
    font-family: 'Syne', sans-serif;
}

.ticker-item .price { color: var(--muted); }

.ticker-item .change { font-weight: 700; }
.ticker-item .change.up { color: var(--green); }
.ticker-item .change.down { color: var(--red); }

@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 0 2rem;
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-logo {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav-logo span { color: var(--green); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}

.nav-links a {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 400;
    transition: color 0.2s;
    position: relative;
}
.nav-links a:hover,
.nav-links a.active {
    color: var(--text);
    opacity: 1;
}
.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--green);
    border-radius: 2px;
}

.nav-search {
    display: flex;
    align-items: center;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 6px 12px;
    gap: 8px;
}
.nav-search input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    width: 160px;
}
.nav-search input::placeholder { color: var(--muted); }
.nav-search button {
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
    font-size: 1rem;
    display: flex;
}
.nav-search button:hover { color: var(--green); }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: 0.3s;
    border-radius: 2px;
}

/* Mobile menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 10, 0.98);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
}
.mobile-menu.active { display: flex; }
.mobile-menu a {
    font-family: 'Syne', sans-serif;
    font-size: 1.5rem;
    color: var(--text);
    font-weight: 700;
}
.mobile-menu a:hover { color: var(--green); }
.mobile-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    color: var(--text);
    font-size: 2rem;
    cursor: pointer;
}

/* =============================================
   LAYOUT / CONTAINER
   ============================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section { padding: 3rem 0; }

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.content-sidebar {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
}

/* =============================================
   BREADCRUMB
   ============================================= */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--muted);
    padding: 1.5rem 0 0.5rem;
    flex-wrap: wrap;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--green); }
.breadcrumb .sep { color: #333; }

/* =============================================
   HERO GRID — FEATURED + 3 LATEST
   ============================================= */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 16px;
    margin-bottom: 2rem;
    min-height: 520px;
}

/* ---- Left: big featured card ---- */
.hero-featured {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: linear-gradient(135deg, #0d1a0d 0%, #111 60%, #0a0a0a 100%);
    border: 1px solid var(--border);
    display: flex;
    align-items: flex-end;
    text-decoration: none;
    color: var(--text);
    transition: border-color 0.25s;
}
.hero-featured:hover { border-color: rgba(0,230,118,0.35); opacity: 1; color: var(--text); }

.hero-featured--empty { align-items: center; justify-content: center; }

.hero-featured-bg {
    position: absolute;
    inset: 0;
    background-color: #0a0a0a;
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
}
.hero-featured-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.30) 55%, transparent 100%);
}

.hero-featured-content {
    position: relative;
    z-index: 2;
    padding: 2.5rem;
    width: 100%;
    background: linear-gradient(transparent, rgba(8,8,8,0.97) 60%);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    font-family: 'Syne', sans-serif;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    line-height: 1.25;
    color: var(--text);
}
.hero-featured:hover .hero-title { color: var(--green); }

.hero-excerpt {
    color: var(--muted);
    font-size: 0.93rem;
    margin-bottom: 1.1rem;
    line-height: 1.65;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}
.hero-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--muted);
    flex-shrink: 0;
}

.hero-read-btn {
    display: inline-block;
    padding: 9px 22px;
    background: var(--green);
    color: var(--bg);
    border-radius: 8px;
    font-family: 'Syne', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    transition: opacity 0.2s;
}
.hero-featured:hover .hero-read-btn { opacity: 0.85; }

/* ---- Right: 3 latest posts panel ---- */
.hero-latest {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.hero-latest-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    background: rgba(255,255,255,0.02);
}

.hero-latest-label {
    font-family: 'Syne', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--muted);
}

.hero-latest-all {
    font-size: 0.78rem;
    color: var(--green);
}
.hero-latest-all:hover { opacity: 0.75; }

.hero-latest-item {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: var(--text);
    transition: background 0.2s;
    flex: 1;
}
.hero-latest-item:last-child { border-bottom: none; }
.hero-latest-item:hover { background: rgba(0,230,118,0.04); opacity: 1; color: var(--text); }

.hero-latest-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--lp-color, var(--green)) 12%, #1a1a1a);
    border: 1px solid color-mix(in srgb, var(--lp-color, var(--green)) 25%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.hero-latest-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.hero-latest-cat {
    font-size: 0.7rem;
    font-weight: 700;
    font-family: 'Syne', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.hero-latest-title {
    font-size: 0.88rem;
    font-weight: 400;
    line-height: 1.45;
    color: var(--text);
    /* clamp to 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hero-latest-item:hover .hero-latest-title { color: var(--green); }

.hero-latest-date {
    font-size: 0.75rem;
    color: var(--muted);
    margin-top: 2px;
}

/* keep old .featured-hero for post.php / other pages that may reference it */
.featured-hero {
    position: relative;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 2rem;
    min-height: 400px;
    display: flex;
    align-items: flex-end;
}
.featured-hero .featured-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,#141414 0%,#1a2a1a 100%);
    opacity: 0.6;
}
.featured-hero .featured-content {
    position: relative; z-index: 2; padding: 3rem; width: 100%;
    background: linear-gradient(transparent,rgba(10,10,10,.95));
}
.featured-hero .badge {
    display: inline-block; padding: 4px 14px; border-radius: 20px;
    font-size: .75rem; font-weight: 700; font-family: 'Syne',sans-serif;
    margin-bottom: 1rem; text-transform: uppercase; letter-spacing: .5px;
}
.featured-hero h1 { font-size: 2.2rem; font-weight: 800; margin-bottom: .75rem; max-width: 700px; }
.featured-hero .excerpt { color: var(--muted); font-size: 1rem; max-width: 600px; margin-bottom: 1rem; }
.featured-hero .meta { display: flex; align-items: center; gap: 16px; font-size: .85rem; color: var(--muted); }

/* =============================================
   POST CARDS
   ============================================= */
.post-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.2s, border-color 0.2s;
    display: flex;
    flex-direction: column;
}
.post-card:hover {
    transform: translateY(-4px);
    border-color: #2a2a2a;
}

.post-card .card-image {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, #1a1a2e 0%, #141414 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    overflow: hidden;
}

.post-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-card .card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-card .badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 16px;
    font-size: 0.7rem;
    font-weight: 700;
    font-family: 'Syne', sans-serif;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: fit-content;
}

.post-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}
.post-card h3 a { color: var(--text); }
.post-card h3 a:hover { color: var(--green); opacity: 1; }

.post-card .excerpt {
    color: var(--muted);
    font-size: 0.88rem;
    margin-bottom: 1rem;
    flex: 1;
}

.post-card .card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--muted);
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

.post-card .card-footer .views { display: flex; align-items: center; gap: 4px; }

/* =============================================
   SINGLE POST
   ============================================= */
.post-header {
    padding: 2rem 0 1rem;
}

.post-header .badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: 'Syne', sans-serif;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.post-header h1 {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 0.88rem;
    color: var(--muted);
    flex-wrap: wrap;
}

.post-meta .dot {
    width: 4px;
    height: 4px;
    background: var(--muted);
    border-radius: 50%;
}

/* Post content typography */
.post-content {
    font-size: 1.05rem;
    line-height: 1.85;
    padding: 2rem 0;
}

.post-content h2 {
    font-size: 1.6rem;
    margin: 2rem 0 1rem;
    color: var(--text);
}

.post-content h3 {
    font-size: 1.3rem;
    margin: 1.5rem 0 0.75rem;
    color: var(--text);
}

.post-content p {
    margin-bottom: 1.25rem;
    color: rgba(240, 235, 224, 0.9);
}

.post-content ul, .post-content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.post-content li {
    margin-bottom: 0.5rem;
    color: rgba(240, 235, 224, 0.9);
}

.post-content blockquote {
    border-left: 4px solid var(--green);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: rgba(0, 230, 118, 0.05);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--muted);
}

.post-content a {
    color: var(--green);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.post-content img {
    border-radius: var(--radius);
    margin: 1.5rem 0;
}

.post-content strong { font-weight: 700; color: var(--text); }

/* Share buttons */
.share-section {
    padding: 2rem 0;
    border-top: 1px solid var(--border);
}

.share-section h4 {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.share-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 400;
    font-family: 'DM Sans', sans-serif;
    color: #fff;
    transition: opacity 0.2s;
    border: none;
    cursor: pointer;
    text-decoration: none;
}
.share-btn:hover { opacity: 0.85; color: #fff; }
.share-btn.facebook { background: #1877f2; }
.share-btn.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.share-btn.linkedin { background: #0a66c2; }
.share-btn.whatsapp { background: #25d366; }

/* =============================================
   SIDEBAR
   ============================================= */
.sidebar { position: sticky; top: 80px; }

.sidebar-widget {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.sidebar-widget h3 {
    font-size: 1rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Category list in sidebar */
.category-list { list-style: none; }
.category-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}
.category-list li:last-child { border-bottom: none; }
.category-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text);
    font-size: 0.9rem;
}
.category-list a:hover { color: var(--green); }
.category-list .count {
    font-size: 0.8rem;
    color: var(--muted);
    background: var(--bg);
    padding: 2px 10px;
    border-radius: 12px;
}

/* Newsletter widget */
.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.newsletter-form input[type="email"] {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}
.newsletter-form input[type="email"]:focus {
    border-color: var(--green);
}
.newsletter-form input[type="email"]::placeholder { color: var(--muted); }

.newsletter-form .subscribe-btn {
    width: 100%;
    padding: 12px;
    background: var(--green);
    color: var(--bg);
    border: none;
    border-radius: 8px;
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: opacity 0.2s;
}
.newsletter-form .subscribe-btn:hover { opacity: 0.9; }
.newsletter-form .subscribe-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.newsletter-msg {
    font-size: 0.85rem;
    padding: 8px;
    border-radius: 6px;
    text-align: center;
    display: none;
}
.newsletter-msg.success {
    display: block;
    background: rgba(0, 230, 118, 0.1);
    color: var(--green);
}
.newsletter-msg.error {
    display: block;
    background: rgba(255, 82, 82, 0.1);
    color: var(--red);
}

/* Related posts */
.related-posts { padding: 2rem 0; }
.related-posts h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

/* =============================================
   PAGINATION
   ============================================= */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 2rem 0;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 0.9rem;
    font-family: 'DM Sans', sans-serif;
    transition: 0.2s;
}
.page-btn:hover {
    border-color: var(--green);
    color: var(--green);
    opacity: 1;
}
.page-btn.active {
    background: var(--green);
    color: var(--bg);
    border-color: var(--green);
    font-weight: 700;
}
.page-dots {
    color: var(--muted);
    padding: 0 4px;
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
    background: var(--card);
    border-top: 1px solid var(--border);
    padding: 3rem 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.4fr;
    gap: 40px;
    margin-bottom: 2rem;
}

.footer-brand h3 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}
.footer-brand h3 span { color: var(--green); }
.footer-brand p {
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.7;
}

.footer-links h4 {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    color: var(--text);
}
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a {
    color: var(--muted);
    font-size: 0.88rem;
}
.footer-links a:hover { color: var(--green); }

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 1rem;
}
.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--muted);
    font-size: 1rem;
    transition: 0.2s;
}
.footer-social a:hover {
    border-color: var(--green);
    color: var(--green);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: var(--muted);
    font-size: 0.8rem;
}
/* =============================================
   CATEGORY NEWS BLOCKS
   ============================================= */
.cat-news-section {
    padding: 2.5rem 0 0;
}
.cat-news-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.2rem;
    padding-bottom: 0.9rem;
    border-bottom: 2px solid var(--border);
    position: relative;
}
.cat-news-title-wrap::before {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--cn-color, var(--green));
    border-radius: 2px;
    margin-bottom: 6px;
}
.cat-news-label {
    font-family: 'Syne', sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: 0.04em;
}
.cat-news-viewall {
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    opacity: 0.85;
    transition: opacity 0.2s;
}
.cat-news-viewall:hover { opacity: 1; }

/* Top row: big + side */
.cat-news-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

/* Big card */
.cat-news-big {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--text);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--card);
    border: 1px solid var(--border);
    transition: border-color 0.2s;
}
.cat-news-big:hover { border-color: var(--cn-color, var(--green)); }
.cat-news-big-img {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--border);
}
.cat-news-big-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}
.cat-news-big:hover .cat-news-big-img img { transform: scale(1.03); }
.cat-news-big-body {
    padding: 16px 18px 18px;
    flex: 1;
}
.cat-news-big-title {
    font-family: 'Syne', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 8px;
    color: var(--text);
}
.cat-news-big:hover .cat-news-big-title { color: var(--cn-color, var(--green)); }
.cat-news-big-excerpt {
    color: var(--muted);
    font-size: 0.87rem;
    line-height: 1.6;
    margin-bottom: 10px;
}
.cat-news-big-meta { font-size: 0.78rem; color: var(--muted); }

/* Side card */
.cat-news-side {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--text);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--card);
    border: 1px solid var(--border);
    transition: border-color 0.2s;
}
.cat-news-side:hover { border-color: var(--cn-color, var(--green)); }
.cat-news-side-img {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--border);
}
.cat-news-side-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}
.cat-news-side:hover .cat-news-side-img img { transform: scale(1.03); }
.cat-news-side-body {
    padding: 14px 16px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.cat-news-side-body h4 {
    font-family: 'Syne', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text);
}
.cat-news-side:hover .cat-news-side-body h4 { color: var(--cn-color, var(--green)); }
.cat-news-side-body p { font-size: 0.83rem; color: var(--muted); line-height: 1.55; }
.cat-news-side-body span { font-size: 0.76rem; color: var(--muted); margin-top: auto; }

/* Bottom row: 3 small cards */
.cat-news-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 2rem;
}
.cat-news-small {
    text-decoration: none;
    color: var(--text);
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.cat-news-small-img {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 8px;
    background: var(--border);
}
.cat-news-small-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}
.cat-news-small:hover .cat-news-small-img img { transform: scale(1.04); }
.cat-news-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    background: rgba(0,0,0,0.55);
    border: 2px solid rgba(255,255,255,0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: #fff;
    opacity: 0;
    transition: opacity 0.2s;
}
.cat-news-small:hover .cat-news-play-icon { opacity: 1; }
.cat-news-small-title {
    font-family: 'Syne', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text);
}
.cat-news-small:hover .cat-news-small-title { color: var(--cn-color, var(--green)); }
.cat-news-small-meta { font-size: 0.76rem; color: var(--muted); }

/* No-image placeholder */
.cat-news-no-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    background: rgba(0,0,0,0.15);
    color: var(--cn-color, var(--green));
}

/* Responsive */
@media (max-width: 768px) {
    .cat-news-top { grid-template-columns: 1fr; }
    .cat-news-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .cat-news-row { grid-template-columns: 1fr; }
}

/* =============================================
   PUBLIC FORM CONTROLS (used on contact page)
   ============================================= */
.form-group {
    margin-bottom: 18px;
}
.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 7px;
    letter-spacing: 0.01em;
}
.form-control {
    width: 100%;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 14px;
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.92rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}
.form-control:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(0,230,118,0.10);
}
.form-control::placeholder { color: #555; }
textarea.form-control { resize: vertical; min-height: 130px; }

/* =============================================
   LEGAL PAGES (privacy, terms, cookie, contact)
   ============================================= */
.legal-page {
    max-width: 820px;
    margin: 2rem auto 4rem;
    padding: 0 0 2rem;
}
.legal-page h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
    color: var(--text);
}
.legal-updated {
    color: var(--muted);
    font-size: 0.88rem;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1.5rem;
}
.legal-page section {
    margin-bottom: 2rem;
}
.legal-page h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--green);
    margin-bottom: 0.75rem;
}
.legal-page p {
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.8;
    margin-bottom: 0.75rem;
}
.legal-page ul {
    list-style: disc;
    padding-left: 1.5rem;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.9;
}
.legal-page a {
    color: var(--green);
    text-decoration: underline;
    text-underline-offset: 3px;
}
/* Contact page needs more width for the two-column grid */
.contact-page {
    max-width: 1100px;
}

/* Cookie table */
.cookie-table-wrap { overflow-x: auto; margin: 1rem 0; }
.cookie-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}
.cookie-table th {
    text-align: left;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    font-weight: 700;
    background: rgba(255,255,255,0.02);
}
.cookie-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    color: var(--muted);
    vertical-align: top;
}
.cookie-table tr:last-child td { border-bottom: none; }

/* Contact page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    margin-top: 2rem;
}
.contact-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 16px;
}
.contact-card-icon {
    font-size: 1.6rem;
    flex-shrink: 0;
}
.contact-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text);
}
.contact-card a {
    color: var(--green);
    font-size: 0.92rem;
    display: block;
    margin-bottom: 4px;
}
.contact-card p {
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.6;
    margin: 0;
}
.contact-disclaimer {
    background: rgba(0,230,118,0.05);
    border: 1px solid rgba(0,230,118,0.2);
    border-radius: var(--radius);
    padding: 14px 16px;
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.6;
}
.contact-form-wrap h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}
.btn-contact-submit {
    display: inline-block;
    background: var(--green);
    color: #000;
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 12px 28px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.2s;
}
.btn-contact-submit:hover { opacity: 0.85; }
.contact-form-hint {
    margin-top: 16px;
    font-size: 0.82rem;
    color: var(--muted);
}
.contact-form-hint a { color: var(--green); }
@media (max-width: 768px) {
    .contact-grid { grid-template-columns: 1fr; }
    .legal-page h1 { font-size: 1.6rem; }
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.footer-bottom-links a {
    color: var(--muted);
    font-size: 0.8rem;
    text-decoration: none;
}
.footer-bottom-links a:hover { color: var(--green); }

.disclaimer {
    background: rgba(255, 82, 82, 0.05);
    border: 1px solid rgba(255, 82, 82, 0.15);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    font-size: 0.8rem;
    color: var(--muted);
    line-height: 1.6;
}
.disclaimer strong { color: var(--red); }

/* =============================================
   SEARCH PAGE
   ============================================= */
.search-header {
    padding: 2rem 0;
    text-align: center;
}
.search-header h1 { font-size: 2rem; margin-bottom: 0.5rem; }
.search-header p { color: var(--muted); }

.search-form-large {
    max-width: 600px;
    margin: 1.5rem auto;
    display: flex;
    gap: 10px;
}

.search-form-large input {
    flex: 1;
    padding: 14px 20px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    outline: none;
}
.search-form-large input:focus { border-color: var(--green); }

.search-form-large button {
    padding: 14px 28px;
    background: var(--green);
    color: var(--bg);
    border: none;
    border-radius: 8px;
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s;
}
.search-form-large button:hover { opacity: 0.9; }

/* =============================================
   CATEGORY PAGE HEADER
   ============================================= */
.category-header {
    padding: 2rem 0;
}
.category-header .badge {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    font-family: 'Syne', sans-serif;
    margin-bottom: 1rem;
}
.category-header h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}
.category-header p {
    color: var(--muted);
    font-size: 1rem;
}

/* =============================================
   404 PAGE
   ============================================= */
.page-404 {
    text-align: center;
    padding: 6rem 2rem;
}
.page-404 .error-code {
    font-family: 'Syne', sans-serif;
    font-size: 8rem;
    font-weight: 800;
    color: var(--green);
    line-height: 1;
    margin-bottom: 1rem;
}
.page-404 h2 {
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
}
.page-404 p {
    color: var(--muted);
    margin-bottom: 2rem;
}
.page-404 .btn {
    display: inline-block;
    padding: 12px 32px;
    background: var(--green);
    color: var(--bg);
    border-radius: 8px;
    font-family: 'Syne', sans-serif;
    font-weight: 700;
}
.page-404 .btn:hover { opacity: 0.9; }

/* =============================================
   TOAST NOTIFICATIONS
   ============================================= */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
    max-width: 380px;
}

.toast {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    box-shadow: var(--shadow);
    animation: toast-in 0.3s ease;
    position: relative;
}

.toast.success { border-left: 4px solid var(--green); }
.toast.error { border-left: 4px solid var(--red); }
.toast.warning { border-left: 4px solid var(--gold); }
.toast.info { border-left: 4px solid var(--blue); }

.toast .toast-close {
    position: absolute;
    top: 8px;
    right: 10px;
    background: none;
    border: none;
    color: var(--muted);
    font-size: 1.1rem;
    cursor: pointer;
    line-height: 1;
}
.toast .toast-close:hover { color: var(--text); }

.toast-out { animation: toast-out 0.3s ease forwards; }

@keyframes toast-in {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes toast-out {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

/* =============================================
   SECTION TITLE
   ============================================= */
.section-title {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--green);
    border-radius: 2px;
}

/* =============================================
   CATEGORY CIRCLES — HORIZONTAL SCROLL
   ============================================= */
.cat-section {
    padding: 3rem 0;
    background: var(--card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

/* Scroll wrapper — hides scrollbar but stays scrollable */
.cat-scroll-wrap {
    overflow-x: auto;
    overflow-y: visible;
    padding-bottom: 12px;
    /* Custom scrollbar (thin green) */
    scrollbar-width: thin;
    scrollbar-color: var(--green) var(--border);
}
.cat-scroll-wrap::-webkit-scrollbar {
    height: 4px;
}
.cat-scroll-wrap::-webkit-scrollbar-track {
    background: var(--border);
    border-radius: 2px;
}
.cat-scroll-wrap::-webkit-scrollbar-thumb {
    background: var(--green);
    border-radius: 2px;
}

/* Flex row — all items in one horizontal line */
.cat-circle-grid {
    display: flex;
    flex-direction: row;
    gap: 36px;
    padding: 8px 4px 4px;
    min-width: max-content; /* prevent wrapping */
}

.cat-circle-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: var(--text);
    transition: transform 0.25s;
    flex-shrink: 0;
    width: 140px;
    scroll-snap-align: start;
}
.cat-circle-item:hover {
    transform: translateY(-6px);
    opacity: 1;
    color: var(--text);
}

.cat-circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 3px solid var(--cat-color, var(--green));
    background: radial-gradient(circle at 40% 40%,
        color-mix(in srgb, var(--cat-color, var(--green)) 18%, #1a1a1a),
        #111 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 0 var(--cat-color, var(--green));
    transition: box-shadow 0.3s, transform 0.3s;
}
.cat-circle-item:hover .cat-circle {
    box-shadow: 0 0 0 6px color-mix(in srgb, var(--cat-color, var(--green)) 20%, transparent);
    transform: scale(1.05);
}

.cat-circle-icon {
    font-size: 3rem;
    line-height: 1;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
}

.cat-circle-name {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text);
    text-align: center;
    white-space: nowrap;
}
.cat-circle-item:hover .cat-circle-name {
    color: var(--green);
}

.cat-circle-count {
    font-size: 0.78rem;
    color: var(--muted);
    margin-top: -8px;
}

/* =============================================
   NEWSLETTER BANNER (above footer)
   ============================================= */
.newsletter-banner {
    background: linear-gradient(135deg, #0d1f0d 0%, #111 40%, #0a0a0a 100%);
    border-top: 1px solid rgba(0, 230, 118, 0.15);
    border-bottom: 1px solid rgba(0, 230, 118, 0.15);
    padding: 4rem 0;
}

.newsletter-banner-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.newsletter-banner-text h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}
.newsletter-banner-text h2 span { color: var(--green); }
.newsletter-banner-text p {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.newsletter-banner-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.newsletter-banner-form input[type="email"] {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(0, 230, 118, 0.25);
    border-radius: 10px;
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
}
.newsletter-banner-form input[type="email"]:focus {
    border-color: var(--green);
}
.newsletter-banner-form input[type="email"]::placeholder { color: #555; }

.newsletter-banner-form .subscribe-btn {
    padding: 14px;
    background: var(--green);
    color: var(--bg);
    border: none;
    border-radius: 10px;
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
    letter-spacing: 0.3px;
}
.newsletter-banner-form .subscribe-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* =============================================
   UTILITY CLASSES
   ============================================= */
.text-green { color: var(--green); }
.text-red { color: var(--red); }
.text-gold { color: var(--gold); }
.text-muted { color: var(--muted); }
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--muted);
}
.no-results h3 { margin-bottom: 0.5rem; color: var(--text); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        min-height: unset;
    }
    .hero-featured { min-height: 360px; }
    .hero-latest { flex-direction: row; flex-wrap: wrap; }
    .hero-latest-item { flex: 1 1 calc(33% - 1px); border-bottom: none; border-right: 1px solid var(--border); }
    .hero-latest-item:last-child { border-right: none; }

    .content-sidebar {
        grid-template-columns: 1fr;
    }
    .sidebar { position: static; }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .footer-bottom-links { gap: 14px; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-search { display: none; }
    .hamburger { display: flex; }

    .hero-latest { flex-direction: column; }
    .hero-latest-item { flex: unset; border-right: none; border-bottom: 1px solid var(--border); }
    .hero-featured { min-height: 300px; }
    .hero-title { font-size: 1.5rem; }

    .grid-2 { grid-template-columns: 1fr; }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }

    /* Circles shrink slightly on mobile but still scroll horizontally */
    .cat-circle { width: 110px; height: 110px; }
    .cat-circle-item { width: 110px; }
    .cat-circle-icon { font-size: 2.4rem; }

    .newsletter-banner-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .newsletter-banner-text h2 { font-size: 1.5rem; }

    .featured-hero { min-height: 300px; }
    .featured-hero h1 { font-size: 1.6rem; }
    .featured-hero .featured-content { padding: 2rem; }

    .post-header h1 { font-size: 1.8rem; }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .search-form-large {
        flex-direction: column;
    }

    .container { padding: 0 1rem; }
    .navbar { padding: 0 1rem; }

    .share-buttons { flex-direction: column; }
    .share-btn { justify-content: center; }

    .page-404 .error-code { font-size: 5rem; }
}

@media (max-width: 480px) {
    .featured-hero h1 { font-size: 1.3rem; }
    .post-header h1 { font-size: 1.5rem; }
    .post-content { font-size: 0.95rem; }
    .post-meta { flex-direction: column; align-items: flex-start; gap: 8px; }
    .post-meta .dot { display: none; }

    .grid-3 { grid-template-columns: 1fr; }
    .cat-circle { width: 88px; height: 88px; }
    .cat-circle-item { width: 88px; }
    .cat-circle-icon { font-size: 1.8rem; }
}
