/* =========================================================
   University Modern Admission — Custom Styles
   โทนสีหลัก: เหลือง / ส้ม / ขาว
   ========================================================= */

:root {
  --uni-navy: #7c2d12;
  --uni-blue: #f97316;
  --uni-blue-2: #fb923c;
  --uni-sky: #fde047;
  --uni-light: #fff7ed;
  --uni-white: #ffffff;
  --uni-gold: #eab308;
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow-soft: 0 10px 30px rgba(154, 52, 18, 0.12);
  --shadow-card: 0 14px 34px rgba(124, 45, 18, 0.16);
}

* { font-family: 'Prompt', 'Sarabun', sans-serif; }

body {
  background: var(--uni-light);
  color: #1e2a3a;
}

a { text-decoration: none; }

/* ---------- Navbar ---------- */
.site-navbar {
  background: linear-gradient(120deg, var(--uni-navy) 0%, var(--uni-blue) 100%);
  box-shadow: var(--shadow-soft);
}
.brand-logo {
  width: 42px; height: 42px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: #fff;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-school { font-weight: 600; color: #fff; font-size: 1rem; }
.brand-sub { font-size: 0.72rem; color: rgba(255,255,255,0.75); }
.site-navbar .nav-link { color: rgba(255,255,255,0.9); font-weight: 400; padding: 0.5rem 0.9rem; }
.site-navbar .nav-link:hover { color: #fff; }

/* ---------- Hero ---------- */
.hero-section {
  background: linear-gradient(135deg, var(--uni-navy) 0%, var(--uni-blue) 55%, var(--uni-sky) 130%);
  color: #fff;
  padding: 64px 0 90px;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 85% 15%, rgba(255,255,255,0.18), transparent 45%);
}
.hero-logo {
  width: 84px; height: 84px; border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 40px; margin: 0 auto 18px;
  border: 2px solid rgba(255,255,255,0.35);
}
.hero-title { font-weight: 700; font-size: 2rem; }
.hero-subtitle { font-weight: 300; opacity: 0.92; }
.hero-badge {
  display: inline-block; padding: 6px 18px; border-radius: 50px;
  background: rgba(255,255,255,0.16); font-size: 0.85rem; letter-spacing: .5px;
}

/* ---------- Admission Type Cards ---------- */
.admission-cards { margin-top: -60px; position: relative; z-index: 5; }
.admission-card {
  background: var(--uni-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(249, 115, 22, 0.10);
  padding: 32px 24px;
  height: 100%;
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease;
  position: relative;
  overflow: hidden;
}
.admission-card::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
  background: linear-gradient(90deg, var(--uni-blue), var(--uni-sky));
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s ease;
}
.admission-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 22px 44px rgba(124, 45, 18, 0.24);
}
.admission-card:hover::after { transform: scaleX(1); }
.admission-card .icon-circle {
  width: 76px; height: 76px; border-radius: 50%;
  background: linear-gradient(135deg, var(--uni-blue-2), var(--uni-sky));
  display: flex; align-items: center; justify-content: center;
  font-size: 34px; margin: 0 auto 18px; color: #fff;
  box-shadow: 0 10px 20px rgba(251, 146, 60, 0.4);
}
.admission-card h5 { font-weight: 600; color: var(--uni-navy); min-height: 48px; }
.admission-card p.card-desc { font-size: 0.88rem; color: #5c6b80; min-height: 66px; }
.admission-card .btn-apply {
  background: linear-gradient(90deg, var(--uni-blue), var(--uni-blue-2));
  border: none; color: #fff; font-weight: 500; padding: 10px 28px;
  border-radius: 50px; transition: all .2s ease;
}
.admission-card .btn-apply:hover {
  background: linear-gradient(90deg, var(--uni-navy), var(--uni-blue));
  transform: scale(1.04); color: #fff;
}

/* ---------- Section titles ---------- */
.section-title { font-weight: 700; color: var(--uni-navy); }
.section-title .accent { color: var(--uni-blue-2); }
.section-sub { color: #64748b; }

/* ---------- Generic cards / panels ---------- */
.panel {
  background: #fff; border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 28px;
}
.info-icon-box {
  width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, var(--uni-blue-2), var(--uni-sky));
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px;
}

/* Application form wizard */
.wizard-steps { display: flex; overflow-x: auto; gap: 4px; padding-bottom: 8px; margin-bottom: 28px; }
.wizard-step {
  flex: 1 0 auto; min-width: 118px; text-align: center; position: relative; padding: 10px 6px;
  font-size: 0.78rem; color: #94a3b8; border-bottom: 4px solid #e2e8f0;
}
.wizard-step.active { color: var(--uni-blue); border-color: var(--uni-blue); font-weight: 600; }
.wizard-step.done { color: #16a34a; border-color: #16a34a; }
.wizard-step .circle {
  width: 30px; height: 30px; border-radius: 50%; background: #e2e8f0; color: #64748b;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 6px; font-weight: 600;
}
.wizard-step.active .circle { background: var(--uni-blue); color: #fff; }
.wizard-step.done .circle { background: #16a34a; color: #fff; }

/* Application steps (home page) — step cards with icons */
.step-card {
  background: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow-soft);
  padding: 26px 14px 20px; height: 100%; text-align: center; position: relative;
  transition: transform .2s ease, box-shadow .2s ease;
}
.step-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); }
.step-card-num {
  position: absolute; top: 10px; left: 12px;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--uni-navy); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem; font-weight: 700;
}
.step-card-icon {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 14px;
  background: linear-gradient(135deg, var(--uni-blue), var(--uni-sky));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 28px; box-shadow: 0 10px 20px rgba(251, 146, 60, 0.35);
}
.step-card-label { font-weight: 600; color: var(--uni-navy); font-size: 0.9rem; }

.form-section-title {
  color: var(--uni-navy); font-weight: 600; border-left: 4px solid var(--uni-blue);
  padding-left: 12px; margin-bottom: 18px;
}

.badge-type {
  background: linear-gradient(90deg, var(--uni-navy), var(--uni-blue));
  color: #fff; padding: 8px 20px; border-radius: 50px; font-size: 0.9rem;
}

/* Status check result card */
.status-result-card {
  border-radius: var(--radius-lg);
  background: #fff; box-shadow: var(--shadow-card);
  overflow: hidden;
}
.status-result-header {
  background: linear-gradient(120deg, var(--uni-navy), var(--uni-blue));
  color: #fff; padding: 22px 28px;
}

/* Buttons */
.btn-uni-primary {
  background: linear-gradient(90deg, var(--uni-blue), var(--uni-blue-2));
  border: none; color: #fff; font-weight: 500;
}
.btn-uni-primary:hover { background: linear-gradient(90deg, var(--uni-navy), var(--uni-blue)); color: #fff; }
.btn-uni-outline {
  border: 1.5px solid var(--uni-blue); color: var(--uni-blue); font-weight: 500; background: #fff;
}
.btn-uni-outline:hover { background: var(--uni-blue); color: #fff; }

/* Footer */
.site-footer {
  background: linear-gradient(120deg, var(--uni-navy), #5c1a09);
  color: #fff;
}
.footer-link { color: rgba(255,255,255,0.75); }
.footer-link:hover { color: #fff; }

/* Admin layout */
.admin-sidebar {
  background: linear-gradient(180deg, var(--uni-navy), #5c1a09);
  min-height: 100vh; color: #fff;
}
.admin-sidebar .nav-link { color: rgba(255,255,255,0.78); padding: 10px 18px; border-radius: 10px; margin-bottom: 4px; font-size: 0.92rem; }
.admin-sidebar .nav-link.active, .admin-sidebar .nav-link:hover { background: rgba(255,255,255,0.14); color: #fff; }
.admin-topbar { background: #fff; box-shadow: var(--shadow-soft); }
.stat-card {
  background: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow-soft);
  padding: 20px; border-left: 5px solid var(--uni-blue);
}
.stat-card .stat-num { font-size: 1.8rem; font-weight: 700; color: var(--uni-navy); }
.stat-card .stat-label { color: #64748b; font-size: 0.85rem; }

/* Responsive */
@media (max-width: 767px) {
  .hero-title { font-size: 1.4rem; }
  .hero-section { padding: 44px 0 74px; }
  .admission-cards { margin-top: -46px; }
}
