/* ============================================
   AYSC 2026 — Global Stylesheet
   Theme: Navy Blue + Orange + White
   ============================================ */

:root {
  --blue-950: #172554;
  --blue-900: #1e3a8a;
  --blue-800: #1e40af;
  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-200: #bfdbfe;
  --blue-100: #dbeafe;
  --blue-50:  #eff6ff;
  --orange-700: #c2410c;
  --orange-600: #ea580c;
  --orange-500: #f97316;
  --orange-400: #fb923c;
  --orange-100: #ffedd5;
  --orange-50:  #fff7ed;
  --green-800: #166534;
  --green-100: #dcfce7;
  --red-800:   #991b1b;
  --red-100:   #fee2e2;
  --yellow-800:#92400e;
  --yellow-100:#fef3c7;
  --gray-900: #0f172a;
  --gray-800: #1e293b;
  --gray-700: #334155;
  --gray-600: #475569;
  --gray-500: #64748b;
  --gray-400: #94a3b8;
  --gray-300: #cbd5e1;
  --gray-200: #e2e8f0;
  --gray-100: #f1f5f9;
  --gray-50:  #f8fafc;
  --white:    #ffffff;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow:    0 1px 3px rgba(0,0,0,0.10), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.07), 0 4px 6px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px rgba(0,0,0,0.08), 0 10px 10px rgba(0,0,0,0.04);
  --radius:    8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;
  --transition: 0.2s ease;
}

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4,h5,h6 { line-height: 1.3; font-weight: 700; color: var(--gray-900); }
a { color: var(--blue-600); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--blue-800); }
img { max-width: 100%; display: block; }

/* === LAYOUT === */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-sm { max-width: 800px; margin: 0 auto; padding: 0 24px; }
.container-xs { max-width: 600px; margin: 0 auto; padding: 0 24px; }

/* === NAVBAR === */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  height: 72px;
  display: flex;
  align-items: center;
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.navbar-brand img {
  height: 44px;
  width: auto;
  object-fit: contain;
}
.navbar-brand .brand-divider {
  width: 1px;
  height: 32px;
  background: var(--gray-300);
}
.navbar-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.navbar-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-700);
  padding: 6px 12px;
  border-radius: var(--radius);
  transition: all var(--transition);
}
.navbar-nav a:hover { color: var(--blue-700); background: var(--blue-50); }
.navbar-nav a.btn-nav-apply {
  background: var(--orange-500);
  color: var(--white);
  padding: 8px 18px;
  border-radius: var(--radius-full);
}
.navbar-nav a.btn-nav-apply:hover { background: var(--orange-600); color: var(--white); }
.navbar-menu-btn { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.navbar-menu-btn span {
  display: block; width: 22px; height: 2px;
  background: var(--gray-700); margin: 5px 0;
  transition: var(--transition);
}

/* === HERO === */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--blue-950) 0%, var(--blue-900) 40%, var(--blue-800) 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 72px;
}
.hero .container {
  max-width: 1440px;
}
/* Hero Single Layout */
.hero-content-wrap { width: 100%; display: flex; flex-direction: column; }
.hero-single {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 48px;
  padding-bottom: 56px;
}
.hero-single .hero-badge { font-size: 0.9rem; padding: 9px 22px; margin-bottom: 24px; }
.hero-single .hero-title {
  font-size: clamp(2.6rem, 6vw, 5rem);
  margin-bottom: 10px;
  text-shadow: 0 4px 24px rgba(0,0,0,0.3);
}
.hero-single .hero-subtitle {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--orange-400);
  margin-bottom: 36px;
  letter-spacing: 0.08em;
}
.hero-single .hero-desc {
  max-width: 620px;
  font-size: 1.05rem;
  line-height: 1.8;
  text-align: center;
  color: rgba(255,255,255,0.8);
  margin-bottom: 0;
}

/* Hero Info Cards */
.hero-info-cards {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 28px;
}
.hero-info-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 14px 20px;
  backdrop-filter: blur(8px);
  text-align: left;
}
.hero-info-card svg { color: var(--orange-400); flex-shrink: 0; }
.hero-info-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--orange-400);
  margin-bottom: 3px;
}
.hero-info-value { font-size: 0.9rem; color: rgba(255,255,255,0.9); font-weight: 500; }

/* Apply Now Banner */
.apply-banner {
  width: 100%;
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 60%, #9a3412 100%);
  position: relative;
  overflow: hidden;
}
.apply-banner::before {
  content: '';
  position: absolute;
  top: -100px; right: -60px;
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  border-radius: 50%;
}
.apply-banner::after {
  content: '';
  position: absolute;
  bottom: -80px; left: 5%;
  width: 250px; height: 250px;
  background: radial-gradient(circle, rgba(255,255,255,0.07) 0%, transparent 70%);
  border-radius: 50%;
}
.apply-banner-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 52px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  position: relative;
  z-index: 1;
}
.apply-banner-left { flex: 1; }
.apply-banner-deadline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50px;
  padding: 6px 16px;
  margin-bottom: 16px;
  font-weight: 500;
}
.apply-banner-deadline strong { color: #fff; font-weight: 800; }
.apply-banner-title {
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 10px;
}
.apply-banner-sub { font-size: 1rem; color: rgba(255,255,255,0.75); line-height: 1.5; }
.btn-apply-now {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  color: #c2410c;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 22px 52px;
  border-radius: 100px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3), 0 0 0 0 rgba(255,255,255,0.5);
  transition: transform 0.25s, box-shadow 0.25s;
  animation: pulse-apply 2.2s ease-in-out infinite;
}
.btn-apply-now:hover {
  background: #fff7ed;
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
  color: #9a3412;
}
@keyframes pulse-apply {
  0%, 100% { box-shadow: 0 8px 32px rgba(0,0,0,0.3), 0 0 0 0 rgba(255,255,255,0.6); }
  60% { box-shadow: 0 8px 32px rgba(0,0,0,0.3), 0 0 0 18px rgba(255,255,255,0); }
}

/* Responsive */
@media (max-width: 900px) {
  .apply-banner-inner { flex-direction: column; text-align: center; padding: 44px 32px; gap: 32px; }
  .apply-banner-deadline { margin: 0 auto 16px; }
  .btn-apply-now { width: 100%; justify-content: center; padding: 20px 40px; }
  .hero-info-cards { flex-direction: column; align-items: center; }
  .hero-info-card { width: 100%; max-width: 380px; }
}
@media (max-width: 480px) {
  .apply-banner-inner { padding: 36px 20px; }
  .apply-banner-title { font-size: 1.5rem; }
  .btn-apply-now { font-size: 1.1rem; padding: 18px 28px; }
  .hero-single { padding-top: 32px; padding-bottom: 40px; }
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(249,115,22,0.12) 0%, transparent 70%);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -150px; left: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(59,130,246,0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(249,115,22,0.15);
  border: 1px solid rgba(249,115,22,0.4);
  color: var(--orange-400);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
}
.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--orange-400);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}
.hero-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 8px;
}
.hero-title .highlight {
  color: var(--orange-400);
}
.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--blue-200);
  margin-bottom: 28px;
}
.hero-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}
.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
}
.hero-meta-item .icon {
  width: 20px; height: 20px;
  flex-shrink: 0;
  opacity: 0.8;
}
.hero-desc {
  color: rgba(255,255,255,0.75);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 520px;
}
.hero-deadline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.9);
  padding: 10px 18px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin-bottom: 32px;
}
.hero-deadline strong { color: var(--orange-400); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero card */
.hero-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-xl);
  padding: 32px;
}
.hero-card-title {
  color: var(--orange-400);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.agenda-mini { display: flex; flex-direction: column; gap: 0; }
.agenda-mini-item {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.agenda-mini-item:last-child { border-bottom: none; }
.agenda-time {
  color: var(--orange-400);
  font-size: 0.8rem;
  font-weight: 600;
  min-width: 80px;
  padding-top: 2px;
  font-variant-numeric: tabular-nums;
}
.agenda-session {
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
  line-height: 1.5;
}

/* === SECTION STYLES === */
section { padding: 100px 0; }
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange-500);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 16px;
}
.section-desc {
  font-size: 1.05rem;
  color: var(--gray-600);
  max-width: 640px;
  line-height: 1.75;
}
.section-title-center { text-align: center; }
.section-desc-center { text-align: center; margin-left: auto; margin-right: auto; }

.section-bg { background: var(--gray-50); }
.section-blue {
  background: linear-gradient(135deg, var(--blue-900), var(--blue-800));
  color: var(--white);
}
.section-blue .section-title { color: var(--white); }
.section-blue .section-desc { color: rgba(255,255,255,0.8); }
.section-blue .section-label { color: var(--orange-400); }

/* === ABOUT CARDS === */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 56px;
}
.about-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition);
}
.about-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.about-card-icon {
  width: 48px; height: 48px;
  background: var(--blue-50);
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.about-card-icon svg { width: 24px; height: 24px; color: var(--blue-700); }
.about-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 10px;
}
.about-card p {
  color: var(--gray-600);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* === ELIGIBILITY === */
.eligibility-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  margin-top: 56px;
}
.eligibility-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.eligibility-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.eligibility-number {
  width: 32px; height: 32px;
  background: var(--blue-900);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}
.eligibility-text { font-size: 0.95rem; color: var(--gray-700); padding-top: 5px; line-height: 1.6; }

.info-box {
  background: var(--blue-50);
  border: 1px solid var(--blue-200);
  border-radius: var(--radius-xl);
  padding: 28px;
}
.info-box h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue-900);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.info-box-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--blue-200);
}
.info-box-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.info-box-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--blue-700);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.info-box-value {
  font-size: 0.95rem;
  color: var(--gray-800);
  font-weight: 500;
}

/* === AGENDA TABLE === */
.agenda-table-wrap {
  margin-top: 56px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.agenda-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
}
.agenda-table thead tr {
  background: var(--blue-900);
  color: var(--white);
}
.agenda-table th {
  padding: 16px 24px;
  text-align: left;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.agenda-table th:last-child { text-align: center; }
.agenda-table td {
  padding: 16px 24px;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--gray-100);
  vertical-align: top;
}
.agenda-table tbody tr:last-child td { border-bottom: none; }
.agenda-table tbody tr:hover { background: var(--blue-50); }
.agenda-time-cell {
  font-weight: 600;
  color: var(--blue-700);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  min-width: 130px;
}
.agenda-session-title { font-weight: 600; color: var(--gray-900); margin-bottom: 4px; }
.agenda-session-detail { color: var(--gray-600); font-size: 0.85rem; line-height: 1.8; margin-top: 6px; }
.agenda-moderator { display: inline-block; margin-top: 4px; font-weight: 600; color: var(--blue-700); font-style: italic; }
.venue-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-100);
  color: var(--blue-800);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

/* === THEMES === */
.themes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.theme-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-xl);
  padding: 28px;
  transition: all var(--transition);
}
.theme-card:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-3px);
}
.theme-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(249,115,22,0.3);
  line-height: 1;
  margin-bottom: 12px;
}
.theme-card h3 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 10px;
}
.theme-card p {
  color: rgba(255,255,255,0.7);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* === HOW TO APPLY === */
.apply-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 56px;
  position: relative;
}
.apply-step {
  text-align: center;
  padding: 24px 16px;
  position: relative;
}
.apply-step-number {
  width: 56px; height: 56px;
  background: var(--orange-500);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 auto 16px;
  box-shadow: 0 4px 14px rgba(249,115,22,0.4);
}
.apply-step h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 8px; }
.apply-step p { font-size: 0.85rem; color: var(--gray-600); line-height: 1.6; }
.apply-step-arrow {
  position: absolute;
  top: 50px; right: -12px;
  color: var(--orange-300);
  font-size: 1.5rem;
}

/* === DOWNLOADS === */
.downloads-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.download-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all var(--transition);
}
.download-card:hover { background: rgba(255,255,255,0.13); transform: translateY(-3px); }
.download-card-icon {
  width: 44px; height: 44px;
  background: rgba(249,115,22,0.2);
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
}
.download-card-icon svg { color: var(--orange-400); width: 22px; height: 22px; }
.download-card h3 { color: var(--white); font-size: 0.95rem; font-weight: 700; }
.download-card p { color: rgba(255,255,255,0.65); font-size: 0.8rem; line-height: 1.5; }
.download-card .btn { align-self: flex-start; }

/* === CTA SECTION === */
.cta-box {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 48px;
  text-align: center;
  box-shadow: var(--shadow-xl);
  max-width: 700px;
  margin: 0 auto;
}
.cta-box h2 { font-size: 1.75rem; margin-bottom: 12px; }
.cta-box p { color: var(--gray-600); margin-bottom: 28px; }

/* === FOOTER === */
footer {
  background: var(--gray-900);
  color: rgba(255,255,255,0.7);
  padding: 48px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}
.footer-brand img { height: 40px; margin-bottom: 12px; filter: brightness(1.2); }
.footer-brand p { font-size: 0.875rem; line-height: 1.7; }
.footer-col h4 {
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { color: rgba(255,255,255,0.65); font-size: 0.875rem; transition: color var(--transition); }
.footer-col ul a:hover { color: var(--orange-400); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
}
.footer-bottom a { color: rgba(255,255,255,0.45); }
.footer-bottom a:hover { color: var(--orange-400); }

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-lg { font-size: 1rem; padding: 14px 32px; }
.btn-sm { font-size: 0.8rem; padding: 6px 14px; }

.btn-primary { background: var(--blue-700); color: var(--white); }
.btn-primary:hover:not(:disabled) { background: var(--blue-800); color: var(--white); }
.btn-orange { background: var(--orange-500); color: var(--white); box-shadow: 0 4px 14px rgba(249,115,22,0.35); }
.btn-orange:hover:not(:disabled) { background: var(--orange-600); color: var(--white); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(249,115,22,0.45); }
.btn-outline { background: transparent; border-color: var(--blue-700); color: var(--blue-700); }
.btn-outline:hover:not(:disabled) { background: var(--blue-700); color: var(--white); }
.btn-outline-white { background: transparent; border-color: rgba(255,255,255,0.5); color: var(--white); }
.btn-outline-white:hover:not(:disabled) { background: rgba(255,255,255,0.1); color: var(--white); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--gray-600); }
.btn-ghost:hover:not(:disabled) { background: var(--gray-100); color: var(--gray-800); }
.btn-danger { background: var(--red-800); color: var(--white); }
.btn-danger:hover:not(:disabled) { background: #7f1d1d; color: var(--white); }
.btn-success { background: var(--green-800); color: var(--white); }
.btn-success:hover:not(:disabled) { background: #14532d; color: var(--white); }

/* === FORMS === */
.form-section {
  padding: 100px 0;
  background: var(--gray-50);
  min-height: 100vh;
}
.form-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}
.form-card-header {
  background: linear-gradient(135deg, var(--blue-900), var(--blue-800));
  padding: 36px 40px;
  color: var(--white);
}
.form-card-header h2 { color: var(--white); font-size: 1.5rem; margin-bottom: 6px; }
.form-card-header p { color: rgba(255,255,255,0.75); font-size: 0.9rem; }
.form-card-body { padding: 40px; }

/* Progress Steps */
.progress-steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 40px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.progress-step {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.progress-step-circle {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  border: 2px solid var(--gray-300);
  color: var(--gray-500);
  background: var(--white);
  transition: all var(--transition);
}
.progress-step-label {
  display: none;
  font-size: 0.7rem;
  color: var(--gray-500);
  font-weight: 500;
  margin-top: 4px;
}
.progress-step.active .progress-step-circle {
  border-color: var(--blue-700);
  background: var(--blue-700);
  color: var(--white);
}
.progress-step.done .progress-step-circle {
  border-color: var(--green-800);
  background: var(--green-800);
  color: var(--white);
}
.progress-step.active .progress-step-label,
.progress-step.done .progress-step-label { color: var(--blue-700); }
.progress-line {
  flex: 1;
  height: 2px;
  background: var(--gray-200);
  min-width: 20px;
  transition: background var(--transition);
}
.progress-line.done { background: var(--green-800); }

/* Form Steps */
.form-step { display: none; }
.form-step.active { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.step-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--blue-900);
  margin-bottom: 6px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--orange-500);
  display: flex;
  align-items: center;
  gap: 10px;
}
.step-title .step-num {
  width: 28px; height: 28px;
  background: var(--blue-900);
  color: var(--white);
  border-radius: 50%;
  font-size: 0.75rem;
  display: flex; align-items: center; justify-content: center;
}
.step-desc { color: var(--gray-500); font-size: 0.875rem; margin-bottom: 28px; }

.form-group { margin-bottom: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }

label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}
label .required { color: var(--orange-600); margin-left: 3px; }

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.9rem;
  color: var(--gray-900);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
}
input.error, select.error, textarea.error { border-color: #dc2626; }
textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2364748b' d='M6 8L0 0h12z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }

.word-count {
  font-size: 0.75rem;
  color: var(--gray-400);
  text-align: right;
  margin-top: 4px;
}
.word-count.warn { color: var(--orange-600); font-weight: 600; }
.word-count.over { color: #dc2626; font-weight: 600; }

.field-error {
  font-size: 0.8rem;
  color: #dc2626;
  margin-top: 4px;
  display: none;
}
.field-error.show { display: block; }

/* Education table */
.edu-table { width: 100%; border-collapse: collapse; }
.edu-table th {
  background: var(--blue-900);
  color: var(--white);
  padding: 10px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: left;
}
.edu-table td { padding: 8px 6px; border-bottom: 1px solid var(--gray-200); }
.edu-table td:first-child {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-700);
  padding-left: 12px;
  white-space: nowrap;
}
.edu-table input { padding: 7px 10px; font-size: 0.85rem; }
.edu-table-wrap { border-radius: var(--radius-lg); overflow: hidden; border: 1.5px solid var(--gray-200); }

/* Radio option simple (reception, dietary) */
.radio-options { display: flex; flex-direction: column; gap: 10px; margin-bottom: 6px; }
.radio-option-simple { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border: 1.5px solid var(--gray-200); border-radius: var(--radius-md); cursor: pointer; font-size: 0.9rem; color: var(--gray-700); transition: border-color 0.15s, background 0.15s; }
.radio-option-simple:hover { border-color: var(--blue-400); background: var(--blue-50); }
.radio-option-simple input[type="radio"] { accent-color: var(--blue-700); width: 16px; height: 16px; flex-shrink: 0; }
.radio-option-simple.selected { border-color: var(--blue-700); background: var(--blue-50); font-weight: 600; }

/* Essay themes */
.theme-options { display: flex; flex-direction: column; gap: 12px; margin-bottom: 22px; }
.theme-option {
  display: flex;
  gap: 12px;
  padding: 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition);
}
.theme-option:hover { border-color: var(--blue-400); background: var(--blue-50); }
.theme-option.selected { border-color: var(--blue-700); background: var(--blue-50); }
.theme-option input[type="radio"] { display: none; }
.theme-option-num {
  width: 28px; height: 28px;
  background: var(--gray-200);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gray-600);
  flex-shrink: 0;
}
.theme-option.selected .theme-option-num { background: var(--blue-700); color: var(--white); }
.theme-option-text strong { display: block; font-size: 0.9rem; color: var(--gray-800); margin-bottom: 3px; }
.theme-option-text span { font-size: 0.8rem; color: var(--gray-500); }

/* Form nav buttons */
.form-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-200);
}
.form-nav-info { font-size: 0.8rem; color: var(--gray-500); }

/* === SUCCESS / CHECK === */
.result-card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.result-card-header {
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.result-card-header.status-pending { background: var(--yellow-100); border-bottom: 3px solid #d97706; }
.result-card-header.status-confirmed { background: var(--green-100); border-bottom: 3px solid #16a34a; }
.result-card-header.status-rejected { background: var(--red-100); border-bottom: 3px solid #dc2626; }
.result-status-icon { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.status-pending .result-status-icon { background: #fef3c7; }
.status-confirmed .result-status-icon { background: var(--green-100); }
.status-rejected .result-status-icon { background: var(--red-100); }
.result-card-body { padding: 28px; }
.result-field { display: flex; flex-direction: column; gap: 3px; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--gray-100); }
.result-field:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.result-field-label { font-size: 0.75rem; font-weight: 600; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.05em; }
.result-field-value { font-size: 0.95rem; color: var(--gray-900); font-weight: 500; }
.result-ref { font-family: monospace; font-size: 1.1rem; font-weight: 700; color: var(--blue-700); letter-spacing: 0.05em; }

/* === STATUS BADGE === */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.badge-pending { background: var(--yellow-100); color: var(--yellow-800); }
.badge-confirmed { background: var(--green-100); color: var(--green-800); }
.badge-rejected { background: var(--red-100); color: var(--red-800); }

/* === ADMIN PANEL === */
.admin-layout { min-height: 100vh; background: var(--gray-50); }
.admin-header {
  background: linear-gradient(135deg, var(--blue-950), var(--blue-900));
  padding: 0;
  position: sticky; top: 0; z-index: 100;
  box-shadow: var(--shadow-md);
}
.admin-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px; height: 64px;
}
.admin-brand { display: flex; align-items: center; gap: 10px; }
.admin-brand img { height: 36px; filter: brightness(1.3); }
.admin-brand span { color: var(--white); font-weight: 700; font-size: 1rem; }
.admin-brand .divider { width: 1px; height: 24px; background: rgba(255,255,255,0.2); }
.admin-header-right { display: flex; align-items: center; gap: 12px; }
.admin-user { color: rgba(255,255,255,0.8); font-size: 0.875rem; }

.admin-main { padding: 32px 28px; max-width: 1400px; margin: 0 auto; }

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.stat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  display: flex; align-items: center; gap: 16px;
}
.stat-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
}
.stat-icon-blue { background: var(--blue-100); color: var(--blue-700); }
.stat-icon-green { background: var(--green-100); color: var(--green-800); }
.stat-icon-yellow { background: var(--yellow-100); color: var(--yellow-800); }
.stat-icon-red { background: var(--red-100); color: var(--red-800); }
.stat-icon svg { width: 22px; height: 22px; }
.stat-value { font-size: 1.75rem; font-weight: 800; color: var(--gray-900); line-height: 1; margin-bottom: 2px; }
.stat-label { font-size: 0.8rem; color: var(--gray-500); font-weight: 500; }

/* Table section */
.table-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  overflow: hidden;
}
.table-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 18px 24px;
  border-bottom: 1px solid var(--gray-200);
  flex-wrap: wrap;
}
.table-search { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 250px; }
.table-search input {
  padding: 9px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 0.875rem; flex: 1;
}
.filter-select {
  padding: 9px 32px 9px 12px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 0.875rem;
  min-width: 140px;
}
.table-actions { display: flex; gap: 8px; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  background: var(--gray-50);
  padding: 12px 16px;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--gray-200);
  white-space: nowrap;
}
.data-table td {
  padding: 13px 16px;
  font-size: 0.875rem;
  color: var(--gray-800);
  border-bottom: 1px solid var(--gray-100);
  vertical-align: middle;
}
.data-table tbody tr:hover { background: var(--gray-50); }
.data-table tbody tr:last-child td { border-bottom: none; }
.td-name { font-weight: 600; }
.td-ref { font-family: monospace; font-size: 0.8rem; color: var(--blue-700); font-weight: 600; }
.td-actions { display: flex; gap: 6px; }
.td-actions .btn { padding: 5px 12px; font-size: 0.78rem; }

.table-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
  border-top: 1px solid var(--gray-200);
  font-size: 0.8rem;
  color: var(--gray-500);
}
.pagination { display: flex; gap: 6px; }
.page-btn {
  width: 32px; height: 32px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all var(--transition);
}
.page-btn:hover { border-color: var(--blue-500); color: var(--blue-700); }
.page-btn.active { background: var(--blue-700); border-color: var(--blue-700); color: var(--white); }
.page-btn:disabled { opacity: 0.4; cursor: default; }

/* === MODAL === */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; pointer-events: none;
  transition: opacity var(--transition);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  width: 100%; max-width: 800px;
  max-height: 90vh;
  display: flex; flex-direction: column;
  transform: translateY(20px);
  transition: transform var(--transition);
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--gray-200);
}
.modal-header h3 { font-size: 1.05rem; font-weight: 700; color: var(--gray-900); }
.modal-close {
  width: 32px; height: 32px;
  border: none; background: var(--gray-100);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 1.1rem; color: var(--gray-600);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.modal-close:hover { background: var(--gray-200); }
.modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}
.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--gray-200);
  display: flex; justify-content: flex-end; gap: 10px;
}

/* Modal detail sections */
.detail-section { margin-bottom: 24px; }
.detail-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--blue-800);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 8px 12px;
  background: var(--blue-50);
  border-radius: var(--radius);
  margin-bottom: 12px;
}
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.detail-field { display: flex; flex-direction: column; gap: 3px; }
.detail-field.full { grid-column: 1 / -1; }
.detail-label { font-size: 0.72rem; font-weight: 600; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.05em; }
.detail-value { font-size: 0.875rem; color: var(--gray-900); line-height: 1.6; }
.detail-value pre { white-space: pre-wrap; font-family: var(--font); font-size: 0.875rem; }

.edu-mini-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.edu-mini-table th { background: var(--blue-900); color: var(--white); padding: 7px 10px; font-size: 0.75rem; text-align: left; }
.edu-mini-table td { padding: 7px 10px; border-bottom: 1px solid var(--gray-100); font-size: 0.83rem; }
.edu-mini-table tr:last-child td { border-bottom: none; }

/* Edit form in modal */
.admin-edit-row {
  display: flex; gap: 12px; align-items: flex-end; margin-bottom: 14px;
}
.admin-edit-row .form-group { margin-bottom: 0; flex: 1; }

/* Login Screen */
.login-screen {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--blue-950), var(--blue-900));
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.login-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-xl);
}
.login-logo { display: flex; align-items: center; gap: 10px; justify-content: center; margin-bottom: 32px; }
.login-logo img { height: 40px; }
.login-title { font-size: 1.4rem; font-weight: 800; text-align: center; color: var(--gray-900); margin-bottom: 6px; }
.login-sub { text-align: center; color: var(--gray-500); font-size: 0.875rem; margin-bottom: 28px; }
.login-alert {
  background: var(--red-100); border: 1px solid #fca5a5;
  color: var(--red-800); padding: 12px 16px;
  border-radius: var(--radius); font-size: 0.875rem;
  margin-bottom: 16px; display: none;
}
.login-alert.show { display: block; }

/* === ALERTS & TOASTS === */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin-bottom: 20px;
  border: 1px solid transparent;
}
.alert-success { background: var(--green-100); color: var(--green-800); border-color: #86efac; }
.alert-error   { background: var(--red-100); color: var(--red-800); border-color: #fca5a5; }
.alert-info    { background: var(--blue-100); color: var(--blue-800); border-color: var(--blue-200); }
.alert-warning { background: var(--yellow-100); color: var(--yellow-800); border-color: #fde68a; }

.toast-container {
  position: fixed; top: 90px; right: 24px; z-index: 9000;
  display: flex; flex-direction: column; gap: 10px;
}
.toast {
  background: var(--white);
  border-radius: var(--radius);
  padding: 14px 18px;
  box-shadow: var(--shadow-xl);
  border-left: 4px solid var(--blue-500);
  font-size: 0.875rem;
  max-width: 320px;
  animation: slideIn 0.3s ease;
  display: flex; align-items: flex-start; gap: 10px;
}
.toast-success { border-left-color: #16a34a; }
.toast-error   { border-left-color: #dc2626; }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* === UTILITIES === */
.hidden { display: none !important; }
.text-center { text-align: center; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.gap-2 { gap: 8px; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.w-full { width: 100%; }
.loading-spinner {
  width: 20px; height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-card { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 20px; }
  .eligibility-grid { grid-template-columns: 1fr; gap: 32px; }
  .themes-grid { grid-template-columns: 1fr; gap: 16px; }
  .apply-steps { grid-template-columns: 1fr 1fr; }
  .downloads-grid { grid-template-columns: 1fr; gap: 16px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  section { padding: 64px 0; }
  .navbar-nav { display: none; }
  .navbar-menu-btn { display: flex; flex-direction: column; }
  .navbar-nav.open {
    display: flex; flex-direction: column;
    position: fixed; top: 72px; left: 0; right: 0;
    background: var(--white);
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
  }
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .hero { padding-top: 90px; }
  .hero { padding: 90px 0 60px; }
  .apply-steps { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .table-toolbar { flex-direction: column; align-items: stretch; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .cta-box { padding: 32px 24px; }
  .form-card-body { padding: 24px 20px; }
  .detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .progress-steps { gap: 4px; }
  .progress-line { min-width: 10px; }
}
