/*
Theme Name: EduPress — GeneratePress Child
Theme URI: https://example.com/edupress
Description: A clean, fast-loading educational theme for Science, Geography, and Current Affairs. Built as a GeneratePress child theme with modern card layouts, sticky navigation, and fully dynamic WordPress-powered content.
Author: EduPress
Author URI: https://example.com
Template: generatepress
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: edupress
Tags: education, blog, responsive, clean, generatepress-child
*/

/* ================================================
   EDUPRESS — COLOR & TYPE TOKENS
   ================================================
   Palette:
   --ep-ink:       #1A1F2E  (deep navy-black for headings)
   --ep-slate:     #4A5568  (body text)
   --ep-mist:      #F7F8FC  (page background)
   --ep-white:     #FFFFFF
   --ep-accent:    #0F6FBF  (science blue — primary CTA)
   --ep-geo:       #1A9E6E  (geography green)
   --ep-affairs:   #D4532A  (current affairs amber-red)
   --ep-border:    #E2E8F0  (dividers)
   --ep-card-bg:   #FFFFFF
   
   Typography:
   Display: 'Playfair Display' — authoritative, editorial
   Body:    'Inter' — clear, modern, legible at small sizes
   Utility: system-ui fallback for captions/labels
   ================================================ */

:root {
  --ep-ink: #1A1F2E;
  --ep-slate: #4A5568;
  --ep-mist: #F7F8FC;
  --ep-white: #FFFFFF;
  --ep-accent: #0F6FBF;
  --ep-accent-dark: #0A4F8A;
  --ep-geo: #1A9E6E;
  --ep-affairs: #D4532A;
  --ep-science: #0F6FBF;
  --ep-border: #E2E8F0;
  --ep-card-bg: #FFFFFF;
  --ep-shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --ep-shadow-md: 0 4px 16px rgba(0,0,0,0.10), 0 2px 6px rgba(0,0,0,0.06);
  --ep-shadow-hover: 0 8px 24px rgba(15,111,191,0.15), 0 2px 8px rgba(0,0,0,0.08);
  --ep-radius: 10px;
  --ep-radius-sm: 6px;
  --ep-transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  --ep-container: 1200px;
}

/* ================================================
   BASE & BODY
   ================================================ */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--ep-mist);
  color: var(--ep-slate);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  color: var(--ep-ink);
  line-height: 1.25;
  font-weight: 700;
}

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

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

.ep-container {
  max-width: var(--ep-container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ================================================
   GOOGLE FONTS IMPORT (loaded via functions.php)
   ================================================ */

/* ================================================
   STICKY HEADER
   ================================================ */
.ep-site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--ep-white);
  border-bottom: 1px solid var(--ep-border);
  box-shadow: var(--ep-shadow-sm);
  transition: box-shadow var(--ep-transition);
}

.ep-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}

/* Logo */
.ep-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.ep-logo-mark {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--ep-accent) 0%, var(--ep-geo) 100%);
  border-radius: var(--ep-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  font-family: 'Playfair Display', serif;
  letter-spacing: -0.5px;
}

.ep-logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--ep-ink);
  line-height: 1;
}

.ep-logo-text span {
  color: var(--ep-accent);
}

/* Primary Navigation */
.ep-nav-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ep-primary-nav {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 4px;
}

.ep-primary-nav > li > a {
  display: block;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ep-slate);
  border-radius: var(--ep-radius-sm);
  letter-spacing: 0.01em;
  transition: color var(--ep-transition), background var(--ep-transition);
}

.ep-primary-nav > li > a:hover,
.ep-primary-nav > li.current-menu-item > a,
.ep-primary-nav > li.current-menu-parent > a {
  color: var(--ep-accent);
  background: rgba(15,111,191,0.07);
}

/* Search Toggle */
.ep-search-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--ep-slate);
  border-radius: var(--ep-radius-sm);
  display: flex;
  align-items: center;
  transition: color var(--ep-transition), background var(--ep-transition);
}
.ep-search-toggle:hover {
  color: var(--ep-accent);
  background: rgba(15,111,191,0.07);
}
.ep-search-toggle svg { width: 20px; height: 20px; }

/* Search Overlay */
.ep-search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,31,46,0.85);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--ep-transition);
}
.ep-search-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}
.ep-search-box {
  width: 100%;
  max-width: 600px;
  padding: 0 24px;
}
.ep-search-form {
  display: flex;
  background: var(--ep-white);
  border-radius: var(--ep-radius);
  overflow: hidden;
  box-shadow: var(--ep-shadow-md);
}
.ep-search-input {
  flex: 1;
  border: none;
  padding: 16px 20px;
  font-size: 18px;
  font-family: 'Inter', sans-serif;
  color: var(--ep-ink);
  outline: none;
}
.ep-search-btn {
  background: var(--ep-accent);
  border: none;
  color: #fff;
  padding: 0 24px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: background var(--ep-transition);
}
.ep-search-btn:hover { background: var(--ep-accent-dark); }
.ep-search-close {
  display: block;
  text-align: right;
  margin-top: 16px;
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  cursor: pointer;
  background: none;
  border: none;
  letter-spacing: 0.03em;
}

/* Mobile Menu Toggle */
.ep-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--ep-ink);
  flex-direction: column;
  gap: 5px;
}
.ep-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--ep-transition), opacity var(--ep-transition);
}

/* ================================================
   HERO / BANNER SECTION
   ================================================ */
.ep-hero {
  background: linear-gradient(135deg, #0A1628 0%, #1A2F4E 50%, #0D3D1F 100%);
  color: #fff;
  padding: 80px 0 0;
  overflow: hidden;
  position: relative;
}

.ep-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.ep-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

.ep-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 100px;
  padding: 5px 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  margin-bottom: 24px;
}

.ep-hero-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ADE80;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}

.ep-hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 6vw, 62px);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
}

.ep-hero-title em {
  font-style: italic;
  background: linear-gradient(90deg, #60C3FF, #4ADE80);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ep-hero-subtitle {
  font-size: 18px;
  color: rgba(255,255,255,0.7);
  margin: 0 0 40px;
  line-height: 1.6;
}

.ep-hero-cats {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.ep-hero-cat-btn {
  padding: 10px 22px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--ep-transition);
  text-decoration: none;
}
.ep-hero-cat-btn.science {
  background: rgba(15,111,191,0.2);
  border-color: rgba(96,195,255,0.4);
  color: #60C3FF;
}
.ep-hero-cat-btn.science:hover {
  background: rgba(15,111,191,0.4);
  color: #fff;
}
.ep-hero-cat-btn.geography {
  background: rgba(26,158,110,0.2);
  border-color: rgba(74,222,128,0.4);
  color: #4ADE80;
}
.ep-hero-cat-btn.geography:hover {
  background: rgba(26,158,110,0.4);
  color: #fff;
}
.ep-hero-cat-btn.affairs {
  background: rgba(212,83,42,0.2);
  border-color: rgba(251,146,60,0.4);
  color: #FB923C;
}
.ep-hero-cat-btn.affairs:hover {
  background: rgba(212,83,42,0.4);
  color: #fff;
}

/* Hero Slider */
.ep-hero-slider-wrap {
  position: relative;
  z-index: 1;
  margin-top: 20px;
}

.ep-slider {
  position: relative;
  overflow: hidden;
  border-radius: var(--ep-radius) var(--ep-radius) 0 0;
}

.ep-slider-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.ep-slide {
  min-width: 100%;
  position: relative;
  aspect-ratio: 16/6;
  overflow: hidden;
}

.ep-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.ep-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,22,40,0.95) 0%, rgba(10,22,40,0.4) 50%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: 32px 40px;
}

.ep-slide-content {
  max-width: 640px;
  text-align: left;
}

.ep-slide-cat {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.ep-slide-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(18px, 3vw, 26px);
  color: #fff;
  margin: 0 0 12px;
  line-height: 1.25;
}

.ep-slide-title a { color: #fff; }
.ep-slide-title a:hover { color: rgba(255,255,255,0.8); }

.ep-slide-meta {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}

.ep-slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 0 24px;
}

.ep-slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all var(--ep-transition);
}
.ep-slider-dot.active {
  background: #fff;
  width: 24px;
  border-radius: 4px;
}

.ep-slider-prev, .ep-slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--ep-transition);
  z-index: 10;
}
.ep-slider-prev { left: 16px; }
.ep-slider-next { right: 16px; }
.ep-slider-prev:hover, .ep-slider-next:hover {
  background: rgba(255,255,255,0.25);
}
.ep-slider-prev svg, .ep-slider-next svg { width: 20px; height: 20px; }

/* ================================================
   CATEGORY COLOR SYSTEM
   ================================================ */
.cat-science { background: rgba(15,111,191,0.12); color: var(--ep-science); }
.cat-geography { background: rgba(26,158,110,0.12); color: var(--ep-geo); }
.cat-current-affairs, .cat-affairs { background: rgba(212,83,42,0.12); color: var(--ep-affairs); }

.cat-science-border { border-top: 4px solid var(--ep-science); }
.cat-geography-border { border-top: 4px solid var(--ep-geo); }
.cat-current-affairs-border, .cat-affairs-border { border-top: 4px solid var(--ep-affairs); }

/* Slide category pills */
.ep-slide .cat-science { background: var(--ep-science); color: #fff; }
.ep-slide .cat-geography { background: var(--ep-geo); color: #fff; }
.ep-slide .cat-current-affairs, .ep-slide .cat-affairs { background: var(--ep-affairs); color: #fff; }

/* ================================================
   SECTION HEADERS
   ================================================ */
.ep-section {
  padding: 64px 0;
}

.ep-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 36px;
  border-bottom: 2px solid var(--ep-border);
  padding-bottom: 16px;
}

.ep-section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(22px, 3vw, 30px);
  color: var(--ep-ink);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.ep-section-title-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.ep-section-title-dot.science { background: var(--ep-science); }
.ep-section-title-dot.geography { background: var(--ep-geo); }
.ep-section-title-dot.affairs { background: var(--ep-affairs); }
.ep-section-title-dot.latest { background: var(--ep-ink); }

.ep-view-all {
  font-size: 13px;
  font-weight: 600;
  color: var(--ep-accent);
  letter-spacing: 0.03em;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
  text-transform: uppercase;
}
.ep-view-all:hover { color: var(--ep-accent-dark); }
.ep-view-all svg { width: 14px; height: 14px; }

/* ================================================
   ARTICLE CARDS — GRID
   ================================================ */
.ep-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.ep-card {
  background: var(--ep-card-bg);
  border-radius: var(--ep-radius);
  box-shadow: var(--ep-shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--ep-transition), box-shadow var(--ep-transition);
  border: 1px solid var(--ep-border);
}

.ep-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ep-shadow-hover);
  border-color: transparent;
}

.ep-card-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--ep-mist);
}

.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-cat {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 11px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ep-card-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.ep-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  color: var(--ep-ink);
  margin: 0 0 10px;
  line-height: 1.35;
  font-weight: 700;
}

.ep-card-title a {
  color: inherit;
  transition: color var(--ep-transition);
}
.ep-card-title a:hover { color: var(--ep-accent); }

.ep-card-excerpt {
  font-size: 14px;
  color: var(--ep-slate);
  line-height: 1.65;
  margin: 0 0 16px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ep-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--ep-border);
}

.ep-card-meta {
  font-size: 12px;
  color: #9AA5B4;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ep-card-meta svg { width: 12px; height: 12px; }

.ep-read-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ep-accent);
  transition: color var(--ep-transition), gap var(--ep-transition);
}
.ep-read-more:hover { color: var(--ep-accent-dark); gap: 8px; }
.ep-read-more svg { width: 14px; height: 14px; }

/* Placeholder when no image */
.ep-card-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
}

/* ================================================
   CATEGORY SECTION STRIPS
   ================================================ */
.ep-cat-section {
  padding: 48px 0;
  border-top: 1px solid var(--ep-border);
}

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

/* Featured large card */
.ep-cat-featured .ep-card-thumb {
  aspect-ratio: 4/3;
}

.ep-cat-featured .ep-card-title {
  font-size: 22px;
}

.ep-cat-featured .ep-card-excerpt {
  -webkit-line-clamp: 4;
}

/* Small sidebar cards */
.ep-cat-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ep-card-sm {
  background: var(--ep-card-bg);
  border-radius: var(--ep-radius-sm);
  overflow: hidden;
  display: flex;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--ep-border);
  box-shadow: var(--ep-shadow-sm);
  transition: all var(--ep-transition);
}
.ep-card-sm:hover {
  border-color: var(--ep-accent);
  box-shadow: var(--ep-shadow-md);
}

.ep-card-sm-thumb {
  width: 80px;
  height: 70px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  background: var(--ep-mist);
}
.ep-card-sm-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ep-card-sm-body { flex: 1; min-width: 0; }

.ep-card-sm-title {
  font-family: 'Playfair Display', serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--ep-ink);
  margin: 0 0 6px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ep-card-sm-title a { color: inherit; }
.ep-card-sm-title a:hover { color: var(--ep-accent); }

.ep-card-sm-meta {
  font-size: 11px;
  color: #9AA5B4;
}

/* ================================================
   SIDEBAR
   ================================================ */
.ep-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}

.ep-sidebar {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.ep-widget {
  background: var(--ep-white);
  border-radius: var(--ep-radius);
  border: 1px solid var(--ep-border);
  overflow: hidden;
  box-shadow: var(--ep-shadow-sm);
}

.ep-widget-head {
  padding: 14px 20px;
  border-bottom: 1px solid var(--ep-border);
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--ep-ink);
}

.ep-widget-body { padding: 16px 20px; }

/* Search Widget */
.ep-widget-search-form {
  display: flex;
  border: 1.5px solid var(--ep-border);
  border-radius: var(--ep-radius-sm);
  overflow: hidden;
  transition: border-color var(--ep-transition);
}
.ep-widget-search-form:focus-within { border-color: var(--ep-accent); }
.ep-widget-search-form input {
  flex: 1;
  border: none;
  padding: 10px 14px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  outline: none;
  background: transparent;
}
.ep-widget-search-form button {
  background: var(--ep-accent);
  border: none;
  color: #fff;
  padding: 0 14px;
  cursor: pointer;
  transition: background var(--ep-transition);
}
.ep-widget-search-form button:hover { background: var(--ep-accent-dark); }
.ep-widget-search-form button svg { width: 16px; height: 16px; }

/* Post Lists in Sidebar */
.ep-post-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ep-post-list li {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--ep-border);
  align-items: flex-start;
}
.ep-post-list li:last-child { border-bottom: none; padding-bottom: 0; }
.ep-post-list li:first-child { padding-top: 0; }

.ep-post-list-num {
  font-size: 22px;
  font-weight: 800;
  color: var(--ep-border);
  font-family: 'Playfair Display', serif;
  line-height: 1;
  flex-shrink: 0;
  width: 28px;
}

.ep-post-list-thumb {
  width: 64px;
  height: 54px;
  border-radius: var(--ep-radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--ep-mist);
}
.ep-post-list-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ep-post-list-info { flex: 1; min-width: 0; }

.ep-post-list-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ep-ink);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
}
.ep-post-list-title a { color: inherit; }
.ep-post-list-title a:hover { color: var(--ep-accent); }

.ep-post-list-date {
  font-size: 11px;
  color: #9AA5B4;
}

/* Categories Widget */
.ep-cat-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ep-cat-list li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: var(--ep-radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--ep-slate);
  transition: background var(--ep-transition), color var(--ep-transition);
}
.ep-cat-list li a:hover {
  background: rgba(15,111,191,0.07);
  color: var(--ep-accent);
}

.ep-cat-count {
  background: var(--ep-mist);
  border-radius: 100px;
  padding: 2px 9px;
  font-size: 11px;
  font-weight: 600;
  color: #9AA5B4;
}

/* ================================================
   BREAKING NEWS TICKER
   ================================================ */
.ep-ticker {
  background: var(--ep-ink);
  color: #fff;
  display: flex;
  align-items: center;
  overflow: hidden;
  height: 40px;
}

.ep-ticker-label {
  background: var(--ep-affairs);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  white-space: nowrap;
}

.ep-ticker-track {
  flex: 1;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.ep-ticker-inner {
  display: flex;
  gap: 60px;
  white-space: nowrap;
  animation: ticker-scroll 40s linear infinite;
}
@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.ep-ticker-item {
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.ep-ticker-item::before {
  content: '•';
  color: var(--ep-affairs);
}
.ep-ticker-item a { color: inherit; }
.ep-ticker-item a:hover { color: #fff; }

/* ================================================
   FOOTER
   ================================================ */
.ep-footer {
  background: var(--ep-ink);
  color: rgba(255,255,255,0.7);
}

.ep-footer-main {
  padding: 64px 0 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}

.ep-footer-brand { }

.ep-footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.ep-footer-logo-mark {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--ep-accent) 0%, var(--ep-geo) 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  font-size: 16px;
}

.ep-footer-logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}

.ep-footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 20px;
}

.ep-social-links {
  display: flex;
  gap: 10px;
}

.ep-social-link {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: all var(--ep-transition);
}
.ep-social-link:hover {
  background: var(--ep-accent);
  border-color: var(--ep-accent);
  color: #fff;
  transform: translateY(-2px);
}
.ep-social-link svg { width: 16px; height: 16px; }

.ep-footer-col-title {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.ep-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ep-footer-links li a {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  transition: color var(--ep-transition), padding-left var(--ep-transition);
  display: block;
}
.ep-footer-links li a:hover {
  color: #fff;
  padding-left: 6px;
}

.ep-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.ep-footer-copy {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
}

.ep-footer-bottom-links {
  display: flex;
  gap: 20px;
}
.ep-footer-bottom-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  transition: color var(--ep-transition);
}
.ep-footer-bottom-links a:hover { color: rgba(255,255,255,0.8); }

/* ================================================
   BREADCRUMBS
   ================================================ */
.ep-breadcrumb {
  padding: 12px 0;
  border-bottom: 1px solid var(--ep-border);
  background: var(--ep-white);
}
.ep-breadcrumb-inner {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #9AA5B4;
}
.ep-breadcrumb-inner a {
  color: #9AA5B4;
  transition: color var(--ep-transition);
}
.ep-breadcrumb-inner a:hover { color: var(--ep-accent); }
.ep-breadcrumb-inner span.current { color: var(--ep-slate); font-weight: 500; }
.ep-breadcrumb-sep { color: var(--ep-border); }

/* ================================================
   SINGLE POST
   ================================================ */
.ep-single-hero {
  position: relative;
  aspect-ratio: 16/6;
  overflow: hidden;
  background: var(--ep-ink);
  margin-bottom: 0;
}
.ep-single-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}
.ep-single-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,22,40,0.9) 30%, rgba(10,22,40,0.2) 100%);
  display: flex;
  align-items: flex-end;
  padding: 40px;
}
.ep-single-hero-meta {
  max-width: 800px;
}
.ep-single-cat {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.ep-single-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(26px, 4vw, 44px);
  color: #fff;
  line-height: 1.15;
  margin: 0 0 16px;
}
.ep-single-byline {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.ep-post-content {
  background: var(--ep-white);
  border-radius: 0 0 var(--ep-radius) var(--ep-radius);
  padding: 40px;
  line-height: 1.8;
  font-size: 16.5px;
}
.ep-post-content h2, .ep-post-content h3 {
  margin-top: 36px;
  margin-bottom: 16px;
}
.ep-post-content p { margin-bottom: 20px; }
.ep-post-content img {
  border-radius: var(--ep-radius-sm);
  margin: 24px 0;
}

/* Tags */
.ep-post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--ep-border);
}
.ep-tag {
  padding: 5px 14px;
  background: var(--ep-mist);
  border: 1px solid var(--ep-border);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ep-slate);
  transition: all var(--ep-transition);
}
.ep-tag:hover {
  background: var(--ep-accent);
  border-color: var(--ep-accent);
  color: #fff;
}

/* ================================================
   PAGINATION
   ================================================ */
.ep-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.ep-page-btn {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--ep-border);
  border-radius: var(--ep-radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--ep-slate);
  background: var(--ep-white);
  cursor: pointer;
  transition: all var(--ep-transition);
  text-decoration: none;
}
.ep-page-btn:hover, .ep-page-btn.active {
  background: var(--ep-accent);
  border-color: var(--ep-accent);
  color: #fff;
}

/* ================================================
   LOAD MORE BUTTON
   ================================================ */
.ep-load-more-wrap {
  text-align: center;
  margin-top: 40px;
}
.ep-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--ep-radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--ep-transition);
  border: none;
  text-decoration: none;
}
.ep-btn-primary {
  background: var(--ep-accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(15,111,191,0.3);
}
.ep-btn-primary:hover {
  background: var(--ep-accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(15,111,191,0.4);
  color: #fff;
}
.ep-btn-outline {
  background: transparent;
  color: var(--ep-accent);
  border: 1.5px solid var(--ep-accent);
}
.ep-btn-outline:hover {
  background: var(--ep-accent);
  color: #fff;
}

/* ================================================
   EMPTY / NO POSTS STATE
   ================================================ */
.ep-empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--ep-slate);
}
.ep-empty svg { width: 48px; height: 48px; color: var(--ep-border); margin: 0 auto 16px; }
.ep-empty h3 { font-size: 18px; margin-bottom: 8px; }
.ep-empty p { font-size: 14px; }

/* ================================================
   PAGE LAYOUT — ARCHIVE / BLOG
   ================================================ */
.ep-page-wrap {
  max-width: var(--ep-container);
  margin: 0 auto;
  padding: 0 24px;
}

.ep-archive-header {
  background: var(--ep-white);
  border-bottom: 1px solid var(--ep-border);
  padding: 40px 0;
  margin-bottom: 40px;
}

.ep-archive-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 4vw, 42px);
  color: var(--ep-ink);
  margin: 0 0 8px;
}

.ep-archive-count {
  font-size: 14px;
  color: #9AA5B4;
}

/* ================================================
   MOBILE RESPONSIVE
   ================================================ */
@media (max-width: 1024px) {
  .ep-footer-main { grid-template-columns: 1fr 1fr; gap: 36px; }
  .ep-cat-grid { grid-template-columns: 1fr; }
  .ep-cat-sidebar { flex-direction: row; flex-wrap: wrap; }
  .ep-cat-sidebar .ep-card-sm { flex: 1; min-width: 240px; }
  .ep-with-sidebar { grid-template-columns: 1fr; }
  .ep-sidebar { position: static; }
  .ep-articles-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .ep-primary-nav { display: none; }
  .ep-menu-toggle { display: flex; }

  .ep-primary-nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--ep-white);
    border-bottom: 1px solid var(--ep-border);
    box-shadow: var(--ep-shadow-md);
    padding: 12px 16px;
    gap: 4px;
    z-index: 999;
  }

  .ep-header-inner { height: 60px; }
  .ep-site-header { position: sticky; }

  .ep-articles-grid { grid-template-columns: 1fr; }
  .ep-hero { padding: 48px 0 0; }
  .ep-hero-title { font-size: 30px; }
  .ep-slide-overlay { padding: 20px 20px; }
  .ep-slide { aspect-ratio: 4/3; }
  .ep-slider-prev, .ep-slider-next { width: 36px; height: 36px; }
  .ep-section { padding: 40px 0; }
  .ep-footer-main { grid-template-columns: 1fr; gap: 28px; padding: 40px 0 28px; }
  .ep-footer-bottom { flex-direction: column; text-align: center; }
  .ep-single-hero { aspect-ratio: 4/3; }
  .ep-single-hero-overlay { padding: 20px; }
  .ep-post-content { padding: 24px; }
  .ep-cat-sidebar { flex-direction: column; }
}

@media (max-width: 480px) {
  .ep-hero-cats { flex-direction: column; align-items: center; }
  .ep-section-head { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ================================================
   PRINT
   ================================================ */
@media print {
  .ep-site-header, .ep-footer, .ep-sidebar, .ep-ticker { display: none; }
  .ep-with-sidebar { grid-template-columns: 1fr; }
}

/* ================================================
   GENERATEPRESS OVERRIDES
   (Reset GeneratePress defaults to use our system)
   ================================================ */
.main-navigation { display: none !important; } /* Hide GP nav — we use ours */
.site-header { display: none !important; }
.site-footer { display: none !important; }
.generate-back-to-top { display: none; }
body.generatepress { background: var(--ep-mist) !important; }
.inside-article, .post-image { margin: 0; padding: 0; }
