* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Roboto, system-ui, -apple-system, sans-serif;
}

body {
  background: #f4f7fc;
  color: #1e293b;
  line-height: 1.6;
}

:root {
  --primary-blue: #0b3b6b;
  --primary-red: #b22234;
  --pure-white: #ffffff;
  --light-blue: #e6f0fa;
  --dark-text: #0a1e2f;
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  --radius: 32px;
}

a { text-decoration: none; color: inherit; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ----- HEADER / NAVIGATION ----- */
.navbar {
  background: var(--pure-white);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 999;
  border-bottom: 3px solid var(--primary-red);
  backdrop-filter: blur(4px);
  background: rgba(255, 255, 255, 0.96);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--primary-red);
  flex-shrink: 0;
}

.logo-text-block {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-text-block .main-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary-blue);
  letter-spacing: -0.02em;
}
.logo-text-block .main-title span {
  color: var(--primary-red);
}

.logo-text-block .sub-title {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--primary-blue);
  letter-spacing: 0.3px;
  opacity: 0.85;
  text-transform: uppercase;
  margin-top: -0.1rem;
}

.logo-text-block .sub-title i {
  color: var(--primary-red);
  margin: 0 0.2rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--dark-text);
  font-weight: 600;
  font-size: 1rem;
  transition: 0.2s;
  padding: 0.4rem 0;
  border-bottom: 3px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-blue);
  border-bottom-color: var(--primary-red);
}

.nav-links a.cta-link {
  background: var(--primary-red);
  color: white;
  padding: 0.6rem 1.8rem;
  border-radius: 60px;
  border-bottom: none;
  font-weight: 700;
  transition: background 0.2s, transform 0.1s;
  box-shadow: 0 4px 10px rgba(178, 34, 52, 0.25);
}

.nav-links a.cta-link:hover {
  background: #8b1a1f;
  transform: scale(1.02);
  border-bottom: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0.2rem;
}

.hamburger span {
  width: 30px;
  height: 3.5px;
  background: var(--primary-blue);
  border-radius: 6px;
  transition: 0.3s;
}

.page { animation: fadeUp 0.4s ease; }

@keyframes fadeUp {
  0% { opacity: 0.3; transform: translateY(12px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ----- HERO SLIDER ----- */
.hero-slider {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  margin: 1.8rem 0 2.5rem;
  box-shadow: var(--shadow);
  background: var(--primary-blue);
  min-height: 380px;
}

.slides { display: flex; transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94); }

.slide {
  min-width: 100%;
  padding: 3.5rem 3rem;
  background: linear-gradient(135deg, #0b3b6b 0%, #1a4b78 100%);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 380px;
  position: relative;
  background-size: cover;
  background-position: center;
}

.slide.has-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11,59,107,0.85) 0%, rgba(11,59,107,0.55) 100%);
}

.slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.06) 0%, transparent 60%);
  pointer-events: none;
}

.slide-content { max-width: 680px; position: relative; z-index: 2; }
.slide-content h2 { font-size: 2.8rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 0.6rem; }
.slide-content h2 i { color: #ffd700; margin-right: 0.5rem; }
.slide-content p { font-size: 1.2rem; opacity: 0.92; margin-bottom: 1.8rem; }

.slide-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  padding: 0.4rem 1.4rem;
  border-radius: 60px;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid rgba(255,255,255,0.2);
  margin-bottom: 0.8rem;
}

.slider-controls { position: absolute; bottom: 1.5rem; right: 2rem; display: flex; gap: 0.8rem; z-index: 5; }
.slider-controls button {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white; width: 44px; height: 44px; border-radius: 50%;
  font-size: 1.2rem; cursor: pointer; transition: 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.slider-controls button:hover { background: white; color: var(--primary-blue); }

.slider-dots { position: absolute; bottom: 1.8rem; left: 2rem; display: flex; gap: 0.7rem; z-index: 5; }
.slider-dots span {
  width: 12px; height: 12px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.4); cursor: pointer; transition: 0.3s;
  border: 1px solid rgba(255,255,255,0.2);
}
.slider-dots span.active-dot { background: white; transform: scale(1.2); border-color: white; }

.hero-cta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem 2rem;
  background: white; padding: 1.4rem 2rem; border-radius: 80px; box-shadow: var(--shadow);
  margin-top: -1.2rem; margin-bottom: 2.8rem; position: relative; z-index: 6;
  border-left: 6px solid var(--primary-red);
}

.bold-reg-link {
  font-weight: 800; font-size: 1.15rem; background: var(--primary-red); color: white;
  padding: 0.7rem 2.2rem; border-radius: 60px; transition: 0.2s;
  box-shadow: 0 4px 12px rgba(178, 34, 52, 0.3);
  display: inline-flex; align-items: center; gap: 0.6rem;
}
.bold-reg-link:hover { background: #8b1a1f; transform: scale(1.02); }

.management-link {
  font-weight: 600; background: var(--light-blue); padding: 0.6rem 1.8rem; border-radius: 60px;
  color: var(--primary-blue); border: 1px solid #cbd9e8; transition: 0.2s;
  display: inline-flex; align-items: center; gap: 0.6rem;
}
.management-link:hover { background: var(--primary-blue); color: white; border-color: var(--primary-blue); }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; margin: 2.5rem 0; }
.feature-card { background: white; padding: 2rem 1.6rem; border-radius: 28px; box-shadow: var(--shadow); border-left: 6px solid var(--primary-red); transition: 0.25s; }
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08); }
.feature-card i { font-size: 2.4rem; color: var(--primary-blue); margin-bottom: 0.6rem; }

.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; margin: 2.5rem 0; }
.gallery img { width: 100%; height: 260px; object-fit: cover; border-radius: 24px; box-shadow: var(--shadow); }

.about-section, .contact-wrapper, .reg-card, .auth-card, .admin-card {
  background: white; border-radius: var(--radius); padding: 2.8rem; box-shadow: var(--shadow); margin: 2.5rem 0;
}

.about-section h2, .reg-card h2, .page-title {
  color: var(--primary-blue); border-left: 6px solid var(--primary-red); padding-left: 1.2rem; margin-bottom: 1.8rem;
}

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.about-grid ul { list-style: none; }
.about-grid ul li { margin-bottom: 0.7rem; display: flex; align-items: center; gap: 0.7rem; }
.about-grid ul li i { color: var(--primary-red); width: 1.4rem; }

.contact-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.contact-info .info-item { margin: 1.2rem 0; display: flex; align-items: center; gap: 0.8rem; }
.contact-info i { color: var(--primary-red); width: 1.8rem; }

.contact-form input, .contact-form textarea, .reg-grid input, .reg-grid select, .reg-grid textarea,
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 0.9rem 1.4rem; border: 1px solid #dce2ec; border-radius: 60px;
  margin-bottom: 1rem; font-size: 1rem; background: #f8faff; transition: 0.2s;
}
.contact-form input:focus, .contact-form textarea:focus, .reg-grid input:focus, .reg-grid select:focus,
.form-field input:focus, .form-field select:focus { border-color: var(--primary-blue); outline: none; background: white; }
.contact-form textarea, .form-field textarea { border-radius: 28px; min-height: 130px; resize: vertical; }

.contact-form button, .reg-submit, .btn-primary {
  background: var(--primary-blue); color: white; border: none; padding: 0.9rem 2.8rem;
  border-radius: 60px; font-weight: 700; font-size: 1rem; cursor: pointer; transition: 0.2s;
  display: inline-flex; align-items: center; gap: 0.5rem; justify-content: center;
}
.contact-form button:hover, .reg-submit:hover, .btn-primary:hover { background: var(--primary-red); }

.btn-outline {
  background: white; color: var(--primary-blue); border: 2px solid var(--primary-blue);
  padding: 0.8rem 2.2rem; border-radius: 60px; font-weight: 700; cursor: pointer; transition: 0.2s;
  display: inline-flex; align-items: center; gap: 0.5rem; justify-content: center;
}
.btn-outline:hover { background: var(--primary-blue); color: white; }

.btn-danger { background: var(--primary-red); color: white; border: none; padding: 0.7rem 1.6rem; border-radius: 50px; font-weight: 700; cursor: pointer; }
.btn-danger:hover { background: #8b1a1f; }
.btn-small { padding: 0.5rem 1.2rem; font-size: 0.85rem; border-radius: 40px; }

.reg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ----- FEE BREAKDOWN ----- */
.fee-box {
  background: var(--light-blue); border-radius: 28px; padding: 1.8rem 2rem; margin: 1.8rem 0;
  border: 2px dashed var(--primary-blue);
}
.fee-box h3 { color: var(--primary-blue); margin-bottom: 1rem; }
.fee-table { width: 100%; border-collapse: collapse; }
.fee-table td { padding: 0.55rem 0.2rem; border-bottom: 1px solid rgba(11,59,107,0.12); }
.fee-table td:last-child { text-align: right; font-weight: 600; }
.fee-table tr.fee-total td { font-weight: 800; font-size: 1.15rem; color: var(--primary-red); border-bottom: none; padding-top: 1rem; }

/* ----- PAYMENT ----- */
.payment-gateway {
  background: var(--light-blue); padding: 1.4rem 2rem; border-radius: 60px;
  border: 2px dashed var(--primary-red); margin: 1.8rem 0;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
}
.payment-gateway .pay-btn {
  background: var(--primary-red); color: white; border: none; padding: 0.7rem 2.5rem;
  border-radius: 60px; font-weight: 700; cursor: pointer; transition: 0.2s;
}
.payment-gateway .pay-btn:hover { background: #8b1a1f; }

.pay-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; margin: 2rem 0; }
.pay-option {
  background: white; border: 2px solid #e2e8f0; border-radius: 24px; padding: 1.8rem;
  text-align: center; cursor: pointer; transition: 0.2s; display: block;
}
.pay-option:hover, .pay-option.selected { border-color: var(--primary-red); box-shadow: var(--shadow); transform: translateY(-3px); }
.pay-option i { font-size: 2.2rem; color: var(--primary-blue); margin-bottom: 0.8rem; display: block; }
.pay-option h4 { color: var(--dark-text); margin-bottom: 0.4rem; }
.pay-option p { font-size: 0.88rem; color: #64748b; }

.bank-details { background: var(--light-blue); border-radius: 24px; padding: 1.6rem 2rem; margin: 1.5rem 0; }
.bank-details table td { padding: 0.4rem 1rem 0.4rem 0; }
.bank-details table td:first-child { font-weight: 600; color: var(--primary-blue); }

/* ----- BADGES ----- */
.badge { display: inline-block; padding: 0.3rem 1rem; border-radius: 60px; font-size: 0.8rem; font-weight: 700; }
.badge-paid { background: #dcfce7; color: #166534; }
.badge-pending { background: #fef3c7; color: #92400e; }
.badge-unpaid { background: #fee2e2; color: #991b1b; }

.alert { padding: 1rem 1.6rem; border-radius: 20px; margin-bottom: 1.5rem; font-weight: 600; }
.alert-success { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.alert-info { background: var(--light-blue); color: var(--primary-blue); border: 1px solid #bcd6ef; }

/* ----- FOOTER ----- */
.footer { background: var(--primary-blue); color: white; padding: 3rem 0 2rem; margin-top: 4rem; border-radius: 40px 40px 0 0; }
.footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2rem; }
.footer a { color: #cfddee; }
.footer a:hover { color: white; }

/* ----- ADMIN LAYOUT ----- */
.admin-wrap { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 250px; background: var(--primary-blue); color: white; flex-shrink: 0;
  padding: 1.6rem 0; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.admin-sidebar .brand { padding: 0 1.6rem 1.6rem; font-weight: 800; font-size: 1.2rem; border-bottom: 1px solid rgba(255,255,255,0.15); margin-bottom: 1rem; }
.admin-sidebar a {
  display: flex; align-items: center; gap: 0.8rem; padding: 0.9rem 1.6rem; color: #cfddee; font-weight: 600; transition: 0.2s;
  border-left: 4px solid transparent;
}
.admin-sidebar a:hover, .admin-sidebar a.active { background: rgba(255,255,255,0.08); color: white; border-left-color: var(--primary-red); }
.admin-main { flex: 1; padding: 2rem 2.5rem; max-width: 100%; overflow-x: auto; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; flex-wrap: wrap; gap: 1rem; }
.admin-topbar h1 { color: var(--primary-blue); }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; margin-bottom: 2rem; }
.stat-card { background: white; border-radius: 22px; padding: 1.6rem; box-shadow: var(--shadow); border-left: 6px solid var(--primary-blue); }
.stat-card .num { font-size: 2rem; font-weight: 800; color: var(--primary-blue); }
.stat-card.red { border-left-color: var(--primary-red); }
.stat-card.red .num { color: var(--primary-red); }
.stat-card .label { color: #64748b; font-size: 0.9rem; margin-top: 0.2rem; }

.data-table { width: 100%; border-collapse: collapse; background: white; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
.data-table th, .data-table td { padding: 0.9rem 1.1rem; text-align: left; border-bottom: 1px solid #eef1f6; font-size: 0.92rem; }
.data-table th { background: var(--light-blue); color: var(--primary-blue); font-weight: 700; }
.data-table tr:hover { background: #f8faff; }

.filter-bar { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 1.5rem; align-items: center; }
.filter-bar select, .filter-bar input { padding: 0.6rem 1.1rem; border-radius: 40px; border: 1px solid #dce2ec; background: white; }

.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--primary-blue); padding: 2rem; }
.login-box { background: white; border-radius: 28px; padding: 2.8rem; width: 100%; max-width: 400px; box-shadow: var(--shadow); text-align: center; }
.login-box img { width: 70px; height: 70px; border-radius: 50%; margin-bottom: 1rem; }

.thumb-preview { width: 100%; max-width: 320px; border-radius: 16px; margin: 0.8rem 0; box-shadow: var(--shadow); display: block; }

/* ----- RESPONSIVE ----- */
@media (max-width: 900px) {
  .about-grid, .contact-wrapper, .reg-grid { grid-template-columns: 1fr; }
  .slide-content h2 { font-size: 2.2rem; }
  .admin-sidebar { position: fixed; left: -260px; z-index: 998; transition: 0.3s; }
  .admin-sidebar.open { left: 0; }
  .admin-main { padding: 1.5rem; }
}

@media (max-width: 760px) {
  .hamburger { display: flex; }
  .nav-links {
    position: absolute; top: 100%; left: 0; width: 100%; background: white;
    flex-direction: column; align-items: flex-start; padding: 2rem 2rem; gap: 0.6rem;
    box-shadow: 0 24px 40px rgba(0,0,0,0.1); border-top: 2px solid #eee; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; padding: 0.6rem 0; border-bottom: 1px solid #f0f2f5; }
  .nav-links a.cta-link { background: var(--primary-red); color: white; text-align: center; justify-content: center; border-radius: 60px; }
  .container { padding: 0 1.2rem; }
  .hero-cta { flex-direction: column; align-items: stretch; border-radius: 28px; padding: 1.5rem; gap: 1rem; }
  .slide { padding: 2.5rem 1.5rem; min-height: 300px; }
  .slide-content h2 { font-size: 1.8rem; }
  .slider-controls { bottom: 0.8rem; right: 1rem; }
  .slider-dots { bottom: 1rem; left: 1rem; }
  .slider-dots span { width: 10px; height: 10px; }
  .logo-text-block .main-title { font-size: 1.1rem; }
  .logo-text-block .sub-title { font-size: 0.55rem; }
}

@media (max-width: 480px) {
  .slide-content h2 { font-size: 1.5rem; }
  .slide-content p { font-size: 1rem; }
  .payment-gateway { flex-direction: column; gap: 0.8rem; align-items: stretch; text-align: center; }
  .reg-grid { grid-template-columns: 1fr; }
}

.text-muted { color: #475569; }
.mt-2 { margin-top: 1.5rem; }
.flex-center { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
