/* ============================================
   Digital Literacy Academy — Complete Stylesheet
   ============================================ */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green: #008751;
  --green-dark: #006b40;
  --green-light: #e6f4ed;
  --dark: #1a1a1a;
  --gray: #6b7280;
  --light: #f9fafb;
  --border: #e5e7eb;
  --danger: #dc2626;
  --warn: #f59e0b;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--dark);
  background: #fff;
  line-height: 1.6;
  padding-bottom: 60px;
}

/* ---------- Navbar ---------- */
.navbar {
  background: var(--green);
  color: #fff;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow);
}
.navbar .brand {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.navbar .nav-links { display: flex; gap: 12px; align-items: center; }
.navbar a, .navbar button {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  background: none;
  border: 1px solid rgba(255,255,255,.3);
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
}
.navbar a:hover, .navbar button:hover { background: rgba(255,255,255,.15); }

/* ---------- Layout ---------- */
.container { max-width: 1100px; margin: 0 auto; padding: 20px; }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  transition: background .15s;
}
.btn:hover { background: var(--green-dark); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-outline {
  background: #fff;
  color: var(--green);
  border: 1.5px solid var(--green);
}
.btn-outline:hover { background: var(--green-light); }
.btn-danger { background: var(--danger); }
.btn-danger:hover { background: #b91c1c; }
.btn-sm { padding: 6px 10px; font-size: 13px; }
.btn-block { display: block; width: 100%; text-align: center; }
.btn-white { background: #fff; color: var(--green); }
.btn-white:hover { background: #f0f0f0; }
.btn-ghost {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.5);
}
.btn-ghost:hover {
  background: rgba(255,255,255,.1);
  border-color: #fff;
}

/* ---------- Forms ---------- */
.form-group { margin-bottom: 14px; }
label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--dark);
}
input[type="text"], input[type="email"], input[type="password"],
input[type="number"], select, textarea, input[type="file"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(0,135,81,.15);
}
textarea { min-height: 120px; resize: vertical; }

/* ---------- Filters ---------- */
.filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  background: var(--light);
  padding: 16px;
  border-radius: var(--radius);
  margin-bottom: 20px;
}
.filters input, .filters select { padding: 9px 12px; font-size: 14px; }

/* ---------- Doc cards ---------- */
.doc-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}
.doc-card h3 { font-size: 16px; margin-bottom: 6px; line-height: 1.3; }
.doc-meta { font-size: 13px; color: var(--gray); margin-bottom: 12px; }
.doc-meta span {
  display: inline-block;
  background: var(--green-light);
  color: var(--green-dark);
  padding: 2px 8px;
  border-radius: 12px;
  margin-right: 6px;
  margin-bottom: 4px;
  font-weight: 600;
  font-size: 11px;
}
.doc-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--green);
  margin: 8px 0;
}

/* ---------- Auth pages ---------- */
.auth-wrap { max-width: 420px; margin: 60px auto; padding: 0 20px; }
.auth-wrap h1 { text-align: center; margin-bottom: 24px; color: var(--green); }
.auth-wrap .card { padding: 28px; }

/* ---------- Tabs ---------- */
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
  overflow-x: auto;
}
.tabs button {
  background: none;
  border: none;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  font-family: inherit;
}
.tabs button.active {
  color: var(--green);
  border-bottom-color: var(--green);
}

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.stat {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.stat .label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--gray);
  font-weight: 600;
}
.stat .value {
  font-size: 26px;
  font-weight: 700;
  color: var(--green);
  margin-top: 4px;
}

/* ---------- Tables ---------- */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); }
th {
  background: var(--light);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--gray);
}

/* ---------- Badges ---------- */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
}
.badge-green { background: var(--green-light); color: var(--green-dark); }
.badge-warn { background: #fef3c7; color: #92400e; }
.badge-danger { background: #fee2e2; color: #991b1b; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--dark);
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  transition: all .3s;
  z-index: 9999;
  max-width: 90vw;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast-success { background: var(--green); }
.toast-error { background: var(--danger); }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25D366;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 28px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
  z-index: 100;
}

/* ---------- Preview block ---------- */
.preview {
  background: var(--light);
  border: 1px dashed var(--border);
  padding: 12px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--gray);
  max-height: 120px;
  overflow: hidden;
  position: relative;
}
.preview::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40px;
  background: linear-gradient(transparent, var(--light));
}

/* ---------- Loader ---------- */
.loader {
  border: 3px solid var(--border);
  border-top-color: var(--green);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  animation: spin 0.7s linear infinite;
  margin: 40px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Modal ---------- */
.modal-bg {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  display: flex; align-items: center; justify-content: center;
  z-index: 999;
  padding: 20px;
}
.modal {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

/* ---------- Utilities ---------- */
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-2 { margin-bottom: 16px; }
.text-center { text-align: center; }
.text-gray { color: var(--gray); }
.flex { display: flex; }
.gap-2 { gap: 8px; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }

/* ============================================
   LANDING PAGE
   ============================================ */

.hero {
  background: linear-gradient(135deg, #008751 0%, #005a36 100%);
  color: #fff;
  padding: 70px 20px 90px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -50%; right: -20%;
  width: 500px; height: 500px;
  background: rgba(255,255,255,.06);
  border-radius: 50%;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -40%; left: -10%;
  width: 400px; height: 400px;
  background: rgba(255,255,255,.05);
  border-radius: 50%;
}
.hero-inner { max-width: 900px; margin: 0 auto; position: relative; z-index: 2; }
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.15);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
}
.hero h1 {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 18px;
}
.hero h1 span { color: #ffd84d; }
.hero p.sub {
  font-size: 18px;
  opacity: .95;
  max-width: 700px;
  margin: 0 auto 32px;
  line-height: 1.6;
}
.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-cta .btn { padding: 14px 28px; font-size: 15px; }

.tagline-strip {
  background: #ffd84d;
  color: #1a1a1a;
  text-align: center;
  padding: 14px 20px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .3px;
}

section.block { padding: 70px 20px; }
section.block.alt { background: var(--light); }
.section-head {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 50px;
}
.section-head h2 {
  font-size: 34px;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--dark);
}
.section-head h2 span { color: var(--green); }
.section-head p { color: var(--gray); font-size: 17px; line-height: 1.7; }
.section-head .eyebrow {
  display: inline-block;
  color: var(--green);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}
.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px 22px;
  transition: all .25s;
  position: relative;
  overflow: hidden;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,135,81,.12);
  border-color: var(--green);
}
.service-card .icon { font-size: 32px; margin-bottom: 14px; display: block; }
.service-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--dark);
  line-height: 1.3;
}
.service-card p { font-size: 14px; color: var(--gray); line-height: 1.6; }

.vision-box {
  max-width: 800px;
  margin: 0 auto;
  background: linear-gradient(135deg, #008751, #00a862);
  color: #fff;
  border-radius: 20px;
  padding: 50px 40px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0,135,81,.25);
}
.vision-box h2 { font-size: 28px; font-weight: 800; margin-bottom: 16px; }
.vision-box p { font-size: 18px; line-height: 1.7; opacity: .95; }
.vision-box .vision-tag {
  display: inline-block;
  margin-top: 22px;
  background: rgba(255,255,255,.15);
  padding: 8px 20px;
  border-radius: 30px;
  font-weight: 700;
  letter-spacing: .5px;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}
.why-item { text-align: center; padding: 24px 16px; }
.why-item .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  background: var(--green-light);
  color: var(--green);
  border-radius: 50%;
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 14px;
}
.why-item h4 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.why-item p { font-size: 14px; color: var(--gray); line-height: 1.6; }

.cta-band {
  background: #1a1a1a;
  color: #fff;
  text-align: center;
  padding: 60px 20px;
}
.cta-band h2 { font-size: 30px; font-weight: 800; margin-bottom: 14px; }
.cta-band p {
  color: #c9c9c9;
  font-size: 16px;
  margin-bottom: 26px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.cta-band .btn { padding: 14px 32px; font-size: 15px; }

footer.site-footer { background: #111; color: #b8b8b8; padding: 50px 20px 25px; }
.footer-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 30px;
}
.footer-grid h4 { color: #fff; font-size: 15px; margin-bottom: 14px; font-weight: 700; }
.footer-grid p, .footer-grid li { font-size: 14px; line-height: 1.9; color: #b8b8b8; }
.footer-grid ul { list-style: none; padding: 0; }
.footer-grid a { color: #b8b8b8; text-decoration: none; }
.footer-grid a:hover { color: var(--green); }
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}
.footer-bottom {
  max-width: 1100px;
  margin: 30px auto 0;
  padding-top: 20px;
  border-top: 1px solid #262626;
  text-align: center;
  font-size: 13px;
  color: #888;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 780px) {
  .hero h1 { font-size: 30px; }
  .hero p.sub { font-size: 15px; }
  .hero { padding: 50px 18px 70px; }
  .section-head h2 { font-size: 26px; }
  .section-head p { font-size: 15px; }
  .vision-box { padding: 36px 22px; }
  .vision-box p { font-size: 15px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  section.block { padding: 50px 18px; }
  .cta-band h2 { font-size: 24px; }
  .navbar { padding: 12px 14px; }
  .navbar .nav-links a, .navbar .nav-links button { font-size: 12px; padding: 5px 8px; }
  .container { padding: 14px; }
  h1 { font-size: 22px; }
}

@media (max-width: 460px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .hero h1 { font-size: 26px; }
}