/*
Theme Name: Dragon Community Trust
Theme URI: https://xtraordinary.co.nz/
Author: Xtra Marketing
Description: Custom WordPress theme for Dragon Community Trust, rebuilt from the supplied Joomla site.
Version: 1.1.1
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: dragon-community
*/

@font-face {
  font-family: "Arimo";
  src: url("assets/fonts/Arimo.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Arimo";
  src: url("assets/fonts/Arimo-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --dragon-red: #8f2528;
  --dragon-dark-red: #641819;
  --dragon-gold: #c79b3b;
  --dragon-cream: #f6e6bb;
  --dragon-ink: #505050;
  --dragon-line: #e4d5b0;
  --dragon-shadow: 0 10px 30px rgba(77, 36, 20, 0.13);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--dragon-ink);
  background: #fff;
  font-family: Arimo, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.62;
}

a { color: #6b191b; text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover, a:focus { color: #aa7a20; }
img { display: block; max-width: 100%; height: auto; }

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 10000;
  width: auto;
  height: auto;
  padding: 12px 16px;
  clip: auto;
  color: #fff;
  background: var(--dragon-dark-red);
}

.site-shell { width: min(1002px, calc(100% - 32px)); margin: 0 auto; }

.site-header {
  min-height: 195px;
  background: #f7e8bc url("assets/images/header.png") center top / 100% 195px no-repeat;
}

.header-inner { position: relative; min-height: 195px; }

.site-logo {
  position: absolute;
  top: 22px;
  left: 184px;
  width: 335px;
  height: 105px;
}

.site-logo img { width: 335px; }

.menu-toggle {
  display: none;
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 7px;
  padding: 8px 12px;
  color: #fff;
  background: rgba(93, 18, 20, .86);
  font: inherit;
  cursor: pointer;
}

.primary-nav { position: absolute; left: 0; right: 0; bottom: 17px; }

.primary-nav ul { margin: 0; padding: 0; list-style: none; }
.primary-nav > div > ul { display: flex; justify-content: flex-end; align-items: center; gap: 4px; }
.primary-nav li { position: relative; }
.primary-nav a {
  display: block;
  padding: 7px 11px;
  border-radius: 9px;
  color: #563130;
  font-size: 15px;
  line-height: 1.2;
  text-decoration: none;
}
.primary-nav > div > ul > li:hover > a,
.primary-nav > div > ul > li:focus-within > a,
.primary-nav .current-menu-item > a,
.primary-nav .current-menu-ancestor > a {
  color: #fff;
  background: linear-gradient(#b37643 50%, #8f4529 50%);
  box-shadow: 0 1px 4px rgba(46, 11, 12, .5);
}

.primary-nav .sub-menu {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  z-index: 50;
  display: none;
  width: 225px;
  padding: 8px;
  border-radius: 0 0 8px 8px;
  background: rgba(100, 24, 25, .96);
  box-shadow: 0 9px 18px rgba(0, 0, 0, .28);
}
.primary-nav li:hover > .sub-menu,
.primary-nav li:focus-within > .sub-menu { display: block; }
.primary-nav .sub-menu a { padding: 9px 11px; color: #fff; border-radius: 5px; }
.primary-nav .sub-menu a:hover,
.primary-nav .sub-menu a:focus { color: #fff1c9; background: rgba(255,255,255,.09); }

.site-main {
  min-height: 500px;
  padding: 0 21px 38px;
  border-radius: 0 0 13px 13px;
  background: #fff url("assets/images/content-bg.png") center bottom / 100% auto no-repeat;
}

.hero-slider {
  position: relative;
  overflow: hidden;
  margin: -10px 0 28px;
  aspect-ratio: 960 / 283;
  border: 7px solid #fff;
  border-radius: 10px;
  background: #5d1719;
  box-shadow: var(--dragon-shadow);
}
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; }
.hero-slide.is-active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-dots { position: absolute; right: 17px; bottom: 15px; z-index: 3; display: flex; gap: 7px; }
.hero-dot { width: 11px; height: 11px; padding: 0; border: 2px solid #fff; border-radius: 50%; background: rgba(101,22,24,.55); cursor: pointer; }
.hero-dot.is-active { background: var(--dragon-gold); }

.home-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  padding: 0 18px 28px;
}
.home-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #eee3ca;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 4px 18px rgba(66,32,24,.09);
}
.home-card img { width: 100%; aspect-ratio: 430 / 112; object-fit: cover; }
.home-card-body { display: flex; flex: 1; flex-direction: column; padding: 20px 22px 22px; }
.home-card h2 { margin: 0 0 12px; color: var(--dragon-red); font-family: Georgia, serif; font-size: 22px; font-weight: 400; }
.home-card p { margin: 0 0 14px; }
.home-card .more-link { align-self: flex-end; margin-top: auto; font-weight: 700; }

.apply-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 18px 30px;
  padding: 20px 24px;
  border-left: 6px solid var(--dragon-gold);
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(120deg, var(--dragon-dark-red), #9a2d30);
}
.apply-banner p { margin: 0; }
.button {
  display: inline-block;
  flex: 0 0 auto;
  padding: 10px 18px;
  border: 0;
  border-radius: 7px;
  color: #5a191b;
  background: #f1cf72;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 3px 0 rgba(75, 28, 12, .35);
}
.button:hover, .button:focus { color: #411012; background: #ffe298; }

.content-layout { display: grid; grid-template-columns: 214px minmax(0, 1fr); gap: 28px; padding-top: 24px; }
.side-art { align-self: start; }
.side-art img { width: 100%; margin-bottom: 14px; border-radius: 7px; box-shadow: 0 4px 13px rgba(64,29,19,.13); }
.side-apply { display: block; margin-top: 18px; padding: 14px; border-radius: 7px; color: #fff; background: var(--dragon-red); text-align: center; text-decoration: none; font-weight: 700; }
.side-apply:hover, .side-apply:focus { color: #fff; background: var(--dragon-dark-red); }

.entry-content { min-width: 0; padding: 4px 20px 26px 0; }
.entry-content h1 {
  margin: 0 0 22px;
  color: var(--dragon-red);
  font-family: Georgia, serif;
  font-size: clamp(26px, 3.2vw, 34px);
  font-weight: 400;
  line-height: 1.25;
}
.entry-content h1::before { content: "\25B6"; margin-right: 10px; color: var(--dragon-gold); font-size: .72em; }
.entry-content h2 { margin: 28px 0 10px; color: var(--dragon-red); font-family: Georgia, serif; font-size: 21px; line-height: 1.35; }
.entry-content h3 { margin: 24px 0 8px; color: #3e3e3e; font-size: 16px; }
.entry-content p { margin: 0 0 18px; }
.entry-content ul, .entry-content ol { margin: 0 0 20px; padding-left: 24px; }
.entry-content li { margin-bottom: 7px; }
.entry-content table { width: 100%; margin: 18px 0 28px; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: 10px 12px; border-bottom: 1px solid var(--dragon-line); text-align: left; vertical-align: top; }
.entry-content th { color: var(--dragon-red); background: #fbf4df; }
.entry-content .lead { color: #4d3930; font-size: 18px; }
.entry-content .notice { padding: 15px 18px; border-left: 5px solid var(--dragon-gold); background: #fff8e4; }
.entry-content .document-list { padding-left: 0; list-style: none; }
.entry-content .document-list li { margin: 0; border-bottom: 1px dotted #d9c89f; }
.entry-content .document-list a { display: block; padding: 9px 8px 9px 30px; position: relative; }
.entry-content .document-list a::before { content: "PDF"; position: absolute; left: 0; top: 11px; color: var(--dragon-red); font-size: 10px; font-weight: 700; }
.entry-content .faq { margin-bottom: 24px; }
.entry-content .faq h2 { margin-bottom: 7px; }

.site-footer { padding: 24px 16px 34px; color: var(--dragon-red); text-align: center; font-size: 13px; }
.site-footer p { margin: 4px 0; }

@media (max-width: 900px) {
  .site-shell { width: min(100%, calc(100% - 18px)); }
  .site-header { min-height: 176px; background-size: auto 176px; }
  .header-inner { min-height: 176px; }
  .site-logo { left: 115px; }
  .primary-nav a { padding-inline: 8px; font-size: 14px; }
  .site-main { padding-inline: 12px; }
}

@media (max-width: 760px) {
  .site-shell { width: 100%; }
  .site-header { min-height: 155px; background-position: 32% top; background-size: auto 155px; }
  .header-inner { min-height: 155px; }
  .site-logo { top: 31px; left: 50%; width: 260px; height: auto; transform: translateX(-43%); }
  .site-logo img { width: 260px; }
  .menu-toggle { display: block; position: absolute; right: 12px; bottom: 10px; z-index: 70; }
  .primary-nav { position: absolute; top: 100%; bottom: auto; z-index: 60; display: none; background: var(--dragon-dark-red); box-shadow: 0 8px 16px rgba(0,0,0,.22); }
  .primary-nav.is-open { display: block; }
  .primary-nav > div > ul { display: block; padding: 8px; }
  .primary-nav a { padding: 11px 14px; color: #fff; }
  .primary-nav .sub-menu { position: static; display: block; width: auto; padding: 0 0 3px 16px; background: transparent; box-shadow: none; }
  .primary-nav .sub-menu a { padding: 8px 12px; font-size: 14px; }
  .site-main { padding: 0 10px 26px; }
  .hero-slider { margin-top: 0; aspect-ratio: 16 / 7; border-width: 4px; border-radius: 0 0 8px 8px; }
  .home-intro { grid-template-columns: 1fr; gap: 18px; padding: 0 4px 22px; }
  .apply-banner { align-items: flex-start; flex-direction: column; margin-inline: 4px; }
  .content-layout { grid-template-columns: 1fr; padding-top: 20px; }
  .side-art { display: none; }
  .entry-content { padding: 0 8px 20px; }
  .entry-content h1 { font-size: 27px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-slide { transition: none; }
}

/*
 * 2026 visual refresh.
 * These rules intentionally preserve the existing templates, copy and media.
 */

:root {
  --dragon-red: #8c1f28;
  --dragon-dark-red: #4e0d14;
  --dragon-deep-red: #2d080d;
  --dragon-gold: #d3a43d;
  --dragon-bright-gold: #f3d27a;
  --dragon-cream: #fff5dc;
  --dragon-paper: #fffdf9;
  --dragon-ink: #342d2a;
  --dragon-muted: #746b65;
  --dragon-line: rgba(122, 72, 39, .14);
  --dragon-shadow: 0 24px 70px rgba(63, 21, 18, .13);
  --dragon-shadow-soft: 0 12px 38px rgba(63, 21, 18, .09);
  --dragon-radius: 24px;
}

html {
  background: #f6f1e8;
}

body {
  color: var(--dragon-ink);
  background:
    radial-gradient(circle at 10% 2%, rgba(211, 164, 61, .13), transparent 28rem),
    radial-gradient(circle at 92% 24%, rgba(140, 31, 40, .08), transparent 34rem),
    linear-gradient(180deg, #fffdf8 0, #f8f4ec 62%, #f2ede4 100%);
  font-size: 16px;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection {
  color: #fff;
  background: var(--dragon-red);
}

a {
  color: var(--dragon-red);
  text-decoration-thickness: 1px;
  text-underline-offset: .22em;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

a:hover,
a:focus {
  color: #b27b16;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(243, 210, 122, .9);
  outline-offset: 3px;
}

.site-shell {
  width: min(1180px, calc(100% - 48px));
}

.site-header {
  position: relative;
  min-height: 224px;
  overflow: visible;
  isolation: isolate;
  background:
    linear-gradient(105deg, rgba(60, 6, 13, .12), rgba(126, 20, 29, .02)),
    url("assets/images/header.png") left top / auto 100% no-repeat,
    linear-gradient(to bottom, #8b2028 0 71.3%, #f7e8bc 71.3% 100%);
  box-shadow: 0 1px 0 rgba(92, 42, 16, .15);
}

.site-header::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .05), transparent 45%),
    linear-gradient(90deg, rgba(67, 6, 12, .2), transparent 45%, rgba(66, 7, 13, .08));
}

.header-inner {
  min-height: 224px;
}

.site-logo {
  top: 30px;
  left: 28px;
  width: min(430px, 48vw);
  height: auto;
  filter: drop-shadow(0 10px 20px rgba(38, 4, 8, .2));
  transition: transform .25s ease, filter .25s ease;
}

.site-logo:hover,
.site-logo:focus-visible {
  transform: translateY(-2px);
  filter: drop-shadow(0 14px 24px rgba(38, 4, 8, .28));
}

.site-logo img {
  width: 100%;
}

.primary-nav {
  right: 0;
  bottom: 16px;
  left: auto;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, .52);
  border-radius: 999px;
  background: rgba(255, 249, 232, .84);
  box-shadow: 0 14px 34px rgba(49, 8, 12, .18);
  backdrop-filter: blur(14px) saturate(135%);
  -webkit-backdrop-filter: blur(14px) saturate(135%);
}

.primary-nav > div > ul {
  gap: 2px;
}

.primary-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: #4d2a28;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.01em;
}

.primary-nav > div > ul > li:hover > a,
.primary-nav > div > ul > li:focus-within > a,
.primary-nav .current-menu-item > a,
.primary-nav .current-menu-ancestor > a {
  color: #fff;
  background: linear-gradient(135deg, #a7343e, #751821);
  box-shadow: 0 7px 18px rgba(104, 18, 25, .24);
}

.primary-nav .sub-menu {
  top: calc(100% + 12px);
  display: block;
  width: 244px;
  padding: 9px;
  visibility: hidden;
  opacity: 0;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 18px;
  background: rgba(64, 9, 15, .96);
  box-shadow: 0 22px 50px rgba(25, 4, 7, .32);
  transform: translateY(-7px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.primary-nav li:hover > .sub-menu,
.primary-nav li:focus-within > .sub-menu {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.primary-nav .sub-menu a {
  padding: 10px 12px;
  border-radius: 10px;
  color: rgba(255, 255, 255, .9);
  font-weight: 400;
}

.primary-nav .sub-menu a:hover,
.primary-nav .sub-menu a:focus {
  color: #fff;
  background: rgba(255, 255, 255, .1);
}

.site-main {
  min-height: 560px;
  margin-top: 30px;
  padding: 26px;
  border: 1px solid rgba(126, 75, 39, .1);
  border-radius: 30px;
  background: rgba(255, 253, 249, .93);
  box-shadow: var(--dragon-shadow);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero-slider {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 960 / 283;
  border: 0;
  border-radius: 22px;
  background: var(--dragon-dark-red);
  box-shadow: 0 18px 44px rgba(49, 12, 15, .18);
}

.hero-slider::after {
  position: absolute;
  inset: 0;
  z-index: 2;
  content: "";
  pointer-events: none;
  background: linear-gradient(180deg, transparent 56%, rgba(30, 5, 8, .24));
}

.hero-slide {
  transform: scale(1.015);
  transition: opacity .9s ease, transform 6s ease;
}

.hero-slide.is-active {
  transform: scale(1);
}

.hero-dots {
  right: 22px;
  bottom: 18px;
  gap: 8px;
}

.hero-dot {
  width: 9px;
  height: 9px;
  border: 0;
  background: rgba(255, 255, 255, .58);
  box-shadow: 0 0 0 1px rgba(44, 6, 9, .15);
  transition: width .25s ease, background-color .25s ease;
}

.hero-dot.is-active {
  width: 28px;
  border-radius: 99px;
  background: var(--dragon-bright-gold);
}

.apply-banner {
  position: relative;
  overflow: hidden;
  margin: 28px 0 0;
  padding: 24px 28px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-left: 0;
  border-radius: 20px;
  background:
    radial-gradient(circle at 88% 5%, rgba(243, 210, 122, .2), transparent 14rem),
    linear-gradient(125deg, var(--dragon-deep-red), var(--dragon-red));
  box-shadow: 0 16px 36px rgba(88, 18, 24, .17);
}

.apply-banner::before {
  width: 4px;
  position: absolute;
  inset: 18px auto 18px 0;
  border-radius: 0 99px 99px 0;
  content: "";
  background: linear-gradient(var(--dragon-bright-gold), var(--dragon-gold));
}

.apply-banner p {
  font-size: 16px;
  line-height: 1.55;
}

.apply-banner strong {
  color: #fff9e8;
  font-size: 17px;
}

.button {
  padding: 12px 21px;
  border: 1px solid rgba(255, 255, 255, .38);
  border-radius: 999px;
  color: #4d1116;
  background: linear-gradient(145deg, #ffe7a0, #e9bd55);
  box-shadow: 0 10px 24px rgba(40, 5, 9, .22);
}

.button:hover,
.button:focus {
  color: #3d0b10;
  background: linear-gradient(145deg, #fff0bd, #f3cc6e);
  box-shadow: 0 14px 30px rgba(40, 5, 9, .3);
  transform: translateY(-2px);
}

.home-intro {
  gap: 26px;
  padding: 28px 0 4px;
}

.home-card {
  border: 1px solid var(--dragon-line);
  border-radius: var(--dragon-radius);
  background: rgba(255, 255, 255, .86);
  box-shadow: var(--dragon-shadow-soft);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.home-card:hover {
  border-color: rgba(140, 31, 40, .2);
  box-shadow: 0 22px 48px rgba(63, 21, 18, .14);
  transform: translateY(-5px);
}

.home-card img {
  aspect-ratio: 430 / 124;
}

.home-card-body {
  padding: 25px 26px 27px;
}

.home-card h2 {
  margin-bottom: 14px;
  color: var(--dragon-red);
  font-size: clamp(23px, 2.5vw, 28px);
  line-height: 1.2;
  letter-spacing: -.025em;
}

.home-card p {
  color: #554d48;
}

.home-card .more-link {
  padding: 9px 0 2px;
  text-decoration: none;
}

.home-card .more-link:hover,
.home-card .more-link:focus {
  transform: translateX(3px);
}

.content-layout {
  grid-template-columns: 238px minmax(0, 1fr);
  gap: 44px;
  padding: 8px 4px 14px;
}

.side-art {
  position: sticky;
  top: 28px;
}

.side-art img {
  margin-bottom: 16px;
  border: 1px solid rgba(126, 75, 39, .1);
  border-radius: 18px;
  box-shadow: var(--dragon-shadow-soft);
}

.side-apply {
  margin-top: 20px;
  padding: 13px 16px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  background: linear-gradient(135deg, #9f2d37, #68151d);
  box-shadow: 0 12px 28px rgba(88, 18, 24, .2);
}

.side-apply:hover,
.side-apply:focus {
  background: linear-gradient(135deg, #b23943, #791b24);
  box-shadow: 0 16px 34px rgba(88, 18, 24, .28);
  transform: translateY(-2px);
}

.entry-content {
  padding: 7px 24px 28px 0;
}

.entry-content h1 {
  position: relative;
  margin-bottom: 28px;
  color: var(--dragon-dark-red);
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: -.035em;
}

.entry-content h1::before {
  display: inline-block;
  margin-right: 12px;
  color: var(--dragon-gold);
  font-size: .42em;
  transform: translateY(-.18em);
}

.entry-content h1::after {
  display: block;
  width: 74px;
  height: 3px;
  margin-top: 17px;
  border-radius: 99px;
  content: "";
  background: linear-gradient(90deg, var(--dragon-gold), rgba(211, 164, 61, .08));
}

.entry-content h2 {
  margin-top: 34px;
  color: var(--dragon-red);
  font-size: 24px;
  letter-spacing: -.02em;
}

.entry-content h3 {
  color: #3a302c;
  font-size: 17px;
}

.entry-content p,
.entry-content li {
  color: #554d48;
}

.entry-content .lead {
  color: #403632;
  font-size: clamp(18px, 2vw, 20px);
  line-height: 1.65;
}

.entry-content .notice {
  padding: 19px 21px;
  border: 1px solid rgba(211, 164, 61, .22);
  border-left: 4px solid var(--dragon-gold);
  border-radius: 0 16px 16px 0;
  background: linear-gradient(120deg, #fff9e9, #fffdf8);
  box-shadow: 0 9px 24px rgba(83, 45, 20, .06);
}

.entry-content table {
  overflow: hidden;
  border-spacing: 0;
  border-collapse: separate;
  border: 1px solid var(--dragon-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 9px 26px rgba(63, 21, 18, .055);
}

.entry-content th,
.entry-content td {
  padding: 13px 15px;
}

.entry-content th {
  color: var(--dragon-dark-red);
  background: #fbf2dc;
}

.entry-content .document-list {
  display: grid;
  gap: 8px;
}

.entry-content .document-list li {
  border: 1px solid rgba(126, 75, 39, .11);
  border-radius: 12px;
  background: rgba(255, 255, 255, .72);
  transition: border-color .2s ease, background-color .2s ease, transform .2s ease;
}

.entry-content .document-list li:hover {
  border-color: rgba(140, 31, 40, .25);
  background: #fff;
  transform: translateX(3px);
}

.entry-content .document-list a {
  padding: 12px 14px 12px 50px;
  text-decoration: none;
}

.entry-content .document-list a::before {
  top: 12px;
  left: 13px;
  padding: 2px 6px;
  border-radius: 5px;
  color: #fff;
  background: var(--dragon-red);
  font-size: 9px;
  letter-spacing: .04em;
}

.site-footer {
  padding: 34px 16px 46px;
  color: #75534c;
}

.site-footer a {
  font-weight: 700;
}

@media (max-width: 1040px) {
  .site-shell {
    width: min(100% - 30px, 1180px);
  }

  .site-logo {
    left: 18px;
    width: 390px;
  }

  .primary-nav a {
    padding-inline: 11px;
    font-size: 13px;
  }

  .content-layout {
    grid-template-columns: 218px minmax(0, 1fr);
    gap: 32px;
  }
}

@media (max-width: 760px) {
  .site-shell {
    width: 100%;
  }

  .site-header {
    min-height: 162px;
    overflow: visible;
    background-position: 36% top;
    background-size: auto 162px;
  }

  .header-inner {
    min-height: 162px;
  }

  .site-logo {
    top: 29px;
    left: 18px;
    width: min(265px, 72vw);
    transform: none;
  }

  .site-logo:hover,
  .site-logo:focus-visible {
    transform: translateY(-2px);
  }

  .menu-toggle {
    right: 14px;
    bottom: 13px;
    display: block;
    padding: 9px 14px;
    border: 1px solid rgba(255, 255, 255, .38);
    border-radius: 999px;
    background: rgba(68, 8, 14, .83);
    box-shadow: 0 8px 24px rgba(30, 3, 6, .18);
    backdrop-filter: blur(12px);
  }

  .primary-nav {
    top: calc(100% + 8px);
    right: 12px;
    left: 12px;
    display: none;
    padding: 9px;
    border-radius: 20px;
    background: rgba(54, 7, 13, .97);
    box-shadow: 0 24px 54px rgba(25, 4, 7, .35);
  }

  .primary-nav.is-open {
    display: block;
  }

  .primary-nav > div > ul {
    display: block;
    padding: 0;
  }

  .primary-nav a {
    padding: 12px 14px;
    color: #fff;
    font-size: 15px;
  }

  .primary-nav .sub-menu {
    position: static;
    display: block;
    width: auto;
    padding: 0 0 4px 14px;
    visibility: visible;
    opacity: 1;
    border: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
  }

  .site-main {
    width: calc(100% - 20px);
    margin: 12px auto 0;
    padding: 10px;
    border-radius: 22px;
  }

  .hero-slider {
    aspect-ratio: 16 / 7;
    border-radius: 15px;
  }

  .hero-dots {
    right: 14px;
    bottom: 12px;
  }

  .apply-banner {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
    margin-top: 18px;
    padding: 21px;
    border-radius: 16px;
  }

  .home-intro {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-top: 18px;
  }

  .home-card {
    border-radius: 18px;
  }

  .home-card-body {
    padding: 22px;
  }

  .content-layout {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 14px 9px;
  }

  .side-art {
    display: none;
  }

  .entry-content {
    padding: 0 5px 20px;
  }

  .entry-content h1 {
    font-size: 34px;
  }

  .entry-content table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

@media (max-width: 420px) {
  .site-header,
  .header-inner {
    min-height: 150px;
  }

  .site-header {
    background-size: auto 150px;
  }

  .site-logo {
    top: 31px;
    width: 230px;
  }

  .menu-toggle {
    bottom: 10px;
  }

  .site-main {
    width: calc(100% - 14px);
    padding: 7px;
  }

  .hero-slider {
    aspect-ratio: 16 / 8;
  }

  .home-card img {
    aspect-ratio: 3 / 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
