:root {
  --bg: #FDFDFD;
  --text: #3F4443;
  --primary: #28334A;
  --primary-dark: #475D76;
  --accent: #475D76;
  --card-bg: #101820;
  --border: #28334A;
  --footer-bg: #28334A;
  --footer-text: #FDFDFD;
}

[data-theme="dark"] {
  --bg: #101820;
  --text: #3F4443;
  --primary: #28334A;
  --primary-dark: #475D76;
  --accent: #475D76;
  --card-bg: #FDFDFD;
  --border: #28334A;
  --footer-bg: #28334A;
  --footer-text: #FDFDFD;
}

* { margin:0; padding:0; box-sizing:border-box; }

body {
  font-family: 'Bungee', sans-serif;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  transition: background 0.4s, color 0.4s;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.2rem;
}
.container2 {
  max-width: 1800px;
  margin: 0 auto;
  padding: 0 1.2rem;
}
.container3 {
  max-width: 1800px;
  margin: 0 auto;
  padding: 0 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.narrow { max-width: 820px; }

/* Typography */
h1 { font-size: 2.9rem; margin-bottom: 0.6rem; }
h2 { font-size: 2.1rem; text-align: center; margin: 1.2rem 0 1.4rem; }
h3 { font-size: 1.45rem; margin-bottom: 0.6rem; }

h1, h2, h3 { font-family: 'Bungee', serif; color: var(--primary); }

/* Navbar */
.navbar {
  position: fixed;
  top: 0; width: 100%;
  background: var(--primary);
  color: white;
  z-index: 1000;
  padding: 0.9rem 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  gap: 1.9rem;
  list-style: none;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--accent); }

.nav-right { display: flex; align-items: center; gap: 1.2rem; }

.theme-btn {
  background: none;
  border: none;
  color: var(--primary-dark);
  font-size: 1.3rem;
  cursor: pointer;
}

.hamburger { display: none; font-size: 1.7rem; cursor: pointer; }

/* Sections */
.section {
  min-height: calc(100vh - 64px);
  padding: 0.8rem 0 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Hero */
.hero {
  width: 100%;
  height: 48vh;
  min-height: 380px;
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
              url('images/cover_img.jpeg') center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
}

.hero-content {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(6px);
  padding: 2.4rem 3.4rem;
  border-radius: 14px;
  max-width: 700px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.hero-buttons {
  margin-top: 1.5rem;
  display: flex;
  gap: 1.1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Mission */
.mission-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.8rem;
  align-items: center;
}

.mission-img { width: 100%; border-radius: 10px; }

.mission-text ul {
  padding-left: 1.3rem;
  margin: 0.9rem 0;
  list-style: disc;
}

/* Cards grid – side by side */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-top: 0.8rem;
}
.cards-grid2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
  margin-top: 0.8rem;
}
.cards-grid3 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
  margin-top: 0.8rem;
}

.card {
  background: var(--card-bg);
  padding: 1.4rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  text-align: center;
  transition: transform 0.2s;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.card img {
  width: 100%;
  height: 140px;
  object-fit: contain;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.card-date, .news-date {
  color: var(--primary);
  font-weight: bold;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

/* Buttons */
.btn {
  background: var(--primary);
  color: white;
  padding: 0.7rem 1.4rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s;
}

.btn:hover { background: var(--primary); color: var(--primary-dark); }

.btn.secondary {
  background: transparent;
  border: 2px solid white;
}

.btn.secondary:hover { background: white; color: var(--primary); }

.btn.small { padding: 0.55rem 1.1rem; font-size: 0.92rem; }

/* Join section */
.join-section {
  background: var(--bg);
  padding: 4rem 0 3rem;
}

.join-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 440px;
  margin: 1.5rem auto;
}

.join-form input {
  padding: 0.9rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 1rem;
}

.join-subtitle {
  text-align: center;
  margin-bottom: 1.8rem;
  font-size: 1.1rem;
  color: var(--text);
}

/* Footer */
.footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 3rem 0 2rem;
  text-align: center;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.5rem;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.footer-column ul {
  list-style: none;
}

.footer-column a {
  color: var(--accent);
  text-decoration: none;
  display: block;
  margin: 0.5rem 0;
}

.footer-column a:hover { color: white; }

.social a {
  color: var(--footer-text);
  margin-right: 1.2rem;
  font-size: 1.6rem;
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--text);
  color: white;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.back-to-top.visible { opacity: 1; visibility: visible; }

/* Responsive */
@media (max-width: 1000px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--primary);
    padding: 1.2rem;
    flex-direction: column;
    gap: 1.2rem;
  }

  .nav-links.active { display: flex; }

  .hamburger { display: block; }

  .mission-layout { grid-template-columns: 1fr; }

  .cards-grid { grid-template-columns: 1fr; }

  .hero { height: 45vh; }

  h1 { font-size: 2.5rem; }
  h2 { font-size: 1.9rem; }
}

hr {
  width: 50%;
  margin-left: auto;
  margin-right: auto;
}