/* ============================================================
   School Section Styles
   ============================================================ */

.school-section { --section-accent: var(--blue); }

/* ---- School Nav Logo ---- */
.school-logo { background: var(--blue) !important; }

/* ---- School Buttons ---- */
.btn-school {
  background: var(--blue);
  color: #fff;
  box-shadow: var(--shadow-cyan);
}
.btn-school:hover { color:#fff; transform:translateY(-2px); box-shadow:0 6px 25px rgba(30,90,168,0.4); }
.btn-school-outline {
  border: 2px solid var(--blue);
  color: var(--blue);
  background: transparent;
}
.btn-school-outline:hover { background: var(--blue); color: #fff; }

/* ---- School Hero ---- */
.school-hero {
  min-height: 100vh;
  background: #f8fafc;
  color: var(--dark);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 80px;
}
.school-hero canvas { opacity: 0.08 !important; }
.school-hero .card-glass {
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  backdrop-filter: none;
}

.school-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%231E5AA8' fill-opacity='0.03'%3E%3Cpath d='M20 0L40 20L20 40L0 20Z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 40px 40px;
}

.school-hero-icon {
  font-size: clamp(80px, 15vw, 140px);
  color: rgba(96,165,250,0.08);
  position: absolute;
  right: 6%;
  top: 50%;
  transform: translateY(-50%);
  filter: drop-shadow(0 0 60px rgba(30,90,168,0.15));
}

/* ---- Academics Cards ---- */
.academic-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-light);
  transition: var(--transition-slow);
  height: 100%;
}

.academic-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(30,90,168,0.15); border-color: var(--blue-pale); }

.academic-card-header {
  background: #0f172a;
  padding: 28px 24px 20px;
  position: relative;
  overflow: hidden;
}

.academic-card-header::before {
  content: '';
  position: absolute;
  right: -20px;
  top: -20px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
}

.academic-card-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--sky);
  margin-bottom: 14px;
}

.academic-card-level {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--sky);
  opacity: 0.8;
  margin-bottom: 6px;
}

.academic-card-header h4 { color: #fff; font-size: 18px; margin: 0; }
.academic-card-body { padding: 24px; }

.subject-tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--blue-pale);
  color: var(--blue-darker);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  margin: 3px;
}

/* ---- Admission Steps ---- */
.admission-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-light);
  transition: var(--transition-slow);
  position: relative;
}

.admission-step:hover { border-color: var(--blue-pale); box-shadow: var(--shadow-md); transform: translateY(-3px); }

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: var(--shadow-cyan);
}

.step-content h5 { font-size: 16px; font-weight: 700; color: var(--dark); margin-bottom: 6px; }
.step-content p { font-size: 13px; color: var(--gray); margin: 0; line-height: 1.6; }

/* ---- Fee Box ---- */
.fee-box {
  background: #0f172a;
  border-radius: var(--radius-xl);
  padding: 36px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.fee-box::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(30,90,168,0.08);
}

.fee-amount {
  font-size: 4rem;
  font-weight: 800;
  color: var(--sky);
  line-height: 1;
}

.fee-currency { font-size: 2rem; vertical-align: top; margin-top: 8px; display: inline-block; }

/* ---- News Cards ---- */
.news-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-light);
  transition: var(--transition-slow);
  height: 100%;
}

.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.news-card-img {
  height: 200px;
  overflow: hidden;
  background: #1e293b;
  position: relative;
}

.news-card-img img { width:100%;height:100%;object-fit:cover;transition:transform 0.5s ease; }
.news-card:hover .news-card-img img { transform: scale(1.05); }

.news-card-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: rgba(96,165,250,0.25);
}

.news-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.news-category {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 8px;
}
.news-card-body h5 { font-size: 16px; font-weight: 700; color: var(--dark); margin-bottom: 10px; line-height: 1.3; }
.news-meta { font-size: 12px; color: var(--gray); display: flex; gap: 14px; flex-wrap: wrap; margin-top: auto; padding-top: 12px; }

/* ---- Gallery ---- */
.gallery-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.filter-btn {
  padding: 6px 18px;
  border-radius: 20px;
  border: 1.5px solid var(--gray-light);
  background: transparent;
  color: var(--gray);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}
.filter-btn.active, .filter-btn:hover { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ---- Admission Payment ---- */
.payment-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--gray-light);
}

.payment-header {
  background: #0f172a;
  padding: 36px 40px;
  text-align: center;
}

.payment-body { padding: 36px 40px; }

.payment-method-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border: 2px solid var(--gray-light);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  background: var(--white);
  width: 100%;
  text-align: left;
}

.payment-method-btn:hover, .payment-method-btn.selected {
  border-color: var(--blue);
  background: rgba(30,90,168,0.04);
}

.payment-method-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--gradient-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  flex-shrink: 0;
}

/* ---- Application Form ---- */
.app-form-progress {
  display: flex;
  gap: 0;
  margin-bottom: 36px;
}

.progress-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.progress-step::before {
  content: '';
  position: absolute;
  top: 16px;
  left: 50%;
  right: -50%;
  height: 2px;
  background: var(--gray-light);
  z-index: 0;
}

.progress-step:last-child::before { display: none; }

.progress-step.done::before { background: var(--blue); }

.step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--gray-light);
  background: var(--white);
  color: var(--gray);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  position: relative;
  z-index: 1;
  transition: var(--transition);
}

.progress-step.active .step-circle { border-color: var(--blue); background: var(--blue); color: #fff; }
.progress-step.done .step-circle { border-color: var(--blue); background: var(--blue); color: #fff; }

.step-label { font-size: 11px; margin-top: 6px; color: var(--gray); font-weight: 500; text-align: center; }
.progress-step.active .step-label { color: var(--blue); }

/* ---- Admin Dashboard ---- */
.stat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--gray-light);
  transition: var(--transition);
}
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.stat-card .stat-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 14px;
}
.stat-card .stat-value { font-size: 2.2rem; font-weight: 800; color: var(--dark); line-height: 1; }
.stat-card .stat-label { font-size: 13px; color: var(--gray); margin-top: 4px; }
.stat-card .stat-change { font-size: 12px; margin-top: 8px; }

/* ---- Admin Sidebar ---- */
.admin-layout { display: flex; min-height: 100vh; background: var(--gray-pale); }
.admin-sidebar {
  width: 260px;
  background: var(--dark);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: fixed;
  top: 0; bottom: 0; left: 0;
  overflow-y: auto;
  z-index: 200;
  transition: transform 0.3s ease;
}
.admin-main {
  margin-left: 260px;
  flex: 1;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.admin-sidebar-brand {
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-logo {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  background: var(--gradient-cyan);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 800; color: #fff; flex-shrink: 0;
}

.sidebar-brand-text { color: #fff; font-size: 14px; font-weight: 700; line-height: 1.2; }
.sidebar-brand-sub { color: rgba(255,255,255,0.4); font-size: 11px; }

.admin-nav { padding: 16px 12px; flex: 1; }
.nav-section-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  padding: 16px 8px 6px;
}

.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.65);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
  margin-bottom: 2px;
}

.admin-nav-link:hover, .admin-nav-link.active {
  background: rgba(30,90,168,0.18);
  color: var(--sky);
}

.admin-nav-link.active { border-left: 3px solid var(--sky); }
.admin-nav-link i { width: 18px; text-align: center; font-size: 15px; }

.admin-topbar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-light);
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.admin-content { padding: 28px; flex: 1; }

.admin-page-header {
  margin-bottom: 24px;
}
.admin-page-header h1 { font-size: 22px; font-weight: 800; color: var(--dark); margin: 0; }
.admin-page-header p { font-size: 14px; color: var(--gray); margin: 4px 0 0; }

/* ---- Status Colors ---- */
.status-pending { color: #92400e; background: #fffbeb; }
.status-under_review { color: #1e40af; background: #eff6ff; }
.status-accepted { color: #065f46; background: #ecfdf5; }
.status-rejected { color: #7f1d1d; background: #fef2f2; }

/* ---- Table ---- */
.table-modern { border-collapse: separate; border-spacing: 0; width: 100%; }
.table-modern th {
  background: var(--dark);
  color: rgba(255,255,255,0.8);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 12px 16px;
  white-space: nowrap;
}
.table-modern td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--gray-light);
  font-size: 13px;
  vertical-align: middle;
}
.table-modern tr:last-child td { border-bottom: none; }
.table-modern tr:hover td { background: rgba(30,90,168,0.03); }

@media (max-width: 992px) {
  .admin-sidebar { transform: translateX(-100%); }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-main { margin-left: 0; }
}
