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

:root {
  --bg-1: #f8fafc;
  --bg-2: #eef2ff;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-border: rgba(226, 232, 240, 0.9);
  --text: #0f172a;
  --muted: #475569;
  --muted-light: #64748b;
  --line: #dbe4f0;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --shadow: 0 10px 35px rgba(15, 23, 42, 0.08);
  --radius: 22px;
  --max-width: 920px;
}

/* ================= BODY ================= */
body {
  font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.08), transparent 28%),
    radial-gradient(circle at top right, rgba(99, 102, 241, 0.08), transparent 24%),
    linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
  min-height: 100vh;
  line-height: 1.7;
}

/* Center only homepage */
.home-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ================= HOME PAGE ================= */
.container {
  width: 90%;
  max-width: 500px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  padding: 40px 30px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
  animation: fadeIn 0.6s ease-in-out;
}

/* ================= INNER PAGES ================= */
.page-card {
  max-width: 850px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 22px;
  padding: 40px 32px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(8px);
}

/* ================= BADGE ================= */
.page-badge {
  display: inline-block;
  background: #e0f2fe;
  color: #0369a1;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 18px;
}

/* ================= HEADINGS ================= */
h1 {
  font-size: 32px;
  margin-bottom: 10px;
  color: #111827;
}

/* Homepage override */
.container h1 {
  font-size: 28px;
  color: #222;
}

/* ================= TEXT ================= */
p {
  color: #555;
  font-size: 14px;
  margin-bottom: 20px;
}

/* Inner page text */
.intro {
  font-size: 16px;
  color: #4b5563;
  margin-bottom: 30px;
  line-height: 1.7;
}

.last-updated {
  color: #6b7280;
  font-size: 14px;
  margin-bottom: 28px;
}

/* ================= SECTIONS ================= */
.section {
  background: #f8fbff;
  border: 1px solid #e5f0ff;
  border-radius: 16px;
  padding: 22px 20px;
  margin-bottom: 18px;
}

.section h2 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #0f172a;
}

.section p {
  line-height: 1.7;
  color: #475569;
}

/* ================= CONTACT ================= */
.contact-box {
  margin-top: 24px;
  padding: 18px 20px;
  border-radius: 16px;
  background: linear-gradient(135deg, #eff6ff, #f0fdf4);
  border: 1px solid #dbeafe;
}

.contact-box strong {
  display: block;
  margin-bottom: 6px;
  color: #111827;
}

/* ================= LIST ================= */
ul {
  list-style: none;
}

ul.clean-list {
  padding-left: 18px;
  list-style: disc;
  color: #475569;
  line-height: 1.8;
}

/* ================= LINKS ================= */

/* Default links (inner pages) */
a {
  color: #0ea5e9;
  text-decoration: none;
  font-weight: 500;
}

a:hover {
  text-decoration: underline;
}

/* ================= HOME BUTTON LINKS ================= */
.container a {
  display: block;
  margin: 12px auto;
  padding: 12px;
  width: 220px;
  border-radius: 12px;
  text-decoration: none;
  color: white;
  font-weight: 500;
  background: linear-gradient(135deg, #4facfe, #007bff);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

.container a:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  text-decoration: none;
}

/* ================= BACK BUTTON ================= */
.back-link {
  display: inline-block;
  margin-top: 24px;
  padding: 12px 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, #4facfe, #007bff);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.back-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 123, 255, 0.22);
  text-decoration: none;
}

/* ================= FOOTER ================= */
.site-footer {
  max-width: var(--max-width);
  margin: 28px auto 0;
  padding: 0;
}

.footer-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.footer-brand {
  color: #475569;
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #334155;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 14px;
  border-radius: 10px;
  transition: background 0.2s ease, color 0.2s ease;
}

.footer-links a:hover {
  background: #eff6ff;
  color: #2563eb;
  text-decoration: none;
}

.footer-links a.active {
  background: #2563eb;
  color: #ffffff;
}

/* Mobile */
@media (max-width: 768px) {
  .footer-nav {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    padding: 16px;
  }

  .footer-brand {
    white-space: normal;
  }

  .footer-links {
    justify-content: center;
    gap: 8px;
  }

  .footer-links a {
    flex: 1 1 auto;
    min-width: 140px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .footer-links {
    flex-direction: column;
    width: 100%;
  }

  .footer-links a {
    width: 100%;
  }
}

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

/* ================= RESPONSIVE ================= */
@media (max-width: 640px) {
  body {
    padding: 20px 14px;
  }

  .page-card {
    padding: 26px 18px;
    border-radius: 18px;
  }

  h1 {
    font-size: 26px;
  }

  .section h2 {
    font-size: 18px;
  }

  .container {
    padding: 30px 20px;
  }
}
