:root {
  --color-green: #00683B;
  --color-red: #EF1820;
  --color-blue: #2A3495;
  --color-black: #000000;
  --color-white: #FFFFFF;
  --color-bg: var(--color-white);
  --color-text: var(--color-black);
  --color-surface: #F5F6F7;
  --color-border: #E0E0E0;
}

[data-theme="dark"] {
  --color-bg: #10141A;
  --color-text: #F5F6F7;
  --color-surface: #1B2028;
  --color-border: #2A2F38;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  transition: background 0.2s ease, color 0.2s ease;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  border-bottom: 3px solid var(--color-green);
  background: var(--color-bg);
}

.site-header .brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-header .brand img {
  height: 48px;
}

.site-header .brand-name {
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.1;
}

.site-header .brand-name span {
  display: block;
  color: var(--color-green);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  border-radius: 6px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.btn:hover { opacity: 0.85; }

.btn-primary { background: var(--color-green); color: var(--color-white); }
.btn-secondary { background: var(--color-blue); color: var(--color-white); }
.btn-danger { background: var(--color-red); color: var(--color-white); }
.btn-donate { background: var(--color-red); color: var(--color-white); }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 0.4rem 0.9rem;
  cursor: pointer;
  color: var(--color-text);
  white-space: nowrap;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 0.25rem;
}
.lang-btn {
  background: none;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text);
  opacity: 0.55;
  padding: 0.3rem 0.65rem;
  line-height: 1;
  white-space: nowrap;
}
.lang-btn.active { opacity: 1; background: var(--color-green); color: #fff; }

main.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  min-height: 60vh;
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 2rem;
}

.auth-card {
  max-width: 420px;
  margin: 3rem auto;
}

.auth-card h1 {
  color: var(--color-green);
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
}

.form-group { margin-bottom: 1.1rem; }

.form-group label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.form-input {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border-radius: 6px;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 0.95rem;
}

.form-input:focus {
  outline: none;
  border-color: var(--color-blue);
}

.errorlist {
  color: var(--color-red);
  list-style: none;
  padding: 0;
  font-size: 0.85rem;
  margin: 0.3rem 0 0;
}

.alert {
  padding: 0.8rem 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.alert-success { background: rgba(0,104,59,0.12); color: var(--color-green); border: 1px solid var(--color-green); }
.alert-error { background: rgba(239,24,32,0.12); color: var(--color-red); border: 1px solid var(--color-red); }

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.role-badge {
  display: inline-block;
  background: var(--color-blue);
  color: var(--color-white);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.dashboard-tile {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-green);
  border-radius: 8px;
  padding: 1.25rem;
}

.dashboard-tile h3 { margin: 0 0 0.4rem; font-size: 1rem; }
.dashboard-tile p { margin: 0; font-size: 0.85rem; opacity: 0.75; }

.site-footer {
  border-top: 3px solid var(--color-green);
  padding: 2rem;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.75;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem 1.5rem;
}

.form-section-title {
  color: var(--color-green);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.4rem;
  margin: 1.75rem 0 1rem;
  font-size: 1rem;
}
.form-section-title:first-child { margin-top: 0; }

.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td {
  text-align: left; padding: 0.75rem; border-bottom: 1px solid var(--color-border); font-size: 0.9rem;
}
.data-table th { color: var(--color-green); font-size: 0.8rem; text-transform: uppercase; }

.btn-sm { padding: 0.35rem 0.9rem; font-size: 0.8rem; }

.status-pill { padding: 0.2rem 0.6rem; border-radius: 20px; font-size: 0.75rem; font-weight: 600; }
.status-active { background: rgba(0,104,59,0.15); color: var(--color-green); }
.status-on_leave { background: rgba(42,52,149,0.15); color: var(--color-blue); }
.status-terminated { background: rgba(239,24,32,0.15); color: var(--color-red); }

.balance-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 2rem;
}
.balance-tile {
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 8px;
  padding: 1.25rem; text-align: center;
}
.balance-tile .amount { font-size: 1.5rem; font-weight: 700; color: var(--color-green); }
.balance-tile .label { font-size: 0.8rem; opacity: 0.7; text-transform: uppercase; }

.notification-bell { position: relative; background: none; border: none; cursor: pointer; font-size: 1.3rem; color: var(--color-text); }
.notification-badge {
  position: absolute; top: -4px; right: -6px; background: var(--color-red); color: white;
  font-size: 0.65rem; font-weight: 700; border-radius: 50%; min-width: 16px; height: 16px;
  display: flex; align-items: center; justify-content: center; padding: 0 3px;
}
.notification-dropdown {
  position: absolute; right: 0; top: 110%; width: 320px; max-height: 400px; overflow-y: auto;
  background: var(--color-bg); border: 1px solid var(--color-border); border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15); z-index: 50; display: none;
}
.notification-dropdown.open { display: block; }
.notification-item {
  padding: 0.75rem 1rem; border-bottom: 1px solid var(--color-border); font-size: 0.85rem;
  text-decoration: none; color: var(--color-text); display: block;
}
.notification-item.unread { background: rgba(0,104,59,0.05); font-weight: 600; }
.notification-item small { display: block; opacity: 0.6; font-weight: 400; margin-top: 0.25rem; }

.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 2rem; border-bottom: 3px solid var(--color-green); background: var(--color-bg);
  flex-wrap: wrap; gap: 1rem;
}
.header-left { display: flex; align-items: center; gap: 1rem; }
.hamburger-btn {
  background: none; border: 1px solid var(--color-border); border-radius: 6px;
  font-size: 1.2rem; padding: 0.3rem 0.7rem; cursor: pointer; color: var(--color-text);
}
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: inherit; }
.brand img { height: 48px; }
.brand-name { font-weight: 700; font-size: 1.1rem; line-height: 1.1; }
.brand-name span { display: block; color: var(--color-green); }
.translate-widget { min-width: 120px; }

.hamburger-drawer {
  position: fixed; top: 0; left: -300px; width: 280px; height: 100vh;
  background: var(--color-bg); border-right: 1px solid var(--color-border);
  z-index: 100; transition: left 0.25s ease; padding: 2rem 1.5rem; overflow-y: auto;
}
.hamburger-drawer.open { left: 0; }
.drawer-nav { display: flex; flex-direction: column; gap: 1rem; }
.drawer-nav a {
  color: var(--color-text); text-decoration: none; font-weight: 600; font-size: 0.95rem;
  padding-bottom: 0.5rem; border-bottom: 1px solid var(--color-border);
}
.drawer-nav a:hover { color: var(--color-green); }
.drawer-link-soon {
  color: var(--color-text); opacity: 0.4; font-weight: 600; font-size: 0.95rem;
  padding-bottom: 0.5rem; border-bottom: 1px solid var(--color-border); cursor: default; display: block;
}
.drawer-link-soon small { display: block; font-weight: 400; opacity: 0.8; }
.drawer-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 90; display: none; }
.drawer-overlay.open { display: block; }

.feed-filters { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.5rem; }
.filter-chip {
  padding: 0.35rem 0.9rem; border-radius: 20px; border: 1px solid var(--color-border);
  font-size: 0.8rem; text-decoration: none; color: var(--color-text);
}
.filter-chip.active { background: var(--color-green); color: white; border-color: var(--color-green); }

.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.news-card {
  display: block; text-decoration: none; color: inherit; background: var(--color-surface);
  border: 1px solid var(--color-border); border-radius: 10px; overflow: hidden; transition: transform 0.15s ease;
}
.news-card:hover { transform: translateY(-3px); }
.news-card-media { position: relative; aspect-ratio: 16/9; background: var(--color-border); overflow: hidden; }
.news-card-media img { width: 100%; height: 100%; object-fit: cover; }
.news-card-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, var(--color-green), var(--color-blue)); }
.play-icon {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  background: rgba(0,0,0,0.6); color: white; border-radius: 50%; width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center; font-size: 1rem;
}
.news-card-body { padding: 1rem; }
.news-card-category {
  display: inline-block; background: rgba(0,104,59,0.12); color: var(--color-green);
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase; padding: 0.15rem 0.6rem;
  border-radius: 10px; margin-bottom: 0.5rem;
}
.news-card-body h3 { margin: 0 0 0.4rem; font-size: 1rem; }
.news-card-body p { margin: 0 0 0.5rem; font-size: 0.85rem; opacity: 0.8; }
.news-card-body small { opacity: 0.6; font-size: 0.75rem; }

.video-embed { position: relative; width: 100%; padding-top: 56.25%; margin: 1rem 0; border-radius: 8px; overflow: hidden; }
.video-embed iframe { position: absolute; top:0; left:0; width:100%; height:100%; border:0; }

.post-body { margin: 1.5rem 0; line-height: 1.7; }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.gallery-item img { width: 100%; border-radius: 8px; }
.gallery-caption { font-size: 0.8rem; opacity: 0.7; margin-top: 0.4rem; }

.footer-newsletter { max-width: 400px; margin: 0 auto 1.5rem; }
.newsletter-form { display: flex; gap: 0.5rem; margin-top: 0.5rem; }
.newsletter-form .form-input { flex: 1; }

.hp-field {
  position: absolute !important;
  width: 1px !important; height: 1px !important;
  margin: 0 !important; padding: 0 !important; border: 0 !important;
  overflow: hidden !important; clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
}

.social-links { display: flex; align-items: center; gap: 0.6rem; }
.social-links .social-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%; margin-bottom: 0;
  background: var(--color-surface); border: 1px solid var(--color-border);
  color: var(--color-text); transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.social-links .social-icon:hover { background: var(--color-green); border-color: var(--color-green); color: #fff; }

.hero {
  background: linear-gradient(135deg, var(--color-green), var(--color-blue));
  color: #fff;
  padding: 4rem 2rem;
  text-align: center;
  border-radius: 0 0 24px 24px;
  margin: -2.5rem -1.5rem 2.5rem;
}
.hero-content { max-width: 700px; margin: 0 auto; }
.hero-content h1 { font-size: 2.2rem; margin-bottom: 1rem; line-height: 1.25; }
.hero-content p { font-size: 1.05rem; opacity: 0.95; margin-bottom: 1.5rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-actions .btn-primary { background: #fff; color: var(--color-green); }
.hero-actions .btn-secondary { background: rgba(255,255,255,0.15); color: #fff; border: 1px solid rgba(255,255,255,0.4); }

.section-title {
  font-size: 1.4rem;
  color: var(--color-green);
  margin: 0 0 1.25rem;
  border-left: 4px solid var(--color-red);
  padding-left: 0.75rem;
}

.featured-section { margin-bottom: 3rem; }
.featured-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.5rem; }
.featured-card {
  display: block; text-decoration: none; color: inherit;
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: 14px; overflow: hidden; transition: transform 0.15s ease;
}
.featured-card:hover { transform: translateY(-4px); }
.featured-card-media { position: relative; aspect-ratio: 16/9; background: var(--color-border); overflow: hidden; }
.featured-card-media img { width: 100%; height: 100%; object-fit: cover; }
.featured-card-body { padding: 1.25rem; }
.featured-card-body h3 { margin: 0 0 0.5rem; font-size: 1.1rem; }
.featured-card-body p { margin: 0; font-size: 0.9rem; opacity: 0.85; line-height: 1.5; }

.hero {
  position: relative;
  background: linear-gradient(rgba(0,104,59,0.88), rgba(42,52,149,0.88)), url("../images/hero-bg.6351850e835d.jpeg");
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 4rem 2rem;
  text-align: center;
  border-radius: 0 0 24px 24px;
  margin: -2.5rem -1.5rem 2.5rem;
}

.site-footer {
  border-top: 3px solid var(--color-green);
  padding: 3rem 2rem 1.5rem;
  margin-top: 3rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto 2rem;
}
.footer-col h4 { color: var(--color-green); font-size: 0.9rem; margin-bottom: 0.75rem; }
.footer-col a { display: block; color: var(--color-text); text-decoration: none; font-size: 0.85rem; opacity: 0.8; margin-bottom: 0.5rem; }
.footer-col a:hover { opacity: 1; color: var(--color-green); }
.footer-col p { font-size: 0.85rem; opacity: 0.8; margin: 0 0 0.4rem; }
.footer-bottom {
  text-align: center; font-size: 0.8rem; opacity: 0.65;
  border-top: 1px solid var(--color-border); padding-top: 1.5rem; max-width: 1100px; margin: 0 auto;
}
.amount-presets { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.amount-chip {
  padding: 0.6rem 1.2rem; border-radius: 8px; border: 2px solid var(--color-green);
  background: none; color: var(--color-green); font-weight: 700; cursor: pointer;
}
.amount-chip:hover { background: var(--color-green); color: #fff; }

/* Hide Google's default translate UI — engine still runs, just invisible */
#google_translate_element,
.translate-widget {
  display: none !important;
}
.goog-te-banner-frame,
iframe.goog-te-banner-frame,
.skiptranslate iframe {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
}
body {
  top: 0px !important;
  position: static !important;
}
#goog-gt-tt,
.goog-te-balloon-frame,
.goog-tooltip,
.goog-tooltip:hover {
  display: none !important;
}
.goog-text-highlight {
  background: none !important;
  box-shadow: none !important;
}

/* Responsive header/nav — scales fluidly across resolutions rather than
   jumping into a stripped-down "mobile mode" at arbitrary widths. */
.site-header {
  padding: clamp(0.65rem, 1.4vw + 0.4rem, 1rem) clamp(1rem, 3vw, 2rem);
  gap: clamp(0.6rem, 1.5vw, 1rem);
}
.header-left { gap: clamp(0.6rem, 1.2vw, 1rem); }
.site-header .brand img { height: clamp(32px, 3.5vw + 16px, 48px); }
.site-header .brand-name { font-size: clamp(0.85rem, 0.6vw + 0.75rem, 1.1rem); }
.nav-actions { gap: clamp(0.4rem, 1vw, 1rem); }
.btn { padding: clamp(0.45rem, 0.6vw + 0.3rem, 0.6rem) clamp(0.75rem, 1.6vw + 0.4rem, 1.4rem); font-size: clamp(0.8rem, 0.3vw + 0.75rem, 0.95rem); }
.theme-toggle { padding: clamp(0.4rem, 0.5vw + 0.25rem, 0.4rem) clamp(0.55rem, 1vw + 0.3rem, 0.9rem); font-size: clamp(0.8rem, 0.3vw + 0.75rem, 0.95rem); }
.lang-btn { padding: clamp(0.25rem, 0.3vw + 0.15rem, 0.3rem) clamp(0.5rem, 0.6vw + 0.3rem, 0.65rem); font-size: clamp(0.72rem, 0.2vw + 0.68rem, 0.8rem); }

/* Tablets and phones: the row no longer has room for every label, so let it
   scroll horizontally as one clean line instead of wrapping into a jumble,
   and drop the theme-toggle's text label (icon alone stays clear). */
@media (max-width: 640px) {
  .site-header { flex-wrap: nowrap; }
  .theme-toggle .btn-label { display: none; }
  .nav-actions {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .nav-actions::-webkit-scrollbar { display: none; }
  .btn, .theme-toggle, .lang-toggle, .notification-bell { flex-shrink: 0; }
  .notification-dropdown { width: min(280px, 88vw); right: -0.5rem; }
}

/* Small phones only: trim the wordmark's tagline so the brand doesn't crowd the row */
@media (max-width: 380px) {
  .site-header .brand-name span { display: none; }
}