:root {
  --primary: #0A2342;
  --secondary: #C4A147;
  --light-bg: #F8F5F0;
  --text: #212529;
  --bg: #ffffff;
  --card-bg: #ffffff;
  --border: #dee2e6;
  --hero-bg: linear-gradient(135deg, #0A2342 0%, #162D50 100%);
  --hero-text: #ffffff;
}

body {
  font-family: 'Lato', sans-serif;
  color: var(--text);
  background: var(--bg);
  transition: background 0.3s, color 0.3s;
}

h1, h2, h3, h4, .navbar-brand, .section-title {
  font-family: 'Playfair Display', serif;
  color: var(--primary);
}

/* ── Dark Mode ── */
html.dark {
  --primary: #E0C87C;
  --secondary: #C4A147;
  --light-bg: #1A1D2E;
  --text: #E6E6E6;
  --bg: #12141C;
  --card-bg: #1E2130;
  --border: #2C2F3A;
  --hero-bg: linear-gradient(135deg, #0A0F1C 0%, #1A1D2E 100%);
  --hero-text: #ffffff;
}

/* ── Utilities ── */
.bg-primary {
  background-color: var(--primary) !important;
}
.bg-light {
  background-color: var(--light-bg) !important;
}

/* ── Buttons ── */
.btn-gold {
  background-color: var(--secondary);
  color: #000;
  font-weight: 700;
  border: none;
  padding: 0.8rem 2rem;
  transition: 0.3s;
}
.btn-gold:hover {
  background-color: #b8952c;
  color: #000;
}
.btn-outline-primary {
  border-color: var(--primary);
  color: var(--primary);
}
.btn-outline-primary:hover {
  background-color: var(--primary);
  color: #fff;
}
.btn-icon {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--text);
  cursor: pointer;
}

/* ── Navbar ── */
.navbar {
  background: var(--bg);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.navbar-brand .brand-text {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--primary);
  font-size: 1.8rem;
}
.nav-link {
  font-weight: 600;
  color: var(--primary) !important;
}
.nav-link:hover {
  color: var(--secondary) !important;
}

/* ── Hero ── */
.hero {
  background: var(--hero-bg);
  color: var(--hero-text);
  padding: 6rem 0 5rem;
}
.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  color: var(--secondary);
}
.hero .lead {
  color: rgba(255,255,255,0.9);
}

/* ── Section Titles ── */
.section-title {
  font-size: 2.5rem;
  color: var(--primary);
  position: relative;
  margin-bottom: 2rem;
}
.section-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: var(--secondary);
  margin: 1rem auto 0;
}

/* ── Cards ── */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.card-title {
  color: var(--primary);
}
.card-text {
  color: var(--text);
}
.card-img-top {
  height: 300px;
  object-fit: contain;
  background: #eee;
  padding: 10px;
}
html.dark .card-img-top {
  background: #2a2a2a; /* match dark mode card background */
}

/* ── Testimonials ── */
.testimonial-card {
  background: var(--light-bg);
  border-left: 5px solid var(--secondary);
  padding: 2rem;
  border-radius: 5px;
}
.testimonial-card blockquote {
  color: var(--text);
}

/* ── Footer ── */
.footer {
  background: var(--primary);
  color: white;
  padding: 3rem 0 1.5rem;
}
.footer a {
  color: var(--secondary);
  text-decoration: none;
}
.footer a:hover {
  color: white;
}

/* ── Social Icons ── */
.social-icons a {
  font-size: 1.5rem;
  margin: 0 0.7rem;
  color: var(--secondary);
  transition: 0.2s;
}
.social-icons a:hover {
  color: white;
}

/* ── Swiper ── */
.swiper-button-prev, .swiper-button-next {
  color: var(--primary);
}
.swiper-pagination-bullet-active {
  background: var(--secondary);
}

/* ── Video thumbnails ── */
.video-thumbnail {
  transition: transform 0.2s;
}
.video-thumbnail:hover {
  transform: translateY(-4px);
}

/* ── Tag links ── */
.tag-link {
  text-decoration: none;
  display: inline-block;
  color: var(--text) !important;
  background: var(--light-bg) !important;
}
.tag-link:hover {
  background: var(--secondary) !important;
  color: #000 !important;
}

/* ── Page fade-in ── */
.fade-in {
  animation: fadeIn 0.6s ease-in;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Search overlay ── */
#searchResults a {
  display: block;
  padding: 0.5rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
}
#searchResults a:hover {
  background: var(--light-bg);
}

/* ── Content area ── */
.content {
  font-size: 1.1rem;
  line-height: 1.8;
}
pre {
  white-space: pre-wrap;
  font-family: 'Lato', sans-serif;
  background: var(--light-bg);
  color: var(--text);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
  .section-title { font-size: 2rem; }
}

/* ── Print ── */
@media print {
  header, footer, .navbar, .social-icons, .btn, .disqus, .swiper, .search-toggle, .dark-toggle {
    display: none !important;
  }
  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }
}