@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;700&family=Manrope:wght@400;600;700&display=swap");

:root {
  --bg: #f4f8ee;
  --paper: #fffef7;
  --ink: #143324;
  --muted: #456451;
  --primary: #17873f;
  --primary-deep: #0f5e2c;
  --accent: #f3d017;
  --line: #d7e4d5;
  --card-bg: linear-gradient(135deg, #fffdf3 0%, #f5fbef 100%);
  --card-border: #bfd7bc;
  --card-shadow: 0 10px 22px rgba(15, 94, 44, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 14%, #f8e57a 0%, rgba(248, 229, 122, 0) 32%),
    radial-gradient(circle at 85% 0%, #a9dfb8 0%, rgba(169, 223, 184, 0) 30%),
    var(--bg);
}

.page {
  min-height: 100vh;
}

.hero {
  max-width: 1280px;
  margin: 0.75rem auto 1rem;
  padding: 1.5rem 1.25rem 3rem;
  border-radius: 18px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(10, 46, 23, 0.64) 0%, rgba(11, 56, 26, 0.58) 40%, rgba(9, 41, 21, 0.72) 100%),
    url("hskoba_background.jpg") center center / cover no-repeat;
  box-shadow: 0 14px 35px rgba(12, 44, 24, 0.26);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  padding-bottom: 0.9rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.brand-logo {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.75);
  background: #fff;
  object-fit: cover;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.24);
}

.brand-title {
  margin: 0;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  color: #ffffff;
}

.brand-subtitle {
  margin: 0;
  color: rgba(238, 247, 248, 0.85);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 1rem;
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.login-menu {
  position: relative;
}

.login-menu-button {
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: rgba(15, 63, 29, 0.5);
  color: #ffffff;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.nav-contact-link {
  display: inline-block;
  text-decoration: none;
}

.login-submenu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 140px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 10px;
  background: rgba(10, 46, 23, 0.94);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.24);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 130ms ease, transform 130ms ease, visibility 130ms ease;
  z-index: 6;
}

.login-menu:hover .login-submenu,
.login-menu:focus-within .login-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.login-submenu a {
  display: block;
  color: #f1f7ff;
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.55rem 0.72rem;
}

.login-submenu a:hover {
  background: rgba(255, 255, 255, 0.11);
}

.nav-links a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.lang-toggle {
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: rgba(15, 63, 29, 0.5);
  color: #ffffff;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease;
}

.lang-toggle:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: #ffffff;
}

.hero-content {
  padding-top: 3.2rem;
  max-width: 760px;
  animation: rise 650ms ease-out;
}

.hero-kicker {
  font-family: "Barlow Condensed", sans-serif;
  letter-spacing: 0.18em;
  margin: 0;
  color: #f8e57a;
}

.hero-content h1 {
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  line-height: 0.98;
  margin: 0.45rem 0 0.85rem;
  color: #ffffff;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
}

.hero-text {
  margin: 0;
  color: #ebf4f6;
  max-width: 62ch;
}

.hero-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  border: 0;
  border-radius: 10px;
  padding: 0.75rem 1.2rem;
  font-weight: 700;
  cursor: pointer;
  font-family: "Manrope", sans-serif;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-deep);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.82);
  color: #ffffff;
  backdrop-filter: blur(2px);
}

.btn-ghost:hover {
  background: #ffffff;
  color: var(--primary-deep);
}

.status {
  margin-top: 1rem;
  display: inline-block;
  background: #eff7dc;
  color: #0f5e2c;
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.stats-section,
.content-section,
.footer {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.about-section {
  max-width: 1180px;
  margin: 0 auto 2.2rem;
  padding: 0 1.25rem;
}

.stats-section {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  border-radius: 14px;
  box-shadow: var(--card-shadow);
  padding: 1rem;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, rgba(243, 208, 23, 0) 80%);
}

.stat-value {
  margin: 0;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 2rem;
  color: var(--primary-deep);
}

.stat-label {
  margin: 0.2rem 0 0;
  color: var(--muted);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.about-card {
  border: 1px solid var(--card-border);
  border-radius: 14px;
  background: var(--card-bg);
  box-shadow: var(--card-shadow);
  padding: 1rem;
  position: relative;
  overflow: hidden;
}

.about-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, rgba(23, 135, 63, 0) 82%);
}

.about-card h3 {
  margin: 0 0 0.55rem;
  color: var(--primary-deep);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.35rem;
}

.about-card p {
  margin: 0;
  color: #334a47;
}

.about-card ul {
  margin: 0;
  padding-left: 1.05rem;
  color: #334a47;
}

.about-card li + li {
  margin-top: 0.45rem;
}

.content-section {
  margin-bottom: 2.5rem;
}

.home-highlights {
  margin-top: 0.5rem;
}

.registration-section {
  margin-top: 1.25rem;
  margin-bottom: 2.2rem;
}

.auth-page-shell {
  max-width: 1180px;
}

.auth-hero-topbar {
  margin-bottom: 0.9rem;
}

.auth-hero-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  color: #e7f3f5;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  padding: 0.45rem 0.78rem;
  font-weight: 700;
  background: rgba(15, 63, 29, 0.42);
}

.auth-hero-back-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #ffffff;
}

.auth-hero {
  border-radius: 16px;
  overflow: hidden;
  padding: 1rem 1.1rem 2.2rem;
  margin-bottom: 1rem;
  background:
    linear-gradient(180deg, rgba(10, 46, 23, 0.62) 0%, rgba(12, 58, 28, 0.62) 45%, rgba(10, 49, 24, 0.7) 100%),
    url("hskoba_background.jpg") center center / cover no-repeat;
  box-shadow: 0 12px 30px rgba(12, 44, 24, 0.24);
}

.auth-hero-registration {
  min-height: 230px;
}

.auth-hero-login {
  min-height: 220px;
}

.auth-hero-kicker {
  margin: 0;
  color: #f8e57a;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.82rem;
}

.auth-hero-title {
  margin: 0.45rem 0 0.6rem;
  color: #ffffff;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(2rem, 4.2vw, 3.7rem);
  line-height: 0.95;
}

.auth-hero-text {
  margin: 0;
  color: #e7f3f5;
  max-width: 66ch;
}

.auth-form-shell {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  padding: 1rem;
}

.registration-description {
  margin: 0 0 0.9rem;
  color: #39504d;
}

.registration-form {
  padding: 0;
}

.registration-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.registration-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.registration-field span {
  font-weight: 700;
  color: #2e4643;
  font-size: 0.88rem;
}

.registration-field input {
  width: 100%;
  border: 1px solid #c7d7d4;
  border-radius: 10px;
  padding: 0.62rem 0.72rem;
  font: inherit;
  background: #ffffff;
}

.registration-field textarea {
  width: 100%;
  border: 1px solid #c7d7d4;
  border-radius: 10px;
  padding: 0.62rem 0.72rem;
  font: inherit;
  background: #ffffff;
  min-height: 96px;
  resize: vertical;
}

.registration-field input:focus {
  outline: 2px solid rgba(21, 94, 99, 0.25);
  border-color: var(--primary);
}

.registration-field textarea:focus {
  outline: 2px solid rgba(21, 94, 99, 0.25);
  border-color: var(--primary);
}

.consent-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: #2f4744;
  font-size: 0.9rem;
}

.consent-checkbox-row input {
  margin-top: 0.2rem;
  width: 1rem;
  height: 1rem;
}

.registration-consent-row {
  margin-top: 0.9rem;
}

.registration-actions {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.registration-status {
  margin: 0;
  font-weight: 700;
  font-size: 0.92rem;
}

.registration-status.success {
  color: #1f6b3f;
}

.registration-status.error {
  color: #a13030;
}

.magazine-form-message {
  margin: 0.8rem 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid transparent;
}

.magazine-form-message .registration-status {
  margin: 0;
}

.magazine-form-message.success {
  border-color: #b7dcc0;
  background: #f2fbf3;
}

.magazine-form-message.error {
  border-color: #ef9b9b;
  background: #fff2f2;
}

.custom-alert-overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(7, 18, 34, 0.55);
  z-index: 999;
}

.custom-alert-overlay[hidden] {
  display: none !important;
}

.custom-alert-box {
  width: min(100%, 420px);
  border: 1px solid #cddedc;
  border-radius: 14px;
  background: #fffef9;
  box-shadow: 0 14px 36px rgba(10, 26, 45, 0.35);
  padding: 1rem;
}

.custom-alert-title {
  margin: 0;
  color: var(--primary-deep);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.55rem;
}

.custom-alert-message {
  margin: 0.65rem 0 1rem;
  color: #314845;
}

.custom-alert-actions {
  display: flex;
  gap: 0.7rem;
  justify-content: flex-end;
}

.custom-alert-actions .btn-ghost {
  background: #eef8ed;
  color: var(--primary-deep);
  border: 1px solid #b8d5b3;
}

.custom-alert-actions .btn-ghost:hover {
  background: #deefdb;
  border-color: #93bc8c;
}

.admin-edit-modal-box {
  width: min(100%, 920px);
}

.admin-edit-form {
  margin-top: 0.75rem;
  display: grid;
  gap: 0.85rem;
}

.admin-edit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.admin-edit-grid .admin-input {
  width: 100%;
}

.admin-edit-textarea {
  min-height: 88px;
  resize: vertical;
}

.admin-alumni-search-modal-box {
  width: min(100%, 860px);
}

.admin-alumni-search-toolbar {
  margin: 0.85rem 0 1rem;
}

.admin-alumni-search-input {
  width: 100%;
}

.admin-alumni-search-results {
  max-height: min(60vh, 560px);
  overflow: auto;
  border: 1px solid #cfe2d6;
  border-radius: 12px;
  background: #f8fbf7;
  padding: 0.75rem;
}

.admin-alumni-search-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 0.55rem;
}

.admin-alumni-search-table thead th {
  text-align: left;
  padding: 0.55rem 0.8rem;
  font-size: 0.85rem;
  letter-spacing: 0.01em;
  color: #2b4a40;
  font-weight: 700;
}

.admin-alumni-search-row td {
  background: #ffffff;
  border-top: 1px solid #dbe7dc;
  border-bottom: 1px solid #dbe7dc;
  padding: 0.72rem 0.85rem;
  color: #29403d;
  vertical-align: middle;
}

.admin-alumni-search-row td:first-child {
  border-left: 1px solid #dbe7dc;
  border-radius: 10px 0 0 10px;
}

.admin-alumni-search-row td:last-child {
  border-right: 1px solid #dbe7dc;
  border-radius: 0 10px 10px 0;
}

.admin-alumni-search-row:hover td {
  background: #eef7ec;
  border-color: #bed7bf;
}

.admin-alumni-search-table td,
.admin-alumni-search-table th {
  white-space: nowrap;
}

.admin-alumni-search-membership {
  font-size: 0.92rem;
  color: #5b6f6b;
}

.admin-alumni-search-name {
  font-weight: 700;
}

.admin-alumni-search-action {
  text-align: right;
}

.admin-alumni-search-select-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  padding: 0.42rem 0.9rem;
  border-radius: 999px;
  border: 1px solid #8dbf95;
  background: #dff1e2;
  color: #0f5a3a;
  font-weight: 700;
  font-size: 0.88rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.08s ease;
}

.admin-alumni-search-select-btn:hover {
  background: #cfead4;
  border-color: #76ab80;
}

.admin-alumni-search-select-btn:active {
  transform: translateY(1px);
}

.admin-alumni-search-select-btn:focus-visible {
  outline: 2px solid #2b7a57;
  outline-offset: 2px;
}

.admin-alumni-search-empty {
  margin: 0;
  padding: 1rem;
  color: #5b6f6b;
}

.admin-alumni-search-btn {
  min-width: 9rem;
}

@media (max-width: 820px) {
  .admin-edit-grid {
    grid-template-columns: 1fr;
  }

  .admin-alumni-search-table thead {
    display: none;
  }

  .admin-alumni-search-table,
  .admin-alumni-search-table tbody,
  .admin-alumni-search-table tr,
  .admin-alumni-search-table td {
    display: block;
    width: 100%;
  }

  .admin-alumni-search-row td {
    border-left: 1px solid #dbe7dc;
    border-right: 1px solid #dbe7dc;
    border-radius: 0;
  }

  .admin-alumni-search-row td:first-child {
    border-radius: 10px 10px 0 0;
  }

  .admin-alumni-search-row td:last-child {
    border-radius: 0 0 10px 10px;
  }

  .admin-alumni-search-action {
    text-align: left;
  }
}

.countdown-popup-box {
  width: min(100%, 560px);
}

.countdown-popup-box .custom-alert-title,
.countdown-popup-box .custom-alert-message {
  text-align: center;
}

.countdown-popup-grid {
  margin-top: 0.25rem;
}

.login-section {
  margin-top: 1.25rem;
  margin-bottom: 2.2rem;
}

.login-card {
  padding: 0;
}

.login-role-label {
  margin: 0;
  color: #2e4643;
}

.login-role-description {
  margin: 0.45rem 0 0.9rem;
  color: #405a56;
}

.login-switches {
  display: flex;
  gap: 0.7rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.login-switches .btn {
  text-decoration: none;
}

.login-form {
  display: grid;
  gap: 0.85rem;
  max-width: 540px;
}

.login-submit {
  width: fit-content;
}

.contact-extra-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.contact-map-card,
.contact-bank-card {
  border: 1px solid var(--card-border);
  border-radius: 14px;
  background: var(--card-bg);
  box-shadow: var(--card-shadow);
  padding: 1rem;
}

.contact-map-card h3,
.contact-bank-card h3 {
  margin: 0 0 0.55rem;
  color: var(--primary-deep);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.4rem;
}

.contact-card-intro {
  margin: 0;
  color: #345548;
}

.contact-map-wrap {
  margin-top: 0.8rem;
  border: 1px solid #d2e4d1;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
}

.contact-map-frame {
  width: 100%;
  height: 320px;
  border: 0;
  display: block;
}

.contact-map-link {
  margin-top: 0.75rem;
  display: inline-flex;
  text-decoration: none;
}

.contact-bank-list {
  margin-top: 0.75rem;
}

.contact-qr-wrap {
  margin-top: 1rem;
}

.contact-qr-image {
  width: 220px;
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  border: 8px solid #ffffff;
  box-shadow: 0 10px 22px rgba(15, 94, 44, 0.14);
  background: #ffffff;
}

.admin-pin-request-btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.2rem;
  border: 1px solid #8fb19b;
  background: #f2f7f2;
  color: #163d2a;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.admin-pin-request-btn:hover {
  background: #e2efe3;
  border-color: #6d9a7f;
  color: #123322;
}

.admin-pin-request-btn:focus-visible {
  outline: 2px solid rgba(21, 94, 99, 0.35);
  outline-offset: 2px;
}

.admin-ui-body {
  background:
    radial-gradient(circle at 12% 10%, rgba(31, 71, 52, 0.18) 0%, rgba(31, 71, 52, 0) 26%),
    radial-gradient(circle at 88% 0%, rgba(160, 195, 173, 0.35) 0%, rgba(160, 195, 173, 0) 28%),
    linear-gradient(180deg, #eef4ef 0%, #dfe8e2 100%);
}

.admin-auth-page-shell,
.admin-dashboard-page-shell {
  max-width: 1240px;
}

.admin-auth-hero,
.admin-dashboard-hero {
  border: 1px solid rgba(16, 51, 38, 0.14);
  border-radius: 18px;
  padding: 1.2rem 1.2rem 1.5rem;
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(18, 49, 37, 0.96) 0%, rgba(27, 69, 50, 0.93) 58%, rgba(233, 241, 235, 0.98) 58%, rgba(233, 241, 235, 0.98) 100%);
  box-shadow: 0 18px 38px rgba(19, 45, 34, 0.14);
}

.admin-auth-hero::before,
.admin-dashboard-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  width: min(74%, 760px);
  background: linear-gradient(90deg, rgba(7, 31, 21, 0.42) 0%, rgba(7, 31, 21, 0.16) 72%, rgba(7, 31, 21, 0) 100%);
  pointer-events: none;
}

.admin-auth-topbar,
.admin-dashboard-topbar {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.7rem;
  flex-wrap: nowrap;
  position: relative;
  z-index: 1;
}

.admin-topbar-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
}

.admin-lang-toggle {
  text-decoration: none;
  color: #eaf5ec;
}

.admin-logout-form {
  margin: 0;
}

.admin-topbar-chip {
  min-height: 40px;
  border-radius: 12px;
  padding: 0.5rem 0.95rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  border: 1px solid rgba(191, 219, 200, 0.7);
  box-shadow: 0 8px 18px rgba(13, 53, 30, 0.2);
}

.admin-topbar-actions .admin-lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  background: rgba(13, 54, 35, 0.82);
}

.admin-topbar-actions .admin-lang-toggle:hover {
  background: rgba(18, 74, 48, 0.92);
}

.admin-logout-btn {
  border-radius: 999px;
  background: linear-gradient(135deg, #1f7f4a 0%, #156137 100%);
  color: #ffffff;
}

.admin-logout-btn:hover {
  background: linear-gradient(135deg, #1b7142 0%, #124f2e 100%);
}

@media (max-width: 520px) {
  .admin-auth-topbar,
  .admin-dashboard-topbar {
    justify-content: flex-start;

  .contact-extra-grid {
    grid-template-columns: 1fr;
  }

  .contact-map-frame {
    height: 260px;
  }
    flex-wrap: wrap;
  }

  .admin-topbar-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

.admin-auth-kicker {
  margin: 0;
  color: #bdecca;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
  font-size: 0.8rem;
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.34);
}

.admin-auth-title {
  margin: 0.45rem 0 0.6rem;
  color: #f8fffb;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 0.95;
  max-width: 7ch;
  position: relative;
  z-index: 1;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.46);
}

.admin-auth-text {
  margin: 0;
  color: #eff7f1;
  max-width: 34ch;
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.36);
}

.admin-section-nav-wrap {
  margin-top: 1rem;
}

.admin-section-nav-label {
  margin: 0 0 0.45rem;
  color: #cfe4d6;
  font-weight: 700;
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-section-nav {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.admin-section-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(191, 219, 200, 0.72);
  padding: 0.45rem 0.78rem;
  text-decoration: none;
  color: #e8f4ec;
  background: rgba(17, 63, 40, 0.66);
  font-weight: 700;
  font-size: 0.9rem;
  transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
}

.admin-section-btn:hover {
  background: rgba(26, 86, 55, 0.86);
  border-color: rgba(208, 232, 216, 0.9);
}

.admin-section-btn.is-active {
  background: #f0f7f1;
  color: #16422d;
  border-color: #b7d4be;
}

.admin-auth-form-shell,
.admin-dashboard-panel-shell {
  border: 1px solid rgba(28, 63, 47, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 28px rgba(30, 58, 44, 0.08);
  backdrop-filter: blur(8px);
}

.admin-dashboard-panel-shell {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(244, 248, 244, 0.96) 100%);
}

.admin-dashboard-panel-shell .admin-panel-head {
  padding-bottom: 0.2rem;
  border-bottom: 1px solid #dce7dd;
}

.admin-dashboard-panel-shell .login-role-label {
  color: #214534;
  font-size: 1rem;
}

.admin-dashboard-panel-shell .admin-table-wrap {
  border-radius: 14px;
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.admin-dashboard-panel-shell .admin-table th {
  background: linear-gradient(180deg, #edf5ed 0%, #e3efe4 100%);
}

.admin-dashboard-panel-shell .admin-pagination {
  padding-top: 0.25rem;
}

.admin-placeholder-panel {
  padding: 1.1rem;
}

.admin-placeholder-panel h2 {
  margin: 0;
  color: #1a4531;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.7rem;
}

.admin-placeholder-panel p {
  margin: 0.55rem 0 0;
  color: #36524a;
}

.admin-upload-form {
  display: flex;
  align-items: end;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-bottom: 0.9rem;
}

.admin-folder-toolbar {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin: 0.6rem 0 0.9rem;
}

.admin-folder-list {
  display: grid;
  gap: 0.45rem;
  margin: 0.45rem 0 0.9rem;
}

.admin-folder-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.45rem;
}

.admin-folder-open-form {
  min-width: 0;
  margin: 0;
}

.admin-folder-delete-form {
  margin: 0;
}

.admin-folder-btn {
  width: 100%;
  text-align: left;
  justify-content: flex-start;
}

.admin-folder-toolbar .btn-ghost,
.admin-folder-btn {
  background: #f5fbf6;
  border: 1px solid #b8ceb9;
  color: #1d4732;
  backdrop-filter: none;
}

.admin-folder-toolbar .btn-ghost:hover,
.admin-folder-btn:hover {
  background: #e8f4ea;
  color: #123728;
}

.admin-folder-delete-btn {
  min-height: 42px;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .admin-folder-item {
    grid-template-columns: 1fr;
  }

  .admin-folder-delete-form .admin-folder-delete-btn {
    width: 100%;
  }
}

.admin-upload-field {
  display: grid;
  gap: 0.35rem;
}

.admin-upload-label {
  display: block;
  color: #2b4c3c;
  font-weight: 700;
  font-size: 0.86rem;
  margin-bottom: 0.35rem;
}

.admin-upload-input {
  border: 1px solid #b9cebd;
  border-radius: 10px;
  padding: 0.45rem 0.55rem;
  background: #ffffff;
  color: #1a4331;
  font: inherit;
  min-width: min(100%, 320px);
}

.admin-text-content-form {
  display: grid;
  gap: 0.9rem;
  align-items: stretch;
}

.admin-placeholder-panel .admin-upload-form.admin-text-content-form {
  display: block !important;
  align-items: initial;
  gap: 0;
  flex-wrap: nowrap;
}

.admin-text-content-group {
  border: 1px solid #d5e3d7;
  border-radius: 12px;
  background: #f9fcf9;
  padding: 0.8rem;
}

.admin-placeholder-panel .admin-upload-form.admin-text-content-form .admin-text-content-group {
  display: block;
  width: 100%;
  max-width: 1200px;
  margin-bottom: 0.9rem;
}

.admin-text-content-heading {
  margin-bottom: 0.45rem;
  font-size: 1rem;
  color: #1f4b35;
}

.admin-text-content-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.admin-text-content-group-head .admin-text-content-heading {
  margin-bottom: 0;
}

.admin-text-content-input {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  resize: vertical;
}

.admin-event-row {
  border: 1px solid #d5e4d7;
  border-radius: 10px;
  background: #ffffff;
  padding: 0.72rem;
  margin-top: 0.45rem;
}

.admin-event-date-input {
  appearance: auto;
  -webkit-appearance: auto;
  color-scheme: light;
  min-height: 42px;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding-right: 2.45rem;
  background: linear-gradient(180deg, #ffffff 0%, #f3faf0 100%);
}

.admin-event-date-input::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 1;
  filter: invert(22%) sepia(23%) saturate(918%) hue-rotate(92deg) brightness(90%) contrast(89%);
}

.admin-event-description-input {
  min-height: 110px;
  resize: vertical;
}

.admin-text-content-form .btn {
  justify-self: start;
}

.admin-placeholder-panel .admin-upload-form.admin-text-content-form .btn {
  display: inline-flex;
  margin-top: 0.1rem;
}

.admin-placeholder-panel .admin-upload-form.admin-text-content-form .admin-activity-add-btn,
.admin-placeholder-panel .admin-upload-form.admin-text-content-form .admin-activity-remove-btn {
  background: #eef8ed;
  border: 1px solid #93bc8c;
  color: #1b4a34;
  backdrop-filter: none;
}

.admin-placeholder-panel .admin-upload-form.admin-text-content-form .admin-activity-add-btn:hover,
.admin-placeholder-panel .admin-upload-form.admin-text-content-form .admin-activity-remove-btn:hover {
  background: #deefdb;
  color: #143b2b;
}

.admin-placeholder-panel .admin-upload-form.admin-text-content-form .admin-activity-add-btn {
  margin-top: 0;
  white-space: nowrap;
}

.admin-placeholder-panel .admin-upload-form.admin-text-content-form .admin-activity-remove-btn {
  width: fit-content;
  margin-top: 0.3rem;
}

.admin-photo-grid {
  margin-top: 0.7rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.7rem;
}

.admin-photo-empty {
  grid-column: 1 / -1;
  margin: 0;
  border: 1px dashed #bfd3c3;
  border-radius: 12px;
  background: #f8fbf8;
  padding: 0.9rem;
  color: #476459;
  text-align: center;
}

.admin-photo-card {
  border: 1px solid #cfe0d1;
  border-radius: 12px;
  background: #f8fcf8;
  padding: 0.65rem;
  display: flex;
  flex-direction: column;
}

.admin-photo-thumb-wrap {
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 0.55rem;
}

.admin-photo-thumb-image {
  width: 100%;
  height: 110px;
  object-fit: contain;
  object-position: center;
  display: block;
  background: #f1f7f2;
}

.admin-photo-thumb {
  height: 110px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #1e4f38;
  background:
    linear-gradient(135deg, #e6f4e8 0%, #d2e8d7 100%);
  margin-bottom: 0.55rem;
}

.admin-photo-thumb.fallback {
  margin-bottom: 0;
  padding: 0.6rem;
  font-size: 0.84rem;
  text-align: center;
}

.admin-photo-card h3 {
  margin: 0;
  color: #1f4d37;
  font-size: 0.96rem;
}

.admin-photo-card p {
  margin: 0.35rem 0 0;
  color: #48665b;
  font-size: 0.84rem;
  word-break: break-word;
}

.admin-drive-link {
  color: #155f36;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.admin-drive-link:hover {
  color: #114a2a;
}

.admin-photo-delete-btn {
  margin-top: 0.65rem;
  width: 100%;
  padding: 0.55rem 0.7rem;
}

.admin-photo-card form.js-db-form {
  margin-top: auto;
}

.js-loading-btn.is-loading,
.js-loading-btn:disabled {
  opacity: 0.75;
  cursor: wait;
}

.admin-loading-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(7, 18, 34, 0.58);
  z-index: 2000;
}

.admin-loading-overlay.is-visible {
  display: flex;
}

.admin-loading-panel {
  min-width: 210px;
  max-width: min(90vw, 360px);
  padding: 1rem 1.2rem;
  border: 1px solid #cddedc;
  border-radius: 14px;
  background: #fffef9;
  box-shadow: 0 14px 36px rgba(10, 26, 45, 0.35);
  display: grid;
  justify-items: center;
  gap: 0.7rem;
}

.admin-loading-spinner {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 4px solid #dbe9d7;
  border-top-color: #1f6b3f;
  animation: admin-spin 0.8s linear infinite;
}

.admin-loading-text {
  margin: 0;
  color: #1f3b37;
  font-weight: 700;
}

@keyframes admin-spin {
  to {
    transform: rotate(360deg);
  }
}

.payment-page-shell {
  display: grid;
  gap: 1rem;
}

.payment-summary-card,
.payment-method-card,
.payment-notice-card {
  border: 1px solid var(--card-border);
  border-radius: 14px;
  background: var(--card-bg);
  box-shadow: var(--card-shadow);
  padding: 1rem;
}

.payment-summary-card h3,
.payment-method-card h3,
.payment-notice-card h3 {
  margin: 0 0 0.6rem;
  color: var(--primary-deep);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.45rem;
}

.payment-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.payment-summary-grid div {
  border: 1px solid #d2e4d1;
  border-radius: 12px;
  background: #f7fbf3;
  padding: 0.8rem;
}

.payment-summary-grid span,
.payment-bank-list dt {
  display: block;
  color: #456451;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.payment-summary-grid strong,
.payment-bank-list dd {
  display: block;
  margin-top: 0.3rem;
  color: #153527;
  font-size: 1.02rem;
}

.payment-method-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.payment-method-card p,
.payment-notice-card p {
  margin: 0;
  color: #345548;
}

.payment-gateway-actions {
  display: grid;
  gap: 0.6rem;
  margin-top: 0.9rem;
}

.payment-gateway-btn {
  width: 100%;
}

.payment-note {
  margin-top: 0.85rem;
  color: #567069;
  font-size: 0.9rem;
}

.payment-email-line {
  margin: 0.9rem 0 0;
  color: #345548;
  line-height: 1.7;
}

.payment-email-link {
  color: var(--primary-deep);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  margin-left: 0.35rem;
}

.payment-email-link:hover {
  color: var(--primary);
}

.payment-qr-wrap {
  margin-top: 0.9rem;
  display: flex;
  justify-content: center;
}

.payment-qr-code {
  position: relative;
  width: 210px;
  height: 210px;
  border-radius: 16px;
  border: 10px solid #ffffff;
  box-shadow: 0 10px 22px rgba(15, 94, 44, 0.14);
  background:
    linear-gradient(90deg, #173d2b 10px, transparent 10px) 0 0 / 30px 30px,
    linear-gradient(#173d2b 10px, transparent 10px) 0 0 / 30px 30px,
    linear-gradient(90deg, #173d2b 16px, transparent 16px) 15px 15px / 42px 42px,
    linear-gradient(#173d2b 16px, transparent 16px) 15px 15px / 42px 42px,
    #f7fbf3;
}

.payment-qr-center {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 54px;
  height: 54px;
  transform: translate(-50%, -50%);
  border-radius: 12px;
  background: linear-gradient(135deg, #17873f 0%, #f3d017 100%);
  box-shadow: 0 0 0 8px #ffffff;
}

.payment-bank-list {
  margin: 0.9rem 0 0;
  display: grid;
  gap: 0.8rem;
}

.payment-bank-list div {
  border: 1px solid #d2e4d1;
  border-radius: 12px;
  background: #f7fbf3;
  padding: 0.8rem;
}

.payment-bank-list dd {
  margin-left: 0;
}

.admin-page-section {
  margin-top: 1.25rem;
  margin-bottom: 2.2rem;
}

.admin-panel-shell {
  display: grid;
  gap: 0.9rem;
}

.admin-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.admin-panel-state {
  margin: 0;
  color: #39504d;
  font-weight: 700;
}

.admin-panel-state.error {
  color: #a13030;
}

.admin-table-toolbar {
  padding: 0.7rem 0.8rem;
  border-bottom: 1px solid var(--line);
}

.admin-search-group {
  display: grid;
  gap: 0.35rem;
  max-width: 460px;
  width: 100%;
}

.admin-search-label {
  color: #334a47;
  font-weight: 700;
  font-size: 0.88rem;
}

.admin-search-input {
  border: 1px solid #b5cbc7;
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  background: #ffffff;
  font: inherit;
  color: #1f3f3b;
  box-shadow: inset 0 1px 1px rgba(12, 46, 37, 0.04);
}

.admin-search-input:focus {
  outline: 2px solid rgba(32, 118, 59, 0.22);
  outline-offset: 1px;
  border-color: #87b78f;
}

.admin-table-wrap {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
  background: #ffffff;
}

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 0.7rem 0.8rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}

.admin-table th {
  background: #eef8ed;
  color: #1f3f3b;
  font-weight: 800;
  position: sticky;
  top: 0;
}

.admin-committee-table-wrap {
  background: #ffffff;
}

.admin-committee-table {
  min-width: 700px;
  table-layout: fixed;
}

.admin-committee-table th:first-child,
.admin-committee-table td:first-child {
  width: 36%;
}

.admin-committee-table th:last-child,
.admin-committee-table td:last-child {
  width: 64%;
}

.admin-committee-table tbody tr:nth-child(even) {
  background: #fbfdfb;
}

.admin-committee-table td {
  vertical-align: middle;
}

.admin-committee-table .admin-upload-input {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.admin-committee-table input.admin-committee-position-input[readonly] {
  background: #edf1ee !important;
  border-color: #cad5cf !important;
  color: #6c7b74 !important;
  -webkit-text-fill-color: #6c7b74;
  font-weight: 600;
  cursor: default;
}

.admin-committee-table input.admin-committee-position-input[readonly]:focus {
  outline: none;
  box-shadow: none;
}

.admin-panel-state.success {
  color: #1f6b3f;
}

.admin-input {
  width: 100%;
  border: 1px solid #bdd2ba;
  border-radius: 8px;
  padding: 0.38rem 0.5rem;
  font: inherit;
  background: #ffffff;
}

.admin-actions-cell {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.admin-action-btn {
  min-width: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.7rem;
  font-size: 0.8rem;
}

.admin-actions-cell .btn-ghost {
  background: #eef8ed;
  color: var(--primary-deep);
  border: 1px solid #b8d5b3;
}

.admin-actions-cell .btn-ghost:hover {
  background: #deefdb;
  border-color: #93bc8c;
}

.magazine-table-wrap {
  border-radius: 14px;
  box-shadow: 0 10px 22px rgba(18, 63, 44, 0.06);
}

.magazine-table {
  min-width: 1120px;
}

.magazine-table th:first-child,
.magazine-table td:first-child {
  width: 22%;
}

.magazine-table th:nth-child(2),
.magazine-table td:nth-child(2) {
  width: 10%;
}

.magazine-table th:nth-child(3),
.magazine-table td:nth-child(3) {
  width: 24%;
}

.magazine-table th:nth-child(4),
.magazine-table td:nth-child(4) {
  width: 18%;
}

.magazine-table th:nth-child(5),
.magazine-table td:nth-child(5) {
  width: 10%;
  white-space: nowrap;
}

.magazine-table th:nth-child(6),
.magazine-table td:nth-child(6) {
  width: 16%;
}

.magazine-table tbody tr:hover {
  background: #f8fcf7;
}

.magazine-table td {
  vertical-align: middle;
}

.admin-table-empty-row {
  text-align: center;
  color: #58706a;
  padding: 1.2rem 0.9rem;
}

.magazine-title-cell {
  font-weight: 700;
  color: #1f3f3b;
}

.magazine-edit-cell {
  min-width: 0;
}

.magazine-inline-input {
  width: 100%;
  min-width: 150px;
  padding: 0.48rem 0.62rem;
  border-radius: 10px;
  border: 1px solid #b8d5b3;
  background: #ffffff;
  box-shadow: inset 0 1px 1px rgba(12, 46, 37, 0.04);
}

.magazine-year-input {
  min-width: 92px;
  max-width: 120px;
}

.magazine-inline-input:focus {
  outline: 2px solid rgba(32, 118, 59, 0.18);
  outline-offset: 1px;
}

.magazine-file-name {
  display: inline-block;
  word-break: break-word;
}

.magazine-actions-cell {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.magazine-actions-cell form {
  margin: 0;
}

.magazine-inline-form {
  display: inline-flex;
}

.magazine-actions-cell .admin-action-btn {
  min-width: 84px;
  padding: 0.52rem 0.8rem;
  font-size: 0.82rem;
  border-radius: 999px;
}

.magazine-view-btn {
  background: #eef8ed;
  color: var(--primary-deep);
  border: 1px solid #b8d5b3;
}

.magazine-view-btn:hover {
  background: #dff0dc;
  color: var(--primary-deep);
}

.magazine-save-btn {
  box-shadow: 0 6px 14px rgba(23, 135, 63, 0.16);
}

.magazine-save-btn:hover {
  box-shadow: 0 8px 18px rgba(23, 135, 63, 0.22);
}

.magazine-delete-btn {
  box-shadow: 0 6px 14px rgba(197, 58, 52, 0.16);
}

.magazine-delete-btn:hover {
  box-shadow: 0 8px 18px rgba(161, 45, 40, 0.2);
}

.video-description-input {
  min-height: 110px;
  resize: vertical;
}

.video-create-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.9rem 1rem;
  align-items: start;
}

.video-create-field {
  min-width: 0;
}

.video-create-title-field,
.video-create-url-field {
  grid-column: span 1;
}

.video-create-description-field {
  grid-column: 1 / -1;
}

.video-create-form .admin-upload-input {
  width: 100%;
  min-width: 0;
}

.video-create-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.video-create-actions .btn {
  min-width: 132px;
}

.video-table-wrap {
  border-radius: 14px;
  box-shadow: 0 10px 22px rgba(18, 63, 44, 0.06);
}

.video-table {
  min-width: 1120px;
}

.video-table th:first-child,
.video-table td:first-child {
  width: 20%;
}

.video-table th:nth-child(2),
.video-table td:nth-child(2) {
  width: 34%;
}

.video-table th:nth-child(3),
.video-table td:nth-child(3) {
  width: 30%;
}

.video-table th:nth-child(4),
.video-table td:nth-child(4) {
  width: 19%;
}

.video-table tbody tr:hover {
  background: #f8fcf7;
}

.video-display-cell {
  vertical-align: middle;
  color: #29483d;
}

.video-cell-title {
  display: block;
  color: #1c4432;
  font-weight: 700;
}

.video-cell-description {
  margin: 0;
  color: #466157;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.video-url-link {
  color: var(--primary-deep);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  overflow-wrap: anywhere;
}

.video-url-link:hover {
  color: var(--primary);
}

.video-actions-cell {
  vertical-align: middle;
}

.video-action-cluster {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  min-width: 112px;
  max-width: 140px;
}

.video-action-cluster form {
  margin: 0;
}

.video-actions-cell .admin-action-btn {
  width: 100%;
  min-width: 0;
  padding: 0.5rem 0.8rem;
  font-size: 0.82rem;
  border-radius: 999px;
  text-align: center;
  justify-content: center;
  white-space: nowrap;
  line-height: 1.2;
}

.video-open-btn {
  background: #eef8ed;
  color: var(--primary-deep);
  border: 1px solid #b8d5b3;
}

.video-open-btn:hover {
  background: #dff0dc;
  color: var(--primary-deep);
}

.video-save-btn {
  box-shadow: 0 6px 14px rgba(23, 135, 63, 0.16);
}

.video-save-btn:hover {
  box-shadow: 0 8px 18px rgba(23, 135, 63, 0.22);
}

.video-delete-btn {
  box-shadow: 0 6px 14px rgba(197, 58, 52, 0.16);
}

.video-delete-btn:hover {
  box-shadow: 0 8px 18px rgba(161, 45, 40, 0.2);
}

.video-delete-form .video-delete-btn {
  width: 100%;
}

.video-edit-modal-box {
  width: min(100%, 720px);
}

.video-modal-form {
  display: grid;
  gap: 0.85rem;
  margin-top: 0.85rem;
}

.video-modal-form .admin-upload-input {
  width: 100%;
  min-width: 0;
}

.video-modal-actions {
  margin-top: 0.2rem;
}

@media (max-width: 760px) {
  .video-create-form {
    grid-template-columns: 1fr;
  }

  .video-create-title-field,
  .video-create-url-field,
  .video-create-description-field,
  .video-create-actions {
    grid-column: 1;
  }

  .video-create-actions {
    justify-content: stretch;
  }

  .video-create-actions .btn {
    width: 100%;
  }
}

.btn-danger {
  background: #c53a34;
  color: #ffffff;
}

.btn-danger:hover {
  background: #a12d28;
}

.chairman-section {
  margin-bottom: 2.2rem;
}

.chairman-card {
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 1.2rem;
  background:
    radial-gradient(circle at 10% 8%, rgba(243, 208, 23, 0.2) 0%, rgba(243, 208, 23, 0) 36%),
    var(--card-bg);
  box-shadow: var(--card-shadow);
}

.chairman-meta {
  margin: 0;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.55rem;
  color: var(--primary-deep);
}

.chairman-role {
  margin: 0.2rem 0 0.8rem;
  color: #2d5240;
  font-weight: 700;
}

.chairman-message {
  margin: 0;
  color: #2f4b3a;
  line-height: 1.65;
}

.admin-empty-row {
  text-align: center;
  color: #4a5d59;
}

.admin-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.admin-pagination-left {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.admin-pagination-label {
  color: #334a47;
  font-weight: 700;
}

.admin-pagination-left select {
  border: 1px solid #c7d7d4;
  border-radius: 8px;
  padding: 0.35rem 0.45rem;
  background: #ffffff;
  font: inherit;
}

.admin-pagination-summary,
.admin-pagination-page {
  margin: 0;
  color: #3c5451;
  font-weight: 700;
}

.admin-pagination-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.admin-pagination-actions .btn-ghost {
  background: #ffffff;
  color: var(--primary-deep);
  border: 1px solid #c7d7d4;
}

.admin-pagination-actions .btn-ghost:hover:not(:disabled) {
  background: #eaf3f2;
  border-color: #96b4b0;
}

.admin-pagination-actions .btn-ghost:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.more-page-shell {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.more-hero-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.more-nav {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.more-nav-link {
  color: #ffffff;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
}

.more-nav-link:hover {
  color: #f8e57a;
}

@media (max-width: 680px) {
  .more-hero-topbar {
    align-items: flex-start;
  }

  .more-nav {
    width: 100%;
    justify-content: flex-start;
  }
}

.more-section {
  display: grid;
  gap: 0.75rem;
  min-width: 0;
}

.more-guide-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border: 1px solid #c8dccc;
  border-radius: 14px;
  background: linear-gradient(135deg, #f7fbf3 0%, #eef8ed 100%);
  padding: 0.95rem 1rem;
}

.more-guide-copy {
  min-width: 0;
  display: grid;
  gap: 0.3rem;
}

.more-guide-title {
  margin: 0;
  color: var(--primary-deep);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.35rem;
}

.more-guide-text {
  margin: 0;
  color: #35504a;
  max-width: 62ch;
}

.more-guide-link {
  flex: 0 0 auto;
  text-decoration: none;
  background: var(--primary-deep);
  color: #ffffff;
  border: 1px solid var(--primary-deep);
  box-shadow: 0 8px 18px rgba(15, 94, 44, 0.18);
}

.more-guide-link:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.more-media-block {
  display: grid;
  gap: 0.7rem;
  min-width: 0;
}

.more-scroll-shell {
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.more-scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 1px solid #b8d5b3;
  border-radius: 999px;
  background: #eef8ed;
  color: var(--primary-deep);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.more-scroll-btn-left {
  left: 0.35rem;
}

.more-scroll-btn-right {
  right: 0.35rem;
}

.more-scroll-btn:hover {
  background: #deefdb;
  border-color: #93bc8c;
}

.more-scroll-btn:active {
  transform: translateY(calc(-50% + 1px));
}

.more-media-title {
  margin: 0;
  color: var(--primary-deep);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.4rem;
}

.more-media-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}

.more-folder-current {
  margin: 0;
  color: #2f4a42;
}

.more-folder-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.more-folder-link {
  text-decoration: none;
  font-size: 0.85rem;
  border-radius: 999px;
  padding: 0.5rem 0.8rem;
  background: #eff8ef;
  border: 1px solid #9cc4a2;
  color: #174231;
  backdrop-filter: none;
}

.more-folder-see-more-link {
  flex: 0 0 auto;
}

.more-folder-list-page {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.7rem;
}

.more-folder-card {
  border: 1px solid #c8dccc;
  border-radius: 12px;
  background: #f8fcf8;
  padding: 0.8rem;
  display: grid;
  gap: 0.7rem;
}

.more-folder-card h3 {
  margin: 0;
  color: #1f4d37;
  font-size: 1.05rem;
}

.more-folder-card.is-active {
  border-color: #8fb899;
  background: #eef8ef;
}

.more-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.85rem;
}

.more-gallery-meta {
  margin: 0;
  padding: 0 0.8rem 0.8rem;
  font-size: 0.8rem;
  color: #3e5c53;
  font-weight: 700;
}

.more-folder-link:hover {
  background: #deefdb;
  border-color: #7baa82;
  color: #103528;
}

.more-folder-link.is-active {
  background: #dff0e2;
  border-color: #95bf9a;
  color: #123a2a;
}

.more-gallery-grid {
  display: flex;
  gap: 0.85rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  padding: 0 2.8rem 0.3rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
  touch-action: pan-y;
}

.more-gallery-grid::-webkit-scrollbar {
  display: none;
}

.more-video-grid {
  display: flex;
  gap: 0.85rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  padding: 0 2.8rem 0.3rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
  touch-action: pan-y;
}

.more-video-grid::-webkit-scrollbar {
  display: none;
}

.more-video-card {
  border: 1px solid var(--card-border);
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: var(--card-shadow);
  flex: 0 0 min(420px, 85vw);
  scroll-snap-align: start;
}

.more-video-frame-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #11261c;
}

.more-video-frame-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.more-pdf-toolbar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.more-pdf-toolbar label {
  color: #334a47;
  font-weight: 700;
}

.more-pdf-year-select {
  border: 1px solid #c7d7d4;
  border-radius: 8px;
  padding: 0.35rem 0.5rem;
  background: #ffffff;
  font: inherit;
  color: #1f3f3b;
}

.more-pdf-viewer-wrap {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  min-height: 560px;
}

.more-pdf-viewer-wrap iframe {
  width: 100%;
  height: 560px;
  border: 0;
  display: block;
}

.more-pdf-hint {
  margin: 0;
  color: #3c5451;
  font-size: 0.92rem;
}

.more-gallery-card {
  border: 1px solid var(--card-border);
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: var(--card-shadow);
  flex: 0 0 min(420px, 85vw);
  scroll-snap-align: start;
}

.more-gallery-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.more-gallery-caption {
  margin: 0;
  padding: 0.7rem 0.8rem;
  color: #2e4643;
  font-weight: 700;
}

.more-members-shell {
  position: relative;
}

.more-members-shell.is-filtering .more-scroll-btn {
  display: none;
}

.more-members-shell.is-filtering .more-members-grid {
  padding-left: 0;
  padding-right: 0;
}

.more-members-grid {
  display: flex;
  gap: 0.85rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  padding: 0 2.8rem 0.3rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
  touch-action: pan-y;
}

.more-members-grid::-webkit-scrollbar {
  display: none;
}

.more-gallery-grid.is-dragging,
.more-video-grid.is-dragging,
.more-members-grid.is-dragging {
  cursor: grabbing;
  user-select: none;
  scroll-snap-type: none;
}

.more-gallery-grid.is-dragging *,
.more-video-grid.is-dragging *,
.more-members-grid.is-dragging * {
  user-select: none;
}

.more-member-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 0.8rem;
  align-items: center;
  border: 1px solid var(--card-border);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: var(--card-shadow);
  padding: 0.9rem;
  flex: 0 0 min(320px, 80vw);
  scroll-snap-align: start;
}

.more-member-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #1e7e44 0%, #d7b61b 100%);
  color: #ffffff;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
}

.more-member-copy {
  min-width: 0;
  display: grid;
  gap: 0.35rem;
}

.more-member-name {
  margin: 0;
  color: var(--primary-deep);
  font-size: 1.05rem;
}

.more-member-meta {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  color: #38514c;
}

.more-member-label {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.more-member-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  /* background: #eef8ed; */
  /* border: 1px solid #b8d5b3; */
  color: #174231;
  font-weight: 700;
}

.more-members-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.more-members-head h2 {
  margin-bottom: 0;
}

.more-members-search {
  margin-left: auto;
  width: min(100%, 280px);
}

.more-members-search-input {
  width: 100%;
  border-radius: 999px;
  border: 1px solid #9ec8a0;
  background: #ffffff;
  color: #1f4435;
  padding: 0.6rem 0.95rem;
  font-size: 0.92rem;
  outline: none;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

.more-members-search-input::placeholder {
  color: #66897b;
}

.more-members-search-input:focus {
  border-color: #2f9a61;
  box-shadow: 0 0 0 3px rgba(47, 154, 97, 0.16);
}

.more-members-no-results {
  margin-top: 0.85rem;
}

.home-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.home-card {
  border: 1px solid var(--card-border);
  border-radius: 14px;
  background: var(--card-bg);
  box-shadow: var(--card-shadow);
  padding: 1rem;
  position: relative;
  overflow: hidden;
}

.home-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, rgba(23, 135, 63, 0) 82%);
}

.home-card h3 {
  margin: 0 0 0.55rem;
  color: var(--primary-deep);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.45rem;
}

.home-card p {
  margin: 0;
  color: #334a47;
}

.home-card ul {
  margin: 0;
  padding-left: 1.05rem;
  color: #334a47;
}

.home-card li + li {
  margin-top: 0.45rem;
}

.home-card-overflow {
  display: flex;
  flex-direction: column;
}

.home-card-overflow-body {
  position: relative;
  margin-top: 0.2rem;
  max-height: 8.9rem;
  overflow: auto;
  padding-right: 0.35rem;
  scrollbar-width: thin;
  scrollbar-color: #9dc39c transparent;
}

.home-card-overflow-body[data-overflow="true"] {
  mask-image: linear-gradient(180deg, #000 0%, #000 78%, transparent 100%);
}

.home-card-overflow-body[data-overflow="true"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2.2rem;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 253, 243, 0) 0%, rgba(255, 253, 243, 0.95) 78%);
}

.home-card-overflow:hover .home-card-overflow-body,
.home-card-overflow:focus-within .home-card-overflow-body {
  mask-image: none;
}

.home-card-overflow:hover .home-card-overflow-body::after,
.home-card-overflow:focus-within .home-card-overflow-body::after {
  opacity: 0;
}

.home-card-overflow-body::-webkit-scrollbar {
  width: 8px;
}

.home-card-overflow-body::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #b6d7b3 0%, #8fbc8b 100%);
  border-radius: 999px;
}

.home-card-overflow-body::-webkit-scrollbar-track {
  background: transparent;
}

.section-overflow-body {
  position: relative;
  margin-top: 0.2rem;
  max-height: 9.6rem;
  overflow: auto;
  padding-right: 0.35rem;
  scrollbar-width: thin;
  scrollbar-color: #9dc39c transparent;
}

.section-overflow-body[data-overflow="true"] {
  mask-image: linear-gradient(180deg, #000 0%, #000 78%, transparent 100%);
}

.section-overflow-body[data-overflow="true"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2.2rem;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 253, 243, 0) 0%, rgba(255, 253, 243, 0.95) 78%);
}

.chairman-card:hover .section-overflow-body,
.chairman-card:focus-within .section-overflow-body,
.about-card-overflow:hover .section-overflow-body,
.about-card-overflow:focus-within .section-overflow-body,
.event-card-overflow:hover .section-overflow-body,
.event-card-overflow:focus-within .section-overflow-body,
.story-card-overflow:hover .section-overflow-body,
.story-card-overflow:focus-within .section-overflow-body {
  mask-image: none;
}

.chairman-card:hover .section-overflow-body::after,
.chairman-card:focus-within .section-overflow-body::after,
.about-card-overflow:hover .section-overflow-body::after,
.about-card-overflow:focus-within .section-overflow-body::after,
.event-card-overflow:hover .section-overflow-body::after,
.event-card-overflow:focus-within .section-overflow-body::after,
.story-card-overflow:hover .section-overflow-body::after,
.story-card-overflow:focus-within .section-overflow-body::after {
  opacity: 0;
}

.section-overflow-body::-webkit-scrollbar {
  width: 8px;
}

.section-overflow-body::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #b6d7b3 0%, #8fbc8b 100%);
  border-radius: 999px;
}

.section-overflow-body::-webkit-scrollbar-track {
  background: transparent;
}

.countdown-card {
  background:
    linear-gradient(145deg, rgba(15, 94, 44, 0.08) 0%, rgba(243, 208, 23, 0.08) 100%),
    var(--card-bg);
  border-color: var(--card-border);
  color: #334a47;
}

.countdown-card h3,
.countdown-card p,
.countdown-card span {
  color: #334a47;
}

.countdown-subtitle {
  opacity: 0.92;
}

.countdown-grid {
  margin-top: 0.9rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
}

.countdown-grid div {
  background: #f4faee;
  border: 1px solid #d2e4d1;
  border-radius: 10px;
  text-align: center;
  padding: 0.55rem 0.45rem;
}

.countdown-grid strong {
  display: block;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.7rem;
  line-height: 1;
}

.countdown-grid span {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.section-head p {
  margin: 0;
  color: var(--primary-deep);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
}

.section-head h2 {
  margin: 0.35rem 0 1rem;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-family: "Barlow Condensed", sans-serif;
}

.org-chart-section {
  margin-bottom: 2.4rem;
}

.org-chart-description {
  margin: 0 0 1rem;
  color: #345548;
}

.org-chart-wrap {
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 1rem;
  background:
    radial-gradient(circle at 12% 8%, rgba(243, 208, 23, 0.2) 0%, rgba(243, 208, 23, 0) 38%),
    var(--card-bg);
  box-shadow: var(--card-shadow);
}

.org-row-label {
  margin: 0.25rem 0 0.55rem;
  color: #2f5742;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 800;
}

.org-node {
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 0.75rem;
  background: var(--card-bg);
  box-shadow: var(--card-shadow);
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.org-node:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 24px rgba(15, 94, 44, 0.14);
}

.org-node-top {
  width: min(100%, 280px);
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.org-node-title {
  margin: 0;
  color: #27503b;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 800;
}

.org-node-name {
  margin: 0.3rem 0 0;
  color: var(--primary-deep);
  font-weight: 800;
}

.org-connector {
  width: 2px;
  height: 22px;
  margin: 0.35rem auto 0.7rem;
  background: #9fc39e;
}

.org-row {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.org-row-executive {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.org-row-committee {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-bottom: 0;
}

.org-node-committee {
  background: var(--card-bg);
}

.home-slider-shell {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.home-scroll-btn {
  width: 36px;
  height: 36px;
  border: 1px solid #b8d5b3;
  border-radius: 999px;
  background: #eef8ed;
  color: var(--primary-deep);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.home-scroll-btn:hover {
  background: #deefdb;
  border-color: #93bc8c;
}

.home-scroll-btn:active {
  transform: translateY(1px);
}

.event-grid,
.story-grid {
  display: flex;
  gap: 1rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  padding: 0 0 0.2rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.event-grid::-webkit-scrollbar,
.story-grid::-webkit-scrollbar {
  display: none;
}

.home-card-appreciation {
  min-height: 0;
}

.appreciation-slider-shell {
  margin-top: 0.25rem;
  align-items: center;
}

.appreciation-grid {
  display: flex;
  gap: 1rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding: 0.1rem 0 0.25rem;
  max-height: 8.9rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.appreciation-grid::-webkit-scrollbar {
  display: none;
}

.appreciation-note-card {
  flex: 0 0 100%;
  height: 8.9rem;
  border-radius: 12px;
  padding: 1rem 1rem 1.05rem;
  scroll-snap-align: start;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #9dc39c transparent;
}

.appreciation-note-card::-webkit-scrollbar {
  width: 8px;
}

.appreciation-note-card::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #b6d7b3 0%, #8fbc8b 100%);
  border-radius: 999px;
}

.appreciation-note-card::-webkit-scrollbar-track {
  background: transparent;
}

.appreciation-note-meta {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 1.08rem;
  font-weight: 800;
  color: #162f26;
  line-height: 1.25;
}

.appreciation-note-icon {
  width: 1.3rem;
  height: 1.3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.appreciation-note-sep {
  opacity: 0.8;
}

.appreciation-note-card h4 {
  margin: 0.95rem 0 0.6rem;
  font-size: clamp(1.55rem, 2.4vw, 2.2rem);
  line-height: 1.28;
  color: #0f281f;
}

.appreciation-note-body {
  margin: 0;
  font-size: clamp(1rem, 1.45vw, 1.18rem);
  line-height: 1.6;
  color: #2b3f36;
}

.event-card,
.story-card {
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 1rem;
  background: var(--card-bg);
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
  flex: 0 0 min(360px, 82vw);
  scroll-snap-align: start;
}

.event-card::before,
.story-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, rgba(243, 208, 23, 0) 80%);
}

.event-empty {
  flex: 0 0 100%;
  text-align: center;
}

.story-empty {
  flex: 0 0 100%;
  text-align: center;
}

.event-date {
  margin: 0 0 0.35rem;
  font-size: 0.83rem;
  color: var(--primary-deep);
  font-weight: 700;
}

.event-card h3,
.story-name {
  margin: 0;
}

.event-card p:last-child,
.story-role {
  margin: 0.45rem 0 0;
  color: var(--muted);
}

.story-quote {
  margin: 0;
  font-size: 0.98rem;
  color: #2f3f3d;
}

.story-name {
  margin-top: 0.8rem;
  font-weight: 800;
}

.footer {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  padding-bottom: 2rem;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer p {
  margin: 0;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .stats-section {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .payment-summary-grid,
  .payment-method-grid {
    grid-template-columns: 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .event-grid,
  .story-grid,
  .home-grid,
  .org-row,
  .org-row-executive,
  .org-row-committee {
    grid-template-columns: 1fr;
  }

  .registration-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .hero {
    border-radius: 0;
    margin-top: 0;
  }

  .nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  .nav-controls {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
  }

  .login-submenu {
    right: auto;
    left: 0;
  }

  .stats-section {
    grid-template-columns: 1fr;
  }

  .countdown-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-scroll-btn {
    width: 32px;
    height: 32px;
    font-size: 1.25rem;
  }

  .more-pdf-viewer-wrap,
  .more-pdf-viewer-wrap iframe {
    min-height: 440px;
    height: 440px;
  }

  .more-scroll-shell {
    min-height: 32px;
  }

  .more-scroll-btn {
    width: 32px;
    height: 32px;
    font-size: 1.25rem;
  }

  .more-scroll-btn-left {
    left: 0.2rem;
  }

  .more-scroll-btn-right {
    right: 0.2rem;
  }

  .more-gallery-grid,
  .more-video-grid {
    padding-left: 2.4rem;
    padding-right: 2.4rem;
  }

  .auth-hero {
    border-radius: 10px;
    padding: 0.9rem 0.85rem 1.6rem;
  }

}

.drive-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
}

.drive-modal-content {
    background: #fff;
    width: 80%;
    max-width: 900px;
    height: 650px;
    margin: 5% auto;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    padding-top: 45px; /* space for X button */
}

.drive-modal iframe {
    width: 100%;
    height: calc(100% - 45px);
    border: none;
}

.drive-close {
    position: absolute;
    right: 15px;
    top: 5px;
    font-size: 40px;
    font-weight: bold;
    color: #ff0000;
    cursor: pointer;
    z-index: 99999;
    line-height: 1;
}

.drive-close:hover {
    color: #ff6666;
}