@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg: #fffefa;
  --surface: #ffffff;
  --surface-soft: #f9fafb;
  --text: #111111;
  --muted: #6b7280;
  --border: #e5e7eb;
  --primary: #2563eb;
  --primary-soft: #eff6ff;
  --accent: #facc15;
  --accent-soft: #fef9c3;
  --success: #10b981;
  --shadow: 0 4px 18px rgba(17, 17, 17, 0.08);
  --radius: 18px;
  --radius-sm: 12px;
  --content: 1440px;
  --danger: #dc2626;
}

html[data-theme="dark"] {
  --bg: #0f172a;
  --surface: #111827;
  --surface-soft: #1f2937;
  --text: #f8fafc;
  --muted: #cbd5e1;
  --border: #334155;
  --primary: #3b82f6;
  --primary-soft: #1e3a8a;
  --accent: #facc15;
  --accent-soft: #3f3f1a;
  --success: #10b981;
  --shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  --danger: #ef4444;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
}

body,
.site-header,
.site-footer,
input,
textarea,
select,
button,
.card,
.form-card,
.detail-panel,
.info-card,
.admin-event-card,
.search-suggestions,
.suggestion-item {
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}
main,
#page-content {
  flex: 1;
  width: 100%;
}

button {
  cursor: pointer;
}

.page-shell {
  min-height: 100vh;
  width: 100%;
  display: block;
  flex-direction: column;
}

.theme-toggle-btn {
  height: 48px;
  min-width: 48px;
  padding: 0 0.9rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
}

.theme-toggle-btn:hover {
  background: var(--surface-soft);
}

.page-frame {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  margin: 0;
  background: var(--bg);
}

.container {
  width: min(1200px, calc(100% - 3rem));
  margin: 0 auto;
  padding: 0;
}

.section {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.section-tight {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.page-header {
  padding-top: 2rem;
  padding-bottom: 1.25rem;
}

.page-title {
  margin: 0 0 0.5rem;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
}

.page-subtitle,
.muted {
  color: var(--muted);
}

.lead {
  font-size: 0.9375rem;
  color: var(--muted);
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.site-header .inner,
.site-footer .inner {
  width: min(1200px, calc(100% - 3rem));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.25rem 0;
}

.brand {
  font-size: 1.5rem;
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links a.active {
  color: var(--text);
}

.search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.search-wrap input[type="text"] {
  width: 14rem;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0 1rem 0 3rem;
  background: var(--surface);
  color: var(--text);
  line-height: 1;
}

.search-wrap .icon {
  position: absolute;
  left: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 0.95rem;
  pointer-events: none;
}

.search-wrap input[type="text"]::placeholder {
  color: var(--muted);
}

.search-wrap input[type="text"]:focus {
  outline: none;
  border-color: var(--primary);
}

.search-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  display: none;
  overflow: hidden;
  z-index: 9999;
}

.search-suggestions.show {
  display: block;
}

.suggestion-item {
  display: block;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-item:hover {
  background: var(--surface-soft);
}

.suggestion-title {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
}

.suggestion-type {
  font-size: 12px;
  color: var(--muted);
  margin-top: 0.2rem;
}

.hero-copy {
  text-align: center;
}

.section-head,
.section-heading {
  margin-bottom: 1.25rem;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.section-head h2,
.section-heading h2 {
  margin: 0 0 0.35rem;
  font-size: 1.75rem;
  font-weight: 600;
}

.section-head a,
.text-link {
  color: var(--primary);
  font-size: 0.95rem;
  font-weight: 700;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
}

.section-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
}

.text-link:hover {
  text-decoration: underline;
}

.horizontal-scroll {
  overflow-x: auto;
  padding-bottom: 0.75rem;
}

.horizontal-list {
  display: flex;
  gap: 1.5rem;
  min-width: max-content;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.card,
.info-card,
.form-card,
.modal-panel {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}

.card {
  overflow: hidden;
}

.card-body {
  padding: 1.5rem;
}

.card h3,
.info-card h3 {
  margin: 0 0 0.85rem;
  font-size: 1.125rem;
}

.card p,
.info-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.card-image {
  height: 200px;
  width: 100%;
  object-fit: cover;
}

.meta {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.meta + .meta {
  margin-top: 0.5rem;
}

.icon-chip {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  margin-bottom: 1.25rem;
  font-size: 1.45rem;
}

.icon-chip.blue {
  background: var(--primary-soft);
  color: var(--primary);
}

.icon-chip.yellow {
  background: var(--accent-soft);
  color: var(--accent);
}

.info-card {
  position: relative;
  border: 0;
  padding: 1.75rem;
  text-align: left;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0 1rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--accent);
  color: #111111;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1;
}

.badge.featured {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
}

.detail-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: start;
}

.detail-image {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.detail-panel {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.detail-panel h1 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 2rem;
}

.detail-panel p {
  line-height: 1.7;
}

.back-link {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--primary);
}

.map-frame {
  width: 100%;
  min-height: 320px;
  border: 0;
  border-radius: var(--radius-sm);
}

.form-card {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.form-card .btn {
  margin-top: 0.75rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.5rem;
}

.form-group label {
  margin-bottom: 0.35rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

label {
  display: block;
  margin-bottom: 0.55rem;
  font-weight: 600;
}

input[type='email'],
input[type='password'],
input[type='text'],
.form-card input,
.form-card textarea,
.form-card select,
.admin-event-form input,
.admin-event-form textarea,
.admin-event-form select {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  font: inherit;
  color: var(--text);
  outline: none;
  box-shadow: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

input[type='email'],
input[type='password'],
input[type='text'] {
  height: 48px;
}

.form-card input:focus,
.form-card textarea:focus,
.form-card select:focus,
.admin-event-form input:focus,
.admin-event-form textarea:focus,
.admin-event-form select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent);
}

textarea {
  min-height: 150px;
  resize: vertical;
}

.form-card textarea,
.admin-event-form textarea {
  min-height: 180px;
}

.upload-box {
  border: 2px dashed var(--border);
  border-radius: 14px;
  padding: 2rem 1rem;
  text-align: center;
  background: var(--surface);
  color: var(--text);
}

.upload-box small {
  color: var(--muted);
}

.actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  height: 52px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  font-size: 1rem;
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

.modal-panel {
  color: var(--text);
  border: 1px solid var(--border);
}

.full-width {
  width: 100%;
}

.note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.8rem;
}

.form-note {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
}



.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface-soft);
  margin-top: 0;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 1000;
}

.modal.open {
  display: flex;
}

.modal-panel {
  width: min(480px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 42px;
  height: 42px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 2rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.modal-close:hover {
  background: var(--surface-soft);
  color: var(--text);
  transform: scale(1.03);
}

.modal-panel {
  width: min(600px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.5rem;
  position: relative;
  border-radius: 28px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
}

.resource-modal-content {
  display: flex;
  flex-direction: column;
}

.resource-modal-title {
  margin: 0 0 1rem;
  padding-right: 3rem;
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  line-height: 1.15;
  font-weight: 800;
  color: var(--text);
}

.resource-badge-row {
  margin: 0 0 1.25rem;
}

.resource-modal-desc {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.resource-modal-divider {
  margin: 2rem 0;
  border-top: 1px solid var(--border);
}

.resource-modal-details-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.resource-modal-detail-block {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.resource-modal-detail-label {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text);
}

.resource-modal-detail-value {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--muted);
}

.detail-list {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  margin-top: 1.5rem;
}

.detail-item + .detail-item {
  margin-top: 1rem;
}

.detail-label {
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.about-copy {
  max-width: 800px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  max-width: 800px;
}

.error-text {
  display: none;
  margin-top: 4px;
  font-size: 0.85rem;
  color: var(--danger);
}

.invalid {
  border-color: var(--danger) !important;
}

/* Carousel */

.carousel-section {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  width: 100%;
  padding: 0.5rem 2.5rem;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.carousel-btn:hover {
  transform: translateY(-50%) scale(1.06);
  background: var(--surface-soft);
}

.carousel-btn.left {
  left: 8px;
}

.carousel-btn.right {
  right: 8px;
}

.carousel-btn.hidden {
  opacity: 0;
  pointer-events: none;
  display: none;
}

.carousel-track .card,
.carousel-track .info-card {
  flex: 0 0 420px;
  min-width: 420px;
  transition: transform 0.2s ease;
}

.carousel-track .card:hover,
.carousel-track .info-card:hover {
  transform: translateY(-4px);
}

.carousel-section::before,
.carousel-section::after {
  content: '';
  position: absolute;
  top: 0;
  width: 60px;
  height: 100%;
  z-index: 10;
  pointer-events: none;
}

.carousel-section::before {
  left: 0;
  background: linear-gradient(to right, var(--bg), transparent);
}

.carousel-section::after {
  right: 0;
  background: linear-gradient(to left, var(--bg), transparent);
}

/* Landing */

.landing-body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: url('../images/landing-bg.jpg') no-repeat center center/cover;
  min-height: 100vh;
  position: relative;
}

.landing-body::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.55);
}

html[data-theme="dark"] .landing-body::before {
  background: rgba(15, 23, 42, 0.68);
}

.landing-header {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 1.5rem 3rem;
}

.landing-header .actions {
  display: flex;
  gap: 1rem;
}

.landing-header .actions .btn {
  height: 52px;
  width: 140px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 0;
  font-size: 1rem;
  font-weight: 600;
}

.landing-header .brand {
  font-size: 1.6rem;
  font-weight: 600;
}

.landing-hero {
  position: relative;
  z-index: 2;
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 24%;
  padding-bottom: 10%;
}

.hero-content {
  max-width: 600px;
  text-align: left;
  animation: fadeUp 0.8s ease;
}

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

.hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  margin-bottom: 1.2rem;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.hero-line {
  color: var(--text);
  font-size: 1.05rem;
  margin: 0.5rem 0;
  line-height: 1.5;
  min-height: 1.6em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.hero-line .letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(8px);
  animation: revealLetter 0.35s ease forwards;
}

@keyframes revealLetter {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.explore-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1.8rem;
  padding: 0.95rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.4s ease;
  opacity: 0;
  transform: translateY(14px);
}

.explore-btn.show {
  opacity: 1;
  transform: translateY(0);
}

.explore-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.38);
}

.explore-arrow {
  font-size: 1.1rem;
  line-height: 1;
}

/* Auth */

.auth-card {
  width: 100%;
  max-width: 520px;
}

.auth-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.auth-inner .btn {
  height: 44px;
  padding: 0 1.4rem;
  border-radius: 10px;
  font-size: 0.95rem;
}

.auth-inner .btn-primary {
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.auth-page {
  min-height: calc(100vh - 140px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding-top: 4.2rem;
}

.auth-header {
  margin-bottom: 1.5rem;
  text-align: center;
}

.password-wrapper {
  position: relative;
}

.password-wrapper input {
  width: 100%;
  padding-right: 3rem;
}

.toggle-password {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  cursor: pointer;
  opacity: 0.7;
  z-index: 5;
  transition: 0.2s ease;
}

html[data-theme="dark"] .toggle-password {
  filter: invert(1);
}

.toggle-password:hover {
  opacity: 1;
}

.google-auth-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
}

.auth-google-only {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem;
}

.auth-google-only .note {
  text-align: center;
  margin: 0;
}

.auth-hero {
  position: relative;
  min-height: calc(100vh - 120px);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 2.5rem 1.25rem 3rem;
  overflow: hidden;
  background: url('../images/auth-bg.png') no-repeat bottom center;
  background-size: cover;
}

.auth-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0.85) 40%,
    rgba(255, 255, 255, 0.7) 70%,
    rgba(255, 255, 255, 0.6) 100%
  );
}

.auth-hero-signup .auth-overlay {
  background: rgba(245, 248, 255, 0.9);
}

.auth-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 980px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.auth-brand-row {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.auth-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--primary);
}

.auth-brand-icon {
  font-size: 2.6rem;
  line-height: 1;
}

.auth-mock-card {
  width: min(100%, 540px);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: 0 18px 40px rgba(31, 41, 55, 0.08);
  padding: 3rem 3rem 2.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text);
}
.auth-avatar-circle {
  width: 92px;
  height: 92px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2.3rem;
  margin-bottom: 1.5rem;
}

.auth-big-title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.15;
  font-weight: 800;
  color: var(--text);
  text-align: center;
}

.auth-big-subtitle {
  margin: 0.9rem 0 2rem;
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--muted);
  text-align: center;
}

.auth-google-big {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.auth-divider {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.auth-divider span {
  flex: 1;
  height: 1px;
  background: #d6dbe6;
}

.auth-divider p {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.auth-trust-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  margin-bottom: 2rem;
  color: var(--muted);
  text-align: center;
}

.auth-trust-row p {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.6;
}

.auth-trust-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.auth-switch-text {
  margin: 0;
  font-size: 1.05rem;
  color: var(--text);
  text-align: center;
}

.auth-switch-text a,
.auth-legal a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
}

.auth-switch-text a:hover,
.auth-legal a:hover {
  text-decoration: underline;
}

.auth-legal {
  max-width: 460px;
  margin: 2rem auto 0;
  font-size: 0.98rem;
  line-height: 1.8;
  text-align: center;
  color: var(--muted);
}

.site-header.auth-header,
.auth-inner {
  background: transparent;
}

.auth-avatar-combo {
  position: relative;
}

.avatar-user {
  font-size: 2.2rem;
  color: var(--primary);
}

.avatar-plus {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 1.2rem;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 50%;
  padding: 2px;
}

/* Resources */

.resources-page {
  padding-top: 1rem;
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.resource-card {
  cursor: pointer;
  padding: 2rem;
  min-height: 230px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.resource-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.resource-card .icon-chip {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  margin-bottom: 1.25rem;
}

.resource-card h3 {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
  line-height: 1.35;
  color: var(--text);
}

.resource-card-desc {
  margin: 0;
  line-height: 1.65;
  color: var(--muted);
  font-size: 1rem;
}

.resource-card-meta {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.45;
}

.resource-card-meta strong {
  color: var(--text);
}

.resource-modal-panel {
  width: min(700px, 100%);
  max-height: 85vh;
  overflow-y: auto;
  padding: 2rem;
  border-radius: 20px;
}

.resource-modal-panel h2 {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
}

.resource-modal-panel #modal-desc {
  margin: 0 0 1rem;
  color: var(--muted);
  line-height: 1.6;
}

.resource-modal-details {
  margin-top: 1rem;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  line-height: 1.7;
}

.resource-modal-details ul {
  margin-top: 0.6rem;
  padding-left: 1.2rem;
}

.resource-modal-details li {
  margin-bottom: 0.35rem;
}

/* Reviews */
.review-form-title {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.9rem;
  font-weight: 700;
}

.review-form {
  width: 100%;
  max-width: 100%;
}

.review-input,
.review-textarea {
  width: 100%;
  border: 1px solid #d8dee8;
  border-radius: 20px;
  background: #fff;
  color: #111827;
  font: inherit;
  outline: none;
  box-shadow: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.review-input {
  height: 72px;
  padding: 0 1.25rem;
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.review-textarea {
  min-height: 220px;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  resize: vertical;
  line-height: 1.6;
  font-size: 1.02rem;
}

.review-input:focus,
.review-textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.review-submit-btn {
  min-width: 220px;
  height: 58px;
  border-radius: 16px;
  padding: 0 1.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.2);
}

.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.review-card {
  padding: 1.5rem;
  border-radius: 16px;
}

.review-form {
  margin-top: 1rem;
}

.review-form .form-group {
  margin-bottom: 1rem;
}

.review-form input,
.review-form textarea {
  width: 100%;
}

.review-form textarea {
  min-height: 180px;
}

.review-form .btn {
  min-width: 180px;
}

.review-form textarea {
  width: 100%;
  min-height: 180px;
  padding: 0.95rem 1rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface) !important;
  color: var(--text) !important;
  resize: vertical;
}

.review-form textarea::placeholder {
  color: var(--muted);
}

/* Admin */

.admin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.admin-card {
  text-decoration: none;
  color: inherit;
  min-height: 220px;
  padding: 1.4rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-card:hover {
  transform: translateY(-4px);
}

.admin-card h3 {
  margin: 0.9rem 0 0.55rem;
  font-size: 1.05rem;
}

.admin-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.admin-event-form {
  max-width: 760px;
  margin: 0 auto;
  padding: 1.5rem;
}

.admin-event-form .form-group {
  margin-bottom: 1rem;
}

.admin-event-form label {
  display: block;
  margin-bottom: 0.45rem;
  font-weight: 600;
}

.admin-event-form input[type="date"],
.admin-event-form input[type="time"] {
  appearance: none;
  -webkit-appearance: none;
  background: var(--surface);
  color: var(--text);
  border-radius: 16px;
}

/* Manage Events */

.manage-events-section {
  padding-top: 2rem;
}

.manage-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.manage-header-copy .page-title {
  margin-bottom: 0.5rem;
}

.manage-header-copy .page-subtitle {
  margin: 0;
}

.manage-stats {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.manage-stat-card {
  min-width: 120px;
  padding: 0.8rem 1rem;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.manage-stat-label {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
}

.manage-stat-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
}

.manage-tabs {
  margin: 0 0 1.25rem;
}

#events-container {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.admin-event-card {
  display: flex;
  flex-direction: column;
  padding: 1.2rem;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
}

.admin-event-thumb {
  width: 100%;
}

.admin-event-thumb img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 0.8rem;
}

.admin-event-content {
  flex: 1;
}

.admin-event-content h3 {
  margin: 0 0 0.45rem;
  font-size: 1.35rem;
  line-height: 1.2;
}

.admin-event-content p {
  margin: 0 0 0.85rem;
  color: var(--muted);
  line-height: 1.6;
  font-size: 1rem;
}

.status {
  display: inline-block;
  margin-top: 0.1rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: lowercase;
}

.status.pending {
  background: #fef3c7;
  color: #92400e;
}

.status.approved {
  background: #d1fae5;
  color: #065f46;
}

.status.rejected {
  background: #fee2e2;
  color: #991b1b;
}

html[data-theme="dark"] .status.pending {
  background: rgba(245, 158, 11, 0.18);
  color: #fcd34d;
}

html[data-theme="dark"] .status.approved {
  background: rgba(16, 185, 129, 0.18);
  color: #6ee7b7;
}

html[data-theme="dark"] .status.rejected {
  background: rgba(239, 68, 68, 0.18);
  color: #fca5a5;
}

.actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.9rem;
}

.actions button {
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-weight: 700;
}

.actions .approve,
.actions .restore {
  background: var(--primary);
  color: white;
}

.actions .reject,
.actions .delete-forever {
  background: var(--danger);
  color: white;
}

.tabs {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.tabs button {
  padding: 0.6rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-weight: 600;
}

.tabs button.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.empty {
  color: var(--muted);
  padding: 1rem 0;
}

/* Home */

.home-hero {
  padding: 3rem 0 1rem;
}

.home-hero-simple {
  padding: 3rem 0 1.25rem;
}

.home-hero-inner {
  display: grid;
  grid-template-columns: 1.35fr 0.8fr;
  gap: 1.5rem;
  align-items: center;
}

.home-hero-simple-inner {
  display: block;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--primary);
  text-transform: uppercase;
  opacity: 0.9;
}

.hero-title {
  margin: 0 0 1rem;
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  line-height: 1.12;
}

.hero-subtitle {
  margin: 0 0 1.5rem;
  max-width: 620px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero-actions,
.hero-actions-strong {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-btn {
  min-width: 190px;
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 16px;
}

.home-hero-card {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-soft) 100%);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.06);
  display: grid;
  gap: 1rem;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.hero-stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
}

.hero-stat-label {
  color: var(--muted);
  font-size: 0.95rem;
}

.quick-grid,
.home-preview-grid,
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  width: 100%;
}

.quick-card,
.preview-card,
.benefit-card {
  text-decoration: none;
  color: inherit;
  min-height: 210px;
  padding: 1.35rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.preview-card {
  width: 100%;
  min-height: 250px;
  padding: 1.5rem;
  box-sizing: border-box;
}

.quick-card:hover,
.preview-card:hover,
.benefit-card:hover,
.preview-clickable:hover {
  transform: translateY(-4px);
}

.quick-card h3,
.preview-card h3,
.benefit-card h3 {
  margin: 0.85rem 0 0.55rem;
  font-size: 1.05rem;
  line-height: 1.35;
}

.quick-card p,
.preview-card p,
.benefit-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  word-break: normal;
}

.preview-badge {
  display: inline-block;
  margin-bottom: 0.85rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
}

.preview-meta {
  margin-bottom: 0.75rem !important;
  color: var(--text) !important;
  font-weight: 600;
}

  .preview-clickable {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .home-event-modal-panel {
    width: min(640px, 100%);
    padding: 2rem;
    border-radius: 22px;
  }

  .home-modal-top {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
  }

.home-modal-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
}

  .home-modal-heading h2 {
    margin: 0;
  }

.home-event-modal-meta {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-weight: 600;
}

  /* Responsive */

  @media (max-width: 1024px) {
    .grid,
    .detail-hero {
      grid-template-columns: 1fr 1fr;
    }

    .resources-grid,
    .admin-grid,
    .quick-grid,
    .home-preview-grid,
    .benefits-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .manage-header {
      flex-direction: column;
    }

    .manage-stats {
      justify-content: flex-start;
    }
  }

  @media (max-width: 768px) {
    .landing-header {
      padding: 1rem 1.5rem;
    }

    .landing-hero {
      justify-content: center;
      padding-left: 1.5rem;
      padding-right: 1.5rem;
      padding-bottom: 0;
      text-align: center;
    }

    .hero-content,
    .hero-copy {
      text-align: center;
    }

    .site-header .inner,
    .site-footer .inner,
    .nav-links,
    .section-head,
    .actions {
      flex-direction: column;
      align-items: flex-start;
    }

    .search-wrap input[type='text'] {
      width: 100%;
    }

    .grid,
    .detail-hero,
    .form-row,
    .team-grid,
    .resources-grid,
    .admin-grid,
    .quick-grid,
    .home-preview-grid,
    .benefits-grid,
    #events-container {
      grid-template-columns: 1fr;
    }

    .page-title {
      font-size: 1.75rem;
    }

    .detail-image {
      height: 280px;
    }

    .auth-hero {
    width: 100%;
    min-height: calc(100vh - 120px);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 2.5rem 1.25rem 3rem;
    overflow: hidden;
    background: url('../images/auth-bg.png') no-repeat center bottom;
    background-size: cover;
  }

    .auth-brand-link {
      font-size: 2.3rem;
    }

    .auth-brand-icon {
      font-size: 2rem;
    }

  .auth-mock-card {
    backdrop-filter: blur(10px);
    background: color-mix(in srgb, var(--surface) 90%, transparent);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    padding: 2rem 1.4rem;
  }

    .auth-avatar-circle {
      width: 78px;
      height: 78px;
      font-size: 2rem;
    }

    .auth-big-title {
      font-size: 2.1rem;
    }

    .auth-big-subtitle {
      font-size: 1rem;
    }

    .auth-trust-row {
      align-items: flex-start;
    }

    .auth-trust-row p {
      font-size: 0.95rem;
    }

    .hero-title,
    .hero-content h1 {
      font-size: 2.2rem;
    }

    .section-heading-row {
      align-items: flex-start;
      flex-direction: column;
    }

    .resource-card {
      min-height: auto;
    }

    .resource-modal-panel {
      padding: 1.5rem;
    }

    .admin-event-thumb img {
      height: 180px;
    }

    .admin-event-content h3 {
      font-size: 1.35rem;
    }
  }


.event-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.event-btn {
  height: 56px;
  min-width: 200px;
  padding: 0 1.4rem;
  border-radius: 16px;
  font-size: 1.05rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

/* Primary (Edit) */
.event-btn.btn-primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.25);
}

/* Hover */
.event-btn.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.35);
}

/* Danger (Delete) */
.event-btn.btn-danger {
  background: #fff;
  border: 1px solid #fecaca;
  color: #dc2626;
}

/* Hover */
.event-btn.btn-danger:hover {
  background: #fee2e2;
  transform: translateY(-2px);
}

.confirmation {
  min-height: calc(100vh - 140px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 2rem 0;
}

.confirmation-box {
  width: 100%;
  max-width: 640px;
  padding: 2rem 1rem;
}

.confirmation-icon {
  font-size: 4.2rem;
  margin-bottom: 1.25rem;
}

.confirmation-box .page-title {
  margin-bottom: 0.75rem;
}

.confirmation-box .lead {
  margin-bottom: 2rem;
}

.confirmation-box .actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.confirmation-box .btn {
  min-width: 190px;
  height: 56px;
  padding: 0 1.5rem;
  border-radius: 16px;
  font-size: 1.02rem;
  font-weight: 700;
}

.confirmation-box .btn.btn-primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.22);
}

.confirmation-box .btn.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(37, 99, 235, 0.3);
}

.confirmation-box .btn.btn-secondary {
  background: #fff;
  border: 1px solid #d1d5db;
  color: #111827;
}

.confirmation-box .btn.btn-secondary:hover {
  transform: translateY(-2px);
  background: #f8fafc;
}

@media (max-width: 768px) {
  .confirmation-box .actions {
    flex-direction: column;
    align-items: center;
  }

  .confirmation-box .btn {
    width: 100%;
    max-width: 280px;
  }
}

#removeEventModal h2 {
  color: #111827 !important;
}

#removeEventModal p {
  color: #374151 !important;
}

#removeEventModal button {
  color: inherit;
}

#confirmRemoveEventBtn {
  color: #ffffff !important;
}

#cancelRemoveEventBtn {
  color: #111827 !important;
}

.home-modal-title-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.home-modal-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: #eef4ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
}
.home-modal-resource-icon {
  width: 70px;
  height: 70px;
  border-radius: 18px;
  background: #eef4ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  margin-bottom: 1rem;
}
.event-detail-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.6rem;
  border-radius: 14px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;

  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white;

  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.25);
  transition: all 0.25s ease;
}

.event-detail-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.35);
}

.event-detail-btn .arrow {
  font-size: 1.1rem;
  transition: transform 0.2s ease;
}

.event-detail-btn:hover .arrow {
  transform: translateX(4px);
}