/*
Theme Name: DagaHome Custom
Theme URI: https://example.com/dagahome-custom
Author: DagaHome
Author URI: https://example.com
Description: Giao diện tùy chỉnh giới thiệu, quảng cáo và tin tức về bóng đá, xổ số và cá cược. Hỗ trợ menu tùy biến, banner, bản tin, tỉ số bóng đá, xổ số và liên hệ Telegram qua WordPress Customizer.
Version: 1.1.1
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dagahome
*/

:root {
  --dh-ink: #101416;
  --dh-muted: #5d666b;
  --dh-paper: #fffaf0;
  --dh-white: #ffffff;
  --dh-surface: #ffffff;
  --dh-line: rgba(16, 20, 22, 0.12);
  --dh-header-bg: rgba(255, 250, 240, 0.92);
  --dh-grass: #067a43;
  --dh-grass-deep: #014728;
  --dh-sun: #f6c44d;
  --dh-on-sun: #101416;
  --dh-red: #cf1f32;
  --dh-blue: #1267a3;
  --dh-shadow: 0 18px 50px rgba(16, 20, 22, 0.12);
  --dh-radius: 8px;
  --dh-max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background:
    linear-gradient(135deg, rgba(246, 196, 77, 0.16), transparent 34%),
    linear-gradient(225deg, rgba(6, 122, 67, 0.12), transparent 40%),
    var(--dh-paper);
  color: var(--dh-ink);
  font-family: "Be Vietnam Pro", "Montserrat", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  transition: background-color 180ms ease, color 180ms ease;
}

#main {
  flex: 1 0 auto;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
}

iframe,
embed,
object {
  max-width: 100%;
}

.screen-reader-text,
.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 100000;
  padding: 10px 14px;
  background: var(--dh-ink);
  color: var(--dh-white);
}

.dh-container {
  width: min(100% - 32px, var(--dh-max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  border-bottom: 1px solid var(--dh-line);
  background: var(--dh-header-bg);
  backdrop-filter: blur(18px);
}

.site-header__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 78px;
}

.site-branding {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  max-width: 260px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.site-branding img {
  width: auto;
  max-height: 56px;
}

.site-title {
  font-size: 1.12rem;
  overflow-wrap: anywhere;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--dh-line);
  border-radius: var(--dh-radius);
  background: var(--dh-surface);
  color: var(--dh-ink);
  font-size: 1.4rem;
  cursor: pointer;
}

.primary-navigation {
  justify-self: stretch;
  min-width: 0;
}

.primary-menu,
.primary-menu ul {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-menu {
  justify-content: center;
}

.primary-menu > li {
  flex: 0 0 auto;
}

.primary-menu a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 12px;
  border-radius: var(--dh-radius);
  font-weight: 750;
  color: var(--dh-ink);
  white-space: nowrap;
}

.primary-menu a:hover,
.primary-menu .current-menu-item > a,
.primary-menu .current-menu-ancestor > a {
  background: var(--dh-ink);
  color: var(--dh-white);
}

.primary-menu li {
  position: relative;
}

.primary-menu .sub-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  display: grid;
  min-width: 220px;
  padding: 8px;
  border: 1px solid var(--dh-line);
  border-radius: var(--dh-radius);
  background: var(--dh-surface);
  box-shadow: var(--dh-shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 160ms ease;
}

.primary-menu li:hover > .sub-menu,
.primary-menu li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.site-header__actions {
  display: inline-flex;
  align-items: center;
  justify-content: end;
  gap: 10px;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid var(--dh-line);
  border-radius: 12px;
  background: var(--dh-surface);
  color: var(--dh-ink);
  cursor: pointer;
}

.theme-toggle:hover {
  filter: brightness(0.96);
}

.theme-toggle__icon {
  display: inline-grid;
  width: 100%;
  height: 100%;
  place-items: center;
  border-radius: inherit;
  font-size: 1.15rem;
  line-height: 1;
  font-weight: 900;
}

.header-contact,
.telegram-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: var(--dh-radius);
  background: var(--dh-blue);
  color: var(--dh-white);
  font-weight: 850;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(18, 103, 163, 0.22);
}

.dh-contact-list {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.dh-contact-list--footer {
  justify-content: end;
}

.dh-contact-item {
  max-width: 100%;
  color: #fff;
  border-color: transparent;
}

.dh-contact-icon-img,
.dh-contact-icon-svg,
.dh-contact-icon-fallback {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
}

.dh-contact-icon-img {
  border-radius: 999px;
  object-fit: cover;
}

.dh-contact-icon-fallback {
  font-weight: 900;
  font-size: 0.86rem;
}

.dh-contact-label {
  display: none;
}

.dh-contact-sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.dh-contact-item--phone {
  background: #16a34a;
  box-shadow: 0 10px 24px rgba(22, 163, 74, 0.28);
}

.dh-contact-item--telegram {
  background: #229ed9;
  box-shadow: 0 10px 24px rgba(34, 158, 217, 0.3);
}

.dh-contact-item--email {
  background: #ea4335;
  box-shadow: 0 10px 24px rgba(234, 67, 53, 0.3);
}

.dh-contact-item--whatsapp {
  background: #25d366;
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.3);
}

.dh-contact-item--wechat {
  background: #07c160;
  box-shadow: 0 10px 24px rgba(7, 193, 96, 0.3);
}

.dh-contact-item--discord {
  background: #5865f2;
  box-shadow: 0 10px 24px rgba(88, 101, 242, 0.3);
}

.dh-contact-item--viber {
  background: #7360f2;
  box-shadow: 0 10px 24px rgba(115, 96, 242, 0.3);
}

.dh-contact-item--zalo {
  background: #0068ff;
  box-shadow: 0 10px 24px rgba(0, 104, 255, 0.3);
}

.dh-contact-item--facebook {
  background: #1877f2;
  box-shadow: 0 10px 24px rgba(24, 119, 242, 0.3);
}

.dh-contact-item--custom {
  background: var(--dh-blue);
  box-shadow: 0 10px 24px rgba(18, 103, 163, 0.22);
}

.header-contact:hover,
.telegram-link:hover {
  filter: brightness(0.94);
}

.dh-telegram-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 44px 0 20px;
  color: var(--dh-white);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(1, 71, 40, 0.92), rgba(6, 122, 67, 0.76)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 72px);
  z-index: 0;
}

.hero.has-background-image::before {
  background:
    linear-gradient(96deg, rgba(1, 71, 40, 0.86), rgba(16, 20, 22, 0.44)),
    var(--hero-background-image) center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -8% -44px -8%;
  height: 92px;
  background: var(--dh-paper);
  transform: rotate(-2deg);
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 22px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--dh-sun);
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero h1,
.section-title,
.archive-title {
  margin: 0;
  font-family: "Montserrat", "Be Vietnam Pro", sans-serif;
  line-height: 1.08;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(1.9rem, 4.6vw, 4.25rem);
}

.hero__lead {
  max-width: 660px;
  margin: 12px 0 14px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button,
.wp-block-button__link,
button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 0;
  border-radius: var(--dh-radius);
  background: var(--dh-red);
  color: var(--dh-white);
  font-weight: 900;
  cursor: pointer;
}

.button--light {
  background: var(--dh-sun);
  color: var(--dh-on-sun);
}

.button--ghost {
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.1);
}

.headline-board {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--dh-radius);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: var(--dh-shadow);
}

.headline-board__item {
  padding: 11px 12px;
  border-radius: var(--dh-radius);
  background: rgba(255, 255, 255, 0.92);
  color: var(--dh-ink);
}

.headline-board__item span {
  display: block;
  color: var(--dh-red);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.headline-board__item strong {
  display: block;
  margin-top: 3px;
  line-height: 1.35;
}

.section {
  padding: 64px 0;
}

.section--tight {
  padding-top: 36px;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.section-actions {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.section-actions .button {
  min-height: 42px;
  padding: 10px 14px;
}

.section-actions .button--ghost {
  border-color: var(--dh-line);
  background: var(--dh-surface);
  color: var(--dh-ink);
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 3rem);
}

.section-kicker {
  margin: 0 0 8px;
  color: var(--dh-red);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.intro-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 1.1fr);
  gap: 26px;
  align-items: stretch;
}

.intro-panel {
  padding: 28px;
  border: 1px solid var(--dh-line);
  border-radius: var(--dh-radius);
  background: var(--dh-surface);
  box-shadow: var(--dh-shadow);
}

.intro-panel p:last-child {
  margin-bottom: 0;
}

.ad-banner {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  border-radius: var(--dh-radius);
  background:
    linear-gradient(135deg, rgba(207, 31, 50, 0.88), rgba(246, 196, 77, 0.8)),
    linear-gradient(45deg, var(--dh-ink), transparent);
  color: var(--dh-white);
}

.ad-banner img {
  width: 100%;
  height: 100%;
  min-height: 210px;
  object-fit: cover;
}

.ad-banner__fallback {
  display: grid;
  min-height: 210px;
  place-items: center;
  padding: 28px;
  text-align: center;
}

.ad-banner__fallback strong {
  display: block;
  font-size: 1.6rem;
  line-height: 1.2;
}

.banner-slider-section {
  padding-bottom: 36px;
}

.banner-slider {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--dh-line);
  border-radius: var(--dh-radius);
  background: var(--dh-ink);
  box-shadow: var(--dh-shadow);
}

.banner-slider__viewport {
  overflow: hidden;
}

.banner-slider__track {
  display: flex;
  transition: transform 420ms ease;
  will-change: transform;
}

.banner-slider__slide {
  position: relative;
  display: block;
  min-width: 100%;
  aspect-ratio: 21 / 8;
  overflow: hidden;
  background: linear-gradient(135deg, var(--dh-grass), var(--dh-sun));
}

.banner-slider__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-slider__slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(16, 20, 22, 0.68), rgba(16, 20, 22, 0.08) 58%, rgba(16, 20, 22, 0.16));
  pointer-events: none;
}

.banner-slider__caption {
  position: absolute;
  left: 24px;
  bottom: 24px;
  z-index: 2;
  display: grid;
  max-width: min(560px, calc(100% - 48px));
  gap: 6px;
  color: var(--dh-white);
}

.banner-slider__caption strong {
  font-size: clamp(1.35rem, 3vw, 2.6rem);
  line-height: 1.1;
}

.banner-slider__caption small {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.98rem;
  font-weight: 650;
}

.banner-slider__arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(16, 20, 22, 0.72);
  color: var(--dh-white);
  font-size: 2rem;
  line-height: 1;
  transform: translateY(-50%);
  cursor: pointer;
}

.banner-slider__arrow:hover {
  background: var(--dh-red);
}

.banner-slider__arrow--prev {
  left: 16px;
}

.banner-slider__arrow--next {
  right: 16px;
}

.banner-slider__dots {
  position: absolute;
  left: 50%;
  bottom: 16px;
  z-index: 3;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.banner-slider__dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

.banner-slider__dots button.is-active,
.banner-slider__dots button:hover {
  width: 26px;
  background: var(--dh-sun);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.post-card {
  overflow: hidden;
  border: 1px solid var(--dh-line);
  border-radius: var(--dh-radius);
  background: var(--dh-surface);
  box-shadow: 0 14px 34px rgba(16, 20, 22, 0.08);
}

.post-card__thumb {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--dh-grass), var(--dh-sun));
}

.post-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card__body {
  padding: 18px;
}

.post-card__meta {
  margin: 0 0 8px;
  color: var(--dh-muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.post-card h3 {
  margin: 0 0 10px;
  font-size: 1.12rem;
  line-height: 1.35;
}

.post-card p {
  margin: 0;
  color: var(--dh-muted);
}

.data-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.data-grid--single {
  grid-template-columns: minmax(0, 1fr);
}

.website-promo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.website-promo-card {
  display: grid;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--dh-line);
  border-radius: var(--dh-radius);
  background: var(--dh-surface);
  box-shadow: var(--dh-shadow);
}

.website-promo-card h3 {
  margin: 0;
  font-size: 1.4rem;
}

.website-promo-card p {
  margin: 0;
  color: var(--dh-muted);
}

.website-promo-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.promo-directory {
  overflow: hidden;
}

.promo-directory__header {
  margin-bottom: 8px;
}

.promo-group-section {
  padding: 24px 0;
  border-top: 1px solid var(--dh-line);
}

.promo-group-section:first-of-type {
  border-top: 0;
}

.promo-group-section__header {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.promo-group-section__header h3 {
  min-width: 0;
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
}

.promo-group-section__header a {
  color: var(--dh-red);
  font-weight: 800;
  text-decoration: none;
}

.promo-group-section__header a:hover,
.promo-group-section__header a:focus-visible {
  text-decoration: underline;
}

.promo-link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 14px;
}

.promo-link-grid--count-1 {
  grid-template-columns: minmax(0, 1fr);
}

.promo-link-grid--count-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.promo-link-card {
  position: relative;
  isolation: isolate;
  display: flex;
  min-width: 0;
  min-height: 210px;
  overflow: hidden;
  align-items: flex-end;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background-color: #071310;
  background-image: var(--promo-image);
  background-position: center;
  background-size: cover;
  box-shadow: 0 12px 28px rgba(4, 12, 10, 0.18);
  color: #fff;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.promo-link-card::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: rgba(3, 12, 10, 0.52);
  content: "";
}

.promo-link-card:hover {
  border-color: rgba(250, 204, 21, 0.7);
  box-shadow: 0 16px 32px rgba(4, 12, 10, 0.26);
  transform: translateY(-2px);
}

.promo-link-card--featured {
  border-color: rgba(250, 204, 21, 0.72);
  box-shadow: 0 12px 30px rgba(4, 12, 10, 0.22), 0 0 0 1px rgba(250, 204, 21, 0.16);
}

.promo-link-grid--home .promo-link-card--featured {
  min-height: 190px;
}

.promo-link-grid--home .promo-link-card {
  min-height: 190px;
}

.promo-link-card__content {
  display: grid;
  width: min(100%, 440px);
  gap: 8px;
  align-content: end;
}

.promo-link-card__badge {
  width: fit-content;
  max-width: 100%;
  padding: 5px 7px;
  border-radius: 4px;
  background: #facc15;
  color: #151a18;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.promo-link-card h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.25rem, 1.8vw, 1.65rem);
  line-height: 1.18;
  overflow-wrap: anywhere;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

.promo-link-card:not(.promo-link-card--featured) h3 {
  font-size: clamp(1.2rem, 1.7vw, 1.55rem);
}

.promo-link-card p {
  display: -webkit-box;
  overflow: hidden;
  max-width: 52ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.9rem;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.promo-link-card__button.button {
  width: fit-content;
  margin-top: 2px;
  min-height: 38px;
  padding: 8px 13px;
  border-color: #d91f3d;
  background: #d91f3d;
  color: #fff;
  font-size: 0.88rem;
}

.promo-link-card__button.button:hover,
.promo-link-card__button.button:focus-visible {
  border-color: #facc15;
  background: #facc15;
  color: #151a18;
}

.contact-directory-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.contact-directory-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--dh-line);
  border-radius: 14px;
  background: var(--dh-surface);
  box-shadow: var(--dh-shadow);
  text-decoration: none;
}

.contact-directory-card.dh-contact-item {
  color: var(--dh-text);
  box-shadow: var(--dh-shadow);
}

.contact-directory-card.dh-contact-item--phone,
.contact-directory-card.dh-contact-item--telegram,
.contact-directory-card.dh-contact-item--email,
.contact-directory-card.dh-contact-item--whatsapp,
.contact-directory-card.dh-contact-item--wechat,
.contact-directory-card.dh-contact-item--discord,
.contact-directory-card.dh-contact-item--viber,
.contact-directory-card.dh-contact-item--zalo,
.contact-directory-card.dh-contact-item--facebook,
.contact-directory-card.dh-contact-item--custom {
  background: var(--dh-surface);
  box-shadow: var(--dh-shadow);
}

.contact-directory-card__icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 999px;
  color: var(--dh-white);
}

.contact-directory-card.dh-contact-item--phone .contact-directory-card__icon { background: #16a34a; }
.contact-directory-card.dh-contact-item--telegram .contact-directory-card__icon { background: #229ed9; }
.contact-directory-card.dh-contact-item--email .contact-directory-card__icon { background: #ea4335; }
.contact-directory-card.dh-contact-item--whatsapp .contact-directory-card__icon { background: #25d366; }
.contact-directory-card.dh-contact-item--wechat .contact-directory-card__icon { background: #07c160; }
.contact-directory-card.dh-contact-item--discord .contact-directory-card__icon { background: #5865f2; }
.contact-directory-card.dh-contact-item--viber .contact-directory-card__icon { background: #7360f2; }
.contact-directory-card.dh-contact-item--zalo .contact-directory-card__icon { background: #0068ff; }
.contact-directory-card.dh-contact-item--facebook .contact-directory-card__icon { background: #1877f2; }
.contact-directory-card.dh-contact-item--custom .contact-directory-card__icon { background: var(--dh-blue); }

.contact-directory-card__content {
  display: grid;
  gap: 4px;
}

.contact-directory-card__content strong {
  color: var(--dh-text);
  line-height: 1.2;
}

.contact-directory-card__content small {
  color: var(--dh-muted);
  line-height: 1.35;
  word-break: break-word;
}

.data-panel {
  overflow: hidden;
  border: 1px solid var(--dh-line);
  border-radius: var(--dh-radius);
  background: var(--dh-surface);
  box-shadow: var(--dh-shadow);
}

.data-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  background: var(--dh-ink);
  color: var(--dh-white);
}

.data-panel__head h2 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.25;
}

.data-panel__body {
  padding: 18px 20px 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.score-table,
.lottery-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: var(--dh-radius);
}

.score-table th,
.score-table td,
.lottery-table th,
.lottery-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--dh-line);
  text-align: left;
}

.score-table th,
.lottery-table th {
  color: var(--dh-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
}

.score-live {
  color: var(--dh-red);
  font-weight: 900;
}

.lottery-number {
  color: var(--dh-red);
  font-size: 1.2rem;
  font-weight: 900;
}

.lottery-embed-tabs {
  display: grid;
  gap: 14px;
}

.lottery-embed-tabs__nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.lottery-embed-tabs__nav button {
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--dh-line);
  border-radius: var(--dh-radius);
  background: var(--dh-surface);
  color: var(--dh-ink);
  font-weight: 900;
  cursor: pointer;
}

.lottery-embed-tabs__nav button.is-active,
.lottery-embed-tabs__nav button:hover {
  background: var(--dh-red);
  color: var(--dh-white);
}

.lottery-embed-panel {
  display: none;
}

.lottery-embed-panel.is-active {
  display: block;
}

.lottery-embed-panel h3 {
  margin: 0 0 12px;
  font-size: 1.08rem;
  line-height: 1.25;
}

.lottery-iframe-wrap {
  overflow: auto;
  width: 100%;
  border: 1px solid var(--dh-line);
  border-radius: var(--dh-radius);
  background: var(--dh-surface);
  -webkit-overflow-scrolling: touch;
}

.lottery-iframe-wrap iframe {
  display: block;
  max-width: none;
  margin-inline: auto;
}

.lottery-region-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.lottery-region-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--dh-line);
  border-radius: var(--dh-radius);
  background: var(--dh-surface);
  font-weight: 900;
}

.lottery-region-links a:hover,
.lottery-region-links a.is-active {
  background: var(--dh-red);
  color: var(--dh-white);
}

.lottery-page__content {
  margin-top: 22px;
}

.lottery-hero {
  position: relative;
  overflow: hidden;
}

.lottery-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, rgba(1, 71, 40, 0.96), rgba(207, 31, 50, 0.72)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 58px);
  z-index: 0;
}

.lottery-hero.has-background-image::before {
  background:
    linear-gradient(110deg, rgba(1, 71, 40, 0.88), rgba(16, 20, 22, 0.42)),
    var(--lottery-hero-image) center / cover no-repeat;
}

.lottery-hero .news-hero__inner {
  position: relative;
  z-index: 1;
}

.archive-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  padding: 54px 0 70px;
}

.entry-content,
.page-content {
  max-width: 820px;
  margin-inline: auto;
  padding: 42px 0 70px;
}

.entry-content img,
.page-content img {
  border-radius: var(--dh-radius);
}

.about-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 48px;
  color: var(--dh-white);
}

.about-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, rgba(1, 71, 40, 0.94), rgba(18, 103, 163, 0.76)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 34px);
  z-index: 0;
}

.about-hero.has-background-image::before {
  background:
    linear-gradient(110deg, rgba(1, 71, 40, 0.84), rgba(16, 20, 22, 0.4)),
    var(--about-background-image) center / cover no-repeat;
}

.about-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: 34px;
  align-items: center;
}

.about-hero h1 {
  max-width: 820px;
  margin: 0;
  font-family: "Montserrat", "Be Vietnam Pro", sans-serif;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.about-hero__media {
  overflow: hidden;
  min-height: 330px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--dh-radius);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: var(--dh-shadow);
}

.about-hero__media img {
  width: 100%;
  height: 100%;
  min-height: 330px;
  object-fit: cover;
}

.about-stat-board {
  display: grid;
  height: 100%;
  min-height: 330px;
  gap: 12px;
  padding: 18px;
}

.about-stat-board div {
  display: grid;
  align-content: center;
  min-height: 92px;
  padding: 16px;
  border-radius: var(--dh-radius);
  background: rgba(255, 255, 255, 0.92);
  color: var(--dh-ink);
}

.about-stat-board strong {
  color: var(--dh-red);
  font-size: 2rem;
  line-height: 1;
}

.about-stat-board span {
  color: var(--dh-muted);
  font-weight: 750;
}

.about-split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 20px;
}

.intro-panel--accent {
  background: var(--dh-ink);
  color: var(--dh-white);
}

.intro-panel--accent p {
  color: rgba(255, 255, 255, 0.78);
}

.about-content {
  max-width: 900px;
  padding: 30px;
  border: 1px solid var(--dh-line);
  border-radius: var(--dh-radius);
  background: var(--dh-surface);
  box-shadow: var(--dh-shadow);
}

.about-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.about-feature {
  padding: 22px;
  border: 1px solid var(--dh-line);
  border-radius: var(--dh-radius);
  background: var(--dh-surface);
  box-shadow: 0 14px 34px rgba(16, 20, 22, 0.08);
}

.about-feature__media {
  overflow: hidden;
  margin-bottom: 14px;
  border-radius: var(--dh-radius);
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, rgba(1, 71, 40, 0.92), rgba(18, 103, 163, 0.78));
}

.about-feature__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-feature__media--placeholder {
  background:
    linear-gradient(115deg, rgba(246, 196, 77, 0.46), rgba(207, 31, 50, 0.35)),
    linear-gradient(210deg, rgba(1, 71, 40, 0.92), rgba(18, 103, 163, 0.78));
}

.about-feature span {
  display: inline-grid;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  place-items: center;
  border-radius: 999px;
  background: var(--dh-sun);
  color: var(--dh-ink);
  font-weight: 900;
}

.about-feature h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  line-height: 1.3;
}

.about-feature p {
  margin: 0;
  color: var(--dh-muted);
}

.about-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 30px;
  border-radius: var(--dh-radius);
  background: var(--dh-grass-deep);
  color: var(--dh-white);
}

.about-cta h2 {
  margin: 0 0 8px;
  font-size: clamp(1.7rem, 3vw, 3rem);
  line-height: 1.12;
}

.about-cta p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.news-hero {
  position: relative;
  overflow: hidden;
  padding: 68px 0 46px;
  color: var(--dh-white);
}

.news-page .news-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, rgba(1, 71, 40, 0.96), rgba(207, 31, 50, 0.72)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 58px);
  z-index: 0;
}

.news-page .news-hero.has-background-image::before {
  background:
    linear-gradient(110deg, rgba(1, 71, 40, 0.86), rgba(16, 20, 22, 0.42)),
    var(--news-hero-image) center / cover no-repeat;
}

.news-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.42fr);
  gap: 30px;
  align-items: end;
}

.news-hero h1 {
  max-width: 860px;
  margin: 0;
  font-family: "Montserrat", "Be Vietnam Pro", sans-serif;
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.news-search {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--dh-radius);
  background: rgba(255, 255, 255, 0.13);
}

.news-search input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: var(--dh-radius);
  background: var(--dh-surface);
  color: var(--dh-ink);
}

.news-page__layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.news-sidebar {
  position: sticky;
  top: 112px;
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--dh-line);
  border-radius: var(--dh-radius);
  background: var(--dh-surface);
  box-shadow: 0 14px 34px rgba(16, 20, 22, 0.08);
}

.news-sidebar h2 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.news-sidebar a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 42px;
  padding: 9px 11px;
  border-radius: var(--dh-radius);
  color: var(--dh-ink);
  font-weight: 800;
}

.news-sidebar a:hover,
.news-sidebar a.is-active {
  background: var(--dh-ink);
  color: var(--dh-white);
}

.news-sidebar span {
  display: inline-grid;
  min-width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  background: rgba(16, 20, 22, 0.08);
  font-size: 0.82rem;
}

.news-sidebar a:hover span,
.news-sidebar a.is-active span {
  background: rgba(255, 255, 255, 0.18);
}

.news-page__main {
  min-width: 0;
}

.news-page__intro {
  margin-bottom: 22px;
  padding: 22px;
  border: 1px solid var(--dh-line);
  border-radius: var(--dh-radius);
  background: var(--dh-surface);
  box-shadow: 0 14px 34px rgba(16, 20, 22, 0.08);
}

.news-grid--page {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.news-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}

.news-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid var(--dh-line);
  border-radius: var(--dh-radius);
  background: var(--dh-surface);
  font-weight: 850;
}

.news-pagination .page-numbers.current,
.news-pagination .page-numbers:hover {
  background: var(--dh-ink);
  color: var(--dh-white);
}

.dh-side-banners {
  display: none;
}

@media (min-width: 1460px) {
  .dh-side-banners {
    display: block;
  }

  .dh-side-banner {
    position: fixed;
    top: 108px;
    z-index: 360;
    display: grid;
    grid-template-rows: minmax(340px, 1fr) auto;
    width: clamp(190px, 15vw, 230px);
    min-height: clamp(430px, 66vh, 640px);
    border: 1px solid var(--dh-line);
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--dh-grass), var(--dh-ink));
    color: var(--dh-white);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
    transition: transform 160ms ease, box-shadow 160ms ease;
  }

  .dh-side-banner:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.3);
  }

  .dh-side-banner--left {
    left: max(12px, calc((100vw - var(--dh-max)) / 2 - clamp(208px, 16vw, 248px)));
  }

  .dh-side-banner--right {
    right: max(12px, calc((100vw - var(--dh-max)) / 2 - clamp(208px, 16vw, 248px)));
  }

  .dh-side-banner img {
    width: 100%;
    height: 100%;
    min-height: 340px;
    object-fit: cover;
  }

  .dh-side-banner__content {
    display: grid;
    gap: 4px;
    padding: 12px 12px 14px;
    background: linear-gradient(180deg, rgba(16, 20, 22, 0), rgba(16, 20, 22, 0.8));
  }

  .dh-side-banner__content strong {
    font-size: 0.95rem;
    line-height: 1.2;
  }

  .dh-side-banner__content small {
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.78rem;
    line-height: 1.35;
    white-space: pre-line;
  }

  body.admin-bar .dh-side-banner {
    top: 140px;
  }
}

.site-footer {
  margin-top: auto;
  padding: 42px 0;
  background: var(--dh-ink);
  color: var(--dh-white);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
}

.site-footer p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
}

.no-results {
  padding: 24px;
  border: 1px dashed var(--dh-line);
  border-radius: var(--dh-radius);
  background: rgba(255, 255, 255, 0.65);
}

body.dh-theme-dark .headline-board__item,
body.dh-theme-dark .about-stat-board div,
body.dh-theme-dark .no-results {
  background: rgba(23, 33, 29, 0.86);
  color: var(--dh-ink);
}

body.dh-theme-dark .about-hero::before {
  background:
    linear-gradient(110deg, rgba(8, 22, 17, 0.94), rgba(18, 40, 32, 0.82)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 34px);
}

body.dh-theme-dark .intro-panel--accent {
  background: linear-gradient(135deg, #132720, #0d1a15);
  color: var(--dh-ink);
}

body.dh-theme-dark .intro-panel--accent p {
  color: rgba(245, 248, 244, 0.82);
}

body.dh-theme-dark .about-content,
body.dh-theme-dark .about-feature {
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.32);
}

body.dh-theme-dark .about-feature__media--placeholder {
  background:
    linear-gradient(115deg, rgba(246, 196, 77, 0.28), rgba(207, 31, 50, 0.22)),
    linear-gradient(210deg, rgba(10, 35, 25, 0.96), rgba(16, 52, 40, 0.84));
}

body.dh-theme-dark .about-cta {
  background: linear-gradient(135deg, #0e2a20, #154435);
}

body.dh-theme-dark .data-panel__head {
  background: linear-gradient(135deg, #12231d, #0b1713);
  color: var(--dh-ink);
}

body.dh-theme-dark .site-footer {
  background: #0a1411;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

body.dh-theme-dark .site-footer p {
  color: rgba(245, 248, 244, 0.82);
}

body.dh-theme-dark .primary-menu a:hover,
body.dh-theme-dark .primary-menu .current-menu-item > a,
body.dh-theme-dark .primary-menu .current-menu-ancestor > a,
body.dh-theme-dark .news-sidebar a:hover,
body.dh-theme-dark .news-sidebar a.is-active,
body.dh-theme-dark .news-pagination .page-numbers.current,
body.dh-theme-dark .news-pagination .page-numbers:hover {
  background: #143229;
  color: var(--dh-ink);
}

body.dh-theme-dark .news-sidebar a:hover span,
body.dh-theme-dark .news-sidebar a.is-active span {
  background: rgba(255, 255, 255, 0.14);
}

@media (prefers-color-scheme: dark) {
  body.dh-theme-system .headline-board__item,
  body.dh-theme-system .about-stat-board div,
  body.dh-theme-system .no-results {
    background: rgba(23, 33, 29, 0.86);
    color: var(--dh-ink);
  }

}

@media (max-width: 1100px) {
  .site-header__inner {
    gap: 12px;
  }

  .primary-menu a {
    padding-inline: 10px;
    font-size: 0.94rem;
  }

  .site-branding {
    max-width: 210px;
  }

  .hero {
    padding-top: 58px;
  }

  .banner-slider__slide {
    aspect-ratio: 16 / 7;
  }
}

@media (max-width: 920px) {
  .promo-link-grid,
  .promo-link-grid--count-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .promo-link-grid--count-1 {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-header__inner {
    grid-template-columns: minmax(0, 1fr) auto auto;
    position: relative;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
    justify-self: end;
    padding-inline: 10px;
    font-size: 0.82rem;
    font-weight: 900;
  }

  .primary-navigation {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    padding: 12px 16px 18px;
    border-bottom: 1px solid var(--dh-line);
    background: var(--dh-paper);
    box-shadow: var(--dh-shadow);
  }

  .primary-navigation.is-open {
    display: block;
  }

  .primary-menu,
  .primary-menu ul {
    display: grid;
    align-items: stretch;
    gap: 4px;
    width: 100%;
  }

  .primary-menu a {
    min-height: 46px;
    padding: 10px 12px;
  }

  .primary-menu .sub-menu {
    position: static;
    display: grid;
    min-width: 0;
    margin: 2px 0 8px 14px;
    padding: 4px;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .site-header__actions {
    justify-self: end;
  }

  .hero,
  .about-hero {
    padding-bottom: 54px;
  }

  .headline-board {
    max-width: 720px;
  }

  .hero__grid,
  .about-hero__grid,
  .intro-band,
  .about-split,
  .data-grid,
  .website-promo-grid,
  .contact-directory-grid {
    grid-template-columns: 1fr;
  }

  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-cta {
    grid-template-columns: 1fr;
  }

  .news-hero__inner,
  .news-page__layout {
    grid-template-columns: 1fr;
  }

  .news-sidebar {
    position: static;
  }

  .news-grid--page {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-hero__media,
  .about-hero__media img,
  .about-stat-board {
    min-height: 280px;
  }
}

@media (orientation: portrait) and (max-width: 1100px) {
  .intro-band {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .intro-panel,
  .ad-banner {
    width: min(100%, 760px);
    margin-inline: auto;
  }

  .ad-banner img,
  .banner-slider__slide img {
    object-position: center center;
  }
}

@media (max-width: 640px) {
  .promo-link-grid,
  .promo-link-grid--count-1,
  .promo-link-grid--count-2 {
    grid-template-columns: 1fr;
  }

  .promo-link-card,
  .promo-link-card--featured,
  .promo-link-grid--home .promo-link-card--featured {
    grid-column: auto;
    min-height: 210px;
    padding: 18px;
  }

  .promo-group-section {
    padding: 20px 0;
  }

  .promo-group-section__header {
    align-items: baseline;
  }

  .promo-group-section__header a {
    flex: 0 0 auto;
    font-size: 0.9rem;
  }

  .promo-link-card h3,
  .promo-link-card:not(.promo-link-card--featured) h3 {
    font-size: 1.35rem;
  }

  .dh-container {
    width: min(100% - 22px, var(--dh-max));
  }

  .site-header__inner {
    grid-template-columns: 1fr auto;
    min-height: 68px;
  }

  .site-branding {
    max-width: none;
  }

  .site-branding img {
    max-height: 46px;
  }

  .nav-toggle {
    width: auto;
    min-width: 58px;
  }

  .site-header__actions {
    grid-column: 1 / -1;
    justify-self: stretch;
    width: 100%;
  }

  .theme-toggle {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    min-height: 40px;
  }

  .header-contact {
    flex: 1 1 auto;
    min-height: 40px;
    padding: 8px 12px;
  }

  .header-contact {
    grid-column: 1 / -1;
  }

  .primary-navigation {
    padding-inline: 11px;
  }

  .hero {
    padding-top: 46px;
  }

  .about-hero {
    padding: 48px 0 38px;
  }

  .hero h1 {
    font-size: 2.4rem;
  }

  .about-hero h1 {
    font-size: 2.35rem;
  }

  .hero__lead {
    font-size: 1rem;
  }

  .hero__actions {
    display: grid;
  }

  .button,
  .wp-block-button__link,
  button.button {
    width: 100%;
  }

  .section {
    padding: 46px 0;
  }

  .section-header,
  .site-footer__inner {
    display: grid;
    align-items: start;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .news-hero {
    padding: 48px 0 36px;
  }

  .news-hero h1 {
    font-size: 2.35rem;
  }

  .news-search {
    padding: 12px;
  }

  .news-grid--page {
    grid-template-columns: 1fr;
  }

  .news-sidebar {
    padding: 12px;
  }

  .news-sidebar a {
    min-height: 48px;
  }

  .intro-panel,
  .about-content,
  .about-feature,
  .about-cta {
    padding: 20px;
  }

  .data-panel__head {
    display: grid;
    padding: 16px;
  }

  .data-panel__body {
    padding: 14px;
  }

  .score-table,
  .lottery-table {
    min-width: 460px;
  }

  .lottery-embed-tabs__nav {
    grid-template-columns: 1fr;
  }

  .lottery-embed-tabs__nav button {
    min-height: 46px;
  }

  .banner-slider__slide {
    aspect-ratio: 5 / 3;
  }

  .banner-slider__caption {
    left: 16px;
    bottom: 48px;
    max-width: calc(100% - 32px);
  }

  .banner-slider__caption small {
    display: none;
  }

  .banner-slider__arrow {
    width: 38px;
    height: 38px;
    font-size: 1.6rem;
  }

  .about-feature-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    padding: 34px 0;
  }

  .telegram-link {
    width: 100%;
  }

}

@media (max-width: 420px) {
  body {
    font-size: 15px;
  }

  .dh-container {
    width: min(100% - 18px, var(--dh-max));
  }

  .hero h1,
  .about-hero h1 {
    font-size: 2rem;
  }

  .section-title,
  .archive-title {
    font-size: 1.65rem;
  }

  .headline-board {
    padding: 10px;
  }

  .headline-board__item,
  .post-card__body {
    padding: 14px;
  }

  .banner-slider__caption {
    bottom: 42px;
  }

  .banner-slider__caption strong {
    font-size: 1.22rem;
  }

  .banner-slider__arrow {
    top: auto;
    bottom: 12px;
    transform: none;
  }

  .banner-slider__arrow--prev {
    left: 12px;
  }

  .banner-slider__arrow--next {
    right: 12px;
  }

  .banner-slider__dots {
    bottom: 22px;
  }
}

/* Mobile/tablet menu stability fixes: keep the menu in the document flow so it never covers the hero. */
@media (max-width: 1100px) {
  .site-header {
    position: sticky;
  }

  .site-header__inner {
    position: relative;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding-block: 8px;
  }

  .site-branding {
    order: 1;
    max-width: none;
  }

  .site-branding img {
    max-height: 48px;
  }

  .nav-toggle {
    order: 2;
    display: inline-grid;
    width: auto;
    min-width: 66px;
    height: 44px;
    place-items: center;
    padding-inline: 12px;
    font-size: 0.92rem;
    font-weight: 900;
    justify-self: end;
  }

  .site-header__actions {
    order: 3;
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
  }

  .theme-toggle {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    min-height: 44px;
  }

  .theme-toggle__icon {
    font-size: 1.1rem;
  }

  .header-contact {
    flex: 1 1 auto;
    min-height: 44px;
    font-size: 1rem;
  }

  .primary-navigation {
    position: static;
    order: 4;
    grid-column: 1 / -1;
    display: none;
    width: 100%;
    max-height: calc(100dvh - 130px);
    overflow-y: auto;
    padding: 8px;
    border: 1px solid var(--dh-line);
    border-radius: var(--dh-radius);
    background: var(--dh-paper);
    box-shadow: var(--dh-shadow);
  }

  .primary-navigation.is-open {
    display: block;
  }

  .primary-menu,
  .primary-menu ul {
    display: grid;
    width: 100%;
    gap: 6px;
  }

  .primary-menu li {
    width: 100%;
  }

  .primary-menu a {
    width: 100%;
    min-height: 46px;
    padding: 11px 14px;
    border-radius: var(--dh-radius);
    font-size: 0.98rem;
    line-height: 1.25;
  }

  .primary-menu .sub-menu {
    position: static;
    display: grid;
    width: 100%;
    min-width: 0;
    margin: 4px 0 10px;
    padding: 8px;
    border: 1px solid var(--dh-line);
    border-radius: var(--dh-radius);
    background: color-mix(in srgb, var(--dh-surface) 86%, transparent);
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .primary-menu .sub-menu a {
    min-height: 42px;
    padding-left: 18px;
    background: var(--dh-surface);
  }
}

@media (max-width: 640px) {
  .site-header__inner {
    padding-block: 4px 8px;
  }

  .site-branding img {
    max-height: 44px;
  }

  .nav-toggle {
    min-width: 62px;
    height: 40px;
    border-radius: 10px;
  }

  .theme-toggle {
    height: 40px;
    min-height: 40px;
  }

  .header-contact {
    min-height: 40px;
    font-size: 0.95rem;
  }

  .primary-navigation {
    max-height: calc(100dvh - 132px);
    padding: 10px;
  }

  .primary-menu a {
    min-height: 44px;
    padding: 11px 14px;
    font-size: 0.96rem;
  }

  .primary-menu .sub-menu {
    margin: 4px 0 12px;
    padding: 8px;
  }

  .hero,
  .about-hero {
    padding-top: 64px;
  }
}

@media (max-width: 420px) {
  .site-branding img {
    max-height: 40px;
  }

  .nav-toggle {
    min-width: 56px;
    height: 38px;
  }

  .theme-toggle {
    height: 38px;
    min-height: 38px;
  }

  .header-contact {
    min-height: 38px;
    font-size: 0.9rem;
  }

  .primary-menu a {
    min-height: 42px;
    font-size: 0.94rem;
  }
}

@media (max-width: 1100px) {
  .dh-contact-list--header {
    flex-wrap: nowrap;
    overflow-x: auto;
    max-width: 100%;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
  }

  .dh-contact-list--header .header-contact {
    flex: 0 0 42px;
    width: 42px;
    min-width: 42px;
    min-height: 42px;
    padding: 0;
    border-radius: 12px;
  }
}

@media (max-width: 640px) {
  .site-header__inner {
    gap: 8px;
  }

  .site-header__actions {
    gap: 6px;
  }

  .dh-contact-list--header {
    width: 100%;
  }

  .dh-contact-list--footer {
    width: auto;
    justify-content: flex-end;
  }
}

@media (orientation: portrait) and (max-width: 1024px) {
  .intro-band {
    justify-items: center;
  }

  .intro-panel,
  .ad-banner,
  .banner-slider {
    width: min(100%, 760px);
    margin-inline: auto;
  }

  .banner-slider__slide {
    aspect-ratio: 4 / 3;
  }

  .ad-banner img,
  .banner-slider__slide img {
    object-position: center center;
  }

  .banner-slider__caption {
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    max-width: calc(100% - 36px);
  }
}

@media (max-width: 640px) {
}

@media (max-width: 640px) and (orientation: portrait) {
  .site-header__inner {
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 6px;
    min-height: 58px;
    padding-block: 6px;
  }

  .site-branding img {
    max-height: 34px;
  }

  .site-header__actions {
    order: 2;
    grid-column: auto;
    justify-self: end;
    width: auto;
    max-width: 48vw;
    gap: 6px;
  }

  .nav-toggle {
    order: 3;
    min-width: 54px;
    height: 36px;
    padding-inline: 10px;
    font-size: 0.88rem;
    border-radius: 10px;
  }

  .theme-toggle {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    min-height: 36px;
    border-radius: 10px;
  }

  .theme-toggle__icon {
    font-size: 1rem;
  }

  .dh-contact-list--header {
    flex-wrap: nowrap;
    max-width: calc(48vw - 40px);
    overflow-x: auto;
    padding-bottom: 0;
    scrollbar-width: none;
  }

  .dh-contact-list--header::-webkit-scrollbar {
    display: none;
  }

  .dh-contact-list--header .header-contact {
    flex: 0 0 36px;
    width: 36px;
    min-width: 36px;
    min-height: 36px;
    border-radius: 10px;
  }
}

/* World Cup 2026 */
.world-cup-nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 11px;
  border: 1px solid rgba(207, 31, 50, 0.28);
  border-radius: var(--dh-radius);
  background: var(--dh-red);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 8px 22px rgba(207, 31, 50, 0.24);
}

.world-cup-nav-link span,
.wc-event-label span {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--dh-sun);
  box-shadow: 0 0 0 5px rgba(246, 196, 77, 0.18);
  animation: wc-pulse 1.8s ease-in-out infinite;
}

@keyframes wc-pulse {
  50% {
    opacity: 0.55;
    transform: scale(0.82);
  }
}

@media (min-width: 1101px) {
  .primary-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }
}

.wc-home-hero,
.wc-page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #071411 var(--wc-hero-image) center / cover no-repeat;
  color: #fff;
}

.wc-home-hero::before,
.wc-page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(4, 15, 18, 0.28);
}

.wc-home-hero {
  min-height: clamp(500px, calc(100svh - 170px), 670px);
}

.wc-home-hero__inner {
  display: flex;
  min-height: inherit;
  align-items: center;
  padding-block: 62px 70px;
}

.wc-home-hero__content {
  width: min(700px, 64%);
}

.wc-event-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  color: var(--dh-sun);
  font-size: 0.84rem;
  font-weight: 900;
  text-transform: uppercase;
}

.wc-home-hero h1,
.wc-page-hero h1 {
  margin: 0;
  font-family: "Montserrat", "Be Vietnam Pro", sans-serif;
  font-size: clamp(2.3rem, 5vw, 4.7rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.wc-home-hero__content > p:not(.wc-event-label),
.wc-page-hero__inner > p:not(.wc-event-label) {
  max-width: 650px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.04rem;
}

.wc-home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.wc-home-hero__stats,
.wc-page-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 34px;
}

.wc-home-hero__stats span,
.wc-page-hero__stats span {
  display: grid;
  min-width: 118px;
  gap: 2px;
  padding: 0 24px;
  border-left: 1px solid rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.78rem;
  font-weight: 750;
  text-transform: uppercase;
}

.wc-home-hero__stats span:first-child,
.wc-page-hero__stats span:first-child {
  padding-left: 0;
  border-left: 0;
}

.wc-home-hero__stats strong,
.wc-page-hero__stats strong {
  color: #fff;
  font-size: 1.6rem;
  line-height: 1.1;
}

.wc-home-matches {
  position: relative;
  z-index: 2;
  margin-top: -30px;
  padding-bottom: 28px;
}

.wc-home-matches > .dh-container {
  padding: 22px;
  border: 1px solid var(--dh-line);
  border-top: 4px solid var(--dh-red);
  border-radius: var(--dh-radius);
  background: var(--dh-surface);
  box-shadow: var(--dh-shadow);
}

.wc-home-matches__head,
.wc-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.wc-home-matches__head h2,
.wc-section-heading h2 {
  margin: 0;
  font-family: "Montserrat", "Be Vietnam Pro", sans-serif;
  font-size: clamp(1.45rem, 2.4vw, 2.2rem);
  line-height: 1.12;
}

.wc-home-matches__head > a {
  color: var(--dh-red);
  font-weight: 900;
  white-space: nowrap;
}

.wc-match-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.wc-match-grid--home {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.wc-match-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--dh-line);
  border-radius: var(--dh-radius);
  background: var(--dh-surface);
  box-shadow: 0 10px 28px rgba(16, 20, 22, 0.07);
}

.wc-match-card[hidden] {
  display: none;
}

.wc-match-card__meta,
.wc-match-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--dh-muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.wc-status {
  padding: 4px 7px;
  border-radius: 4px;
  background: rgba(93, 102, 107, 0.12);
}

.wc-status--live {
  background: var(--dh-red);
  color: #fff;
}

.wc-status--upcoming {
  background: rgba(18, 103, 163, 0.13);
  color: var(--dh-blue);
}

.wc-match-card__teams {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 66px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 92px;
  padding-block: 14px;
}

.wc-team {
  display: grid;
  min-width: 0;
  justify-items: center;
  gap: 7px;
  text-align: center;
}

.wc-team img,
.wc-team__flag {
  width: 32px;
  height: 22px;
  border: 1px solid rgba(16, 20, 22, 0.12);
  border-radius: 3px;
  background: var(--dh-line);
  object-fit: cover;
}

.wc-team strong {
  width: 100%;
  font-size: 0.83rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.wc-match-card__score {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: var(--dh-ink);
}

.wc-match-card__score strong {
  font-size: 1.5rem;
}

.wc-match-card__score time {
  padding: 7px 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 5px;
  background: #101416;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 900;
  box-shadow: 0 4px 12px rgba(16, 20, 22, 0.18);
}

.wc-match-card__foot {
  padding-top: 11px;
  border-top: 1px solid var(--dh-line);
  text-transform: none;
}

.wc-match-card--compact {
  padding: 12px;
  box-shadow: none;
}

.wc-match-card--compact .wc-match-card__teams {
  grid-template-columns: minmax(0, 1fr) 52px minmax(0, 1fr);
  min-height: 76px;
  padding-block: 10px;
}

.wc-match-card--compact .wc-match-card__foot {
  display: none;
}

.wc-page-hero__inner {
  padding-block: 82px 72px;
}

.wc-page-hero__inner > p:not(.wc-event-label) {
  max-width: 720px;
}

.wc-dashboard {
  padding-top: 34px;
}

.wc-dashboard__tabs,
.wc-match-filters {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.wc-dashboard__tabs {
  position: sticky;
  top: 86px;
  z-index: 20;
  margin-bottom: 32px;
  padding: 7px;
  border: 1px solid var(--dh-line);
  border-radius: var(--dh-radius);
  background: var(--dh-surface);
  box-shadow: 0 10px 30px rgba(16, 20, 22, 0.08);
}

.wc-dashboard__tabs button,
.wc-match-filters button {
  min-height: 42px;
  padding: 9px 14px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--dh-muted);
  font-weight: 850;
  white-space: nowrap;
  cursor: pointer;
}

.wc-dashboard__tabs button.is-active {
  background: var(--dh-ink);
  color: var(--dh-white);
}

.wc-match-filters {
  padding: 4px;
  border: 1px solid var(--dh-line);
  border-radius: var(--dh-radius);
  background: var(--dh-surface);
}

.wc-match-filters button {
  min-height: 36px;
  padding: 7px 11px;
  font-size: 0.82rem;
}

.wc-match-filters button.is-active {
  background: var(--dh-red);
  color: #fff;
}

.wc-dashboard__panel {
  display: none;
}

.wc-dashboard__panel.is-active {
  display: block;
}

.wc-standings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.wc-standing {
  overflow: hidden;
  border: 1px solid var(--dh-line);
  border-radius: var(--dh-radius);
  background: var(--dh-surface);
}

.wc-standing header {
  padding: 14px 16px;
  background: var(--dh-grass-deep);
  color: #fff;
}

.wc-standing h3 {
  margin: 0;
  font-size: 1rem;
}

.wc-standing__table-wrap {
  overflow-x: auto;
}

.wc-standing table {
  width: 100%;
  min-width: 430px;
  border-collapse: collapse;
}

.wc-standing th,
.wc-standing td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--dh-line);
  text-align: center;
}

.wc-standing tr:last-child td {
  border-bottom: 0;
}

.wc-standing th {
  color: var(--dh-muted);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.wc-standing td:first-child,
.wc-standing th:first-child {
  text-align: left;
}

.wc-standing td:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wc-standing td img {
  width: 26px;
  height: 18px;
  border-radius: 2px;
  object-fit: cover;
}

.wc-standing__position {
  display: inline-grid;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--dh-line);
  font-size: 0.72rem;
  font-weight: 900;
}

.wc-standing tr:nth-child(-n + 2) .wc-standing__position {
  background: var(--dh-sun);
  color: var(--dh-on-sun);
}

.wc-team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.wc-team-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--dh-line);
  border-radius: var(--dh-radius);
  background: var(--dh-surface);
}

.wc-team-card img {
  width: 54px;
  height: 36px;
  border-radius: 4px;
  object-fit: cover;
}

.wc-team-card div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.wc-team-card strong {
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.wc-team-card span {
  color: var(--dh-muted);
  font-size: 0.76rem;
  font-weight: 750;
  text-transform: uppercase;
}

.wc-stadium-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.wc-stadium-card {
  padding: 18px;
  border: 1px solid var(--dh-line);
  border-top: 4px solid var(--dh-blue);
  border-radius: var(--dh-radius);
  background: var(--dh-surface);
}

.wc-stadium-card span {
  color: var(--dh-blue);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.wc-stadium-card h3 {
  margin: 8px 0 6px;
  font-size: 1rem;
  line-height: 1.25;
}

.wc-stadium-card p {
  margin: 0 0 16px;
  color: var(--dh-muted);
}

.wc-stadium-card strong {
  color: var(--dh-red);
}

.wc-api-notice,
.wc-filter-empty {
  padding: 24px;
  border: 1px solid var(--dh-line);
  border-radius: var(--dh-radius);
  background: var(--dh-surface);
  text-align: center;
}

.wc-api-notice p {
  margin-bottom: 0;
  color: var(--dh-muted);
}

.wc-data-source {
  margin: 34px 0 0;
  color: var(--dh-muted);
  font-size: 0.78rem;
  text-align: center;
}

.wc-data-source a {
  color: var(--dh-blue);
  font-weight: 800;
}

body.dh-theme-dark .wc-home-matches > .dh-container,
body.dh-theme-dark .wc-match-card {
  border-color: rgba(255, 255, 255, 0.17);
}

body.dh-theme-dark .wc-match-card__score time {
  border-color: rgba(255, 255, 255, 0.24);
  background: #070b0d;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.42);
}

body.dh-theme-dark .wc-status--upcoming {
  background: rgba(76, 181, 238, 0.16);
  color: #78ccfa;
}

body.dh-theme-dark .wc-status:not(.wc-status--live):not(.wc-status--upcoming) {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(245, 248, 244, 0.82);
}

body.dh-theme-dark .wc-dashboard__tabs {
  border-color: rgba(255, 255, 255, 0.17);
  background: #121e19;
}

body.dh-theme-dark .wc-dashboard__tabs button {
  color: rgba(245, 248, 244, 0.72);
}

body.dh-theme-dark .wc-dashboard__tabs button:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

body.dh-theme-dark .wc-dashboard__tabs button.is-active {
  background: var(--dh-red);
  color: #ffffff;
  box-shadow: 0 5px 14px rgba(207, 31, 50, 0.28);
}

@media (max-width: 1100px) {
  .primary-navigation {
    align-items: stretch;
  }

  .world-cup-nav-link {
    justify-content: center;
    margin: 8px 10px 0;
  }

  .wc-match-grid--home,
  .wc-team-grid,
  .wc-stadium-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .wc-home-hero {
    min-height: 560px;
    background-position: 62% center;
  }

  .wc-home-hero::before,
  .wc-page-hero::before {
    background: rgba(4, 15, 18, 0.5);
  }

  .wc-home-hero__content {
    width: min(680px, 82%);
  }

  .wc-match-grid,
  .wc-standings-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .wc-dashboard__tabs {
    top: 8px;
  }
}

@media (max-width: 640px) {
  .wc-home-hero {
    min-height: 520px;
    background-position: 68% center;
  }

  .wc-home-hero__inner {
    align-items: end;
    padding-block: 50px 62px;
  }

  .wc-home-hero__content {
    width: 100%;
  }

  .wc-home-hero h1,
  .wc-page-hero h1 {
    font-size: 2.35rem;
  }

  .wc-home-hero__content > p:not(.wc-event-label),
  .wc-page-hero__inner > p:not(.wc-event-label) {
    font-size: 0.92rem;
  }

  .wc-home-hero__stats span,
  .wc-page-hero__stats span {
    min-width: 92px;
    padding-inline: 13px;
    font-size: 0.66rem;
  }

  .wc-home-hero__stats strong,
  .wc-page-hero__stats strong {
    font-size: 1.25rem;
  }

  .wc-home-matches {
    margin-top: -22px;
  }

  .wc-home-matches > .dh-container {
    width: min(100% - 20px, var(--dh-max));
    padding: 16px;
  }

  .wc-home-matches__head,
  .wc-section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .wc-home-matches__head > a {
    white-space: normal;
  }

  .wc-match-grid--home,
  .wc-team-grid,
  .wc-stadium-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .wc-page-hero {
    background-position: 65% center;
  }

  .wc-page-hero__inner {
    padding-block: 58px 52px;
  }

  .wc-dashboard {
    padding-top: 22px;
  }

  .wc-dashboard__tabs {
    width: calc(100% + 16px);
    margin-left: -8px;
    margin-bottom: 26px;
  }

  .wc-dashboard__tabs button {
    min-height: 40px;
    padding-inline: 11px;
    font-size: 0.78rem;
  }

  .wc-match-filters {
    width: 100%;
  }

  .wc-standing table {
    min-width: 390px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .world-cup-nav-link span,
  .wc-event-label span {
    animation: none;
  }
}

/* ===== Crisp Chat (no custom styles needed — uses native Crisp UI) ===== */

