/*
Theme Name: 400
Author: Fez
Description: A minimal WordPress theme with refined hero cards (image, icon upload, title, description, link), an image gallery slider, a mobile drawer navigation, a tabbed news section, desktop dropdown menus, an enhanced footer with a mobile quick‑action bar, improved drop‑down navigation styling and breadcrumb navigation with custom page layouts.
Version: 11.4.45 /* scope header .search to avoid WP body.search collision */

/* cspell:ignore topbar midbar navbar hotline lang modal swiper dashicons */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.vh {
  position: absolute;
  left: -9999px;
}
:root {
  --grad-start: #48897c;
  --grad-end: #48897c;
  --nav-bg: #f3f4f6;
  --border: #e6e7eb;
  --text: #0f172a;
  --muted: #6b7280;
  --white: #fff;
  --accent: #48897c;
  --drawer-accent: #2e7b65;
  --pill-bg: #fff3ee;
  --pill-bd: #ffd7c4;
  --container: 1200px;
  --radius: 8px;
  --radius-lg: 8px;
  --font: "Inter", "Segoe UI", "Calibri", sans-serif;
  --hotline-orange: #ef7d2d;
  --brand-blue: #0b5fa8; /* used for language buttons */
  --brand-blue-hover: #1373c4;

  /* Define RGB components of the accent colour for use in rgba() in
     gradients. Having a comma‑separated list allows us to build
     semi‑transparent colours without repeating numeric values. */
  --accent-rgb: 72, 137, 124;

  /* RGB of brand blue (#0b5fa8) for rgba() usage */
  --brand-blue-rgb: 11, 95, 168;

  /* Defaults for layout custom properties referenced elsewhere */
  --admin-bar-h: 0;         /* height of WP admin bar when logged in */
  --fixed-nav-h: 0;         /* computed fixed nav height for body padding */
  --fixed-mobile-h: 64px;   /* mobile fixed midbar height */
}
html {
  min-height: 100%;
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font), sans-serif;
  color: var(--text);
  line-height: 1.6;
  font-size: 14px;
  min-height: 100vh;
  height: 100%;
  display: flex;
  flex-direction: column;
}

body > header,
body > footer {
  flex-shrink: 0;
}

body > main {
  flex: 1 0 auto;
}

main.container.page-wrapper {
  flex: 1;
}
.container,
.container-fluid,
.container-sm,
.container-md,
.container-lg,
.container-xl {
  width: 100%;
  margin: 0 auto;
  padding-left: 15px;
  padding-right: 15px;
  box-sizing: border-box;
}

.container {
  max-width: 100%;
}

@media (min-width: 576px) {
  .container,
  .container-sm {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .container,
  .container-sm,
  .container-md {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .container,
  .container-sm,
  .container-md,
  .container-lg {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container,
  .container-sm,
  .container-md,
  .container-lg,
  .container-xl {
    max-width: 1140px;
  }
}

@media (min-width: 1400px) {
  .container {
    max-width: 1360px;
  }
}

.fez-topbar {
  background: linear-gradient(90deg, var(--grad-start), var(--grad-end));
  color: #fff;
  font-size: 14px;
  font-weight: 400;
  height: 36px;
  line-height: 36px;
}
.fez-topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.fez-topbar ul {
  list-style: none;
  display: flex;
  gap: 22px;
}
.fez-topbar a {
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.fez-topbar .ico {
  width: 14px;
  height: 14px;
}
.fez-topbar .ico.material-icons { width: 14px; height: 14px; font-size: 14px; line-height: 1; }
.fez-topbar .tb-hairline {
  height: 1px;
  background: #fff;
  opacity: 0.35;
}

.fez-midbar {
  background: linear-gradient(90deg, var(--grad-start), var(--grad-end));
  min-height: 96px;
  padding: 1rem 0;
  display: flex;
  align-items: center;
}
/* Header logo sizing variables (desktop default) */
.fez-header {
  --header-logo-h: 78px;
}
/* Desktop-only sticky nav with smooth slide */
@media (min-width: 960px) {
  .fez-nav {
    position: relative;
    z-index: 2;
  }
  .fez-nav--fixed {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--admin-bar-h, 0);
    transform: translateY(-100%);
    transition: transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 160ms ease, box-shadow 180ms ease;
    z-index: 998; /* below overlay/drawer */
    will-change: transform;
    /* ensure nav has a solid background when floating */
    background: #fff;
    box-shadow: none;
  }
  .fez-nav--fixed.is-shown {
    transform: translateY(0);
    box-shadow: 0 8px 24px rgba(1, 10, 26, 0.08);
  }
  /* Hide-on-scroll-down state */
  .fez-nav--fixed.is-hidden {
    transform: translateY(calc(-100% - 6px));
    box-shadow: none;
  }
  body.has-fixed-nav { padding-top: var(--fixed-nav-h, 0); }
}

/* Mobile fixed midbar as top header */
@media (max-width: 959px) {
  .fez-midbar--fixed {
    position: fixed;
    top: var(--admin-bar-h, 0);
    left: 0;
    right: 0;
    z-index: 998;
  }
  body.has-fixed-mobile { padding-top: var(--fixed-mobile-h, 64px); }
}
.mid-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex: 1;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand img,
.fez-header .custom-logo-link img,
.fez-header .site-logo img,
.fez-header img.custom-logo {
  height: auto;
  max-height: var(--header-logo-h);
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
.brand-text h1 {
  margin: 0;
  color: #fff;
  font-weight: 900;
  font-size: 40px;
  line-height: 1.05;
}
.brand-text p {
  margin: 8px 0 0;
  color: #e8eef7;
  font-size: 16px;
}

.actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.fez-header .search {
  position: relative;
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid var(--pill-bd);
  width: 250px;
  height: 44px;
  border-radius: 4px;
  padding: 0 0 0 40px; /* room for icon only; no right padding */
  transition: border-color 160ms ease, box-shadow 160ms ease, width 200ms ease, padding 200ms ease;
}
.fez-header .search:hover {
  border-color: rgba(var(--accent-rgb), 0.35);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
}
@media (min-width: 960px) {
  /* Keep width constant on focus (no expansion) */
  .fez-header .search:focus-within { width: 260px; }
}

/* Search: results page styles */
.search-header { margin: 12px 0 18px; }
.search-title { margin: 0; font-size: clamp(1.25rem, 2.4vw, 1.5rem); font-weight: 800; }
.search-sub { margin: 6px 0 12px; color: var(--muted); }
.search-again { display: flex; gap: 8px; align-items: center; }
.search-again input[type="search"] { flex: 1; min-height: 44px; border: 1px solid var(--border); border-radius: 6px; padding: 0 10px; }
.search-again .btn { min-height: 44px; padding: 0 14px; border-radius: 6px; background: var(--accent); color: #fff; border: 0; font-weight: 700; }
.search-result { padding: 14px 0; border-bottom: 1px solid #eee; }
.result-title { margin: 0 0 6px; font-size: 1.1rem; }
.result-title a { color: var(--text); text-decoration: none; }
.result-title a:hover { text-decoration: underline; }
.result-meta { margin: 0 0 6px; font-size: 0.85rem; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.result-excerpt { color: #374151; }
mark.hit { background: #fffbcc; padding: 0 2px; border-radius: 2px; }
.fez-header .search .search-submit {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 40px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fez-header .search .search-submit:focus-visible {
  outline: 2px solid rgba(var(--accent-rgb), 0.6);
  outline-offset: 2px;
}
.search-ico {
  position: absolute;
  left: 14px;
  width: 16px;
  height: 16px;
  stroke: var(--accent);
}
/* Material Icons variant inside search submit */
.search-ico.material-icons { width: 18px; height: 18px; font-size: 18px; line-height: 1; color: var(--accent); }
/* When icon is inside the submit button, center it via flex */
.fez-header .search .search-submit .search-ico {
  position: static;
  left: auto;
}
.fez-header .search .search-clear {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 14px;
  border: 0;
  background: rgba(0,0,0,0.06);
  color: #3b4a5a;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.fez-header .search .search-clear .material-icons { font-size: 18px; line-height: 1; }
.fez-header .search.is-filled .search-clear[hidden] { display: grid !important; }
.fez-header .search input {
  border: none;
  background: transparent;
  flex: 1;
  height: 100%;
  font-size: 0.95rem;
  outline: none;
  color: var(--text);
  transition: width 200ms ease, opacity 160ms ease;
  padding-right: 0; /* no extra space at end */
}
.fez-header .search input::placeholder { color: #8aa1b1; }
.fez-header .search input {
  border: none;
  background: transparent;
  flex: 1;
  height: 100%;
  font-size: 14px;
  outline: none;
}

/* Collapsed search (icon-only) — scope to mobile below */

/* Ensure consistent width on mobile and apply collapse */
@media (max-width: 959px) {
  .fez-header .search { width: 260px; flex-shrink: 0; }
  .fez-header .search.is-collapsed { width: 40px; padding: 0; }
  .fez-header .search.is-collapsed input { width: 0 !important; opacity: 0; pointer-events: none; }
  .fez-header .search.is-collapsed .search-clear {
    opacity: 0; transform: translateY(-50%) scale(0.8); pointer-events: none;
    transition: opacity 140ms ease, transform 140ms ease;
  }
}

/* Desktop: ensure collapsed state never hides content */
@media (min-width: 960px) {
  .fez-header .search.is-collapsed { width: 260px; padding: 0 0 0 40px; }
  .fez-header .search.is-collapsed input { width: auto !important; opacity: 1; pointer-events: auto; }
  .fez-header .search.is-collapsed .search-clear { opacity: 1; transform: translateY(-50%) scale(1); pointer-events: auto; }
}

/* Add right padding only when there's text (to avoid visual gap) */
.fez-header .search.is-filled input { padding-right: 28px; }

.hotline {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 243px;
  height: 44px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 0 12px;
}
.hl-ico {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  display: grid;
  place-items: center;
}
.hl-ico svg {
  width: 14px;
  height: 14px;
  stroke: #fff;
}
.hl-text span {
  display: block;
  font-size: 12px;
  color: #374151;
  line-height: 1.2;
}
.hl-text strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #111;
}

.fez-nav {
  background: var(--nav-bg);
  height: 46px;
}
.fez-nav .container,
.nav-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.menu a {
  text-decoration: none;
  color: #1f2937;
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.02em;
  padding: 10px 0;
  display: block;
}
.lang-link.active {
  font-weight: 700;
  text-decoration: underline;
}
.menu .has-sub a::after {
  content: "▾";
  font-size: 12px;
  margin-left: 8px;
  color: #6b7280;
  font-weight: 900;
}

.single .post-content {
  padding-bottom: 64px;
}

.entry-content:after {
  content: "";
  display: block;
}
.single .entry-content > :last-child {
  margin-bottom: 0;
}

.single .entry-header {
  padding-top: 24px;
  padding-bottom: 8px;
}
.single .entry-title {
  font-size: clamp(22px, 3.2vw, 32px);
  line-height: 1.2;
  margin: 0 0 6px;
}
.single .entry-meta {
  color: var(--muted);
  font-size: 12px;
}
.single .entry-meta a {
  color: inherit;
  text-decoration: none;
}
.single .entry-meta a:hover {
  text-decoration: underline;
}

.single .post-thumbnail {
  margin: 14px auto 18px;
}
.single .post-thumbnail img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}
.single .post-thumbnail .wp-caption-text {
  color: var(--muted);
  font-size: 12px;
  margin-top: 6px;
}

.single .entry-content {
  font-size: 15px;
  line-height: 1.8;
}
.single .entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;         /* consistent rounded corners for inline images */
  display: block;
  margin-bottom: 2rem;         /* breathing room below images */
}
.single .entry-content figure {
  margin: 18px 0 2rem;         /* harmonize with image spacing */
}
.single .entry-content figure img { border-radius: 4px; }
.single .entry-content figure figcaption {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 6px;
}
.single .entry-content h2 {
  font-size: 1.4rem;
  margin: 1.2em 0 0.5em;
}
.single .entry-content h3 {
  font-size: 1.2rem;
  margin: 1em 0 0.5em;
}
.single .entry-content p {
  margin: 0 0 1em;
}

/* Single post: centered reading layout (UX-friendly centering) */
.single .post-thumbnail .wp-caption-text,
.single .post-thumbnail figcaption {
  text-align: center;
}

/* Constrain line length and center blocks while keeping good legibility */
.single .entry-content > * {
  max-width: min(800px, 92vw); /* unify inner column width for text/media */
  margin-left: auto;
  margin-right: auto;
}

/* Center body text elements but keep images/figures naturally centered via margins */
.single .entry-content p,
.single .entry-content li,
.single .entry-content blockquote {
  text-align: left;            /* center column, left-align text for readability */
}
.single .entry-content ul,
.single .entry-content ol {
  list-style-position: inside;
  padding-left: 0;
}
.single .entry-content img,
.single .entry-content figure {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: min(800px, 92vw); /* keep media aligned with paragraph width */
}
.single .entry-content blockquote {
  margin: 1.25em auto;
  padding: 0.25em 0.5em;
  font-style: italic;
  color: #1f2937;
}

@media (max-width: 640px) {
  .single .entry-content > * { max-width: 100%; }
}

.single .entry-footer {
  margin-top: 18px;
  color: var(--muted);
  font-size: 12px;
}
.single .entry-footer .tags-links {
  display: inline-block;
}

.single .post-navigation {
  margin: 28px auto 0;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.single .post-navigation a {
  display: block;
  color: inherit;
  text-decoration: none;
  padding: 10px 0;
}
.single .post-navigation .nav-sub {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
.single .post-navigation .nav-title {
  display: block;
  font-weight: 600;
}

/* Page hero: centered breadcrumbs + title for a formal, modern header */
.page-hero {
  padding: clamp(28px, 4.5vw, 56px) 0 clamp(16px, 3vw, 28px);
  text-align: center;
}
.page-hero__breadcrumbs {
  margin: 0 0 8px;
}
.page-hero .breadcrumbs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px; /* requested padding for clearer separation */
}
.page-title--center { text-align: center; }
.entry-meta--center { text-align: center; }

/* Page detail reading improvements: measure, spacing, legibility */
.page-detail .entry-content {
  font-size: 16px;
  line-height: 1.85;
}
.page-detail .entry-content p,
.page-detail .entry-content ul,
.page-detail .entry-content ol,
.page-detail .entry-content blockquote,
.page-detail .entry-content h2,
.page-detail .entry-content h3,
.page-detail .entry-content h4 {
  max-width: 72ch;
  margin-left: auto;
  margin-right: auto;
}

/* -------------------------------------- */
/* Single: centered layout and hierarchy  */
/* -------------------------------------- */
/* Constrain main single-page sections without touching header/footer */
.single .page-hero .container,
.single .post-thumbnail.container,
.single .post-content.container,
.single .post-navigation.container {
  max-width: 1000px;
}

/* Alignment consistency: ensure featured image matches body column width */
.single .post-thumbnail.container {
  max-width: min(800px, 92vw);
}

.single .page-hero {
  border-bottom: 1px solid var(--border);
}
.single .entry-title {
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  line-height: 1.25;
  font-weight: 600;
  font-family: var(--font);
  color: #111;
  margin-bottom: 1rem;
  text-align: center;
}
.single .page-hero__breadcrumbs {
  /* Add extra separation from title for clearer hierarchy */
  margin-bottom: 14px;
}
/* Tweak breadcrumb hierarchy on single post hero */
.single .page-hero .breadcrumbs {
  font-size: 0.78rem;         /* slightly smaller than default 0.85rem */
  color: var(--muted);         /* reduce contrast of the trail text */
  padding: 0;                  /* remove chip-like padding to feel lighter */
}
.single .page-hero .breadcrumbs a {
  color: var(--muted);         /* reduce link contrast; keep hover for affordance */
  text-decoration: none;
}
.single .page-hero .breadcrumbs a:hover,
.single .page-hero .breadcrumbs a:focus {
  text-decoration: underline;
}
.single .entry-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;                 /* spacing via separator bullets */
  flex-wrap: wrap;
}

/* Meta separators: add a subtle bullet between items */
.single .entry-meta > span {
  display: inline-flex;
  align-items: center;
}
.single .entry-meta > span + span::before {
  content: "•";
  display: inline-block;
  color: var(--muted);
  margin: 0 8px;
  line-height: 1;
}

/* Comfortable vertical spacing if the meta wraps onto multiple lines */
@media (max-width: 640px) {
  .single .entry-meta { row-gap: 6px; }
}

/* Readable, consistent link styling inside article */
.single .entry-content a {
  color: rgb(var(--brand-blue-rgb));
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  transition: color 160ms ease, text-decoration-thickness 160ms ease;
}
.single .entry-content a:hover,
.single .entry-content a:focus {
  color: var(--brand-blue-hover);
  text-decoration-thickness: 2px;
}

/* Center paragraphs in single post content (by request) */
.single .entry-content p {
  text-align: left;
}

/* Emphasize quotes for scanning */
.single .entry-content blockquote {
  margin: 1.25em auto;
  padding: 0.75em 1em;
  background: rgba(var(--accent-rgb), 0.05);
  border-left: 3px solid var(--accent);
}

/* Tag pills for tasteful metadata */
.single .entry-footer .tags-links a {
  display: inline-block;
  margin-right: 6px;
  margin-bottom: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--pill-bg);
  border: 1px solid var(--pill-bd);
  color: var(--text);
  text-decoration: none;
  font-size: 12px;
}
.single .entry-footer .tags-links a:hover {
  border-color: var(--accent);
}

/* Navigation hover feedback */
.single .post-navigation a:hover .nav-title,
.single .post-navigation a:focus .nav-title {
  text-decoration: underline;
}

/* -------------------------------------- */
/* Archive / Blog: list and hierarchy     */
/* -------------------------------------- */
/* Archive Hero: minimal, centered, icon + title (Apple-inspired clarity) */
.archive-hero { padding: clamp(28px, 4.5vw, 56px) 0 clamp(16px, 3vw, 28px); }
.archive-hero .container { display: grid; gap: 8px; }
.archive-hero__heading { display: block; align-items: center; gap: 10px; }
.archive-hero__icon { font-size: 28px; line-height: 1; color: var(--grad-start); }
.archive-hero .archive-title { margin: 0; font-weight: 800; }
.archive-hero .archive-sub { color: var(--muted); max-width: 70ch; }

/* Narrower content width for readable lists (header/footer unaffected) */
body.archive .container.content,
body.blog .container.content {
  max-width: 1000px;
}

.archive-header { margin: 8px 0 14px; }
.archive-title {
  margin: 0;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  line-height: 1.25;
  font-weight: 800;
}
.archive-sub { color: var(--muted); margin-top: 6px; }

/* Unified post list styling (used by home, index, archives) */
.post-list { margin: 6px 0 14px; }
.post-item { padding: 14px 0; border-top: 1px solid var(--border); }
.post-item:first-of-type { border-top: 0; }
.loop-title { margin: 0 0 4px; font-size: clamp(1.15rem, 2.2vw, 1.35rem); line-height: 1.3; font-weight: 800; }
.loop-title a { color: var(--text); text-decoration: none; }
.loop-title a:hover { color: var(--accent); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 2px; }
.loop-meta { margin: 0 0 6px; font-size: .85rem; color: var(--muted); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.loop-meta .material-icons { font-size: 18px; line-height: 1; opacity: .7; }
.loop-meta .sep { opacity: .5; }
.loop-excerpt { color: #374151; }

/* Category chips: compact, touch-friendly, with Material icon */
.chip-list { display: inline-flex; align-items: center; gap: 6px; list-style: none; margin: 0 0 0 6px; padding: 0; }
.chip-list .chip a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  text-decoration: none;
  font-size: 12px;
}
.chip-list .chip a:hover { border-color: rgba(0,0,0,.2); }

.page-detail .entry-content p { margin: 0 0 1.05em; }
.page-detail .entry-content ul,
.page-detail .entry-content ol { padding-left: 1.25rem; }
.page-detail .entry-content h2 { margin: 1.4em auto 0.6em; }
.page-detail .entry-content h3 { margin: 1.2em auto 0.5em; }
.page-detail .entry-content img,
.page-detail .entry-content figure {
  max-width: 100%;
  height: auto;
}

/* Single: paragraph measure, spacing, and intro style */
.single .entry-content p {
  max-width: 800px;            /* comfortable measure for paragraphs */
  margin: 0 0 18px;            /* 16–24px gap between paragraphs */
}

/*
 * Search hero styling (v941)
 * Provides layout for the search results header at the top of the
 * search results template. Adds central alignment, muted subheading
 * and form styling consistent with the site's design system.
 */
.search-hero {
  padding: 40px 0 20px;
  text-align: center;
}
.search-hero .search-sub {
  color: var(--muted);
  margin-top: 6px;
}
.search-hero .search-form {
  margin-top: 20px;
}
.search-hero .search-form input[type="search"] {
  padding: 10px 15px;
  width: clamp(220px, 70%, 400px);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 1rem;
}
.search-hero .search-form button {
  padding: 10px 20px;
  border: none;
  background: var(--text);
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
  margin-left: 6px;
  font-size: 1rem;
}
.search-hero .search-form button:hover {
  background: var(--accent);
}
.single .entry-content > p:first-of-type {
  font-weight: 500;            /* intro emphasis */
  color: #333;                 /* slightly deeper for hierarchy */
  margin-bottom: 22px;         /* extra space before body */
}


.menu li {
  position: relative;
}

.menu > li > a:hover {
  color: var(--grad-start);
}
/* Remove underline on header/footer links; keep hover/focus concise */
.fez-header a { text-decoration: none; }
.fez-header a:is(:hover, :focus) { text-decoration: none; }

/* Ensure main nav links never underline */
.fez-nav .menu > li > a,
.fez-nav .menu li .sub-menu a { text-decoration: none; }
.fez-nav .menu > li > a:is(:hover, :focus),
.fez-nav .menu li .sub-menu a:is(:hover, :focus) { text-decoration: none; }
/* Smooth opacity transition for nav links */
.fez-nav .menu > li > a { transition: opacity 180ms ease, color 160ms ease; }
@media (min-width: 960px) {
  .fez-nav.dim-links .menu > li > a { opacity: 0.55; }
  .fez-nav.dim-links .menu > li.current-menu-item > a,
  .fez-nav.dim-links .menu > li.current_page_item > a,
  .fez-nav.dim-links .menu > li > a[aria-current="page"] {
    opacity: 1;
    font-weight: 700;
  }
  .fez-nav.dim-links .menu > li > a:hover,
  .fez-nav.dim-links .menu > li > a:focus {
    opacity: 0.9;
  }
}

.menu > li.menu-item-has-children > a::after {
  content: "";
  display: inline-block;
  /* default: point UP */
  border-bottom: 5px solid var(--text);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  margin-left: 6px;
  vertical-align: middle;
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
  transform-origin: 50% 45%;
}
.menu > li.menu-item-has-children:hover > a::after,
.menu > li.menu-item-has-children:focus-within > a::after {
  transform: rotate(180deg);
}

@media (prefers-reduced-motion: reduce) {
  .menu > li.menu-item-has-children > a::after { transition: none; }
}

.menu li .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: red;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  width: 320px;
  box-sizing: border-box;
  padding: 8px 10px;
  z-index: 1000;
  list-style: none;
}
.menu li:hover > .sub-menu,
.menu li:focus-within > .sub-menu {
  display: block;
}

.menu li.hover-intent > .sub-menu {
  display: block;
}

.menu > li.menu-item-has-children {
  position: relative;
}
.menu > li.menu-item-has-children::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 12px;
}

.menu li .sub-menu li {
  position: relative;
  padding: 0.65rem 1rem 0.65rem 2.5rem;
  font-size: 14px;
  font-weight: 400;
  color: var(--text);
}
.menu li .sub-menu li + li {
  border-top: 1px solid #f0f0f0;
}
.menu li .sub-menu li > a {
  color: inherit;
  text-decoration: none;
  display: block;
  width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}
.menu li .sub-menu li > a:hover,
.menu li .sub-menu li > a:focus {
  color: var(--grad-start);
}

.menu li .sub-menu li::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background-color: var(--grad-start);
}
.menu li .sub-menu li.menu-item-has-children::before {
  content: "";
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 6px solid var(--grad-start);
  background: none;
  border-radius: 0;
}

.breadcrumbs {
  font-size: 0.85rem;
  margin-bottom: 1rem;
  color: var(--muted);
}
.breadcrumbs a {
  color: var(--grad-start);
  text-decoration: none;
}
.breadcrumbs a:hover {
  text-decoration: underline;
}
.breadcrumb-sep {
  margin: 0 0.25rem;
  color: var(--muted);
}
.breadcrumb-current {
  color: var(--text);
}
.page-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text);
}
.page-content p {
  margin-bottom: 1rem;
  line-height: 1.6;
  color: var(--text);
}
.entry-content {
  display: flex;
  justify-content: center;
  text-align: center;
}
.btn-360 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100px;
  height: 28px;
  padding: 0;
  background: var(--accent);
  color: #fff;
  border-radius: 4px;
  font-weight: 700;
  font-size: .75rem;
  line-height: 1;
  border-image-repeat: stretch;
  border-image-source: none;
  border-left-color: rgba(0, 0, 0, 0);
  border-left-style: solid;
  border-left-width: 3px;
  border-right-color: rgba(0, 0, 0, 0);
  border-right-style: solid;
  border-right-width: 3px;
  border-top-color: rgba(0, 0, 0, 0);
  border-top-style: solid;
  border-top-width: 3px;
  box-shadow: rgba(0, 0, 0, 0) 0px 0px 0px 2px inset;
  box-sizing: border-box;
  text-decoration: none;
  transition:
          background 0.2s ease,
          opacity 0.2s ease;
}
.btn-360 svg {
  stroke: #fff;
  width: 14px;
  height: 14px;
}
.btn-360 .material-icons { font-size: 20px; line-height: 1; }
.btn-360:hover {
background:  var(--brand-blue);
}

@media (prefers-reduced-motion: no-preference) {
  a,
  .btn-360,
  .fez-header .search {
    transition:
            opacity 0.15s,
            box-shadow 0.15s;
  }
}

@media (max-width: 1200px) {
  .fez-header .search {
    width: 360px;
  }
}

@media (max-width: 959px) {
  .fez-topbar {
    display: none !important;
  }
  .fez-midbar {
    min-height: 64px;
    height: 64px;
    padding: 0;
  }
  /* Smaller logo height on mobile */
  .fez-header { --header-logo-h: 36px; }
  .mid-flex {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 10px;
    height: 100%;
  }
  .brand-text {
    display: none;
  }
  .fez-header .search {
    display: none;
  }
  .actions {
    justify-content: end;
  }
  .hotline {
    justify-self: end;
    height: 40px;
    min-width: 190px;
    width: auto;
    padding: 0 12px;
    border: 0;
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    white-space: nowrap;
  }
  .hl-ico {
    background: var(--hotline-orange);
  }
  .hl-text span {
    font-size: 12px;
    color: #334155;
  }
  .hl-text strong {
    font-size: 16px;
    font-weight: 600;
    color: #0b0b0b;
  }
  .brand img {
    height: auto;
    max-height: var(--header-logo-h);
    width: auto;
    max-width: 100%;
  }
  .brand {
    gap: 8px;
  }

  /* Logo sizing for mobile uses same rules as global via --header-logo-h */

  .actions {
    gap: 10px;
  }
  .fez-burger .material-icons { font-size: 24px; line-height: 1; color: var(--white); }

  /* Footer brand sizing */
  .site-footer .f-brand {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 12px;
  }
  .site-footer .f-brand .custom-logo-link,
  .site-footer .f-brand img.custom-logo {
    display: inline-block;
  }
  .site-footer .f-brand .custom-logo-link img,
  .site-footer .f-brand img.custom-logo {
    height: auto;
    max-height: var(--footer-logo-h);
    width: auto;
    max-width: 100%;
    object-fit: contain;
    filter: saturate(0.95) contrast(1.05);
  }
  .site-footer .f-brand .tagline {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.4;
  }

  .fez-burger {
    appearance: none;
    border: 0;
    background: transparent;
    padding: 6px;
    width: 36px;
    height: 36px;
    display: inline-grid;
    gap: 6px;
    border-radius: 8px;
    cursor: pointer;
  }
  .fez-burger .line { display: block; width: 20px; height: 2px; background: var(--white); border-radius: 2px; }
}

@media (min-width: 960px) {
  .fez-burger {
    display: none !important;
  }
  #primary-menu {
    display: flex;
    flex-direction: row;
    gap: 28px;
    padding: 0;
  }
  .hotline {
    height: 44px;
    min-width: 243px;
    border: 1px solid #eee;
    box-shadow: none;
  }
  .hl-ico {
    background: var(--accent);
  }
}
@media (max-width: 959px) {
  .fez-nav {
    display: none !important;
  }
}

.site-footer {
  color: #fff;
  font-size: 15px;
  line-height: 1.6;
}

.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:is(:hover, :focus) { text-decoration: none; }

.site-footer .footer-container {
  display: grid;
  gap: 0;
}

/* Mobile Location strip (above footer, mobile-only) */
.mobile-location-strip {
  display: none;
}
@media (max-width: 959px) {
  .mobile-location-strip {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #fff;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }
  .mobile-location-strip__icon { color: var(--grad-start); font-size: 22px; line-height: 1; }
  .mobile-location-strip__text { display: grid; gap: 2px; }
  .mobile-location-strip__title { font-size: 14px; line-height: 1.2; color: var(--text); }
  .mobile-location-strip__address { font-size: 12px; line-height: 1.2; color: var(--muted); display: block; max-width: 60vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mobile-location-strip__btn {
    display: inline-flex; align-items: center; justify-content: center;
    height: 34px; padding: 0 10px;
    border-radius: 8px; background: var(--accent); color: #fff; text-decoration: none; font-weight: 700; font-size: 12px;
  }
}

/* Search page layout & filters */
.search-header { margin: 1rem 0 1.25rem; }
.search-title { margin: 0 0 .25rem; }
.search-sub { color: var(--muted); margin: 0 0 .75rem; }
.search-again { display: flex; gap: 8px; align-items: center; margin: .5rem 0 .75rem; }
.search-again input[type="search"] { flex: 1; min-width: 160px; height: 40px; padding: 0 10px; border: 1px solid var(--border); border-radius: 6px; }
.search-again .btn { min-height: 40px; padding: 0 14px; border-radius: 6px; background: var(--accent); color: #fff; border: 0; font-weight: 700; }
.search-filters { margin: .5rem 0 1rem; }
.search-filters .filters-row { display: grid; grid-template-columns: 1fr; gap: 8px; }
.search-filters select, .search-filters input[type="date"] { width: 100%; height: 38px; padding: 0 10px; border: 1px solid var(--border); border-radius: 6px; }
.search-filters .btn { height: 38px; border-radius: 6px; background: var(--accent); color: #fff; border: 0; font-weight: 700; }
@media (min-width: 768px) {
  .search-filters .filters-row { grid-template-columns: 160px 220px 1fr 1fr auto; align-items: end; }
}
.search-result { padding: 12px 0; border-top: 1px solid var(--border); }
.search-result:first-of-type { border-top: 0; }
.result-title { margin: 0 0 4px; font-size: 1.05rem; }
.result-meta { color: var(--muted); font-size: .85rem; display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }
.result-excerpt { color: var(--text); }
.hit { background: rgba(var(--accent-rgb), 0.25); padding: 0 2px; border-radius: 2px; }

.site-footer .footer-section {
  padding: 0;
}

.site-footer .f-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.site-footer .f-brand .custom-logo-link img,
.site-footer .f-brand img.custom-logo {
  height: auto;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: saturate(0.95) contrast(1.05);
}

.site-footer .footer-tagline {
  margin: 0;
  line-height: 1.6;
}

.site-footer .footer-accordion {
  display: block;
}

.site-footer .footer-collapsible {
  border: 0;
  padding: 0;
  background: none;
}

.site-footer .footer-heading {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.95);
  transition: background 160ms ease;
  border-radius: 8px;
}

.site-footer .footer-heading-text {
  flex: 1;
  display: inline-flex;
  align-items: center;
}

.site-footer .footer-heading-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  transition: transform 180ms ease;
}

.site-footer .footer-heading-icon::before {
  content: '+';
  font-size: 1.5rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.65);
  transition: color 160ms ease;
}

.site-footer .footer-list,
.site-footer .footer-accordion .contact-list {
  margin: 0;
  list-style: none;
  display: grid;
  gap: 4px;
}

.site-footer .footer-contact-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: start;
}

.site-footer .footer-accordion .contact-list {
  gap: 8px;
}

/* Footer contact list: ensure compact icons and tidy alignment */
.site-footer .footer-accordion .contact-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.site-footer .contact-icon {
  width: 20px;
  height: 20px;
  border-radius: 0;
  background: transparent;
  display: inline-flex;
  place-items: center;
  color: rgba(255, 255, 255, 0.9);
}
.site-footer .contact-icon.material-icons {
  font-size: 20px;
  line-height: 1;
  width: 20px;
  height: 20px;
}
.site-footer .contact-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
}

.site-footer .footer-accordion .contact-list .footer-address {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: rgba(255, 255, 255, 0.88);
}

.site-footer .footer-accordion .contact-list .footer-address .contact-icon {
  font-size: 1.2rem;
  line-height: 1;
  width: auto;
  height: auto;
}

.site-footer .footer-accordion .contact-list .footer-address .contact-text p {
  margin: 0;
}

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

.site-footer .footer-social li {
  margin: 0;
}

.site-footer .footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.site-footer .footer-social .footer-social-icon {
  width: 10px;
  height: 10px;
  display: inline-block;
  object-fit: contain;
}
@media (min-width: 960px) {
  .site-footer .footer-social { gap: 8px; }
  .site-footer .footer-social a { opacity: 0.95; transition: opacity 150ms ease, transform 150ms ease; }
  .site-footer .footer-social a:hover { opacity: 1; transform: translateX(2px); }
  .site-footer .footer-contact-block { grid-template-columns: 1fr 1fr; gap: 20px; }
}

/* Ensure grid children fill width and align nicely */
.site-footer .footer-contact-block .contact-list,
.site-footer .footer-contact-block .footer-social-nav {
  margin: 0;
}
.site-footer .footer-contact-block .footer-social-nav {
  display: block;
}

.site-footer .footer-social a:hover,
.site-footer .footer-social a:focus {
  color: rgba(255, 255, 255, 1);
}

.site-footer .helpful-list {
  gap: 0;
}

.site-footer .footer-helpful {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.site-footer .footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer .footer-contact-heading {
  margin: 0;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.site-footer .footer-list a,
.site-footer .footer-accordion .contact-list a {
  display: flex;
  align-items: center;
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
}

.site-footer .footer-list a:hover,
.site-footer .footer-accordion .contact-list a:hover {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
}



.site-footer .footer-accordion a:hover .contact-icon {
  color: rgba(255, 255, 255, 0.92);
}

.site-footer .footer-bottom {
  text-align: center;
}

.site-footer .footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.site-footer .footer-bottom small {
  color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 959px) {

  .site-footer .footer-container {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .site-footer .footer-section + .footer-section {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 0;
  }

  .site-footer .f-brand {
    padding: 0 16px;
  }

  .site-footer .footer-tagline {
    display: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
  }

  .site-footer .footer-heading {
    min-height: 48px;
    padding: 0 16px;
    cursor: pointer;
  }

  .site-footer .footer-heading:hover {
    background: rgba(255, 255, 255, 0.04);
  }

  .site-footer .footer-heading:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.85);
    outline-offset: 4px;
  }

  .site-footer .footer-collapsible[open] .footer-heading-icon {
    transform: rotate(180deg);
  }

  .site-footer .footer-collapsible[open] .footer-heading-icon::before {
    content: '−';
    color: rgba(255, 255, 255, 0.92);
  }

  .site-footer .footer-list,
  .site-footer .footer-accordion .contact-list {
    padding: 12px 16px 16px;
  }
  .site-footer .footer-helpful {
    gap: 0;
  }

  .site-footer .footer-list a,
  .site-footer .footer-accordion .contact-list a {
    min-height: 44px;
  }

  .site-footer .footer-accordion .contact-icon {
    width: 18px;
    height: 18px;
  }

  .site-footer .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 16px 16px 24px;
    font-size: 0.85rem;
    opacity: 0.7;
  }
}

@media (min-width: 640px) and (max-width: 959px) {
  .site-footer .footer-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }
}

@media (min-width: 960px) {
  .site-footer {
    background: #397e6d;
    color: #fff;
    padding: 40px 0 0 0;
  }

  .site-footer .footer-container {
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    max-width: 1200px;
    margin: 0 auto;
  }

  .site-footer .footer-section + .footer-section {
    border-top: none;
    padding-top: 0;
  }

  .site-footer .f-brand {
    padding: 0;
    gap: 16px;
  }

  .site-footer .f-brand .custom-logo-link img,
  .site-footer .f-brand img.custom-logo {
    max-height: 64px;
  }

  .site-footer .footer-tagline {
    display: block;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
    max-width: 320px;
  }

  .site-footer .footer-heading {
    padding: 0;
    min-height: auto;
    cursor: default;
    background: none;
    gap: 6px;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.86);
  }

  .site-footer .footer-heading-icon {
    display: none;
  }

  .site-footer .footer-list,
  .site-footer .footer-accordion .contact-list {
    padding: 0;
  }
  .site-footer .footer-helpful {
    gap: 0;
  }

  .site-footer .footer-contact-heading {
    margin: 0;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.68);
  }

  .site-footer .footer-list a,
  .site-footer .footer-accordion .contact-list a {
    padding: 0;
    font-size: 0.95rem;
    min-height: 38px;
    color: rgba(255, 255, 255, 0.82);
  }

  .site-footer .footer-accordion .contact-icon {
    width: 20px;
    height: 20px;
    color: rgba(255, 255, 255, 0.75);
  }

  .site-footer .footer-accordion a:hover .contact-icon {
    color: rgba(255, 255, 255, 0.92);
  }

  .site-footer .footer-contact-heading {
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.68);
  }

  .site-footer .footer-contact {
    gap: 12px;
  }

  .site-footer .footer-bottom {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    opacity: 1;
    margin-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    /* Desktop spec: height 60px, centered, 12px padding inside bar */
    height: 60px;
    box-sizing: border-box;
    padding: 12px 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

.fez-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(140% 140% at 100% -10%, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 45%), rgba(5, 14, 31, 0.76);
  backdrop-filter: saturate(120%) blur(3px);
  -webkit-backdrop-filter: saturate(120%) blur(3px);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease;
}
.drawer-open .fez-overlay {
  opacity: 1;
  pointer-events: auto;
}
.fez-overlay[hidden] {
  display: none !important;
}
.fez-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(80vw, 360px);
  max-width: 420px;
  background: var(--accent);
  color: #fff;
  z-index: 1000;
  padding: 1.5rem 1.5rem 2rem;
  transform: translateX(-110%);
  opacity: 0;
  transition: transform 320ms cubic-bezier(0.33, 1, 0.68, 1), opacity 220ms ease;
  overflow-y: auto;
  overflow-x: hidden; /* prevent horizontal overflow on small viewports */
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: 0 24px 48px rgba(1, 10, 26, 0.5);
  scrollbar-width: thin;
  font-size: 0.95rem;
  line-height: 1.5;
}
.fez-drawer::-webkit-scrollbar {
  width: 6px;
}
.fez-drawer::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
}
.drawer-open .fez-drawer {
  transform: translateX(0);
  opacity: 1;
}
.drawer-header {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.drawer-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.drawer-title {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  color: rgba(255, 255, 255, 0.75);
}
.drawer-brand img {
  max-height: var(--header-logo-h);
  max-width: 100%;
  width: 200px;
  height: auto;
}
.drawer-close {
  position: relative;
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.drawer-close::before,
.drawer-close::after {
  content: none;
}
.drawer-close .material-icons { font-size: 22px; line-height: 1; }
.drawer-close:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.32);
  transform: translateY(-1px);
}
.drawer-close:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 3px;
}
.drawer-search {
  display: grid;
  gap: 0.75rem;
}
.drawer-search-label {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}
.drawer-search-field {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.25rem 0.25rem 0.25rem 0.3rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 6px;
  background: #fff;
  min-height: 52px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.drawer-search-field:focus-within {
  border-color: rgba(46, 123, 101, 0.85);
  box-shadow: 0 0 0 2px rgba(46, 123, 101, 0.28);
}
.drawer-search input {
  flex: 1;
  border: 0;
  background: transparent;
  color: #0f172a;
  font-size: 0.95rem;
  min-height: 44px;
  padding: 0 0.75rem 0 0.25rem;
}
.drawer-search input:focus {
  outline: none;
}
.drawer-search-btn {
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.9), var(--drawer-accent));
  border: none;
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  padding: 0;
  flex-shrink: 0;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.drawer-search-btn:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 12px rgba(3, 12, 28, 0.32);
}
.drawer-search-btn:focus-visible {
  outline: 2px solid rgba(46, 123, 101, 0.85);
  outline-offset: 4px;
}
.drawer-search-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
}
.drawer-search-btn .material-icons { font-size: 18px; line-height: 1; }
.drawer-nav {
  display: flex;
  flex-direction: column;
}
.drawer-nav .drawer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}
.drawer-nav .drawer-menu > li + li {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.drawer-nav .drawer-menu a {
  display: block;
  padding: 0.85rem 0;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  min-height: 44px;
  line-height: 1.3;
  transition: color 160ms ease;
}
.drawer-nav .drawer-menu a:hover,
.drawer-nav .drawer-menu a:focus {
  color: rgba(255, 255, 255, 0.85);
}
.drawer-nav .drawer-menu .menu-item-has-children > a {
  position: relative;
  padding-right: 2.2rem;
}
.drawer-nav .drawer-menu .menu-item-has-children > a::after {
  content: "";
  border: solid rgba(255, 255, 255, 0.7);
  border-width: 0 2px 2px 0;
  display: block;
  width: 8px;
  height: 8px;
  transform: translateY(-50%) rotate(45deg);
  position: absolute;
  top: 50%;
  right: 0.75rem;
  transition: transform 200ms ease, border-color 200ms ease;
}
.drawer-nav .drawer-menu .menu-item-has-children.open > a {
  color: rgba(255, 255, 255, 0.9);
}
.drawer-nav .drawer-menu .menu-item-has-children.open > a::after {
  transform: translateY(-50%) rotate(-135deg);
  border-color: rgba(var(--accent-rgb), 0.85);
}
.drawer-nav .drawer-menu .sub-menu {
  display: none;
  list-style: none;
  padding-left: 1rem;
  margin-bottom: 0.75rem;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}
.drawer-nav .drawer-menu .menu-item-has-children.open > .sub-menu {
  display: block;
}
.drawer-nav .drawer-menu .sub-menu a {
  font-size: 0.9rem;
  padding: 0.6rem 0;
  color: rgba(255, 255, 255, 0.78);
}
.drawer-utilities {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.drawer-section-title {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}
.contact-list {
  margin: 0;
  padding: 0;
}
.contact-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 0.5rem;
}
.contact-label:not(:first-of-type) {
  margin-top: 1rem;
}
.contact-values {
  margin: 0 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.contact-values:last-of-type {
  margin-bottom: 0;
}
.contact-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
  min-height: 44px;
  line-height: 1.3;
  transition: transform 160ms ease, color 160ms ease;
}
.contact-link:hover {
  color: rgba(255, 255, 255, 0.88);
  transform: translateX(2px);
}
.contact-link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 3px;
}
.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.contact-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
}
/* Material Icons inside drawer contact icon */
.drawer-utilities .contact-icon .material-icons { font-size: 20px; line-height: 1; }
.contact-text {
  font-size: 0.95rem;
}
.drawer-utilities .lang-switch {
  display: flex;
  gap: 0.75rem;
}
.drawer-utilities .lang-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.9rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 0.9rem;
  text-decoration: none;
  min-height: 44px;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}
.drawer-utilities .lang-link:hover {
  color: rgba(255, 255, 255, 0.9);
}
.drawer-utilities .lang-link.active,
.drawer-utilities .lang-link[aria-current="true"] {
  background: rgba(var(--accent-rgb), 0.18);
  border-color: rgba(var(--accent-rgb), 0.45);
}
.drawer-utilities .lang-link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 3px;
}
.drawer-utilities .social-icons {
  display: flex;
  gap: 0.75rem;
}
.drawer-utilities .social-link {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  color: #fff;
  display: grid;
  place-items: center;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.drawer-utilities .social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
@media (prefers-reduced-motion: reduce) {
  .fez-overlay,
  .fez-drawer,
  .drawer-close,
  .drawer-search-btn,
  .drawer-nav .drawer-menu .menu-item-has-children > a::after,
  .drawer-utilities .lang-link,
  .drawer-utilities .social-link {
    transition: none !important;
  }
}
@media (max-width: 767px) {
  .fez-drawer {
    width: 80vw;             /* 50% of viewport width */
    max-width: none;         /* honor exact 50vw */
    padding: 1rem 1rem 1.25rem; /* tighter padding for narrow panel */
  }
  /* Ensure search fills drawer width, avoid overflow */
  .drawer-search,
  .drawer-search-field { width: 100%; max-width: 100%; }
  .drawer-search input { min-width: 0; }
  .drawer-header { gap: 0.75rem; }
  .drawer-header-bar { display: flex; align-items: center; justify-content: space-between; }
  .drawer-title { font-size: 1rem; margin: 0; }
  .drawer-brand img { width: min(60%, 180px); height: auto; }

  .drawer-search { gap: 0.5rem; }
  .drawer-search-field { padding: 0.25rem 0.5rem; min-height: 46px; gap: 0.5rem; }
  .drawer-search input { min-height: 38px; font-size: 0.95rem; }
  .drawer-search-btn { width: 40px; height: 40px; }

  .drawer-nav .drawer-menu > li > a { padding: 0.8rem 0; font-weight: 600; }
  .drawer-nav .drawer-menu .sub-menu a { padding: 0.55rem 0; font-size: 0.92rem; opacity: 0.95; }

  .drawer-utilities { gap: 0.9rem; }
  .drawer-section-title { font-size: 0.7rem; letter-spacing: 0.12em; }
  .contact-link { min-height: 40px; gap: 10px; }
  .drawer-utilities .lang-link { min-height: 40px; padding: 0.45rem 0.8rem; }
  .drawer-utilities .social-link { width: 40px; height: 40px; }
}
@media (min-width: 768px) {
  .fez-burger {
    display: none;
  }
  .fez-drawer {
    display: none !important;
  }
  .fez-overlay {
    display: none !important;
  }
}

.fez-burger {
  appearance: none;
  position: relative;
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  border-radius: 10px;
  cursor: pointer;
}
.fez-burger .material-icons { font-size: 26px; line-height: 1; color: #fff; }
.fez-burger .line {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition:
          transform 200ms ease,
          opacity 150ms ease;
}

.drawer-open .fez-burger .line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.drawer-open .fez-burger .line:nth-child(2) {
  opacity: 0;
}
.drawer-open .fez-burger .line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.top-slider {
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
}
/* Limit the top slider to the 1344×624 desktop spec while keeping it responsive */
.top-slider .swiper {
  /* Full‑bleed: span the entire viewport width */
  width: 100vw;
  aspect-ratio: 1344 / 624; /* keep designed proportion responsively */
  height: 400px;
  border-radius: 0;
  overflow: hidden;
}
.top-slider .swiper-slide {
  position: relative;
}
.top-slider .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.top-slider .swiper-pagination {
  bottom: 12px !important;
}
.top-slider .swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.9);
  opacity: 0.7;
}
.top-slider .swiper-pagination-bullet-active {
  background: #fff;
  opacity: 1;
}

/* Inline language switcher overlay for sliders */
.top-slider .lang-switch--overlay,
.hero-slider .lang-switch--overlay {
  position: absolute;
  top: 12px;
  right: min(12px, 3vw);
  display: flex;
  gap: 0.5rem;
  z-index: 5;
}
.lang-switch--overlay .lang-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0.4rem 0.8rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  background: rgba(0, 0, 0, 0.35);
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}
.lang-switch--overlay .lang-link:hover {
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.5);
}
.lang-switch--overlay .lang-link.active,
.lang-switch--overlay .lang-link[aria-current="true"] {
  background: rgba(var(--accent-rgb), 0.25);
  border-color: rgba(var(--accent-rgb), 0.6);
}
.lang-switch--overlay .lang-link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 3px;
}

/* Center the switcher on the Top Slider */
.top-slider .lang-switch--overlay {
  top: 50%;
  left: 50%;
  right: auto;
  transform: translate(-50%, -50%);
}

.hero-full-slider {
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
  color: #fff;
}
.hero-full-slider .swiper {
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.hero-full-slider .swiper-slide {
  position: relative;
}
.hero-full-slider .hero-media {
  position: absolute;
  inset: 0;
}
.hero-full-slider .hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-full-slider .hero-overlay {
  position: absolute;
  inset: 0;
  /* Mix brand blue and accent for a cohesive hero tint */
  background: linear-gradient(
          180deg,
          rgba(var(--brand-blue-rgb), 0.26) 0%,
          rgba(var(--accent-rgb), 0.4) 55%,
          rgba(var(--accent-rgb), 0.52) 100%
  );
}
.hero-full-slider .hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.hero-full-slider .hero-inner {
  text-align: center;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1rem;
}
.hero-full-slider .hero-title {
  font-size: clamp(1.5rem, 4.8vw, 3rem);
  line-height: 1.1;
  margin: 0 0 0.5rem;
  font-weight: 800;
}
.hero-full-slider .hero-excerpt {
  font-size: clamp(0.95rem, 2.2vw, 1.25rem);
  margin: 0 0 1rem;
  opacity: 0.95;
}
.hero-full-slider .hero-cta {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.hero-full-slider .hero-cta:hover {
  background: rgba(255, 255, 255, 0.26);
}
.hero-full-slider .swiper-pagination {
  bottom: 14px !important;
}
.hero-full-slider .swiper-button-prev,
.hero-full-slider .swiper-button-next {
  color: #fff;
  width: 46px;
  height: 46px;
}
.hero-full-slider .swiper-button-prev::after,
.hero-full-slider .swiper-button-next::after {
  font-size: 22px;
}

.hero-full-slider__inner {
  width: clamp(320px, 96vw, 1600px);
  max-width: 1600px;
  margin: 0 auto;
  height: 520px;
  border-radius: 0;
  overflow: hidden;
}
@media (min-width: 768px) {
  .hero-full-slider__inner {
    height: 700px;
  }
}
@media (min-width: 1200px) {
  .hero-full-slider__inner {
    min-width: 1200px;
  }
}
@media (min-width: 1280px) {
  .hero-full-slider__inner {
    height: 880px;
  }
}

/* Hide hero Read more on mobile */
@media (max-width: 959px) {
  .hero-full-slider .hero-cta,
  .hero-slider .feature-link { display: none !important; }
}

.right-bar {
  position: fixed;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
}
.right-bar .right-bar-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.right-bar .right-bar-list > li {
  list-style: none;
}
.right-bar .icon-con {
  position: relative;
}
.right-bar .list-item {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  text-decoration: none;
}
.right-bar .list-item img {
  width: 18px;
  height: 18px;
  display: block;
}
.right-bar .lb-dot {
  width: 8px;
  height: 8px;
  background: #333;
  border-radius: 50%;
  display: block;
}
.right-bar .icon-con:hover .list-item {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}
.right-bar .text {
  position: absolute;
  top: 50%;
  right: 56px;
  transform: translateY(-50%);
  background: rgba(17, 24, 39, 0.96);
  color: #fff;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition:
          opacity 0.15s ease,
          transform 0.15s ease;
}
.right-bar .icon-con:hover .text {
  opacity: 1;
  transform: translateY(-50%) translateX(-2px);
}

@media (max-width: 959px) {
  .right-bar {
    display: none;
  }
}
.fixed-nav {
  position: fixed;
  top: 40%;
  left: 0;
  z-index: 9999;
  background: #fff;
  padding: 10px;
  border-radius: 0 12px 12px 0;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}
.left-bar-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/*
 * Hero slider (consolidated)
 *
 * Previous iterations layered several conflicting rule sets that hard-coded
 * column counts and card dimensions. Those overrides caused the slider to
 * overflow or squash on narrow devices. The declarations below collapse the
 * styling into a single mobile-first definition so Swiper and CSS Grid can
 * size cards naturally.
 */
.hero-slider {
  position: relative;
  padding: clamp(1.5rem, 4vw, 2.5rem) 0;
  color: #fff;
  font-family: var(--font), sans-serif;
  /* Scoped card variables for consistent spacing and sizing */
  --hero-card-pad: 16px;
  --hero-icon-size: 40px;
}

.hero-slider .container {
  width: 100%;
}

.hero-slider .cards-grid {
  display: grid;
  width: 100%;
  gap: clamp(12px, 3vw, 24px);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.hero-slider .feature-item {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #000;
  color: inherit;
  aspect-ratio: 3 / 4;
  min-height: 260px;
  will-change: transform, box-shadow;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
}

.hero-slider .feature-item::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  /* Blend brand blue into accent tint from top to bottom */
  background: linear-gradient(
          to bottom,
          rgba(var(--brand-blue-rgb), 0.18) 0%,
          rgba(var(--accent-rgb), 0.35) 50%,
          rgba(var(--accent-rgb), 0.75) 100%
  );
}

.hero-slider .feature-item:hover,
.hero-slider .feature-item:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

.hero-slider .feature-item-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-slider .feature-details {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  /* Ensure equal internal padding and reserve space for the icon */
  padding: var(--hero-card-pad);
  padding-top: calc(var(--hero-card-pad) + var(--hero-icon-size) + 8px);
  gap: 0.6rem;
  /* Mixed brand overlay: brand blue near content, fading to accent */
  background: linear-gradient(
          to top,
          rgba(var(--grad-start), 0.58) 12%,
          rgba(var(--accent-rgb), 0.45) 40%,
          rgba(var(--grad-end), 0) 70%
  );
}

/* Unify icon placement and sizing: top-left, 16px from edges */
.hero-slider .feature-details .icon-box,
.hero-slider .feature-details .feature-icon {
  position: absolute;
  top: var(--hero-card-pad);
  left: var(--hero-card-pad);
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--hero-icon-size);
  height: var(--hero-icon-size);
  pointer-events: none; /* keep whole card clickable */
}

.hero-slider .feature-details .icon-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-slider .feature-details .feature-icon {
  font-size: var(--hero-icon-size);
  line-height: 1;
}

.hero-slider .feature-title {
  margin: 0;
  /* Improve legibility across devices; prefer Calibri if available */
  font-family: Calibri, var(--font), -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: clamp(1rem, 2.2vw, 1.125rem); /* ~16px → 18px */
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.3;
}

.hero-slider .feature-title a {
  color: inherit;
  text-decoration: none;
}

.hero-slider .feature-title a:hover,
.hero-slider .feature-title a:focus {
  text-decoration: underline;
}

.hero-slider .feature-desc {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(0.85rem, 2.2vw, 1rem);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-slider .feature-link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.45rem;
  padding: 0.45rem 0.75rem;
  min-height: 32px;
  background: var(--accent); /* #48897c */
  color: #fff;
  border: 1px solid rgba(0, 0, 0, 0);
  border-radius: 8px;
  font-family: Calibri, var(--font), -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  line-height: 1;
  font-weight: 400;
  box-sizing: border-box;
  text-transform: none;
  text-decoration: none;
}

.hero-slider .feature-link:hover,
.hero-slider .feature-link:focus {
  background: var(--drawer-accent); /* slightly deeper shade for hover */
  color: #fff;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.22);
  cursor: pointer;
  transform: translateY(-1px);
}

.hero-slider .feature-link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.95);
  outline-offset: 2px;
}

@media (max-width: 600px) {
  .hero-slider {
    padding: 1.25rem 0;
  }

  .hero-slider .cards-grid {
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  .hero-slider .feature-item {
    min-height: 220px;
  }

  .hero-slider .feature-desc {
    font-size: 0.8rem;
    -webkit-line-clamp: 2;
  }

  .hero-slider .feature-link {
    font-size: 0.75rem;
  }
}

@media (max-width: 600px) {
  .hero-slider .cards-grid {
    grid-template-columns: repeat(2, 1fr); /* хоёр багана */
    gap: 12px;
  }
  .hero-slider .feature-item {
    aspect-ratio: 3 / 4;
    min-height: auto;
    width: 100%;
    height: auto;
  }
}

/* Language selection modal (compact, centered, responsive) */
body.lang-modal-open { overflow: hidden; }
.lang-modal[hidden] { display: none !important; }
.lang-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 200ms cubic-bezier(0.16, 1, 0.3, 1);
}
.lang-modal.is-visible { opacity: 1; }
.lang-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.44); /* slight refinement */
  opacity: 0;
  transition: opacity 200ms cubic-bezier(0.16, 1, 0.3, 1);
}
.lang-modal.is-visible .lang-modal__backdrop { opacity: 1; }
.lang-modal__dialog {
  position: relative;
  z-index: 1;
  width: clamp(300px, 90vw, 380px); /* target ~360px */
  min-height: 190px; /* target ~200px */
  background: #015770; /* requested background */
  color: #fff;
  border-radius: 12px; /* 8–12px rounded */
  box-shadow: 0 16px 48px rgba(0,0,0,0.22);
  padding: 18px 18px 22px;
  outline: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 200ms cubic-bezier(0.16, 1, 0.3, 1), transform 200ms cubic-bezier(0.16, 1, 0.3, 1);
}
.lang-modal.is-visible .lang-modal__dialog { opacity: 1; transform: translateY(0); }
.lang-modal__header { display: flex; align-items: center; justify-content: space-between; }
.lang-modal__title { margin: 0; font-size: 19px; font-weight: 800; color: #fff; }
.lang-modal__close {
  margin-left: 12px;
  width: 32px; height: 32px;
  border-radius: 16px;
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.35);
  cursor: pointer;
  line-height: 1; display: inline-flex; align-items: center; justify-content: center;
}
.lang-modal__desc { margin: 8px 0 16px; color: rgba(255,255,255,0.85); font-size: 15px; }
.lang-modal__actions { display: grid; grid-template-columns: auto auto; gap: 12px; justify-content: center; align-items: center; }
.lang-modal__btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  width: 136px; height: 46px; /* consistent button size */
  border-radius: 10px;
  text-decoration: none; font-weight: 700; letter-spacing: 0.02em;
  border: 1px solid var(--brand-blue);
  color: #fff; background: var(--brand-blue);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.lang-modal__btn:hover, .lang-modal__btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  background: var(--brand-blue-hover);
  color: #fff;
  border-color: var(--brand-blue-hover);
}
.lang-flag { font-size: 18px; line-height: 1; }
@media (max-width: 360px) {
  .lang-modal__dialog { width: 92vw; }
  .lang-modal__actions { grid-template-columns: 1fr; }
  .lang-modal__btn { width: 100%; }
}
.contact-list {
  gap: 0 !important;
  padding: 0 !important;
}
.site-footer .footer-accordion .contact-list .contact-social {
  display: flex;
  align-items: center;
  gap: 10px;
}
.site-footer .footer-accordion .contact-list .contact-social .contact-label {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
  min-width: 84px;
}
.site-footer .footer-accordion .contact-list .contact-social .footer-social {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0;
}
.site-footer .footer-accordion .contact-list .contact-social .footer-social li {
  margin: 0;
}
.site-footer .footer-accordion .contact-list .contact-social .footer-social a {
  gap: 18px;
}
.footer-bottom {
  margin: 20px 0 0 0 !important;
}
.site-footer {
  margin: 40px 0 0 0 !important;
  padding: 40px 0 0 0 !important;
}
.footer-heading {
  margin-bottom: 5px !important;
}

.footer-helpful {
  display: block !important;
}
.helpful-list {
  display: block !important;
}
.footer-list {
  display: block !important;
}
.footer-a-list {
 display: block !important;
  padding: 0!important;
  gap: 0!important;
}
.site-footer .footer-section ul {
  list-style: none;   /* bullet арилгахад */
  padding: 0 !important;
  margin: 0 !important;
}
.site-footer .footer-section li {
  margin: 0 !important;
  padding: 0 !important;
}
.site-footer .footer-list a,
.site-footer .footer-accordion .contact-list a {
  min-height: unset !important;
  line-height: 1.4 !important;  /* багасгасан */
  padding: 0 !important;
  margin: 0 !important;
}
.site-footer .footer-list li {
  margin: 0 !important;
  padding: 0 !important;
}
.site-footer .footer-section li {
  margin: 10px 0 0 0 !important;  /* top: 8px, right: 0, bottom: 0, left: 0 */
  padding: 0 !important;
}
.site-footer .footer-section ul {
  margin: 16px 0 0 0 !important;  /* top: 8px, right: 0, bottom: 0, left: 0 */
  padding: 0 !important;
}
.site-footer .footer-section li:first-child {
  margin-top: 0 !important; /* эхний мөр дээр илүү зай гаргахгүй */
}
/* Footer social icon image: ensure consistent square size */
img.footer-social-icon {
  width: 14px !important;
  height: 14px !important;
  aspect-ratio: 1 / 1;
}
@media (max-width: 600px) {
  .site-footer .footer-section ul {
    padding-left: 16px !important;
    padding-bottom: 10px !important;
  }
  .site-footer .footer-section ul .footer-social {
    padding-left: 0 !important;
  }
  .site-footer .footer-section ul {
    margin: 0 !important;
  }
  /* Unify footer list text sizes on mobile (match Quick Links) */
  .site-footer .footer-section .footer-list a,
  .site-footer .footer-section .helpful-list a,
  .site-footer .footer-accordion .contact-list a,
  .site-footer .footer-social a,
  .site-footer .footer-accordion .contact-list .footer-address .contact-text,
  .site-footer .footer-accordion .contact-list .footer-address .contact-text p {
    font-size: 1rem;
    line-height: 1.5;
  }
  /* reset logo spacing */
  .brand, .brand > a.custom-logo-link {
    margin: 0;
    padding: 0;
    display: flex;           /* логог төвлөрүүлэхэд хэрэгтэй */
    align-items: center;     /* вертикаль төвлөрүүлнэ */
  }

  /* img as block removes inline-gap */
  .brand img.custom-logo {
    display: block;          /* устгана inline gap */
    width: auto;
    height: auto;
    max-height: 36px;        /* шаардлагатай өндөрийг өөрчил */
    object-fit: contain;
    vertical-align: middle;  /* нэмэлт хамгаалалт */
  }

  /* ensure header has no unexpected padding */
  .fez-header, .fez-midbar, .container.mid-flex {
    padding-top: 0;
    padding-bottom: 0;
    margin: 0;
  }

}
@media (max-width: 768px) {
  .drawer-search-field {
    width: 235px;
  }
}
.news-section {
  padding: 2rem 0;
}
.news-tabs {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  gap: 0.5rem;
  margin-bottom: 1rem;
  list-style: none;
  padding: 0 0.5rem;
}
.news-tabs li {
  cursor: pointer;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f8f9fa;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  flex: 0 0 auto;
  scroll-snap-align: start;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.news-tabs li.active {
  background: var(--grad-start);
  border-color: var(--grad-start);
  color: #fff;
}
.news-tab-content {
  display: none;
}
.news-tab-content.active {
  display: block;
}
.news-item {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.news-thumb img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
}
.news-meta {
  flex: 1;
}
.news-date {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.news-date::before {
  content: "\f508";
  font-family: "dashicons";
  font-size: 1rem;
  line-height: 1;
}
.news-item-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}
.news-item-title a,
.news-feature-card .news-info .news-title a {
  color: inherit;
  text-decoration: none;
}
.news-item-title a:hover,
.news-feature-card .news-info .news-title a:hover {
  color: var(--grad-start);
  text-decoration: none;
}
.news-feature-card {
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.news-feature-card .news-image img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  object-fit: cover;
}
.news-feature-card .news-info .news-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0.5rem 0;
  color: var(--text);
  line-height: 1.3;
  text-align: revert;
}
.news-feature-card .news-info .news-title a {
  color: inherit;
  text-decoration: none;
}
.news-feature-card .news-excerpt {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.4;
}
.news-list-wrapper {}

@media (min-width: 1024px) {
  .news-tab-content.active {
    display: flex;
    gap: 2rem;
  }
  .news-feature-card {
    flex: 2 1 60%;
  }
  .news-list-wrapper {
    flex: 1 1 40%;
    display: flex;
    flex-direction: column;
  }
}
@media (min-width: 768px) {
  .news-tabs {
    flex-wrap: wrap;
    overflow: visible;
    padding: 0;
  }
}
.news-tabs::-webkit-scrollbar {
  display: none;
}
.news-tabs {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.news-section a,
.news-section a * {
  text-decoration: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
  background-image: none !important;
}

/* Kill pseudo-element underlines */
.news-section a::after,
.news-section a *::after,
.news-section .news-title::after,
.news-section .news-item-title::after {
  content: none !important;
  display: none !important;
}

/* Ensure headings inside links don't inherit underline from elsewhere */
.news-section .news-title,
.news-section .news-item-title {
  text-decoration: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
}
/* quick fix for search page centering */
body.search .container,
body.search .site-content,
body.search .content-area,
body.search .primary {
  max-width: 1200px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}

/* force main column display in case some rule set it to small column */
body.search .site-content > .row,
body.search .site-content > .wrap,
body.search .primary {
  display: block !important;
  float: none !important;
  width: 100% !important;
}

/* Normalize search layout wrapper to avoid narrow columns */
body.search main,
body.search .site-content,
body.search .site-content > .container,
body.search .container.content {
  display: block !important;
  width: 100% !important;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
.ent-title  {
  text-align: left !important;
}
.post-content p {
  text-align: center;
}
.single .entry-content {
  column-count: 1 !important;
  display: block !important;
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.6;
  text-align: justify;
  font-size: 1rem;
  word-break: normal;
}

.single .entry-content img {
  display: block;
  margin: 1.5rem auto;
  border-radius: 4px;
  max-width: 100%;
  height: auto;
}

/* Global override: ensure all images have consistent rounded corners */
img {
  border-radius: 4px !important;
}
