* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "Poppins", sans-serif;
  color: #4a5568;
  line-height: 1.6;
  background: #f8fffa;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* === LITE GREEN PALETTE === */
:root {
  --primary-green: #6ECB63;
  --primary-dark: #56AB4A;
  --primary-light: #9EE493;
  --accent-green: #B7EFC5;
  --light-bg: #F0FFF4;
}

/* Header */
header {
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-dark) 100%);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(110, 203, 99, 0.2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
}

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

.logo-img {
  height: 55px;
  width: auto;
  object-fit: contain;
}

.brand-text h1 {
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.2;
}

.brand-text p {
  font-size: 0.78rem;
  opacity: 0.95;
}

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

nav a {
  font-size: 0.95rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: opacity 0.2s;
}

nav a:hover { opacity: 0.85; }

.menu-toggle {
  display: none;
  font-size: 1.4rem;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}

@media (max-width: 768px) {
  nav {
    position: absolute;
    left: 0; right: 0; top: 64px;
    flex-direction: column;
    background: var(--primary-green);
    padding: 0.75rem 1.5rem;
    display: none;
  }
  nav.open { display: flex; }
  .menu-toggle { display: block; }
}

/* Page container */
.page { display: none; }
.page.active { display: block; }

/* --- HERO SECTION --- */
#home-hero {
  position: relative;
  width: 100%;
  height: 90vh; 
  min-height: 500px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
}

.slider-container {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 1;
}

.slider-wrapper {
  display: flex;
  transition: transform 0.8s ease-in-out;
  height: 100%;
  width: 100%;
}

.slide {
  min-width: 100%;
  height: 100%;
  position: relative;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(40, 70, 50, 0.4); 
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: #fff;
  padding: 2rem;
  max-width: 800px;
}

.hero-content h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 700;
  text-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 1;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.slider-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 4;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all 0.3s;
  border: 1px solid rgba(255,255,255,0.2);
}

.dot.active {
  background: #fff;
  width: 30px;
  border-radius: 6px;
}

@media (max-width: 768px) {
  #home-hero { height: 70vh; min-height: 400px; }
  .hero-content h2 { font-size: 2rem; }
  .hero-content p { font-size: 1rem; }
}

/* Verify card */
#verify {
  margin-top: -60px;
  margin-bottom: 2.5rem;
}

.verify-card {
  max-width: 520px;
  margin: 0 auto;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(110, 203, 99, 0.15);
  padding: 2rem;
  position: relative;
  z-index: 4;
}

.verify-card h3 {
  text-align: center;
  margin-bottom: 1rem;
  color: var(--primary-green);
  font-size: 1.4rem;
}

.verify-card h3 i { margin-right: 0.5rem; }

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

.form-group i {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--primary-green);
}

.form-group input {
  width: 100%;
  padding: 0.8rem 1rem 0.8rem 2.8rem;
  border-radius: 12px;
  border: 2px solid #edf2f7;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus { border-color: var(--primary-green); }

.btn-primary {
  width: 100%;
  border: none;
  border-radius: 999px;
  padding: 0.9rem 1rem;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-dark) 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 8px 20px rgba(110, 203, 99, 0.4);
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(110, 203, 99, 0.5);
}

/* Sections */
section.default-section { padding: 3rem 0 4rem; }

.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
  color: var(--primary-dark);
  font-size: 2rem;
  font-weight: 700;
}

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

.card {
  background: #fff;
  border-radius: 16px;
  padding: 2rem 1.5rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.03);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  height: 100%;
  border-top: 4px solid var(--primary-light);
  transition: transform 0.3s;
}

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

.card-icon {
  font-size: 2rem;
  color: var(--primary-green);
}

.card-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: #333;
}

.card p { font-size: 0.92rem; color: #666; }

@media (max-width: 992px) { .cards-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 640px) { .cards-grid { grid-template-columns: 1fr; } }

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 1.5rem;
}

.feature-box {
  border-radius: 16px;
  padding: 1.8rem 1.2rem;
  background: #fff;
  border: 1px solid var(--accent-green);
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.02);
  transition: transform 0.15s;
}

.feature-box:hover {
  transform: translateY(-3px);
  background: var(--light-bg);
  border-color: var(--primary-green);
}

.feature-box i {
  font-size: 1.8rem;
  color: var(--primary-green);
  margin-bottom: 0.8rem;
}

.feature-box h4 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  color: #333;
}

.feature-box p { font-size: 0.9rem; color: #666; }

@media (max-width: 992px) { .features-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 640px) { .features-grid { grid-template-columns: 1fr; } }

/* Modal */
.modal {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  display: none; align-items: center; justify-content: center; z-index: 2000;
  backdrop-filter: blur(4px);
}

.modal.open { display: flex; }

.modal-content {
  width: 100%; max-width: 520px; background: #fff;
  border-radius: 20px; overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.2);
  animation: modalIn 0.3s ease-out;
}

@keyframes modalIn { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.modal-header {
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-dark) 100%);
  padding: 1.5rem; color: #fff; text-align: center;
}

.modal-header i { font-size: 2.2rem; margin-bottom: 0.5rem; }

.modal-body { padding: 1.5rem 2rem 2rem; }

.info-grid { display: grid; gap: 0.8rem; margin-bottom: 1.2rem; }

.info-row {
  display: grid; grid-template-columns: 130px 1fr; gap: 0.5rem;
  background: var(--light-bg); padding: 0.8rem 1rem;
  border-radius: 10px; font-size: 0.95rem;
}

.info-label { font-weight: 600; color: var(--primary-dark); }

.modal-error {
  text-align: center; padding: 1rem; background: #fff5f5;
  color: #c53030; border-radius: 8px; font-size: 0.95rem;
  border: 1px solid #fed7d7;
}

.btn-close {
  margin-top: 0.5rem; width: 100%; border-radius: 999px; border: none;
  padding: 0.9rem; font-size: 1rem; font-weight: 600; color: #fff;
  background: var(--primary-green); cursor: pointer; transition: background 0.2s;
}

.btn-close:hover { background: var(--primary-dark); }

/* Admin Login Page */
.admin-login-container {
  min-height: calc(100vh - 120px);
  display: flex; align-items: center; justify-content: center;
  padding: 2rem 1.5rem; background: var(--light-bg);
}

.login-card {
  max-width: 420px; width: 100%; background: #fff;
  border-radius: 16px; box-shadow: 0 12px 30px rgba(0,0,0,0.08);
  padding: 2.5rem 2rem; border-top: 5px solid var(--primary-green);
}

.login-card h2 {
  text-align: center; color: var(--primary-dark);
  margin-bottom: 0.5rem; font-size: 1.8rem;
}

.alert {
  font-size: 0.85rem; padding: 0.7rem; border-radius: 8px;
  margin-bottom: 1rem; display: none;
}

.alert-error { background: #fff5f5; color: #c53030; border: 1px solid #fed7d7; }
.alert-success { background: #f0fff4; color: #2f855a; border: 1px solid #c6f6d5; }

/* Admin Dashboard */
.admin-container {
  padding: 2rem 0 3rem; background: #f7fafc; min-height: calc(100vh - 120px);
}

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

.btn-logout {
  border-radius: 999px; padding: 0.6rem 1.2rem; border: none;
  background: #fc8181; color: #fff; font-size: 0.9rem;
  cursor: pointer; font-weight: 500; transition: background 0.2s;
}

.btn-logout:hover { background: #f56565; }

.stats-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1rem; margin-bottom: 1.8rem;
}

.stat-card {
  background: #fff; border-radius: 14px; padding: 1.2rem;
  display: flex; gap: 1rem; align-items: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.stat-icon {
  width: 45px; height: 45px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.2rem;
}

.stat-green { background: var(--primary-green); }
.stat-light-green { background: #68d391; }
.stat-orange { background: #f6ad55; }
.stat-teal { background: #4fd1c5; }

.stat-content h4 { font-size: 0.85rem; color: #718096; }
.stat-content p { font-size: 1.4rem; color: #2d3748; font-weight: 700; }

.admin-card {
  background: #fff; border-radius: 14px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
  padding: 1.5rem; margin-bottom: 1.5rem;
}

.admin-card-header h3 {
  font-size: 1.1rem; font-weight: 600; color: var(--primary-dark);
  display: flex; align-items: center; gap: 0.5rem;
}

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

.admin-form-group label {
  font-size: 0.9rem; font-weight: 500; margin-bottom: 0.3rem; display: block; color: #4a5568;
}

.admin-form-group input, .admin-form-group select {
  width: 100%; padding: 0.6rem; border-radius: 8px;
  border: 1px solid #cbd5e0; font-size: 0.95rem; outline: none;
}

.admin-form-group input:focus { border-color: var(--primary-green); box-shadow: 0 0 0 3px rgba(110, 203, 99, 0.2); }

.admin-form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 1.5rem;
}

.btn-outline {
  border-radius: 999px; border: 1.5px solid #fc8181; background: #fff;
  color: #fc8181; padding: 0.5rem 1.2rem; cursor: pointer;
  font-weight: 500; transition: all 0.2s;
}

.btn-outline:hover {
  background: #fc8181;
  color: #fff;
}

.btn-primary-small {
  border-radius: 999px; border: none; background: var(--primary-green);
  color: #fff; padding: 0.6rem 1.4rem; cursor: pointer;
  font-weight: 600; transition: all 0.2s;
}

.btn-primary-small:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.search-box {
  margin-bottom: 1rem;
}

.search-box input { 
  width: 100%;
  border-radius: 999px; 
  border: 1px solid #cbd5e0; 
  padding: 0.7rem 1.2rem;
  font-size: 0.95rem;
}

.search-box input:focus {
  outline: none;
  border-color: var(--primary-green);
  box-shadow: 0 0 0 3px rgba(110, 203, 99, 0.2);
}

.table-wrapper {
  overflow-x: auto;
}

table { width: 100%; border-collapse: collapse; margin-top: 1rem; }
thead { background: var(--light-bg); }
th { padding: 0.8rem; color: var(--primary-dark); font-weight: 600; text-align: left; }
td { padding: 0.8rem; border-bottom: 1px solid #e2e8f0; color: #4a5568; }
tr:hover td { background: #f7fafc; }

.btn-table { padding: 0.4rem 0.8rem; border-radius: 6px; border: none; cursor: pointer; color: #fff; font-size: 0.8rem; margin-right: 0.5rem; }
.btn-edit { background: var(--primary-green); }
.btn-edit:hover { background: var(--primary-dark); }
.btn-del { background: #fc8181; }
.btn-del:hover { background: #f56565; }

/* Footer */
footer {
  padding: 2rem 0;
  background: var(--primary-dark);
  color: #fff;
  text-align: center;
  margin-top: auto;
}

footer a { color: rgba(255,255,255,0.7); font-size: 0.9rem; transition: color 0.2s; }
footer a:hover { color: #fff; }

@media (max-width: 992px) {
  .stats-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .admin-form-row { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .stats-grid { grid-template-columns: 1fr; }
}
