:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f5;
  /* --card-bg: #e5e5e5; */
  --card-bg: #dddddd;
  --nav-bg: #101010;
  --text: #222;
  --text-muted: #555;
  --accent: #4499FF;
  --button-bg: #101010;
  /* --page-bottom-nav-bg: #dddddd; */
  /* --page-bottom-nav-hover-bg: #999; */
  --page-bottom-nav-bg: #151515;
  --page-bottom-nav-hover-bg: #1B1B1B;
}

[data-theme="dark"] {
  --bg: #252525;
  --bg-alt: #202020;
  --card-bg: #151515;
  --nav-bg: #101010;
  --text: #e6e6e6;
  --text-muted: #888;
  --button-bg: #080808;
  --page-bottom-nav-bg: #151515;
  --page-bottom-nav-hover-bg: #1B1B1B;
}

/* ===== Base ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  /* background: #252525; */
  background: var(--bg);
  /* color: #ffffff; */
  /* color: #e6e6e6; */
  color: var(--text);
  line-height: 1.6;
  transition: background 0.2s ease, color 0.2s ease;
}

/* ===== Navigation ===== */
.nav {
  height: 70px;
  /* background: #101010; */
  background: var(--nav-bg);
  color: white;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 1.5rem;
}

.nav-logo {
  font-weight: bold;
  font-style: italic;
}

.nav-toggle {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

.nav-links {
  list-style: none;
  display: none;
  position: absolute;
  top: 70px;
  right: 0;
  background: #151515;
  width: 200px;
}

.nav-links li a {
  display: block;
  padding: 1rem;
  color: #ddd;
  text-decoration: none;
}

.nav-links li a:hover {
  color: #4499FF;
}

.nav-links.show {
  display: block;
}

/* Desktop nav */
@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .nav-links {
    position: static;
    display: flex;
    width: auto;
    background: none;
  }

  .nav-links li a {
    padding: 0 1rem;
  }
}

/* ===== Hero ===== */
.hero {
  max-width: 900px;
  margin: 4rem auto;
  padding: 0 1rem;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  /* color: #4499FF; */
  /* color: #fff; */
  color: var(--text);
  margin-bottom: 1rem;
}

.hero-lead {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.hero-sub {
  font-size: 1.25rem;
  color: var(--text);
  margin-bottom: 1rem;
}

/* ===== Sections ===== */
.section {
  max-width: 1000px;
  margin: 0 auto 4rem;
  padding: 0 1rem;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
}

/* ===== Cards ===== */
.card {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* background: #151515; */
    background: var(--card-bg);
    border-radius: 10px;
    margin: 0 auto;
    margin-bottom: 2rem;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
}

.card h3 {
  margin-bottom: 1rem;
}

.card p {
  margin-bottom: 1.5rem;
}

.card img {
    display: block;
    max-width: 75%;
    margin: 1rem 0;
    border-radius: 6px;
    background: #000;
    padding: 4px;
}

.card ul {
  display: inline-block;
  text-align: left;
  padding-left: 1.2rem;
  margin: 0;
}

.card ul li {
  text-align: center;
  list-style-position: inside;
  margin-bottom: 0.5rem;
}

.card-date {
  margin-top: 1rem;
  font-size: 0.9rem;
  /* color: #888; */
  color: var(--text-muted);
}

/* ===== Carousel ===== */
.carousel-wrapper {
  position: relative;
  width: 100%;
  /* margin: 3rem auto; */
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  width: 100%;
  /* background: red; */
}

.carousel::-webkit-scrollbar {
  display: none;
}

/* .carousel-slide {
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  scroll-snap-align: center;
} */
/* .carousel-slide {
  display: block;
  cursor: pointer;
} */
.carousel-slide {
  flex: 0 0 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  scroll-snap-align: center;
  cursor: pointer;
}

/* .carousel-slide img {
  max-width: 90%;
  max-height: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  background: #000;
  padding: 6px;
} */
.carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
}

/* Buttons */
.carousel-btn {
  background: var(--button-bg);
  color: white;
  border: none;
  font-size: 2rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
}

.carousel-btn:hover {
  background: var(--accent);
}

.carousel-btn.prev {
  margin-right: 0.5rem;
}

.carousel-btn.next {
  margin-left: 0.5rem;
}

/* Dots */
.carousel-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  max-width: 100%;
  padding: 0 1rem;
  box-sizing: border-box;
}

.carousel-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: #777;
  cursor: pointer;
}

.carousel-dots button.active {
  background: var(--accent);
}

/* ==== Lightbox ==== */
.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 1000;
}

.lightbox.active {
  display: block;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  margin: auto;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  justify-content: center;
  align-items: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  font-size: 2rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

/* ===== Buttons ===== */
.button {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.75rem 1.5rem;
  /* background: #080808; */
  background: var(--button-bg);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
}

.button:hover {
  background: #252525;
}

.theme-toggle {
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
  margin-left: 1rem;
}

.theme-toggle:hover {
  color: var(--accent);
}

.page_bottom_nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.page_bottom_nav .button {
  background: var(--page-bottom-nav-bg);
}

.page_bottom_nav .button:hover {
  background: var(--page-bottom-nav-hover-bg);
}

/* ===== Text Link ===== */
.text_link {
  color: var(--text);
}

.text_section {
  margin-bottom: 5rem;
}
