/*
Theme Name: AMMA - Associação dos Magistrados do Maranhão
Theme URI: https://amma.com.br
Author: AMMA
Description: Tema institucional moderno para a AMMA. Design glassmorphism, azul e branco.
Version: 1.3.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: amma-theme
Tags: blog, news, custom-logo, custom-menu, featured-images, footer-widgets, full-width-template, right-sidebar
*/

/* ============================================================
   1. CSS VARIABLES
   ============================================================ */
:root {
  --blue:        #2B5BE8;
  --blue-dark:   #1A3FBF;
  --blue-mid:    #4A78F5;
  --blue-pale:   #EEF2FF;
  --bg:          #EEF3FB;
  --white:       #FFFFFF;
  --card:        rgba(255,255,255,0.72);
  --ink:         #0F1B3D;
  --ink2:        #2A3A5C;
  --muted:       #7B8DB0;
  --muted2:      #A8B8D8;
  --border:      rgba(43,91,232,0.1);
  --radius:      18px;
  --radius-sm:   12px;
  --logo-h:      58px; /* overridden by customizer */
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
  line-height: 1.6;
}

body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(43,91,232,0.07) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 85% 80%, rgba(43,91,232,0.06) 0%, transparent 55%);
}

a { text-decoration: none; color: var(--blue); transition: color .15s; }
a:hover { color: var(--blue-dark); }
img { display: block; max-width: 100%; height: auto; }
p { margin-bottom: 1rem; }
ul, ol { padding-left: 1.5rem; }
h1,h2,h3,h4,h5,h6 { color: var(--ink); font-weight: 700; line-height: 1.2; }

.screen-reader-text {
  border:0; clip:rect(1px,1px,1px,1px); clip-path:inset(50%);
  height:1px; margin:-1px; overflow:hidden; padding:0;
  position:absolute; width:1px; word-wrap:normal;
}
.skip-link {
  position:absolute; top:-999px; left:1rem;
  background:var(--blue); color:#fff;
  padding:.5rem 1rem; border-radius:4px; z-index:9999;
}
.skip-link:focus { top:1rem; }

/* ============================================================
   3. LAYOUT
   ============================================================ */
.site { position: relative; z-index: 1; }
.container { max-width: 1320px; margin: 0 auto; padding: 0 40px; }

/* ============================================================
   4. HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 500;
  background: rgba(238,243,251,0.92);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(43,91,232,0.08);
  transition: box-shadow .2s;
}
.site-header.scrolled { box-shadow: 0 2px 20px rgba(43,91,232,0.12); }

.header-inner {
  display: flex; align-items: center; gap: 24px;
  height: 70px; max-width: 1320px; margin: 0 auto; padding: 0 40px;
}

/* Branding / Logo */
.site-branding { flex-shrink: 0; }
.site-branding a { display: flex; align-items: center; gap: 10px; }
.custom-logo-link img {
  height: var(--logo-h);
  width: auto;
  display: block;
}
.site-title { font-size: 22px; font-weight: 800; color: var(--ink); letter-spacing: -.5px; }
.site-description { font-size: 11px; color: var(--muted); letter-spacing: .5px; display: block; }

/* ============================================================
   5. NAVIGATION — submenus SEMPRE para BAIXO
   ============================================================ */
.main-navigation { margin-left: auto; }
.main-navigation > ul {
  display: flex; align-items: center; gap: 2px;
  list-style: none; padding: 0; margin: 0;
}
/* sub-menus: vertical list, never flex */
.main-navigation ul ul {
  display: block;
  list-style: none; padding: 0; margin: 0;
}
.main-navigation li { position: relative; }

/* All menu links */
.main-navigation a {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 9px;
  transition: color .15s, background .15s;
  white-space: nowrap;
}
.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current-menu-ancestor > a {
  color: var(--blue); background: rgba(43,91,232,0.08);
}

/* ---- DROPDOWN — ALL levels open DOWNWARD / below parent ---- */
.main-navigation .sub-menu {
  display: block;      /* MUST be block, not flex */
  flex-direction: column;
  position: absolute;
  top: 100%;   /* directly below the parent li */
  left: 0;
  min-width: 220px;
  background: var(--white);
  border: 1px solid rgba(43,91,232,0.12);
  border-top: 3px solid var(--blue);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  box-shadow: 0 12px 40px rgba(43,91,232,0.14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .2s, visibility .2s, transform .2s;
  z-index: 200;
  padding: 6px 0;
  list-style: none;
}

/* Show on hover */
.main-navigation li:hover > .sub-menu,
.main-navigation li:focus-within > .sub-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}

/* Sub-menu links — NOT uppercase */
.main-navigation .sub-menu a {
  text-transform: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink2);
  padding: 10px 18px;
  border-radius: 0;
  background: transparent;
  white-space: nowrap;
}
.main-navigation .sub-menu a:hover {
  background: var(--blue-pale); color: var(--blue);
}

/* Nested submenus — still below parent li, shifted right slightly */
.main-navigation .sub-menu li { position: relative; }
.main-navigation .sub-menu .sub-menu {
  top: 0;
  left: 100%;
  border-top: 1px solid rgba(43,91,232,0.12);
  border-left: 3px solid var(--blue);
  border-radius: var(--radius-sm);
}

/* Caret indicator */
.main-navigation li.menu-item-has-children > a::after {
  content: ' ▾'; font-size: 9px; opacity: .55;
}
.main-navigation .sub-menu li.menu-item-has-children > a::after {
  content: ' ›'; font-size: 12px;
}

/* Portal CTA */
.nav-portal-btn {
  background: var(--blue) !important;
  color: var(--white) !important;
  padding: 9px 20px !important;
  border-radius: 50px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  box-shadow: 0 4px 14px rgba(43,91,232,0.3);
  transition: background .15s !important;
  margin-left: 10px;
}
.nav-portal-btn:hover { background: var(--blue-dark) !important; color: var(--white) !important; }

/* Mobile toggle */
.menu-toggle {
  display: none; background: none;
  border: 1px solid rgba(43,91,232,0.2);
  border-radius: 8px; padding: 8px 12px;
  cursor: pointer; color: var(--ink); font-size: 18px;
  margin-left: auto;
}

/* ============================================================
   6. HERO SLIDER
   ============================================================ */
.site-hero {
  position: relative;
  width: 100%;
  height: 90vh;
  min-height: 580px;
  max-height: 820px;
  overflow: hidden;
  z-index: 1;
  user-select: none;
  cursor: grab;
}
.site-hero:active { cursor: grabbing; }

/* Track: flex row, JS moves via translateX */
.hs-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.65s cubic-bezier(0.77,0,0.175,1);
  will-change: transform;
}

/* Each slide = 100% width, full height, stacks in the flex row */
.hs-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

/* Background image fills the slide */
.hs-img {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transform: scale(1.04);
  transition: transform 7s ease;
  z-index: 1;
}
.hs-slide.active .hs-img { transform: scale(1); }

/* Gradient overlay — strong at bottom, transparent at top */
.hs-overlay {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(
    to top,
    rgba(5,12,35,0.90) 0%,
    rgba(5,12,35,0.55) 40%,
    rgba(5,12,35,0.15) 70%,
    transparent 100%
  );
}

/* Text content at the bottom */
.hs-body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 3;
  padding: 0 72px 64px;
}

/* Category label */
.hs-cat {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  font-size: 9.5px; font-weight: 800; letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 14px; border-radius: 50px;
  margin-bottom: 16px;
  border: 1px solid rgba(255,255,255,0.15);
}

/* Slide title — clean white, no color bleed */
.hs-title {
  font-family: inherit;
  font-size: clamp(22px, 3vw, 42px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.5px;
  max-width: 860px;
  margin: 0 0 12px 0;
  color: #fff;
}
.hs-title a {
  color: #ffffff;
  text-decoration: none;
  text-shadow: 0 2px 20px rgba(0,0,0,0.45);
}
.hs-title a:hover { color: rgba(255,255,255,0.88); }

/* Date */
.hs-date {
  display: block;
  font-size: 12.5px;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
}

/* Arrows */
.hs-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 10;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  border: 1.5px solid rgba(255,255,255,0.22);
  color: #fff;
  width: 52px; height: 52px; border-radius: 50%;
  font-size: 28px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .22s, border-color .22s, transform .22s;
  line-height: 1; padding: 0;
}
.hs-arrow:hover { background: var(--blue); border-color: var(--blue); transform: translateY(-50%) scale(1.05); }
.hs-arrow-prev { left: 28px; }
.hs-arrow-next { right: 28px; }

/* Dots */
.hs-dots {
  position: absolute; bottom: 24px; right: 72px; z-index: 10;
  display: flex; gap: 8px; align-items: center;
}
.hs-dot {
  width: 8px; height: 8px; border-radius: 50%;
  border: none; background: rgba(255,255,255,0.35);
  cursor: pointer; transition: all .22s; padding: 0;
}
.hs-dot.active { background: #fff; width: 22px; border-radius: 4px; }
.hs-dot:hover:not(.active) { background: rgba(255,255,255,0.65); }

/* Progress bar at bottom */
.hs-progress {
  position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: rgba(255,255,255,0.1); z-index: 10;
}
.hs-progress-bar { height: 100%; background: var(--blue); width: 0%; transition: width .1s linear; }

/* ============================================================
   7. QUICK ACCESS BUTTONS
   ============================================================ */
.quick-access {
  position: relative; z-index: 1;
  background: var(--bg);
  padding: 0 40px;
}
.qa-inner {
  max-width: 1320px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 14px;
  transform: translateY(-32px);
}
.qa-btn {
  background: var(--card);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.9);
  border-radius: var(--radius);
  padding: 22px 24px;
  display: flex; align-items: center; gap: 14px;
  box-shadow: 0 8px 32px rgba(43,91,232,0.1);
  cursor: pointer; transition: transform .2s, box-shadow .2s, border-color .2s;
  text-decoration: none; color: inherit;
}
.qa-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(43,91,232,0.16);
  border-color: rgba(43,91,232,0.3);
  color: inherit;
}
.qa-btn--blue { background: var(--blue); border-color: var(--blue); box-shadow: 0 8px 32px rgba(43,91,232,0.35); }
.qa-btn--blue:hover { background: var(--blue-dark); color: #fff; }
.qa-text { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.qa-label { font-size: 14px; font-weight: 800; color: var(--ink); letter-spacing: -.2px; }
.qa-btn--blue .qa-label { color: #fff; }
.qa-sub { font-size: 11.5px; font-weight: 400; color: var(--muted); line-height: 1.4; }
.qa-btn--blue .qa-sub { color: rgba(255,255,255,0.65); }
.qa-arrow { font-size: 16px; color: rgba(43,91,232,0.4); transition: all .2s; flex-shrink: 0; }
.qa-btn--blue .qa-arrow { color: rgba(255,255,255,0.5); }
.qa-btn:hover .qa-arrow { color: var(--blue); transform: translateX(4px); }
.qa-btn--blue:hover .qa-arrow { color: rgba(255,255,255,0.9); transform: translateX(4px); }

/* ============================================================
   8. TICKER
   ============================================================ */
.site-ticker { position: relative; z-index: 1; background: var(--bg); padding: 0 40px 28px; }
.ticker-wrap {
  max-width: 1320px; margin: 0 auto;
  background: var(--card); backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.85);
  border-radius: 50px; padding: 10px 20px;
  display: flex; align-items: center;
  box-shadow: 0 4px 16px rgba(43,91,232,0.06);
  overflow: hidden; gap: 0;
}
.ticker-icon {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--blue); flex-shrink: 0; margin-right: 16px;
  box-shadow: 0 3px 10px rgba(43,91,232,0.35);
}
.ticker-scroll {
  overflow: hidden; flex: 1;
  -webkit-mask: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
  mask: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
}
.ticker-track {
  display: flex; width: max-content;
  animation: tickroll 32s linear infinite;
}
.ticker-track span {
  font-size: 12.5px; font-weight: 500; color: var(--muted);
  padding: 0 36px; white-space: nowrap;
  display: flex; align-items: center; gap: 10px;
}
.ticker-track span::before { content: '·'; color: var(--blue-mid); font-size: 20px; line-height: 1; }
.ticker-track a { color: var(--muted); }
.ticker-track a:hover { color: var(--blue); }
@keyframes tickroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================================================
   9. MAIN CONTENT AREA
   ============================================================ */
.content-area {
  position: relative; z-index: 1;
  max-width: 1320px; margin: 0 auto;
  padding: 40px 40px 60px;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
}

/* Section heading */
.section-header {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 24px;
}
.section-header::before {
  content: ''; display: block;
  width: 3px; height: 20px;
  background: var(--blue); border-radius: 2px; flex-shrink: 0;
}
.section-header h2 {
  font-size: 11px; font-weight: 800; letter-spacing: 2px;
  text-transform: uppercase; color: var(--ink2);
}
.section-header-line { flex: 1; height: 1px; background: rgba(43,91,232,0.1); }
.section-header-link {
  font-size: 11.5px; font-weight: 700; color: var(--blue);
  display: flex; align-items: center; gap: 3px;
  transition: gap .15s; white-space: nowrap;
}
.section-header-link:hover { gap: 7px; }

/* Category pill */
.cat-pill {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(43,91,232,0.09); color: var(--blue);
  font-size: 9.5px; font-weight: 800; letter-spacing: 1.5px;
  text-transform: uppercase; padding: 5px 12px; border-radius: 50px;
  margin-bottom: 10px;
}

/* Entry titles */
.entry-title { font-size: 18px; font-weight: 800; color: var(--ink); line-height: 1.25; letter-spacing: -.3px; margin-bottom: 9px; }
.entry-title a { color: inherit; }
.entry-title a:hover { color: var(--blue); }
.entry-title.small { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.entry-meta { font-size: 11px; color: var(--muted2); font-weight: 500; display: block; margin-top: 6px; }
.entry-excerpt { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ============================================================
   10. FEATURED GRID
   ============================================================ */
.featured-grid {
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: 14px; margin-bottom: 14px;
}
.featured-main {
  background: var(--card); backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.85);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 4px 24px rgba(43,91,232,0.07);
  transition: transform .2s, box-shadow .2s;
}
.featured-main:hover { transform: translateY(-2px); box-shadow: 0 10px 36px rgba(43,91,232,0.12); }
.featured-main .post-thumbnail { height: 210px; overflow: hidden; }
.featured-main .post-thumbnail img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.featured-main:hover .post-thumbnail img { transform: scale(1.04); }
.featured-main .post-body { padding: 22px; }

.featured-side { display: flex; flex-direction: column; gap: 14px; }
.side-post {
  background: var(--card); backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.85);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex; gap: 14px;
  box-shadow: 0 4px 16px rgba(43,91,232,0.06);
  transition: transform .2s, border-color .2s;
  flex: 1;
  min-height: 100px;
}
.side-post:hover { transform: translateX(4px); border-color: rgba(43,91,232,0.2); }

/* THUMBNAIL: fills the full height of its container */
.side-post .post-thumbnail {
  width: 90px;
  flex-shrink: 0;
  align-self: stretch;   /* fill card height */
  border-radius: 10px;
  overflow: hidden;
}
.side-post .post-thumbnail img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}

/* ============================================================
   11. POSTS LIST (thumbnail fills card height)
   ============================================================ */
.posts-list { display: flex; flex-direction: column; gap: 0; }
.post-list-item {
  background: var(--card); backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  display: flex; gap: 18px;
  align-items: stretch;      /* key: children stretch to full height */
  margin-bottom: 10px;
  box-shadow: 0 3px 14px rgba(43,91,232,0.05);
  transition: transform .2s, border-color .2s, box-shadow .2s;
  min-height: 110px;
}
.post-list-item:hover { transform: translateX(4px); border-color: rgba(43,91,232,0.2); box-shadow: 0 6px 22px rgba(43,91,232,0.1); }

/* Thumbnail: full height of the card */
.post-list-item .post-thumbnail {
  width: 130px;
  flex-shrink: 0;
  align-self: stretch;
  border-radius: 10px;
  overflow: hidden;
}
.post-list-item .post-thumbnail img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.post-list-item .post-thumbnail a {
  display: block; width: 100%; height: 100%;
}
.post-list-item .post-thumbnail a img {
  width: 100%; height: 100%; object-fit: cover;
}

.post-list-item .post-body { flex: 1; display: flex; flex-direction: column; justify-content: center; }

/* ============================================================
   12. JURIDICAL NEWS
   ============================================================ */
.juridical-section { margin-top: 36px; }
.juridical-item {
  background: var(--card); backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  display: grid; grid-template-columns: 32px 1fr; gap: 14px; align-items: start;
  margin-bottom: 8px;
  box-shadow: 0 3px 12px rgba(43,91,232,0.04);
  transition: transform .18s, border-color .18s;
}
.juridical-item:hover { transform: translateX(4px); border-color: rgba(43,91,232,0.2); }
.juridical-num { font-size: 22px; font-weight: 900; color: rgba(43,91,232,0.18); line-height: 1.1; text-align: right; }
.juridical-title { font-size: 13.5px; font-weight: 600; color: var(--ink); line-height: 1.4; }
.juridical-title a { color: inherit; }
.juridical-title a:hover { color: var(--blue); }
.juridical-meta { font-size: 10.5px; color: var(--muted2); margin-top: 4px; font-weight: 500; }
.badge-stj {
  display: inline-block; font-size: 8px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase;
  background: rgba(43,91,232,0.1); color: var(--blue); padding: 2px 7px; border-radius: 50px; margin-left: 7px;
}

/* ============================================================
   13. ARTICLES SECTION
   ============================================================ */
.articles-section { position: relative; z-index: 1; background: var(--bg); padding: 0 40px 60px; }
.articles-grid { max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.article-card {
  background: var(--card); backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.85);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 4px 20px rgba(43,91,232,0.07);
  transition: transform .2s, box-shadow .2s;
}
.article-card:hover { transform: translateY(-4px); box-shadow: 0 14px 40px rgba(43,91,232,0.13); }
.article-accent { height: 4px; }
.article-body { padding: 22px; }
.article-author { font-size: 10px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }
.article-card .entry-title { font-size: 17px; font-weight: 800; }
.article-footer { padding: 14px 22px; border-top: 1px solid rgba(43,91,232,0.07); display: flex; justify-content: space-between; align-items: center; }
.article-date { font-size: 11px; color: var(--muted2); font-weight: 500; }
.article-link { font-size: 12px; font-weight: 800; color: var(--blue); display: inline-flex; align-items: center; gap: 4px; transition: gap .15s; }
.article-link:hover { gap: 7px; }

/* ============================================================
   14. TV SECTION
   ============================================================ */
.tv-section { position: relative; z-index: 1; background: var(--ink); padding: 60px 0; }
.tv-wrap { max-width: 1320px; margin: 0 auto; padding: 0 40px; }
.tv-section .section-header h2 { color: #fff; }
.tv-section .section-header { border-bottom-color: rgba(255,255,255,0.08); }
.tv-section .section-header-link { color: rgba(255,255,255,0.4); }
.tv-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr; gap: 14px; }
.tv-card { border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(255,255,255,0.07); transition: transform .2s, box-shadow .2s; }
.tv-card:hover { transform: translateY(-3px); box-shadow: 0 12px 34px rgba(43,91,232,0.2); }
.tv-thumb {
  height: 180px; background: linear-gradient(135deg,#0a1628,#1B3FD8);
  display: flex; align-items: center; justify-content: center;
}
.tv-card.big .tv-thumb { height: 230px; }
.tv-play {
  width: 54px; height: 54px; border-radius: 50%;
  background: rgba(255,255,255,0.15); backdrop-filter: blur(10px);
  border: 1.5px solid rgba(255,255,255,0.3);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 17px; transition: all .2s;
}
.tv-card:hover .tv-play { background: var(--blue); border-color: var(--blue); transform: scale(1.1); }
.tv-info { padding: 16px 18px; background: rgba(255,255,255,0.04); }
.tv-info h4 { font-size: 13.5px; font-weight: 700; color: rgba(255,255,255,0.8); line-height: 1.4; }
.tv-info span { font-size: 10.5px; color: rgba(255,255,255,0.3); margin-top: 5px; display: block; font-weight: 500; }

/* ============================================================
   15. SIDEBAR
   ============================================================ */
.primary-sidebar { display: flex; flex-direction: column; gap: 16px; }

/* Banner widget area */
.widget-area-banner { margin-bottom: 0; }
.widget-area-banner img { width: 100%; border-radius: var(--radius); display: block; }

/* Portal */
.widget-portal {
  background: linear-gradient(150deg, var(--blue) 0%, var(--blue-dark) 100%);
  border-radius: var(--radius); padding: 28px 24px;
  position: relative; overflow: hidden;
  box-shadow: 0 8px 32px rgba(43,91,232,0.35);
}
.widget-portal::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 100% 60% at 90% 0%, rgba(255,255,255,0.15) 0%, transparent 60%);
}
.widget-portal .widget-title { font-size: 20px; font-weight: 800; color: #fff; margin-bottom: 7px; position: relative; z-index: 1; }
.widget-portal p { font-size: 12.5px; color: rgba(255,255,255,0.55); line-height: 1.6; margin-bottom: 20px; position: relative; z-index: 1; }
.widget-portal .portal-btn {
  display: block; text-align: center;
  background: #fff; color: var(--blue);
  font-size: 13px; font-weight: 800;
  padding: 13px; border-radius: 50px;
  transition: all .15s; position: relative; z-index: 1;
  margin-bottom: 8px; box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}
.widget-portal .portal-btn:hover { background: rgba(255,255,255,0.9); transform: translateY(-1px); color: var(--blue-dark); }

/* Generic widget */
.widget {
  background: var(--card); backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.85);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 4px 20px rgba(43,91,232,0.06);
}
.widget .widget-title {
  font-size: 11px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink2);
  padding: 14px 20px; border-bottom: 1px solid rgba(43,91,232,0.07);
  display: flex; align-items: center; gap: 9px; margin-bottom: 0;
}
.widget .widget-title::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); flex-shrink: 0; }
.widget-content { padding: 16px 20px; }

/* Events */
.widget-events-list { list-style: none; padding: 0; }
.widget-event { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid rgba(43,91,232,0.07); }
.widget-event:last-child { border-bottom: none; }
.event-cal { flex-shrink: 0; width: 48px; background: rgba(43,91,232,0.08); border-radius: 12px; text-align: center; padding: 8px 4px; }
.event-cal .event-month { font-size: 8px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--blue); display: block; }
.event-cal .event-day { font-size: 24px; font-weight: 900; color: var(--ink); display: block; line-height: 1.1; }
.event-info h5 { font-size: 13px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.event-info p { font-size: 11px; color: var(--muted); margin-top: 2px; margin-bottom: 0; }

/* Nav menu widget */
.widget_nav_menu ul, .widget-quick-links ul { list-style: none; padding: 0; }
.widget_nav_menu li, .widget-quick-links li { border-bottom: 1px solid rgba(43,91,232,0.07); }
.widget_nav_menu li:last-child, .widget-quick-links li:last-child { border-bottom: none; }
.widget_nav_menu a, .widget-quick-links a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 11px 0; font-size: 13px; font-weight: 500; color: var(--ink2); transition: all .12s;
}
.widget_nav_menu a::after, .widget-quick-links a::after { content: '›'; font-size: 16px; color: var(--muted2); transition: all .15s; }
.widget_nav_menu a:hover, .widget-quick-links a:hover { color: var(--blue); padding-left: 4px; }
.widget_nav_menu a:hover::after, .widget-quick-links a:hover::after { color: var(--blue); transform: translateX(3px); }

/* Recent posts */
.widget_recent_entries ul { list-style: none; padding: 0; }
.widget_recent_entries li { padding: 10px 0; border-bottom: 1px solid rgba(43,91,232,0.07); }
.widget_recent_entries li:last-child { border-bottom: none; }
.widget_recent_entries a { font-size: 13px; font-weight: 600; color: var(--ink2); line-height: 1.35; }
.widget_recent_entries a:hover { color: var(--blue); }
.widget_recent_entries .post-date { font-size: 11px; color: var(--muted2); display: block; margin-top: 3px; }

/* Search */
.search-form { display: flex; gap: 8px; }
.search-field { flex: 1; border: 1px solid rgba(43,91,232,0.15); border-radius: 50px; padding: 10px 16px; font-size: 13px; color: var(--ink); background: #fff; outline: none; transition: border-color .15s; }
.search-field:focus { border-color: var(--blue); }
.search-submit { background: var(--blue); color: #fff; border: none; border-radius: 50px; padding: 10px 18px; font-size: 13px; font-weight: 700; cursor: pointer; transition: background .15s; }
.search-submit:hover { background: var(--blue-dark); }

/* ============================================================
   16. SINGLE POST
   ============================================================ */
.single-post-header { margin-bottom: 32px; }
.single-post-thumbnail { width: 100%; height: 420px; overflow: hidden; border-radius: var(--radius); margin-bottom: 28px; }
.single-post-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.single-post-header .entry-title { font-size: clamp(24px,3vw,40px); letter-spacing: -1px; margin-bottom: 16px; }
.post-meta-bar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--muted2); margin-bottom: 8px; }
.post-meta-bar .cat-pill { margin-bottom: 0; }

.entry-content {
  background: var(--card); backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.85);
  border-radius: var(--radius); padding: 40px;
  box-shadow: 0 4px 24px rgba(43,91,232,0.07);
}
.entry-content h2 { font-size: 22px; margin: 2rem 0 1rem; }
.entry-content h3 { font-size: 18px; margin: 1.5rem 0 .75rem; }
.entry-content p { font-size: 16px; line-height: 1.8; color: var(--ink2); margin-bottom: 1.25rem; }
.entry-content ul, .entry-content ol { margin-bottom: 1.25rem; }
.entry-content li { margin-bottom: .5rem; font-size: 16px; color: var(--ink2); }
.entry-content a { color: var(--blue); text-decoration: underline; }
.entry-content blockquote { border-left: 4px solid var(--blue); padding: 16px 24px; margin: 2rem 0; background: var(--blue-pale); border-radius: 0 8px 8px 0; font-style: italic; color: var(--ink2); }
.entry-content img { border-radius: 10px; margin: 1.5rem 0; }

/* Share */
.post-share { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(43,91,232,0.1); }
.share-label { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.share-link { font-size: 12.5px; font-weight: 700; color: var(--blue); padding: 6px 14px; border-radius: 50px; background: var(--blue-pale); transition: all .15s; }
.share-link:hover { background: var(--blue); color: #fff; }

/* Post navigation */
.post-navigation { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 32px; }
.post-nav-link {
  background: var(--card); border: 1px solid rgba(255,255,255,0.85); border-radius: var(--radius-sm);
  padding: 18px 20px; display: flex; align-items: center; gap: 10px;
  transition: border-color .2s, transform .2s; color: var(--ink2);
}
.post-nav-link:hover { border-color: rgba(43,91,232,0.25); transform: translateY(-2px); color: var(--ink2); }
.post-nav-link--prev { justify-content: flex-start; }
.post-nav-link--next { justify-content: flex-end; text-align: right; }
.nav-arrow { font-size: 22px; color: var(--blue); flex-shrink: 0; }
.post-nav-link .nav-title { font-size: 13.5px; font-weight: 700; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Comments */
.comments-area { margin-top: 32px; }
.comment-list { list-style: none; padding: 0; }
.comment { padding: 20px 0; border-bottom: 1px solid rgba(43,91,232,0.07); }
.comment-author img { width: 40px; height: 40px; border-radius: 50%; }
.comment-author .fn { font-weight: 700; font-size: 14px; }
.comment-metadata { font-size: 11px; color: var(--muted2); }
.reply a { font-size: 12px; font-weight: 700; color: var(--blue); }
.comment-form label { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--ink2); margin-bottom: 6px; }
.comment-form input[type="text"],.comment-form input[type="email"],.comment-form textarea {
  width: 100%; border: 1px solid rgba(43,91,232,0.15); border-radius: 10px; padding: 12px 16px;
  font-size: 14px; color: var(--ink); background: #fff; outline: none; transition: border-color .15s; margin-bottom: 16px;
}
.comment-form input:focus,.comment-form textarea:focus { border-color: var(--blue); }
.comment-form .submit { background: var(--blue); color: #fff; border: none; border-radius: 50px; padding: 12px 28px; font-size: 14px; font-weight: 700; cursor: pointer; }
.comment-form .submit:hover { background: var(--blue-dark); }

/* ============================================================
   17. PAGE TEMPLATES
   ============================================================ */
.page-content, .entry-content { /* merged above */ }
.page-header { margin-bottom: 32px; }
.page-title { font-size: clamp(24px,3vw,36px); letter-spacing: -.5px; margin-bottom: 8px; }

.archive-header {
  background: var(--card); backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.85); border-radius: var(--radius);
  padding: 32px 36px; margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(43,91,232,0.07);
}
.archive-title { font-size: 28px; letter-spacing: -.5px; }
.archive-description { font-size: 14px; color: var(--muted); margin-top: 6px; }

/* 404 */
.error-404 .page-content { text-align: center; padding: 80px 40px; }
.error-code { font-size: 120px; font-weight: 900; color: var(--blue); opacity: .15; line-height: 1; display: block; }

/* ============================================================
   18. PAGINATION
   ============================================================ */
/* Posts nav (prev/next) */
.nav-links { display: flex; align-items: center; gap: 12px; justify-content: center; padding: 20px 0; }
.nav-links .nav-previous a,
.nav-links .nav-next a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--card); border: 1px solid rgba(255,255,255,0.85);
  box-shadow: 0 2px 10px rgba(43,91,232,0.06);
  font-size: 0; color: transparent; transition: background .15s;
}
.nav-links .nav-previous a::before { content: '←'; font-size: 18px; color: var(--blue); }
.nav-links .nav-next a::after     { content: '→'; font-size: 18px; color: var(--blue); }
.nav-links .nav-previous a:hover, .nav-links .nav-next a:hover { background: var(--blue); }
.nav-links .nav-previous a:hover::before, .nav-links .nav-next a:hover::after { color: #fff; }

/* Numbered pagination */
.navigation.pagination .nav-links { display: flex; gap: 6px; justify-content: center; padding: 20px 0; }
.navigation.pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; border-radius: 50%;
  background: var(--card); border: 1px solid rgba(255,255,255,0.85);
  color: var(--ink2); font-size: 13px; font-weight: 600; text-decoration: none; transition: all .15s;
}
.navigation.pagination .page-numbers.current,
.navigation.pagination .page-numbers:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.navigation.pagination .page-numbers.prev,
.navigation.pagination .page-numbers.next { font-size: 20px; }

/* ============================================================
   19. FOOTER
   ============================================================ */
.site-footer { background: #060E1C; position: relative; z-index: 1; }

.footer-wrap {
  max-width: 1320px; margin: 0 auto;
  padding: 60px 48px 40px;
  display: grid; grid-template-columns: 2.2fr 1.2fr;
  gap: 64px; align-items: start;
}
.ft-logo-text { font-size: 26px; font-weight: 900; color: #fff; letter-spacing: 2px; display: block; margin-bottom: 16px; }
.ft-desc { font-size: 13.5px; color: rgba(255,255,255,0.38); line-height: 1.75; margin-bottom: 0; max-width: 520px; }
.ft-social { display: flex; gap: 10px; margin-top: 24px; }
.ft-social-btn {
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.5); transition: all .2s;
}
.ft-social-btn:hover { background: var(--blue); border-color: var(--blue); color: #fff; transform: translateY(-2px); }
.ft-col-title { font-size: 10px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.35); margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,0.07); }
.ft-contact-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.ft-contact-item { display: flex; flex-direction: column; gap: 3px; }
.ft-contact-label { font-size: 9.5px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: #4A78F5; display: block; }
.ft-contact-value { font-size: 13.5px; color: rgba(255,255,255,0.45); line-height: 1.5; }
.ft-col-widget .widget-title { font-size: 10px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.35); margin-bottom: 20px; padding: 0 0 12px; border-bottom: 1px solid rgba(255,255,255,0.07); background: none; }
.ft-col-widget .widget-title::before { display: none; }
.ft-col-widget ul { list-style: none; padding: 0; }
.ft-col-widget ul li { margin-bottom: 10px; }
.ft-col-widget ul a { font-size: 13px; color: rgba(255,255,255,0.35); }
.ft-col-widget ul a:hover { color: rgba(255,255,255,0.75); }
.ft-bottom { border-top: 1px solid rgba(255,255,255,0.06); }
.ft-bottom-inner { max-width: 1320px; margin: 0 auto; padding: 18px 48px; display: flex; justify-content: space-between; align-items: center; }
.ft-bottom-inner p { font-size: 12px; color: rgba(255,255,255,0.55); margin: 0; }
.ft-bottom-inner a { font-size: 12px; color: rgba(255,255,255,0.45); margin-left: 20px; }
.ft-bottom-inner a:hover { color: rgba(255,255,255,0.5); }

/* ============================================================
   20. SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .45s ease, transform .45s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   21. WP ADMIN BAR
   ============================================================ */
.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

/* ============================================================
   22. GUTENBERG
   ============================================================ */
.wp-block-image img { border-radius: 10px; }
.wp-block-quote { border-left: 4px solid var(--blue); padding: 16px 24px; background: var(--blue-pale); border-radius: 0 8px 8px 0; font-style: italic; }
.wp-block-button__link { background: var(--blue); color: #fff; border-radius: 50px; padding: 12px 24px; font-weight: 700; }
.wp-block-button__link:hover { background: var(--blue-dark); }

/* ============================================================
   23. RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .content-area { grid-template-columns: 1fr; }
  .primary-sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .articles-grid { grid-template-columns: 1fr 1fr; }
  .tv-grid { grid-template-columns: 1fr 1fr; }
  .footer-wrap { grid-template-columns: 1fr 1fr; gap: 40px; }
  .qa-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .container, .header-inner { padding-left: 20px; padding-right: 20px; }

  /* Mobile nav */
  .main-navigation { display: none; }
  .main-navigation.toggled {
    display: block; position: fixed; inset: 70px 0 0 0;
    background: rgba(238,243,251,0.97); backdrop-filter: blur(20px);
    padding: 20px; overflow-y: auto; z-index: 499;
  }
  .main-navigation.toggled > ul { flex-direction: column; gap: 4px; }
  .main-navigation.toggled li { width: 100%; }
  .main-navigation.toggled a { border-radius: var(--radius-sm); }
  /* Mobile: submenus open below (static) */
  .main-navigation.toggled .sub-menu {
    position: static; opacity: 1; visibility: visible;
    transform: none; box-shadow: none; border: none;
    padding-left: 16px; background: rgba(43,91,232,0.04);
    border-radius: var(--radius-sm); display: none;
  }
  .main-navigation.toggled .submenu-open > .sub-menu { display: block; }
  .menu-toggle { display: block; }

  /* Hero */
  .hs-body { padding: 0 24px 56px; }
  .hs-title { font-size: clamp(18px, 5.5vw, 28px); }
  .hs-arrow { display: none; }
  .hs-dots { right: 24px; }

  /* Quick access */
  .quick-access { padding: 0 20px; }
  .qa-inner { grid-template-columns: 1fr; transform: translateY(-16px); }

  /* Ticker */
  .site-ticker { padding: 0 20px 20px; }

  /* Content */
  .content-area { padding: 20px 20px 40px; }
  .featured-grid { grid-template-columns: 1fr; }
  .articles-section { padding: 0 20px 40px; }
  .articles-grid { grid-template-columns: 1fr; }
  .tv-grid { grid-template-columns: 1fr; }
  .tv-wrap { padding: 0 20px; }
  .primary-sidebar { grid-template-columns: 1fr; }
  .post-navigation { grid-template-columns: 1fr; }
  .entry-content, .page-content { padding: 24px; }

  /* Footer */
  .footer-wrap { grid-template-columns: 1fr; gap: 32px; padding: 40px 24px 28px; }
  .ft-bottom-inner { flex-direction: column; gap: 8px; padding: 16px 24px; text-align: center; }

  /* Thumbnails mobile */
  .post-list-item .post-thumbnail { width: 88px; }
  .side-post .post-thumbnail { width: 72px; }
}

@media (max-width: 480px) {
  .hs-title { font-size: 18px; }
  .qa-inner { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   PATCH v1.4 — Menu, Mobile, Cards, Footer
   ============================================================ */

/* ── POST LIST CARD — square thumb + title beside + text below ── */
.post-list-item--card {
  flex-direction: column !important;
  gap: 0 !important;
  padding: 0 !important;
  overflow: hidden;
}

.plc-top {
  display: flex;
  gap: 0;
  align-items: stretch;
}

.plc-thumb {
  width: 110px;
  min-width: 110px;
  flex-shrink: 0;
}
.plc-thumb a { display: block; width: 100%; height: 100%; }
.plc-thumb img {
  width: 110px !important;
  height: 110px !important;
  object-fit: cover;
  border-radius: 0;
  display: block;
}

.plc-header {
  flex: 1;
  padding: 16px 18px 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.plc-header .cat-pill { margin-bottom: 6px; }
.plc-header .entry-title.small { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.plc-header .entry-meta { font-size: 11px; color: var(--muted2); }

.plc-excerpt {
  padding: 0 18px 16px;
  border-top: 1px solid rgba(43,91,232,0.06);
  padding-top: 10px;
}
.plc-excerpt .entry-excerpt {
  font-size: 13px; color: var(--muted); line-height: 1.55; margin: 0;
}

/* ── TICKER ICON — Raio / Lightning ── */
.ticker-icon {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--blue); flex-shrink: 0; margin-right: 16px;
  box-shadow: 0 3px 10px rgba(43,91,232,0.35);
}
.ticker-icon svg path { fill: white; }

/* ── FOOTER COPYRIGHT — readable ── */
.ft-bottom-inner p { color: rgba(255,255,255,0.60) !important; }
.ft-bottom-inner a { color: rgba(255,255,255,0.50) !important; }
.ft-bottom-inner a:hover { color: rgba(255,255,255,0.85) !important; }

/* ============================================================
   MOBILE DRAWER MENU
   ============================================================ */
/* Hide mobile toggle on desktop */
.menu-toggle { display: none; }

/* Hamburger lines */
.hamburger-line {
  display: block; width: 22px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.menu-toggle.is-active .hamburger-line:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle.is-active .hamburger-line:nth-child(2) { opacity: 0; }
.menu-toggle.is-active .hamburger-line:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Full-screen overlay */
.mobile-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 700;
  background: rgba(5,12,35,0.55);
  backdrop-filter: blur(2px);
}
.mobile-overlay.visible { display: block; }

/* Side drawer */
.mobile-drawer {
  position: fixed;
  top: 0; right: -340px;
  width: 320px; max-width: 88vw;
  height: 100%;
  background: var(--white);
  z-index: 800;
  display: flex; flex-direction: column;
  box-shadow: -4px 0 40px rgba(5,12,35,0.18);
  transition: right .32s cubic-bezier(0.77,0,0.175,1);
  overflow: hidden;
}
.mobile-drawer.open { right: 0; }

/* Drawer header */
.mobile-drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(43,91,232,0.08);
  flex-shrink: 0;
  background: var(--bg);
}
.mobile-drawer-header .custom-logo-link img {
  height: 38px !important; width: auto !important;
}
.mobile-close {
  background: rgba(43,91,232,0.08);
  border: none; border-radius: 50%;
  width: 36px; height: 36px;
  font-size: 16px; cursor: pointer; color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.mobile-close:hover { background: rgba(43,91,232,0.16); }

/* Drawer body — scrollable */
.mobile-drawer-body { flex: 1; overflow-y: auto; padding: 8px 0 32px; }

/* Mobile menu list */
.mobile-drawer-body ul { list-style: none; padding: 0; margin: 0; }
.mobile-drawer-body .mob-item { border-bottom: 1px solid rgba(43,91,232,0.07); }

/* Each row: link + toggle button */
.mob-item-row {
  display: flex; align-items: stretch;
}

.mob-link {
  display: flex; align-items: center;
  flex: 1;
  padding: 15px 20px;
  font-size: 14px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.6px;
  color: var(--ink2);
  text-decoration: none;
  transition: color .15s, background .15s;
}
.mob-link:hover { color: var(--blue); background: var(--blue-pale); }

/* Toggle arrow button */
.mob-toggle {
  background: none; border: none;
  border-left: 1px solid rgba(43,91,232,0.08);
  padding: 0 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); transition: color .15s, background .15s;
  flex-shrink: 0;
}
.mob-toggle:hover { color: var(--blue); background: var(--blue-pale); }
.mob-toggle svg { transition: transform .25s; }
.mob-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.mob-toggle[aria-expanded="true"] { color: var(--blue); }

/* Submenu — hidden by default, accordion */
.mob-sub {
  display: none;
  background: rgba(43,91,232,0.03);
  border-top: 1px solid rgba(43,91,232,0.06);
}
.mob-sub.open { display: block; }

.mob-sub .mob-item { border-bottom: 1px solid rgba(43,91,232,0.05); }
.mob-sub .mob-item:last-child { border-bottom: none; }

.mob-sub .mob-link {
  padding-left: 36px;
  font-size: 13.5px;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
}

/* Nested sub-sub */
.mob-sub .mob-sub .mob-link { padding-left: 52px; font-size: 13px; }

/* Current item */
.mob-item.current-menu-item > .mob-item-row .mob-link,
.mob-item.current-menu-ancestor > .mob-item-row .mob-link {
  color: var(--blue);
}

/* ============================================================
   RESPONSIVE MOBILE OVERRIDES
   ============================================================ */
@media (max-width: 768px) {

  /* Show hamburger */
  .menu-toggle {
    display: flex; flex-direction: column;
    gap: 5px; align-items: center; justify-content: center;
    background: none; border: 1px solid rgba(43,91,232,0.18);
    border-radius: 9px; padding: 9px 10px;
    cursor: pointer; margin-left: auto;
  }

  /* Hide desktop nav on mobile */
  .main-navigation { display: none !important; }

  /* ── HERO: half height on mobile ── */
  .site-hero {
    height: 45vh !important;
    min-height: 280px !important;
    max-height: 380px !important;
  }
  .hs-body { padding: 0 20px 32px !important; }
  .hs-cat { font-size: 8.5px; padding: 4px 10px; margin-bottom: 10px; }
  .hs-title { font-size: clamp(15px, 5vw, 22px) !important; letter-spacing: 0; }
  .hs-date { font-size: 11px; }
  .hs-arrow { display: none !important; }
  .hs-dots { bottom: 10px; right: 16px; gap: 6px; }
  .hs-dot { width: 6px; height: 6px; }
  .hs-dot.active { width: 16px; }

  /* ── QUICK ACCESS: 2x2 on mobile ── */
  .quick-access { padding: 0 16px; }
  .qa-inner {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px;
    transform: translateY(-14px);
  }
  .qa-btn { padding: 16px 14px; gap: 8px; }
  .qa-label { font-size: 12.5px; }
  .qa-sub { font-size: 10px; }
  .qa-arrow { display: none; }

  /* ── POST LIST CARD — mobile ── */
  .plc-thumb { width: 90px; min-width: 90px; }
  .plc-thumb img { width: 90px !important; height: 90px !important; }
  .plc-header { padding: 12px 14px 10px; }
  .plc-excerpt { padding: 0 14px 14px; padding-top: 8px; }

  /* ── FEATURED GRID: stack on mobile ── */
  .featured-grid { grid-template-columns: 1fr !important; }
  .featured-main .post-thumbnail { height: 200px; }

  /* ── CONTENT AREA ── */
  .content-area { padding: 16px 16px 40px !important; gap: 24px !important; }

  /* ── SECTIONS ── */
  .articles-section { padding: 0 16px 40px !important; }
  .articles-grid { grid-template-columns: 1fr !important; }
  .tv-wrap { padding: 0 16px !important; }
  .tv-grid { grid-template-columns: 1fr !important; }

  /* ── TICKER ── */
  .site-ticker { padding: 0 16px 16px !important; }

  /* ── SIDEBAR: single column ── */
  .primary-sidebar { grid-template-columns: 1fr !important; }

  /* ── FOOTER ── */
  .footer-wrap { grid-template-columns: 1fr !important; gap: 28px !important; padding: 36px 20px 24px !important; }
  .ft-bottom-inner { flex-direction: column; gap: 6px; padding: 14px 20px; text-align: center; }
  .ft-social { gap: 8px; }
  .ft-social-btn { width: 40px; height: 40px; }

  /* ── SINGLE POST ── */
  .single-post-thumbnail { height: 220px !important; }
  .entry-content { padding: 20px !important; }
  .post-navigation { grid-template-columns: 1fr !important; }

  /* ── HEADER ── */
  .header-inner { padding: 0 16px !important; height: 62px !important; }
  .custom-logo-link img { height: 42px !important; }

}

@media (max-width: 480px) {
  .qa-inner { grid-template-columns: 1fr 1fr !important; }
  .hs-title { font-size: 15px !important; }
  .site-hero { height: 42vh !important; min-height: 260px !important; }
}
