/*
Theme Name: AK Lasbela Premium
Theme URI: https://example.com/ak-lasbela-premium
Author: Premium WordPress Themes
Author URI: https://example.com
Description: A premium, modern WordPress theme for AK Lasbela Karachi daily results, reports, and charts. Built with clean white background, dark navy text, and red accents for maximum readability.
Version: 1.1.8
Requires at least: 5.8
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ak-lasbela-premium
Tags: blog, news, results, responsive, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ===========================
   CSS CUSTOM PROPERTIES
   =========================== */
:root {
  --color-primary: #c0392b;
  --color-primary-dark: #96281b;
  --color-primary-light: #e74c3c;
  --color-navy: #0f172a;
  --color-navy-mid: #1e293b;
  --color-navy-light: #334155;
  --color-text: #1e293b;
  --color-text-muted: #64748b;
  --color-text-light: #94a3b8;
  --color-bg: #ffffff;
  --color-bg-soft: #f8fafc;
  --color-bg-card: #ffffff;
  --color-border: #e2e8f0;
  --color-border-light: #f1f5f9;
  --color-accent: #c0392b;
  --color-success: #16a34a;
  --color-topbar-bg: #0f172a;
  --color-topbar-text: #cbd5e1;
  --color-nav-bg: #1e293b;
  --color-nav-text: #f8fafc;
  --color-ticker-bg: #c0392b;
  --color-ticker-label: #ffffff;
  --font-primary: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-display: 'Outfit', 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  --font-urdu: 'Noto Nastaliq Urdu', 'Jameel Noori Nastaleeq', serif;
  --border-radius-sm: 6px;
  --border-radius: 10px;
  --border-radius-lg: 16px;
  --border-radius-xl: 24px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow: 0 4px 6px -1px rgba(0,0,0,.07), 0 2px 4px -1px rgba(0,0,0,.05);
  --shadow-md: 0 10px 25px -5px rgba(0,0,0,.08), 0 4px 6px -2px rgba(0,0,0,.04);
  --shadow-lg: 0 20px 40px -10px rgba(0,0,0,.12);
  --transition: 0.2s ease;
  --transition-md: 0.3s ease;
  --max-width: 1280px;
  --content-width: 68%;
  --sidebar-width: 28%;
}

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

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

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-primary);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg-soft);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

a:hover {
  color: var(--color-primary-dark);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-navy);
  margin: 0 0 0.75em;
}

p { margin: 0 0 1.25em; }

ul, ol { padding-left: 1.5em; margin: 0 0 1em; }

table {
  width: 100%;
  border-collapse: collapse;
}

/* ===========================
   LAYOUT
   =========================== */
.site-wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  background: var(--color-bg);
  box-shadow: 0 0 60px rgba(0,0,0,.06);
}

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

/* Fix #15 — removed horizontal padding to prevent double-padding inside .container */
.content-area {
  display: flex;
  gap: 32px;
  padding: 32px 0;
  max-width: var(--max-width);
  margin: 0 auto;
}

.main-content {
  width: var(--content-width);
  min-width: 0;
}

.sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
}

/* ===========================
   TOP BAR
   =========================== */
#topbar {
  background: var(--color-topbar-bg);
  color: var(--color-topbar-text);
  padding: 8px 0;
  font-size: 0.78rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar-date {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #94a3b8;
  font-size: 0.75rem;
  letter-spacing: 0.3px;
}

.topbar-date .date-icon {
  width: 14px;
  height: 14px;
  opacity: 0.7;
}

.topbar-links {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.topbar-links a {
  color: #94a3b8;
  font-size: 0.75rem;
  text-decoration: none;
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 4px;
}

.topbar-links a:hover { color: var(--color-primary-light); }

.topbar-social {
  display: flex;
  align-items: center;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.topbar-social a {
  color: #64748b;
  font-size: 0.8rem;
  transition: color var(--transition);
  display: flex;
  align-items: center;
}

.topbar-social a:hover { color: var(--color-primary-light); }

/* ===========================
   HEADER / MASTHEAD  (Fix #1 — restored branding block)
   =========================== */
.site-header {
  background: var(--color-bg);
  border-bottom: 3px solid var(--color-primary);
  padding: 16px 0;
}

#masthead { /* alias — keep both selectors pointing at same element */
  background: var(--color-bg);
}

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

.site-branding {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  flex-shrink: 0;
}

/* WordPress custom-logo img */
.site-branding .custom-logo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--color-primary);
  box-shadow: 0 4px 14px rgba(192,57,43,.25);
  display: block;
}

.site-logo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--color-primary);
  box-shadow: 0 4px 14px rgba(192,57,43,.25);
  flex-shrink: 0;
}

.site-logo-placeholder {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  color: #fff;
  letter-spacing: -0.5px;
  flex-shrink: 0;
  border: 3px solid var(--color-primary);
  box-shadow: 0 4px 14px rgba(192,57,43,.25);
}

.branding-text { display: flex; flex-direction: column; gap: 2px; }

.site-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-navy);
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.5px;
}

.site-title span { color: var(--color-primary); }

.site-description {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin: 0;
  font-weight: 400;
  letter-spacing: 0.2px;
}

/* Header ad zone — only rendered when sidebar is active */
.header-ad-zone {
  flex: 1;
  max-width: 728px;
  text-align: center;
}

/* Responsive masthead */
@media (max-width: 768px) {
  .site-header { padding: 12px 0; }
  .site-title { font-size: 1.2rem; }
  .site-logo-placeholder,
  .site-branding .custom-logo,
  .site-logo { width: 48px; height: 48px; font-size: 1.1rem; }
  .header-inner { flex-wrap: wrap; gap: 12px; }
  .header-ad-zone { order: 3; width: 100%; }
}

/* ===========================
   NAVIGATION
   =========================== */
#primary-navigation {
  background: var(--color-nav-bg);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,.2);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.main-menu {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-menu > li {
  position: relative;
}

.main-menu > li > a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 18px;
  color: #cbd5e1;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: all var(--transition);
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}

.main-menu > li > a:hover,
.main-menu > li.current-menu-item > a,
.main-menu > li.current-menu-ancestor > a {
  color: #fff;
  background: rgba(255,255,255,.06);
  border-bottom-color: var(--color-primary);
}

.main-menu > li.menu-home > a { color: var(--color-primary-light); }

/* Dropdown */
.main-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-navy);
  min-width: 220px;
  list-style: none;
  padding: 8px 0;
  margin: 0;
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition-md);
  z-index: 200;
}

.main-menu > li:hover .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.main-menu .sub-menu a {
  display: block;
  padding: 10px 20px;
  color: #94a3b8;
  font-size: 0.82rem;
  transition: all var(--transition);
}

.main-menu .sub-menu a:hover {
  color: #fff;
  background: rgba(192,57,43,.2);
  padding-left: 26px;
}

/* Nav Search */
.nav-search-form {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-search-form input[type="search"] {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-right: none;
  border-radius: var(--border-radius-sm) 0 0 var(--border-radius-sm);
  color: #fff;
  padding: 8px 14px;
  font-size: 0.82rem;
  width: 200px;
  transition: all var(--transition);
  outline: none;
}

.nav-search-form input[type="search"]::placeholder { color: rgba(255,255,255,.4); }

.nav-search-form input[type="search"]:focus {
  background: rgba(255,255,255,.12);
  border-color: var(--color-primary);
  width: 240px;
}

.nav-search-form button {
  background: var(--color-primary);
  border: none;
  color: #fff;
  padding: 8px 14px;
  cursor: pointer;
  border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
  transition: background var(--transition);
}

.nav-search-form button:hover { background: var(--color-primary-dark); }

/* Hamburger */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 12px 20px;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #cbd5e1;
  border-radius: 2px;
  transition: all var(--transition-md);
}

/* ===========================
   BREAKING NEWS TICKER
   =========================== */
#news-ticker {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: stretch;
  overflow: hidden;
}

.ticker-label {
  background: var(--color-primary);
  color: #fff;
  padding: 10px 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.ticker-label::before {
  content: '';
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

.ticker-wrapper {
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.ticker-content {
  display: flex;
  gap: 0;
  animation: ticker-scroll 40s linear infinite;
  white-space: nowrap;
  padding: 10px 0;
}

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

.ticker-item {
  font-size: 0.83rem;
  color: var(--color-text);
  padding: 0 40px 0 0;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.ticker-item a {
  color: var(--color-navy-mid);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition);
}

.ticker-item a:hover { color: var(--color-primary); }

.ticker-item::after {
  content: '•';
  color: var(--color-primary);
  margin-left: 20px;
}

.ticker-item:last-child::after { content: ''; }

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

/* ===========================
   FEATURED SECTION
   =========================== */
.featured-section {
  padding: 24px 0 0;
}

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

.featured-main {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--color-navy);
}

.featured-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.featured-main:hover img { transform: scale(1.04); }

.featured-main-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(15,23,42,.95) 0%, rgba(15,23,42,.5) 60%, transparent 100%);
  padding: 32px 24px 24px;
}

.featured-category-badge {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.featured-main-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  margin: 0 0 10px;
}

.featured-main-title a { color: #fff; text-decoration: none; }
.featured-main-title a:hover { color: var(--color-primary-light); }

.featured-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.75rem;
  color: rgba(255,255,255,.7);
}

.featured-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.featured-side-item {
  display: flex;
  gap: 14px;
  background: var(--color-bg-card);
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-md);
  text-decoration: none;
}

.featured-side-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--color-primary);
}

.featured-side-thumb {
  width: 100px;
  flex-shrink: 0;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--color-bg-soft);
}

.featured-side-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-side-info {
  padding: 12px 12px 12px 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.featured-side-cat {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.featured-side-title {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.3;
  margin: 0;
}

.featured-side-date {
  font-size: 0.72rem;
  color: var(--color-text-muted);
}

/* ===========================
   SECTION HEADING
   =========================== */
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-border);
  position: relative;
}

.section-heading::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
}

.section-heading h2, .section-heading h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-navy);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-heading h2::before, .section-heading h3::before {
  content: '';
  width: 4px;
  height: 22px;
  background: var(--color-primary);
  border-radius: 2px;
  flex-shrink: 0;
}

.view-all-link {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--color-primary);
  padding: 4px 12px;
  border-radius: 20px;
  transition: all var(--transition);
  white-space: nowrap;
}

.view-all-link:hover {
  background: var(--color-primary);
  color: #fff;
}

/* Record Page Intro */
.record-page-intro {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e2e8f0;
}

.record-faqs-block {
  text-align: left;
}

.faq-section-title {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 16px;
}

/* Fix #7 — Consolidated .faq-item and .faq-question (single source of truth).
   Record-page inline FAQ uses a simpler inline style via .record-faqs-block. */
.faq-item {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  overflow: hidden;
  margin-bottom: 12px;
}

/* <details>/<summary> native accordion */
.faq-item summary.faq-question,
.faq-question {
  padding: 14px 20px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--color-navy);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  user-select: none;
  list-style: none; /* remove default marker in Chrome */
  line-height: 1.4;
}

/* Remove default disclosure triangle in webkit */
.faq-item summary.faq-question::-webkit-details-marker { display: none; }

/* Rotate toggle icon when open */
.faq-item[open] summary .faq-toggle { transform: rotate(45deg); }

.faq-toggle {
  font-size: 1.2rem;
  color: var(--color-primary);
  flex-shrink: 0;
  transition: transform 0.2s ease;
  display: inline-block;
}

.faq-answer {
  padding: 0 20px 16px;
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.faq-answer p { margin: 0; }

/* Inline-only overrides for record page simple FAQ */
.record-faqs-block .faq-question {
  font-size: 0.88rem;
  color: #0284c7;
  text-decoration: underline;
  padding: 0;
  display: block;
  border: none;
  background: none;
}

.record-faqs-block .faq-item {
  background: none;
  border: none;
  border-radius: 0;
  margin-bottom: 12px;
  overflow: visible;
}

.record-faqs-block .faq-answer {
  padding: 0;
  margin-top: 2px;
}

.post-feed-stream {
  width: 100%;
  max-width: 100%;
  margin: 15px auto 30px;
  padding: 0;
  box-sizing: border-box;
}

/* Fix #2 — purple sub-menu toggle button styling */
.sub-menu-toggle {
  display: none; /* hidden on desktop — shown on mobile via responsive block */
  background: none;
  border: none;
  color: rgba(255,255,255,.7);
  cursor: pointer;
  padding: 6px 10px;
  align-items: center;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

/* Fix #3 — mobile search toggle button */
.mobile-search-toggle {
  display: none; /* shown on mobile only */
  background: none;
  border: none;
  color: rgba(255,255,255,.8);
  cursor: pointer;
  padding: 8px 10px;
  align-items: center;
  justify-content: center;
  transition: color var(--transition);
  flex-shrink: 0;
}

.mobile-search-toggle:hover { color: #fff; }

/* Mobile search drawer */
.mobile-search-drawer {
  padding: 10px 0 12px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.mobile-search-inner {
  display: flex;
  gap: 0;
  width: 100%;
}

.mobile-search-inner input[type="search"] {
  flex: 1;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  border-right: none;
  border-radius: var(--border-radius-sm) 0 0 var(--border-radius-sm);
  color: #fff;
  padding: 10px 14px;
  font-size: 0.9rem;
  outline: none;
  font-family: var(--font-primary);
}

.mobile-search-inner input[type="search"]::placeholder { color: rgba(255,255,255,.4); }

.mobile-search-inner input[type="search"]:focus {
  background: rgba(255,255,255,.15);
  border-color: var(--color-primary);
}

.mobile-search-inner button {
  background: var(--color-primary);
  border: none;
  color: #fff;
  padding: 10px 16px;
  cursor: pointer;
  border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
  transition: background var(--transition);
}

.mobile-search-inner button:hover { background: var(--color-primary-dark); }

.posts-grid:has(.post-feed-card) {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 100%;
  margin: 0 auto 24px;
}

/* Fix #2 — replaced all purple #8e24aa with var(--color-primary) */
.post-feed-card {
  width: 100%;
  max-width: 100%;
  background: #ffffff;
  border: 2px solid var(--color-primary);
  border-radius: 8px;
  padding: 12px 14px 16px;
  margin: 0 auto 16px;
  box-sizing: border-box;
  box-shadow: 0 2px 8px rgba(192, 57, 43, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.post-feed-card:hover {
  box-shadow: 0 4px 14px rgba(192, 57, 43, 0.16);
}

/* Card Header: Author | Date | Time */
.post-feed-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #2c3e50;
  padding-bottom: 8px;
  margin-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
}

.post-feed-author {
  color: #1e293b;
  font-weight: 800;
}

.post-feed-sep {
  color: #94a3b8;
  font-weight: 400;
}

.post-feed-date,
.post-feed-time {
  color: #475569;
  font-weight: 600;
}

/* Card Title */
.post-feed-title {
  text-align: center;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 10px;
  line-height: 1.35;
}

.post-feed-title a {
  color: #0f172a;
  text-decoration: none;
}

.post-feed-title a:hover {
  color: var(--color-primary); /* Fix #2 */
}

/* Card Media / Images */
.post-feed-media {
  text-align: center;
  margin: 10px auto;
  width: 100%;
}

.post-feed-media a {
  display: block;
}

.post-feed-img,
.post-feed-media img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 6px;
  border: 1px solid #f1f5f9;
}

/* Card Text Content: Centered, Bold Blue Text */
.post-feed-text {
  text-align: center;
  color: #0b4ec7;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.85;
  word-wrap: break-word;
  margin: 10px 0;
}

.post-feed-text p {
  text-align: center !important;
  color: #0b4ec7 !important;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.85;
  margin: 4px 0;
}

.post-feed-text strong,
.post-feed-text b {
  font-weight: 800;
}

.post-feed-text a:not(.vip-badge a):not(.vip-line a) {
  color: #0b4ec7;
  text-decoration: underline;
  word-break: break-all;
}

.post-feed-text a:not(.vip-badge a):not(.vip-line a):hover {
  color: #8e24aa;
}

.post-feed-text img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 10px auto;
  border-radius: 6px;
}

/* VIP Blue Badges (Screenshot Style: media_1791909308279.png) */
.vip-badges-stream {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  width: 100%;
  margin: 3px 0;
}

.vip-line {
  display: block;
  width: 100%;
  text-align: center;
  margin: 1px 0;
}

.vip-badge,
.post-feed-text .vip-badge,
.post-content .vip-badge {
  display: inline-block;
  background: linear-gradient(180deg, #0256b9 0%, #004494 100%) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  font-style: italic !important;
  font-size: clamp(0.82rem, 3vw, 0.95rem);
  padding: 4px 14px;
  border-radius: 4px;
  margin: 1px auto;
  line-height: 1.35;
  box-shadow: 0 2px 5px rgba(0, 60, 150, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.25);
  text-align: center;
  max-width: 100%;
  white-space: nowrap;
  letter-spacing: 0.2px;
  box-sizing: border-box;
  transition: transform 0.15s ease, background 0.15s ease;
}

.vip-badge:hover {
  background: #003d80 !important;
  transform: scale(1.02);
}

/* Links inside VIP badges - Crisp White & Underlined */
.vip-badge a,
.vip-line a,
.vip-badges-stream a,
.post-feed-text .vip-badge a,
.post-feed-text .vip-line a,
.post-content .vip-badge a {
  color: #ffffff !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
  font-weight: 800 !important;
  font-style: italic !important;
  word-break: break-all;
  display: inline-block;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.vip-badge a:hover,
.vip-line a:hover,
.vip-badges-stream a:hover,
.post-feed-text .vip-badge a:hover,
.post-feed-text .vip-line a:hover,
.post-content .vip-badge a:hover {
  color: #fef08a !important; /* Bright golden yellow on hover */
  text-decoration: underline !important;
  opacity: 0.95;
}

.vip-badge a:visited,
.post-feed-text .vip-badge a:visited {
  color: #ffffff !important;
}

.vip-divider-badge,
.post-feed-text .vip-divider-badge,
.post-content .vip-divider-badge {
  background: #003875 !important;
  letter-spacing: 1.5px;
  font-size: 0.88rem;
  padding: 4px 12px;
  border-color: rgba(255, 255, 255, 0.35);
}

/* WordPress Twemoji / SVG Emojis - strict normal font-size */
img.emoji,
img.wp-smiley,
.post-feed-card img.emoji,
.post-feed-card img.wp-smiley,
.vip-badge img.emoji,
.vip-badge img.wp-smiley,
.vip-line img.emoji,
.vip-badges-stream img.emoji {
  display: inline-block !important;
  border: none !important;
  box-shadow: none !important;
  height: 1.15em !important;
  width: 1.15em !important;
  min-height: 0 !important;
  min-width: 0 !important;
  max-height: 1.25em !important;
  max-width: 1.25em !important;
  margin: 0 0.15em !important;
  vertical-align: -0.15em !important;
  background: transparent !important;
  padding: 0 !important;
}

/* Actual Post Media Images */
.post-feed-media-inline {
  max-width: 100%;
  margin: 10px auto;
  text-align: center;
}

.post-feed-media-inline img:not(.emoji) {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 8px auto;
  border-radius: 6px;
}

/* Card Footer */
.post-feed-footer {
  margin-top: 14px;
  padding-top: 8px;
  border-top: 1px dashed #e2e8f0;
  text-align: center;
}

.post-feed-permalink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
  text-decoration: none;
  transition: color 0.2s ease;
}

.post-feed-permalink:hover {
  color: var(--color-primary); /* Fix #2 */
}

/* Feed Pagination */
.post-feed-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 30px 0;
  flex-wrap: wrap;
}

/* Fix #2 — pagination purple → red */
.post-feed-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-primary);
  background: #ffffff;
  border: 1.5px solid var(--color-primary);
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.post-feed-pagination .page-numbers:hover,
.post-feed-pagination .page-numbers.current {
  background: var(--color-primary);
  color: #ffffff;
}

/* Empty State */
.post-feed-empty {
  text-align: center;
  padding: 40px 20px;
  background: #ffffff;
  border: 2px dashed #cbd5e1;
  border-radius: 8px;
  color: #64748b;
  font-weight: 600;
}

/* ===========================
   POST CARDS (Legacy Grid)
   =========================== */
.posts-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-bottom: 32px;
}

.post-card {
  background: var(--color-bg-card);
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-md);
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(192,57,43,.2);
}

.post-card-thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--color-bg-soft);
  position: relative;
}

.post-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.post-card:hover .post-card-thumb img { transform: scale(1.06); }

.post-card-thumb-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.3);
  font-size: 2rem;
}

.post-card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.post-card-category {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(192,57,43,.08);
  color: var(--color-primary);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 4px;
  text-decoration: none;
  align-self: flex-start;
  transition: all var(--transition);
}

.post-card-category:hover { background: var(--color-primary); color: #fff; }

.post-card-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.35;
  margin: 0;
  flex: 1;
}

.post-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

.post-card-title a:hover { color: var(--color-primary); }

.post-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.73rem;
  color: var(--color-text-muted);
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--color-border-light);
}

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

.post-card-excerpt {
  font-size: 0.83rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* List post cards */
.post-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }

.post-list-item {
  display: flex;
  gap: 14px;
  background: var(--color-bg-card);
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-md);
  text-decoration: none;
  align-items: stretch;
}

.post-list-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: rgba(192,57,43,.25);
}

.post-list-thumb {
  width: 110px;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--color-bg-soft);
}

.post-list-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-list-body {
  padding: 14px 14px 14px 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: center;
}

.post-list-cat {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.post-list-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-list-date {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ===========================
   RESULTS TABLE CARD
   =========================== */
.results-card {
  background: var(--color-bg-card);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--color-border);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 32px;
}

.results-card-header {
  background: linear-gradient(135deg, var(--color-navy), var(--color-navy-mid));
  color: #fff;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.results-card-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.results-card-date {
  font-size: 0.75rem;
  color: rgba(255,255,255,.65);
}

.results-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.results-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 0.88rem;
}

.results-table thead th {
  background: rgba(192,57,43,.08);
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 2px solid rgba(192,57,43,.2);
}

.results-table tbody tr {
  border-bottom: 1px solid var(--color-border-light);
  transition: background var(--transition);
}

.results-table tbody tr:hover { background: var(--color-bg-soft); }

.results-table tbody tr:last-child { border-bottom: none; }

.results-table td {
  padding: 12px 16px;
  color: var(--color-text);
  vertical-align: middle;
}

.results-table td:first-child {
  font-weight: 600;
  color: var(--color-navy);
}

.result-number {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-primary);
  letter-spacing: 2px;
}

.result-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.result-badge.open { background: rgba(22,163,74,.1); color: #16a34a; }
.result-badge.close { background: rgba(192,57,43,.1); color: var(--color-primary); }
.result-badge.double { background: rgba(59,130,246,.1); color: #3b82f6; }

/* ===========================
   SIDEBAR
   =========================== */
.sidebar-widget {
  background: var(--color-bg-card);
  border-radius: var(--border-radius);
  border: 1px solid var(--color-border);
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.widget-title-bar {
  background: linear-gradient(135deg, var(--color-navy), var(--color-navy-mid));
  color: #fff;
  padding: 12px 18px;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.widget-title-bar::before {
  content: '';
  width: 4px;
  height: 16px;
  background: var(--color-primary);
  border-radius: 2px;
  flex-shrink: 0;
}

.widget-body { padding: 16px; }

/* Recent posts widget */
.widget-post-list { list-style: none; padding: 0; margin: 0; }

.widget-post-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border-light);
}

.widget-post-item:last-child { border-bottom: none; padding-bottom: 0; }

.widget-post-num {
  width: 26px;
  height: 26px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

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

.widget-post-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-navy);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-decoration: none;
  transition: color var(--transition);
}

.widget-post-title:hover { color: var(--color-primary); }

.widget-post-date {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Category widget */
.widget-categories { list-style: none; padding: 0; margin: 0; }

.widget-categories li {
  border-bottom: 1px solid var(--color-border-light);
}

.widget-categories li:last-child { border-bottom: none; }

.widget-categories a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  color: var(--color-text);
  font-size: 0.83rem;
  text-decoration: none;
  transition: all var(--transition);
  font-weight: 500;
}

.widget-categories a:hover {
  color: var(--color-primary);
  padding-left: 4px;
}

.widget-categories .cat-count {
  background: var(--color-bg-soft);
  color: var(--color-text-muted);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  border: 1px solid var(--color-border);
}

/* Archive widget */
.widget-archive { list-style: none; padding: 0; margin: 0; }

.widget-archive li {
  border-bottom: 1px solid var(--color-border-light);
}

.widget-archive li:last-child { border-bottom: none; }

.widget-archive a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  color: var(--color-text);
  font-size: 0.83rem;
  text-decoration: none;
  transition: color var(--transition);
}

.widget-archive a:hover { color: var(--color-primary); }

.widget-archive a::before {
  content: '›';
  color: var(--color-primary);
  font-size: 1rem;
  font-weight: 700;
}

/* Ad placeholder */
.widget-ad-placeholder {
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border: 2px dashed var(--color-border);
  border-radius: var(--border-radius);
  padding: 32px 16px;
  text-align: center;
  font-size: 0.73rem;
  color: var(--color-text-light);
  letter-spacing: 1px;
  text-transform: uppercase;
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
}

.widget-ad-placeholder .ad-size {
  font-size: 0.65rem;
  opacity: 0.7;
}

/* ===========================
   PAGINATION
   =========================== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 32px 0;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--border-radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  text-decoration: none;
  transition: all var(--transition);
}

.pagination a:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.pagination .current {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.pagination .prev, .pagination .next {
  width: auto;
  padding: 0 16px;
  font-size: 0.8rem;
}

/* ===========================
   SINGLE POST
   =========================== */
.single-post-header {
  background: var(--color-bg-card);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.single-post-thumbnail {
  aspect-ratio: 16/7;
  overflow: hidden;
  background: var(--color-navy);
}

.single-post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.single-post-header-body {
  padding: 28px 32px 24px;
}

.single-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.single-breadcrumb a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
}

.single-breadcrumb a:hover { text-decoration: underline; }

.single-breadcrumb span { color: var(--color-text-muted); }

.single-category-badge {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 4px 12px;
  border-radius: 4px;
  text-decoration: none;
  margin-bottom: 14px;
}

.single-post-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-navy);
  line-height: 1.2;
  margin: 0 0 20px;
  letter-spacing: -0.5px;
}

.single-post-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 16px 0;
  border-top: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border-light);
}

.single-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.single-meta-item svg { color: var(--color-primary); }

.single-meta-item.author-meta .author-name {
  font-weight: 600;
  color: var(--color-navy);
}

/* Post content */
.post-content {
  background: var(--color-bg-card);
  border-radius: var(--border-radius-lg);
  padding: 32px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.post-content h1, .post-content h2, .post-content h3,
.post-content h4, .post-content h5, .post-content h6 {
  color: var(--color-navy);
  margin: 1.5em 0 0.75em;
  font-family: var(--font-display);
}

.post-content h1 { font-size: 1.8rem; }
.post-content h2 { font-size: 1.4rem; border-left: 4px solid var(--color-primary); padding-left: 14px; }
.post-content h3 { font-size: 1.15rem; }

.post-content p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text);
  margin-bottom: 1.25em;
}

.post-content pre {
  background: var(--color-navy);
  color: #e2e8f0;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.7;
  padding: 20px 24px;
  border-radius: var(--border-radius);
  overflow-x: auto;
  margin: 1.5em 0;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.post-content blockquote {
  border-left: 4px solid var(--color-primary);
  margin: 1.5em 0;
  padding: 16px 20px;
  background: rgba(192,57,43,.04);
  border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
  font-style: italic;
  color: var(--color-text-muted);
}

.post-content table {
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  margin: 1.5em 0;
  font-family: var(--font-mono);
}

.post-content table th {
  background: var(--color-navy);
  color: #fff;
  padding: 12px 16px;
  font-size: 0.82rem;
  text-align: left;
}

.post-content table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--color-border-light);
  font-size: 0.88rem;
}

.post-content table tr:nth-child(even) td { background: var(--color-bg-soft); }
.post-content table tr:last-child td { border-bottom: none; }

.post-content img {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  margin: 1em 0;
}

.post-content ul li, .post-content ol li {
  margin-bottom: 0.5em;
  line-height: 1.7;
}

/* Share buttons */
.share-section {
  background: var(--color-bg-card);
  border-radius: var(--border-radius);
  padding: 20px 24px;
  border: 1px solid var(--color-border);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.share-label {
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--color-navy);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

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

.share-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

.share-btn.whatsapp { background: #25D366; color: #fff; }
.share-btn.facebook { background: #1877F2; color: #fff; }
.share-btn.twitter { background: #1DA1F2; color: #fff; }
.share-btn.copy { background: var(--color-bg-soft); color: var(--color-text); border: 1px solid var(--color-border); }

.share-btn:hover { opacity: 0.85; transform: translateY(-1px); }

/* Post navigation */
.post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.post-nav-link {
  background: var(--color-bg-card);
  border-radius: var(--border-radius);
  padding: 16px 20px;
  border: 1px solid var(--color-border);
  text-decoration: none;
  transition: all var(--transition-md);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.post-nav-link:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.post-nav-label {
  font-size: 0.68rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.post-nav-link.next .post-nav-label { justify-content: flex-end; }

.post-nav-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

.post-nav-link.next .post-nav-title { text-align: end; } /* Fix #12 — logical property for RTL/LTR */

/* Related posts */
.related-posts-section {
  margin-bottom: 32px;
}

/* ===========================
   ARCHIVE PAGE
   =========================== */
.archive-header {
  background: linear-gradient(135deg, var(--color-navy), var(--color-navy-mid));
  color: #fff;
  padding: 40px 32px;
  border-radius: var(--border-radius-lg);
  margin-bottom: 32px;
}

.archive-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 8px;
}

.archive-description {
  color: rgba(255,255,255,.7);
  font-size: 0.9rem;
  margin: 0;
}

/* ===========================
   SEARCH RESULTS
   =========================== */
.search-header {
  background: var(--color-bg-card);
  border-radius: var(--border-radius-lg);
  padding: 28px 32px;
  margin-bottom: 32px;
  border: 1px solid var(--color-border);
}

.search-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-navy);
  margin: 0 0 16px;
}

.search-form-main {
  display: flex;
  gap: 0;
  max-width: 600px;
}

.search-form-main input[type="search"] {
  flex: 1;
  border: 2px solid var(--color-border);
  border-right: none;
  border-radius: var(--border-radius-sm) 0 0 var(--border-radius-sm);
  padding: 12px 18px;
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition);
  font-family: var(--font-primary);
}

.search-form-main input[type="search"]:focus { border-color: var(--color-primary); }

.search-form-main button {
  background: var(--color-primary);
  color: #fff;
  border: none;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
  transition: background var(--transition);
  font-family: var(--font-primary);
}

.search-form-main button:hover { background: var(--color-primary-dark); }

/* ===========================
   404 PAGE
   =========================== */
.error-404-page {
  text-align: center;
  padding: 80px 32px;
}

.error-404-number {
  font-family: var(--font-display);
  font-size: 8rem;
  font-weight: 900;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 16px;
  opacity: 0.15;
}

.error-404-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--color-navy);
  margin-bottom: 12px;
}

.error-404-text {
  color: var(--color-text-muted);
  font-size: 1rem;
  margin-bottom: 32px;
}

/* ===========================
   FOOTER
   =========================== */
#colophon {
  background: var(--color-navy);
  color: #cbd5e1;
  padding: 48px 0 0;
  margin-top: 48px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-brand { display: flex; flex-direction: column; gap: 16px; }

.footer-logo-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  color: #fff;
  flex-shrink: 0;
}

.footer-site-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
}

.footer-site-title span { color: var(--color-primary-light); }

.footer-tagline {
  font-size: 0.78rem;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
  max-width: 280px;
}

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

.footer-social-links a {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all var(--transition);
}

.footer-social-links a:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.footer-col-title {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
}

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

.footer-links a {
  color: #64748b;
  font-size: 0.83rem;
  text-decoration: none;
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-links a:hover { color: var(--color-primary-light); }

.footer-links a::before {
  content: '›';
  color: var(--color-primary);
  font-size: 0.9rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.82rem;
  color: #64748b;
  margin-bottom: 10px;
  line-height: 1.5;
}

.footer-contact-item strong { color: #94a3b8; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.5px; }

.footer-bottom {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom-text {
  font-size: 0.78rem;
  color: #475569;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-bottom-links a {
  color: #475569;
  font-size: 0.75rem;
  text-decoration: none;
  transition: color var(--transition);
}

.footer-bottom-links a:hover { color: var(--color-primary-light); }

/* ===========================
   UTILITY CLASSES
   =========================== */
.text-center { text-align: center; }
.text-red { color: var(--color-primary); }
.text-navy { color: var(--color-navy); }
.text-muted { color: var(--color-text-muted); }

.badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-red { background: var(--color-primary); color: #fff; }
.badge-navy { background: var(--color-navy); color: #fff; }
.badge-outline { border: 1px solid var(--color-border); color: var(--color-text-muted); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: var(--border-radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all var(--transition);
  font-family: var(--font-primary);
}

.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-dark); color: #fff; transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-outline:hover { background: var(--color-primary); color: #fff; }

/* Loading skeleton */
.skeleton {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 4px;
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Notification Banner */
.notice-banner {
  background: linear-gradient(135deg, rgba(192,57,43,.06), rgba(192,57,43,.02));
  border: 1px solid rgba(192,57,43,.2);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--border-radius);
  padding: 14px 18px;
  margin-bottom: 24px;
  font-size: 0.85rem;
  color: var(--color-text);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

/* Fix #14 — consistent right offset; back-to-top sits 16px above WhatsApp */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  text-decoration: none;
  z-index: 1000;
  transition: all var(--transition-md);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,.5);
}

.whatsapp-float svg { width: 28px; height: 28px; fill: #fff; }

/* Back-to-top: bottom = WhatsApp bottom (24) + WhatsApp height (56) + gap (16) = 96px */
#back-to-top {
  position: fixed;
  bottom: 96px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--color-navy);
  color: #fff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-md);
  z-index: 999;
}

#back-to-top.visible { opacity: 1; visibility: visible; }
#back-to-top:hover { background: var(--color-primary); transform: translateY(-2px); }

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .featured-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .container { padding: 0 6px !important; }
  .content-area { flex-direction: column; padding: 10px 0 !important; }
  .home-posts-section { padding: 10px 6px !important; border-radius: 4px; }
  .home-posts-title { font-size: 1.05rem !important; margin-bottom: 12px; }
  .home-posts-header-bar { padding-bottom: 8px; margin-bottom: 12px; }

  .post-feed-stream { width: 100% !important; max-width: 100% !important; margin: 10px auto 20px !important; padding: 0 !important; }
  .post-feed-card { width: 100% !important; max-width: 100% !important; padding: 10px 8px 14px !important; margin: 0 auto 12px !important; }
  .post-feed-header { font-size: 0.72rem !important; padding-bottom: 6px !important; margin-bottom: 8px !important; }

  .vip-badges-stream { gap: 3px !important; margin: 2px 0 !important; width: 100% !important; }
  .vip-line { margin: 1px 0 !important; width: 100% !important; }
  .vip-badge,
  .post-feed-text .vip-badge,
  .post-content .vip-badge {
    font-size: clamp(0.75rem, 3.6vw, 0.92rem) !important;
    padding: 4px 10px !important;
    white-space: nowrap !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .main-content { width: 100%; }
  .sidebar { width: 100%; }

  .main-menu { display: none; flex-direction: column; width: 100%; }
  .main-menu.open { display: flex; }
  .main-menu > li { position: relative; display: flex; flex-wrap: wrap; align-items: center; }
  .main-menu > li > a { padding: 12px 20px; border-bottom: 1px solid rgba(255,255,255,.05); flex: 1; }
  .main-menu .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    padding-left: 20px;
    display: none;
    width: 100%;
    flex-basis: 100%;
  }

  /* Fix #4 — show submenu toggle button on mobile */
  .sub-menu-toggle { display: flex; }

  .menu-toggle { display: flex; }
  .nav-inner { flex-wrap: wrap; }

  /* Fix #3 — hide desktop search, show mobile toggle */
  .nav-search-form { display: none; }
  .mobile-search-toggle { display: flex; }

  .featured-grid { grid-template-columns: 1fr; }
  .posts-grid { grid-template-columns: 1fr; }

  .single-post-header-body { padding: 20px 20px 16px; }
  .single-post-title { font-size: 1.5rem; }
  .post-content { padding: 20px; }

  .footer-top { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-bottom-links { justify-content: center; flex-wrap: wrap; }

  .post-navigation { grid-template-columns: 1fr; }
  .share-section { flex-direction: column; align-items: flex-start; }

  .topbar-date { display: none; }
  .topbar-links { display: none; }
}

@media (max-width: 480px) {
  .site-title { font-size: 1.15rem; }
  .footer-top { grid-template-columns: 1fr; }
  .error-404-number { font-size: 5rem; }
  .topbar-social { gap: 8px; }

  .results-table { font-size: 0.78rem; }
  .results-table td, .results-table thead th { padding: 10px 10px; }
}

/* ===========================
   PRINT STYLES
   =========================== */
@media print {
  #topbar, #primary-navigation, #news-ticker, .sidebar,
  .share-section, .post-navigation, .related-posts-section,
  .whatsapp-float, #back-to-top, #colophon { display: none; }
  .content-area { flex-direction: column; padding: 0; }
  .main-content { width: 100%; }
  .post-content { border: none; box-shadow: none; padding: 0; }
}

/* ===========================
   WORDPRESS CORE CLASSES
   =========================== */
.alignleft { float: left; margin-right: 24px; margin-bottom: 16px; }
.alignright { float: right; margin-left: 24px; margin-bottom: 16px; }
.aligncenter { display: block; margin: 16px auto; }
.alignwide { margin-left: -32px; margin-right: -32px; max-width: none; }
.alignfull { margin-left: -32px; margin-right: -32px; max-width: none; border-radius: 0; }

.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.78rem; color: var(--color-text-muted); text-align: center; margin-top: 6px; font-style: italic; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 1.5em 0; }
.gallery-item { overflow: hidden; border-radius: var(--border-radius-sm); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }

.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.screen-reader-text:focus {
  clip: auto;
  width: auto;
  height: auto;
  background: var(--color-bg);
  color: var(--color-primary);
  font-weight: 700;
  padding: 10px;
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 9999;
  border: 2px solid var(--color-primary);
  border-radius: var(--border-radius-sm);
}

/* Comments */
.comments-area {
  background: var(--color-bg-card);
  border-radius: var(--border-radius-lg);
  padding: 32px;
  border: 1px solid var(--color-border);
  margin-bottom: 24px;
}

.comments-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-border);
}

.comment-list { list-style: none; padding: 0; margin: 0; }

.comment-body {
  background: var(--color-bg-soft);
  border-radius: var(--border-radius);
  padding: 16px;
  margin-bottom: 16px;
  border: 1px solid var(--color-border-light);
}

.comment-author { font-weight: 700; font-size: 0.88rem; color: var(--color-navy); margin-bottom: 4px; }
.comment-meta { font-size: 0.75rem; color: var(--color-text-muted); margin-bottom: 10px; }
.comment-content p { font-size: 0.88rem; margin-bottom: 0; }

.comment-form-wrap { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--color-border); }
.comment-form-title { font-size: 1rem; font-weight: 700; color: var(--color-navy); margin-bottom: 16px; }

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  border: 2px solid var(--color-border);
  border-radius: var(--border-radius-sm);
  padding: 10px 14px;
  font-size: 0.88rem;
  font-family: var(--font-primary);
  outline: none;
  transition: border-color var(--transition);
  background: var(--color-bg);
  color: var(--color-text);
  box-sizing: border-box;
}

.comment-form input:focus,
.comment-form textarea:focus { border-color: var(--color-primary); }

.comment-form textarea { height: 120px; resize: vertical; }

.comment-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.comment-form textarea, .comment-form .full-width { margin-bottom: 16px; }

/* ============================================================
   PAGE TEMPLATES DESIGN SYSTEM: AK LASBELA REFERENCE SUITE
   ============================================================ */

/* --- Common Page Hero --- */
.akl-page-hero {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid var(--color-border);
  border-top: 4px solid var(--color-primary);
  border-radius: var(--border-radius-lg);
  padding: 36px 32px;
  margin-bottom: 32px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.hero-badge-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.hero-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--color-primary);
  background: rgba(192, 57, 43, 0.08);
  padding: 4px 12px;
  border-radius: 999px;
}

.hero-tag.tag-gold {
  color: #b45309;
  background: #fef3c7;
}

.hero-tag.tag-success {
  color: #15803d;
  background: #dcfce7;
}

.live-pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: #ef4444;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  animation: pulse-ring 1.8s infinite cubic-bezier(0.66, 0, 0, 1);
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.akl-page-hero .page-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--color-navy);
  margin: 0 0 10px;
  line-height: 1.2;
}

.akl-page-hero .page-lead {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  max-width: 780px;
  margin: 0 0 18px;
  line-height: 1.6;
}

.hero-date-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--color-border);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-navy);
}

.record-active-badge {
  display: inline-block;
  background: var(--color-navy);
  color: #fff;
  padding: 6px 16px;
  border-radius: 6px;
  font-size: 0.88rem;
  letter-spacing: 0.5px;
}

/* --- AK Lasbela Results Page --- */
.akl-live-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  overflow: hidden;
  margin-bottom: 36px;
}

.card-top-header {
  background: var(--color-navy);
  color: #fff;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.card-top-header .header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-top-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.card-top-header .date-badge {
  background: rgba(255,255,255,0.15);
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.8rem;
}

.results-slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
  padding: 24px;
  background: #fafafa;
}

.slot-box {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: 16px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.slot-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.slot-box.highlight-slot {
  border-color: var(--color-primary);
  background: #fffafa;
}

.slot-time-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.slot-values {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
}

.val-group .val-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
}

.val-group .val-number {
  font-family: var(--font-mono);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--color-navy);
}

.highlight-slot .val-number {
  color: var(--color-primary);
}

.val-divider {
  font-size: 1.2rem;
  color: #cbd5e1;
  font-weight: 300;
}

.slot-status {
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
}

.slot-status.live-status {
  color: #16a34a;
  font-weight: 700;
}

.card-footer-notice {
  background: #fff;
  border-top: 1px solid var(--color-border);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: #64748b;
}

.btn-record-link {
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
}

.btn-record-link:hover {
  text-decoration: underline;
}

/* --- Schedule Table --- */
.schedule-section {
  margin-bottom: 40px;
}

.section-heading-clean {
  margin-bottom: 18px;
}

.section-heading-clean h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-navy);
  margin: 0 0 6px;
}

.section-heading-clean p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin: 0;
}

.timetable-wrap {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  overflow-x: auto;
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

.schedule-table th {
  background: #f8fafc;
  padding: 14px 18px;
  font-weight: 700;
  color: var(--color-navy);
  border-bottom: 2px solid var(--color-border);
}

.schedule-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
}

.badge-status.done {
  background: #ecfdf5;
  color: #059669;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 999px;
}

/* --- Lasbela Record Page --- */
.record-toolbar {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: 16px 20px;
  margin-bottom: 24px;
}

.record-filter-form {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.filter-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.select-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.select-group label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-navy);
}

.select-group select {
  padding: 7px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-sm);
  background: #fff;
  font-size: 0.85rem;
  color: var(--color-navy);
}

.record-table-container {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
  overflow: hidden;
  margin-bottom: 36px;
}

.record-table-header-title {
  background: var(--color-navy);
  color: #fff;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.record-table-header-title h3 {
  color: #fff;
  font-size: 1.15rem;
  margin: 0;
}

.record-table-header-title span {
  font-size: 0.8rem;
  color: #cbd5e1;
}

.table-responsive {
  overflow-x: auto;
}

.akl-record-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  font-size: 0.85rem;
}

.akl-record-table th {
  background: #f1f5f9;
  color: var(--color-navy);
  font-weight: 700;
  padding: 12px 10px;
  border-bottom: 2px solid var(--color-border);
  white-space: nowrap;
}

.akl-record-table td {
  padding: 11px 10px;
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
}

.akl-record-table .col-date {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--color-navy);
}

.akl-record-table .row-even {
  background: #fafafa;
}

.akl-record-table .row-today {
  background: #fef9c3 !important;
  font-weight: 700;
}

.today-tag {
  background: var(--color-primary);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 4px;
}

.record-num {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--color-navy);
}

.record-pending {
  color: #94a3b8;
}

.record-table-footer {
  background: #f8fafc;
  padding: 14px 24px;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
}

/* --- Golden Tips & Guess Papers --- */
.golden-tips-card {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 2px solid #fde68a;
  border-radius: var(--border-radius-lg);
  padding: 24px;
  margin-bottom: 36px;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.08);
}

.tips-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 8px;
}

.tips-badge {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tips-badge h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: #78350f;
  margin: 0;
}

.tips-date {
  font-size: 0.8rem;
  font-weight: 700;
  color: #92400e;
  background: rgba(255,255,255,0.7);
  padding: 4px 12px;
  border-radius: 999px;
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.tip-col {
  background: #fff;
  border: 1px solid #fde68a;
  border-radius: var(--border-radius);
  padding: 16px;
  text-align: center;
}

.tip-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  color: #92400e;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.tip-num-large {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.85rem;
  font-weight: 900;
  color: var(--color-navy);
  margin-bottom: 6px;
}

.tip-num-large.highlight-red {
  color: var(--color-primary);
}

.tip-sub {
  font-size: 0.75rem;
  color: #78350f;
  font-weight: 600;
}

.tips-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(245, 158, 11, 0.2);
  font-size: 0.85rem;
  color: #78350f;
}

.btn-wa-share {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #25d366;
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 6px 14px;
  border-radius: 6px;
  text-decoration: none;
  transition: opacity 0.2s;
}

.btn-wa-share:hover {
  opacity: 0.9;
  color: #fff;
}

/* --- Disclaimer & Notice Callouts --- */
.disclaimer-callout {
  background: #fffbeb;
  border-left: 4px solid #f59e0b;
  padding: 18px 24px;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  margin: 32px 0;
}

.disclaimer-callout h4 {
  font-size: 0.95rem;
  color: #92400e;
  margin: 0 0 6px;
}

.disclaimer-callout p {
  font-size: 0.85rem;
  color: #78350f;
  line-height: 1.5;
  margin: 0;
}

/* --- Winners Page --- */
.winners-hero-card {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 2px solid #bbf7d0;
  border-radius: var(--border-radius-lg);
  padding: 24px;
  margin-bottom: 36px;
}

.winners-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.win-trophy-badge {
  display: flex;
  align-items: center;
  gap: 12px;
}

.trophy-emoji {
  font-size: 2.2rem;
}

.win-trophy-badge h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: #14532d;
  margin: 0;
}

.win-timestamp {
  font-size: 0.8rem;
  color: #15803d;
}

.status-verified-badge {
  background: #15803d;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
}

.winners-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.win-stat-box {
  background: #fff;
  border: 1px solid #bbf7d0;
  border-radius: var(--border-radius);
  padding: 16px;
  text-align: center;
}

.win-stat-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  color: #15803d;
  margin-bottom: 6px;
}

.win-stat-num {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 900;
  color: #15803d;
  display: block;
  margin-bottom: 4px;
}

.win-stat-tag {
  font-size: 0.75rem;
  color: #4b5563;
}

.verification-notice-box {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: 20px;
  margin: 32px 0;
}

.verification-notice-box .notice-icon {
  font-size: 1.8rem;
}

.verification-notice-box h4 {
  font-size: 1rem;
  color: var(--color-navy);
  margin: 0 0 6px;
}

.verification-notice-box p {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin: 0;
}

/* --- Category Filter Bar --- */
.category-filter-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.filter-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-navy);
}

.filter-pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-pill {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-navy);
  background: #fff;
  border: 1px solid var(--color-border);
  padding: 6px 14px;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.2s;
}

.filter-pill:hover,
.filter-pill.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

/* --- About Us Page --- */
.about-overview-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: 32px;
  margin-bottom: 32px;
}

.about-overview-card h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--color-navy);
  margin: 0 0 16px;
}

.about-overview-card p {
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.7;
  margin-bottom: 16px;
}

.about-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 36px;
}

.feature-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: 24px;
  text-align: center;
}

.feature-icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--color-navy);
  margin: 0 0 8px;
}

.feature-card p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin: 0;
}

.about-faq-section {
  margin-bottom: 36px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0; /* gap handled by .faq-item margin */
}

/* Fix #7 — About page FAQ styles now rely on the consolidated
   .faq-item / .faq-question block defined higher in this file.
   Only unique overrides remain here. */
.about-faq-section .faq-item {
  margin-bottom: 10px;
}

/* --- User Login & Account --- */
.login-page-wrapper {
  max-width: 480px;
  margin: 20px auto 60px;
}

.user-login-card,
.user-account-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: 36px 32px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.login-card-header {
  text-align: center;
  margin-bottom: 24px;
}

.login-logo-circle {
  font-size: 2.4rem;
  margin-bottom: 10px;
}

.login-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-navy);
  margin: 0 0 6px;
}

.login-subtitle {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin: 0;
}

.login-error-alert {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  padding: 10px 14px;
  border-radius: var(--border-radius-sm);
  font-size: 0.85rem;
  margin-bottom: 20px;
}

.form-field-group {
  margin-bottom: 18px;
}

.form-field-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 6px;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon svg {
  position: absolute;
  left: 12px;
  color: #94a3b8;
}

.input-with-icon input {
  width: 100%;
  padding: 11px 14px 11px 38px;
  border: 2px solid var(--color-border);
  border-radius: var(--border-radius-sm);
  font-size: 0.9rem;
  color: var(--color-navy);
  background: #fff;
  outline: none;
  transition: border-color var(--transition);
}

.input-with-icon input:focus {
  border-color: var(--color-primary);
}

.form-row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  font-size: 0.82rem;
}

.rememberme-label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: var(--color-text);
}

.forgot-pass-link {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
}

.forgot-pass-link:hover {
  text-decoration: underline;
}

.btn-block {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.login-card-footer {
  text-align: center;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--color-border);
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.login-card-footer a {
  color: var(--color-primary);
  font-weight: 700;
  text-decoration: none;
  margin-left: 4px;
}

/* User Account Profile Card */
.account-card-header {
  text-align: center;
  margin-bottom: 24px;
}

.user-avatar-wrap {
  width: 80px;
  height: 80px;
  margin: 0 auto 14px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--color-primary);
}

.user-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-greeting {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--color-navy);
  margin: 0 0 4px;
}

.account-email {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin: 0 0 8px;
}

.user-role-badge {
  display: inline-block;
  background: #f1f5f9;
  color: var(--color-navy);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
}

.account-quick-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.account-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--border-radius-sm);
  text-decoration: none;
}

.btn-logout {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.btn-logout:hover {
  background: #fecaca;
  color: #991b1b;
}

/* --- Print Styles --- */
@media print {
  #top-bar,
  #masthead,
  #primary-navigation,
  #news-ticker,
  .site-footer,
  .sidebar-area,
  .single-breadcrumb,
  .record-toolbar,
  .print-actions,
  .whatsapp-float-btn {
    display: none !important;
  }
  body, .site-main, .container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
  }
  .akl-record-table {
    font-size: 9pt !important;
  }
  .akl-record-table th,
  .akl-record-table td {
    border: 1px solid #000 !important;
    padding: 4px 6px !important;
  }
}

/* ============================================================
   HERO BANNER SLIDER & FAST REPORT BUTTON
   Inspired by Reference Website: dailyaklasbelakarachipk10.com
   ============================================================ */

.akl-hero-slider-section {
  padding: 12px 0 16px;
  background: transparent;
}

/* --- "Sab Se Pehle Report Dekhen" Fast Button --- */
.slider-top-action-bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  max-width: 1000px;
  margin: 0 auto 10px;
  padding: 0 4px;
}

.btn-fast-report {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff !important;
  font-family: var(--font-primary);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none !important;
  padding: 8px 18px;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
  transition: all 0.25s ease;
  letter-spacing: 0.3px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-fast-report:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
  color: #ffffff !important;
}

.report-pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.8);
  animation: white-pulse 1.8s infinite cubic-bezier(0.66, 0, 0, 1);
}

@keyframes white-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.8); }
  70% { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

/* --- Hero Slider Container --- */
.hero-slider-container {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 2px solid rgba(212, 175, 55, 0.4); /* Luxury gold border */
  background: #ffffff;
}

.slider-track {
  position: relative;
  width: 100%;
}

.slide-item {
  display: none;
  width: 100%;
  position: relative;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.slide-item.active {
  display: block;
  opacity: 1;
}

.slide-link {
  display: block;
  width: 100%;
  text-decoration: none;
  cursor: pointer;
}

.slide-banner-img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain;
}

.slide-link:hover .slide-banner-img {
  transform: scale(1.015);
}

/* --- Slider Navigation Arrows --- */
.slider-arrow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.slider-arrow-btn:hover {
  background: var(--color-primary, #c0392b);
  border-color: var(--color-primary, #c0392b);
  transform: translateY(-50%) scale(1.1);
  color: #ffffff;
}

.slider-prev {
  left: 14px;
}

.slider-next {
  right: 14px;
}

/* Fix #11 — Slider dots moved BELOW the image (layout-based, no absolute overlap) */
.hero-slider-container {
  position: relative; /* keep for arrow buttons */
  display: flex;
  flex-direction: column; /* stack: image then dots */
}

.slider-track {
  position: relative;
  width: 100%;
  flex: 1;
}

/* Dots now sit below the image in normal flow */
.slider-dots-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  background: transparent;
  border-top: 1px solid rgba(212,175,55,.2);
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.2);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}

.slider-dot:hover {
  background: var(--color-primary);
}

.slider-dot.active {
  width: 24px;
  border-radius: 999px;
  background: var(--color-primary);
  box-shadow: 0 0 6px rgba(192, 57, 43, 0.4);
}

/* Responsive Slider Adjustments */
@media (max-width: 768px) {
  .akl-hero-slider-section {
    padding: 12px 0 16px;
  }
  .btn-fast-report {
    font-size: 0.78rem;
    padding: 7px 14px;
  }
  .slider-arrow-btn {
    width: 34px;
    height: 34px;
  }
  .slider-arrow-btn svg {
    width: 16px;
    height: 16px;
  }
  .slider-prev {
    left: 8px;
  }
  .slider-next {
    right: 8px;
  }
  .slide-banner-img {
    max-height: 280px;
  }
}

/* ============================================================
   HOMEPAGE LAYOUT (Matches User Screenshot)
   ============================================================ */

/* Navbar visual styling matching screenshot */
#primary-navigation {
  background: #1f5485;
  box-shadow: 0 2px 8px rgba(15, 45, 75, 0.2);
}

.main-menu > li > a {
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 600;
  text-transform: capitalize;
  padding: 12px 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.main-menu > li:first-child > a {
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.main-menu > li > a:hover,
.main-menu > li.current-menu-item > a,
.main-menu > li.current-menu-ancestor > a {
  background: rgba(0, 0, 0, 0.18);
  color: #ffffff;
  border-bottom-color: transparent;
}

/* Timetable Showcase Card */
.home-timetable-card {
  background: #ffffff;
  border: 1px solid #d0dbe5;
  border-radius: 6px;
  padding: 28px 24px 24px;
  margin-bottom: 24px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.home-record-btn-wrap {
  text-align: center;
  margin-bottom: 20px;
}

.btn-monthly-record {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #0d3862;
  color: #ffffff !important;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 6px;
  text-decoration: none !important;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(13, 56, 98, 0.28);
}

.btn-monthly-record:hover {
  background: #082644;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(13, 56, 98, 0.35);
}

.btn-monthly-record .btn-icon {
  font-size: 1.15rem;
}

.record-subtitle {
  color: #64748b;
  font-size: 0.88rem;
  margin: 10px 0 0 0;
  text-align: center;
}

.timetable-heading {
  color: #1b4d79;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-align: center;
  margin: 20px 0 16px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.timetable-heading .heading-emoji {
  font-size: 1.2rem;
}

.timetable-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.home-timetable {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  font-family: var(--font-primary);
}

.home-timetable thead th {
  background: #cfd9e4;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 11px 16px;
  text-align: center;
  border: none;
  letter-spacing: 0.3px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

.home-timetable thead th:first-child {
  border-radius: 4px 0 0 0;
}

.home-timetable thead th:last-child {
  border-radius: 0 4px 0 0;
}

.home-timetable tbody tr {
  border-top: 1px solid #eef2f6;
  border-bottom: 1px solid #eef2f6;
  transition: background 0.15s ease;
}

.home-timetable tbody tr:hover {
  background: #f8fafc;
}

.home-timetable tbody td {
  padding: 10px 14px;
  font-size: 0.95rem;
  text-align: center;
  vertical-align: middle;
}

.home-timetable .col-draw-name strong {
  color: #0f172a;
  font-weight: 800;
  font-size: 1rem;
}

.home-timetable .col-katti-time {
  color: #d97706;
  font-weight: 700;
  font-family: var(--font-mono, monospace);
  font-size: 0.96rem;
}

.home-timetable .col-report-time {
  color: #0d3862;
  font-weight: 800;
  font-family: var(--font-mono, monospace);
  font-size: 0.96rem;
}

.home-timetable .col-status .status-live-text {
  color: #16a34a;
  font-weight: 800;
  font-size: 0.95rem;
}

/* Home Posts Section */
.home-posts-section {
  background: #ffffff;
  border: 1px solid #d0dbe5;
  border-radius: 6px;
  padding: 24px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.home-posts-header-bar {
  border-bottom: 2px solid #eef2f6;
  padding-bottom: 14px;
  margin-bottom: 20px;
}

.home-posts-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
  line-height: 1.4;
}

/* ============================================================
   SIDEBAR WIDGETS (Matches User Screenshot)
   ============================================================ */
.sidebar {
  width: 320px;
  flex-shrink: 0;
}

.sidebar-widget,
.sidebar .widget {
  background: #ffffff;
  border: 1px solid #c8d5e1;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.sidebar-widget .widget-title-bar,
.sidebar .widget-title,
.sidebar .widgettitle,
.sidebar h2.widget-title {
  background: #255d8f !important;
  color: #ffffff !important;
  padding: 10px 16px !important;
  font-family: var(--font-primary) !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  margin: 0 !important;
  border-radius: 3px 3px 0 0 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  display: block !important;
}

.sidebar-widget .widget-title-bar::before {
  display: none !important;
}

.sidebar-widget .widget-body,
.sidebar .widget > :not(.widget-title):not(.widgettitle) {
  padding: 14px 16px;
}

/* Search widget */
.sidebar-search-form,
.sidebar .widget_search form {
  display: flex !important;
  gap: 8px !important;
  align-items: center !important;
}

.sidebar-search-field,
.sidebar .widget_search input[type="search"],
.sidebar .widget_search input[type="text"] {
  flex: 1 !important;
  padding: 8px 12px !important;
  border: 1px solid #b5c7d8 !important;
  border-radius: 3px !important;
  font-size: 0.92rem !important;
  color: #1e293b !important;
  background: #ffffff !important;
  outline: none !important;
}

.sidebar-search-field:focus,
.sidebar .widget_search input:focus {
  border-color: #255d8f !important;
  box-shadow: 0 0 0 2px rgba(37, 93, 143, 0.15) !important;
}

.sidebar-search-submit,
.sidebar .widget_search button,
.sidebar .widget_search input[type="submit"] {
  background: #255d8f !important;
  color: #ffffff !important;
  border: none !important;
  padding: 8px 18px !important;
  border-radius: 3px !important;
  font-size: 0.92rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: background 0.15s ease !important;
}

.sidebar-search-submit:hover,
.sidebar .widget_search button:hover,
.sidebar .widget_search input[type="submit"]:hover {
  background: #1a456d !important;
}

/* Recent posts in sidebar */
.widget-recent-posts-list,
.sidebar .widget_recent_entries ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.widget-recent-posts-list li,
.sidebar .widget_recent_entries li {
  padding: 9px 0 !important;
  border-bottom: 1px solid #edf2f7 !important;
}

.widget-recent-posts-list li:last-child,
.sidebar .widget_recent_entries li:last-child {
  border-bottom: none !important;
  padding-bottom: 0 !important;
}

.widget-recent-posts-list a,
.sidebar .widget_recent_entries a {
  color: #1c6ab5 !important;
  font-size: 0.92rem !important;
  font-weight: 500 !important;
  line-height: 1.45 !important;
  text-decoration: none !important;
  display: block !important;
  transition: color 0.15s ease !important;
}

.widget-recent-posts-list a:hover,
.sidebar .widget_recent_entries a:hover {
  text-decoration: underline !important;
  color: #0f4c81 !important;
}

/* Meta list in sidebar */
.widget-meta-list,
.sidebar .widget_meta ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.widget-meta-list li,
.sidebar .widget_meta li {
  padding: 7px 0 !important;
  border-bottom: 1px solid #edf2f7 !important;
}

.widget-meta-list li:last-child,
.sidebar .widget_meta li:last-child {
  border-bottom: none !important;
}

.widget-meta-list a,
.sidebar .widget_meta a {
  color: #1c6ab5 !important;
  font-size: 0.9rem !important;
  text-decoration: none !important;
}

.widget-meta-list a:hover,
.sidebar .widget_meta a:hover {
  text-decoration: underline !important;
  color: #0f4c81 !important;
}

/* Recent comments in sidebar */
.widget-recent-comments-list,
.sidebar .widget_recent_comments ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.widget-recent-comments-list li,
.sidebar .widget_recent_comments li {
  padding: 7px 0 !important;
  border-bottom: 1px solid #edf2f7 !important;
  font-size: 0.88rem !important;
  color: #64748b !important;
}

.widget-recent-comments-list a,
.sidebar .widget_recent_comments a {
  color: #1c6ab5 !important;
  text-decoration: none !important;
}

.widget-recent-comments-list a:hover,
.sidebar .widget_recent_comments a:hover {
  text-decoration: underline !important;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .content-area {
    flex-direction: column !important;
  }
  .sidebar {
    width: 100% !important;
  }
}

/* ============================================================
   FRONTEND LOGIN & POST SUBMISSION (Matches Screenshots)
   ============================================================ */
.frontend-auth-card {
  background: #ffffff;
  border: 1px solid #d0dbe5;
  border-radius: 4px;
  padding: 28px 24px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.auth-page-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 20px 0;
  border-bottom: 2px solid #eef2f6;
  padding-bottom: 12px;
}

/* Login Form (Screenshot 1) */
.frontend-login-form .form-group {
  margin-bottom: 16px;
}

.frontend-login-form .form-group label {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 6px;
}

.frontend-login-form .form-control,
.frontend-post-form .form-control {
  width: 100%;
  max-width: 340px;
  border: 1px solid #b5c7d8;
  border-radius: 3px;
  padding: 8px 12px;
  font-size: 0.95rem;
  outline: none;
  background: #ffffff;
  color: #1e293b;
  transition: border-color 0.15s ease;
}

.frontend-login-form .form-control:focus,
.frontend-post-form .form-control:focus,
.frontend-post-form .form-select-category:focus {
  border-color: #255d8f;
  box-shadow: 0 0 0 2px rgba(37, 93, 143, 0.15);
}

.frontend-login-form .form-group-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.frontend-login-form .remember-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: #334155;
  cursor: pointer;
}

.frontend-login-form .lost-pass-link {
  color: #1c6ab5;
  font-size: 0.9rem;
  text-decoration: underline;
}

.frontend-login-form .btn-frontend-login {
  background: #255d8f;
  color: #ffffff;
  border: none;
  padding: 8px 24px;
  border-radius: 3px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.frontend-login-form .btn-frontend-login:hover {
  background: #1a456d;
}

.login-restricted-notice {
  background: #fffbeb;
  border: 1px solid #fef08a;
  color: #854d0e;
  padding: 12px 16px;
  border-radius: 4px;
  margin-top: 24px;
  font-size: 0.92rem;
  line-height: 1.5;
}

.login-restricted-notice a {
  color: #854d0e;
  font-weight: 700;
  text-decoration: underline;
}

.login-alert {
  padding: 12px 16px;
  border-radius: 4px;
  margin-bottom: 20px;
  font-size: 0.92rem;
  line-height: 1.5;
}

.login-alert-danger {
  background: #fee2e2;
  border: 1px solid #fca5a5;
  color: #991b1b;
}

.login-alert-success {
  background: #dcfce7;
  border: 1px solid #86efac;
  color: #166534;
}

.login-alert-success .view-post-link {
  color: #15803d;
  font-weight: 700;
  text-decoration: underline;
  margin-left: 8px;
}

/* Logged-in Post Submission (Screenshot 2) */
.user-greeting-box {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #edf2f7;
}

.user-avatar-wrap {
  width: 80px;
  height: 80px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-hello-text {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 6px 0;
}

.user-logout-text {
  font-size: 0.92rem;
  color: #64748b;
  margin: 0;
}

.user-logout-text .logout-link {
  color: #1c6ab5;
  font-weight: 600;
  text-decoration: underline;
}

.frontend-post-form .form-group {
  margin-bottom: 20px;
}

.frontend-post-form .field-label-req {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
}

.frontend-post-form .field-label-req .required {
  color: #dc2626;
  margin-left: 2px;
}

.frontend-post-form .form-select-category {
  width: 100%;
  max-width: 280px;
  padding: 8px 12px;
  border: 1px solid #b5c7d8;
  border-radius: 3px;
  font-size: 0.95rem;
  background: #ffffff;
  color: #1e293b;
  outline: none;
}

.frontend-post-form .post-title-group .form-control {
  max-width: 100%;
}

.frontend-post-form .wp-editor-frontend-wrap {
  border: 1px solid #b5c7d8;
  border-radius: 4px;
  overflow: hidden;
  background: #ffffff;
}

.frontend-post-form .wp-editor-frontend-wrap .wp-editor-tools {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  padding: 6px 10px;
}

.frontend-post-form .btn-publish-post {
  background: #255d8f;
  color: #ffffff;
  border: none;
  padding: 10px 32px;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(37, 93, 143, 0.25);
}

.frontend-post-form .btn-publish-post:hover {
  background: #1a456d;
  box-shadow: 0 4px 10px rgba(37, 93, 143, 0.35);
  transform: translateY(-1px);
}
