* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@font-face {
  font-family: 'Gunplay';
  /* Your file is .otf (OpenType), so use opentype */
  src: url('./fonts/gunplay-rg.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

body {
  font-family: 'Gunplay', sans-serif;
  background-image: url('./images/BG.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;

  /* FIX: visible text */
  color: rgba(255, 255, 255, 0.92);

  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header */
.header {
  background-color: rgba(0, 0, 0, 0.65);
  color: rgba(255, 255, 255, 0.95); /* FIX */
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;

  /* Optional: blur/glass look (safe to keep) */
  backdrop-filter: blur(6px);
}

.header h1 a {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  font-size: 24px;
}

.nav-links {
  list-style-type: none;
  display: flex;
}

.nav-links li {
  margin-left: 20px;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-size: 18px;
}

.nav-links a:hover {
  text-decoration: underline;
}
#logo-container {
  flex: 1;                 /* takes remaining height below header */
  display: flex;
  justify-content: center; /* horizontal center */
  align-items: center;     /* vertical center */
  padding: 0;              /* remove extra padding that shifts it */
}
/* Logo */
.logo-container {
  display: flex;
  justify-content: center;
  padding: 20px;
}

.logo {
  width: 1000px;
  height: auto;

}

/* Main content */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px;
}

.section {
  display: none;
  padding: 20px;

  /* FIX: readable background (was fully transparent) */
  background-color: rgba(0, 0, 0, 0.55);

  border-radius: 8px;
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.35);
  margin-bottom: 20px;

  /* Ensure text inside is visible even if inherited styles change */
  color: rgba(255, 255, 255, 0.95);
}

.section.active {
  display: block;
}

.section h1, .section h2, .section p, .section address, .section a {
  color: rgba(255, 255, 255, 0.95);
}

/* Contact */
.contact-info h1 {
  font-size: 24px;
  margin-bottom: 10px;
}
/* About page logos: side-by-side, farther apart, +100px space under */
.image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 80px;          /* farther apart (increase/decrease as you like) */
  margin-bottom: 100px; /* space under the images */
  flex-wrap: wrap;    /* keeps it nice on small screens */
}

.logo-s {
  height: 120px;      /* same height */
  width: auto;        /* no stretching */
  object-fit: contain;
  display: block;
}
.header-logo{
  width: 50px;
  height: 50px;
  object-fit: contain; /* no stretching */
  display: block;
}
.logo-s {
  height: 120px;     /* pick the height you want */
  width: auto;       /* keeps aspect ratio (no stretching) */
  max-width: 45%;    /* prevents one logo from becoming huge */
  object-fit: contain;
  display: block;
}
.contact-info address p {
  margin: 5px 0;
}

.contact-info a {
  color: rgba(255, 255, 255, 0.95);
}

/* Login page */
.login-container {
  max-width: 400px;
  margin: 50px auto;
  padding: 20px;

  /* Keep login box readable */
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.35);

  /* Login text should be dark on light background */
  color: rgba(0, 0, 0, 0.9);
}

.login-container h2 {
  text-align: center;
  margin-bottom: 20px;
}

.login-container label {
  display: block;
  margin-bottom: 5px;
}

.login-container input[type="text"],
.login-container input[type="password"] {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.login-container button {
  width: 100%;
  padding: 10px;
  background-color: #333;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
}

.login-container button:hover {
  background-color: #555;
}
/* Stylish language switcher */
.lang-switch{
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(6px);
}

.lang-btn{
  appearance: none;
  border: 1px solid rgba(255,255,255,0.25);
  background: transparent;
  color: rgba(255,255,255,0.9);
  font-family: inherit;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 120ms ease, background-color 120ms ease, border-color 120ms ease;
}

.lang-btn:hover{
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.45);
  transform: translateY(-1px);
}

.lang-btn.is-active{
  background: rgba(255,255,255,0.9);
  color: rgba(0,0,0,0.9);
  border-color: rgba(255,255,255,0.9);
}
/* Vertically center the header nav items */
.nav-links{
  display: flex;
  align-items: center;   /* vertical centering */
}

.nav-links li{
  display: flex;
  align-items: center;   /* keeps each li centered */
}

.nav-links a{
  text-decoration: none;
  padding: 8px 12px;          /* creates the rectangle area */
  border-radius: 999px;       /* rounded pill */
  transition: background-color 150ms ease, color 150ms ease;
}

.nav-links a:hover{
  background-color: rgba(255,255,255,0.15);
  text-decoration: none;      /* ensure underline stays off */
}

/* =========================
   Mobile / responsive fixes
   Paste at the END of file
   ========================= */

/* Prevent horizontal overflow on small screens */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* Make images scale down nicely */
img {
  max-width: 100%;
  height: auto;
}

/* Mobile: fixed backgrounds often break/lag */
@media (max-width: 768px) {
  body {
    background-attachment: scroll;
  }
}

/* Header: allow wrapping so nav doesn't push width */
@media (max-width: 768px) {
  .header {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 10px 12px;
    text-align: center;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 10px;
    margin-top: 6px;
  }

  .nav-links li {
    margin-left: 0; /* remove desktop spacing */
  }

  .nav-links a {
    font-size: 16px;
    padding: 8px 10px;
  }

  .lang-switch {
    margin-top: 4px;
  }
}

/* Fix the big logo scaling */
.logo {
  width: min(1000px, 92vw); /* keeps desktop size, scales on mobile */
}

/* Center logo container nicely on mobile */
@media (max-width: 768px) {
  #logo-container {
    padding: 16px 0;
  }

  .logo-container {
    padding: 12px;
  }
}

/* Container/sections: less padding on mobile */
@media (max-width: 768px) {
  .container {
    padding: 14px;
  }

  .section {
    padding: 14px;
    margin-bottom: 14px;
  }
}

/* About logos: reduce gap and size on small screens */
@media (max-width: 768px) {
  .image-container {
    gap: 20px;
    margin-bottom: 24px;
  }

  .logo-s {
    height: 90px;
    max-width: 70%;
  }
}

/* Login box: fit smaller screens */
@media (max-width: 480px) {
  .login-container {
    margin: 20px 12px;
    padding: 16px;
  }
}
/* NEWS layout: make each post take full width */
.news-list {
  display: block;
  width: 100%;
}

.news-item {
  display: block;
  width: 100%;
}

/* Make the link/title not shrink-wrap */
.news-title,
.news-title a {
  display: block;
  width: 100%;
}

/* Featured image link should be block-level too */
.news-thumb {
  display: block;
  width: 100%;
}

.news-thumb img {
  display: block;
  width: 100%;
  height: auto;
}
.news-item {
  margin: 14px 0;
  padding: 14px;
  border-radius: 8px;
  background: rgba(0,0,0,0.35);
}
