html, body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Prevent horizontal scroll */
}





* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #f3f4f6;
  color: #111827;
}
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}
.site-header {
  background: #111827;
  color: #f9fafb;
  padding: 0.75rem 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: linear-gradient(135deg,#2563eb,#10b981);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #f9fafb;
}
.brand-text { font-weight: 600; }
.top-nav a { color: #e5e7eb; text-decoration: none; font-size: 0.9rem; }

.main-content {
  display: flex;
  margin-top: 1rem;
  margin-bottom: 2rem;
}
.sidebar {
  width: 200px;
  margin-right: 1rem;
}
.sidebar ul { list-style: none; }
.sidebar li { margin-bottom: 0.5rem; }
.sidebar a {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  text-decoration: none;
  color: #111827;
}
.sidebar a:hover {
  background: #e5e7eb;
}
.content-area {
  flex: 1;
  background: #ffffff;
  border-radius: 0rem;
  padding: 0rem 0rem;
  box-shadow: 0 10px 25px rgba(15,23,42,0.06);
}

.site-footer {
  border-top: 1px solid #e5e7eb;
  padding: 1rem 0;
  background: #f9fafb;
  font-size: 0.9rem;
}
.footer-inner { text-align: center; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
  gap: 1rem;
}
.card {
  background: #ffffff;
  border-radius: 0.75rem;
  padding: 1rem;
  box-shadow: 0 6px 16px rgba(15,23,42,0.05);
}
.card h2 { margin-bottom: 0.5rem; }

.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.5rem;
}
.table th, .table td {
  border: 1px solid #e5e7eb;
  padding: 0.5rem;
  font-size: 0.9rem;
}
.table th {
  background: #f3f4f6;
  text-align: left;
}

.btn-primary {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  background: #2563eb;
  color: #f9fafb;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { background: #1d4ed8; }

.btn-ghost-small {
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  border: 1px solid #4b5563;
  background: transparent;
  color: #e5e7eb;
  font-size: 0.8rem;
  text-decoration: none;
}

.auth-body {
  background: radial-gradient(circle at top,#1d4ed8,#111827);
  color: #f9fafb;
}
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-card {
  background: #111827;
  padding: 2rem;
  border-radius: 0.75rem;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
.auth-card h1 {
  margin-bottom: 1rem;
}
.auth-card label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}
.auth-card input {
  width: 100%;
  padding: 0.5rem;
  margin-top: 0.25rem;
  border-radius: 0.375rem;
  border: 1px solid #4b5563;
  background: #020617;
  color: #f9fafb;
}
.alert {
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}
.alert-error {
  background: rgba(248,113,113,0.15);
  color: #fecaca;
  border: 1px solid #f87171;
}

/* Responsive */
@media (max-width: 768px) {
  .main-content {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    margin-bottom: 1rem;
  }
}
/* Admin panel theme */
.sidebar-admin {
  background: #020617;
  color: #e5e7eb;
  border-radius: 0.75rem;
  padding: 1rem;
}
.sidebar-admin a {
  color: #e5e7eb;
}
.sidebar-admin a:hover {
  background: #111827;
}
.sidebar-title {
  margin-bottom: 1rem;
}
.sidebar-title small {
  display:block;
  font-size:0.75rem;
  color:#9ca3af;
}
.admin-badge {
  display:inline-block;
  padding:0.15rem 0.55rem;
  border-radius:999px;
  background:#ef4444;
  color:#fee2e2;
  font-size:0.7rem;
  text-transform:uppercase;
  letter-spacing:0.05em;
}
.content-admin {
  border-left: 3px solid #2563eb;
}
/* ============================================
   Registration & FAQ — Rowe Williams Learning
   ============================================ */

.page-hero {
  padding: 3rem 0 1rem;
}

.rw-grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.8fr);
  gap: 2rem;
}
@media (max-width: 900px) {
  .rw-grid-2 { grid-template-columns: 1fr; }
}

/* ----- Cards ----- */
.card {
  background: #ffffff;
  border-radius: 20px;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}
.card-soft {
  background: #f7f9fc;
  border: 1px solid #e5e7eb;
}

/* ----- Registration Form ----- */
.rw-form .form-group,
.rw-form .form-row {
  margin-bottom: 1rem;
}
.rw-form .form-row {
  display: flex;
  gap: 1rem;
}
.rw-form .form-row .form-group {
  flex: 1;
}

.rw-form label {
  font-size: 0.9rem;
  font-weight: 600;
  display: block;
  margin-bottom: 0.25rem;
}

.rw-form input,
.rw-form select {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #1f2937;
}

.rw-form input:focus,
.rw-form select:focus {
  outline: 2px solid #0ea5e9;
  outline-offset: 1px;
}

.rw-form .form-group-inline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ----- Buttons ----- */
.btn-primary {
  display: inline-block;
  border: none;
  padding: 0.7rem 1.4rem;
  border-radius: 12px;
  background: #2563eb;
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
  margin-top: 0.5rem;
}
.btn-primary:hover {
  background: #1d4ed8;
}

.form-footnote {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: #6b7280;
}

/* ----- Checklist ----- */
.rw-checklist {
  list-style: none;
  padding-left: 0;
}
.rw-checklist li + li {
  margin-top: 0.4rem;
}

/* ----- FAQ ----- */
.faq-item {
  border-bottom: 1px solid #e5e7eb;
}

.faq-question {
  width: 100%;
  margin: 0;
  padding: 0.75rem 0;
  background: none;
  border: none;
  color: #111827;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
  cursor: pointer;
  font-weight: 600;
}

.faq-toggle {
  font-weight: 700;
  font-size: 1.3rem;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.18s ease;
  color: #4b5563;
  font-size: 0.9rem;
}

.faq-item.open .faq-answer {
  margin-top: 0.5rem;
}

.rw-contact-list,
.rw-links,
.rw-steps {
  padding-left: 1rem;
}

.rw-divider {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 1.5rem 0;
}
.full-width-section {
    width: 100%;
    background: #ffffff;
    padding: 3rem 0;
}

.full-width-section .inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
}
/* ===============================
   DASHBOARD LAYOUT (student/teacher)
   =============================== */

.dashboard-shell {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.dashboard-sidebar {
  width: 230px;
  background: #020617;
  color: #e5e7eb;
  border-radius: 16px;
  padding: 1.25rem 1.1rem;
  box-shadow: 0 10px 28px rgba(15,23,42,0.55);
}

.dashboard-sidebar h2 {
  font-size: 1rem;
  margin: 0 0 0.5rem;
}

.dashboard-sidebar p {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  color: #9ca3af;
}

.dashboard-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dashboard-nav li + li {
  margin-top: 0.25rem;
}

.dashboard-nav a {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  font-size: 0.9rem;
  text-decoration: none;
  color: #e5e7eb;
  transition: background 0.16s ease, transform 0.12s ease;
}

.dashboard-nav a:hover {
  background: #0f172a;
  transform: translateX(2px);
}

.dashboard-nav a.active {
  background: #0ea5e9;
  color: #020617;
}

.dashboard-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* cards inside dashboard */
.dashboard-row {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
  gap: 1rem;
}

.dashboard-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 1.25rem 1.4rem;
  box-shadow: 0 8px 22px rgba(15,23,42,0.07);
}

.dashboard-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.dashboard-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  background: #e0f2fe;
  color: #0369a1;
  margin-left: 0.3rem;
}

/* Responsive: stack sidebar on mobile */
@media (max-width: 768px) {
  .dashboard-shell {
    flex-direction: column;
  }
  .dashboard-sidebar {
    width: 100%;
  }
}
