:root {
  --bg: #0f1115;
  --panel: #171a21;
  --text: #e9eef5;
  --text-dark: #000;
  --muted: #aab3c2;
  --line: #2a2f3a;
  --brand: #d89a3a;
  --radius: 14px;
  --select-radius: 5px;
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

a {
  color: var(--brand);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
input,
textarea {
  font-family: inherit;
  padding: 10px 20px;
  border-radius: var(--radius);
  border: none;
  background: var(--muted);
  color: var(--text-dark);
  cursor: pointer;
}
select {
  font-family: inherit;
  margin-left: 7px;
  padding: 5px 10px;
  border-radius: var(--select-radius);
  border: none;
  background: var(--muted);
  color: var(--text-dark);
  cursor: pointer;
}
input:hover,
select:hover,
textarea:hover {
  opacity: 0.95;
  transition: opacity 0.3s ease;

  /* Add some shadow for a3D effect */
  box-shadow: 0 0 10px rgba(248, 248, 248, 0.2);
}

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px;
}

.site-header {
  position: sticky;
  top: 0;
  background: rgba(15, 17, 21, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  z-index: 10;
}

.brand-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
}
.brand-tagline {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 2px;
}
.brand-logo {
  height: 100px;
  width: auto;
  vertical-align: middle;
  margin-right: 10px;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.nav a {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
  color: var(--text);
}
.nav a.active,
.nav a[aria-current='page'] {
  border-color: var(--line);
  background: var(--panel);
}

.hero {
  padding: 18px 0 6px;
}
.hero h1 {
  margin: 0 0 6px;
  font-size: 1.7rem;
}
.hero-sub {
  margin: 0;
  color: var(--muted);
}

.content {
  padding: 14px 0 30px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  margin-bottom: 16px;
}

.grid.two {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 16px;
}
@media (max-width: 900px) {
  .grid.two {
    grid-template-columns: 1fr;
  }
}

.meta {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0.25rem 0 0.75rem;
}
.post-row {
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.post-row:first-child {
  border-top: none;
}
.post-row h3 {
  margin: 0 0 4px;
}

.post-full h2 {
  margin-top: 0;
}
.post-body p {
  color: var(--text);
}
.post-body h1,
.post-body h2,
.post-body h3 {
  margin-top: 1em;
}

.btn-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--brand);
  color: #1b1205;
  font-weight: 700;
}
.btn-ghost {
  background: transparent;
  color: var(--text);
}

.form label {
  display: block;
  margin: 10px 0;
}
input,
textarea {
  width: 100%;
  margin-top: 6px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #0f1115;
  color: var(--text);
}
.site-main {
  min-height: calc(100vh - 160px);
}
.notice {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.notice.success {
  border-color: #2c6b3f;
}
.notice.error {
  border-color: #7a2c2c;
}

.small {
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 18px 0 26px;
  color: var(--muted);
}
.footer-grid {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
}
.footer-quick-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  justify-content: center;
}
.footer-quick-links ul {
  display: flex;
  list-style: none;
  gap: 10px;
}
.footer-copyright {
  margin: 12px 0;
  text-align: center;
}
.footer-grid ul {
  margin: 8px 0 0;
  padding-left: 18px;
}
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
/* Gallery Grid */
.gallery-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0;
}
.gallery-tabs a {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #2a2f3a;
  text-decoration: none;
}
.gallery-tabs a.active {
  font-weight: 700;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.gallery-card {
  border: 1px solid #2a2f3a;
  border-radius: 14px;
  overflow: hidden;
}
.gallery-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.gallery-card a {
  display: block;
  cursor: zoom-in;
}

.gallery-meta {
  font-size: 0.78rem;
  text-align: center;
  padding: 10px 12px;
}
.pager {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
  flex-wrap: wrap;
}
.pager a {
  padding: 8px 12px;
  border: 1px solid #2a2f3a;
  border-radius: 10px;
  text-decoration: none;
}
.dropzone {
  border: 2px dashed #2a2f3a;
  border-radius: 16px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.03);
  outline: none;
  cursor: pointer;
  user-select: none;
}
.dropzone:focus {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12);
}
.dropzone.dragover {
  border-style: solid;
  transform: translateY(-1px);
}

.dropzone-inner {
  text-align: center;
  padding: 14px 10px;
}
.dz-title {
  font-size: 1.1rem;
  font-weight: 700;
}
.dz-sub {
  opacity: 0.85;
  margin-top: 6px;
}

.dz-meta {
  display: flex;
  gap: 14px;
  margin-top: 10px;
  opacity: 0.9;
}

.dz-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.dz-item {
  border: 1px solid #2a2f3a;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
}
.dz-thumb {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}
.dz-info {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.dz-name {
  font-size: 0.95rem;
  font-weight: 600;
  word-break: break-word;
}
.dz-small {
  opacity: 0.85;
  font-size: 0.85rem;
}

.dz-actions {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}
.dz-remove {
  border: 1px solid #2a2f3a;
  border-radius: 10px;
  padding: 6px 10px;
  background: transparent;
  cursor: pointer;
}
.dz-remove:hover {
  opacity: 0.95;
}
.club-meeting-card p {
  margin: 6px 0;
}
.admin-dashboard {
  gap: 16px;

  text-align: center;
}

.admin-dashboard h1 {
  text-align: center;
}

.admin-dashboard .btn-row {
  display: flex;
  justify-content: space-evenly;
  margin-bottom: 16px;
}
