/* ==========================================================
   ILoveViking — Viking Design System
   Dark, cinematic, gold-accented.
   ========================================================== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&family=EB+Garamond:ital,wght@0,400;0,500;1,400&family=Inter:wght@400;500&display=swap');

/* ── CSS Custom Properties ── */
:root {
  --radius: 0.375rem;
  --radius-sm: calc(var(--radius) - 4px);
  --radius-md: calc(var(--radius) - 2px);
  --radius-lg: var(--radius);

  --background:        oklch(0.16 0.008 60);
  --foreground:        oklch(0.92 0.01 80);
  --card:              oklch(0.20 0.010 60);
  --card-foreground:   oklch(0.92 0.01 80);
  --popover:           oklch(0.18 0.010 60);
  --popover-foreground:oklch(0.92 0.01 80);
  --primary:           oklch(0.72 0.11 78);
  --primary-foreground:oklch(0.16 0.008 60);
  --secondary:         oklch(0.26 0.012 60);
  --secondary-foreground:oklch(0.92 0.01 80);
  --muted:             oklch(0.24 0.010 60);
  --muted-foreground:  oklch(0.66 0.02 75);
  --accent:            oklch(0.28 0.020 70);
  --accent-foreground: oklch(0.92 0.01 80);
  --gold:              oklch(0.72 0.11 78);
  --gold-foreground:   oklch(0.16 0.008 60);
  --border:            oklch(0.32 0.015 65);
  --input:             oklch(0.30 0.015 65);
  --ring:              oklch(0.72 0.11 78);
  --destructive:       oklch(0.55 0.20 27);

  --gradient-hero: linear-gradient(90deg,
    oklch(0.14 0.008 60 / 0.98) 0%,
    oklch(0.14 0.008 60 / 0.75) 40%,
    oklch(0.14 0.008 60 / 0.10) 100%);
  --gradient-card: linear-gradient(180deg,
    oklch(0.14 0.008 60 / 0) 30%,
    oklch(0.12 0.008 60 / 0.95) 100%);
  --shadow-elegant: 0 20px 50px -20px oklch(0 0 0 / 0.7);

  --font-display: 'Cinzel', serif;
  --font-serif:   'EB Garamond', serif;
  --font-sans:    'Inter', sans-serif;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; border-color: var(--border); }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
* { margin: 0; padding: 0; }

/* ── Utility Classes ── */
.container-page {
  width: 100%;
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.label-eyebrow {
  font-family: var(--font-display);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 600;
}

/* ── WordPress Custom Logo ── */

/* Thẻ <a> do WordPress tự tạo — dùng display:contents để nó "biến mất"
   khỏi layout, icon ảnh nằm thẳng trong flex row cùng với logo-text */
.site-logo .custom-logo-link {
  display: contents;
}

/* Ảnh logo/icon */
/* ── Navbar ── */
.site-header {
  position: absolute;
  inset-inline: 0;
  top: 0;
  z-index: 50;
}

.navbar-inner {
  display: flex;
  height: 5rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-shrink: 0;
}
.site-logo img { width: 2.25rem; height: 2.25rem; border-radius: var(--radius); object-fit: cover; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text .logo-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--foreground);
}
.logo-text .logo-tld {
  font-family: var(--font-display);
  font-size: 0.55rem;
  letter-spacing: 0.3em;
  color: var(--gold);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}
@media (min-width: 1280px) { .nav-links { display: flex; } }

.nav-links a {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: oklch(0.92 0.01 80 / 0.85);
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--gold); }
.nav-links .chevron { width: 0.75rem; height: 0.75rem; opacity: 0.7; }

.navbar-actions { display: flex; align-items: center; gap: 0.75rem; }

.btn-search {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: oklch(0.92 0.01 80 / 0.85);
  transition: color 0.2s;
}
.btn-search:hover { color: var(--gold); }
.btn-search svg { width: 1.25rem; height: 1.25rem; }

.btn-explore {
  display: none;
  padding: 0.625rem 1.5rem;
  border-radius: var(--radius);
  background: var(--gold);
  color: var(--gold-foreground);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: none;
  transition: opacity 0.2s;
  text-decoration: none;
}
.btn-explore:hover { opacity: 0.9; }
@media (min-width: 640px) { .btn-explore { display: inline-block; } }

.btn-menu {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: var(--foreground);
}
@media (min-width: 1280px) { .btn-menu { display: none; } }

/* Mobile nav */
.mobile-nav {
  display: none;
  border-top: 1px solid var(--border);
  background: oklch(0.18 0.01 60 / 0.95);
  backdrop-filter: blur(8px);
}
.mobile-nav.open { display: block; }
.mobile-nav nav { padding-block: 1rem; }
.mobile-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.75rem;
  border-bottom: 1px solid oklch(0.32 0.015 65 / 0.5);
  font-family: var(--font-display);
  font-size: 0.875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: oklch(0.92 0.01 80 / 0.9);
  transition: color 0.2s;
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: var(--gold); }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 92vh;
  width: 100%;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
}
.hero-fade {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 10rem;
  background: linear-gradient(to top, var(--background), transparent);
}
.hero-content {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 92vh;
  padding-top: 6rem;
  padding-bottom: 4rem;
}
.hero-inner { max-width: 42rem; }

.hero-eyebrow { margin-bottom: 0.75rem; }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 6rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--foreground);
  margin-bottom: 1.5rem;
}

.hero-desc {
  max-width: 28rem;
  font-size: 1.125rem;
  color: var(--muted-foreground);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

.btn-primary {
  display: inline-block;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius);
  background: var(--gold);
  color: var(--gold-foreground);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: none;
  transition: opacity 0.2s;
}
.btn-primary:hover { opacity: 0.9; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: oklch(0.16 0.008 60 / 0.4);
  color: var(--foreground);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
  transition: border-color 0.2s, color 0.2s;
}
.btn-secondary:hover { border-color: var(--gold); color: var(--gold); }
.btn-secondary svg { width: 1rem; height: 1rem; fill: currentColor; }

/* ── Category Strip ── */
.category-strip {
  position: relative;
  z-index: 10;
  margin-top: -5rem;
}
.category-grid {
  display: grid;
  grid-template-columns: 1fr;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: oklch(0.20 0.010 60 / 0.7);
  backdrop-filter: blur(8px);
  overflow: hidden;
}
@media (min-width: 640px)  { .category-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .category-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .category-grid { grid-template-columns: repeat(6, 1fr); } }

.category-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
  text-decoration: none;
}
@media (min-width: 640px) {
  .category-item { border-bottom: none; }
  .category-item:nth-child(odd) { border-right: 1px solid var(--border); }
}
@media (min-width: 1280px) {
  .category-item:nth-child(odd) { border-right: none; }
  .category-item + .category-item { border-left: 1px solid var(--border); }
}
.category-item:last-child { border-bottom: none; }
.category-item:hover { background: oklch(0.28 0.020 70 / 0.4); }

.category-icon { width: 2rem; height: 2rem; flex-shrink: 0; color: var(--gold); stroke-width: 1.5; }

.category-title {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--foreground);
  margin-bottom: 0.25rem;
}
.category-desc {
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--muted-foreground);
}

/* ── Featured Story ── */
.featured-story { padding-block: 4rem; }

.featured-card {
  margin-top: 1.25rem;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.featured-inner {
  position: relative;
  min-height: 26rem;
}
.featured-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.featured-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    oklch(0.12 0.008 60 / 0.95) 0%,
    oklch(0.12 0.008 60 / 0.50) 50%,
    oklch(0.12 0.008 60 / 0.85) 100%);
}
.featured-body {
  position: relative;
  display: flex;
  min-height: 26rem;
  align-items: center;
}
.featured-text {
  margin-left: auto;
  max-width: 28rem;
  padding: 2rem;
  text-align: right;
}
@media (min-width: 768px) { .featured-text { padding: 3rem; } }

.featured-text .label-eyebrow { margin-bottom: 0.75rem; display: block; }

.featured-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  line-height: 1.15;
  color: var(--foreground);
  margin-bottom: 1rem;
}
.featured-desc {
  color: var(--muted-foreground);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.btn-outline {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}
.btn-outline:hover { background: var(--gold); color: var(--gold-foreground); }

/* ── Articles + Timeline Grid ── */
.articles-timeline {
  padding-bottom: 4rem;
}
.articles-timeline-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 1024px) {
  .articles-timeline-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Latest Articles */
.articles-list { margin-top: 1.25rem; display: flex; flex-direction: column; gap: 1rem; }

.article-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: border-color 0.2s, background 0.2s;
  text-decoration: none;
}
.article-item:hover {
  border-color: var(--border);
  background: oklch(0.20 0.010 60 / 0.6);
}
.article-item:hover .article-title { color: var(--gold); }

.article-thumb {
  width: 4rem;
  height: 4rem;
  flex-shrink: 0;
  border-radius: var(--radius);
  object-fit: cover;
}
.article-category {
  font-family: var(--font-display);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-size: 0.65rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.article-title {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.25;
  color: var(--foreground);
  transition: color 0.2s;
}
.article-date { font-size: 0.75rem; color: var(--muted-foreground); margin-top: 0.25rem; }

/* Timeline */
.timeline-list { margin-top: 1.25rem; display: flex; flex-direction: column; gap: 1.25rem; }

.timeline-item { display: flex; align-items: center; gap: 1rem; }
.timeline-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: stretch;
  flex-shrink: 0;
}
.timeline-dot {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: transparent;
  flex-shrink: 0;
}
.timeline-line {
  width: 1px;
  flex: 1;
  background: var(--border);
  margin-top: 0.25rem;
}
.timeline-body {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.timeline-year {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gold);
}
.timeline-label { font-size: 0.875rem; color: oklch(0.92 0.01 80 / 0.85); margin-top: 0.125rem; }

.timeline-thumb {
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
  border-radius: var(--radius);
  object-fit: cover;
}
.timeline-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  transition: opacity 0.2s;
}
.timeline-cta:hover { opacity: 0.8; }
.timeline-cta svg { width: 1rem; height: 1rem; }

/* ── Explore World ── */
.explore-world { padding-block: 4rem; }
.explore-grid {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 640px)  { .explore-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .explore-grid { grid-template-columns: repeat(6, 1fr); } }

.explore-card {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  display: block;
  text-decoration: none;
}
@media (min-width: 1024px) { .explore-card { aspect-ratio: 3/4; } }

.explore-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.explore-card:hover img { transform: scale(1.1); }

.explore-card-overlay {
  position: absolute;
  inset: 0;
  background: var(--gradient-card);
}
.explore-card-label {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 1rem;
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--foreground);
}

/* ── Newsletter ── */
.newsletter { padding-bottom: 4rem; }
.newsletter-box {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: oklch(0.20 0.010 60 / 0.6);
  padding: 1.5rem;
}
@media (min-width: 768px) {
  .newsletter-box {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 2rem;
  }
}
.newsletter-info { display: flex; align-items: center; gap: 1rem; }
.newsletter-icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--gold);
  color: var(--gold-foreground);
}
.newsletter-icon svg { width: 1.25rem; height: 1.25rem; }
.newsletter-title {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--foreground);
}
.newsletter-desc { font-size: 0.875rem; color: var(--muted-foreground); margin-top: 0.25rem; }

.newsletter-form { display: flex; gap: 0.75rem; width: 100%; max-width: 28rem; }
.newsletter-input {
  flex: 1;
  min-width: 0;
  border-radius: var(--radius);
  border: 1px solid var(--input);
  background: var(--background);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: var(--foreground);
  outline: none;
  transition: border-color 0.2s;
  font-family: var(--font-sans);
}
.newsletter-input::placeholder { color: var(--muted-foreground); }
.newsletter-input:focus { border-color: var(--gold); }
.newsletter-btn {
  flex-shrink: 0;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  background: var(--gold);
  color: var(--gold-foreground);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: none;
  transition: opacity 0.2s;
}
.newsletter-btn:hover { opacity: 0.9; }

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--popover);
}

/* Logo trong footer nhỏ hơn header */
.site-footer .site-logo {
  gap: 0.5rem;
}
.site-footer .custom-logo {
  height: 2rem;      /* 32px — nhỏ hơn header (44px) */
  max-width: 2rem;
}
.site-footer .logo-text .logo-name {
  font-size: 0.8125rem;
}
.site-footer .logo-text .logo-tld {
  font-size: 0.5rem;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding-block: 2rem;
}
@media (min-width: 1024px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
  }
}
.footer-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.25rem 1rem; }
.footer-links a { transition: color 0.2s; }
.footer-links a:hover { color: var(--gold); }

.social-links { display: flex; align-items: center; gap: 0.75rem; }
.social-link {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--secondary);
  color: oklch(0.92 0.01 80 / 0.8);
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}
.social-link:hover { background: var(--gold); color: var(--gold-foreground); }
.social-link svg { width: 1rem; height: 1rem; 
}
/* Force logo size — override */
.navbar-inner .site-logo .custom-logo {
  height: 2rem !important;
  max-width: 2rem !important;
}

