/* --- General Style --- */
:root {
  --primary-color: #E27D2F;
  --secondary-color: #3E332A;
  --surface-color: #FFFFFF;
  --text-color: #2C251F;
  --text-color-secondary: #555555;
  --background-color: #F9F6F0;
  --header-footer-color: #3E332A;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  margin: 0;
  background-color: var(--background-color);
  color: var(--text-color);
  overflow-x: hidden;
}

/* --- Header --- */
header {
  background: linear-gradient(to bottom, #EAE4D7, var(--background-color));
  padding: 1rem;
}

.header-content {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.logo {
  max-width: 180px;
  border-radius: 50%;
  box-shadow: 0 5px 15px rgba(44, 37, 31, 0.15);
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.language-switcher-header {
  display: flex;
  gap: 0.75rem;
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
}

.language-switcher-header a {
  display: block;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  transition: transform 0.3s, box-shadow 0.3s;
}

.language-switcher-header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.language-switcher-header a:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.language-switcher-header a.active {
  border: 2px solid var(--primary-color);
}

/* --- Hero Section --- */
.hero {
  text-align: center;
  padding: 0.5rem 1rem 2rem;
  background: linear-gradient(to bottom, #FAE8D6, var(--surface-color));
  color: var(--text-color);
  max-width: 1200px;
  margin: 2rem auto;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 700;
  color: var(--primary-color);
  padding: 0 1rem;
}

.hero p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-color-secondary);
  max-width: 800px;
  margin: 0 auto;
}

/* --- Event Section --- */
.events {
  padding: 0.5rem 1rem 2rem;
  max-width: 1200px;
  margin: 3rem auto;
  background: var(--surface-color);
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.events h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  font-weight: 600;
  color: var(--secondary-color);
}

.event-list {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

/* --- About Section --- */
.about-npo {
  background: linear-gradient(to bottom, #FAE8D6, var(--surface-color));
  padding: 0.5rem 1rem 2rem;
  margin: 3rem auto;
  max-width: 1200px;
  border-radius: 1rem;
  text-align: left;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.about-npo h2 {
  text-align: center;
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
}

.about-npo p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-color-secondary);
  max-width: 800px;
  margin: 0 auto 1.5rem auto;
}

.about-npo ul {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-color-secondary);
  max-width: 800px;
  margin: 0 auto 1.5rem auto;
  padding-left: 2rem;
  list-style-position: outside;
}

.about-npo li {
  margin-bottom: 1rem;
}

.about-npo strong {
  color: var(--text-color);
}

.document-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.bylaws-link {
  display: block;
  background-color: var(--primary-color);
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  transition: background-color 0.3s;
}

.bylaws-link:hover {
  background-color: var(--secondary-color);
}

/* --- Footer --- */
footer {
  box-sizing: border-box;
  text-align: center;
  padding: 2rem 1rem;
  margin-top: 3rem;
  background-color: var(--header-footer-color);
  color: var(--background-color);
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.footer-links {
  margin-bottom: 1rem;
}

footer a {
  color: var(--primary-color);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* --- Utility --- */
.language-switcher {
  margin-bottom: 1rem;
}

.language-switcher a {
  color: var(--primary-color);
  text-decoration: none;
  margin: 0 0.5rem;
  font-weight: bold;
}

.language-switcher a:hover,
.language-switcher a.active {
  text-decoration: underline;
}

#back-to-top {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 99;
  border: none;
  outline: none;
  background-color: var(--primary-color);
  color: white;
  cursor: pointer;
  padding: 15px;
  border-radius: 50%;
  font-size: 18px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
  transition: background-color 0.3s;
}

#back-to-top:hover {
  background-color: var(--secondary-color);
}

/* --- Media Queries --- */
@media (max-width: 768px) {
  .hero, .events, .about-npo {
    margin-left: 1rem;
    margin-right: 1rem;
  }
}

@media (max-width: 600px) {
  .header-content {
    flex-direction: column;
    gap: 1rem;
  }
  .logo {
    max-width: 150px;
  }
  .language-switcher-header {
    position: static;
    transform: none;
  }
  .hero,
  .events,
  .about-npo {
    padding: 2rem 1rem;
  }
  .document-links {
    flex-direction: column;
    align-items: center;
  }
}
