/* =============================================================
   EpapersList.com — Premium Theme CSS
   Modern redesign over Bootstrap Basic skeleton
   Author: Custom for epaperslist.com
   ============================================================= */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Poppins:wght@600;700&display=swap');

/* ---------- CSS Variables ---------- */
:root {
  --color-primary:      #0f1f3d;   /* Deep Navy */
  --color-primary-dark: #080f1f;   /* Darker Navy */
  --color-accent:       #e84040;   /* Signal Red */
  --color-accent-2:     #f5a623;   /* Warm Gold */
  --color-surface:      #f4f7fc;   /* Off-white background */
  --color-card:         #ffffff;   /* Card white */
  --color-text:         #1c2337;   /* Near-black text */
  --color-text-light:   #5a6a8a;   /* Muted text */
  --color-border:       #e2e8f0;   /* Soft border */
  --color-link:         #1a56db;   /* Link blue */
  --color-link-hover:   #0d3aa3;   /* Link hover */
  --shadow-sm:          0 1px 3px rgba(0,0,0,.08);
  --shadow-md:          0 4px 16px rgba(0,0,0,.12);
  --shadow-lg:          0 8px 32px rgba(0,0,0,.15);
  --radius:             10px;
  --radius-sm:          6px;
  --font-main:          'Inter', system-ui, -apple-system, sans-serif;
  --font-heading:       'Poppins', 'Inter', sans-serif;
  --transition:         all .22s cubic-bezier(.4,0,.2,1);
}

/* ---------- Base Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-surface);
  margin: 0;
  padding: 0;
}

a {
  color: var(--color-link);
  text-decoration: none;
  transition: color .18s ease;
}
a:hover { color: var(--color-link-hover); text-decoration: underline; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.3;
}

/* ---------- Page Container ---------- */
.page-container {
  max-width: 1200px;
  padding: 0 16px;
}

/* ============================================================
   HEADER
   ============================================================ */
header[role="banner"] {
  background: var(--color-primary);
  padding: 0;
  margin-bottom: 0;
}

/* Site branding row */
.site-branding {
  margin-bottom: 0 !important;
  padding: 14px 0 10px;
  align-items: center;
}

.site-title {
  margin: 0 !important;
}

/* Logo / Site Title */
.site-title-heading {
  margin: 0 !important;
  font-family: var(--font-heading) !important;
  font-size: 28px !important;
  font-weight: 800 !important;
  letter-spacing: -0.5px;
}
.site-title-heading a {
  color: #ffffff !important;
  text-decoration: none !important;
}
.site-title-heading a:hover {
  color: var(--color-accent-2) !important;
  text-decoration: none !important;
}

/* Title accent bar */
.site-title-heading a::before {
  content: '📰 ';
  font-size: 24px;
}

.site-description {
  color: rgba(255,255,255,.6) !important;
  font-size: 12px !important;
  margin-top: 2px;
  letter-spacing: .4px;
}

/* Header right — leaderboard ad */
.page-header-top-right {
  margin-top: 0 !important;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.header-ad-zone {
  max-width: 100%;
  text-align: right;
}
.header-ad-zone ins,
.header-ad-zone > * {
  display: block;
  max-width: 100%;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.main-navigation { margin-bottom: 0 !important; }

.navbar {
  background: var(--color-primary-dark) !important;
  border: none !important;
  border-radius: 0 !important;
  margin-bottom: 0 !important;
  min-height: 46px;
}

/* Nav links */
.navbar-nav > li > a {
  color: rgba(255,255,255,.85) !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  letter-spacing: .3px;
  padding: 13px 18px !important;
  transition: var(--transition) !important;
  border-bottom: 3px solid transparent;
}
.navbar-nav > li > a:hover,
.navbar-nav > li.current-menu-item > a,
.navbar-nav > li.current-page-ancestor > a {
  color: #ffffff !important;
  background: rgba(255,255,255,.08) !important;
  border-bottom-color: var(--color-accent-2) !important;
}

/* Hamburger toggle */
.navbar-toggle {
  border-color: rgba(255,255,255,.3) !important;
  margin: 7px 0 !important;
}
.navbar-toggle .icon-bar {
  background-color: rgba(255,255,255,.8) !important;
}
.navbar-toggle:hover {
  background: rgba(255,255,255,.1) !important;
}

/* Mobile nav collapse */
@media (max-width: 767px) {
  .navbar-collapse {
    border-top: 1px solid rgba(255,255,255,.1) !important;
    background: var(--color-primary-dark) !important;
  }
  .navbar-nav > li > a {
    padding: 12px 20px !important;
    border-bottom: 1px solid rgba(255,255,255,.07) !important;
    border-left: 3px solid transparent !important;
  }
  .navbar-nav > li > a:hover,
  .navbar-nav > li.current-menu-item > a {
    border-left-color: var(--color-accent-2) !important;
    border-bottom-color: rgba(255,255,255,.07) !important;
  }
}

/* Below-header ad band */
.after-header-ad {
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  padding: 8px 0;
  text-align: center;
}
.after-header-ad ins,
.after-header-ad > * { display: inline-block; }

/* ============================================================
   BREADCRUMBS
   ============================================================ */
.epaper-breadcrumb {
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  padding: 8px 0;
  font-size: 12.5px;
  color: var(--color-text-light);
}
.epaper-breadcrumb a {
  color: var(--color-text-light);
}
.epaper-breadcrumb a:hover { color: var(--color-link); }
.epaper-breadcrumb .sep { margin: 0 6px; color: #c0cce0; }
.epaper-breadcrumb .current { color: var(--color-text); font-weight: 500; }

/* ============================================================
   MAIN CONTENT AREA
   ============================================================ */
.site-content {
  margin-top: 0 !important;
  padding-top: 24px;
}

/* Content / Post / Page */
#main-column .post,
#main-column .page {
  background: var(--color-card) !important;
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius) !important;
  padding: 24px 28px !important;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px !important;
}

/* Entry title */
#main-column .entry-title {
  font-size: 26px;
  color: var(--color-text);
  margin-top: 0 !important;
  margin-bottom: 12px;
}
#main-column .entry-title a { color: var(--color-text); }
#main-column .entry-title a:hover { color: var(--color-link); text-decoration: none; }

/* Entry content */
.entry-content { font-size: 15px; line-height: 1.8; }
.entry-content h2 { font-size: 20px; margin-top: 24px; }
.entry-content h3 { font-size: 17px; }

/* Country link lists */
.entry-content a[href] {
  color: var(--color-link);
}
.entry-content ul, .entry-content ol {
  padding-left: 20px;
}

/* Country grid — class added via filter/JS */
.country-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px 16px;
  list-style: none !important;
  padding: 0 !important;
  margin: 16px 0 !important;
}
.country-grid li {
  padding: 0 !important;
}
.country-grid li a {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  color: var(--color-text) !important;
  font-size: 13.5px;
  font-weight: 500;
  transition: var(--transition);
  border: 1px solid transparent;
}
.country-grid li a:hover {
  background: #eef3ff;
  border-color: #c4d4f5;
  color: var(--color-link) !important;
  text-decoration: none !important;
}
.country-flag {
  font-size: 18px;
  line-height: 1;
}

/* Newspaper card grid */
.newspaper-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px 14px;
  list-style: none !important;
  padding: 0 !important;
  margin: 12px 0 !important;
}
.newspaper-grid li { padding: 0 !important; }
.newspaper-grid li a {
  display: block;
  padding: 8px 12px;
  border-left: 3px solid var(--color-border);
  color: var(--color-link) !important;
  font-size: 13.5px;
  transition: var(--transition);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.newspaper-grid li a:hover {
  border-left-color: var(--color-accent);
  background: #fff5f5;
  text-decoration: none !important;
  padding-left: 16px;
}

/* Section headings within content */
.entry-content h2.section-heading {
  font-size: 18px;
  color: var(--color-primary);
  border-left: 4px solid var(--color-accent);
  padding-left: 12px;
  margin: 28px 0 14px;
}

/* In-content ad block */
.in-content-ad {
  margin: 28px 0;
  text-align: center;
  background: #f8faff;
  border: 1px dashed #c5d5ef;
  border-radius: var(--radius-sm);
  padding: 12px;
}
.in-content-ad::before {
  display: block;
  content: 'Advertisement';
  font-size: 10px;
  color: #9aabbf;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
#sidebar-right {
  padding-left: 8px;
}

#sidebar-right .widget {
  background: var(--color-card) !important;
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius) !important;
  padding: 18px !important;
  box-shadow: var(--shadow-sm) !important;
  margin-bottom: 20px !important;
}

#sidebar-right .widget-title {
  font-size: 14px !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--color-primary) !important;
  border-bottom: 2px solid var(--color-border);
  padding-bottom: 10px;
  margin-bottom: 14px !important;
}

/* Sidebar ad zone — fully responsive, auto-fills container width */
.sidebar-ad-zone {
  text-align: center;
  margin-bottom: 20px;
  width: 100%;
  overflow: hidden;          /* prevent ad from bleeding outside */
}
.sidebar-ad-zone::before {
  display: block;
  content: 'Advertisement';
  font-size: 10px;
  color: #9aabbf;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
/* Force ALL AdSense / ad network elements to fill sidebar width */
.sidebar-ad-zone ins.adsbygoogle,
.sidebar-ad-zone ins,
.sidebar-ad-zone iframe,
.sidebar-ad-zone > div,
.sidebar-ad-zone > * {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
}

/* Ad-only widget: remove inner padding so full width is used */
#sidebar-right .widget.sidebar-ad-zone,
#sidebar-right aside.sidebar-ad-zone {
  padding: 4px !important;   /* tiny padding just for the label */
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Sticky sidebar */
.sticky-sidebar-ad {
  position: sticky;
  top: 20px;
}

/* Search widget overhaul */
.widget_search .search-form {
  display: flex;
  gap: 6px;
}
.widget_search input[type="search"],
.widget_search .search-field {
  flex: 1;
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius-sm) !important;
  padding: 8px 12px !important;
  font-size: 13px;
  color: var(--color-text);
  outline: none;
  transition: border-color .18s;
}
.widget_search input[type="search"]:focus {
  border-color: var(--color-link) !important;
}
.widget_search input[type="submit"],
.widget_search .search-submit {
  background: var(--color-accent) !important;
  color: #fff !important;
  border: none !important;
  border-radius: var(--radius-sm) !important;
  padding: 8px 14px !important;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.widget_search input[type="submit"]:hover {
  background: #c42f2f !important;
}

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer {
  background: var(--color-primary) !important;
  border-top: none !important;
  padding: 0 !important;
  margin-top: 32px;
}

.footer-ad-strip {
  background: #fff;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 10px 0;
  text-align: center;
}
.footer-ad-strip::before {
  display: block;
  content: 'Advertisement';
  font-size: 10px;
  color: #9aabbf;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.site-footer {
  padding: 28px 0 0 !important;
}

.footer-left,
.footer-right {
  color: rgba(255,255,255,.7) !important;
  font-size: 13px !important;
  padding-bottom: 20px;
}
.footer-left a,
.footer-right a {
  color: rgba(255,255,255,.6) !important;
}
.footer-left a:hover,
.footer-right a:hover {
  color: var(--color-accent-2) !important;
  text-decoration: none;
}

.footer-bottom-bar {
  background: rgba(0,0,0,.25);
  padding: 12px 0;
  font-size: 12px;
  color: rgba(255,255,255,.45);
  border-top: 1px solid rgba(255,255,255,.08);
  text-align: center;
}
.footer-bottom-bar a { color: rgba(255,255,255,.55); }
.footer-bottom-bar a:hover { color: var(--color-accent-2); text-decoration: none; }

/* Footer widgets */
.footer-widget-title {
  color: #ffffff !important;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}

/* ============================================================
   BELOW-POST AD
   ============================================================ */
.below-post-ad {
  background: #f0f6ff;
  border: 1px solid #d0e2ff;
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  margin: 24px 0 8px;
}
.below-post-ad::before {
  display: block;
  content: 'Advertisement';
  font-size: 10px;
  color: #9aabbf;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination-row { margin-bottom: 24px; }
.pagination > li > a,
.pagination > li > span {
  color: var(--color-link) !important;
  border-color: var(--color-border) !important;
  border-radius: var(--radius-sm) !important;
  margin: 0 2px !important;
  transition: var(--transition);
}
.pagination > li > a:hover {
  background: var(--color-primary) !important;
  color: #fff !important;
  border-color: var(--color-primary) !important;
}
.pagination > .active > a,
.pagination > .active > span {
  background: var(--color-primary) !important;
  border-color: var(--color-primary) !important;
}

/* ============================================================
   RESPONSIVE — Tablet
   ============================================================ */
@media (max-width: 991px) {
  .country-grid,
  .newspaper-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  #sidebar-right {
    padding-left: 0;
    margin-top: 20px;
  }
}

/* ============================================================
   RESPONSIVE — Mobile
   ============================================================ */
@media (max-width: 767px) {
  .site-title-heading { font-size: 22px !important; }

  .site-branding { padding: 10px 0 8px; }

  /* Full-width content on mobile */
  #main-column .post,
  #main-column .page {
    padding: 16px !important;
    border-radius: var(--radius-sm) !important;
  }
  .entry-content {
    font-size: 14.5px;
  }

  /* Country grid 1 col on small mobile */
  .country-grid,
  .newspaper-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 4px 10px;
  }

  /* Sidebar below content on mobile */
  #sidebar-right { order: 2; }

  /* Sticky sidebar no-stick on mobile */
  .sticky-sidebar-ad { position: static; }

  /* Compact footer */
  .footer-left,
  .footer-right {
    text-align: center !important;
  }

  /* Below-nav ad smaller */
  .after-header-ad { padding: 6px 0; }
}

@media (max-width: 480px) {
  .country-grid,
  .newspaper-grid {
    grid-template-columns: 1fr 1fr;
  }
  .site-title-heading { font-size: 19px !important; }
}

/* ============================================================
   DETAIL PAGE (Newspaper info page)
   ============================================================ */
.newspaper-info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}
.newspaper-info-table th,
.newspaper-info-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--color-border);
  font-size: 14px;
  text-align: left;
}
.newspaper-info-table th {
  background: var(--color-surface);
  font-weight: 600;
  width: 38%;
  color: var(--color-text-light);
}

/* Newspaper thumbnail */
.newspaper-thumbnail {
  display: block;
  max-width: 280px;
  margin: 0 auto 18px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}

/* Visit epaper button */
.epaper-visit-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-accent);
  color: #fff !important;
  font-weight: 700;
  font-size: 15px;
  padding: 11px 28px;
  border-radius: 999px;
  text-decoration: none !important;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(232,64,64,.35);
  margin: 14px 0;
}
.epaper-visit-btn:hover {
  background: #c42f2f;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(232,64,64,.45);
  color: #fff !important;
}

/* ============================================================
   MISCELLANEOUS / UTILITIES
   ============================================================ */
/* Spinner / loading state */
.ep-loading {
  opacity: .5;
  pointer-events: none;
}

/* No-results */
.no-results .page-header { border-bottom: 1px solid var(--color-border); margin-bottom: 16px; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f0f4f8; }
::-webkit-scrollbar-thumb { background: #b0bfd0; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #8a9ab0; }

/* Selection */
::selection { background: #d0e4ff; color: var(--color-text); }
