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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #2d3748;
  background: linear-gradient(135deg, rgba(247, 250, 252, 0.95) 0%, rgba(237, 242, 247, 0.95) 100%),
              url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 600"><path d="M400 50 L450 80 L480 120 L500 180 L510 240 L500 300 L480 360 L450 420 L420 460 L380 480 L340 490 L300 485 L260 470 L230 440 L210 400 L200 350 L205 300 L220 250 L240 200 L270 150 L310 110 L350 80 L400 50 Z M420 100 L440 120 L455 150 L465 190 L470 230 L465 270 L450 310 L430 340 L410 360 L385 370 L360 365 L340 350 L325 325 L315 295 L312 260 L318 225 L330 190 L350 160 L375 135 L400 120 L420 100 Z" fill="%2393b023" opacity="0.08"/><circle cx="380" cy="200" r="8" fill="%23589632" opacity="0.15"/><circle cx="340" cy="280" r="6" fill="%23589632" opacity="0.12"/><circle cx="420" cy="320" r="5" fill="%2393b023" opacity="0.1"/></svg>') no-repeat right center;
  background-size: cover, 40%;
  background-attachment: fixed;
  overflow-x: hidden;
}

/* Bilingual text: every visible string exists twice in the markup,
   in a span.en and a span.fr sitting next to each other. The class on
   <body> hides one of the two. When editing content, update BOTH spans.
   See the note at the top of <body>. */
body.lang-fr .en { display: none; }
body.lang-en .fr { display: none; }

a {
  color: #589632;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

a:hover {
  color: #93b023;
}

/* Navigation */
.navbar {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 3px solid #589632;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.nav-brand {
  font-size: 1.5rem;
  font-weight: 900;
  color: #589632;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
}

.nav-menu a {
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  padding: 0.5rem 0;
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #93b023;
  transition: width 0.3s ease;
}

.nav-menu a:hover::after {
  width: 100%;
}

.user-group-select {
  padding: 0.6rem 1rem;
  border: 2px solid #589632;
  border-radius: 8px;
  background: white;
  color: #589632;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.user-group-select:hover {
  background: #589632;
  color: white;
}

/* Language toggle button, styled to match the select next to it */
.lang-toggle {
  padding: 0.6rem 1rem;
  border: 2px solid #589632;
  border-radius: 8px;
  background: white;
  color: #589632;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  margin-left: 0.5rem;
}

.lang-toggle:hover {
  background: #589632;
  color: white;
}

/* Hero Section */
.hero {
  max-width: 1400px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  color: #589632;
  margin-bottom: 1rem;
  letter-spacing: -1px;
  text-shadow: 2px 2px 4px rgba(88, 150, 50, 0.1);
  animation: fadeInUp 0.8s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-nav {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.page-nav li a {
  font-size: 1.1rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.page-nav li a:hover {
  background: rgba(88, 150, 50, 0.1);
}

.hero-description {
  font-size: 1.3rem;
  line-height: 1.8;
  color: #4a5568;
  max-width: 700px;
  margin: 2rem 0;
}

.osgeo-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.2rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  margin-top: 1rem;
}

/* Feature Cards */
.features {
  max-width: 1400px;
  margin: 4rem auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border-top: 4px solid #589632;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(88, 150, 50, 0.15);
}

.feature-card h3 {
  color: #589632;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.feature-card p {
  color: #4a5568;
  line-height: 1.7;
  font-size: 1.05rem;
}

/* Content Sections */
.content-section {
  max-width: 1200px;
  margin: 4rem auto;
  padding: 3rem 2rem;
  background: white;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.section-title {
  font-size: 2.5rem;
  color: #589632;
  margin-bottom: 1.5rem;
  font-weight: 700;
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #589632, #93b023);
  border-radius: 2px;
}

.section-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #4a5568;
}

.section-content ul {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
}

.section-content li {
  margin: 1rem 0;
  padding-left: 0.5rem;
}

.meeting-info {
  background: linear-gradient(135deg, #589632, #93b023);
  color: white;
  padding: 2rem;
  border-radius: 12px;
  margin-top: 2rem;
}

.meeting-info strong {
  display: block;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.meeting-info a {
  color: #ffffff;
  text-decoration: underline;
  font-weight: 600;
}

.meeting-info a:hover {
  color: #fff9c4; /* light yellow */
  text-decoration: none;
  background: rgba(255, 255, 255, 0.15);
  padding: 0 4px;
  border-radius: 3px;
}

/* Footer */
.footer {
  background: linear-gradient(135deg, #589632, #93b023);
  color: white;
  padding: 3rem 2rem;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.social-links {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 2rem 0;
}

.social-links a {
  display: inline-flex;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: white;
  transform: scale(1.1);
}

.social-links a svg {
  width: 24px;
  height: 24px;
  fill: white;
  transition: fill 0.3s ease;
}

.social-links a:hover svg {
  fill: #589632;
}

.footer-text {
  opacity: 0.9;
  font-size: 0.95rem;
  margin-top: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-menu {
    flex-direction: column;
    gap: 1rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .page-nav {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* Official-group ribbon — under the header, right side */
.official-ribbon {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
}

.official-ribbon-text {
  margin-top: 0.6rem;
  padding: 0.35rem 0.9rem;
  background: linear-gradient(90deg, #589632, #93b023);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  line-height: 1.3;
  text-align: center;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* News banner */
.news-banner {
  max-width: 1400px;
  margin: 1.5rem auto 0;
  padding: 0 2rem;
}
.news-banner-inner {
  background: linear-gradient(135deg, #589632, #93b023);
  color: white;
  padding: 1.25rem 1.75rem;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(88, 150, 50, 0.25);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.news-banner a {
  color: white;
  text-decoration: underline;
  font-weight: 700;
}
.news-banner a:hover {
  color: #fff9c4;
}
.poster-btn {
  background: white;
  color: #589632;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}
.poster-btn:hover {
  background: #f7fafc;
  transform: translateY(-2px);
}

/* Modal / pop-in */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-overlay.active {
  display: flex;
}
.modal-content {
  background: white;
  border-radius: 16px;
  max-width: 900px;
  max-height: 90vh;
  overflow: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: #589632;
  color: white;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 1;
}
.modal-close:hover {
  background: #93b023;
}
.modal-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
}