﻿:root {
  --bg: #fff8ea;
  --bg-2: #fffdf8;
  --ink: #1b1c26;
  --muted: #5e6677;
  --line: #cfd7e8;
  --line-soft: #dfe6f2;
  --brand: #1d4ed8;
  --brand-hover: #1e40af;
  --accent: #0891b2;
  --radius-lg: 22px;
  --radius-md: 14px;
  --shadow-lg: 0 28px 44px -34px rgba(16, 24, 40, 0.55);
  --shadow-md: 0 16px 26px -22px rgba(16, 24, 40, 0.45);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  font-family: "Plus Jakarta Sans", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(circle at 7% 7%, #ffe2ad 0%, transparent 24%),
    radial-gradient(circle at 92% 10%, #cbe6ff 0%, transparent 28%),
    linear-gradient(180deg, #fffef9 0%, #fff4df 52%, #f8efdc 100%);
}
.wrap { width: min(1140px, calc(100% - 1.25rem)); margin: 0 auto; }
.wrap > h1 {
  margin: 1.05rem 0 0.3rem;
  font: 800 clamp(1.55rem, 2.7vw, 2.2rem) "Outfit", sans-serif;
  letter-spacing: -0.02em;
}
.wrap > p { margin: 0.2rem 0 0.85rem; color: var(--muted); }

.top {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.72rem 1rem;
  background: rgba(255, 251, 243, 0.84);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid rgba(31, 41, 55, 0.08);
}
.top-row { display: contents; }
.brand {
  font: 800 1.18rem "Outfit", sans-serif;
  letter-spacing: -0.015em;
  text-decoration: none;
  color: var(--ink);
}
nav {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  align-items: center;
  justify-content: center;
  width: 100%;
}
nav a {
  text-decoration: none;
  color: #2d3950;
  font-size: 0.86rem;
  font-weight: 700;
  padding: 0.44rem 0.74rem;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: 0.2s ease;
}
nav a:hover {
  color: #10294c;
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(29, 78, 216, 0.2);
  box-shadow: 0 10px 14px -14px rgba(29, 78, 216, 0.65);
}
.menu-btn {
  display: none;
  width: 42px;
  height: 38px;
  padding: 7px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}
.menu-btn span {
  display: block;
  width: 100%;
  height: 2.5px;
  background: #1f2937;
  border-radius: 3px;
  margin: 4px 0;
}

.hero {
  margin-top: 1rem;
  padding: 1.32rem;
  border-radius: 30px;
  background: linear-gradient(140deg, #ffffff 0%, #fff8ef 100%);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.92);
  animation: fadeUp 500ms ease both;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 1rem;
  align-items: stretch;
}
.hero h1 {
  margin: 0;
  font: 800 clamp(1.72rem, 4vw, 2.9rem) "Outfit", sans-serif;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.hero p {
  margin: 0.62rem 0 0;
  color: var(--muted);
  max-width: 64ch;
  font-size: 1.02rem;
}
.hero-panel {
  border-radius: 24px;
  padding: 1rem 1.05rem;
  background: linear-gradient(165deg, #fff8dc 0%, #fff2c4 62%, #ffe8b3 100%);
  border: 1px solid #e8d4a2;
  color: #2f2a1f;
  position: relative;
  box-shadow: 0 18px 28px -24px rgba(79, 61, 20, 0.6);
}
.hero-panel::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 18px;
  width: 44px;
  height: 14px;
  border-radius: 4px;
  background: rgba(239, 231, 201, 0.95);
  border: 1px solid #d9ccb0;
  transform: rotate(-6deg);
}
.hero-kicker {
  margin: 0;
  color: #8a6a2d;
  text-transform: uppercase;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.hero-number { margin: 0.22rem 0; font: 800 2.05rem "Outfit", sans-serif; color: #2f2a1f; }
.hero-sub { margin: 0; color: #5f5541; font-weight: 600; }
.cta-link {
  margin-top: 0.78rem;
  display: inline-flex;
  align-items: center;
  color: #214cbb;
  font-weight: 800;
  text-decoration: none;
  border-bottom: 2px solid rgba(33, 76, 187, 0.3);
}
.cta-link:hover { border-bottom-color: #214cbb; }

.searchbar { display: flex; gap: 0.62rem; margin-top: 1rem; }
.searchbar input { flex: 1; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; margin-top: 0.85rem; }

.autocomplete-wrap {
  position: relative;
}
.autocomplete-box {
  position: absolute;
  top: calc(100% + 0.3rem);
  left: 0;
  right: 0;
  z-index: 25;
  max-height: 220px;
  overflow: auto;
  padding: 0.35rem;
  border-radius: 12px;
  border: 1px solid #d9d7cf;
  background: #fffdf7;
  box-shadow: 0 16px 26px -20px rgba(16, 24, 40, 0.55);
}
.autocomplete-box.hidden { display: none; }
.autocomplete-item {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 0.55rem 0.6rem;
  border-radius: 8px;
  font: inherit;
  color: #223047;
}
.autocomplete-item:hover {
  background: #edf3ff;
}

.hero-banner {
  margin: 1rem auto 0;
  max-width: 920px;
  padding: 0.65rem;
  background: #fffdf6 !important;
  border: 1px solid #e8dcc3;
  transform: none !important;
}
.hero-banner::before { content: none; }
.hero-banner img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  border: 1px solid #d9d9d9;
  max-height: none;
  object-fit: contain;
}
@media (min-width: 1024px) {
  .hero-banner {
    display: none !important;
  }
}
.banner-note {
  margin-top: 0.62rem;
  font-size: 0.88rem;
  color: var(--muted);
  text-align: center;
}

.mobile-quick {
  display: block;
  background: linear-gradient(145deg, #ffffff 0%, #fff6e6 100%) !important;
  transform: none !important;
  margin-top: 0.9rem;
  border: 1px solid rgba(16, 24, 40, 0.1);
  border-radius: 18px;
  box-shadow: var(--shadow-md);
}
.mobile-quick::before { content: none; }
.mobile-quick h3 { margin: 0; font-size: 1.08rem; letter-spacing: -0.01em; line-height: 1.25; }
.mobile-quick p { margin: 0.44rem 0 1.28rem; color: #4d5872; font-size: 0.92rem; line-height: 1.45; }
.mobile-quick-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.56rem; }
.mobile-quick-actions .btn-link { text-align: left; padding: 0.72rem 0.82rem; border-radius: 12px; background: #104fcf; border: 1px solid #104fcf; font-size: 0.84rem; line-height: 1.35; letter-spacing: 0.01em; }
.mobile-quick-actions .btn-link::before { content: "•"; margin-right: 0.36rem; color: #ffd777; }
.mobile-quick-actions .btn-link:nth-child(1) { grid-column: 1 / -1; background: #0f3f97; border-color: #0f3f97; }
.mobile-quick-actions .btn-link:nth-child(2) { background: #0f5bd6; border-color: #0f5bd6; }
.mobile-quick-actions .btn-link:nth-child(3) { background: #1b7a5d; border-color: #1b7a5d; }

.stat-card { background: #fff; border: 1px solid var(--line-soft); border-radius: 16px; padding: 0.95rem; animation: fadeUp 600ms ease both; }
.stat-card h3 { margin: 0; font-size: 1rem; }
.stat-card p { margin: 0.5rem 0 0; color: var(--muted); font-size: 0.92rem; }

.grid { display: grid; grid-template-columns: 1fr; gap: 1rem; margin: 1rem 0 1.5rem; }
.card {
  border: 1px solid rgba(95, 104, 129, 0.25);
  border-radius: var(--radius-lg);
  padding: 1rem;
  box-shadow: var(--shadow-md);
  transform-origin: top center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: fadeUp 700ms ease both;
  position: relative;
}
.card::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 24px;
  width: 34px;
  height: 14px;
  border-radius: 3px;
  background: rgba(255,255,255,.6);
  border: 1px solid rgba(120,120,120,.24);
  transform: rotate(-6deg);
}
.grid .card:nth-child(4n+1) { background: #fff8ab; transform: rotate(-1deg); }
.grid .card:nth-child(4n+2) { background: #ffdccc; transform: rotate(0.95deg); }
.grid .card:nth-child(4n+3) { background: #d8f7dd; transform: rotate(-0.75deg); }
.grid .card:nth-child(4n+4) { background: #d9ebff; transform: rotate(1.1deg); }
.card:hover { transform: translateY(-5px) rotate(0deg) scale(1.01); box-shadow: 0 26px 34px -24px rgba(18, 25, 47, 0.62); }
.card h3 { margin: 0.42rem 0; line-height: 1.28; letter-spacing: -0.01em; font-size: 1.1rem; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--brand); }
.card p { margin: 0.36rem 0 0; color: #464b5e; font-size: 0.95rem; }
.mobile-quick.card p { margin: 0.44rem 0 1.28rem; color: #4d5872; font-size: 0.92rem; line-height: 1.45; }
.meta-line strong { color: #253252; }

.pill {
  display: inline-block;
  border-radius: 999px;
  padding: 0.24rem 0.58rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(255,255,255,.65);
}
.pill.admission { color: #0055aa; }
.pill.scholarship { color: #8f4d00; }
.badge-row { display: flex; align-items: center; justify-content: space-between; gap: 0.55rem; }
.status-badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 0.2rem 0.58rem; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.02em; background: #f3f4f6; color: #374151; }
.status-badge.open { background: #dcfce7; color: #166534; }
.status-badge.closed { background: #fee2e2; color: #991b1b; }
.status-badge.pending { background: #fef3c7; color: #92400e; }

.form { display: grid; gap: 0.66rem; }
input, select, textarea, button {
  padding: 0.8rem 0.86rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  font: inherit;
  background: #fff;
}
textarea {
  resize: vertical;
  min-height: 110px;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #95b7ef;
  box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.14);
}
button {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  font-weight: 700;
  transition: 0.2s ease;
  box-shadow: 0 10px 18px -14px rgba(29, 78, 216, 0.82);
}
button:hover { background: var(--brand-hover); border-color: var(--brand-hover); transform: translateY(-1px); }
.inline { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 0.85rem; }
.row a { text-decoration: none; color: var(--brand); font-weight: 700; }

.foot {
  margin-top: 1.1rem;
  padding: 1rem 0 3rem;
  display: flex;
  gap: 0.58rem 0.95rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}
.foot a { color: #33486d; text-decoration: none; font-weight: 700; font-size: 0.91rem; }
.foot a:hover { color: #1c2e56; text-decoration: underline; text-underline-offset: 3px; }
.foot p { margin: 0; width: 100%; text-align: center; font-size: 0.89rem; }

.cookie {
  position: fixed;
  bottom: 14px;
  left: 14px;
  right: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(21, 25, 34, 0.9);
  color: #fff;
  padding: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  backdrop-filter: blur(16px);
}
.cookie button { background: #fff; color: #1d1d1f; border-color: #fff; box-shadow: none; }

.modal { position: fixed; inset: 0; background: rgba(10, 18, 32, 0.42); display: grid; place-items: center; z-index: 95; opacity: 0; transition: opacity .15s ease; }
.modal.show { opacity: 1; }
.modal-card {
  width: min(460px, calc(100% - 1.2rem));
  background: #fff;
  border: 1px solid #d9e3f2;
  border-radius: 14px;
  box-shadow: 0 18px 40px -24px rgba(15,23,42,.55);
  padding: 1rem;
  transform: translateY(8px) scale(.98);
  transition: transform .15s ease;
}
.modal.show .modal-card { transform: translateY(0) scale(1); }
.modal-card h3 { margin: 0 0 .45rem; }
.modal-card p { margin: 0 0 .75rem; color: #475569; }
.loading-overlay { position: fixed; inset: 0; background: rgba(255,255,255,.56); backdrop-filter: blur(2px); display: grid; place-items: center; z-index: 100; opacity: 0; transition: opacity .15s ease; }
.loading-overlay.show { opacity: 1; }
.loading-card { display: flex; align-items: center; gap: .6rem; background: #fff; border: 1px solid #d9e3f2; border-radius: 12px; padding: .65rem .8rem; box-shadow: 0 14px 30px -22px rgba(15,23,42,.55); }
.loading-card p { margin: 0; font-weight: 700; color: #1f3b6e; }
.spinner { width: 18px; height: 18px; border-radius: 999px; border: 2px solid #bdd4ff; border-top-color: #1b4ed8; animation: spin .8s linear infinite; }
.hidden { display: none; }
.ok { color: #0f5132; background: #ebfff4; border: 1px solid #b5ebc9; border-radius: 10px; padding: 0.62rem 0.72rem; font-weight: 600; }
.err { color: #b00020; font-weight: 600; }

.admin-layout { display: grid; grid-template-columns: 270px 1fr; gap: 1.1rem; margin-top: 1rem; align-items: start; }
.admin-sidebar {
  position: sticky;
  top: 72px;
  align-self: start;
  background: linear-gradient(180deg, #ffffff 0%, #f6faff 100%) !important;
  transform: none !important;
  border-radius: 20px;
  border: 1px solid #d8e2f2;
  box-shadow: 0 16px 30px -24px rgba(15, 38, 82, 0.42);
}
.admin-sidebar::before { content: none; }
.admin-sidebar h3 { margin: 0 0 0.72rem; font-size: 1rem; }
.admin-sidebar a { display: block; text-decoration: none; color: #1f3b6e; font-weight: 700; padding: 0.64rem 0.74rem; border-radius: 12px; border: 1px solid transparent; }
.admin-sidebar a:hover { background: #eef4ff; border-color: #c9daff; }
.admin-panel {
  margin-top: 0;
  padding: 1.08rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.93);
  border: 1px solid rgba(29, 52, 97, 0.12);
  backdrop-filter: blur(8px);
  box-shadow: 0 28px 38px -32px rgba(15, 38, 82, 0.48);
}
.admin-panel .row { padding-bottom: 0.68rem; border-bottom: 1px solid #e5ebf7; margin-bottom: 0.32rem; }
.admin-panel .row h1 { margin: 0; font-size: 1.55rem; }
.admin-panel .row a { padding: 0.45rem 0.74rem; border-radius: 10px; background: #eef4ff; border: 1px solid #d6e3ff; }
.admin-block { margin-top: 1.15rem; }
.admin-block h2 { margin: 0 0 0.65rem; font: 800 1.3rem "Outfit", sans-serif; letter-spacing: -0.015em; }
.section-note {
  margin: 0 0 0.7rem;
  padding: 0.58rem 0.74rem;
  border-radius: 10px;
  background: #eaf3ff;
  border: 1px solid #cddffb;
  color: #1f3b6e;
  font-size: 0.89rem;
  font-weight: 600;
}
.admin-grid .admin-card { background: #fff !important; transform: none !important; border-radius: 16px; border: 1px solid #dce4f3; box-shadow: 0 16px 22px -20px rgba(22, 32, 64, 0.35); }
.admin-grid .admin-card::before { content: none; }
.admin-grid .admin-card:hover { transform: translateY(-2px) !important; }
.admin-grid { align-items: start; }
.admin-grid .card { align-self: start; }
.admin-actions { margin-top: 0.6rem; }
.admin-actions input[type="date"] { min-width: 170px; }
.edit-box { margin-top: 0.78rem; border-top: 1px dashed #d8d2c3; padding-top: 0.72rem; }
.edit-box summary { cursor: pointer; font-weight: 700; color: #1f3b6e; margin-bottom: 0.56rem; }
.edit-box[open] summary { margin-bottom: 0.72rem; }

.card-actions { margin-top: 0.68rem; }
.card-actions form { margin: 0; }
.btn-link { display: inline-block; text-decoration: none; background: #1b4ed8; color: #fff; font-weight: 700; font-size: 0.86rem; padding: 0.5rem 0.74rem; border-radius: 10px; box-shadow: 0 10px 18px -14px rgba(27, 78, 216, 0.75); }
.btn-link:hover { background: #163fae; }
.pagination { margin: 0.74rem 0 1.24rem; display: flex; flex-wrap: wrap; gap: 0.42rem; justify-content: center; }
.page-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 38px; padding: 0 0.74rem; border-radius: 10px; border: 1px solid #c7d6ef; background: #fff; color: #1f3b6e; text-decoration: none; font-weight: 700; font-size: 0.88rem; }
.page-btn:hover { background: #eef4ff; }
.page-btn.active { background: #1b4ed8; border-color: #1b4ed8; color: #fff; }
.page-btn.disabled { opacity: 0.45; pointer-events: none; }

.detail.card { background: #fff !important; transform: none !important; border-radius: 16px; max-width: 860px; margin: 1rem auto 1.4rem; padding: 1.12rem; }
.detail.card::before { content: none; }
.detail h1 { margin: 0.56rem 0 0.62rem; line-height: 1.2; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.detail p { margin: 0.5rem 0; line-height: 1.6; }
.detail h3 { margin: 0.92rem 0 0.48rem; }
.detail ul { margin: 0.25rem 0 0.9rem 1.2rem; padding: 0; }
.detail li { margin: 0.25rem 0; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (min-width: 720px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .grid { grid-template-columns: repeat(3, 1fr); } }

@media (max-width: 1024px) {
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.45rem; padding: 0.75rem; }
  .admin-sidebar h3 { grid-column: 1 / -1; margin-bottom: 0.25rem; }
  .admin-sidebar a { text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

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

@media (max-width: 640px) {
  .wrap { width: min(1140px, calc(100% - 0.85rem)); }
  .top { display: flex; flex-direction: column; align-items: stretch; gap: 0.45rem; }
  .top-row { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 0.7rem; }
  .menu-btn { display: block; }
  nav { display: none; width: 100%; flex-direction: column; gap: 0.35rem; padding-top: 0.3rem; justify-content: flex-start; }
  nav.open { display: flex; }
  nav a { width: 100%; text-align: left; border-radius: 10px; background: rgba(255,255,255,0.8); border-color: rgba(0,0,0,0.06); }
  .hero { padding: 1rem; border-radius: 22px; }
  .searchbar { flex-direction: column; }
  .cookie { flex-direction: column; align-items: flex-start; }
  .grid .card { transform: rotate(0deg) !important; }
  .foot { flex-direction: column; align-items: center; gap: 0.45rem; padding-bottom: 5.2rem; }
  .detail.card { margin-top: 0.8rem; padding: 0.9rem; }
  .mobile-quick { display: block; }
  .admin-sidebar { grid-template-columns: 1fr 1fr; }
  .admin-panel { padding: 0.82rem; border-radius: 18px; }
  .admin-actions { flex-direction: column; }
  .admin-actions input[type="date"], .admin-actions button { width: 100%; }
}







