/* ============================================================
   DuyTom Joomla 4.x Template — template.css v1.3
   
   FIXES in v1.3:
   1. Nav: "Trang chủ" shows as "current" on sub-pages — 
      only highlight when BOTH current+active (actual active page)
   2. Mobile: brand text hidden at ≤480px — show on all sizes
   3. Category banner: title shows as "Tin tuc" (no diacritics) —
      use $this->category->title which has proper Vietnamese
   4. Category banner: per-category color theming
   5. Pagination: icon-angle-* classes need CSS icon styling
   6. Mobile nav: full fix with Joomla 4 script placement
   ============================================================ */

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

:root {
  --dt-navy:       #0D47A1;
  --dt-navy-dark:  #0D1B3E;
  --dt-navy-mid:   #1565C0;
  --dt-teal:       #0E7490;
  --dt-amber:      #B45309;
  --dt-bg:         #FAFAF8;
  --dt-white:      #FFFFFF;
  --dt-text:       #1A1A2E;
  --dt-muted:      #4B5563;
  --dt-light:      #6B7280;
  --dt-border:     #E2E8F0;
  --dt-shadow-sm:  0 1px 4px rgba(13,71,161,.06);
  --dt-shadow-md:  0 4px 16px rgba(13,71,161,.10);
  --dt-shadow-lg:  0 12px 32px rgba(13,71,161,.14);
  --dt-radius:     0.5rem;
  --dt-serif:      'Playfair Display', Georgia, 'Times New Roman', serif;
  --dt-sans:       'Inter', system-ui, -apple-system, Arial, sans-serif;
  --dt-max:        1060px;
  --dt-ease:       cubic-bezier(0.23, 1, 0.32, 1);
}

html { font-size: 15px; scroll-behavior: smooth; }
body {
  font-family: var(--dt-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--dt-text);
  background: var(--dt-bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--dt-serif);
  line-height: 1.25;
  letter-spacing: -.01em;
  color: var(--dt-navy-dark);
}
a { color: var(--dt-navy); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--dt-navy-mid); }
img { display: block; max-width: 100%; height: auto; }

/* ── Container ── */
.dt-container {
  width: 100%;
  max-width: var(--dt-max);
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 640px)  { .dt-container { padding: 0 1.5rem; } }
@media (min-width: 1080px) { .dt-container { padding: 0 2rem; } }

/* ══════════════════════════════════════════
   HEADER
══════════════════════════════════════════ */
.dt-header {
  background: var(--dt-white);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow .2s ease;
}
.dt-header.scrolled { box-shadow: 0 2px 20px rgba(13,71,161,.10); }

.dt-accent-bar {
  height: 3px;
  background: linear-gradient(90deg, #0D47A1, #1976D2, #0E7490);
}

.dt-header-inner {
  max-width: var(--dt-max);
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 1rem;
  position: relative; /* needed for absolute mobile nav */
}
@media (min-width: 640px) { .dt-header-inner { padding: 0 1.5rem; } }

/* ── Brand / Masthead ── */
.dt-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  flex-shrink: 0;
}
.dt-brand:hover { text-decoration: none; opacity: .9; }
.dt-brand-logo { height: 48px; width: auto; transition: opacity .2s ease; }
.dt-brand-text { display: flex; flex-direction: column; line-height: 1; }
.dt-brand-name {
  font-family: var(--dt-serif);
  font-size: 22px;
  font-weight: 800;
  color: var(--dt-navy-dark);
  letter-spacing: -.02em;
}
.dt-brand-tagline {
  font-family: var(--dt-sans);
  font-size: 9px;
  font-weight: 600;
  color: var(--dt-navy);
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-top: 3px;
}
/* FIX #2: Show brand text on ALL screen sizes (was hidden ≤480px) */
/* Only hide the tagline on very small screens, keep the name */
@media (max-width: 360px) {
  .dt-brand-tagline { display: none; }
}

/* ── Navigation ──
   Joomla outputs:
   <ul class="mod-menu mod-list nav nav-pills">
     <li class="nav-item item-NNN [current] [active]">
   
   FIX #1: On sub-pages, Joomla adds "current" to Home AND the active page.
   Only highlight when LI has BOTH "current" AND "active" classes.
   On the home page itself, LI has "current active" — also correct.
   So: only style li.active (which is the truly active page).
   "current" alone (Home on sub-pages) should NOT be highlighted.
*/
.dt-nav { display: flex; align-items: center; }

.dt-nav ul.mod-menu,
.dt-nav ul.nav-pills,
.dt-nav ul.nav {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0;
  margin: 0;
  border: none;
  background: none;
}

.dt-nav ul > li {
  position: relative;
  padding: 0;
  margin: 0;
  border: none;
  background: none;
}

.dt-nav ul > li > a {
  display: block;
  padding: .5rem 1rem;
  font-family: var(--dt-sans);
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  letter-spacing: .01em;
  border-radius: 4px;
  transition: color .15s ease, background .15s ease;
  text-decoration: none;
  position: relative;
  background: none;
  border: none;
}

/* Underline indicator */
.dt-nav ul > li > a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: var(--dt-navy);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s var(--dt-ease);
}

/* Hover */
.dt-nav ul > li > a:hover {
  color: var(--dt-navy);
  background: #EEF2FF;
  text-decoration: none;
}
.dt-nav ul > li > a:hover::after { transform: scaleX(1); }

/* FIX #1: Only highlight when "active" class is present (truly active page).
   Do NOT highlight "current" alone (Joomla adds current to Home on all sub-pages) */
.dt-nav ul > li.active > a {
  color: var(--dt-navy);
  background: #EEF2FF;
}
.dt-nav ul > li.active > a::after { transform: scaleX(1); }

/* Remove highlight from "current" only (without "active") */
.dt-nav ul > li.current:not(.active) > a {
  color: #374151;
  background: none;
}
.dt-nav ul > li.current:not(.active) > a::after { transform: scaleX(0); }

/* Mobile toggle */
.dt-nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: .5rem;
  cursor: pointer;
  color: #6B7280;
  border-radius: 6px;
  transition: background .15s, color .15s;
}
.dt-nav-toggle:hover { background: #EEF2FF; color: var(--dt-navy); }
.dt-hamburger { display: flex; flex-direction: column; gap: 5px; width: 22px; }
.dt-hamburger span {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}

/* Hamburger → X animation */
.dt-nav-toggle.dt-toggle-active .dt-hamburger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.dt-nav-toggle.dt-toggle-active .dt-hamburger span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.dt-nav-toggle.dt-toggle-active .dt-hamburger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Mobile nav ── */
@media (max-width: 767px) {
  .dt-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--dt-white);
    border-top: 1px solid var(--dt-border);
    box-shadow: 0 8px 24px rgba(13,71,161,.12);
    z-index: 99;
    padding: .5rem 0;
  }
  .dt-nav.dt-nav-open { display: block; }

  .dt-nav ul.mod-menu,
  .dt-nav ul.nav-pills,
  .dt-nav ul.nav {
    flex-direction: column;
    width: 100%;
    gap: 0;
  }
  .dt-nav ul > li { width: 100%; }
  .dt-nav ul > li > a {
    display: block;
    padding: .75rem 1.25rem;
    border-radius: 0;
    font-size: 14px;
    border-bottom: 1px solid var(--dt-border);
  }
  .dt-nav ul > li:last-child > a { border-bottom: none; }
  .dt-nav ul > li > a::after { display: none; }
  .dt-nav ul > li > a:hover,
  .dt-nav ul > li.active > a {
    background: #EEF2FF;
    color: var(--dt-navy);
    border-radius: 0;
  }
  /* FIX #1 on mobile too */
  .dt-nav ul > li.current:not(.active) > a {
    color: #374151;
    background: none;
  }
  .dt-nav-toggle { display: flex !important; align-items: center; justify-content: center; }
}

/* ══════════════════════════════════════════
   MAIN LAYOUT
══════════════════════════════════════════ */
.dt-main { padding: 2rem 0 3rem; }
.dt-content-wrap { display: flex; gap: 2rem; }
.dt-content-main { flex: 1; min-width: 0; }
.dt-sidebar { width: 300px; flex-shrink: 0; }
.dt-no-sidebar .dt-content-main { width: 100%; }
@media (max-width: 900px) { .dt-content-wrap { flex-direction: column; } .dt-sidebar { width: 100%; } }

.dt-breadcrumb { margin-bottom: 1.5rem; font-size: 12px; color: var(--dt-light); }
.dt-breadcrumb a { color: var(--dt-navy); }
.dt-breadcrumb .divider { margin: 0 .4rem; color: #D1D5DB; }

/* ══════════════════════════════════════════
   SECTION LABELS
══════════════════════════════════════════ */
.dt-section-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.dt-section-label span {
  font-family: var(--dt-sans);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--dt-navy);
  white-space: nowrap;
}
.dt-section-rule { flex: 1; height: 1px; background: rgba(13,71,161,.2); }
.dt-section-label--grid { margin-top: 3rem; }

/* ══════════════════════════════════════════
   HERO FEATURED CARD
══════════════════════════════════════════ */
.dt-hero-card { margin-bottom: 1.25rem; position: relative;}
.dt-hero-link { display: block; text-decoration: none; }
.dt-hero-link:hover { text-decoration: none; }
.dt-hero-img-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: var(--dt-shadow-lg);
  aspect-ratio: 21/9;
}
.dt-hero-no-img { background: var(--dt-navy-dark); min-height: 300px; }
.dt-hero-img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--dt-ease); }
.dt-hero-link:hover .dt-hero-img { transform: scale(1.03); }
.dt-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,27,62,.9) 0%, rgba(13,27,62,.3) 50%, transparent 100%);
  border-radius: 1rem;
  pointer-events: none;
}
.dt-hero-content { position: absolute; bottom: 0; left: 0; right: 0; padding: 2rem 2.5rem; }
@media (max-width: 640px) { .dt-hero-content { padding: 1.25rem; } }
.dt-hero-title {
  font-family: var(--dt-serif);
  font-size: clamp(20px, 3vw, 34px);
  font-weight: 700;
  color: white;
  line-height: 1.2;
  margin-bottom: 1rem;
  max-width: 680px;
  text-shadow: 0 2px 12px rgba(0,0,0,.4);
  transition: color .15s ease;
}
.dt-hero-link:hover .dt-hero-title { color: #BFDBFE; }
.dt-hero-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; }
.dt-hero-date { display: flex; align-items: center; gap: 6px; color: rgba(255,255,255,.65); font-size: 12px; font-weight: 500; }
.dt-hero-readmore {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: white;
  font-size: 12px;
  font-weight: 700;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,.2);
  padding: 6px 16px;
  border-radius: 999px;
  transition: background .15s ease;
}
.dt-hero-link:hover .dt-hero-readmore { background: rgba(255,255,255,.25); }
.dt-hero-excerpt {
  font-size: 14px;
  color: var(--dt-muted);
  line-height: 1.7;
  max-width: 680px;
  border-left: 3px solid rgba(13,71,161,.3);
  padding-left: 1rem;
  margin-top: 1.25rem;
}

/* ══════════════════════════════════════════
   ARTICLE GRID & CARDS
══════════════════════════════════════════ */
.dt-article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 900px) { .dt-article-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .dt-article-grid { grid-template-columns: 1fr; } }

.dt-article-card {
  background: var(--dt-white);
  border: 1px solid var(--dt-border);
  border-radius: var(--dt-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s var(--dt-ease), box-shadow .2s var(--dt-ease);
}
.dt-article-card:hover { transform: translateY(-4px); box-shadow: var(--dt-shadow-lg); }
.dt-card-img-link { display: block; text-decoration: none; }
.dt-card-img-wrap { aspect-ratio: 16/10; overflow: hidden; }
.dt-card-img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s var(--dt-ease); }
.dt-article-card:hover .dt-card-img { transform: scale(1.04); }
.dt-card-body { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; border-top: 1px solid var(--dt-border); }
.dt-card-meta { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-bottom: .625rem; }
.dt-card-date { display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--dt-light); font-weight: 500; }
.dt-card-title { font-family: var(--dt-serif); font-size: 16px; font-weight: 700; line-height: 1.3; margin-bottom: .625rem; flex: 1; }
.dt-card-title a { color: var(--dt-navy-dark); text-decoration: none; transition: color .15s ease; }
.dt-card-title a:hover { color: var(--dt-navy); }
.dt-card-rule { width: 2rem; height: 2px; background: rgba(13,71,161,.3); margin-bottom: .75rem; flex-shrink: 0; }
.dt-card-excerpt { font-size: 13px; color: var(--dt-muted); line-height: 1.65; margin-bottom: 1rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.dt-card-readmore { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--dt-navy); text-decoration: none; margin-top: auto; transition: color .15s, gap .15s; }
.dt-card-readmore:hover { color: var(--dt-navy-mid); gap: 10px; text-decoration: none; }

/* ══════════════════════════════════════════
   CATEGORY PAGE BANNER
   FIX #3: Category title — the PHP override uses $this->category->title
   which returns the proper Vietnamese title with diacritics.
   FIX #4: Per-category color theming via body class
   Joomla adds class "view-category" and the alias to body
══════════════════════════════════════════ */
.dt-category-banner {
  background: linear-gradient(135deg, #0D2E6B, #0D47A1);
  color: white;
  padding: 2.5rem 2rem;
  margin: -2rem -1rem 2rem;
  border-radius: 0 0 .75rem .75rem;
}
@media (min-width: 640px)  { .dt-category-banner { margin: -2rem -1.5rem 2rem; padding: 2.5rem 1.5rem; } }
@media (min-width: 1080px) { .dt-category-banner { margin: -2rem -2rem 2rem; padding: 2.5rem 2rem; } }

.dt-category-title {
  font-family: var(--dt-serif);
  font-size: 2rem;
  font-weight: 700;
  color: white;
  margin-bottom: .25rem;
}
.dt-category-desc { color: rgba(255,255,255,.75); font-size: 14px; margin-bottom: .25rem; }
.dt-category-count { color: rgba(255,255,255,.55); font-size: 13px; }

/* Per-category color: Tin tức → teal */
body.category-tin-tuc .dt-category-banner,
body.view-category.itemid-114 .dt-category-banner {
  background: linear-gradient(135deg, #064E5A, #0E7490);
}
/* Per-category color: Đánh giá → navy */
body.category-danh-gia .dt-category-banner,
body.view-category.itemid-115 .dt-category-banner {
  background: linear-gradient(135deg, #0D2E6B, #0D47A1);
}
/* Per-category color: Hướng dẫn → amber */
body.category-huong-dan .dt-category-banner,
body.view-category.itemid-110 .dt-category-banner {
  background: linear-gradient(135deg, #7C2D12, #B45309);
}

/* ══════════════════════════════════════════
   ARTICLE DETAIL
══════════════════════════════════════════ */
.dt-article-detail { max-width: 860px; }
.dt-article-title { font-family: var(--dt-serif); font-size: clamp(24px, 4vw, 38px); font-weight: 700; color: var(--dt-navy-dark); line-height: 1.2; margin: .75rem 0 1rem; }
.dt-article-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; font-size: 12px; color: var(--dt-light); padding-bottom: 1.25rem; border-bottom: 1px solid var(--dt-border); margin-bottom: 1.5rem; }
.dt-article-date, .dt-article-author { display: flex; align-items: center; gap: 5px; }
.dt-article-hero { border-radius: var(--dt-radius); overflow: hidden; box-shadow: var(--dt-shadow-md); margin-bottom: 2rem; }
.dt-article-hero-img { width: 100%; max-height: 500px; object-fit: cover; }
.dt-article-body { font-size: 15px; line-height: 1.8; color: var(--dt-text); }
.dt-article-body p { margin-bottom: 1.25rem; }
.dt-article-body h2, .dt-article-body h3 { margin: 2rem 0 1rem; }
.dt-article-body img { border-radius: 6px; margin: 1.5rem 0; }
.dt-article-body a { color: var(--dt-navy); text-decoration: underline; }
.dt-article-body blockquote { border-left: 3px solid var(--dt-navy); padding: .75rem 1.25rem; margin: 1.5rem 0; background: #EEF2FF; border-radius: 0 6px 6px 0; font-style: italic; color: var(--dt-muted); }
.dt-article-tags { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--dt-border); }
.dt-tags-label { font-size: 12px; font-weight: 700; color: var(--dt-light); }
.dt-tag { font-size: 11px; font-weight: 600; color: var(--dt-navy); background: #EEF2FF; padding: 3px 10px; border-radius: 999px; text-decoration: none; transition: background .15s; }
.dt-tag:hover { background: #DBEAFE; text-decoration: none; }
.dt-article-back { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--dt-border); }
.dt-back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--dt-navy); text-decoration: none; transition: gap .15s, color .15s; }
.dt-back-link:hover { color: var(--dt-navy-mid); gap: 10px; text-decoration: none; }

/* ══════════════════════════════════════════
   BADGES
══════════════════════════════════════════ */
.dt-badge {
  display: inline-block;
  font-family: var(--dt-sans);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 3px;
  white-space: nowrap;
  text-decoration: none;
  background: var(--dt-navy);
  color: white;
}
.dt-badge-link:hover { opacity: .85; text-decoration: none; }
.dt-badge-danh-gia, .dt-badge-review, .dt-badge-evaluation { background: #0D47A1; color: white; }
.dt-badge-tin-tuc, .dt-badge-news, .dt-badge-tintuc       { background: #0E7490; color: white; }
.dt-badge-huong-dan, .dt-badge-tutorial, .dt-badge-guide  { background: #B45309; color: white; }

/* ══════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════ */
.dt-btn { display: inline-flex; align-items: center; gap: 8px; padding: .625rem 1.25rem; border-radius: var(--dt-radius); font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; border: none; transition: background .15s, transform .1s; }
.dt-btn:active { transform: scale(.97); }
.dt-btn-primary { background: var(--dt-navy); color: white; }
.dt-btn-primary:hover { background: var(--dt-navy-mid); color: white; text-decoration: none; }

/* ══════════════════════════════════════════
   PAGINATION
   FIX #5: Joomla 4 uses icon-angle-* span classes for prev/next/first/last.
   These are Joomla's built-in icon font (icomoon). We render them as
   CSS-only arrows so no font dependency needed.
══════════════════════════════════════════ */
.dt-pagination {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--dt-border);
}
.dt-pagination .pagination {
  display: flex;
  gap: 4px;
  list-style: none;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0;
  margin: 0;
}
/* All page items */
.dt-pagination .pagination .page-item .page-link,
.dt-pagination .pagination li a,
.dt-pagination .pagination li span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--dt-border);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--dt-muted);
  text-decoration: none;
  transition: all .15s;
  background: var(--dt-white);
  cursor: pointer;
}
.dt-pagination .pagination .page-item a.page-link:hover,
.dt-pagination .pagination li a:hover {
  background: #EEF2FF;
  color: var(--dt-navy);
  border-color: var(--dt-navy);
  text-decoration: none;
}
/* Active page */
.dt-pagination .pagination .active.page-item .page-link,
.dt-pagination .pagination li.active a,
.dt-pagination .pagination li.active span {
  background: var(--dt-navy);
  color: white;
  border-color: var(--dt-navy);
}
/* Disabled (first/prev on page 1) */
.dt-pagination .pagination .disabled.page-item .page-link,
.dt-pagination .pagination li.disabled span {
  opacity: .35;
  cursor: not-allowed;
  pointer-events: none;
}

/* FIX #5: Joomla icon-angle-* → CSS arrow characters
   icon-angle-double-left = «  icon-angle-left = ‹
   icon-angle-double-right = »  icon-angle-right = › */
.icon-angle-double-left,
.icon-angle-double-right,
.icon-angle-left,
.icon-angle-right {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  font-size: 14px;
  line-height: 1;
}
.icon-angle-double-left::before  { content: '«'; }
.icon-angle-left::before         { content: '‹'; }
.icon-angle-double-right::before { content: '»'; }
.icon-angle-right::before        { content: '›'; }

/* ══════════════════════════════════════════
   MODULES (Joomla xhtml style)
══════════════════════════════════════════ */
div.moduletable {
  background: var(--dt-white);
  border: 1px solid var(--dt-border);
  border-radius: var(--dt-radius);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}
div.moduletable h3 {
  font-family: var(--dt-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--dt-navy-dark);
  margin-bottom: 1rem;
  padding-bottom: .625rem;
  border-bottom: 2px solid var(--dt-navy);
}

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
.dt-footer { background: #0D1B3E; color: white; margin-top: 3rem; }
.dt-footer-accent-bar { height: 3px; background: linear-gradient(90deg, #0D47A1, #1976D2, #0E7490); }
.dt-footer-inner { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem; padding: 2.5rem 0 1.5rem; }
.dt-footer-name { font-family: var(--dt-serif); font-size: 20px; font-weight: 700; color: white; display: block; margin-bottom: .375rem; }
.dt-footer-desc { font-size: 12px; color: rgba(255,255,255,.5); max-width: 280px; }
.dt-footer-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: .375rem 1.5rem; padding: 0; margin: 0; }
.dt-footer-nav ul li a { font-size: 14px; color: rgba(255,255,255,.6); text-decoration: none; transition: color .15s; }
.dt-footer-nav ul li a:hover { color: white; text-decoration: none; }
.dt-footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem; padding: 1.25rem 0; border-top: 1px solid rgba(255,255,255,.1); }
.dt-copyright { font-size: 12px; color: rgba(255,255,255,.4); }
.dt-back-to-top-text { font-size: 12px; color: rgba(255,255,255,.4); background: none; border: none; cursor: pointer; transition: color .15s; }
.dt-back-to-top-text:hover { color: rgba(255,255,255,.7); }

/* ══════════════════════════════════════════
   ERROR / OFFLINE PAGES
══════════════════════════════════════════ */
.dt-error-page, .dt-offline-page { min-height: 100vh; display: flex; flex-direction: column; background: var(--dt-bg); }
.dt-error-wrap, .dt-offline-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 3rem 1.5rem; }
.dt-error-brand, .dt-offline-brand { font-family: var(--dt-serif); font-size: 24px; font-weight: 800; color: var(--dt-navy); margin-bottom: 2rem; text-decoration: none; }
.dt-error-code { font-size: 96px; font-weight: 900; color: var(--dt-navy); line-height: 1; margin-bottom: .5rem; opacity: .15; }
.dt-error-title, .dt-offline-title { font-family: var(--dt-serif); font-size: 28px; color: var(--dt-navy-dark); margin-bottom: .75rem; }
.dt-error-msg, .dt-offline-msg { font-size: 15px; color: var(--dt-muted); max-width: 400px; margin-bottom: 2rem; }

/* ══════════════════════════════════════════
   BACK TO TOP FAB
══════════════════════════════════════════ */
.dt-back-to-top-fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 40px;
  height: 40px;
  background: var(--dt-navy);
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--dt-shadow-md);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .2s, transform .2s, background .15s;
  z-index: 200;
}
.dt-back-to-top-fab.visible { opacity: 1; transform: translateY(0); }
.dt-back-to-top-fab:hover { background: var(--dt-navy-mid); }

/* ══════════════════════════════════════════
   UTILITY
══════════════════════════════════════════ */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border-width: 0; }
