/* ==========================================================
   MarathaOnline.in - Main Stylesheet
   Palette: deep maroon + saffron gold + warm cream
   ========================================================== */

:root {
  --maroon: #6e1f1f;
  --maroon-dark: #4a1414;
  --gold: #c8932a;
  --gold-light: #e8b94a;
  --cream: #faf6ef;
  --ink: #2a2118;
  --muted: #7a7269;
  --line: #e7dfd2;
  --success: #2e8b57;
  --danger: #c0392b;
  --warning: #d97706;
  --info: #2980b9;
  --shadow: 0 8px 24px rgba(110, 31, 31, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Segoe UI', 'Mukta', system-ui, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.55;
}

a { color: var(--maroon); text-decoration: none; }
a:hover { color: var(--gold); }

/* ---------- Header ---------- */
.topbar {
  background: var(--maroon-dark);
  color: #f3e3c8;
  font-size: 13px;
  padding: 6px 0;
}
.topbar .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.topbar a { color: #f3e3c8; }

.navbar {
  background: #fff;
  border-bottom: 3px solid var(--gold);
  padding: 14px 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.navbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}
.brand {
  font-family: 'Georgia', serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--maroon);
  letter-spacing: 0.5px;
}
.brand span { color: var(--gold); }
.nav-links { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  padding: 8px 14px;
  display: inline-block;
  font-weight: 500;
  border-radius: 4px;
  transition: all 0.15s;
}
.nav-links a:hover { background: var(--cream); color: var(--maroon-dark); }
.btn-register-nav {
  background: var(--maroon);
  color: #fff !important;
  border-radius: 4px;
}
.btn-register-nav:hover { background: var(--gold) !important; color: #fff !important; }

/* ---------- Layout ---------- */
.container { max-width: 1180px; margin: 0 auto; padding: 0 18px; }
.page { padding: 40px 0 60px; }

/* ---------- Headings ---------- */
.page-title {
  font-family: 'Georgia', serif;
  color: var(--maroon);
  font-size: 32px;
  margin: 0 0 6px;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
  padding-bottom: 6px;
}
.section-title {
  font-family: 'Georgia', serif;
  color: var(--maroon);
  font-size: 20px;
  margin: 28px 0 14px;
  padding: 10px 14px;
  background: linear-gradient(90deg, var(--cream), #fff);
  border-left: 4px solid var(--gold);
  border-radius: 0 4px 4px 0;
}

/* ---------- Forms ---------- */
.form-card {
  background: #fff;
  border-radius: 8px;
  padding: 28px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--gold);
}
.row { display: flex; flex-wrap: wrap; margin: 0 -8px; }
.col-3, .col-4, .col-6, .col-12 { padding: 0 8px; margin-bottom: 14px; }
.col-3  { width: 25%; }
.col-4  { width: 33.333%; }
.col-6  { width: 50%; }
.col-12 { width: 100%; }
@media (max-width: 768px) {
  .col-3, .col-4, .col-6 { width: 100%; }
}

.form-group { margin-bottom: 8px; }
label {
  display: block;
  font-weight: 600;
  font-size: 13px;
  color: var(--ink);
  margin-bottom: 4px;
}
label .req { color: var(--danger); margin-left: 2px; }

.form-control {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  transition: border 0.15s, box-shadow 0.15s;
}
.form-control:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200, 147, 42, 0.15);
}
textarea.form-control { min-height: 70px; resize: vertical; }
select.form-control { cursor: pointer; }

.checkbox-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 16px;
  font-weight: 400;
}
.checkbox-inline input { margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 10px 22px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s;
  font-family: inherit;
}
.btn-primary { background: var(--maroon); color: #fff; }
.btn-primary:hover { background: var(--maroon-dark); color: #fff; }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-light); color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { opacity: 0.9; color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { opacity: 0.9; color: #fff; }
.btn-secondary { background: #6c757d; color: #fff; }
.btn-secondary:hover { background: #5a6268; color: #fff; }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-block { display: block; width: 100%; }

/* ---------- Alerts ---------- */
.alert {
  padding: 12px 16px;
  border-radius: 4px;
  margin-bottom: 16px;
  border-left: 4px solid;
}
.alert-success { background: #e9f7ef; border-color: var(--success); color: #1d6b3f; }
.alert-danger  { background: #fbecec; border-color: var(--danger);  color: #8a2a20; }
.alert-info    { background: #ebf3fb; border-color: var(--info);    color: #1f5e87; }
.alert-warning { background: #fef4e6; border-color: var(--warning); color: #8a5400; }

/* ---------- Tables ---------- */
.table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
}
.table th, .table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; font-size: 14px; }
.table th { background: var(--maroon); color: #fff; font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.4px; }
.table tbody tr:hover { background: var(--cream); }

/* ---------- Badges ---------- */
.badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: #fff;
}
.badge-success { background: var(--success); }
.badge-danger  { background: var(--danger); }
.badge-warning { background: var(--warning); }
.badge-info    { background: var(--info); }
.badge-dark    { background: #343a40; }
.badge-secondary { background: #6c757d; }

/* ---------- Cards (profile list) ---------- */
.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}
.profile-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  border-top: 3px solid var(--gold);
}
.profile-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(110, 31, 31, 0.15);
}
.profile-card .photo {
  width: 100%;
  height: 220px;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.profile-card .photo img { width: 100%; height: 100%; object-fit: cover; }
.profile-card .photo .placeholder { font-size: 60px; color: var(--gold); }
.profile-card .info { padding: 14px; }
.profile-card .info h4 { margin: 0 0 4px; color: var(--maroon); font-size: 16px; }
.profile-card .info .meta { color: var(--muted); font-size: 12px; margin-bottom: 10px; }

/* ---------- Footer ---------- */
.footer {
  background: var(--maroon-dark);
  color: #f3e3c8;
  padding: 36px 0 18px;
  margin-top: 60px;
}
.footer h4 { color: var(--gold-light); margin-top: 0; font-family: 'Georgia', serif; }
.footer a { color: #f3e3c8; }
.footer a:hover { color: var(--gold-light); }
.footer .row { gap: 20px 0; }
.footer .copy { text-align: center; padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.1); margin-top: 24px; font-size: 13px; color: #c2b189; }

/* ---------- Login / Auth pages ---------- */
.auth-box {
  max-width: 420px;
  margin: 60px auto;
  background: #fff;
  padding: 32px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--gold);
}
.auth-box h2 { color: var(--maroon); margin: 0 0 18px; font-family: 'Georgia', serif; text-align: center; }

/* ---------- Sidebar (admin) ---------- */
.admin-layout { display: flex; min-height: 100vh; }
.sidebar {
  width: 230px;
  background: var(--maroon-dark);
  color: #f3e3c8;
  padding: 18px 0;
  flex-shrink: 0;
}
.sidebar h3 { padding: 0 18px 18px; margin: 0; border-bottom: 1px solid rgba(255,255,255,0.1); color: var(--gold-light); font-family: 'Georgia', serif; }
.sidebar nav { padding-top: 12px; }
.sidebar nav a {
  display: block;
  padding: 10px 18px;
  color: #f3e3c8;
  border-left: 3px solid transparent;
  transition: all 0.15s;
}
.sidebar nav a:hover, .sidebar nav a.active {
  background: rgba(255,255,255,0.06);
  border-left-color: var(--gold);
  color: var(--gold-light);
}
.admin-main { flex: 1; padding: 24px; overflow-x: auto; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }

/* ---------- Dashboard stat cards ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card {
  background: #fff;
  padding: 18px;
  border-radius: 6px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--gold);
}
.stat-card .label { color: var(--muted); font-size: 13px; margin-bottom: 4px; }
.stat-card .value { font-size: 28px; font-weight: 700; color: var(--maroon); }

/* ---------- Filter bar ---------- */
.filter-bar {
  background: #fff;
  padding: 16px;
  border-radius: 6px;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
}
.filter-bar .form-group { flex: 1; min-width: 150px; margin: 0; }

/* ---------- Profile detail ---------- */
.profile-detail { background: #fff; border-radius: 8px; padding: 24px; box-shadow: var(--shadow); }
.profile-detail .head { display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 24px; padding-bottom: 18px; border-bottom: 2px solid var(--gold); }
.profile-detail .photo-main { width: 200px; height: 240px; border-radius: 6px; overflow: hidden; background: var(--cream); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.profile-detail .photo-main img { width: 100%; height: 100%; object-fit: cover; }
.profile-detail .head-info { flex: 1; min-width: 250px; }
.profile-detail .head-info h2 { color: var(--maroon); margin: 0 0 8px; }
.detail-table { width: 100%; border-collapse: collapse; }
.detail-table td { padding: 7px 10px; border-bottom: 1px solid var(--line); font-size: 14px; }
.detail-table td:first-child { width: 35%; color: var(--muted); font-weight: 500; }

/* ---------- Pagination ---------- */
.pagination { display: flex; gap: 4px; justify-content: center; padding: 18px 0; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 7px 12px; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.pagination .active { background: var(--maroon); color: #fff; border-color: var(--maroon); }

/* ---------- Misc ---------- */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.muted { color: var(--muted); font-size: 13px; }
hr.divider { border: none; border-top: 1px solid var(--line); margin: 24px 0; }

.marquee-banner { background: var(--gold); color: #fff; padding: 8px 0; text-align: center; font-weight: 500; font-size: 14px; }
