/* ===== CSS VARIABLES ===== */
:root {
  --primary:    #1a56db;
  --primary-dk: #1143b0;
  --accent:     #06b6d4;
  --surface:    #ffffff;
  --grey-bg:    #f3f4f8;
  --text:       #1e2330;
  --text-muted: #6b7280;
  --border:     #e5e7eb;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08);
  --shadow-md:  0 4px 20px rgba(0,0,0,.1);
  --shadow-lg:  0 8px 40px rgba(0,0,0,.15);
  --radius:     12px;
  --nav-h:      70px;
  --transition: .25s ease;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background: var(--surface);
  line-height: 1.6;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 900;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow-md); }
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav-brand { display: flex; align-items: center; }
.nav-logo {
  height: 48px;
  width: auto;
  transition: filter var(--transition), transform var(--transition);
  animation: fadeIn .8s ease;
}
.nav-logo:hover { filter: drop-shadow(0 0 8px rgba(26,86,219,.4)); transform: scale(1.04); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--text);
  transition: background var(--transition), color var(--transition);
}
.nav-link:hover { background: var(--grey-bg); color: var(--primary); }
.nav-admin-btn {
  background: var(--primary);
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 8px;
  margin-left: 8px;
}
.nav-admin-btn:hover { background: var(--primary-dk); }

/* hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span {
  display: block;
  width: 100%; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO SLIDER ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 520px;
  overflow: hidden;
  margin-top: 0;
}
.slider { width: 100%; height: 100%; }
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .8s ease;
}
.slide.active { opacity: 1; z-index: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to bottom, rgba(0,0,0,.15), rgba(0,0,0,.55));
  color: #fff;
  text-align: center;
  padding: 24px;
}
.slide-title {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -.5px;
  text-shadow: 0 2px 16px rgba(0,0,0,.4);
  animation: slideUp .6s ease both;
}
.slide-sub {
  margin-top: 12px;
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-weight: 300;
  opacity: .9;
  animation: slideUp .6s .15s ease both;
}
.slider-btn {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  z-index: 10;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.6);
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
}
.slider-btn:hover { background: rgba(255,255,255,.3); border-color: #fff; }
.slider-btn.prev { left: 20px; }
.slider-btn.next { right: 20px; }
.slider-dots {
  position: absolute;
  bottom: 24px; left: 50%; transform: translateX(-50%);
  z-index: 10;
  display: flex; gap: 8px;
}
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  border: none;
}
.dot.active { background: #fff; transform: scale(1.3); }

/* ===== SECTIONS ===== */
.section { padding: 100px 0; }
.section-light { background: var(--surface); }
.section-grey  { background: var(--grey-bg); }
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section-tag {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  background: rgba(26,86,219,.08);
  color: var(--primary);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}
.section-desc {
  max-width: 680px;
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 48px;
  line-height: 1.8;
}

/* ABOUT CARDS */
.cards-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card-icon { font-size: 2.4rem; margin-bottom: 16px; }
.card h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; }
.card p  { color: var(--text-muted); font-size: .95rem; }

/* MEMBER SEARCH */
.search-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 28px;
  max-width: 480px;
}
.search-bar input {
  flex: 1;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: .95rem;
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--surface);
}
.search-bar input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,86,219,.12); }
.search-bar button, .btn {
  padding: 12px 24px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: .95rem;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
}
.search-bar button:hover, .btn:hover { background: var(--primary-dk); }

/* TABLE */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
#member-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
  background: var(--surface);
}
#member-table th {
  background: var(--primary);
  color: #fff;
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .03em;
}
#member-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
#member-table tr:last-child td { border-bottom: none; }
#member-table tbody tr:hover { background: var(--grey-bg); }
.clickable-row { cursor: pointer; transition: background 0.2s; }
.clickable-row:hover { background: #e0e7ff !important; }
.clickable-row td:nth-child(2) { color: var(--primary); }
.table-empty { text-align: center; color: var(--text-muted); padding: 40px !important; }

/* PAGINATION */
.pagination {
  display: flex;
  gap: 6px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.pagination button {
  width: 36px; height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: .85rem;
  font-family: inherit;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.pagination button:hover, .pagination button.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* GALLERY */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 8px;
}
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4/3;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.gallery-item:hover img { transform: scale(1.06); }

/* CONTACT */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 8px;
}
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.contact-icon { font-size: 2rem; margin-bottom: 12px; display: block; }
.contact-card p { color: var(--text-muted); font-size: .95rem; }

/* FOOTER */
.footer {
  background: var(--text);
  color: rgba(255,255,255,.8);
  padding: 28px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer p { font-size: .85rem; }
.social-links { display: flex; gap: 16px; }
.social-links a {
  color: rgba(255,255,255,.7);
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  transition: background var(--transition), color var(--transition);
}
.social-links a:hover { background: var(--primary); color: #fff; }
.social-links svg { width: 18px; height: 18px; }

/* ===== ANIMATIONS ===== */
@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h); left: 0; right: 0;
    flex-direction: column;
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 16px;
    gap: 4px;
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .nav-link { width: 100%; }
  .nav-admin-btn { margin-left: 0; margin-top: 4px; text-align: center; }
  .slider-btn { width: 38px; height: 38px; font-size: 1rem; }
  .footer-inner { flex-direction: column; text-align: center; }
}
