
/* ── Variables ─────────────────────────────────────────── */
:root {
  --primary: #0b4d82;
  --primary-dark: #083a63;
  --accent: #2ba7c7;
  --accent-light: #e8f7fc;
  --text: #1f2937;
  --text-muted: #6b7280;
  --bg: #f9fafb;
  --white: #ffffff;
  --border: #e5e7eb;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,.12);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.16);
  --radius: 10px;
  --transition: .25s ease;
}

/* ── Reset & Base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.75;
  font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary); }

/* ── Layout ─────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 80px 0; }
.section--alt { background: var(--bg); }
.section--dark { background: var(--primary); color: var(--white); }
.section--accent { background: var(--accent-light); }

/* ── Typography ─────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--primary);
}
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }
.lead { font-size: 1.15rem; color: var(--text-muted); }
.section-title {
  text-align: center;
  margin-bottom: 48px;
}
.section-title h2 { margin-bottom: 12px; }
.section-title p { color: var(--text-muted); max-width: 600px; margin: 0 auto; }
.section-divider {
  width: 56px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  margin: 12px auto 0;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--primary);
}

/* ── Sticky Header ───────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.header-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 6px;
  flex-shrink: 0;
}
.header-text { line-height: 1.3; }
.header-site-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
}
.header-site-tagline {
  font-size: .68rem;
  color: var(--text-muted);
  letter-spacing: .3px;
  margin-top: 2px;
}

/* ── Desktop Nav ────────────────────────────────────────── */
.desktop-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}
.desktop-nav ul li a {
  display: block;
  padding: 8px 11px;
  color: var(--text);
  font-size: .8rem;
  font-weight: 500;
  white-space: nowrap;
  border-radius: 4px;
  transition: background var(--transition), color var(--transition);
}
.desktop-nav ul li a:hover,
.desktop-nav ul li.current-menu-item > a {
  background: var(--primary);
  color: var(--white);
}
.desktop-nav ul li { position: relative; }
.desktop-nav ul li ul {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: var(--primary-dark);
  min-width: 200px;
  box-shadow: var(--shadow-md);
  flex-direction: column;
  border-radius: 6px;
  overflow: hidden;
  z-index: 200;
}
.desktop-nav ul li:hover > ul { display: flex; }
.desktop-nav ul li ul li a {
  color: rgba(255,255,255,.85);
  border-radius: 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
  padding: 10px 16px;
}
.desktop-nav ul li ul li a:hover { background: var(--accent); color: var(--white); }

/* Hamburger — mobile only */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: var(--primary);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ── Off-canvas Drawer ───────────────────────────────────── */
.offcanvas-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 1000;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.offcanvas-overlay.active { display: block; }

.offcanvas {
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  max-width: 88vw;
  height: 100dvh;
  height: 100vh; /* fallback */
  background: var(--primary-dark);
  z-index: 1010;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  overflow: hidden;
}
.offcanvas.open { transform: translateX(0); }

.offcanvas-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--primary);
  flex-shrink: 0;
}
.offcanvas-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.offcanvas-brand img {
  width: 38px;
  height: 38px;
  border-radius: 5px;
  flex-shrink: 0;
}
.offcanvas-brand span {
  color: var(--white);
  font-size: .76rem;
  font-weight: 600;
  line-height: 1.4;
}
.offcanvas-close {
  background: rgba(255,255,255,.15);
  border: none;
  color: var(--white);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  flex-shrink: 0;
}
.offcanvas-close:hover { background: rgba(255,255,255,.3); }

.offcanvas-nav {
  flex: 1;
  overflow-y: auto;
  padding: 6px 0;
}
.offcanvas-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.offcanvas-nav ul li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  color: rgba(255,255,255,.85);
  font-size: .9rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: background var(--transition), color var(--transition);
  text-decoration: none;
}
.offcanvas-nav ul li a:hover,
.offcanvas-nav ul li.current-menu-item > a {
  background: rgba(255,255,255,.08);
  color: var(--white);
  padding-left: 28px;
}
.offcanvas-nav ul li ul { background: rgba(0,0,0,.15); }
.offcanvas-nav ul li ul li a { padding-left: 38px; font-size: .84rem; }

.offcanvas-footer {
  padding: 16px;
  border-top: 1px solid rgba(255,255,255,.1);
  flex-shrink: 0;
}
.offcanvas-email-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 16px;
  background: var(--accent);
  color: var(--white);
  border-radius: 8px;
  font-size: .83rem;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition);
  word-break: break-all;
}
.offcanvas-email-btn:hover {
  background: #1e90b0;
  color: var(--white);
  transform: translateY(-1px);
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, #062a48 100%);
  color: var(--white);
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero > * { position: relative; }
.hero-badge {
  display: inline-block;
  background: rgba(43,167,199,.25);
  border: 1px solid rgba(43,167,199,.4);
  color: #7dd8f0;
  padding: 5px 16px;
  border-radius: 20px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .8px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero h1 {
  color: var(--white);
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.hero p {
  color: rgba(255,255,255,.8);
  font-size: 1.1rem;
  max-width: 640px;
  margin: 0 auto 36px;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── Cards ───────────────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.card-icon {
  width: 52px;
  height: 52px;
  background: var(--accent-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card-icon svg { width: 26px; height: 26px; stroke: var(--accent); fill: none; stroke-width: 1.8; }
.card h3 { margin-bottom: 10px; color: var(--primary); }
.card p { color: var(--text-muted); font-size: .93rem; }

/* ── Stats Strip ─────────────────────────────────────────── */
.stats-strip {
  background: var(--primary);
  color: var(--white);
  padding: 48px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  text-align: center;
}
.stat-item h3 {
  font-size: 2.4rem;
  color: var(--white);
  font-weight: 800;
  line-height: 1;
}
.stat-item p {
  color: rgba(255,255,255,.7);
  font-size: .85rem;
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: .8px;
}

/* ── Content Sections ────────────────────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }


/* ── Page Hero ───────────────────────────────────────────── */
.page-hero {
  background: var(--primary);
  color: var(--white);
  padding: 64px 0;
  text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: 10px; }
.page-hero .lead { color: rgba(255,255,255,.75); }

/* ── Main Content ────────────────────────────────────────── */
.page-content {
  padding: 60px 0;
}
.entry-content p,
.entry-content ul,
.entry-content ol {
  margin-bottom: 1.25rem;
}
.entry-content h2,
.entry-content h3 {
  margin-top: 2rem;
  margin-bottom: .75rem;
}

/* ── Notice Bar ──────────────────────────────────────────── */
.notice-bar {
  background: var(--accent);
  color: var(--white);
  text-align: center;
  padding: 10px 24px;
  font-size: .88rem;
  font-weight: 500;
}
.notice-bar a { color: var(--white); text-decoration: underline; }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
  background: #0f172a;
  color: rgba(255,255,255,.7);
}
.footer-main {
  padding: 56px 0 40px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2.2fr 1.4fr 1.4fr;
  gap: 48px;
}
.footer-brand .footer-logo {
  width: 60px;
  margin-bottom: 14px;
  opacity: .9;
  border-radius: 6px;
}
.footer-brand h3 {
  color: var(--white);
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
}
.footer-brand p {
  font-size: .85rem;
  line-height: 1.7;
  margin-bottom: .6rem;
}
.footer-col h4 {
  color: var(--white);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 18px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.footer-col ul li a {
  color: rgba(255,255,255,.6);
  font-size: .85rem;
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--accent); }

/* Contact list in footer */
.footer-contact-list { gap: 14px !important; }
.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: .85rem;
  line-height: 1.6;
}
.fc-icon {
  color: var(--accent);
  font-size: .5rem;
  margin-top: 6px;
  flex-shrink: 0;
}
.footer-contact-list a {
  color: rgba(255,255,255,.6);
  transition: color var(--transition);
}
.footer-contact-list a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 24px 0;
}
.footer-bottom p {
  font-size: .8rem;
  color: rgba(255,255,255,.5);
  margin-bottom: 6px;
  line-height: 1.6;
}
.footer-bottom p:last-child { margin-bottom: 0; }
.footer-bottom a { color: var(--accent); }
.footer-bottom a:hover { color: var(--white); }

/* ── Back to Top ─────────────────────────────────────────── */
#back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: background var(--transition), transform var(--transition);
  z-index: 999;
}
#back-to-top:hover {
  background: var(--accent);
  transform: translateY(-3px);
}
#back-to-top.visible { display: flex; }

/* ── Responsive ──────────────────────────────────────────── */

/* Hide hamburger on desktop, show desktop nav */
@media (min-width: 769px) {
  .nav-toggle { display: none; }
  .desktop-nav { display: block; }
}

/* Tablet — tighten nav link padding */
@media (max-width: 1080px) {
  .desktop-nav ul li a { padding: 7px 8px; font-size: .76rem; }
  .header-site-name { font-size: .92rem; }
  .header-site-tagline { display: none; }
}

/* Mobile — switch to off-canvas */
@media (max-width: 768px) {
  /* Show hamburger, hide desktop nav */
  .nav-toggle { display: flex; }
  .desktop-nav { display: none; }

  /* Header single row — logo + hamburger */
  .site-header-inner { padding-top: 10px; padding-bottom: 10px; gap: 12px; }
  .header-logo { width: 44px; height: 44px; }
  .header-site-name { font-size: .95rem; }
  .header-site-tagline { display: none; }

  /* General */
  .hero { padding: 56px 0; }
  .section { padding: 48px 0; }
  .two-col { grid-template-columns: 1fr; gap: 28px; }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-brand { grid-column: auto; }
}

@media (max-width: 480px) {
  .card-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-actions { flex-direction: column; align-items: center; }
  .header-site-name { font-size: .9rem; }
  .container { padding: 0 16px; }
}


/* ── News / Blog ────────────────────────────────────────── */
.news-section { padding: 56px 0; }
.news-intro { max-width: 760px; margin: 0 auto 36px; text-align: center; color: var(--text-muted); }

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}
.news-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.news-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.news-card-media {
  display: block;
  aspect-ratio: 16 / 9;
  background: var(--accent-light);
  overflow: hidden;
}
.news-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-card-media.is-empty {
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-weight: 700; letter-spacing: 1px; font-size: .8rem;
}
.news-card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.news-card-date { font-size: .76rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 8px; }
.news-card-title { font-size: 1.15rem; line-height: 1.35; margin-bottom: 10px; }
.news-card-title a { color: var(--primary); text-decoration: none; }
.news-card-title a:hover { color: var(--accent); }
.news-card-excerpt { color: var(--text-muted); font-size: .92rem; margin-bottom: 16px; flex: 1; }
.news-readmore { font-weight: 600; font-size: .88rem; color: var(--accent); text-decoration: none; align-self: flex-start; }
.news-readmore:hover { color: var(--primary); }

.news-empty { text-align: center; color: var(--text-muted); padding: 40px 0; }

/* Pagination */
.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 44px; flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 40px; height: 40px; padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: 8px;
  font-size: .9rem; font-weight: 600; text-decoration: none; color: var(--text);
  background: var(--white); transition: all var(--transition);
}
.pagination a:hover { border-color: var(--accent); color: var(--accent); }
.pagination .is-current { background: var(--primary); border-color: var(--primary); color: var(--white); }
.pagination .is-disabled { opacity: .4; pointer-events: none; }

/* Single post */
.news-single { padding: 48px 0 64px; }
.news-single .container { max-width: 820px; }
.news-single-back { display: inline-block; margin-bottom: 18px; font-size: .88rem; color: var(--text-muted); text-decoration: none; }
.news-single-back:hover { color: var(--accent); }
.news-single-date { font-size: .82rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 12px; }
.news-single-hero-img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: var(--radius); margin: 22px 0 30px; box-shadow: var(--shadow-sm);
}
.news-single .entry-content { font-size: 1.02rem; }

@media (max-width: 768px) {
  .news-grid { grid-template-columns: 1fr; gap: 22px; }
}
