/*
Theme Name: ZAMECO II
Theme URI: https://zameco2.com
Author: ZAMECO II
Author URI: https://zameco2.com
Description: A clean, modern, corporate theme for Zambales II Electric Cooperative, Inc.
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: zameco2
Tags: one-page, corporate, electric-cooperative, responsive
*/

/* ── Google Fonts ─────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ── Reset & Base ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:        #0f1b2d;
  --navy-light:  #1a2d47;
  --navy-mid:    #1e3a5f;
  --amber:       #f59e0b;
  --amber-light: #fbbf24;
  --gray-50:     #f8fafc;
  --gray-100:    #f1f5f9;
  --gray-200:    #e2e8f0;
  --gray-300:    #cbd5e1;
  --gray-400:    #94a3b8;
  --gray-500:    #64748b;
  --gray-600:    #475569;
  --gray-800:    #1e293b;
  --white:       #ffffff;
  --font:        'Plus Jakarta Sans', sans-serif;
  --shadow-sm:   0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md:   0 4px 16px rgba(15,27,45,.10);
  --shadow-lg:   0 10px 40px rgba(15,27,45,.14);
  --radius:      10px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--gray-800);
  line-height: 1.6;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Buttons ──────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }

.btn-primary   { background: var(--navy);  color: var(--white); }
.btn-primary:hover { background: var(--navy-light); }

.btn-amber     { background: var(--amber); color: var(--navy); }
.btn-amber:hover { background: var(--amber-light); }

.btn-outline {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.6);
  color: var(--white);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: white; }

.btn-ghost {
  background: var(--gray-100);
  color: var(--gray-700);
}
.btn-ghost:hover { background: var(--gray-200); }

/* ── Top Bar ──────────────────────────────────── */
.top-bar {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  font-size: 0.82rem;
  padding: 9px 0;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-bar-left {
  display: flex;
  gap: 20px;
  align-items: center;
}
.top-bar-left span {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ── Site Header ──────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}

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

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
  text-decoration: none;
}
.site-logo-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  background: var(--navy);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--amber);
  font-size: 1.2rem;
  flex-shrink: 0;
  overflow: hidden;
}
.site-logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
/* Full image logo (no box) */
.site-logo-img {
  height: 44px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}
.site-logo-text strong {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--gray-800);
  line-height: 1.1;
}
.site-logo-text span {
  font-size: 0.72rem;
  color: var(--gray-400);
  font-weight: 500;
}

/* ── Desktop Nav ──────────────────────────────── */
.main-nav { display: block; }
.header-cta { display: flex; align-items: center; gap: 12px; }

/* Nav list */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-menu li { position: relative; list-style: none; }

.nav-menu .nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  border-radius: 7px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-600);
  transition: background 0.18s, color 0.18s;
  white-space: nowrap;
  cursor: pointer;
  position: relative;
}
.nav-menu .nav-link:hover {
  background: var(--gray-100);
  color: var(--gray-800);
}

/* Amber dot under active item */
/* Amber underline indicator on active/hovered top-level items */
.nav-menu > li > .nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: calc(100% - 28px);
  height: 2px;
  background: var(--amber);
  border-radius: 2px;
  transition: transform 0.2s ease;
  z-index: 1;
}
.nav-menu > li:hover > .nav-link::after,
.nav-menu > li.current-menu-item > .nav-link::after,
.nav-menu > li.current-menu-ancestor > .nav-link::after {
  transform: translateX(-50%) scaleX(1);
}
/* Sub-menu links must NOT inherit the underline */
.nav-menu .sub-menu .nav-link::after,
.nav-menu .sub-menu .nav-link::before {
  display: none !important;
  content: none !important;
}

/* Chevron */
.nav-chevron {
  font-size: 0.6rem;
  opacity: 0.45;
  transition: transform 0.2s;
  pointer-events: none;
}
.nav-menu li.menu-item-has-children:hover > .nav-link .nav-chevron {
  transform: rotate(180deg);
  opacity: 0.8;
}

/* ── Dropdown ─────────────────────────────────── */
.nav-menu .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  z-index: 9999;
  list-style: none;
  margin: 0;
  /* Push dropdown down so pseudo bridge fits */
  padding-top: 12px;
}

/* Invisible pseudo-element bridge fills the gap between
   the nav link and the dropdown so mouse can travel between them */
.nav-menu li.menu-item-has-children > .nav-link::before {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 0;
  right: 0;
  height: 12px;
  background: transparent;
  z-index: 10000;
}

.nav-menu li.menu-item-has-children:hover > .sub-menu,
.nav-menu li.menu-item-has-children:focus-within > .sub-menu {
  display: block;
}

.nav-menu .sub-menu li { list-style: none; width: 100%; }

.nav-menu .sub-menu .nav-link {
  display: block;
  padding: 9px 14px;
  border-radius: 6px;
  font-size: 0.845rem;
  font-weight: 500;
  color: var(--gray-600);
  width: 100%;
  white-space: nowrap;
}
.nav-menu .sub-menu .nav-link::after { display: none; }
.nav-menu .sub-menu .nav-link:hover {
  background: var(--gray-100);
  color: var(--navy);
}

/* ── Mobile Toggle ────────────────────────────── */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
  color: var(--gray-800);
  line-height: 1;
  border-radius: 8px;
  transition: background 0.15s;
}
.mobile-toggle:hover { background: var(--gray-100); }

/* Mobile nav panel — hidden on desktop */
.mobile-nav { display: none; }

/* ── Mobile (<= 1023px) ───────────────────────── */
@media (max-width: 1023px) {
  .main-nav, .header-cta { display: none !important; }
  .mobile-toggle { display: flex; align-items: center; justify-content: center; }

  .mobile-nav {
    display: none;
    border-top: 1px solid var(--gray-200);
    background: var(--white);
    padding: 12px 16px 24px;
    max-height: 80vh;
    overflow-y: auto;
  }
  .mobile-nav.active { display: block; }

  .mobile-menu {
    display: flex;
    flex-direction: column;
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .mobile-menu li { list-style: none; }

  .mobile-menu .nav-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 14px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--gray-600);
    transition: background 0.15s;
  }
  .mobile-menu .nav-link:hover { background: var(--gray-100); color: var(--gray-800); }
  .mobile-menu .nav-link::after { display: none; }

  .mobile-menu li.menu-item-has-children > .nav-link .nav-chevron {
    opacity: 0.45; font-size: 0.75rem; transition: transform 0.2s; flex-shrink: 0;
  }
  .mobile-menu li.menu-item-has-children.open > .nav-link .nav-chevron {
    transform: rotate(180deg); opacity: 1;
  }

  .mobile-menu .sub-menu {
    display: none;
    flex-direction: column;
    gap: 1px;
    margin: 2px 0 4px 14px;
    padding-left: 14px;
    border-left: 3px solid var(--amber);
    list-style: none;
  }
  .mobile-menu li.menu-item-has-children.open > .sub-menu { display: flex; }

  .mobile-menu .sub-menu .nav-link {
    font-size: 0.85rem;
    font-weight: 500;
    padding: 8px 12px;
  }

  .top-bar { display: none; }

  .mobile-cta {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-200);
  }
  .mobile-cta .btn { width: 100%; justify-content: center; }
}

/* ── Hero ─────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  opacity: 0.4;
}

/* Gradient overlay */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(10,20,38,0.88) 0%,
    rgba(10,20,38,0.65) 55%,
    rgba(10,20,38,0.2) 100%
  );
}

/* Watermark logo behind content */
.hero-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 420px;
  opacity: 0.05;
  pointer-events: none;
  user-select: none;
}

.hero .container {
  position: relative;
  z-index: 1;
  padding-top: 72px;
  padding-bottom: 72px;
  max-width: 1200px;
  width: 100%;
}

.hero-content {
  max-width: 620px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(245,158,11,0.18);
  border: 1px solid rgba(245,158,11,0.35);
  color: var(--amber-light);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 18px;
}

.hero .highlight { color: var(--amber); }

.hero p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.72);
  margin-bottom: 36px;
  max-width: 520px;
  line-height: 1.75;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ── Quick Access ─────────────────────────────── */
.quick-access {
  padding: 72px 0;
  background: var(--white);
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--gray-800);
  margin-bottom: 8px;
}

.section-subtitle {
  color: var(--gray-400);
  font-size: 0.95rem;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 768px) {
  .quick-grid { grid-template-columns: 1fr; }
}
@media (min-width: 769px) and (max-width: 1023px) {
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
}

.quick-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  background: var(--white);
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.quick-card:hover {
  border-color: var(--navy);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.quick-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  transition: background 0.2s;
}

.quick-card:hover .quick-card-icon {
  background: rgba(245,158,11,0.12);
}

.quick-card-text h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 3px;
}

.quick-card-text p {
  font-size: 0.8rem;
  color: var(--gray-400);
  line-height: 1.4;
}

/* ── News Section ─────────────────────────────── */
.news-section {
  background: var(--gray-50);
  padding: 72px 0;
}

.news-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 768px) {
  .news-grid { grid-template-columns: 1fr; }
  .news-header { flex-direction: column; align-items: flex-start; gap: 12px; }
}
@media (min-width: 769px) and (max-width: 1023px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}

.news-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 24px;
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.news-card-thumb {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 7px;
  margin-bottom: 16px;
  background: var(--gray-100);
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.news-tag {
  background: rgba(15,27,45,0.07);
  color: var(--navy);
  padding: 3px 11px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.news-date {
  font-size: 0.78rem;
  color: var(--gray-400);
}

.news-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 8px;
  line-height: 1.45;
}

.news-card p {
  font-size: 0.875rem;
  color: var(--gray-500);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 18px;
}

.read-more {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: gap 0.15s;
}
.read-more:hover { gap: 8px; }

/* ── Stats Bar ────────────────────────────────── */
.stats-section {
  background: var(--navy);
  color: var(--white);
  padding: 56px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 16px; }
}

.stat-number {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--amber);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
}

/* ── Footer ───────────────────────────────────── */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.65);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand .site-logo { margin-bottom: 16px; }
.footer-brand p { font-size: 0.875rem; line-height: 1.75; color: rgba(255,255,255,0.5); }

.footer-heading {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.35);
  margin-bottom: 18px;
}

.site-footer ul { display: flex; flex-direction: column; gap: 10px; }
.site-footer ul li { font-size: 0.875rem; }
.site-footer ul a:hover { color: var(--white); }
.site-footer ul li span { font-size: 0.875rem; }

.footer-bottom {
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
}

.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom a:hover { color: rgba(255,255,255,0.7); }

@media (max-width: 600px) {
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}

/* ── Single Post ──────────────────────────────── */
.single-post-main { padding: 56px 0 96px; min-height: 60vh; }
.single-article { max-width: 780px; margin: 0 auto; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--gray-400);
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--navy); font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb-sep { color: var(--gray-300); }

.post-header { margin-bottom: 28px; }
.post-meta-top { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.post-author { font-size: 0.8rem; color: var(--gray-400); }

.post-title { font-size: 2rem; font-weight: 800; line-height: 1.25; color: var(--gray-800); }
@media (max-width: 600px) { .post-title { font-size: 1.5rem; } }

.post-featured-image { margin-bottom: 36px; border-radius: var(--radius); overflow: hidden; }
.featured-img { width: 100%; height: auto; max-height: 440px; object-fit: cover; }

.post-content { font-size: 1rem; line-height: 1.85; color: var(--gray-600); margin-bottom: 44px; }
.post-content h2, .post-content h3 { color: var(--gray-800); font-weight: 700; margin: 28px 0 12px; }
.post-content h2 { font-size: 1.4rem; }
.post-content h3 { font-size: 1.15rem; }
.post-content p { margin-bottom: 16px; }
.post-content ul, .post-content ol { padding-left: 24px; margin-bottom: 16px; }
.post-content ul li { list-style: disc; margin-bottom: 6px; }
.post-content ol li { list-style: decimal; margin-bottom: 6px; }
.post-content a { color: var(--navy); text-decoration: underline; }
.post-content blockquote { border-left: 4px solid var(--amber); padding: 14px 20px; margin: 24px 0; background: var(--gray-50); border-radius: 0 8px 8px 0; font-style: italic; }

.post-tags { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 20px 0; border-top: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200); margin-bottom: 44px; }
.tags-label { font-size: 0.82rem; font-weight: 700; color: var(--gray-400); }
.post-tag { background: var(--gray-100); color: var(--navy); padding: 4px 12px; border-radius: 20px; font-size: 0.78rem; font-weight: 600; }
.post-tag:hover { background: var(--gray-200); }

.post-navigation { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 44px; }
@media (max-width: 560px) { .post-navigation { grid-template-columns: 1fr; } }
.post-nav-prev, .post-nav-next { padding: 18px 20px; border: 1px solid var(--gray-200); border-radius: var(--radius); transition: border-color 0.2s, box-shadow 0.2s; }
.post-nav-next { text-align: right; }
.post-nav-prev:hover, .post-nav-next:hover { border-color: var(--navy); box-shadow: var(--shadow-md); }
.post-nav-label { display: block; font-size: 0.72rem; font-weight: 700; color: var(--gray-400); text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 6px; }
.post-nav-link { font-size: 0.9rem; font-weight: 700; color: var(--navy); }
.post-nav-link:hover { text-decoration: underline; }

.back-link-wrap { max-width: 780px; margin: 0 auto; }

/* ── Page Hero Banner ─────────────────────────── */
.page-main { padding-bottom: 80px; min-height: 60vh; }

.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 48px 0;
  margin-bottom: 48px;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  right: -60px;
  top: -60px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 40px solid rgba(245,158,11,0.07);
  pointer-events: none;
}

.page-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.page-hero .breadcrumb {
  margin-bottom: 14px;
}

.page-hero .breadcrumb,
.page-hero .breadcrumb a,
.page-hero .breadcrumb span {
  color: rgba(255,255,255,0.55);
}

.page-hero .breadcrumb a:hover { color: var(--amber); }
.page-hero .breadcrumb-sep { color: rgba(255,255,255,0.25); }

.page-hero-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
}

/* Page article content */
.page-article {
  max-width: 100%;
  margin: 0 auto;
}

.page-content {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--gray-600);
}
.page-content h1, .page-content h2, .page-content h3,
.page-content h4, .page-content h5 {
  color: var(--gray-800); font-weight: 700; margin: 28px 0 12px;
}
.page-content h1 { font-size: 1.8rem; }
.page-content h2 { font-size: 1.4rem; }
.page-content h3 { font-size: 1.15rem; }
.page-content p  { margin-bottom: 16px; }
.page-content ul, .page-content ol { padding-left: 24px; margin-bottom: 16px; }
.page-content ul li { list-style: disc; margin-bottom: 6px; }
.page-content ol li { list-style: decimal; margin-bottom: 6px; }
.page-content a  { color: var(--navy); text-decoration: underline; }
.page-content img { border-radius: 8px; margin: 16px 0; max-width: 100%; }
.page-content blockquote {
  border-left: 4px solid var(--amber);
  padding: 14px 20px; margin: 24px 0;
  background: var(--gray-50); border-radius: 0 8px 8px 0;
  font-style: italic; color: var(--gray-500);
}
/* ── Professional Tables ──────────────────────── */
/* Page article goes full-width when it contains a wide table */
.page-article {
  max-width: 100%;
}
.page-article .page-content {
  max-width: 100%;
}

/* ── Table scroll wrapper ─────────────────────── */
.table-scroll-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 24px 0 32px;
  border-radius: 12px;
  box-shadow: 0 0 0 1.5px var(--gray-200), 0 2px 12px rgba(15,27,45,0.06);
}

.page-content table {
  width: 100%;
  /* auto layout: browser sizes columns by content — no compression */
  table-layout: auto;
  border-collapse: collapse;
  font-size: 0.82rem;
  margin: 0;
  background: var(--white);
}

/* Header row */
.page-content thead tr { background: var(--navy); }

.page-content th {
  padding: 13px 16px;
  font-weight: 700;
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: left;
  color: var(--white);
  /* Allow wrapping at word boundaries — never mid-character */
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  border-right: 1px solid rgba(255,255,255,0.12);
  line-height: 1.45;
  vertical-align: bottom;
  /* Minimum cell width prevents extreme squeezing */
  min-width: 80px;
}
.page-content th:last-child { border-right: none; }

/* Body cells — data should never wrap (keeps rows tidy) */
.page-content td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--gray-100);
  border-right: 1px solid var(--gray-100);
  color: var(--gray-600);
  vertical-align: middle;
  line-height: 1.55;
  white-space: nowrap;
}
.page-content td:last-child  { border-right: none; }
.page-content tbody tr:last-child td { border-bottom: none; }

/* Exception: first (text) column may wrap — source names, etc. */
.page-content table td:first-child {
  white-space: normal;
  min-width: 120px;
  max-width: 220px;
}

/* Alternating rows */
.page-content tbody tr:nth-child(even) td { background: var(--gray-50); }
.page-content tbody tr:hover td {
  background: rgba(245,158,11,0.04);
  color: var(--gray-800);
}

/* Month / group header rows (single colspan cell like "January 2024") */
.page-content tbody tr td[colspan],
.page-content tbody tr.month-row td {
  background: rgba(15,27,45,0.04) !important;
  color: #b45309;
  font-weight: 700;
  font-size: 0.82rem;
  border-bottom: 1px solid rgba(245,158,11,0.18);
  letter-spacing: 0.01em;
  text-align: right;
  padding-right: 20px;
  white-space: nowrap;
}

/* TOTAL rows */
.page-content tbody tr.total-row td {
  font-weight: 700;
  color: var(--gray-800);
  background: rgba(15,27,45,0.03) !important;
  border-top: 2px solid var(--gray-200);
  white-space: nowrap;
}

/* Numeric columns — right-align, tabular digits */
.page-content td.num,
.page-content th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

/* ── Contact Section ──────────────────────────── */
.contact-section {
  background: var(--white);
  padding: 88px 0;
  border-top: 1px solid var(--gray-100);
}

.contact-section .section-header {
  margin-bottom: 56px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 56px;
  align-items: start;
}

@media (max-width: 960px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ── Info panel ── */
.contact-info { }

.contact-intro {
  color: var(--gray-500);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 36px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-details li {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
}

.contact-icon {
  width: 40px;
  min-width: 40px;
  height: 40px;
  background: var(--gray-100);
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  flex-grow: 0;
  color: var(--navy);
}

.contact-details li > div { flex: 1; }

.contact-details li > div strong {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--gray-400);
  margin-bottom: 4px;
}

.contact-details li > div span,
.contact-details li > div a {
  font-size: 0.9rem;
  color: var(--gray-700);
  font-weight: 500;
  line-height: 1.5;
}

.contact-details a:hover { color: var(--navy); text-decoration: underline; }

/* ── Form card ── */
.contact-form-wrap {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: 16px;
  padding: 40px 40px 36px;
  box-shadow: 0 4px 24px rgba(15,27,45,0.07);
}

@media (max-width: 560px) {
  .contact-form-wrap { padding: 24px 20px; }
}

.contact-form { width: 100%; }

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

@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
  width: 100%;
  min-width: 0;
}

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

.form-group label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group .required { color: #e53e3e; margin-left: 2px; }

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font);
  font-size: 0.9rem;
  color: var(--gray-800);
  background: var(--gray-50);
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  padding: 11px 14px;
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
  outline: none;
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
  -webkit-appearance: none;
  appearance: none;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394a3b8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--navy);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(15,27,45,0.08);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray-300);
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.6;
}

.btn-submit {
  width: 100%;
  justify-content: center;
  padding: 14px 24px;
  font-size: 0.95rem;
  margin-top: 6px;
  letter-spacing: 0.01em;
}

/* Form status notices */
.form-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 24px;
  line-height: 1.5;
}
.form-success {
  background: #f0fdf4;
  color: #166534;
  border: 1.5px solid #bbf7d0;
}
.form-error {
  background: #fff7ed;
  color: #9a3412;
  border: 1.5px solid #fed7aa;
}

/* ── Footer logo adjustments ─────────────────── */
.footer-logo { margin-bottom: 16px; }
.footer-logo-img {
  /* invert dark logos to white for dark footer background */
  filter: brightness(0) invert(1);
  opacity: 0.9;
}
.footer-logo .site-logo-icon { background: rgba(255,255,255,0.1); }

/* ── Ensure page content tables use full container width ── */
.page-main .container { max-width: 1200px; }
.page-article { width: 100%; }
.page-content { width: 100%; }

/* ── Contact icon — override any width bleed ─ */
.contact-details { width: 100%; }
.contact-details li {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
}
.contact-icon {
  width: 40px !important;
  min-width: 40px !important;
  max-width: 40px !important;
  flex: 0 0 40px !important;
}


/* ── Pagination ───────────────────────────────── */
.posts-navigation,
.pagination,
.nav-links,
.page-numbers-wrap {
  margin: 48px 0 24px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-200);
}

/* WordPress default: the_posts_navigation() */
.posts-navigation .nav-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-top: none;
  margin: 0;
  padding: 0;
}

.posts-navigation .nav-previous a,
.posts-navigation .nav-next a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 8px;
  border: 1.5px solid var(--gray-200);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--navy);
  background: var(--white);
  transition: all 0.18s;
}

.posts-navigation .nav-previous a:hover,
.posts-navigation .nav-next a:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

/* WordPress: the_posts_pagination() — numeric page numbers */
.page-numbers,
.pagination .page-numbers {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

a.page-numbers,
span.page-numbers,
.pagination a.page-numbers,
.pagination span.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1.5px solid var(--gray-200);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--white);
  transition: all 0.18s;
  text-decoration: none;
}

a.page-numbers:hover,
.pagination a.page-numbers:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

span.page-numbers.current,
.pagination span.current {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

span.page-numbers.dots,
.pagination span.dots {
  border: none;
  background: none;
  color: var(--gray-400);
  min-width: auto;
  padding: 0 4px;
}

/* wp-pagenavi plugin compatibility */
.wp-pagenavi {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 40px 0 24px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-200);
}

.wp-pagenavi a,
.wp-pagenavi span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1.5px solid var(--gray-200);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--white);
  text-decoration: none;
  transition: all 0.18s;
  font-family: var(--font);
}

.wp-pagenavi a:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }

.wp-pagenavi span.current {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.wp-pagenavi span.pages {
  border: none;
  background: none;
  color: var(--gray-400);
  font-size: 0.8rem;
}

/* ── File attachment input ────────────────────── */
.form-file-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.form-file-group label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.file-upload-area {
  position: relative;
  border: 2px dashed var(--gray-200);
  border-radius: 10px;
  padding: 20px 16px;
  background: var(--gray-50);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s;
}

.file-upload-area:hover,
.file-upload-area.has-file {
  border-color: var(--navy);
  background: rgba(15,27,45,0.02);
}

.file-upload-area input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.file-upload-icon {
  font-size: 1.6rem;
  margin-bottom: 6px;
  display: block;
}

.file-upload-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-500);
  display: block;
  margin-bottom: 3px;
}

.file-upload-hint {
  font-size: 0.74rem;
  color: var(--gray-400);
  display: block;
}

.file-upload-name {
  display: none;
  margin-top: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.file-upload-area.has-file .file-upload-name { display: flex; }
.file-upload-area.has-file .file-upload-text,
.file-upload-area.has-file .file-upload-icon { opacity: 0.4; }

.file-error {
  font-size: 0.78rem;
  color: #dc2626;
  font-weight: 600;
  display: none;
  margin-top: 4px;
}

.file-error.visible { display: block; }
/* ── Archive grid (index.php) ─────────────────── */
.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 0;
}
@media (max-width: 768px)  { .archive-grid { grid-template-columns: 1fr; } }
@media (min-width: 769px) and (max-width: 1023px) { .archive-grid { grid-template-columns: repeat(2, 1fr); } }

.archive-grid .news-card h3 a {
  color: var(--gray-800);
  text-decoration: none;
  transition: color 0.15s;
}
.archive-grid .news-card h3 a:hover { color: var(--navy); }

.archive-pagination {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-200);
}

.archive-pagination .nav-links,
.archive-pagination .page-numbers {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}
