/* =============================================
   xe8 RESPONSIBLE GAMBLING PAGE — style.css
   YMYL Trust page — clean, authoritative, mobile-first
   ============================================= */

/* ---- CSS Variables ---- */
:root {
  --navy:        #0d1b3e;
  --navy-mid:    #022a99;
  --blue-acc:    #022a99;
  --orange:      #ff7f00;
  --orange-dark: #d96b00;
  --orange-soft: #fff3e0;
  --green:       #1a7a4a;
  --green-soft:  #edf7f2;
  --white:       #ffffff;
  --off-white:   #f5f6fa;
  --grey-light:  #e8eaf0;
  --grey-mid:    #8a90a2;
  --text-dark:   #1a1a2e;
  --text-body:   #3a3a4a;
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --shadow-sm:   0 2px 8px rgba(0,0,0,0.07);
  --shadow-md:   0 6px 24px rgba(0,0,0,0.10);
  --transition:  0.2s ease;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Barlow', sans-serif;
  font-size: 16px;
  color: var(--text-body);
  background: var(--white);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

/* ---- Typography ---- */
h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 900;
  line-height: 1.05;
  color: var(--text-dark);
}
h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(28px, 4.5vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-dark);
}
h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(20px, 2.8vw, 28px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-dark);
}
h4 {
  font-family: 'Barlow', sans-serif;
  font-size: clamp(16px, 2vw, 18px);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-dark);
}
p {
  font-size: clamp(15px, 1.8vw, 17px);
  line-height: 1.75;
}

.label-text {
  font-size: clamp(12px, 1.4vw, 14px);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.3;
  color: var(--grey-mid);
}

/* ---- Layout ---- */
.container {
  width: 100%;
  max-width: 900px;   /* narrower — trust/reading page */
  margin: 0 auto;
  padding: 0 20px;
}

.container-wide {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-pad    { padding: 60px 0; }
.section-pad-sm { padding: 40px 0; }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  text-align: center;
}

.btn-orange { background: var(--orange); color: var(--white); }
.btn-orange:hover {
  background: var(--orange-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(255,127,0,0.35);
}

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

.btn-navy {
  background: var(--navy-mid);
  color: var(--white);
}
.btn-navy:hover { background: var(--navy); transform: translateY(-1px); }

/* =============================================
   NAVIGATION
   ============================================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 60px;
  max-width: 1100px;
  margin: 0 auto;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.02em;
}
.logo-text span { color: var(--orange); }

.nav-links {
  display: none;
  gap: 6px;
  align-items: center;
}

.nav-links a {
  color: rgba(255,255,255,0.8);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

.nav-links a:hover { color: var(--white); background: rgba(255,255,255,0.08); }

.nav-cta-group { display: none; gap: 8px; align-items: center; }

.nav-cta-group .btn { padding: 8px 18px; font-size: 0.85rem; }

.btn-nav-login {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-sm);
  padding: 8px 18px;
  font-size: 0.85rem;
  font-weight: 700;
  transition: background var(--transition);
}
.btn-nav-login:hover { background: rgba(255,255,255,0.1); }

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.25s ease;
}

.mobile-menu {
  display: none;
  background: var(--navy-mid);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.mobile-menu.open { display: block; }

.mobile-menu a {
  display: block;
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 14px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color var(--transition), padding-left var(--transition);
}
.mobile-menu a:hover { color: var(--orange); padding-left: 32px; }

.mobile-menu-cta {
  display: flex;
  gap: 12px;
  padding: 16px 24px;
}
.mobile-menu-cta .btn { flex: 1; text-align: center; }

/* =============================================
   PAGE HERO — Trust style (no images, no flash)
   ============================================= */
.rg-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 52px 0 48px;
  text-align: center;
}

.rg-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  padding: 6px 16px;
  margin-bottom: 20px;
}

.rg-hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4caf82;
  flex-shrink: 0;
}

.rg-hero-badge span {
  font-size: 14px;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.rg-hero h1 {
  color: var(--white);
  margin-bottom: 18px;
}

.rg-hero p {
  color: rgba(255,255,255,0.75);
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto 28px;
  line-height: 1.75;
}

.rg-hero-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 32px;
}

.rg-tool-chip {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 16px;
}

/* =============================================
   BREADCRUMB
   ============================================= */
.breadcrumb {
  background: var(--off-white);
  border-bottom: 1px solid var(--grey-light);
  padding: 10px 0;
}

.breadcrumb-inner {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--grey-mid);
}
.breadcrumb-inner a       { color: var(--blue-acc); }
.breadcrumb-inner a:hover { text-decoration: underline; }
.breadcrumb-inner .current { color: var(--text-dark); font-weight: 600; }

/* =============================================
   SECTION HEADERS
   ============================================= */
.section-header { margin-bottom: 32px; }
.section-header .label-text { margin-bottom: 8px; }
.section-header h2 { margin-bottom: 12px; }
.section-header .section-desc {
  font-size: 0.97rem;
  color: var(--text-body);
  line-height: 1.75;
  max-width: 720px;
}

/* =============================================
   WHAT IS RG — Intro
   ============================================= */
.intro-section { background: var(--white); }

.intro-text {
  font-size: 1rem;
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: 18px;
}

.intro-text strong { color: var(--navy-mid); }

.intro-highlight {
  background: var(--off-white);
  border-left: 4px solid var(--blue-acc);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 18px 22px;
  font-size: 0.97rem;
  color: var(--text-body);
  line-height: 1.75;
  margin: 24px 0;
}

.intro-highlight strong { color: var(--navy-mid); }

/* =============================================
   TOOLS TABLE — Desktop + Mobile card fallback
   ============================================= */
.tools-section { background: var(--off-white); }

/* Desktop table */
.tools-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.tools-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  min-width: 560px;
}

.tools-table thead tr { background: var(--navy-mid); }

.tools-table thead th {
  color: var(--white);
  font-weight: 700;
  padding: 13px 16px;
  text-align: left;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tools-table thead th:first-child { border-radius: var(--radius-sm) 0 0 0; }
.tools-table thead th:last-child  { border-radius: 0 var(--radius-sm) 0 0; }

.tools-table tbody tr:nth-child(odd)  { background: var(--white); }
.tools-table tbody tr:nth-child(even) { background: #f0f2f8; }
.tools-table tbody tr:hover { background: #e8ecf8; }

.tools-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--grey-light);
  vertical-align: top;
  line-height: 1.6;
}

.tools-table .tool-name {
  font-weight: 700;
  color: var(--navy-mid);
  white-space: nowrap;
}

.tool-effect-badge {
  display: inline-block;
  margin-top: 6px;
  font-size: 14px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 10px;
  background: var(--green-soft);
  color: var(--green);
}

.tool-effect-badge.instant { background: #e8f4ff; color: #1a5e9a; }
.tool-effect-badge.warn    { background: #fff3e0; color: #c96300; }

/* Mobile tool cards */
.tools-cards { display: none; }

.tool-card {
  background: var(--white);
  border: 1px solid var(--grey-light);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.tool-card-header {
  background: var(--navy-mid);
  color: var(--white);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
}

.tool-card-name { font-weight: 700; font-size: 0.95rem; }

.tool-card-body { padding: 14px 16px; }

.tool-card-row { margin-bottom: 10px; font-size: 0.875rem; }
.tool-card-row:last-child { margin-bottom: 0; }

.tool-card-label {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--grey-mid);
  margin-bottom: 3px;
}

.tool-card-value { color: var(--text-body); line-height: 1.5; }
.tool-card-value.bold { color: var(--text-dark); font-weight: 600; }

/* =============================================
   SIGNS SECTION
   ============================================= */
.signs-section { background: var(--white); }

.signs-intro {
  font-size: 0.97rem;
  color: var(--text-body);
  line-height: 1.75;
  margin-bottom: 28px;
}

.signs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.sign-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--off-white);
  border: 1px solid var(--grey-light);
  border-radius: var(--radius-md);
  padding: 16px 18px;
}

.sign-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  font-weight: 900;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sign-content h3 {
  font-size: 0.95rem;
  color: var(--navy-mid);
  margin-bottom: 5px;
}

.sign-content p {
  font-size: 0.875rem;
  color: var(--text-body);
  line-height: 1.6;
}

.signs-note {
  margin-top: 24px;
  background: var(--orange-soft);
  border-left: 4px solid var(--orange);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px;
  font-size: 0.875rem;
  color: var(--text-body);
  line-height: 1.7;
}

.signs-note strong { color: var(--navy-mid); }

/* =============================================
   SELF-EXCLUSION HOW-TO
   ============================================= */
.howto-section { background: var(--off-white); }

.howto-steps { margin-top: 28px; }

.howto-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 20px;
  position: relative;
}

/* Vertical connector line */
.howto-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 20px;
  top: 44px;
  width: 2px;
  height: calc(100% - 8px);
  background: var(--grey-light);
}

.howto-step-num {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--navy-mid);
  color: var(--white);
  font-weight: 900;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  position: relative;
}

.howto-step-content {
  background: var(--white);
  border: 1px solid var(--grey-light);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  flex: 1;
  box-shadow: var(--shadow-sm);
}

.howto-step-content p {
  font-size: 0.9rem;
  color: var(--text-body);
  line-height: 1.65;
}

.howto-step-content strong { color: var(--navy-mid); }

.howto-warning {
  margin-top: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #c96300;
  background: #fff3e0;
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  display: inline-block;
}

/* =============================================
   SUPPORT RESOURCES
   ============================================= */
.support-section { background: var(--white); }

/* Desktop table */
.support-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.support-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 440px;
}

.support-table thead tr { background: var(--green); }

.support-table thead th {
  color: var(--white);
  font-weight: 700;
  padding: 12px 16px;
  text-align: left;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.support-table thead th:first-child { border-radius: var(--radius-sm) 0 0 0; }
.support-table thead th:last-child  { border-radius: 0 var(--radius-sm) 0 0; }

.support-table tbody tr:nth-child(odd)  { background: var(--green-soft); }
.support-table tbody tr:nth-child(even) { background: var(--white); }

.support-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--grey-light);
  vertical-align: top;
  line-height: 1.6;
}

.support-table .org-name { font-weight: 700; color: var(--navy-mid); }

.support-table .contact-link {
  font-weight: 700;
  color: var(--green);
}

/* Mobile support cards */
.support-cards { display: none; }

.support-card {
  background: var(--green-soft);
  border: 1px solid #b8dece;
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-bottom: 12px;
}

.support-card-org {
  font-weight: 700;
  color: var(--navy-mid);
  font-size: 0.95rem;
  margin-bottom: 5px;
}

.support-card-service {
  font-size: 0.875rem;
  color: var(--text-body);
  margin-bottom: 8px;
  line-height: 1.5;
}

.support-card-contact {
  font-weight: 700;
  color: var(--green);
  font-size: 0.9rem;
}

.confidentiality-note {
  margin-top: 28px;
  background: var(--off-white);
  border: 1px solid var(--grey-light);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  font-size: 0.875rem;
  color: var(--text-body);
  line-height: 1.7;
}

.confidentiality-note strong { color: var(--navy-mid); }

/* =============================================
   FAQ SECTION
   ============================================= */
.faq-section { background: var(--off-white); }

.faq-list { margin-top: 28px; }

.faq-item {
  background: var(--white);
  border: 1px solid var(--grey-light);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  text-align: left;
  gap: 12px;
}

.faq-question-text {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-dark);
  line-height: 1.4;
  flex: 1;
}

.faq-chevron {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--off-white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.faq-chevron svg {
  width: 12px;
  height: 12px;
  stroke: var(--grey-mid);
  stroke-width: 2.5;
  fill: none;
  transition: transform var(--transition);
}

.faq-item.open .faq-chevron { background: var(--navy-mid); }
.faq-item.open .faq-chevron svg { stroke: var(--white); transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-item.open .faq-answer { max-height: 600px; }

.faq-answer-inner {
  padding: 16px 20px 20px;
  font-size: 0.9rem;
  color: var(--text-body);
  line-height: 1.75;
  border-top: 1px solid var(--grey-light);
}

/* =============================================
   COMMITMENT SECTION
   ============================================= */
.commitment-section {
  background: linear-gradient(135deg, var(--navy-mid) 0%, var(--navy) 100%);
  color: var(--white);
  text-align: center;
}

.commitment-section h2 { color: var(--white); margin-bottom: 16px; }

.commitment-section p {
  color: rgba(255,255,255,0.78);
  font-size: 0.97rem;
  max-width: 580px;
  margin: 0 auto 28px;
  line-height: 1.75;
}

.commitment-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 32px;
}

.commitment-tool {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.9);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 20px;
}

.commitment-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  margin-bottom: 36px;
}

.footer-brand .logo-text { font-size: 1.5rem; margin-bottom: 12px; display: inline-block; }

.footer-desc {
  font-size: 0.875rem;
  line-height: 1.7;
  margin-bottom: 18px;
  color: rgba(255,255,255,0.6);
}

.footer-social { display: flex; gap: 12px; }

.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  transition: background var(--transition);
}
.social-btn:hover { background: var(--orange); }

.footer-col h4 {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--white);
  margin-bottom: 14px;
}

.footer-col ul li { margin-bottom: 10px; }

.footer-col ul li a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--orange); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (min-width: 600px) {
  .signs-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 768px) {
  .section-pad { padding: 80px 0; }

  /* Nav */
  .hamburger     { display: none; }
  .nav-links     { display: flex; }
  .nav-cta-group { display: flex; }
  .mobile-menu   { display: none !important; }

  /* Footer */
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

/* Table vs card switch */
@media (max-width: 767px) {
  .tools-table-wrap   { display: none; }
  .tools-cards        { display: block; }
  .support-table-wrap { display: none; }
  .support-cards      { display: block; }
}

@media (min-width: 768px) {
  .tools-table-wrap   { display: block; }
  .tools-cards        { display: none; }
  .support-table-wrap { display: block; }
  .support-cards      { display: none; }
}

/* =============================================
   NAV + FOOTER — Benchmark override (guide/shared.css)
   ============================================= */

:root {
  --nav-bg:     #ffffff;
  --nav-border: #e2e4ed;
  --nav-text:   #374151;
  --grey-dark:  #555a6e;
  --footer-bg:  #eef0f5;
}

.navbar {
  position: sticky; top: 0; z-index: 200;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--nav-border);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.navbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; max-width: 1100px; margin: 0 auto; padding: 0 20px;
}
.logo-xe { font-size: 1.55rem; font-weight: 900; color: var(--navy); letter-spacing: -0.03em; line-height: 1; }
.logo-8  { font-size: 1.55rem; font-weight: 900; color: var(--orange); letter-spacing: -0.03em; line-height: 1; }
.nav-links { display: none; gap: 2px; align-items: center; }
.nav-item { position: relative; }
.nav-item > a {
  display: block; color: var(--nav-text); font-size: 0.82rem; font-weight: 600;
  padding: 6px 11px; border-radius: var(--radius-sm);
  letter-spacing: 0.02em; text-transform: uppercase;
  transition: color var(--transition); text-decoration: none;
}
.nav-item > a:hover  { color: var(--orange); }
.nav-item > a.active { color: var(--orange); }
.nav-item.has-dropdown > a::after {
  content: ''; display: inline-block;
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  margin-left: 5px; vertical-align: middle; opacity: 0.6;
  transition: transform var(--transition);
}
.dropdown {
  display: none; position: absolute; top: calc(100% + 4px); left: 0;
  background: var(--white); border: 1px solid var(--grey-light);
  border-radius: var(--radius-md); min-width: 210px;
  box-shadow: var(--shadow-md); z-index: 300; overflow: hidden;
}
.nav-item.has-dropdown:hover .dropdown,
.nav-item.has-dropdown.open  .dropdown { display: block; }
.dropdown a {
  display: block; padding: 11px 16px; font-size: 0.82rem; font-weight: 600;
  color: var(--text-body); border-bottom: 1px solid var(--grey-light);
  transition: color var(--transition), background var(--transition);
  text-decoration: none; text-transform: none; letter-spacing: 0;
}
.dropdown a:last-child { border-bottom: none; }
.dropdown a:hover { color: var(--orange); background: var(--off-white); }
.nav-right { display: none; align-items: center; gap: 10px; }

.nav-login {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid rgba(13,27,75,0.35);
  border-radius: 6px;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.nav-login:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

@keyframes register-pulse {
  0%, 100% { box-shadow: 0 4px 14px rgba(255,127,0,0.4), 0 0 0 0 rgba(255,127,0,0.25); }
  50%       { box-shadow: 0 4px 14px rgba(255,127,0,0.4), 0 0 0 8px rgba(255,127,0,0); }
}
.nav-register {
  display: inline-flex;
  align-items: center;
  padding: 9px 22px;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
  border-radius: 6px;
  white-space: nowrap;
  animation: register-pulse 2.5s ease-in-out infinite;
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}
.nav-register:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(255,127,0,0.6);
  animation: none;
  color: var(--white);
}
.hamburger { display: flex; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; background: none; border: none; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: all 0.25s ease; }
.mobile-menu { display: none; background: var(--white); border-top: 1px solid var(--nav-border); box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.mobile-menu.open { display: block; }
.mobile-menu > a {
  display: block; color: var(--text-dark); font-size: 0.9rem; font-weight: 600;
  padding: 13px 24px; border-bottom: 1px solid var(--grey-light);
  text-transform: uppercase; letter-spacing: 0.03em;
  transition: color var(--transition), background var(--transition); text-decoration: none;
}
.mobile-menu > a:hover  { color: var(--orange); background: var(--off-white); }
.mobile-menu > a.active { color: var(--orange); }
.mobile-sub { background: var(--off-white); border-bottom: 1px solid var(--grey-light); }
.mobile-sub a {
  display: block; color: var(--grey-dark); font-size: 0.85rem; font-weight: 600;
  padding: 10px 24px 10px 36px; border-bottom: 1px solid var(--grey-light);
  transition: color var(--transition); text-decoration: none;
}
.mobile-sub a:last-child { border-bottom: none; }
.mobile-sub a:hover  { color: var(--orange); }
.mobile-menu-actions {
  display: flex;
  gap: 10px;
  padding: 16px 20px 20px;
}
.mobile-menu-actions a {
  flex: 1;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 13px 10px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s, filter 0.2s;
}
.mobile-login {
  color: var(--navy);
  border: 2px solid rgba(13,27,75,0.35);
}
.mobile-login:hover {
  background: var(--navy);
  color: var(--white);
}
.mobile-register {
  color: var(--white);
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
  box-shadow: 0 4px 12px rgba(255,127,0,0.35);
}
.mobile-register:hover {
  filter: brightness(1.08);
  box-shadow: 0 6px 18px rgba(255,127,0,0.5);
}
.footer { background: var(--footer-bg); border-top: 1px solid var(--grey-light); padding: 52px 0 0; color: var(--text-body); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 36px; padding-bottom: 40px; }
.footer-logo { display: flex; align-items: center; margin-bottom: 14px; }
.footer-logo .logo-xe { font-size: 1.6rem; }
.footer-logo .logo-8  { font-size: 1.6rem; }
.footer-desc { font-size: 0.875rem; color: var(--grey-dark); line-height: 1.7; margin-bottom: 18px; max-width: 280px; }
.footer-social { display: flex; gap: 10px; }
.social-btn { width: 38px; height: 38px; border-radius: 50%; background: var(--navy); display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 0.8rem; font-weight: 700; transition: background var(--transition), transform var(--transition); text-decoration: none; }
.social-btn:hover { background: var(--orange); transform: translateY(-2px); }
.footer-col h4 { font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dark); margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 0.875rem; color: var(--grey-dark); transition: color var(--transition); text-decoration: none; }
.footer-col ul li a:hover { color: var(--orange); }
.footer-contact h4 { font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dark); margin-bottom: 12px; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 10px; font-size: 13px; color: var(--grey-dark); line-height: 1.5; }
.footer-contact-item svg { flex-shrink: 0; margin-top: 2px; color: var(--orange); }
.footer-contact-item a { color: var(--grey-dark); transition: color 0.2s; }
.footer-contact-item a:hover { color: var(--orange); }
.footer-map { margin-top: 14px; border-radius: 8px; overflow: hidden; border: 1px solid var(--grey-light); }
.footer-map iframe { display: block; width: 100%; height: 130px; border: 0; }

.footer-bottom { border-top: 1px solid var(--grey-light); padding: 18px 0; text-align: center; font-size: 0.78rem; color: var(--grey-mid); }
@media (min-width: 768px) {
  .hamburger   { display: none; }
  .nav-links   { display: flex; }
  .nav-right   { display: flex; }
  .mobile-menu { display: none !important; }
  .footer-grid { grid-template-columns: 1.8fr 1fr 1fr 1.4fr; }
}

/* Site logo image */
.site-logo-img {
  height: 36px;
  width: auto;
  display: block;
}
.footer-logo .site-logo-img,
.footer-brand .site-logo-img {
  height: 30px;
}

/* ── Scroll-to-top button ── */
#scroll-top {
  position: fixed;
  bottom: 28px;
  right: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #ff7f00;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background 0.2s;
  z-index: 999;
}
#scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
#scroll-top:hover { background: #d96b00; }
#scroll-top:focus-visible { outline: 3px solid #ff7f00; outline-offset: 3px; }
