/* =========================================================
   TVB STYLESHEET — GLOW UP (Dark, clean, consistent)
   Keeps your existing class names + layout patterns.
   Fixes hover underlines + removes duplicate/conflicting rules.
========================================================= */

/* =============== RESET / BASE =============== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* Brand */
  --tvb-primary: #3b82f6;        /* blue-500 */
  --tvb-primary-dark: #2563eb;   /* blue-600 */
  --tvb-accent: #22d3ee;         /* cyan-400 */

  /* Text */
  --tvb-text: #e6edf3;
  --tvb-muted: #9fb0c3;

  /* Surfaces */
  --tvb-bg: #0b1220;
  --tvb-surface: #121a2a;
  --tvb-surface-2: #0f1726;
  --tvb-border: #1f2a3a;

  /* Effects */
  --tvb-radius: 14px;
  --tvb-radius-sm: 10px;
  --tvb-shadow: 0 10px 30px rgba(0,0,0,0.35);
  --tvb-shadow-soft: 0 8px 20px rgba(0,0,0,0.22);

  /* Layout */
  --tvb-container: 1100px;
  --tvb-pad: 16px;
}

/* Smooth vibes */
html { scroll-behavior: smooth; }
body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    min-height: 100vh;
    min-height: 100dvh; /* mobile-friendly */
    background: var(--tvb-bg);
    color: var(--tvb-text);
    position: relative;
    line-height: 1.5; /* moderate readability spacing */
}

/* Typography spacing (clean + consistent) */
p { margin: 0 0 12px; color: var(--tvb-text); }
h1, h2, h3, h4 {
  margin: 18px 0 10px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
ul, ol { margin: 0 0 12px 1.25rem; }
li { margin: 6px 0; }

/* =============== LINKS (FIX UNDERLINES) =============== */
/* Default: no underline, only color + subtle glow */
a {
  color: var(--tvb-primary);
  text-decoration: none;
  transition: color 0.15s ease, opacity 0.15s ease;
}
a:hover {
  color: #7aa9ff;
  opacity: 0.95;
}
/* If you WANT underline somewhere, add class="link-underline" */
.link-underline { text-decoration: underline; }
.link-underline:hover { text-decoration: underline; }

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

.container { position: relative; z-index: 2; }

/* =============== HEADER / NAV =============== */
.site-header {
  border-bottom: 1px solid var(--tvb-border);
  background: rgba(18, 26, 42, 0.9);
  backdrop-filter: blur(8px);
}
.site-header__top {
  max-width: var(--tvb-container);
  margin: 0 auto;
  padding: 12px var(--tvb-pad);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--tvb-text);
}
.brand-mark {
  width: 40px;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.25);
}
.brand-text {
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--tvb-text);
  position: relative;
}
.brand-text::before {
  content: 'RS';
  position: absolute;
  top: -0.55em;
  right: -2.1em;
  font-size: 0.62em;
  font-weight: 600;
  color: var(--tvb-muted);
  opacity: 0.9;
}

.site-utils { display: flex; align-items: center; gap: 16px; }

.lang-switch a { color: var(--tvb-primary); }
.lang-switch a:hover { color: #7aa9ff; }
.lang-switch .sep { color: #5b6b7a; margin: 0 6px; }

/* Search */
.site-search { display: flex; align-items: center; gap: 8px; }
.site-search input[type="search"] {
  padding: 9px 10px;
  border: 1px solid var(--tvb-border);
  border-radius: 10px;
  background: rgba(15, 23, 38, 0.9);
  color: var(--tvb-text);
  min-width: 220px;
  outline: none;
}
.site-search input[type="search"]:focus {
  border-color: rgba(59,130,246,0.6);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.18);
}
.site-search button {
  padding: 9px 12px;
  background: var(--tvb-primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.12s ease, background-color 0.2s ease;
}
.site-search button:hover {
  background: var(--tvb-primary-dark);
  transform: translateY(-1px);
}

/* Primary nav */
.primary-nav {
  background: rgba(15, 23, 38, 0.75);
  border-top: 1px solid var(--tvb-border);
  border-bottom: 1px solid var(--tvb-border);
  backdrop-filter: blur(8px);
}
.primary-nav ul {
  max-width: var(--tvb-container);
  margin: 0 auto;
  padding: 10px var(--tvb-pad);
  list-style: none;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.primary-nav a {
  color: var(--tvb-text);
  font-weight: 800;
  padding: 8px 10px;
  border-radius: 12px;
  transition: background 0.15s ease, transform 0.12s ease;
}
.primary-nav a:hover {
  background: rgba(59,130,246,0.18);
  transform: translateY(-1px);
}

/* =============== HERO =============== */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--tvb-border);
  background:
    radial-gradient(1000px 420px at 20% 0%, rgba(59,130,246,0.16) 0%, rgba(34,51,85,0) 60%),
    linear-gradient(135deg, #0d1424, #0f1a33);
}

/* blurred image layer */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("Images and Videos/background.png") center/cover no-repeat;
  filter: blur(18px);
  transform: scale(1.1);   /* prevents blur edge cutoff */
  z-index: 0;
  opacity: 0.4;            /* adjust strength */
}

/* keep content above */
.hero > * {
  position: relative;
  z-index: 1;
}

.hero__content {
  max-width: var(--tvb-container);
  margin: 0 auto;
  padding: 44px var(--tvb-pad);
}
.hero__content h1 {
  font-size: 2.25rem;
  margin-bottom: 6px;
  color: #dbe7ff;
}
.hero__content p {
  color: var(--tvb-muted);
  margin-bottom: 18px;
}
.hero__content .h1-accent {
  position: relative;
  padding-bottom: 10px;
}
.hero__content .h1-accent::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 74px;
  height: 4px;
  background: linear-gradient(90deg, var(--tvb-primary), var(--tvb-accent));
  border-radius: 999px;
  box-shadow: 0 0 18px rgba(34,211,238,0.18);
}

/* =============== PAGE CONTENT =============== */
.page-content {
  max-width: var(--tvb-container);
  margin: 16px auto;
  padding: 20px;
  background: transparent;
}

/* Thin separators between main content sections */
.page-content > section {
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--tvb-border);
}

/* =============== CARDS / GRIDS =============== */
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

/* IMPORTANT: Your old .card made EVERYTHING a link and underlined on hover.
   Now .card is just a "card". If you want clickable cards, use .card-link. */
.card {
  background: rgba(18, 26, 42, 0.55);
  border: 1px solid var(--tvb-border);
  border-radius: var(--tvb-radius);
  padding: 14px;
  box-shadow: var(--tvb-shadow-soft);
}
.card h3 { margin: 0 0 6px; color: var(--tvb-text); }
.card p { color: var(--tvb-muted); margin: 0; }

/* Clickable card variant (optional) */
.card-link {
  display: block;
  background: rgba(18, 26, 42, 0.55);
  border: 1px solid var(--tvb-border);
  border-radius: var(--tvb-radius);
  padding: 14px;
  box-shadow: var(--tvb-shadow-soft);
  color: var(--tvb-text);
  transition: transform 0.12s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.card-link:hover {
  transform: translateY(-2px);
  border-color: rgba(59,130,246,0.55);
  box-shadow: 0 14px 26px rgba(0,0,0,0.35);
}

/* Most requested */
.most-requested { background: transparent; border: 0; padding: 0; margin-bottom: 20px; }
.most-requested h2 { margin-top: 0; }
.most-requested .link-list {
  list-style: none;
  padding-left: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 16px;
  margin-top: 10px;
  font-weight: 800;
}
.most-requested .link-list a { color: var(--tvb-primary); }
.most-requested .link-list a:hover { color: #7aa9ff; }

/* News */
.news .news-item { border-top: 1px solid var(--tvb-border); padding: 12px 0; }
.news .news-item:first-of-type { border-top: none; }
.news .meta { color: var(--tvb-muted); font-size: 0.9rem; margin: 4px 0 8px; }

/* =============== BUTTONS =============== */
.btn-primary, .nav-btn {
  display: inline-block;
  padding: 11px 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 800;
  cursor: pointer;
  text-align: center;
  transition: transform 0.12s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

/* Primary */
.btn-primary, .nav-btn.primary {
  background: var(--tvb-primary);
  color: white;
}
.btn-primary:hover, .nav-btn.primary:hover {
  background: var(--tvb-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(59,130,246,0.22);
}

/* Secondary */
.nav-btn.secondary {
  background: rgba(3, 45, 112);
  border-color: rgba(59,130,246,0.25);
  color: #bcd2ff;
}
.nav-btn.secondary:hover {
  background: rgba(59,130,246,0.16);
  transform: translateY(-1px);
}

/* =============== APPLICATION CARDS =============== */
.application-card {
  position: relative;
  padding-bottom: 62px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.application-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--tvb-shadow);
  border-color: rgba(59,130,246,0.55);
}
.apply-button {
  position: absolute;
  bottom: 18px;
  left: 18px;
  right: 18px;
  background: var(--tvb-primary);
  color: white;
  padding: 10px 18px;
  border-radius: 12px;
  text-align: center;
  font-weight: 900;
}
.application-card:hover .apply-button { background: var(--tvb-primary-dark); }

/* =============== LANDING PAGE =============== */
body.landing {
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  min-height: 100vh;
}

body.landing::before {
  content: '';
  position: fixed;
  inset: 0;
  background: url('Images and Videos/ToadVille Bay - Tasiq Nunaat.png') center / cover no-repeat;
  filter: blur(9px);
  transform: scale(1.06);
  z-index: 0;
}
body.landing::after {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.38);
  z-index: 1;
}


.site-description {
  color: var(--tvb-accent);
  font-size: 1.05rem;
  margin-top: 10px;
  opacity: 0.9;
}

.landing-description {
  color: rgba(255, 255, 255, 0.65);
  max-width: 460px;
  text-align: center;
  margin: 16px auto 0;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.01em;
}

/* =============== SITEMAP =============== */
.sitemap-section { margin: 20px 0; }
.sitemap-section h3 {
  color: var(--tvb-primary);
  margin: 25px 0 15px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--tvb-border);
}
.sitemap-section ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 10px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.sitemap-section ul li { margin: 8px 0; }
.sitemap-section ul li a { color: var(--tvb-text); }
.sitemap-section ul li a:hover { color: #7aa9ff; }

/* =============== INFO CARDS =============== */
.info-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 20px 0;
}
.info-card {
  background: rgba(18,26,42,0.65);
  border: 1px solid var(--tvb-border);
  border-radius: var(--tvb-radius);
  padding: 18px;
  box-shadow: var(--tvb-shadow-soft);
}
.info-card h4 {
  color: var(--tvb-primary);
  margin: 0 0 12px 0;
  font-size: 1.08rem;
}
.info-card p, .info-card li { color: var(--tvb-muted); }

/* =============== FOOTER =============== */
.site-footer {
  border-top: 1px solid var(--tvb-border);
  margin-top: 24px;
  background: #0d1526;
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 170px;
  height: 170px;
  transform: translate(-50%, -50%);
  background: url('Images and Videos/KeplerIcon.png') center/contain no-repeat;
  opacity: 0.10;
  pointer-events: none;
  filter: drop-shadow(0 0 10px rgba(0,0,0,0.28));
  z-index: 0;
}
.footer-inner {
  max-width: var(--tvb-container);
  margin: 0 auto;
  padding: 18px var(--tvb-pad);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  position: relative;
  z-index: 1;
}
.footer-brand { display: flex; align-items: center; }
.footer-brand-img {
  width: 48px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.25);
}
.footer-links-columns {
  display: grid;
  gap: 14px 32px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.footer-links-columns h4 { margin: 0 0 6px; font-size: 1rem; color: var(--tvb-text); }
.footer-links-columns ul { list-style: none; padding-left: 0; }
.footer-links-columns ul li { margin: 6px 0; }
.footer-links-columns a { color: #bcd2ff; }
.footer-links-columns a:hover { color: #ffffff; }

.site-footer .site-footer-text {
  letter-spacing: 0.3px;
  display: inline-block;
  padding-top: 2px;
  color: #ffffff !important;
  opacity: 0.95;
}

/* =============== 404 PAGE =============== */
.error-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
  padding: 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.narwhal-background {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.18;
  z-index: 0;
  pointer-events: none;
}
.narwhal-background img { max-width: 600px; height: auto; display: block; }
.error-content { position: relative; z-index: 1; }
.error-code {
  font-size: 120px;
  font-weight: 900;
  color: #d32f2f;
  margin: 20px 0;
  text-shadow: 2px 2px 10px rgba(0,0,0,0.35);
}
.error-message {
  font-size: 32px;
  margin-bottom: 20px;
  color: var(--tvb-text);
  font-weight: 800;
}
.error-description {
  font-size: 18px;
  color: var(--tvb-muted);
  margin-bottom: 40px;
  max-width: 600px;
  line-height: 1.8;
}
.error-links {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.error-links a {
  display: inline-block;
  padding: 12px 22px;
  background-color: var(--tvb-primary);
  color: white;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 900;
  transition: background-color 0.2s ease, transform 0.12s ease, box-shadow 0.2s ease;
}
.error-links a:hover {
  background-color: var(--tvb-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(59,130,246,0.22);
}

/* =============== RESPONSIVE =============== */
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .most-requested .link-list { grid-template-columns: 1fr; }
  .footer-links-columns { grid-template-columns: repeat(2, 1fr); }
  .info-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .site-header__top { flex-direction: column; align-items: stretch; gap: 10px; }
  .site-utils { justify-content: space-between; flex-wrap: wrap; }
  .grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links-columns { grid-template-columns: 1fr; }
  .info-cards { grid-template-columns: 1fr; }
  .language-selection-card { width: 92%; }
}

/* =========================
   LANDING PAGE PATCH
   (Fixes giant flag + layout)
========================= */

body.landing {
  padding: 32px 16px; /* gives breathing room on small screens */
}

/* Center the landing content nicely */
.landing-content {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

/* Header row (flag + title) */
.header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 18px;
}

/* IMPORTANT: stops the flag from being huge */
.site-flag {
  width: 34px;
  height: auto;
  display: block;
  border-radius: 6px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.25);
}

/* Title spacing */
.site-title {
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.02em;
}

/* Buttons layout */
.navigation-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin: 18px 0 0;
}

/* Secondary buttons row */
.secondary-nav {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap
}

body.landing::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('Images and Videos/ToadVille Bay - Tasiq Nunaat.png') center / cover no-repeat;
    filter: blur(8px);
    transform: scale(1.05); /* avoid edge clipping from blur */
    z-index: 0;
}

.landing-copyright {
  margin-top: 18px; /* small push down */
}


