:root {
  --ink: #18201f;
  --deep: #06351f;
  --deep-2: #0b4a2b;
  --paper: #ffffff;
  --surface: #ffffff;
  --white: #ffffff;
  --muted: #66736f;
  --line: #e5e7eb;
  --green: #0b5a34;
  --teal: #0d6b47;
  --gold: #c9922f;
  --rose: #a33d56;
  --shadow: 0 22px 55px rgba(24, 32, 31, 0.16);
  --soft-shadow: 0 12px 28px rgba(24, 32, 31, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  margin: 0;
  color: var(--ink);
  background: #ffffff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 46px;
  background: var(--deep);
  border-bottom: 2px solid var(--green);
  box-shadow: 0 12px 28px rgba(6, 53, 31, 0.14);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  min-width: max-content;
}

.brand span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--white);
  background: var(--green);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  font-weight: 900;
}

.brand strong {
  font-size: 18px;
}

nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

nav a,
nav button,
.menu-btn {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 9px 11px;
  color: #ffffff;
  background: var(--green);
  cursor: pointer;
  font-weight: 950;
}

nav a.active,
nav a:hover,
nav button:hover,
.menu-btn:hover {
  color: var(--white);
  background: #042817;
  border-color: rgba(255, 255, 255, 0.36);
}

.login-link {
  color: #ffffff;
}

.menu-btn {
  display: none;
  align-items: center;
  gap: 9px;
  color: #ffffff;
  background: var(--green);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 10px 24px rgba(6, 53, 31, 0.2);
  font-weight: 950;
}

.menu-btn strong {
  font-size: 14px;
}

.menu-icon {
  display: grid;
  gap: 3px;
  width: 18px;
}

.menu-icon i {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: #ffffff;
}

.menu-btn:hover {
  color: #ffffff;
  background: #042817;
  border-color: rgba(255, 255, 255, 0.36);
}

main {
  flex: 1 0 auto;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 26px 0 52px;
}

.flash {
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid #b8d9c5;
  border-radius: 8px;
  background: #eef9f1;
  color: #18583b;
  box-shadow: var(--soft-shadow);
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  min-height: auto;
  align-items: center;
  overflow: hidden;
  padding: 54px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--deep);
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.hero::before {
  content: none;
  position: absolute;
  inset: 0;
  z-index: -2;
  background: #ffffff;
}

.hero::after {
  content: none;
  position: absolute;
  inset: auto 0 0;
  height: 9px;
  z-index: -1;
  background: linear-gradient(90deg, var(--gold), var(--green), var(--teal), var(--rose));
}

.hero-copy {
  max-width: 980px;
}

.hero-copy h1,
.section-head h1,
.program h1,
.help h1,
.admin h1 {
  margin: 0 0 16px;
  font-size: 56px;
  line-height: 1.03;
  letter-spacing: 0;
}

.section-head h1,
.program h1,
.help h1,
.admin h1 {
  color: var(--deep);
}

.hero-copy p {
  max-width: 980px;
  font-size: 18px;
  color: #334155;
}

.quran-card {
  display: grid;
  gap: 8px;
  max-width: 860px;
  margin: 0 0 18px;
  padding: 16px 18px;
  border: 1px solid rgba(11, 90, 52, 0.16);
  border-left: 5px solid var(--green);
  border-radius: 8px;
  background: #f6fbf7;
}

.quran-card strong {
  color: var(--green);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.quran-card p {
  margin: 0;
  font-size: 15px;
}

.quran-card .arabic {
  color: var(--deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  line-height: 1.5;
  text-align: right;
}

.eyebrow,
.meta {
  color: var(--green);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.roman {
  border-left: 5px solid var(--gold);
  padding-left: 16px;
}

.hero-actions,
.program-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.primary,
.secondary,
form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 11px 16px;
  cursor: pointer;
  font-weight: 900;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.primary {
  color: #ffffff;
  background: var(--green);
  box-shadow: 0 12px 26px rgba(11, 90, 52, 0.2);
}

.secondary,
form button,
.program-list span {
  color: var(--deep);
  background: #eef4ef;
}

.primary:hover,
.secondary:hover,
form button:hover {
  transform: translateY(-1px);
}

.hero-panel,
.panel,
.post-card,
.help,
.program {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--soft-shadow);
}

.hero-panel {
  display: grid;
  gap: 10px;
  padding: 24px;
  color: var(--deep);
  background: #ffffff;
  border-color: var(--line);
}

.hero-panel strong {
  font-size: 26px;
  line-height: 1.15;
}

.hero-panel a {
  color: var(--green);
  font-weight: 900;
  font-size: 22px;
  word-break: break-word;
}

.demo-credentials,
.demo-strip {
  display: grid;
  gap: 7px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(201, 146, 47, 0.34);
  border-radius: 8px;
  background: rgba(201, 146, 47, 0.13);
}

.demo-credentials code,
.demo-strip span {
  width: 100%;
  padding: 7px 9px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: inherit;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  overflow-wrap: anywhere;
}

.demo-strip {
  margin: 0 0 14px;
  color: #5e4514;
  background: #fff2cf;
}

.demo-strip span {
  background: rgba(255, 255, 255, 0.78);
}

.tabs-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 9px;
  margin-top: 12px;
}

.tabs-preview a {
  position: relative;
  display: grid;
  align-content: center;
  gap: 3px;
  min-height: 76px;
  overflow: hidden;
  padding: 12px;
  border-radius: 8px;
  color: #ffffff;
  background: var(--deep);
  box-shadow: var(--soft-shadow);
}

.tabs-preview a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 3px;
  background: var(--gold);
}

.tabs-preview a:nth-child(2n) {
  background: var(--green);
}

.tabs-preview a:nth-child(3n) {
  background: var(--teal);
}

.tabs-preview a:nth-child(4n) {
  background: var(--rose);
}

.tabs-preview span {
  font-size: 16px;
  font-weight: 950;
  line-height: 1.16;
}

.tabs-preview small {
  font-size: 11px;
  opacity: 0.85;
}

.auth-shell {
  display: grid;
  gap: 18px;
}

.auth-intro {
  position: relative;
  overflow: hidden;
  padding: 34px;
  border: 1px solid rgba(201, 146, 47, 0.24);
  border-radius: 8px;
  color: var(--white);
  background: var(--deep);
  box-shadow: var(--shadow);
}

.auth-intro span {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: var(--gold);
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.auth-intro h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.04;
}

.auth-intro p {
  max-width: 760px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.auth-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 18px;
}

.auth-grid-single {
  grid-template-columns: minmax(0, 560px);
  justify-content: center;
}

.panel {
  padding: 24px;
}

.panel h2,
.panel h3 {
  margin-top: 0;
  color: var(--deep);
}

.login-panel,
.login-rules,
.register-panel {
  border: 1px solid rgba(201, 146, 47, 0.18);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.94);
  box-shadow: var(--soft-shadow);
}

.login-panel {
  min-height: 100%;
}

.auth-grid-single .login-panel {
  min-height: auto;
  padding: 30px;
}

.auth-grid-single .login-panel h2 {
  margin-bottom: 18px;
  font-size: 30px;
}

.auth-grid-single .login-panel .primary {
  width: 100%;
  margin-top: 4px;
}

.login-rules {
  background: #f7fbf6;
}

.rule-list {
  display: grid;
  gap: 10px;
}

.rule-list div {
  padding: 13px;
  border: 1px solid #dcebdc;
  border-left: 4px solid var(--green);
  border-radius: 8px;
  background: #ffffff;
}

.rule-list strong,
.rule-list span {
  display: block;
}

.rule-list span {
  margin-top: 4px;
  color: #51625d;
  font-size: 13px;
}

.register-panel {
  grid-column: 1 / -1;
}

label {
  display: grid;
  gap: 7px;
  margin: 12px 0;
  color: #31413e;
  font-weight: 800;
}

input,
textarea,
select,
.editor {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  background: #fffdf8;
  color: var(--ink);
  outline-color: var(--gold);
}

.editor {
  min-height: 190px;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.toolbar button {
  min-height: 38px;
  padding: 8px 12px;
}

.section-head {
  margin: 18px 0 22px;
  padding: 28px;
  border-left: 7px solid var(--gold);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.82);
  box-shadow: var(--soft-shadow);
}

.mobile-gallery-head {
  display: none;
}

.entertainment-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  border-left-color: var(--green);
  background: #ffffff;
}

.submit-post-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 170px;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 8px;
  color: #ffffff;
  background: var(--green);
  box-shadow: 0 10px 22px rgba(11, 90, 52, 0.18);
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.entertainment-submit-card {
  overflow: hidden;
  margin: 0 0 20px;
  padding: 0;
  border: 1px solid #e3e7ef;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(24, 32, 31, 0.08);
}

.entertainment-submit-card.is-collapsed {
  display: none;
}

.entertainment-submit-card.is-open .entertainment-form-top {
  display: none;
}

.entertainment-head.form-visible {
  display: none;
}

.entertainment-form-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  color: #ffffff;
  background: var(--deep);
}

.entertainment-form-top h2 {
  margin: 2px 0 2px;
  color: white;
  font-size: 18px;
}

.entertainment-form-top p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
}

.form-kicker {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.entertainment-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(220px, 0.9fr);
  gap: 10px;
  padding: 14px 16px 0;
}

.entertainment-submit-card > label,
.entertainment-submit-card .editor-shell,
.entertainment-submit-card .form-actions {
  margin-left: 16px;
  margin-right: 16px;
}

.entertainment-submit-card label {
  margin-top: 10px;
  margin-bottom: 8px;
  font-size: 12px;
}

.editor-shell {
  overflow: hidden;
  border: 1px solid #e3e7ef;
  border-radius: 8px;
  background: #ffffff;
}

.entertainment-toolbar {
  margin: 0;
  padding: 8px;
  background: #f7f8fb;
  border-bottom: 1px solid #e3e7ef;
}

.entertainment-toolbar button {
  min-width: 36px;
  min-height: 32px;
  padding: 6px 9px;
  border: 1px solid #dfe4ec;
  background: #ffffff;
  color: #374151;
  font-size: 12px;
}

.entertainment-editor {
  min-height: 120px;
  border: 0;
  border-radius: 0;
  padding: 14px;
  font-size: 14px;
}

.entertainment-editor:empty::before {
  content: attr(data-placeholder);
  color: #9aa29d;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 2px 0 16px;
  color: var(--muted);
  font-size: 12px;
}

.clear-form {
  color: #4b5565;
  background: #eef1f6;
}

.approved-posts-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin: 24px 0 12px;
}

.approved-posts-head h2 {
  margin: 0;
  color: var(--deep);
  font-size: 22px;
}

.approved-posts-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.section-head p,
.program p,
.help p {
  max-width: 820px;
  color: var(--muted);
  font-size: 18px;
}

.post-form,
.application-form {
  margin-bottom: 22px;
}

.scholarships-page main {
  max-width: 1200px;
}

.scholarship-hero {
  min-height: auto;
  display: flex;
  align-items: center;
  padding: 46px clamp(18px, 5vw, 54px);
  overflow: hidden;
  border: 1px solid rgba(20, 83, 45, 0.16);
  border-radius: 8px;
  color: var(--deep);
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.scholarship-hero-content {
  max-width: 820px;
}

.scholarship-hero span {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 8px 13px;
  border: 1px solid rgba(250, 204, 21, 0.34);
  border-radius: 999px;
  color: #ffffff;
  background: var(--green);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.scholarship-hero h1 {
  margin: 0;
  color: var(--deep);
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.06;
  max-width: 900px;
}

.scholarship-hero p {
  max-width: 780px;
  margin: 18px 0 0;
  color: #334155;
  font-size: 18px;
  line-height: 1.78;
}

.scholarship-hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 28px;
  padding: 13px 26px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: var(--green);
  box-shadow: 0 16px 30px rgba(11, 90, 52, 0.18);
  cursor: pointer;
  font-weight: 950;
}

.scholarship-hero-cta:hover {
  background: #eab308;
  transform: translateY(-1px);
}

.scholarship-about,
.scholarship-program {
  margin: 30px 0;
  padding: 36px;
  border: 1px solid rgba(20, 83, 45, 0.08);
  border-radius: 8px;
}

.scholarship-about {
  background: #ecfdf5;
}

.scholarship-program {
  background: #ffffff;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.06);
}

.scholarship-section-title {
  max-width: 860px;
  margin: 0 auto 26px;
  text-align: center;
}

.scholarship-section-title h2 {
  margin: 0 0 9px;
  color: #14532d;
  font-size: 34px;
  line-height: 1.15;
}

.scholarship-section-title p {
  margin: 0 auto;
  color: #64748b;
  font-size: 17px;
  line-height: 1.7;
}

.scholarship-about-box {
  max-width: 1000px;
  margin: 0 auto;
  padding: 28px 30px;
  border: 1px solid rgba(20, 83, 45, 0.1);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.07);
}

.scholarship-about-box p {
  margin: 0;
  color: #334155;
  font-size: 17px;
  line-height: 1.86;
}

.scholarship-about-box p + p {
  margin-top: 12px;
}

.scholarship-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 28px 0 0;
}

.scholarship-stats div {
  padding: 23px 16px;
  border: 1px solid rgba(250, 204, 21, 0.14);
  border-radius: 8px;
  text-align: center;
  color: #ffffff;
  background: linear-gradient(145deg, #14532d, #0f3d24);
  box-shadow: 0 14px 32px rgba(20, 83, 45, 0.14);
}

.scholarship-stats strong {
  display: block;
  color: #facc15;
  font-size: 31px;
  line-height: 1;
}

.scholarship-stats span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 800;
}

.scholarship-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 0;
}

.scholarship-info-grid article {
  padding: 24px;
  border: 1px solid #e2e8f0;
  border-top: 5px solid #16a34a;
  border-left: 0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.scholarship-info-grid article:nth-child(2),
.scholarship-info-grid article:nth-child(4) {
  border-top-color: #facc15;
}

.scholarship-info-grid h2 {
  margin: 0 0 12px;
  color: #14532d;
  font-size: 21px;
}

.scholarship-info-grid article:nth-child(2) h2,
.scholarship-info-grid article:nth-child(4) h2 {
  color: #14532d;
}

.scholarship-info-grid ul {
  margin: 0;
  padding-left: 20px;
  color: #475569;
  line-height: 1.65;
}

.scholarship-info-grid li + li {
  margin-top: 6px;
}

.scholarship-deadline {
  margin: 8px 0 14px;
  padding: 15px 18px;
  border: 1px solid #fde68a;
  border-radius: 8px;
  color: #92400e;
  background: #fffbeb;
  text-align: center;
  font-weight: 900;
}

.scholarship-apply-tab {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: 0 0 26px;
  padding: 18px 22px;
  border: 1px solid rgba(20, 83, 45, 0.18);
  border-radius: 8px;
  color: #ffffff;
  background:
    linear-gradient(135deg, #14532d, #16a34a),
    #14532d;
  box-shadow: 0 18px 40px rgba(20, 83, 45, 0.18);
  cursor: pointer;
  text-align: left;
}

.scholarship-apply-tab span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  min-height: 34px;
  border-radius: 999px;
  color: #1e293b;
  background: #facc15;
  font-size: 12px;
  font-weight: 950;
}

.scholarship-apply-tab strong {
  font-size: 22px;
  line-height: 1.15;
}

.scholarship-apply-tab em {
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
  opacity: 0.9;
}

.scholarship-apply-tab:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 48px rgba(20, 83, 45, 0.22);
}

.scholarship-form-panel {
  display: none;
}

.scholarship-form-panel.is-open {
  display: block;
}

.scholarship-form-head {
  margin: 4px 0 16px;
  text-align: center;
}

.scholarship-form-head h2 {
  margin: 0;
  color: #14532d;
  font-size: 30px;
}

.scholarship-form-head p {
  margin: 6px 0 0;
  color: #198754;
  font-size: 13px;
  font-weight: 800;
}

.scholarship-wizard {
  margin-bottom: 24px;
  padding: 28px;
  border: 1px solid #dbe7df;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(20, 83, 45, 0.08);
}

.wizard-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.wizard-top div {
  display: grid;
  gap: 4px;
}

.wizard-top span,
.wizard-top em {
  color: #657182;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.wizard-top strong {
  color: var(--deep);
  font-size: 28px;
}

.wizard-progress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #eef3f6;
}

.wizard-progress span {
  display: block;
  width: 25%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #14532d, #16a34a, #facc15);
  transition: width 220ms ease;
}

.wizard-steps-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0 18px;
}

.wizard-steps-nav button {
  min-height: 38px;
  border: 1px solid #dfe7ee;
  border-radius: 8px;
  color: #566273;
  background: #f8fafc;
  font-size: 12px;
  font-weight: 900;
}

.wizard-steps-nav button.active {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(135deg, #14532d, #16a34a);
}

.wizard-steps-nav button.complete {
  color: #14532d;
  border-color: #bbf7d0;
  background: #ecfdf5;
}

.wizard-step {
  display: none;
}

.wizard-step.active {
  display: block;
}

.wizard-step.active::before {
  content: attr(data-title);
  display: block;
  margin-bottom: 16px;
  color: #1b2737;
  font-size: 24px;
  font-weight: 950;
}

.wizard-grid,
.document-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.wizard-grid .wide {
  grid-column: 1 / -1;
}

.scholarship-wizard label {
  display: grid;
  gap: 6px;
  color: #303947;
  font-size: 12px;
  font-weight: 900;
}

.scholarship-wizard input,
.scholarship-wizard select,
.scholarship-wizard textarea {
  width: 100%;
  border: 1px solid #dce7de;
  border-radius: 8px;
  padding: 11px 12px;
  color: #18201f;
  background: #fbfcff;
  font: inherit;
  font-size: 14px;
}

.scholarship-wizard textarea {
  resize: vertical;
}

.scholarship-wizard input:focus,
.scholarship-wizard select:focus,
.scholarship-wizard textarea:focus {
  border-color: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.14);
  outline: none;
}

.scholarship-wizard input.invalid,
.scholarship-wizard select.invalid,
.scholarship-wizard textarea.invalid {
  border-color: #d9445f;
  box-shadow: 0 0 0 3px rgba(217, 68, 95, 0.12);
}

.document-grid label {
  padding: 12px;
  border: 1px dashed #b7dcc2;
  border-radius: 8px;
  background: #f8fdf9;
}

.document-grid small,
.draft-note {
  color: #657182;
  font-size: 11px;
  font-weight: 600;
}

.draft-note {
  margin: 12px 0 0;
}

.wizard-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #edf1f5;
}

.wizard-actions [hidden] {
  display: none;
}

.success-popup {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(24, 32, 31, 0.42);
}

.success-popup.is-visible {
  display: flex;
}

.success-box {
  width: min(420px, 100%);
  padding: 22px;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(24, 32, 31, 0.2);
}

.success-box strong {
  display: block;
  color: var(--deep);
  font-size: 24px;
}

.success-box p {
  margin: 8px 0 18px;
  color: #657182;
  font-size: 15px;
}

.scholarship-faq {
  margin-top: 28px;
  padding: 26px;
  border: 1px solid rgba(20, 83, 45, 0.12);
  border-radius: 8px;
  background: #f8fafc;
}

.scholarship-faq h2 {
  margin: 0 0 18px;
  color: #14532d;
  font-size: 26px;
}

.scholarship-faq details {
  border: 1px solid #e1e7ee;
  border-radius: 8px;
  background: #ffffff;
}

.scholarship-faq details + details {
  margin-top: 10px;
}

.scholarship-faq summary {
  padding: 14px 16px;
  color: #14532d;
  cursor: pointer;
  font-weight: 900;
}

.scholarship-faq p {
  margin: 0;
  padding: 0 16px 14px;
  color: #526175;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.post-card {
  position: relative;
  overflow: hidden;
  background: #fffdf8;
}

.post-card img,
.post-art {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: grid;
}

.post-art {
  place-items: center;
  padding: 24px;
  color: white;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(15, 36, 38, 0.96), rgba(0, 111, 121, 0.9)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 18px);
}

.post-art span {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  margin-bottom: 10px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  color: #1b231f;
  background: var(--gold);
  font-weight: 950;
}

.post-art strong {
  font-size: 22px;
}

.post-body {
  padding: 18px;
}

.post-body h3 {
  margin: 5px 0 10px;
  font-size: 25px;
  color: var(--deep);
}

.rich blockquote {
  margin: 12px 0;
  padding: 12px 14px;
  border-left: 4px solid var(--gold);
  border-radius: 0 8px 8px 0;
  background: #fff4d8;
  color: #394942;
}

.approved-by {
  margin: 10px 0 0;
  padding-top: 8px;
  border-top: 1px dashed #e4dac9;
  color: rgba(24, 32, 31, 0.26);
  font-size: 10px;
  font-weight: 400;
}

body.entertainment-page .post-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

body.entertainment-page .post-card {
  min-height: 210px;
  border-top: 4px solid var(--teal);
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(24, 32, 31, 0.08);
}

body.entertainment-page .post-card:nth-child(3n + 1) {
  border-top-color: #6259f1;
}

body.entertainment-page .post-card:nth-child(3n + 2) {
  border-top-color: #16a39a;
}

body.entertainment-page .post-card:nth-child(3n + 3) {
  border-top-color: #e15b7d;
}

body.entertainment-page .post-body {
  position: relative;
  padding: 18px 16px 14px 52px;
}

body.entertainment-page .post-body::before {
  content: "\"";
  position: absolute;
  top: 16px;
  left: 16px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  color: #6259f1;
  background: #eef0ff;
  font-size: 24px;
  font-weight: 950;
}

body.entertainment-page .post-card:nth-child(3n + 2) .post-body::before {
  color: #0f8c85;
  background: #e9fbf8;
}

body.entertainment-page .post-card:nth-child(3n + 3) .post-body::before {
  color: #c83e62;
  background: #fff0f4;
}

body.entertainment-page .meta {
  margin: 0 0 8px;
  color: #c83e62;
  font-size: 12px;
  text-transform: none;
}

body.entertainment-page .post-body h3 {
  margin: 0 0 10px;
  font-size: 17px;
}

body.entertainment-page .rich {
  color: #374151;
  font-size: 14px;
}

body.entertainment-page .post-content-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(118px, 160px);
  gap: 14px;
  align-items: end;
}

body.entertainment-page .rich p {
  margin: 0 0 10px;
}

body.entertainment-page .rich p:last-child {
  padding-right: 0;
}

body.entertainment-page .post-submitted {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  flex-direction: column;
  gap: 2px;
  width: max-content;
  max-width: 100%;
  justify-self: end;
  margin: 0 0 10px;
  color: rgba(24, 32, 31, 0.58);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.2;
  text-align: right;
  text-transform: none;
}

body.entertainment-page .post-submitted span,
body.entertainment-page .post-submitted time {
  font-weight: 400;
}

body.entertainment-page .post-submitted time {
  display: block;
  white-space: nowrap;
  color: rgba(24, 32, 31, 0.24);
  font-size: 8.5px;
}

body.entertainment-page .post-action-footer {
  clear: both;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
  padding-top: 7px;
  border-top: 1px solid rgba(24, 32, 31, 0.08);
}

body.entertainment-page .approved-by {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  color: rgba(24, 32, 31, 0.18);
  font-size: 8.5px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0;
}

body.entertainment-page .approved-by span,
body.entertainment-page .approved-by time {
  display: block;
  font-weight: 400;
}

body.entertainment-page .approved-by time {
  margin-top: 2px;
  color: rgba(24, 32, 31, 0.16);
  white-space: nowrap;
}

.reaction-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin: 8px 0 0;
}

body.entertainment-page .post-action-footer .reaction-row {
  flex: 0 0 auto;
  justify-content: flex-end;
  flex-wrap: nowrap;
  margin: 0;
}

body.entertainment-page .reaction-row button,
body.entertainment-page .comment-stat,
body.entertainment-page .view-stat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 25px;
  width: auto;
  padding: 3px 7px;
  border: 1px solid #edf1f6;
  border-radius: 999px;
  color: rgba(31, 41, 55, 0.64);
  background: #fbfcff;
  box-shadow: none;
  font-size: 10px;
  font-weight: 500;
  line-height: 1;
}

body.entertainment-page .reaction-row button {
  cursor: pointer;
}

body.entertainment-page .reaction-row button:hover,
body.entertainment-page .comment-stat:hover {
  border-color: rgba(33, 166, 154, 0.28);
  color: #18201f;
  background: #f4fbfa;
  transform: translateY(-1px);
}

body.entertainment-page .reaction-row button span,
body.entertainment-page .comment-stat span,
body.entertainment-page .view-stat span {
  margin-left: 0;
  font-weight: 500;
}

body.entertainment-page .reaction-icon {
  font-size: 12px;
}

body.entertainment-page .heart-icon {
  color: rgba(207, 47, 91, 0.82);
}

body.entertainment-page .view-stat {
  cursor: default;
  color: rgba(31, 41, 55, 0.48);
}

body.entertainment-page .post-moderation-tools {
  display: flex;
  flex: 0 0 100%;
  justify-content: flex-end;
  gap: 5px;
  margin: 0;
}

body.entertainment-page .post-moderation-tools button {
  min-height: 20px;
  width: auto;
  padding: 2px 7px;
  border: 1px solid rgba(24, 32, 31, 0.08);
  border-radius: 999px;
  color: rgba(24, 32, 31, 0.34);
  background: rgba(255, 255, 255, 0.64);
  box-shadow: none;
  font-size: 9px;
  font-weight: 700;
  text-transform: lowercase;
}

body.entertainment-page .post-moderation-tools button:hover {
  color: #991b1b;
  background: #fff1f2;
  transform: none;
}

body.entertainment-page .comments-card {
  cursor: pointer;
}

body.entertainment-page .comments-panel {
  clear: both;
  display: none;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(24, 32, 31, 0.08);
  cursor: default;
}

body.entertainment-page .comments-open .comments-panel {
  display: block;
}

body.entertainment-page .comments-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

body.entertainment-page .comments-head strong {
  color: #18201f;
  font-size: 12px;
}

body.entertainment-page .comments-head span,
body.entertainment-page .comments-empty {
  color: rgba(31, 41, 55, 0.48);
  font-size: 10px;
}

body.entertainment-page .comment-list {
  display: grid;
  gap: 7px;
  margin-bottom: 10px;
}

body.entertainment-page .comment-item {
  padding: 8px 9px;
  border: 1px solid #eef1f5;
  border-radius: 8px;
  background: #fbfcff;
}

body.entertainment-page .comment-item p {
  margin: 0 0 5px;
  color: #374151;
  font-size: 12px;
  line-height: 1.45;
}

body.entertainment-page .comment-item small {
  color: rgba(31, 41, 55, 0.38);
  font-size: 9px;
}

body.entertainment-page .comment-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
  margin-top: 8px;
}

body.entertainment-page .comment-form label:nth-of-type(2) {
  grid-column: 1 / -1;
  grid-row: 2;
}

body.entertainment-page .comment-form label {
  color: #303947;
  font-size: 10px;
  font-weight: 800;
}

body.entertainment-page .comment-form input,
body.entertainment-page .comment-form textarea {
  width: 100%;
  margin-top: 4px;
  padding: 8px 9px;
  border: 1px solid #e2e7ef;
  border-radius: 8px;
  color: #18201f;
  background: #ffffff;
  font: inherit;
  font-size: 12px;
}

body.entertainment-page .comment-form textarea {
  min-height: 38px;
  resize: vertical;
}

body.entertainment-page .comment-form .primary {
  min-height: 36px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 11px;
  white-space: nowrap;
}

.pin {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  padding: 7px 10px;
  border-radius: 8px;
  color: #14211d;
  background: var(--gold);
  font-weight: 950;
  box-shadow: var(--soft-shadow);
}

.empty,
.notice {
  text-align: center;
}

.empty {
  padding: 32px;
  border: 1px dashed #cbbfa9;
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 250, 240, 0.72);
}

.program,
.help {
  padding: 48px;
}

.program-list span {
  padding: 12px 14px;
  border-radius: 8px;
  font-weight: 900;
}

.funds-shell {
  display: grid;
  gap: 18px;
}

.funds-iframe-only {
  gap: 0;
}

.funds-hero,
.funds-ledger {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.funds-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 20px;
  align-items: stretch;
  padding: 38px;
}

.funds-kicker {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  margin-bottom: 12px;
  padding: 7px 10px;
  border-radius: 8px;
  color: #ffffff;
  background: var(--green);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.funds-hero h1 {
  margin: 0 0 12px;
  color: var(--deep);
  font-size: 52px;
  line-height: 1.04;
}

.funds-hero p {
  max-width: 850px;
  margin: 0;
  color: #334155;
  font-size: 17px;
}

.funds-status {
  display: grid;
  align-content: center;
  gap: 7px;
  min-height: 160px;
  padding: 18px;
  border-radius: 8px;
  color: #ffffff;
  background: var(--deep);
}

.funds-status span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.funds-status strong {
  font-size: 30px;
  line-height: 1.1;
}

.funds-status small {
  color: rgba(255, 255, 255, 0.75);
}

.funds-status.is-live {
  background: var(--green);
}

.funds-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.funds-stats article {
  display: grid;
  gap: 6px;
  min-height: 112px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.funds-stats span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.funds-stats strong {
  align-self: end;
  color: var(--deep);
  font-size: 24px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.funds-ledger {
  padding: 24px;
}

.procashbook-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.procashbook-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
  background: #f7fbf8;
}

.procashbook-head h2 {
  margin: 0 0 4px;
  color: var(--deep);
  font-size: 28px;
  line-height: 1.1;
}

.procashbook-head p {
  margin: 0;
  color: var(--muted);
}

.procashbook-head a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 8px;
  color: #ffffff;
  background: var(--green);
  font-size: 13px;
  font-weight: 950;
}

.procashbook-frame-wrap {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.procashbook-frame-wrap iframe {
  display: block;
  width: 100%;
  min-height: 82vh;
  border: 0;
  background: #ffffff;
}

.funds-ledger-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.funds-ledger-head h2 {
  margin: 0 0 4px;
  color: var(--deep);
  font-size: 28px;
  line-height: 1.1;
}

.funds-ledger-head p {
  margin: 0;
  color: var(--muted);
}

.funds-ledger-head > span {
  flex: 0 0 auto;
  padding: 8px 10px;
  border-radius: 8px;
  color: #ffffff;
  background: var(--green);
  font-size: 12px;
  font-weight: 950;
}

.funds-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.funds-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
  background: #ffffff;
}

.funds-table th,
.funds-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.funds-table th {
  color: #ffffff;
  background: var(--deep);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.funds-table td {
  color: #243432;
  font-size: 14px;
}

.funds-money {
  white-space: nowrap;
  font-weight: 900;
}

.funds-money.in {
  color: var(--green);
}

.funds-money.out {
  color: var(--rose);
}

.funds-money.balance {
  color: var(--deep);
}

.funds-entry-status {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 8px;
  color: var(--deep);
  background: #edf7f1;
  font-size: 12px;
  font-weight: 900;
}

.funds-empty {
  display: grid;
  gap: 7px;
  padding: 28px;
  border: 1px dashed rgba(11, 90, 52, 0.28);
  border-radius: 8px;
  color: var(--muted);
  background: #f7fbf8;
  text-align: center;
}

.funds-empty strong {
  color: var(--deep);
  font-size: 18px;
}

.funds-empty p,
.funds-note {
  margin: 0;
}

.funds-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
}

.admin-dashboard {
  display: grid;
  gap: 18px;
}

.admin-page main {
  width: min(1380px, calc(100% - 28px));
}

.admin-wp {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.admin-sidebar {
  position: sticky;
  top: 88px;
  overflow: hidden;
  border: 1px solid rgba(15, 36, 38, 0.14);
  border-radius: 8px;
  color: #ffffff;
  background: var(--deep);
  box-shadow: var(--shadow);
}

.admin-sidebar-brand {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-sidebar-brand > span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
  background: var(--green);
  font-weight: 950;
}

.admin-sidebar-brand strong,
.admin-sidebar-brand small {
  display: block;
}

.admin-sidebar-brand small {
  color: rgba(255, 255, 255, 0.56);
  font-size: 12px;
}

.admin-side-menu {
  position: static !important;
  display: grid !important;
  gap: 6px;
  padding: 12px;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.admin-side-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  color: #ffffff;
  background: var(--green);
  font-weight: 950;
}

.admin-side-menu a.active,
.admin-side-menu a:hover {
  color: #ffffff;
  background: #042817;
  border-color: rgba(255, 255, 255, 0.36);
}

.admin-side-menu em {
  min-width: 26px;
  padding: 2px 7px;
  border-radius: 999px;
  color: #10201c;
  background: rgba(255, 255, 255, 0.84);
  font-size: 11px;
  font-style: normal;
  font-weight: 950;
  text-align: center;
}

.admin-sidebar-note {
  padding: 0 16px 16px;
  color: rgba(255, 255, 255, 0.54);
  font-size: 12px;
}

.admin-main {
  display: grid;
  min-width: 0;
  gap: 16px;
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 22px;
  border: 1px solid rgba(201, 146, 47, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 250, 240, 0.98), rgba(245, 251, 243, 0.98));
  box-shadow: var(--soft-shadow);
}

.admin-topbar span {
  color: var(--green);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.admin-topbar h1 {
  margin: 4px 0 0;
  color: var(--deep);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1;
}

.admin-view-site {
  padding: 10px 14px;
  border-radius: 8px;
  color: #10201c;
  background: var(--gold);
  font-weight: 950;
}

.admin-module-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-module-grid a {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: var(--soft-shadow);
}

.admin-module-grid strong,
.admin-module-grid span {
  display: block;
}

.admin-module-grid strong {
  color: var(--deep);
  font-size: 22px;
}

.admin-module-grid span {
  margin-top: 6px;
  color: var(--muted);
}

.admin-hero {
  padding: 30px;
  border: 1px solid rgba(201, 146, 47, 0.2);
  border-radius: 8px;
  color: #ffffff;
  background: var(--deep);
  box-shadow: var(--shadow);
}

.admin-hero span,
.admin-panel-head span {
  display: inline-flex;
  width: max-content;
  padding: 6px 10px;
  border-radius: 999px;
  color: #10201c;
  background: var(--gold);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.admin-hero h1 {
  margin: 12px 0 8px;
  color: #ffffff;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.04;
}

.admin-hero p {
  max-width: 820px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.admin-stats div,
.admin-stats a,
.admin-panel,
.admin-user-card,
.admin-empty {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.95);
  box-shadow: var(--soft-shadow);
}

.admin-stats div,
.admin-stats a {
  padding: 18px;
}

.admin-stats strong {
  display: block;
  color: var(--green);
  font-size: 34px;
  line-height: 1;
}

.admin-stats span {
  display: block;
  margin-top: 6px;
  color: var(--deep);
  font-size: 13px;
  font-weight: 900;
}

.admin-stats a:hover,
.admin-module-grid a:hover,
.admin-editor-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(24, 32, 31, 0.12);
}

.admin-panel {
  padding: 20px;
}

.admin-panel-head {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.admin-panel-head h2 {
  margin: 0;
  color: var(--deep);
  font-size: 27px;
  line-height: 1.15;
}

.admin-panel-head p {
  max-width: 820px;
  margin: 0;
  color: var(--muted);
}

.admin-create-form,
.admin-user-fields {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
}

.admin-create-form {
  margin-bottom: 14px;
  padding: 14px;
  border: 1px dashed #d9caa9;
  border-radius: 8px;
  background: #fff8e8;
}

.admin-users-list,
.admin-list {
  display: grid;
  gap: 10px;
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.account-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.account-card h3 {
  margin: 0;
  color: var(--deep);
  font-size: 18px;
}

.account-card input:disabled {
  color: #697386;
  background: #f4f6f8;
  cursor: not-allowed;
}

.admin-editor-list {
  display: grid;
  gap: 12px;
}

.admin-editor-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(15, 36, 38, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(180deg, #ffffff, #fffdf8);
  box-shadow: 0 12px 28px rgba(24, 32, 31, 0.08);
}

.admin-review-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(15, 36, 38, 0.12);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(24, 32, 31, 0.07);
}

.admin-post-editor-card {
  border-top: 4px solid var(--green);
}

.admin-comment-editor-card {
  border-top: 4px solid var(--gold);
}

.admin-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(24, 32, 31, 0.08);
}

.admin-card-head strong,
.admin-card-head small {
  display: block;
}

.admin-card-head strong {
  margin-top: 6px;
  color: var(--deep);
  font-size: 21px;
  line-height: 1.2;
}

.admin-card-head small {
  color: var(--muted);
}

.admin-card-head > a {
  min-width: max-content;
  padding: 8px 11px;
  border: 1px solid #d9caa9;
  border-radius: 8px;
  color: var(--deep);
  background: #fff8e8;
  font-size: 12px;
  font-weight: 950;
}

.admin-review-head {
  padding-bottom: 10px;
}

.admin-review-type {
  min-width: max-content;
  padding: 7px 10px;
  border: 1px solid rgba(33, 166, 154, 0.18);
  border-radius: 999px;
  color: #14635e;
  background: #f0fbf9;
  font-size: 11px;
  font-weight: 950;
}

.admin-review-excerpt {
  margin: 0;
  color: #334155;
  font-size: 14px;
  line-height: 1.6;
}

.admin-review-details {
  border: 1px solid #e8ddca;
  border-radius: 8px;
  background: #fffaf0;
  overflow: hidden;
}

.admin-review-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px;
  cursor: pointer;
  color: var(--deep);
  font-weight: 950;
  list-style: none;
}

.admin-review-details summary::-webkit-details-marker {
  display: none;
}

.admin-review-details summary span::before {
  content: "+";
  display: inline-grid;
  width: 22px;
  height: 22px;
  margin-right: 8px;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: var(--green);
  font-size: 14px;
  line-height: 1;
}

.admin-review-details[open] summary span::before {
  content: "-";
  background: var(--gold);
}

.admin-review-details summary em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.admin-inner-editor {
  display: grid;
  gap: 12px;
  padding: 12px;
  border-top: 1px solid #e8ddca;
  background: #ffffff;
}

.admin-edit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
}

.admin-edit-grid .wide {
  grid-column: 1 / -1;
}

.admin-edit-grid textarea {
  min-height: 130px;
}

.admin-rich-field {
  display: grid;
  gap: 8px;
}

.admin-rich-field > span {
  color: #31413e;
  font-size: 13px;
  font-weight: 900;
}

.admin-rich-toolbar {
  position: sticky;
  top: 76px;
  z-index: 2;
  gap: 6px;
  margin: 0;
  padding: 8px;
  border: 1px solid #e8ddca;
  border-radius: 8px;
  background: #fffaf0;
}

.admin-rich-toolbar button {
  min-height: 33px;
  padding: 6px 10px;
  border: 1px solid #ded2bd;
  border-radius: 8px;
  color: var(--deep);
  background: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.admin-rich-toolbar button:hover {
  color: #10201c;
  background: var(--gold);
}

.admin-rich-editor {
  min-height: 220px;
  max-height: 460px;
  overflow: auto;
  padding: 18px;
  border: 1px solid #ded7ca;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(24, 32, 31, 0.04);
  line-height: 1.68;
}

.admin-rich-editor:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 146, 47, 0.16);
}

.admin-rich-editor blockquote {
  margin: 12px 0;
  padding: 10px 14px;
  border-left: 4px solid var(--gold);
  background: #fff8e8;
}

.admin-comment-preview {
  padding: 13px 15px;
  border: 1px solid #eee5d4;
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  color: #374151;
  background: #fffaf0;
  font-size: 14px;
  line-height: 1.55;
}

.admin-preview {
  border: 1px solid #eee5d4;
  border-radius: 8px;
  background: #fffaf0;
}

.admin-preview summary {
  padding: 10px 12px;
  cursor: pointer;
  color: var(--deep);
  font-weight: 950;
}

.admin-preview div {
  padding: 0 12px 12px;
  color: #374151;
}

.admin-editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.admin-user-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
}

.owner-user-card {
  border-color: rgba(201, 146, 47, 0.35);
  background: linear-gradient(135deg, #fffaf0, #f5fbf3);
}

.admin-user-card strong,
.admin-row strong {
  display: block;
  margin-top: 5px;
  color: var(--deep);
}

.admin-user-card small,
.admin-row small {
  display: block;
  color: var(--muted);
}

.admin-user-card em {
  color: rgba(15, 36, 38, 0.48);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.admin-user-edit {
  display: grid;
  gap: 10px;
}

.admin-user-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-delete-form {
  justify-self: end;
}

.admin-row {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: 0 8px 20px rgba(24, 32, 31, 0.06);
}

.admin-action-form {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: flex-end;
}

.admin-empty {
  padding: 16px;
  color: var(--muted);
  font-weight: 800;
}

.status-badge,
.role-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  min-height: 24px;
  padding: 3px 9px;
  border-radius: 999px;
  color: #0f3d24;
  background: #e8f7eb;
  font-size: 11px;
  font-weight: 950;
  text-transform: capitalize;
}

.owner-chip {
  color: #10201c;
  background: var(--gold);
}

.status-pending {
  color: #92400e;
  background: #fff3cd;
}

.status-approved {
  color: #14532d;
  background: #dcfce7;
}

.status-rejected {
  color: #991b1b;
  background: #fee2e2;
}

.danger {
  color: #ffffff;
  background: #b4233b;
}

.comment-admin-row p,
.admin-row p {
  margin: 8px 0 0;
  color: #374151;
  font-size: 13px;
  line-height: 1.45;
}

.app-docs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.app-docs a {
  padding: 5px 8px;
  border: 1px solid #dfe7ee;
  border-radius: 999px;
  color: #14635e;
  background: #f4fbfa;
  font-size: 11px;
  font-weight: 900;
}

.inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.inline input {
  width: auto;
}

.hint {
  color: var(--muted);
}

footer {
  flex-shrink: 0;
  width: 100%;
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 46px;
  color: #ffffff;
  background: var(--deep);
  border-top: 3px solid var(--green);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: max-content;
}

.footer-brand strong {
  color: #ffffff;
  font-size: 15px;
}

.footer-brand span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
}

.footer-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
}

.footer-meta small {
  color: rgba(255, 255, 255, 0.66);
  font-size: 11px;
}

@media (max-width: 980px) {
  .site-header {
    padding: 12px 18px;
  }

  .menu-btn {
    display: inline-flex;
  }

  nav {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: var(--deep);
    box-shadow: var(--shadow);
  }

  nav.open {
    display: flex;
  }

  nav a,
  nav button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 42px;
    padding: 10px 12px;
    border-color: rgba(255, 255, 255, 0.12);
    background: var(--green);
  }

  nav a.active {
    color: #ffffff;
    background: #042817;
  }

  nav form,
  nav button {
    width: 100%;
  }

  .hero,
  .auth-grid,
  .post-grid {
    grid-template-columns: 1fr;
  }

  .tabs-preview {
    grid-template-columns: repeat(auto-fit, minmax(138px, 1fr));
  }

  .hero {
    min-height: auto;
    padding: 30px;
  }

  .hero::before {
    background: #ffffff;
  }

  .hero-copy h1,
  .section-head h1,
  .program h1,
  .help h1,
  .admin h1 {
    font-size: 38px;
  }

  .program,
  .help,
  .section-head {
    padding: 24px;
  }

  .entertainment-head,
  .approved-posts-head,
  .form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .submit-post-cta {
    width: 100%;
  }

  .entertainment-form-grid {
    grid-template-columns: 1fr;
  }

  .admin-row {
    grid-template-columns: 1fr;
  }

  .admin-wp {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
  }

  .admin-side-menu {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .admin-side-menu a {
    min-height: 38px;
    padding: 8px 10px;
  }

  .admin-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-module-grid,
  .admin-edit-grid {
    grid-template-columns: 1fr;
  }

  .admin-create-form,
  .admin-user-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-user-card {
    grid-template-columns: 1fr;
  }

  .admin-delete-form {
    justify-self: stretch;
  }

  .admin-delete-form button {
    width: 100%;
  }

  .admin-card-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-review-card {
    padding: 14px;
  }

  .admin-review-head {
    gap: 9px;
  }

  .admin-review-type,
  .admin-card-head > a {
    align-self: flex-start;
  }

  .admin-review-details summary {
    align-items: flex-start;
    flex-direction: column;
    min-height: 0;
  }

  .admin-review-details summary em {
    padding-left: 30px;
  }

  .admin-inner-editor {
    padding: 10px;
  }

  .admin-rich-toolbar {
    position: static;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .admin-rich-toolbar::-webkit-scrollbar {
    display: none;
  }

  .admin-rich-toolbar button {
    flex: 0 0 auto;
  }

  .admin-rich-editor {
    min-height: 180px;
    max-height: 360px;
    padding: 14px;
  }

  footer {
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 14px;
    text-align: center;
  }

  .footer-brand {
    justify-content: center;
    min-width: 0;
  }

  .footer-meta {
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px 10px;
  }
}

@media (max-width: 520px) {
  main {
    width: min(100% - 20px, 1180px);
    padding-top: 16px;
  }

  .site-header {
    padding: 10px 12px;
  }

  .menu-btn {
    min-height: 40px;
    padding: 8px 11px;
  }

  .auth-intro {
    padding: 22px;
  }

  .auth-intro h1 {
    font-size: 31px;
  }

  .auth-intro p {
    font-size: 15px;
  }

  .login-panel,
  .login-rules,
  .register-panel {
    padding: 18px;
  }

  .admin-hero,
  .admin-panel {
    padding: 16px;
  }

  .admin-sidebar-brand {
    padding: 12px;
  }

  .admin-side-menu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    padding: 10px;
  }

  .admin-side-menu a {
    font-size: 12px;
  }

  .admin-topbar {
    padding: 16px;
  }

  .admin-hero h1 {
    font-size: 31px;
  }

  .admin-hero p,
  .admin-panel-head p {
    font-size: 14px;
  }

  .admin-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .admin-stats div,
  .admin-row,
  .admin-user-card {
    padding: 12px;
  }

  .admin-stats strong {
    font-size: 28px;
  }

  .admin-create-form,
  .admin-user-fields {
    grid-template-columns: 1fr;
  }

  .admin-card-head strong {
    font-size: 17px;
  }

  .admin-review-card {
    gap: 10px;
    padding: 12px;
  }

  .admin-review-excerpt {
    font-size: 13px;
    line-height: 1.55;
  }

  .admin-review-details summary {
    padding: 9px 10px;
    font-size: 13px;
  }

  .admin-inner-editor {
    gap: 10px;
    padding: 10px;
  }

  .admin-rich-toolbar {
    gap: 5px;
    padding: 7px;
  }

  .admin-rich-toolbar button {
    min-height: 32px;
    padding: 6px 9px;
    font-size: 11px;
  }

  .admin-rich-editor {
    min-height: 155px;
    padding: 12px;
    font-size: 14px;
  }

  .admin-comment-preview {
    padding: 11px 12px;
    font-size: 13px;
  }

  .admin-editor-actions .primary,
  .admin-editor-actions .secondary,
  .admin-editor-actions .danger,
  .admin-view-site {
    width: 100%;
    text-align: center;
  }

  footer {
    padding: 8px 10px;
  }

  .footer-brand strong {
    font-size: 13px;
  }

  .footer-brand span,
  .footer-meta {
    font-size: 10.5px;
  }

  body.entertainment-page {
    background: #ffffff;
  }

  body.entertainment-page main {
    width: 100%;
    padding: 10px 8px 34px;
  }

  body.entertainment-page .site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 90;
    padding: 9px 10px;
  }

  body.entertainment-page .brand span {
    width: 34px;
    height: 34px;
  }

  body.entertainment-page .flash {
    margin: 0 0 10px;
    border-radius: 8px;
    font-size: 13px;
  }

  .mobile-gallery-head {
    display: grid;
    grid-template-columns: 38px 1fr auto;
    align-items: center;
    gap: 10px;
    margin: 2px 0 10px;
  }

  .mobile-gallery-icon {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 8px;
    color: white;
    background: var(--green);
    font-size: 11px;
    font-weight: 950;
    box-shadow: 0 8px 18px rgba(49, 134, 199, 0.22);
  }

  .mobile-gallery-head strong {
    color: #15202b;
    font-size: 17px;
    font-weight: 950;
  }

  .mobile-gallery-head em {
    min-width: 58px;
    padding: 7px 10px;
    border-radius: 999px;
    color: #364152;
    background: #ffffff;
    box-shadow: 0 6px 16px rgba(24, 32, 31, 0.08);
    font-size: 12px;
    font-style: normal;
    font-weight: 900;
    text-align: center;
  }

  body.entertainment-page .entertainment-head {
    display: grid;
    gap: 10px;
    margin: 0 0 10px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  body.entertainment-page .entertainment-head.form-visible {
    display: none;
  }

  body.entertainment-page .entertainment-head h1,
  body.entertainment-page .entertainment-head h1 {
    display: none;
  }

  body.entertainment-page .entertainment-head p {
    display: -webkit-box;
    max-width: 100%;
    margin: 0;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    color: #4f5d70;
    font-size: 13px;
    line-height: 1.45;
  }

  body.entertainment-page .submit-post-cta {
    min-height: 42px;
    width: min(100%, 315px);
    margin: 0 auto;
    padding: 10px 16px;
    border-radius: 8px;
    color: #ffffff;
    background: var(--green);
    box-shadow: 0 10px 22px rgba(22, 143, 99, 0.24);
    text-align: center;
    white-space: normal;
    line-height: 1.25;
  }

  body.entertainment-page .entertainment-submit-card {
    margin: 0 0 18px;
    border-color: #e5e9f0;
    border-radius: 14px;
    scroll-margin-top: 86px;
    box-shadow: 0 18px 36px rgba(24, 32, 31, 0.1);
  }

  body.entertainment-page .entertainment-form-top {
    padding: 13px 14px;
    border-radius: 14px 14px 0 0;
  }

  body.entertainment-page .entertainment-form-top h2 {
    font-size: 16px;
  }

  body.entertainment-page .entertainment-form-top p {
    display: none;
  }

  body.entertainment-page .entertainment-form-grid {
    gap: 7px;
    padding: 10px 12px 0;
  }

  body.entertainment-page .entertainment-submit-card > label,
  body.entertainment-page .entertainment-submit-card .editor-shell,
  body.entertainment-page .entertainment-submit-card .form-actions {
    margin-left: 12px;
    margin-right: 12px;
  }

  body.entertainment-page .entertainment-submit-card label {
    gap: 5px;
    margin-top: 9px;
    margin-bottom: 7px;
    color: #2f3744;
    font-size: 12px;
  }

  body.entertainment-page input,
  body.entertainment-page textarea,
  body.entertainment-page select {
    min-height: 40px;
    padding: 10px 11px;
    border-color: #e1e6ee;
    border-radius: 10px;
    font-size: 14px;
  }

  body.entertainment-page .editor-shell {
    border-color: #e1e6ee;
    border-radius: 10px;
  }

  body.entertainment-page .entertainment-toolbar {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    padding: 8px;
    scrollbar-width: none;
  }

  body.entertainment-page .entertainment-toolbar::-webkit-scrollbar {
    display: none;
  }

  body.entertainment-page .entertainment-toolbar button {
    flex: 0 0 auto;
    min-width: 38px;
    width: auto;
    min-height: 32px;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 12px;
  }

  body.entertainment-page .entertainment-editor {
    min-height: 138px;
    padding: 14px 12px;
    font-size: 14px;
  }

  body.entertainment-page .form-actions {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 8px;
    padding: 8px 0 12px;
  }

  body.entertainment-page .form-actions span {
    grid-column: 1 / -1;
    color: #697386;
    font-size: 11px;
  }

  body.entertainment-page .clear-form {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border-radius: 10px;
    color: #4b5565;
    background: #eef1f6;
    font-weight: 900;
  }

  body.entertainment-page .form-actions .primary {
    min-height: 42px;
    border-radius: 10px;
    color: #ffffff;
    background: var(--green);
    box-shadow: none;
  }

  body.entertainment-page .approved-posts-head {
    display: block;
    margin: 18px 0 8px;
  }

  body.entertainment-page .approved-posts-head h2 {
    font-size: 18px;
  }

  body.entertainment-page .approved-posts-head p {
    margin-top: 2px;
    font-size: 12px;
  }

  body.entertainment-page .post-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  body.entertainment-page .post-card {
    min-height: 0;
    border-radius: 12px;
    border-top-width: 3px;
    box-shadow: 0 10px 24px rgba(24, 32, 31, 0.08);
  }

  body.entertainment-page .post-body {
    padding: 15px 14px 12px 50px;
  }

  body.entertainment-page .post-body::before {
    top: 14px;
    left: 14px;
    width: 27px;
    height: 27px;
  }

  body.entertainment-page .post-body h3 {
    font-size: 16px;
  }

  body.entertainment-page .rich {
    font-size: 14px;
  }

  body.entertainment-page .rich p:last-child {
    padding-right: 0;
  }

  body.entertainment-page .post-submitted {
    max-width: 100%;
    margin-top: 0;
  }

  body.entertainment-page .post-action-footer {
    gap: 6px;
    padding-top: 6px;
  }

  body.entertainment-page .approved-by {
    font-size: 7.5px;
  }

  body.entertainment-page .reaction-row button,
  body.entertainment-page .view-stat {
    min-height: 24px;
    padding: 3px 6px;
  }

  body.entertainment-page .comment-stat {
    min-height: 24px;
    padding: 3px 6px;
  }

  body.entertainment-page .comment-form {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  body.entertainment-page .comment-form .primary {
    width: 100%;
  }

  .brand strong {
    font-size: 16px;
  }

  .hero {
    padding: 22px;
  }

  .hero-copy h1,
  .section-head h1,
  .program h1,
  .help h1,
  .admin h1 {
    font-size: 32px;
  }

  .hero-copy p,
  .section-head p,
  .program p,
  .help p {
    font-size: 16px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  body:not(.entertainment-page) .entertainment-form-top {
    padding: 18px;
  }

  body:not(.entertainment-page) .entertainment-submit-card > label,
  body:not(.entertainment-page) .entertainment-submit-card .editor-shell,
  body:not(.entertainment-page) .entertainment-submit-card .form-actions {
    margin-left: 18px;
    margin-right: 18px;
  }

  body:not(.entertainment-page) .entertainment-form-grid {
    padding-left: 18px;
    padding-right: 18px;
  }

  .primary,
  .secondary,
  form button {
    width: 100%;
  }

  body.entertainment-page .entertainment-toolbar button {
    width: auto;
  }

  body.entertainment-page .form-actions .clear-form,
  body.entertainment-page .form-actions .primary {
    width: auto;
  }

  body.entertainment-page .reaction-row button,
  body.entertainment-page .comment-stat {
    width: auto;
  }

  .scholarship-wizard {
    padding: 14px;
  }

  .scholarship-hero {
    min-height: 0;
    padding: 34px 18px;
    background: #ffffff;
  }

  .scholarship-hero h1 {
    font-size: 32px;
  }

  .scholarship-hero p {
    font-size: 15px;
    line-height: 1.68;
  }

  .scholarship-hero-cta {
    width: 100%;
    margin-top: 22px;
  }

  .scholarship-about,
  .scholarship-program {
    margin: 18px 0;
    padding: 20px 16px;
  }

  .scholarship-section-title {
    margin-bottom: 18px;
    text-align: left;
  }

  .scholarship-section-title h2 {
    font-size: 25px;
  }

  .scholarship-section-title p,
  .scholarship-about-box p {
    font-size: 15px;
  }

  .scholarship-about-box {
    padding: 18px;
  }

  .scholarship-info-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 16px 0;
  }

  .scholarship-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 16px 0 0;
  }

  .scholarship-stats div,
  .scholarship-info-grid article,
  .scholarship-faq {
    padding: 18px;
  }

  .scholarship-apply-tab {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 16px;
    text-align: center;
  }

  .scholarship-apply-tab span {
    justify-self: center;
  }

  .scholarship-apply-tab strong {
    font-size: 19px;
  }

  .scholarship-form-head h2 {
    font-size: 24px;
  }

  .wizard-top {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .wizard-top strong {
    font-size: 20px;
  }

  .wizard-step.active::before {
    font-size: 20px;
  }

  .wizard-steps-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .wizard-steps-nav button {
    width: 100%;
    min-height: 36px;
    padding: 8px 7px;
    font-size: 11px;
  }

  .wizard-grid,
  .document-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .wizard-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .wizard-actions button {
    width: 100%;
  }

  .wizard-actions [data-scholarship-submit] {
    grid-column: 1 / -1;
  }

  .scholarship-faq h2 {
    font-size: 22px;
  }
}

@media (max-width: 640px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    background: #ffffff;
  }

  * {
    max-width: 100%;
  }

  .site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 9px 10px;
    z-index: 90;
  }

  body {
    padding-top: 56px;
  }

  .brand {
    flex: 1 1 auto;
    min-width: 0;
    gap: 8px;
  }

  .brand span {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    font-size: 12px;
  }

  .brand strong {
    display: block;
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: 15px;
    line-height: 1.1;
  }

  .menu-btn {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 7px 9px;
    border-radius: 8px;
    font-size: 13px;
  }

  nav {
    left: 10px;
    right: 10px;
    top: calc(100% + 8px);
    max-height: calc(100vh - 78px);
    overflow-y: auto;
    padding: 10px;
  }

  nav a,
  nav button {
    min-height: 40px;
    width: 100%;
    padding: 9px 10px;
    font-size: 13px;
  }

  main,
  .admin-page main,
  .scholarships-page main,
  body.entertainment-page main {
    width: 100%;
    max-width: 100%;
    padding: 12px 10px 34px;
  }

  .hero,
  .auth-grid,
  .tabs-preview,
  .post-grid,
  .scholarship-info-grid,
  .wizard-grid,
  .document-grid,
  .admin-wp,
  .admin-module-grid,
  .account-grid,
  .admin-edit-grid,
  .admin-create-form,
  .admin-user-fields,
  .comment-form {
    grid-template-columns: 1fr !important;
  }

  .hero,
  .section-head,
  .program,
  .help,
  .panel,
  .post-card,
  .scholarship-hero,
  .scholarship-about,
  .scholarship-program,
  .scholarship-wizard,
  .scholarship-faq,
  .admin-panel,
  .admin-review-card,
  .admin-topbar,
  .admin-sidebar,
  .admin-stats a,
  .admin-stats div {
    border-radius: 8px;
  }

  .hero {
    display: block;
    min-height: 0;
    padding: 18px;
  }

  .hero-copy h1,
  .section-head h1,
  .program h1,
  .help h1,
  .admin h1,
  .scholarship-hero h1 {
    font-size: 28px;
    line-height: 1.12;
  }

  .hero-copy p,
  .section-head p,
  .program p,
  .help p,
  .scholarship-hero p {
    font-size: 14px;
    line-height: 1.58;
  }

  .quran-card {
    padding: 13px 14px;
  }

  .quran-card .arabic {
    font-size: 21px;
  }

  .quran-card p {
    font-size: 13.5px;
  }

  .hero-panel {
    margin-top: 14px;
    padding: 14px;
  }

  .hero-panel strong {
    font-size: 20px;
  }

  .hero-actions,
  .form-actions,
  .admin-editor-actions,
  .wizard-actions {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 8px;
  }

  .primary,
  .secondary,
  form button,
  .hero-actions a,
  .submit-post-cta,
  .scholarship-hero-cta,
  .scholarship-apply-tab {
    width: 100%;
  }

  input,
  textarea,
  select {
    width: 100%;
    min-width: 0;
  }

  .tabs-preview {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px;
  }

  .tabs-preview a {
    min-height: 54px;
    padding: 10px 11px;
  }

  .tabs-preview span {
    font-size: 13px;
  }

  .tabs-preview small {
    font-size: 10px;
  }

  .entertainment-head {
    display: grid;
    gap: 10px;
    padding: 14px;
  }

  body.entertainment-page .entertainment-head {
    padding: 0;
  }

  body.entertainment-page .entertainment-head p {
    -webkit-line-clamp: 4;
  }

  body.entertainment-page .entertainment-submit-card {
    border-radius: 8px;
  }

  body.entertainment-page .entertainment-form-top {
    border-radius: 8px 8px 0 0;
  }

  body.entertainment-page .post-body {
    padding: 14px 12px 12px 46px;
  }

  body.entertainment-page .rich p:last-child {
    padding-right: 0;
  }

  body.entertainment-page .post-content-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  body.entertainment-page .post-submitted {
    max-width: 100%;
    margin: 4px 0 0;
    justify-self: end;
    text-align: right;
  }

  body.entertainment-page .post-action-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  body.entertainment-page .post-action-footer .reaction-row {
    justify-content: flex-start;
    flex-wrap: wrap;
    width: 100%;
  }

  body.entertainment-page .post-moderation-tools {
    justify-content: flex-start;
    width: 100%;
  }

  body.entertainment-page .comments-panel {
    margin-left: -34px;
  }

  .scholarship-hero {
    min-height: 0;
    padding: 22px 16px;
    background: #ffffff;
  }

  .scholarship-stats {
    grid-template-columns: 1fr 1fr;
  }

  .wizard-steps-nav {
    grid-template-columns: 1fr 1fr;
  }

  .admin-sidebar {
    position: static;
  }

  .admin-sidebar-brand {
    grid-template-columns: 38px 1fr;
    padding: 12px;
  }

  .admin-sidebar-brand > span {
    width: 38px;
    height: 38px;
  }

  .admin-side-menu {
    grid-template-columns: 1fr 1fr !important;
    padding: 10px;
  }

  .admin-side-menu a {
    min-height: 38px;
    padding: 8px;
    font-size: 12px;
  }

  .admin-stats {
    grid-template-columns: 1fr 1fr;
  }

  .admin-topbar,
  .admin-panel,
  .admin-review-card {
    padding: 12px;
  }

  .admin-rich-toolbar {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .admin-rich-toolbar button {
    flex: 0 0 auto;
    width: auto;
  }
}

@media (max-width: 380px) {
  .brand strong {
    font-size: 14px;
  }

  .menu-btn strong {
    display: none;
  }

  .hero-copy h1,
  .section-head h1,
  .program h1,
  .help h1,
  .admin h1,
  .scholarship-hero h1 {
    font-size: 25px;
  }

  .scholarship-stats,
  .wizard-steps-nav,
  .admin-side-menu,
  .admin-stats {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 980px) {
  .funds-hero {
    grid-template-columns: 1fr;
  }

  .funds-status {
    min-height: 120px;
  }

  .funds-stats {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .funds-hero,
  .funds-ledger {
    padding: 18px;
  }

  .funds-hero h1 {
    font-size: 34px;
  }

  .funds-hero p {
    font-size: 15px;
  }

  .funds-status {
    min-height: 106px;
    padding: 14px;
  }

  .funds-status strong {
    font-size: 24px;
  }

  .funds-stats {
    gap: 8px;
  }

  .funds-stats article {
    min-height: 96px;
    padding: 12px;
  }

  .funds-stats span {
    font-size: 10px;
  }

  .funds-stats strong {
    font-size: 18px;
  }

  .funds-ledger-head {
    flex-direction: column;
  }

  .funds-ledger-head h2 {
    font-size: 24px;
  }

  .procashbook-head {
    flex-direction: column;
    padding: 16px;
  }

  .procashbook-head h2 {
    font-size: 24px;
  }

  .procashbook-head a {
    width: 100%;
  }

  .procashbook-frame-wrap iframe {
    min-height: 78vh;
  }

  .funds-table {
    min-width: 760px;
  }

  .funds-empty {
    padding: 20px 14px;
  }
}

@media (max-width: 380px) {
  .funds-stats {
    grid-template-columns: 1fr !important;
  }
}
