/* Dantam IF — responsive standalone theme (phone + desktop). */

:root {
  --navy: #12183a;
  --navy-2: #1b2458;
  --gold: #d4a017;
  --gold-2: #f0c85a;
  --paper: #f3efe4;
  --ink: #16192b;
  --muted: #5c6180;
  --card: #fff;
  --line: rgba(18, 24, 58, 0.1);
  --tab: 72px;
  --safe-bot: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
  --radius: 18px;
  --wrap: 1120px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-padding-top: 12px; }

body {
  margin: 0;
  font-family: Mulish, "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

img { max-width: 100%; height: auto; display: block; }
a { color: #1e73be; }
h1, h2, h3 { line-height: 1.25; color: var(--navy); }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip-link:focus,
.screen-reader-text:focus {
  left: 12px;
  background: #fff;
  padding: 8px 12px;
  z-index: 2000;
}
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
}

/* ----- Header ----- */
.site-header {
  background: linear-gradient(165deg, #0e1433, var(--navy-2));
  color: #fff;
  padding: calc(10px + var(--safe-top)) 16px 12px;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 8px 24px rgba(10, 14, 36, 0.25);
}
.header-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: relative;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  min-width: 0;
  flex: 1;
}
.brand-mark {
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 50%;
  background: #fff;
  padding: 3px;
  box-shadow: 0 0 0 2px var(--gold), 0 4px 14px rgba(0, 0, 0, 0.35);
}
.custom-logo-link,
.custom-logo { display: none !important; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-text strong {
  font-size: 1.2rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-text em {
  font-style: normal;
  color: var(--gold-2);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.header-nav { display: none; }
.header-tools {
  display: flex;
  align-items: center;
  margin-left: auto;
  flex-shrink: 0;
}
.search-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
}
.header-search {
  display: none;
  position: absolute;
  left: 12px;
  right: 12px;
  top: calc(100% + 8px);
  background: var(--navy-2);
  padding: 10px;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(10, 14, 36, 0.35);
  z-index: 70;
}
.header-tools.is-open .header-search { display: block; }
.header-search .search-form { width: 100%; }
.header-search .search-form input[type="search"] { flex: 1; min-width: 0; width: 100%; }

.site-wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 16px 16px calc(var(--tab) + var(--safe-bot) + 28px);
}

.hero {
  text-align: center;
  background:
    radial-gradient(circle at 80% 0%, rgba(212, 160, 23, 0.28), transparent 42%),
    linear-gradient(165deg, #0e1433, var(--navy));
  color: #fff;
  margin: -16px -16px 18px;
  padding: 22px 18px 28px;
  border-radius: 0 0 24px 24px;
}
.hero-logo { width: 92px; height: 92px; margin: 0 auto 8px; }
.hero .kicker {
  color: var(--gold-2);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin: 0;
}
.hero h1 { color: #fff; margin: 6px 0 8px; font-size: 1.7rem; }
.hero .lead { color: rgba(255, 255, 255, 0.82); margin: 0 auto; max-width: 40ch; }

.page-head { margin: 4px 0 18px; }
.page-head h1 { margin: 0 0 6px; font-size: 1.45rem; }

.page-hero {
  display: grid;
  gap: 16px;
  align-items: center;
  background:
    radial-gradient(circle at 100% 0%, rgba(212, 160, 23, 0.32), transparent 46%),
    linear-gradient(165deg, #0e1433, var(--navy));
  color: #fff;
  margin: -16px -16px 18px;
  padding: 22px 18px 24px;
  border-radius: 0 0 24px 24px;
}
.page-hero .kicker {
  color: var(--gold-2);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.75rem;
  margin: 0 0 6px;
}
.page-hero h1 {
  color: #fff;
  margin: 0;
  font-size: 1.85rem;
}
.page-hero-art {
  justify-self: center;
  max-width: 148px;
}
.page-hero-art img {
  width: 100%;
  height: auto;
  max-height: 160px;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.35));
}
.entry.entry-page {
  background: transparent;
  box-shadow: none;
  overflow: visible;
}
.entry.entry-page .entry-body {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px 18px 24px;
  box-shadow: 0 10px 28px rgba(18, 24, 58, 0.1);
}

.card-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.card {
  display: grid;
  grid-template-columns: 96px 1fr;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 10px 28px rgba(18, 24, 58, 0.1);
  border: 1px solid var(--line);
  min-height: 96px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(18, 24, 58, 0.16);
}
.card img {
  width: 96px;
  height: 100%;
  object-fit: cover;
  background: var(--navy);
  min-height: 96px;
}
.card-body { padding: 12px 14px; }
.card h2 { margin: 2px 0 0; font-size: 1.02rem; color: var(--ink); }
.meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.excerpt { margin: 6px 0 0; color: #3a3f57; font-size: 0.92rem; }

.entry {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(18, 24, 58, 0.1);
}
.entry .page-head,
.entry-body { padding: 18px 20px; }
.entry-media img { width: 100%; }
.entry-body { font-size: 1.05rem; overflow-x: auto; }
.entry-body p { margin: 0 0 14px; }
.entry-body h2 {
  font-size: 1.15rem;
  margin: 26px 0 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gold);
}
.entry-body h3 { font-size: 1.05rem; margin: 20px 0 8px; }
.entry-body ul,
.entry-body ol { margin: 0 0 16px; padding-left: 1.2em; }
.entry-body li { margin: 0 0 6px; }
.entry-body img {
  border-radius: 16px;
  margin: 8px auto 16px;
  max-width: 100%;
  height: auto;
}
.entry-body .wp-block-image,
.entry-body figure {
  margin: 0 0 16px;
}
.entry-body iframe,
.entry-body .ssa_booking_iframe {
  max-width: 100%;
  width: 100%;
  border: 0;
  border-radius: 14px;
}
.entry-body .tablepress-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 8px 0 22px;
}
.entry-body table,
.entry-body .tablepress {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 22px;
  background: var(--paper);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(18, 24, 58, 0.06);
}
.entry-body th,
.entry-body .tablepress .row-1 td {
  text-align: left;
  background: var(--navy);
  color: var(--gold-2);
  font-weight: 800;
  padding: 12px 14px;
  border: 0;
}
.entry-body td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.entry-body tr:last-child td { border-bottom: 0; }
.entry-body .tablepress .row-hover:hover td { background: rgba(212, 160, 23, 0.12); }
.entry-body .elementor,
.entry-body .e-con,
.entry-body .e-con-inner {
  max-width: 100%;
}
.entry-body .elementor-widget-container { padding: 0; }

.btn,
.entry-body a.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  color: var(--navy);
  font-weight: 800;
  text-decoration: none;
  border-radius: 14px;
  padding: 12px 18px;
}

.site-sidebar { display: none; }
.widget {
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 8px 20px rgba(18, 24, 58, 0.08);
}
.widget-title { margin: 0 0 10px; font-size: 1rem; }

.site-footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  padding: 20px 16px calc(var(--tab) + var(--safe-bot) + 12px);
  border-top: 1px solid var(--line);
}
.site-footer a { color: var(--navy); font-weight: 700; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: center;
  margin: 8px 0 0;
}
.footer-credit {
  margin: 12px 0 0;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.footer-credit a {
  color: inherit;
  font-weight: 650;
  text-decoration: none;
  border-bottom: 1px solid rgba(92, 97, 128, 0.35);
}
.footer-credit a:hover,
.footer-credit a:focus {
  color: var(--navy);
  border-bottom-color: var(--gold);
}
.mere-search { margin-bottom: 14px; }
.mere-search .search-form { width: 100%; }
.mere-search input[type="search"] { flex: 1; min-width: 0; background: #fff; }

.empty { text-align: center; color: var(--muted); padding: 32px 8px; }

.nav-links,
.pagination {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  font-weight: 700;
}
.entry .post-navigation { display: none; }

.related-posts {
  display: grid;
  gap: 12px;
  margin: 20px 0 4px;
  padding: 0;
}
.related-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: stretch;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 10px 28px rgba(18, 24, 58, 0.1);
  border: 1px solid var(--line);
  min-height: 112px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.related-card:hover,
.related-card:focus {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(18, 24, 58, 0.16);
  color: inherit;
}
.related-card img {
  width: 112px;
  height: 100%;
  min-height: 112px;
  object-fit: cover;
  background: var(--navy);
}
.related-card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.related-card .kicker {
  margin: 0;
  color: var(--gold);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.7rem;
}
.related-card h2 {
  margin: 0;
  font-size: 1.08rem;
  color: var(--navy);
  line-height: 1.3;
}
.related-card .meta { margin: 0; }
.related-go {
  margin-top: auto;
  padding-top: 8px;
  color: var(--navy);
  font-weight: 800;
  font-size: 0.86rem;
}

.load-more-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin: 28px 0 8px;
}
.load-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  background: var(--gold);
  color: var(--navy);
  font-weight: 800;
  text-decoration: none;
  border-radius: 14px;
  padding: 12px 22px;
  border: 0;
  cursor: pointer;
}
.load-more:hover,
.load-more:focus { filter: brightness(1.05); }
.load-more.is-loading { opacity: 0.65; pointer-events: none; }
html.js-ready .load-more-pages { display: none; }

.search-form {
  display: flex;
  gap: 6px;
}
.search-form input[type="search"] {
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  min-width: 160px;
}
.search-form button {
  border: 0;
  background: var(--gold);
  color: var(--navy);
  font-weight: 800;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
}

/* ----- Phone tab bar ----- */
.dantam-tabbar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.62);
  padding: 8px 4px calc(10px + var(--safe-bot));
  border-top: 1px solid rgba(212, 160, 23, 0.35);
}
.dantam-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
  background: none;
  border: 0;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.1;
  padding: 4px 2px;
  cursor: pointer;
}
.dantam-tab svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: block;
  overflow: visible;
}
.dantam-tab span {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dantam-tab.is-active,
.dantam-tab[aria-current="page"] { color: var(--gold-2); }

.dantam-sheet {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(12, 16, 38, 0.45);
}
.dantam-sheet[hidden] { display: none !important; }
.dantam-sheet-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 82vh;
  overflow: auto;
  background: var(--paper);
  border-radius: 20px 20px 0 0;
  padding: 16px 16px calc(24px + var(--safe-bot));
}
.dantam-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.dantam-sheet-head h2 { margin: 0; }
.dantam-sheet-close {
  border: 0;
  background: var(--navy);
  color: var(--gold-2);
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 800;
  cursor: pointer;
}
.dantam-sheet-body ul { list-style: none; margin: 0; padding: 0; }
.dantam-sheet-body a {
  display: flex;
  justify-content: space-between;
  background: #fff;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 8px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(18, 24, 58, 0.08);
}
.dantam-sheet-body .sub-menu { margin: 0 0 10px 12px; }

.dantam-install {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(var(--tab) + var(--safe-bot) + 10px);
  z-index: 990;
  background: var(--navy);
  color: #fff;
  border-radius: 16px;
  padding: 10px 12px;
  box-shadow: 0 12px 32px rgba(10, 14, 36, 0.35);
}
.dantam-install h3 { margin: 0 0 2px; font-size: 0.88rem; color: #fff; }
.dantam-install p { margin: 0 0 8px; color: rgba(255, 255, 255, 0.82); font-size: 0.75rem; line-height: 1.35; }
body.has-install-banner .site-wrap {
  padding-bottom: calc(var(--tab) + var(--safe-bot) + 118px);
}
body.has-install-banner .site-footer {
  padding-bottom: calc(var(--tab) + var(--safe-bot) + 118px);
}
.dantam-install-actions { display: flex; gap: 8px; }
.dantam-install button {
  flex: 1;
  border: 0;
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 800;
  cursor: pointer;
}
.dantam-install .is-gold { background: var(--gold); color: var(--navy); }
.dantam-install .is-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

@media (display-mode: standalone) {
  .dantam-install { display: none !important; }
}

/* ----- Tablet & desktop: real browser layout, no tab bar ----- */
@media (min-width: 768px) {
  .dantam-tabbar,
  .dantam-install,
  .dantam-sheet { display: none !important; }

  .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand tools"
      "nav nav";
    gap: 6px 16px;
    align-items: center;
  }
  .brand { grid-area: brand; flex: 0 1 auto; }
  .brand-mark { width: 76px; height: 76px; }
  .brand-text strong { font-size: 1.45rem; }
  .header-tools {
    grid-area: tools;
    display: flex;
    margin-left: 0;
  }
  .search-toggle { display: none; }
  .header-search {
    display: block;
    position: static;
    background: transparent;
    padding: 0;
    box-shadow: none;
    border-radius: 0;
  }
  .header-nav {
    grid-area: nav;
    display: block;
    min-width: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 6px;
  }
  .header-nav > ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 2px 0;
  }
  .header-nav > ul > li {
    position: relative;
  }
  .header-nav > ul > li > a {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 8px 10px;
    display: block;
    border-radius: 8px;
    white-space: nowrap;
  }
  .header-nav .menu-item-has-children > a::after {
    content: "";
    display: inline-block;
    margin-left: 6px;
    border: 4px solid transparent;
    border-top-color: currentColor;
    vertical-align: 2px;
  }
  .header-nav > ul > li > a:hover,
  .header-nav > ul > li > a:focus,
  .header-nav > ul > .current-menu-item > a,
  .header-nav > ul > .current-menu-ancestor > a {
    background: rgba(255, 255, 255, 0.1);
    color: var(--gold-2);
  }
  .header-nav .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    max-height: min(70vh, 420px);
    overflow-y: auto;
    background: #fff;
    color: var(--ink);
    list-style: none;
    margin: 0;
    padding: 8px 0;
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(18, 24, 58, 0.2);
    z-index: 60;
  }
  .header-nav > ul > li:last-child > .sub-menu,
  .header-nav > ul > li:nth-last-child(-n+2) > .sub-menu {
    left: auto;
    right: 0;
  }
  .header-nav li:hover > .sub-menu,
  .header-nav li:focus-within > .sub-menu,
  .header-nav li.is-open > .sub-menu { display: block; }
  .header-nav .sub-menu a {
    display: block;
    padding: 8px 14px;
    color: var(--ink);
    text-decoration: none;
    font-weight: 650;
  }
  .header-nav .sub-menu a:hover,
  .header-nav .sub-menu a:focus { background: var(--paper); color: var(--navy); }

  .site-wrap {
    padding: 28px 28px 48px;
  }
  .site-wrap.has-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 32px;
    align-items: start;
  }
  .site-sidebar { display: block; }
  .hero {
    margin: 0 0 28px;
    border-radius: 22px;
    padding: 40px 32px;
    text-align: left;
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 24px;
    align-items: center;
  }
  .hero-logo { width: 120px; height: 120px; margin: 0; }
  .hero h1 { font-size: 2.2rem; margin-top: 4px; }
  .hero .lead { margin: 0; max-width: 52ch; }
  .page-hero {
    margin: 0 0 28px;
    border-radius: 22px;
    padding: 36px 32px;
    grid-template-columns: minmax(0, 1fr) 200px;
    text-align: left;
  }
  .page-hero h1 { font-size: 2.35rem; }
  .page-hero-art { max-width: 200px; justify-self: end; }
  .page-hero-art img { max-height: 200px; }
  .entry.entry-page .entry-body { padding: 28px 32px 36px; }
  .related-posts { margin-top: 28px; gap: 16px; }
  .related-card {
    grid-template-columns: 220px minmax(0, 1fr);
    min-height: 150px;
  }
  .related-card img {
    width: 220px;
    min-height: 150px;
  }
  .related-card-body { padding: 20px 24px; }
  .related-card h2 { font-size: 1.35rem; }
  .card-list { grid-template-columns: 1fr 1fr; gap: 18px; }
  .card {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .card img {
    width: 100%;
    height: 180px;
    min-height: 0;
  }
  .site-footer { padding: 28px 20px 36px; }
}

@media (min-width: 768px) and (max-width: 959px) {
  .header-nav > ul > li > a { padding: 8px 8px; font-size: 0.82rem; }
  .search-form input[type="search"] { min-width: 120px; }
}

@media (min-width: 1100px) {
  .card-list { grid-template-columns: 1fr 1fr 1fr; }
  .card-list > .card:first-child {
    grid-column: 1 / -1;
    grid-template-columns: 320px 1fr;
    align-items: center;
  }
  .card-list > .card:first-child img {
    height: 100%;
    min-height: 220px;
  }
  .card-list > .card:first-child .card-body {
    padding: 24px 28px;
  }
}

@media (max-width: 767px) {
  .header-nav { display: none; }
}
