/*
Theme Name: Envoy Pro
Theme URI: https://dostmarketing.pk
Author: Dost Marketing Private Limited
Author URI: https://dostmarketing.pk
Description: Premium Multi-Niche WordPress News Theme. Full Customizer control, live stock ticker, dark mode, Google News optimized. No coding required.
Version: 2.1.0
Requires at least: 6.0
Tested up to: 6.7
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: envoy-pro
Tags: news, blog, custom-colors, custom-logo, dark-mode, featured-images, sticky-post, two-columns, three-columns, four-columns, right-sidebar, left-sidebar, footer-widgets, translation-ready
*/

/* ============================================================
   ENVOY PRO — CSS DESIGN SYSTEM
   All values overridden by Customizer via wp_head()
   ============================================================ */
:root {
    --ep-primary:        #1a1a2e;
    --ep-accent:         #e63946;
    --ep-gold:           #f4a261;
    --ep-header-bg:      #1a1a2e;
    --ep-header-text:    #ffffff;
    --ep-footer-bg:      #0d0d14;
    --ep-footer-text:    #cccccc;
    --ep-body-bg:        #f5f5f0;
    --ep-topbar-bg:      #111118;
    --ep-ticker-bg:      #ffffff;
    --ep-ticker-label:   #e63946;
    --ep-card-bg:        #ffffff;
    --ep-text:           #1a1a1a;
    --ep-text-light:     #666666;
    --ep-border:         #e4e4e8;
    --ep-font-body:      'Georgia', 'Times New Roman', serif;
    --ep-font-heading:   'Georgia', 'Times New Roman', serif;
    --ep-font-ui:        'Segoe UI', system-ui, sans-serif;
    --ep-font-size:      16px;
    --ep-radius:         10px;
    --ep-shadow:         0 2px 16px rgba(0,0,0,0.07);
    --ep-shadow-hover:   0 8px 32px rgba(0,0,0,0.14);
    --ep-transition:     all 0.25s ease;
    --ep-ticker-speed:   40s;
}

/* Dark Mode */
body.dark-mode {
    --ep-body-bg:    #0d0d14;
    --ep-card-bg:    #16162a;
    --ep-text:       #e4e4e4;
    --ep-text-light: #999999;
    --ep-border:     #2a2a3e;
    --ep-ticker-bg:  #10101e;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    direction: ltr;
    text-align: left;
    background: var(--ep-body-bg);
    color: var(--ep-text);
    font-family: var(--ep-font-ui);
    font-size: var(--ep-font-size);
    line-height: 1.7;
    transition: background 0.3s, color 0.3s;
}

a { color: var(--ep-primary); text-decoration: none; transition: var(--ep-transition); }
a:hover { color: var(--ep-accent); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.ep-container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }

/* ============================================================
   TOP BAR
   ============================================================ */
.ep-topbar {
    background: var(--ep-topbar-bg);
    color: #aaa;
    font-size: 12px;
    font-family: var(--ep-font-ui);
    padding: 5px 0;
    border-bottom: 2px solid var(--ep-gold);
}
.ep-topbar .ep-container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.ep-topbar-left { display: flex; align-items: center; gap: 14px; }
.ep-topbar-left a { color: #aaa; font-size: 13px; transition: var(--ep-transition); }
.ep-topbar-left a:hover { color: var(--ep-gold); }
.ep-topbar-right { display: flex; align-items: center; gap: 10px; }
.ep-topbar-date { color: #888; }
.ep-dark-btn {
    background: none; border: 1px solid #333; color: #aaa;
    border-radius: 30px; padding: 2px 12px; cursor: pointer;
    font-size: 12px; font-family: var(--ep-font-ui); transition: var(--ep-transition);
}
.ep-dark-btn:hover { border-color: var(--ep-gold); color: var(--ep-gold); }

/* ============================================================
   FINANCE STRIP
   ============================================================ */
.ep-finance-strip {
    background: #0a0a12; overflow: hidden; padding: 5px 0;
    border-bottom: 1px solid #1a1a2a;
}
.ep-finance-inner {
    display: flex; white-space: nowrap;
    animation: epFinScroll 60s linear infinite;
    font-family: 'Courier New', monospace; font-size: 12px;
}
.ep-finance-inner:hover { animation-play-state: paused; }
.ep-fin-item { padding: 0 20px; border-right: 1px solid #1a1a2a; color: #00e676; }
.ep-fin-item .fsym { color: #fff; font-weight: bold; margin-right: 5px; }
.ep-fin-item.up  { color: #00e676; }
.ep-fin-item.dn  { color: #ff5252; }
.ep-fin-item.neu { color: #ffeb3b; }
@keyframes epFinScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ============================================================
   HEADER
   ============================================================ */
.ep-header {
    background: var(--ep-header-bg);
    color: var(--ep-header-text);
    padding: 14px 0;
    border-bottom: 4px solid var(--ep-gold);
}
.ep-header .ep-container { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }

.ep-logo { display: flex; align-items: center; gap: 12px; }
.ep-logo img { height: 56px; width: auto; }
.ep-logo-text .ep-site-name { font-family: var(--ep-font-heading); font-size: 28px; color: var(--ep-gold); font-weight: bold; line-height: 1.2; }
.ep-logo-text .ep-site-tagline { font-family: var(--ep-font-ui); font-size: 11px; color: rgba(255,255,255,0.55); text-transform: uppercase; letter-spacing: 1.5px; }

.ep-partner-ads { display: flex; gap: 10px; flex-wrap: wrap; }
.ep-ad-card {
    border: 1px solid rgba(244,162,97,0.25); border-radius: 8px;
    padding: 8px 14px; text-align: center; min-width: 148px;
    background: rgba(255,255,255,0.04); transition: var(--ep-transition); display: block;
}
.ep-ad-card:hover { background: rgba(244,162,97,0.08); border-color: var(--ep-gold); transform: translateY(-2px); }
.ep-ad-card small { display: block; color: var(--ep-gold); font-size: 9px; font-weight: bold; font-family: var(--ep-font-ui); text-transform: uppercase; letter-spacing: 0.5px; }
.ep-ad-card strong { color: #fff; font-size: 13px; font-family: var(--ep-font-ui); }

.ep-header-ad { text-align: center; padding: 10px 0; background: var(--ep-body-bg); }

/* ============================================================
   NAVIGATION
   ============================================================ */
.ep-nav {
    background: var(--ep-primary);
    position: sticky; top: 0; z-index: 1000;
    box-shadow: 0 3px 12px rgba(0,0,0,0.4);
}
.ep-nav .ep-container { display: flex; align-items: center; justify-content: space-between; }
.ep-nav-menu { display: flex; flex-wrap: wrap; }
.ep-nav-menu > li > a {
    display: block; padding: 15px 16px; color: #fff;
    font-size: 13px; font-family: var(--ep-font-ui); font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.5px;
    border-bottom: 3px solid transparent; transition: var(--ep-transition);
}
.ep-nav-menu > li > a:hover,
.ep-nav-menu > li.current-menu-item > a { color: var(--ep-gold); border-bottom-color: var(--ep-gold); background: rgba(255,255,255,0.04); }

.ep-nav-menu li { position: relative; }
.ep-nav-menu li ul { display: none; position: absolute; top: 100%; left: 0; background: var(--ep-primary); min-width: 210px; border-top: 3px solid var(--ep-gold); box-shadow: var(--ep-shadow-hover); z-index: 999; }
.ep-nav-menu li:hover > ul { display: block; }
.ep-nav-menu li ul li a { display: block; padding: 10px 18px; color: #ccc; font-size: 13px; border-bottom: 1px solid rgba(255,255,255,0.05); font-family: var(--ep-font-ui); transition: var(--ep-transition); }
.ep-nav-menu li ul li a:hover { color: var(--ep-gold); padding-left: 24px; }

.ep-nav-actions { display: flex; align-items: center; }
.ep-nav-btn { background: none; border: none; color: #fff; cursor: pointer; padding: 10px 12px; font-size: 17px; transition: var(--ep-transition); }
.ep-nav-btn:hover { color: var(--ep-gold); }
.ep-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 10px 12px; }
.ep-hamburger span { display: block; width: 22px; height: 2px; background: #fff; transition: var(--ep-transition); }

/* Search Overlay */
.ep-search-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.88); z-index: 9999; align-items: center; justify-content: center; }
.ep-search-overlay.active { display: flex; }
.ep-search-box { background: var(--ep-card-bg); border-radius: var(--ep-radius); padding: 30px; width: min(580px, 90vw); position: relative; }
.ep-search-box h3 { font-family: var(--ep-font-heading); margin-bottom: 14px; font-size: 20px; color: var(--ep-text); }
.ep-search-box input { width: 100%; padding: 13px 18px; font-size: 16px; border: 2px solid var(--ep-border); border-radius: 8px; font-family: var(--ep-font-ui); background: var(--ep-body-bg); color: var(--ep-text); outline: none; }
.ep-search-box input:focus { border-color: var(--ep-accent); }
.ep-search-close { position: absolute; top: 12px; right: 14px; background: none; border: none; font-size: 22px; cursor: pointer; color: var(--ep-text-light); }

/* ============================================================
   BREAKING NEWS TICKER — FIXED (no overlap)
   ============================================================ */
.ep-ticker {
    background: var(--ep-ticker-bg);
    height: 44px;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-bottom: 2px solid var(--ep-border);
    position: relative;
}
.ep-ticker-label {
    background: var(--ep-ticker-label);
    color: #fff;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 12px;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--ep-font-ui);
    flex-shrink: 0;        /* FIXED: label stays fixed width, does not shrink */
    z-index: 2;
}
.ep-ticker-wrap {
    flex: 1;               /* FIXED: takes remaining space after label */
    overflow: hidden;
    position: relative;
}
.ep-ticker-track {
    display: flex;
    white-space: nowrap;
    animation: epTickerMove var(--ep-ticker-speed) linear infinite;
}
.ep-ticker-track:hover { animation-play-state: paused; }
.ep-ticker-track a {
    display: inline-block;
    padding: 0 24px;
    color: var(--ep-text);
    font-size: 14px;
    font-family: var(--ep-font-ui);
    border-right: 1px solid var(--ep-border);
    white-space: nowrap;
    transition: color 0.2s;
}
.ep-ticker-track a:hover { color: var(--ep-accent); }
@keyframes epTickerMove { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ============================================================
   READING PROGRESS BAR
   ============================================================ */
.ep-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0%; background: linear-gradient(to right, var(--ep-accent), var(--ep-gold)); z-index: 99999; transition: width 0.1s linear; }

/* ============================================================
   MAIN LAYOUT
   ============================================================ */
.ep-page-wrap { padding: 28px 0 40px; }
.ep-layout { display: grid; gap: 30px; }
.ep-layout.sidebar-right { grid-template-columns: 1fr 310px; }
.ep-layout.sidebar-left  { grid-template-columns: 310px 1fr; }
.ep-layout.no-sidebar    { grid-template-columns: 1fr; }

/* ============================================================
   HERO SECTION
   ============================================================ */
.ep-hero { margin-bottom: 28px; }
.ep-hero-featured { display: grid; grid-template-columns: 1fr 340px; gap: 20px; }

.ep-hero-main { position: relative; border-radius: var(--ep-radius); overflow: hidden; box-shadow: var(--ep-shadow); }
.ep-hero-main img { width: 100%; height: 420px; object-fit: cover; }
.ep-hero-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(5,5,20,0.92)); padding: 28px 24px 22px; }
.ep-hero-overlay .ep-cat-badge { display: inline-block; background: var(--ep-accent); color: #fff; padding: 3px 12px; border-radius: 4px; font-size: 11px; font-family: var(--ep-font-ui); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; }
.ep-hero-overlay h2 { font-size: 23px; color: #fff; line-height: 1.4; margin-bottom: 8px; font-family: var(--ep-font-heading); }
.ep-hero-overlay h2 a { color: #fff; }
.ep-hero-overlay h2 a:hover { color: var(--ep-gold); }
.ep-hero-overlay .ep-meta { color: rgba(255,255,255,0.65); font-size: 12px; font-family: var(--ep-font-ui); }

.ep-hero-side { display: flex; flex-direction: column; gap: 14px; }
.ep-side-card { display: flex; gap: 12px; background: var(--ep-card-bg); border-radius: 8px; overflow: hidden; box-shadow: var(--ep-shadow); border: 1px solid var(--ep-border); transition: var(--ep-transition); }
.ep-side-card:hover { transform: translateX(3px); box-shadow: var(--ep-shadow-hover); }
.ep-side-card-img { width: 110px; flex-shrink: 0; }
.ep-side-card-img img { width: 100%; height: 88px; object-fit: cover; }
.ep-side-card-body { padding: 10px 12px 10px 0; flex: 1; min-width: 0; }
.ep-side-card-body .ep-cat-badge { font-size: 10px; font-family: var(--ep-font-ui); font-weight: 700; background: var(--ep-accent); color: #fff; padding: 1px 8px; border-radius: 3px; display: inline-block; margin-bottom: 5px; text-transform: uppercase; }
.ep-side-card-body h3 { font-size: 14px; line-height: 1.5; font-family: var(--ep-font-heading); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.ep-side-card-body h3 a { color: var(--ep-text); }
.ep-side-card-body h3 a:hover { color: var(--ep-accent); }
.ep-side-card-body .ep-meta { font-size: 11px; color: var(--ep-text-light); font-family: var(--ep-font-ui); margin-top: 5px; }

/* ============================================================
   SECTION TITLE
   ============================================================ */
.ep-section-title { font-family: var(--ep-font-heading); font-size: 20px; color: var(--ep-primary); margin-bottom: 20px; padding-bottom: 10px; border-bottom: 3px solid var(--ep-accent); display: flex; align-items: center; gap: 10px; }
body.dark-mode .ep-section-title { color: var(--ep-gold); }
.ep-section-title::before { content: ''; display: inline-block; width: 5px; height: 20px; background: var(--ep-accent); border-radius: 3px; flex-shrink: 0; }

/* ============================================================
   POST GRID CARDS
   ============================================================ */
.ep-posts-grid { display: grid; gap: 22px; }
.ep-posts-grid.cols-1 { grid-template-columns: 1fr; }
.ep-posts-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.ep-posts-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.ep-posts-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.ep-card { background: var(--ep-card-bg); border-radius: var(--ep-radius); overflow: hidden; box-shadow: var(--ep-shadow); border: 1px solid var(--ep-border); transition: var(--ep-transition); }
.ep-card:hover { transform: translateY(-5px); box-shadow: var(--ep-shadow-hover); }
.ep-card-thumb { position: relative; overflow: hidden; height: 195px; }
.ep-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.ep-card:hover .ep-card-thumb img { transform: scale(1.05); }
.ep-card-thumb .ep-cat-badge { position: absolute; top: 12px; left: 12px; font-family: var(--ep-font-ui); font-weight: 700; background: var(--ep-accent); color: #fff; padding: 2px 10px; border-radius: 4px; font-size: 11px; text-transform: uppercase; }
.ep-card-body { padding: 18px; }
.ep-card-title { font-size: 17px; line-height: 1.5; margin-bottom: 10px; font-family: var(--ep-font-heading); }
.ep-card-title a { color: var(--ep-text); }
.ep-card-title a:hover { color: var(--ep-accent); }
.ep-card-excerpt { color: var(--ep-text-light); font-size: 13px; line-height: 1.7; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ep-card-meta { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--ep-text-light); font-family: var(--ep-font-ui); border-top: 1px solid var(--ep-border); padding-top: 10px; flex-wrap: wrap; gap: 6px; }
.ep-card-meta a { color: var(--ep-text-light); }
.ep-card-meta a:hover { color: var(--ep-accent); }
.ep-read-time { color: var(--ep-accent); font-weight: 600; }

/* ============================================================
   CATEGORY BADGE — Dynamic colors via inline style
   ============================================================ */
.ep-cat-badge { cursor: pointer; }

/* ============================================================
   SIDEBAR
   ============================================================ */
.ep-sidebar .widget { background: var(--ep-card-bg); border-radius: var(--ep-radius); padding: 20px; margin-bottom: 24px; box-shadow: var(--ep-shadow); border: 1px solid var(--ep-border); }
.ep-sidebar .widget-title { font-family: var(--ep-font-heading); font-size: 17px; color: var(--ep-primary); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--ep-accent); }
body.dark-mode .ep-sidebar .widget-title { color: var(--ep-gold); }
.ep-sidebar .widget ul li { border-bottom: 1px solid var(--ep-border); padding: 8px 0; font-size: 14px; font-family: var(--ep-font-ui); }
.ep-sidebar .widget ul li:last-child { border-bottom: none; }
.ep-sidebar .widget ul li a { color: var(--ep-text); }
.ep-sidebar .widget ul li a:hover { color: var(--ep-accent); }
.ep-sidebar-ad { text-align: center; margin-bottom: 24px; }

/* ============================================================
   SINGLE ARTICLE
   ============================================================ */
.ep-single-cats { margin-bottom: 12px; }
.ep-single-cats a { display: inline-block; background: var(--ep-accent); color: #fff; padding: 3px 12px; border-radius: 4px; font-size: 11px; font-family: var(--ep-font-ui); font-weight: 700; text-transform: uppercase; margin-right: 6px; }
.ep-single-title { font-size: 30px; line-height: 1.4; color: var(--ep-primary); margin-bottom: 16px; font-family: var(--ep-font-heading); }
body.dark-mode .ep-single-title { color: var(--ep-gold); }
.ep-single-meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--ep-text-light); font-family: var(--ep-font-ui); padding-bottom: 16px; border-bottom: 2px solid var(--ep-border); margin-bottom: 20px; align-items: center; }
.ep-single-meta a { color: var(--ep-text-light); }
.ep-single-meta a:hover { color: var(--ep-accent); }
.ep-single-feat-img { margin-bottom: 24px; border-radius: var(--ep-radius); overflow: hidden; }
.ep-single-feat-img img { width: 100%; max-height: 500px; object-fit: cover; }

.ep-entry-content { font-size: 17px; line-height: 1.85; color: var(--ep-text); font-family: var(--ep-font-body); }
.ep-entry-content p { margin-bottom: 20px; }
.ep-entry-content h2, .ep-entry-content h3 { margin: 28px 0 14px; color: var(--ep-primary); font-family: var(--ep-font-heading); line-height: 1.4; }
body.dark-mode .ep-entry-content h2, body.dark-mode .ep-entry-content h3 { color: var(--ep-gold); }
.ep-entry-content ul, .ep-entry-content ol { padding-left: 24px; margin-bottom: 20px; }
.ep-entry-content ul li { list-style: disc; margin-bottom: 8px; }
.ep-entry-content ol li { list-style: decimal; margin-bottom: 8px; }
.ep-entry-content blockquote { border-left: 4px solid var(--ep-accent); background: rgba(230,57,70,0.05); padding: 16px 20px; margin: 24px 0; border-radius: 0 8px 8px 0; font-style: italic; color: var(--ep-text-light); }
.ep-entry-content img { border-radius: 8px; margin: 20px auto; }
.ep-inarticle-ad { text-align: center; margin: 28px 0; padding: 14px; background: var(--ep-body-bg); border-radius: 8px; }

.ep-share { margin: 28px 0; padding: 20px; background: var(--ep-card-bg); border-radius: var(--ep-radius); border: 1px solid var(--ep-border); }
.ep-share-title { font-family: var(--ep-font-heading); font-size: 17px; margin-bottom: 14px; color: var(--ep-text); }
.ep-share-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.ep-share-btn { display: inline-flex; align-items: center; gap: 7px; padding: 9px 18px; border-radius: 6px; color: #fff; font-size: 13px; font-family: var(--ep-font-ui); font-weight: bold; transition: var(--ep-transition); cursor: pointer; text-decoration: none; border: none; }
.ep-share-btn:hover { transform: translateY(-2px); opacity: 0.9; color: #fff; }
.ep-share-btn.fb { background: #1877f2; }
.ep-share-btn.tw { background: #000; }
.ep-share-btn.wa { background: #25d366; }
.ep-share-btn.li { background: #0077b5; }
.ep-share-btn.cp { background: #555; }

.ep-author-box { display: flex; gap: 18px; background: var(--ep-card-bg); border-radius: var(--ep-radius); padding: 22px; border: 1px solid var(--ep-border); margin: 24px 0; box-shadow: var(--ep-shadow); }
.ep-author-avatar img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.ep-author-info h4 { font-family: var(--ep-font-heading); font-size: 17px; margin-bottom: 6px; color: var(--ep-text); }
.ep-author-info p { font-size: 14px; color: var(--ep-text-light); line-height: 1.7; font-family: var(--ep-font-ui); }
.ep-related { margin-top: 36px; }
.ep-related .ep-posts-grid { grid-template-columns: repeat(3, 1fr); }

/* ============================================================
   FOOTER
   ============================================================ */
.ep-before-footer-ad { text-align: center; padding: 20px 0; background: var(--ep-body-bg); border-top: 1px solid var(--ep-border); }
.ep-footer { background: var(--ep-footer-bg); color: var(--ep-footer-text); padding: 48px 0 0; }
.ep-footer-grid { display: grid; gap: 30px; margin-bottom: 36px; }
.ep-footer-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.ep-footer-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.ep-footer-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.ep-footer-widget h4 { font-family: var(--ep-font-heading); font-size: 17px; color: var(--ep-gold); margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid rgba(244,162,97,0.2); }
.ep-footer-widget ul li { padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,0.05); font-size: 14px; font-family: var(--ep-font-ui); }
.ep-footer-widget ul li:last-child { border-bottom: none; }
.ep-footer-widget ul li a { color: #aaa; transition: var(--ep-transition); }
.ep-footer-widget ul li a:hover { color: var(--ep-gold); padding-left: 4px; }
.ep-footer-about { font-size: 14px; color: #888; line-height: 1.8; margin-bottom: 16px; font-family: var(--ep-font-ui); }
.ep-footer-social { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.ep-footer-social a { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.07); color: #ccc; font-size: 15px; transition: var(--ep-transition); }
.ep-footer-social a:hover { background: var(--ep-accent); color: #fff; transform: translateY(-3px); }
.ep-footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); padding: 18px 0; text-align: center; font-size: 13px; color: #555; font-family: var(--ep-font-ui); }
.ep-footer-bottom a { color: var(--ep-gold); }

/* ============================================================
   STOCK TICKER (Bottom Fixed)
   ============================================================ */
.ep-stock-ticker { position: fixed; bottom: 0; left: 0; right: 0; z-index: 8888; background: #0a0a12; border-top: 2px solid #1a1a2a; font-family: 'Courier New', monospace; font-size: 12px; }
.ep-stock-row { display: flex; align-items: center; height: 32px; overflow: hidden; border-bottom: 1px solid #0a0a14; }
.ep-stock-row:last-child { border-bottom: none; }
.ep-stock-label { background: #111120; color: #00e676; padding: 0 14px; height: 100%; display: flex; align-items: center; font-weight: bold; font-size: 11px; white-space: nowrap; letter-spacing: 0.5px; border-right: 1px solid #1a1a2a; font-family: var(--ep-font-ui); flex-shrink: 0; }
.ep-stock-scroll { overflow: hidden; flex: 1; }
.ep-stock-track { display: flex; white-space: nowrap; animation: epStockMove 35s linear infinite; }
.ep-stock-track:hover { animation-play-state: paused; }
.ep-stock-item { padding: 0 14px; border-right: 1px solid #1a1a2a; color: #aaa; }
.ep-stock-item .sname { color: #fff; margin-right: 4px; font-size: 11px; }
.ep-stock-item.up   .sprice { color: #00e676; }
.ep-stock-item.down .sprice { color: #ff5252; }
.ep-stock-item.neu  .sprice { color: #ffeb3b; }
.ep-stock-item .schange { font-size: 10px; margin-left: 3px; }

.ep-crypto-popup { position: fixed; bottom: 76px; right: 20px; background: #0a0a12; border: 1px solid #00e676; border-radius: 10px; padding: 14px 18px; z-index: 8999; min-width: 230px; box-shadow: 0 4px 20px rgba(0,230,118,0.12); display: none; font-family: 'Courier New', monospace; font-size: 12px; }
.ep-crypto-popup.active { display: block; animation: epPopIn 0.3s ease; }
.ep-crypto-popup h4 { color: #00e676; font-size: 11px; margin-bottom: 10px; font-family: var(--ep-font-ui); letter-spacing: 1px; text-transform: uppercase; }
.ep-crypto-item { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border-bottom: 1px solid #1a1a2a; color: #aaa; }
.ep-crypto-item:last-child { border: none; }
.ep-crypto-item .cname { color: #fff; font-weight: bold; }
.ep-crypto-popup-close { position: absolute; top: 8px; right: 10px; background: none; border: none; color: #555; cursor: pointer; font-size: 15px; line-height: 1; }

@keyframes epStockMove { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes epPopIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* Ticker hidden by default — JS adds .has-stock-ticker when enabled */
.ep-stock-ticker { display: none; }
body.has-stock-ticker .ep-stock-ticker { display: flex; flex-direction: column; }
body.has-stock-ticker { padding-bottom: 66px; }

/* ============================================================
   PAGINATION
   ============================================================ */
.ep-pagination { text-align: center; margin-top: 36px; }
.ep-pagination a, .ep-pagination span { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 6px; margin: 0 3px; background: var(--ep-card-bg); color: var(--ep-text); border: 1px solid var(--ep-border); font-family: var(--ep-font-ui); font-size: 14px; transition: var(--ep-transition); }
.ep-pagination a:hover, .ep-pagination span.current { background: var(--ep-accent); color: #fff; border-color: var(--ep-accent); }

/* ============================================================
   MISC
   ============================================================ */
.ep-no-results { text-align: center; padding: 60px 20px; color: var(--ep-text-light); font-family: var(--ep-font-ui); font-size: 18px; }
.ep-404 { text-align: center; padding: 80px 20px; }
.ep-404 .code { font-size: 120px; font-weight: bold; color: var(--ep-accent); line-height: 1; font-family: var(--ep-font-ui); opacity: 0.25; }
.ep-404 h2 { font-family: var(--ep-font-heading); font-size: 28px; margin-bottom: 16px; color: var(--ep-text); }
.ep-404 p { color: var(--ep-text-light); margin-bottom: 28px; font-family: var(--ep-font-ui); }
.ep-404 a { background: var(--ep-accent); color: #fff; padding: 12px 28px; border-radius: 6px; font-family: var(--ep-font-ui); display: inline-block; transition: var(--ep-transition); }
.ep-404 a:hover { background: var(--ep-primary); color: #fff; }
.ep-breadcrumb { font-size: 13px; color: var(--ep-text-light); font-family: var(--ep-font-ui); margin-bottom: 16px; }
.ep-breadcrumb a { color: var(--ep-accent); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .ep-layout.sidebar-right, .ep-layout.sidebar-left { grid-template-columns: 1fr; }
    .ep-hero-featured { grid-template-columns: 1fr; }
    .ep-hero-side { display: none; }
    .ep-posts-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
    .ep-posts-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
    .ep-related .ep-posts-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .ep-nav-menu { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--ep-primary); flex-direction: column; border-top: 3px solid var(--ep-gold); z-index: 999; }
    .ep-nav-menu.open { display: flex; }
    .ep-nav-menu > li > a { padding: 12px 20px; border-bottom: 1px solid rgba(255,255,255,0.06); border-bottom-color: transparent; }
    .ep-hamburger { display: flex; }
    .ep-partner-ads { display: none; }
    .ep-posts-grid.cols-2, .ep-posts-grid.cols-3, .ep-posts-grid.cols-4 { grid-template-columns: 1fr; }
    .ep-related .ep-posts-grid { grid-template-columns: 1fr; }
    .ep-single-title { font-size: 22px; }
    .ep-footer-grid.cols-3, .ep-footer-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
    .ep-author-box { flex-direction: column; }
    .ep-hero-main img { height: 260px; }
}
@media (max-width: 480px) {
    .ep-topbar-left { display: none; }
    .ep-footer-grid { grid-template-columns: 1fr !important; }
    .ep-single-title { font-size: 20px; }
    .ep-entry-content { font-size: 15px; }
}
