/* =========================================================
   Payal Tution Hub - Main Stylesheet
   Theme: Purple gradient + Pink + White
========================================================= */

:root {
  --purple-900: #3b0764;
  --purple-700: #6b21a8;
  --purple-600: #8b2fc9;
  --purple-500: #a855f7;
  --pink-500: #ec4899;
  --pink-400: #f472b6;
  --pink-100: #fce7f3;
  --white: #ffffff;
  --ink: #241429;
  --muted: #6b6178;
  --bg-soft: #faf7fc;
  --border: #ecdcf5;
  --success: #16a34a;
  --danger: #dc2626;

  --gradient-main: linear-gradient(135deg, var(--purple-700) 0%, var(--purple-600) 45%, var(--pink-500) 100%);
  --gradient-soft: linear-gradient(135deg, #f3e8ff 0%, #fce7f3 100%);

  --font-display: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(107, 33, 168, 0.12);
  --shadow-sm: 0 4px 14px rgba(107, 33, 168, 0.10);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg-soft);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0 0 .5em;
  line-height: 1.25;
}

a { color: var(--purple-600); text-decoration: none; }
a:hover { color: var(--pink-500); }

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

section { padding: 64px 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.btn-primary {
  background: var(--gradient-main);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--white); }
.btn-outline {
  background: transparent;
  color: var(--purple-600);
  border: 2px solid var(--purple-500);
}
.btn-outline:hover { background: var(--purple-500); color: var(--white); }
.btn-block { width: 100%; text-align: center; }
.btn-sm { padding: 8px 18px; font-size: 13px; }
.btn-danger { background: var(--danger); color: var(--white); }
.btn-success { background: var(--success); color: var(--white); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.navbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 20px;
  color: var(--purple-700);
}
.brand-badge {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--gradient-main); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700;
}
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink); font-weight: 500; font-size: 15px; }
.nav-links a.active, .nav-links a:hover { color: var(--pink-500); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.nav-toggle { display: none; background: none; border: none; font-size: 26px; color: var(--purple-700); cursor: pointer; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: flex-start;
    padding: 16px 20px; gap: 14px; border-bottom: 1px solid var(--border);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-cta { display: none; }
  .nav-cta.open { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 0 20px 16px; }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--gradient-main);
  color: #fff;
  padding: 90px 0 110px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(255,255,255,0.18), transparent 45%);
}
.hero-inner {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center;
  position: relative; z-index: 1;
}
.eyebrow {
  display: inline-block; background: rgba(255,255,255,0.18);
  padding: 6px 16px; border-radius: 999px; font-size: 13px; font-weight: 600;
  letter-spacing: .04em; margin-bottom: 18px;
}
.hero h1 { font-size: 44px; }
.hero p.lead { font-size: 17px; opacity: .92; max-width: 480px; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .btn-outline { color: #fff; border-color: rgba(255,255,255,0.6); }
.hero .btn-outline:hover { background: #fff; color: var(--purple-700); }
.hero-photo-wrap {
  background: rgba(255,255,255,0.12);
  border-radius: 24px; padding: 18px;
  border: 1px solid rgba(255,255,255,0.25);
}
.hero-photo {
  border-radius: 18px; overflow: hidden; aspect-ratio: 4/5; background: #fff;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
}

/* ---------- Offer banner ---------- */
.offer-banner {
  background: var(--pink-100);
  border: 1px dashed var(--pink-400);
  border-radius: var(--radius);
  padding: 18px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap;
  margin: -50px auto 0;
  max-width: 1000px;
  position: relative; z-index: 2;
  box-shadow: var(--shadow);
}
.offer-banner strong { color: var(--pink-500); font-size: 18px; }

/* ---------- Section headers ---------- */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head .eyebrow { background: var(--pink-100); color: var(--pink-500); }
.section-head h2 { font-size: 32px; color: var(--purple-700); }
.section-head p { color: var(--muted); }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--gradient-soft); color: var(--purple-600);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700; margin-bottom: 18px;
}
.card h3 { font-size: 19px; color: var(--purple-700); }
.card .tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.tag { background: var(--pink-100); color: var(--pink-500); font-size: 12px; padding: 4px 10px; border-radius: 999px; font-weight: 600; }

/* ---------- Forms ---------- */
.form-card {
  background: #fff; border-radius: var(--radius); padding: 36px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border);
  max-width: 560px; margin: 0 auto;
}
.form-group { margin-bottom: 18px; }
label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; color: var(--ink); }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=date], select, textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border); font-size: 15px; font-family: var(--font-body);
  background: #fff; color: var(--ink); transition: border-color .15s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--purple-500); box-shadow: 0 0 0 3px rgba(168,85,247,0.15);
}
textarea { resize: vertical; min-height: 110px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-hint { font-size: 12.5px; color: var(--muted); margin-top: 5px; }
.form-links { text-align: center; margin-top: 16px; font-size: 14px; }

/* ---------- Alerts / Flash ---------- */
.alert {
  padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 18px; font-size: 14.5px;
  border: 1px solid transparent;
}
.alert-success { background: #ecfdf3; color: #15803d; border-color: #bbf7d0; }
.alert-error { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.alert-info { background: #f3e8ff; color: var(--purple-700); border-color: #e9d5ff; }

/* ---------- Testimonials ---------- */
.review-card { background: #fff; }
.stars { color: #f59e0b; font-size: 16px; margin-bottom: 10px; }
.reviewer { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.reviewer-avatar {
  width: 38px; height: 38px; border-radius: 50%; background: var(--gradient-main);
  color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--purple-900); color: #e9d8f5; padding: 50px 0 24px; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: 15px; }
.site-footer a { color: #d8bdf0; }
.site-footer a:hover { color: #fff; }
.footer-bottom { text-align: center; margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.12); font-size: 13px; color: #bfa1d8; }

/* ---------- Tables (admin) ---------- */
table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius-sm); overflow: hidden; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); font-size: 14px; }
th { background: var(--gradient-soft); color: var(--purple-700); font-weight: 700; }
tr:hover td { background: #fdf7ff; }

.badge { padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; display: inline-block; }
.badge-new, .badge-pending { background: #fef3c7; color: #92400e; }
.badge-contacted, .badge-scheduled { background: #dbeafe; color: #1e40af; }
.badge-enrolled, .badge-done, .badge-approved, .badge-present { background: #dcfce7; color: #166534; }
.badge-rejected, .badge-absent { background: #fee2e2; color: #991b1b; }

/* ---------- Admin layout ---------- */
.admin-wrap { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 250px; background: var(--purple-900); color: #fff; flex-shrink: 0;
  padding: 22px 16px; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.admin-sidebar .brand { color: #fff; margin-bottom: 26px; }
.admin-sidebar a {
  display: flex; align-items: center; gap: 10px; color: #e2c9f5;
  padding: 11px 14px; border-radius: 10px; font-size: 14.5px; margin-bottom: 4px; font-weight: 500;
}
.admin-sidebar a:hover, .admin-sidebar a.active { background: rgba(255,255,255,0.12); color: #fff; }
.admin-main { flex: 1; padding: 28px 34px; background: var(--bg-soft); }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; flex-wrap: wrap; gap: 12px; }
.stat-cards { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; margin-bottom: 30px; }
@media (max-width: 900px) { .stat-cards { grid-template-columns: repeat(2,1fr); } .admin-sidebar { display: none; } }
.stat-card { background: #fff; border-radius: var(--radius); padding: 22px; border: 1px solid var(--border); }
.stat-card .num { font-size: 28px; font-weight: 800; color: var(--purple-700); }
.stat-card .label { font-size: 13px; color: var(--muted); }

.panel { background: #fff; border-radius: var(--radius); padding: 24px; border: 1px solid var(--border); margin-bottom: 24px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; flex-wrap: wrap; gap: 10px; }
.table-wrap { overflow-x: auto; }

.inline-form { display: inline; }
.actions-cell { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
