:root {
  --primary-navy: #0b1d3a;
  --soft-navy: #142850;
  --cream-bg: #f8f5f0;
  --white: #ffffff;
  --gold-accent: #FFC842;
  --text-dark: #1f2937;
  --text-muted: #6b7280;
  --border-soft: rgba(0, 0, 0, 0.06);
}

/* ================= GLOBAL FONT ================= */
body {
  background: var(--cream-bg);
  color: var(--text-dark);
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  color: #1f2937;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
}

.navbar,
.btn,
.nav-link {
  font-family: "Poppins", sans-serif;
}

.section {
  padding: 150px 0 !important;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}
.section-title p {
  color: #64748b;
}

/* =========================
   LAYOUT
========================= */
.layout-wrapper {
  display: flex;
  align-items: stretch;
  min-height: 100vh;
}

.content-wrapper {
  flex: 1;
  padding: 24px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* =========================
   TABLE
========================= */
.responsive-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 10px;
}
.responsive-table thead th {
  font-size: 13px;
  text-transform: uppercase;
  color: #6b7280;
  border: none;
  padding: 12px 16px;
}
.responsive-table tbody tr {
  background: #f9fafb;
  border-radius: 12px;
  transition: 0.2s ease;
}
.responsive-table tbody tr:hover {
  background: #eef2ff;
}
.responsive-table tbody tr td {
  border: none;
  padding: 14px 16px;
  vertical-align: middle;
}

/* =========================
   CARDS
========================= */
.modern-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
  padding: 20px;
  border: none;
}

/* =========================
   FILTER BAR
========================= */
.filter-bar {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}
.filter-bar .form-control,
.filter-bar .form-select {
  min-width: 200px;
}

/* =========================
   STUDENT FILTER
========================= */
.students-filter-bar {
  display: flex;
  gap: 15px;
  align-items: center;
}
.students-filter-bar .search-box {
  position: relative;
  flex: 1;
}
.students-filter-bar .search-box i {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 14px;
}
.students-filter-bar .search-box input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  transition: 0.2s ease;
}
.students-filter-bar .search-box input:focus {
  outline: none;
  background: #fff;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* =========================
   SELECT
========================= */
.modern-select {
  border-radius: 12px;
  padding: 10px 14px;
  border: 1px solid #e2e8f0;
  background: #fff;
  transition: 0.2s ease;
}
.modern-select:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* =========================
   BADGE
========================= */
.badge {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 20px;
}

/* =========================
   ACTION BUTTONS
========================= */
.action-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.action-buttons .btn {
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
}
.action-buttons .btn-warning {
  background: #fbbf24;
  border: none;
}
.action-buttons .btn-danger {
  background: #ef4444;
  border: none;
}
.action-buttons .btn-info {
  background: #06b6d4;
  border: none;
  color: white;
}

/* =========================
   PAGINATION
========================= */
.pagination {
  margin-top: 25px;
}
.pagination .page-link {
  border-radius: 8px !important;
  margin: 0 4px;
  border: none;
  background: #f3f4f6;
  color: #374151;
}
.pagination .page-item.active .page-link {
  background: #2563eb;
  color: #fff;
}

/* =========================
   FOOTER
========================= */
.footer-section {
  background: linear-gradient(135deg, #071a2d, #0c2f4f);
  color: #cfd8e3;
}
.footer-section a {
  color: #cfd8e3;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 6px;
}
.footer-section a:hover {
  color: #0ea5e9;
}
.footer-section h5, .footer-section h6 {
  margin-bottom: 15px;
}
.footer-section .conatact-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-section .conatact-info span {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.footer-section .conatact-info i {
  color: #fbb93f;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
  margin-top: 3px;
}
.footer-section .conatact-info a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}
.footer-section .conatact-info a:hover {
  color: #fbb93f;
}

@media (max-width: 768px) {
  .responsive-table thead {
    display: none;
  }
  .responsive-table tbody tr {
    display: block;
    background: #ffffff;
    margin-bottom: 18px;
    padding: 16px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  }
  .responsive-table tbody td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border: none;
    font-size: 14px;
  }
  .responsive-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: #1a5ebe;
  }
  .responsive-table td[data-label=Action] {
    margin-top: 10px;
    gap: 8px;
  }
  .responsive-table .btn {
    font-size: 13px;
    padding: 4px 10px;
  }
  .filter-bar {
    flex-direction: column;
  }
  .filter-bar .form-control,
  .filter-bar .form-select {
    width: 100%;
  }
}
/* ================= NAVBAR PREMIUM UPGRADE ================= */
.premium-navbar {
  backdrop-filter: blur(8px);
  background: linear-gradient(135deg, rgba(11, 29, 58, 0.4), rgba(15, 38, 70, 0.8));
  padding: 0;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.premium-navbar .navbar-brand {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.5px;
}
.premium-navbar .navbar-brand img {
  height: 65px;
  transition: all 0.3s ease;
}
.premium-navbar .ribbon-message {
  background: #fbb93f;
  border: 1px solid rgba(251, 185, 63, 0.25);
  padding: 4px 12px;
  border-radius: 0;
  font-size: 14px;
  font-weight: 500;
  color: #000;
  letter-spacing: 0.5px;
  width: 100%;
  text-align: center;
}
.premium-navbar {
  /* Nav Links */
}
.premium-navbar .nav-link {
  position: relative;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  font-size: 15px;
  transition: all 0.25s ease;
  padding: 6px 0;
}
.premium-navbar .nav-link:hover {
  color: #ffffff;
}
.premium-navbar .nav-link.active {
  color: #fff;
  font-weight: 600;
}
.premium-navbar .nav-link.active::after {
  width: 100%;
}
.premium-navbar .nav-link.active:hover {
  color: #fff;
}
.premium-navbar .nav-link {
  /* Elegant underline animation */
}
.premium-navbar .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, #fbb93f, #f59e0b);
  transition: width 0.3s ease;
  border-radius: 10px;
}
.premium-navbar .nav-link:hover::after {
  width: 100%;
}
.premium-navbar {
  /* Buttons inside navbar */
}
.premium-navbar .btn {
  font-weight: 600;
  border-radius: 40px;
  padding: 8px 20px;
  transition: all 0.3s ease;
}
.premium-navbar {
  /* Outline button (Register / Dashboard) */
}
.premium-navbar .btn-outline-light {
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
}
.premium-navbar .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  color: #f4b740;
}
.premium-navbar {
  /* Primary button (Student Login) */
}
.premium-navbar .btn-primary {
  background: linear-gradient(135deg, #fbb93f, #f59e0b);
  border: none;
  color: #000;
  box-shadow: 0 6px 18px rgba(251, 185, 63, 0.35);
}
.premium-navbar .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(251, 185, 63, 0.45);
}
.premium-navbar {
  /* Logout red button */
}
.premium-navbar .btn-danger {
  border-radius: 40px;
  padding: 8px 20px;
  box-shadow: 0 6px 16px rgba(239, 68, 68, 0.3);
}
.premium-navbar .btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(239, 68, 68, 0.45);
}
.premium-navbar .nav-ribbon {
  width: 100%;
  font-size: 13px;
  padding: 4px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.premium-navbar .nav-ribbon .container {
  flex-wrap: wrap;
}
.premium-navbar .nav-ribbon .ribbon-left,
.premium-navbar .nav-ribbon .ribbon-right {
  display: flex;
  align-items: center;
  gap: 18px;
}
.premium-navbar .nav-ribbon .ribbon-left span a,
.premium-navbar .nav-ribbon .ribbon-right span a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}
.premium-navbar .nav-ribbon .ribbon-left span a:hover,
.premium-navbar .nav-ribbon .ribbon-right span a:hover {
  color: #fbb93f;
}
.premium-navbar .nav-ribbon span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.75);
}
.premium-navbar .nav-ribbon i {
  color: #fbb93f;
  font-size: 16px;
}
.premium-navbar .nav-ribbon .social-icons {
  display: flex;
  gap: 8px;
}
.premium-navbar .nav-ribbon .social-icons a {
  color: #fff;
  font-size: 14px;
  transition: 0.2s;
}
.premium-navbar .nav-ribbon .social-icons a:hover {
  color: #fbb93f;
}
@media (max-width: 576px) {
  .premium-navbar .nav-ribbon {
    display: none;
  }
}

/* ================= HAMBURGER ================= */
.hamburger {
  position: fixed;
  top: 18px;
  right: 20px;
  width: 40px;
  height: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  background: transparent;
  border: none;
  z-index: 2000;
}
.hamburger span {
  height: 2px;
  width: 24px;
  background: #fff;
  transition: 0.3s ease;
}
.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ================= MOBILE MENU ================= */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: linear-gradient(180deg, #0b1d3a, #0f2646);
  backdrop-filter: blur(20px);
  padding: 100px 25px 30px;
  transition: 0.4s ease;
  z-index: 1500;
  display: flex;
  flex-direction: column;
}
.mobile-menu ul {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}
.mobile-menu ul li {
  margin-bottom: 0;
}
.mobile-menu ul li a {
  display: block;
  color: #fff;
  font-size: 17px;
  text-decoration: none;
  padding: 12px 12px;
  border-radius: 8px;
  position: relative;
  transition: all 0.25s ease;
  /* menu separator line */
}
.mobile-menu ul li a:hover {
  color: #fbb93f;
  background: rgba(255, 255, 255, 0.05);
  padding-left: 16px;
}
.mobile-menu ul li {
  /* active page highlight */
}
.mobile-menu ul li.active a {
  background: rgba(255, 255, 255, 0.08);
  color: #fbb93f;
  font-weight: 500;
}
.mobile-menu {
  /* buttons directly under menu */
}
.mobile-menu .mobile-buttons {
  margin-top: 15px;
}
.mobile-menu .mobile-buttons .btn {
  border-radius: 40px;
  font-weight: 600;
  padding: 10px 18px;
  transition: 0.25s;
}
.mobile-menu .mobile-buttons .btn-outline-light {
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.mobile-menu .mobile-buttons .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fbb93f;
}
.mobile-menu .mobile-buttons .btn-primary {
  background: linear-gradient(135deg, #fbb93f, #f59e0b);
  border: none;
  color: #000;
  box-shadow: 0 6px 18px rgba(251, 185, 63, 0.35);
}
.mobile-menu .mobile-buttons .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(251, 185, 63, 0.45);
}
.mobile-menu.active {
  right: 0;
}
.mobile-menu .mobile-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 30px;
  font-size: 14px;
}
.mobile-menu .mobile-contact span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.85);
}
.mobile-menu .mobile-contact span a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}
.mobile-menu .mobile-contact span a:hover {
  color: #fbb93f;
}
.mobile-menu .mobile-contact i {
  color: #fbb93f;
}

/* ================= OVERLAY ================= */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  opacity: 0;
  visibility: hidden;
  transition: 0.35s ease;
  z-index: 1400;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ===============================
   DESKTOP MENU VISIBILITY CONTROL
================================ */
.desktop-menu {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 0;
}
@media (max-width: 991px) {
  .desktop-menu {
    display: none;
  }
}

.btn-cta {
  background: #f59e0b;
  color: white;
  border-radius: 30px;
  padding: 8px 28px;
  border: none;
  transition: 0.3s ease;
}
.btn-cta:hover {
  background: rgb(206.7275590551, 133.0173228346, 8.4724409449);
}

.btn-contact {
  border-radius: 30px;
  padding: 8px 28px;
  background: transparent;
  transition: 0.3s;
}

.card-modern {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  transition: 0.3s ease;
}
.card-modern:hover {
  transform: translateY(-6px);
}

.testimonial-section {
  position: relative;
  padding: 100px 0;
  background: url("../img/testimonial-bg.jpg") center/cover no-repeat;
  overflow: hidden;
}

.testimonial-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 120, 180, 0.75);
}

.testimonial-wrapper {
  position: relative;
  height: 220px;
}

.testimonial {
  position: absolute;
  width: 100%;
  left: 0;
  top: 30px;
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.6s ease;
  color: white;
}

.testimonial.active {
  opacity: 1;
  transform: translateY(0);
}

.testi-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  margin-bottom: 15px;
}

.feature-card {
  background: #fff;
  padding: 40px 25px;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  height: 100%;
}
.feature-card h5 {
  font-weight: 600;
  margin-top: 15px;
  margin-bottom: 10px;
}
.feature-card p {
  font-size: 14px;
  color: #666;
  margin: 0;
}
.feature-card:hover {
  transform: translateY(-6px);
}

.feature-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  font-size: 28px;
}

/* colors */
.bg-red {
  background: rgba(255, 82, 82, 0.15);
  color: #ff5252;
}

.bg-blue {
  background: rgba(33, 150, 243, 0.15);
  color: #2196f3;
}

.bg-yellow {
  background: rgba(255, 193, 7, 0.2);
  color: #e0a800;
}

.bg-green {
  background: rgba(40, 167, 69, 0.15);
  color: #28a745;
}

.feature-card {
  background: #fff;
  padding: 40px 25px;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  height: 100%;
}
.feature-card h5 {
  font-weight: 600;
  margin-top: 15px;
  margin-bottom: 10px;
}
.feature-card p {
  font-size: 14px;
  color: #666;
  margin: 0;
}
.feature-card:hover {
  transform: translateY(-6px);
}

.feature-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  font-size: 28px;
}

.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loading-box {
  background: #fff;
  padding: 30px 40px;
  border-radius: 12px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.d-none {
  display: none !important;
}

.search-input {
  padding-left: 40px;
  border-radius: 12px;
  height: 44px;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 16px;
}

/* ================================
   PREPIQ PREMIUM THEME (Muted Navy + Cream)
================================ */
/* --------- VARIABLES --------- */
:root {
  --primary-navy: #0b1d3a;
  --soft-navy: #142850;
  --cream-bg: #f8f5f0;
  --white: #ffffff;
  --gold-accent: #FFC842;
  --text-dark: #1f2937;
  --text-muted: #6b7280;
  --border-soft: rgba(0, 0, 0, 0.06);
}

/* --------- GLOBAL --------- */
.registerModal .form-group {
  margin-bottom: 18px;
}
.registerModal .input-wrapper {
  position: relative;
}
.registerModal .input-wrapper input,
.registerModal .input-wrapper select {
  padding-right: 40px;
}
.registerModal .valid-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  background: #2f9e44;
  color: #fff;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.registerModal .form-group.valid .valid-icon {
  display: flex;
}
.registerModal .form-group.valid input {
  border: 2px solid #2ecc71;
  background: #eefaf1;
}
.registerModal .form-group.invalid input {
  border: 2px solid #ff3b3b;
  background: #fff4f4;
}

.section-padding {
  padding: 90px 0;
}

/* ================================
   HERO SECTION
================================ */
.hero-section {
  background: radial-gradient(circle at 20% 30%, rgba(201, 162, 39, 0.15), transparent 40%), linear-gradient(135deg, var(--primary-navy), var(--soft-navy));
  color: var(--white);
  padding: 160px 0 60px 0;
}
.hero-section .min-vh-75 {
  min-height: 75vh;
}
.hero-section .hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 18px;
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 50px;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(251, 185, 63, 0.35);
  margin-bottom: 20px;
  box-shadow: 0 0 0 rgba(251, 185, 63, 0);
  animation: heroBadgeGlow 2.2s ease-in-out infinite;
}
@keyframes heroBadgeGlow {
  0% {
    box-shadow: 0 0 0 rgba(251, 185, 63, 0);
  }
  50% {
    box-shadow: 0 0 18px rgba(251, 185, 63, 0.55), 0 0 35px rgba(251, 185, 63, 0.25);
  }
  100% {
    box-shadow: 0 0 0 rgba(251, 185, 63, 0);
  }
}
.hero-section .hero-title {
  font-size: 46px;
  font-weight: 800;
  line-height: 1.3;
}
.hero-section .hero-title span {
  color: var(--gold-accent);
}
.hero-section .hero-subtitle {
  margin-top: 18px;
  opacity: 0.75;
  font-size: 17px;
  max-width: 500px;
}
.hero-section .hero-buttons {
  margin-top: 35px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.hero-section .hero-image-wrapper {
  background: radial-gradient(circle, rgba(201, 162, 39, 0.25), transparent 60%);
  border-radius: 50%;
  padding: 50px;
}
.hero-section .hero-image {
  max-height: 380px;
}

/* ================================
   BUTTONS
================================ */
.btn-primary {
  background: var(--gold-accent);
  color: var(--primary-navy);
  font-weight: 600;
  padding: 8px 30px;
  border-radius: 40px;
  border: none;
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px rgba(201, 162, 39, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(201, 162, 39, 0.4);
}

.btn-outline-light {
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: var(--white);
  border-radius: 40px;
  padding: 8px 28px;
}
.btn-outline-light:hover {
  background: var(--white);
  color: var(--primary-navy);
}

/* ================================
   COURSE CARDS
================================ */
.course-card {
  background: var(--white);
  border-radius: 14px;
  padding: 32px;
  border: 1px solid var(--border-soft);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05), 0 2px 5px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
  height: 100%;
}
.course-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08), 0 4px 10px rgba(0, 0, 0, 0.05);
}
.course-card .course-title {
  font-weight: 600;
}
.course-card .course-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 10px;
}
.course-card .course-price {
  font-size: 30px;
  font-weight: 700;
  margin-top: 20px;
  color: var(--primary-navy);
}
.course-card .course-price span {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
}

/* ================================
   CTA SECTION
================================ */
.cta-section {
  background: linear-gradient(135deg, var(--primary-navy), var(--soft-navy));
  padding: 100px 0;
  color: var(--white);
  text-align: center;
}
.cta-section h2 {
  font-weight: 800;
  margin-bottom: 15px;
}
.cta-section p {
  opacity: 0.8;
  margin-bottom: 30px;
}
.cta-section .btn-light {
  background: var(--gold-accent);
  color: var(--primary-navy);
  border-radius: 40px;
  padding: 12px 35px;
  font-weight: 600;
}

/* ================================
   FOOTER
================================ */
.footer {
  background: var(--primary-navy);
  color: rgba(255, 255, 255, 0.75);
  padding: 60px 0;
}
.footer h5 {
  color: var(--white);
  font-weight: 600;
  margin-bottom: 15px;
}
.footer a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}
.footer a:hover {
  color: var(--gold-accent);
}
.footer .copyright {
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 14px;
}

.contact-section {
  margin-top: 80px;
}
.contact-section .contact-left {
  position: relative;
  min-height: 500px;
}
.contact-section .contact-left .contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.contact-section .contact-left .contact-card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 25px;
  border-radius: 14px;
  width: 320px;
  height: auto;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}
.contact-section .contact-left .contact-card h4 {
  margin-bottom: 20px;
  font-weight: 600;
}
.contact-section .contact-left .contact-card ul {
  list-style: none;
  padding: 0;
}
.contact-section .contact-left .contact-card ul li {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}
.contact-section .contact-left .contact-card ul li i {
  margin-right: 10px;
  color: #1e3a5f;
}
.contact-section .contact-right {
  background: linear-gradient(135deg, #1e3a5f, #2c5282);
  color: white;
  display: flex;
  align-items: center;
}
.contact-section .contact-right .contact-form-wrapper {
  padding: 80px;
}
@media (max-width: 768px) {
  .contact-section .contact-right .contact-form-wrapper {
    padding: 40px 20px;
  }
}
.contact-section .contact-right .contact-form-wrapper h2 {
  font-weight: 700;
  margin-bottom: 15px;
}
.contact-section .contact-right .contact-form-wrapper p {
  margin-bottom: 30px;
  opacity: 0.9;
}
.contact-section .contact-right .contact-form-wrapper .form-control {
  border-radius: 8px;
  border: none;
  padding: 12px;
}
.contact-section .contact-right .contact-form-wrapper .form-control:focus {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.4);
}
.contact-section .contact-right .contact-form-wrapper textarea {
  resize: none;
}
.contact-section .contact-right .contact-form-wrapper .btn-primary {
  background: white;
  color: #1e3a5f;
  font-weight: 600;
  border-radius: 8px;
}
.contact-section .contact-right .contact-form-wrapper .btn-primary:hover {
  background: #f1f1f1;
}
.contact-section .contact-right .contact-form-wrapper .form-message {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 20px;
  animation: fadeSlide 0.3s ease;
}
.contact-section .contact-right .contact-form-wrapper .form-message.success {
  background: #e6f7ed;
  color: #1e7e34;
  border: 1px solid #b7ebc6;
}
.contact-section .contact-right .contact-form-wrapper .form-message.error {
  background: #fdecea;
  color: #c92a2a;
  border: 1px solid #f5c2c7;
}
@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.contact-section .contact-right .contact-form-wrapper .form-group {
  position: relative;
}
.contact-section .contact-right .contact-form-wrapper .form-group input,
.contact-section .contact-right .contact-form-wrapper .form-group textarea {
  width: 100%;
  padding: 12px 45px 12px 14px;
  border-radius: 8px;
  border: 2px solid #d0d5dd;
  background: #fff;
  transition: all 0.2s ease;
}
.contact-section .contact-right .contact-form-wrapper .form-group input:focus,
.contact-section .contact-right .contact-form-wrapper .form-group textarea:focus {
  border-color: #f4b740;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(244, 183, 64, 0.15);
  outline: none;
}
.contact-section .contact-right .contact-form-wrapper .form-group.invalid input, .contact-section .contact-right .contact-form-wrapper .form-group.invalid textarea {
  border: 2px solid #e03131 !important;
  box-shadow: 0 0 0 3px rgba(224, 49, 49, 0.15);
}
.contact-section .contact-right .contact-form-wrapper .form-group.valid input, .contact-section .contact-right .contact-form-wrapper .form-group.valid textarea {
  border: 2px solid #2f9e44 !important;
  box-shadow: 0 0 0 3px rgba(47, 158, 68, 0.15);
}
.contact-section .contact-right .contact-form-wrapper .form-group .valid-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: #2f9e44;
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 14px;
  display: none;
  align-items: center;
  justify-content: center;
}
.contact-section .contact-right .contact-form-wrapper .form-group.valid .valid-icon {
  display: flex;
}

/* ================================
   RESPONSIVE
================================ */
@media (max-width: 768px) {
  .hero-section {
    text-align: center;
  }
  .hero-section .hero-title {
    font-size: 32px;
  }
  .hero-section .hero-buttons {
    justify-content: center;
  }
  .why_us h2 {
    margin-top: 16px;
  }
}
.managed-section {
  padding: 90px 0;
  background: radial-gradient(circle at 20% 20%, rgba(251, 185, 63, 0.15), transparent 40%), linear-gradient(135deg, var(--primary-navy), var(--soft-navy));
  color: var(--white);
  text-align: center;
}
.managed-section .section-subtitle {
  text-transform: uppercase;
  font-size: 16px;
  letter-spacing: 1px;
  color: var(--gold-accent);
  font-weight: 600;
  margin-bottom: 10px;
}
.managed-section .section-title {
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--white);
}
.managed-section .section-desc {
  max-width: 600px;
  color: #6c757d;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
}
.managed-section .mentor-card {
  height: 100%;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  backdrop-filter: blur(10px);
  padding: 34px 26px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: 0.35s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.managed-section .mentor-card:hover {
  transform: translateY(-8px);
  border-color: rgba(251, 185, 63, 0.35);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35), 0 0 25px rgba(251, 185, 63, 0.15);
}
.managed-section .mentor-image {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  -o-object-fit: cover;
     object-fit: cover;
  margin-bottom: 18px;
  border: 3px solid rgb(251, 185, 63);
  box-shadow: 0 0 18px rgba(251, 185, 63, 0.8);
}
.managed-section .mentor-name {
  font-weight: 600;
  margin-bottom: 4px;
}
.managed-section .mentor-name {
  font-weight: 600;
  margin-bottom: 4px;
}
.managed-section .mentor-role {
  font-size: 14px;
  color: var(--gold-accent);
  margin-bottom: 12px;
}

@media (max-width: 992px) {
  .managed-section {
    text-align: center;
  }
  .managed-section .section-desc {
    margin: 0 auto;
  }
  .managed-section .managed-image {
    margin-bottom: 30px;
  }
  .managed-section .managed-stats {
    justify-content: center;
    gap: 28px;
  }
}
/* ===============================
   TEACHERS CARD (DIFFERENT FROM FOUNDERS)
================================ */
.teacher-card {
  background: #fff;
  border-radius: 14px;
  padding: 28px 26px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  position: relative;
  transition: 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
  /* LEFT GOLD ACCENT */
}
.teacher-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 25px;
  bottom: 25px;
  width: 4px;
  background: linear-gradient(180deg, #fbb93f, #f59e0b);
  border-radius: 10px;
}
.teacher-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}
.teacher-card:hover .teacher-role {
  background: #fbb93f;
  color: #000;
}
.teacher-card {
  /* TEACHER PHOTO */
}
.teacher-card .teacher-avatar {
  width: 70px;
  height: 70px;
  margin-bottom: 14px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--gold-accent);
}
.teacher-card .teacher-avatar img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}
.teacher-card {
  /* NAME */
}
.teacher-card .teacher-name {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 3px;
}
.teacher-card {
  /* SUBJECT BADGE */
}
.teacher-card .teacher-role {
  font-size: 13px;
  background: rgba(251, 185, 63, 0.15);
  color: #d97706;
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 10px;
}
.teacher-card {
  /* BIO */
}
.teacher-card .teacher-bio {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 10px;
}
.teacher-card {
  /* EXPERIENCE */
}
.teacher-card small {
  background: #f2f2f2;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
}

.dashboard-card {
  border: none;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  transition: all 0.2s ease;
}
.dashboard-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}
.dashboard-card .card-title {
  font-size: 13px;
  color: #64748b;
}
.dashboard-card .card-value {
  font-size: 24px;
  font-weight: 700;
}
.dashboard-card .icon-box {
  width: 45px;
  height: 45px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dashboard-table {
  border-radius: 14px;
  border: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  background: white;
}
.dashboard-table thead {
  background: #f1f5f9;
}

.modern-card {
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}
.modern-card h3 {
  margin: 8px 0 0;
  font-weight: 600;
}
.modern-card.success h3 {
  color: #198754;
}
.modern-card.danger h3 {
  color: #dc3545;
}

.filter-bar {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.filter-bar .filter-item {
  background: #fff;
  border-radius: 10px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.filter-bar .filter-item input, .filter-bar .filter-item select {
  border: none;
  outline: none;
  background: transparent;
  min-width: 160px;
}

.table-card {
  background: #fff;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
}

.modern-table {
  width: 100%;
  border-collapse: collapse;
}
.modern-table th {
  font-weight: 600;
  padding: 14px;
  background: #f8f9fa;
}
.modern-table td {
  padding: 14px;
  border-top: 1px solid #eee;
}

.status-badge {
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
}
.status-badge.paid {
  background: #d4edda;
  color: #198754;
}
.status-badge.pending {
  background: #f8d7da;
  color: #dc3545;
}
.status-badge.under_review {
  background: #fff3cd;
  color: #856404;
}

.action-cell {
  text-align: right;
}

.btn-approve {
  background: #198754;
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: 6px;
}

.btn-receipt {
  background: #0d6efd;
  color: #fff;
  padding: 6px 14px;
  border-radius: 6px;
  text-decoration: none;
}

.modern-pagination {
  margin-top: 20px;
  text-align: center;
}
.modern-pagination button {
  border: none;
  padding: 6px 12px;
  margin: 0 4px;
  border-radius: 6px;
  background: #f1f3f5;
}
.modern-pagination button.active {
  background: #0d6efd;
  color: #fff;
}

.muted {
  color: #888;
}

.sidebar {
  width: 250px;
  min-width: 250px;
  min-height: 100vh;
  height: auto;
  background: linear-gradient(180deg, #111827, #1f2937);
  color: #cbd5e1;
  padding: 1.5rem 1rem;
  transition: transform 0.3s ease;
  position: relative;
  z-index: 1050;
}

.sidebar-heading {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #64748b;
  margin-bottom: 6px;
}

.sidebar-nav .nav-link {
  color: #cbd5e1;
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 6px;
  transition: 0.2s ease;
}
.sidebar-nav .nav-link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}
.sidebar-nav .nav-link.active {
  background: #2563eb;
  color: #fff;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

/* =========================
   MOBILE
========================= */
@media (max-width: 991px) {
  .sidebar {
    position: fixed;
    transform: translateX(-100%);
  }
  .sidebar.active {
    transform: translateX(0);
    top: 0;
  }
  .sidebar-overlay {
    display: none;
  }
  .sidebar-overlay.active {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1040;
  }
  .content-wrapper {
    padding: 1rem;
  }
}
.notification-bell {
  text-decoration: none;
}

.notification-bell i {
  transition: 0.3s ease;
}

.notification-bell:hover i {
  transform: scale(1.1);
}

.notification-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 7px;
  border-radius: 50px;
  min-width: 18px;
  text-align: center;
}

/* =========================
   CONTACT MESSAGES PAGE
========================= */
.page-title {
  font-weight: 600;
}

.message-cell {
  max-width: 280px;
  font-size: 14px;
  color: #374151;
  line-height: 1.4;
  word-break: break-word;
}

.date-badge {
  background: #eef2ff;
  color: #3730a3;
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 20px;
  font-weight: 500;
}

/* Improve table look */
.responsive-table tbody tr {
  background: #ffffff;
  border-radius: 12px;
  transition: 0.2s ease;
}
.responsive-table thead {
  background: #f9fafb;
}

.responsive-table tbody tr:hover {
  background: #f3f4f6;
}

@media (max-width: 768px) {
  .message-cell {
    max-width: 100%;
  }
}
@media (max-width: 768px) {
  .responsive-table thead {
    display: none;
  }
  .responsive-table tbody tr {
    display: block;
    background: #ffffff;
    margin-bottom: 18px;
    padding: 16px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  }
  .responsive-table tbody tr td {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px;
    border: none;
    font-size: 14px;
    gap: 12px;
    text-align: right;
  }
  /* Left label */
  .responsive-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: #1a5ebe;
    min-width: 90px;
    flex-shrink: 0;
    text-align: left;
  }
  /* Right value */
  .responsive-table tbody td span,
  .responsive-table tbody td div {
    text-align: right;
    flex: 1;
    word-break: break-word;
  }
}
/* ================= CONTACT PAGE ================= */
.contact-section {
  background: #f8f5f0;
  padding: 80px 0;
}

/* Make columns equal height */
.contact-section .row {
  align-items: stretch;
}

/* LEFT CARD */
.contact-card {
  background: #ffffff;
  padding: 45px 40px;
  border-radius: 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.contact-card h5 {
  font-weight: 700;
  font-size: 22px;
  margin-bottom: 30px;
  color: #0b1d3a;
}
.contact-card .contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  font-size: 15px;
  line-height: 1.6;
}
.contact-card .contact-item i {
  font-size: 18px;
  color: #fbb93f;
  margin-top: 0px;
}
.contact-card .contact-item span {
  color: #374151;
}
.contact-card .contact-item a {
  color: #0b1d3a;
  text-decoration: none;
  font-weight: 500;
}
.contact-card .contact-item a:hover {
  color: #fbb93f;
}

/* RIGHT FORM CARD */
/* HERO */
.contact-hero {
  padding: 196px 0 80px;
  background: radial-gradient(circle at 20% 30%, rgba(251, 185, 63, 0.15), transparent 40%), linear-gradient(135deg, #0b1d3a, #142850);
  color: #fff;
}
.contact-hero h2 {
  font-weight: 800;
  font-size: 36px;
}
.contact-hero p {
  opacity: 0.8;
  margin-top: 10px;
}

/* MAP */
.contact-map iframe {
  display: block;
  border-radius: 0;
}

/* RESPONSIVE */
@media (max-width: 991px) {
  .contact-card,
  .contact-form-card {
    padding: 35px 30px;
  }
  .contact-form-card .btn-gold {
    width: 100%;
  }
}
/* ================= FIX CONTACT UNEVEN ================= */
.contact-section {
  background: #f8f5f0;
}

.contact-card,
.contact-form-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 20px;
}

/* Left Card */
.contact-card {
  background: #ffffff;
  padding: 45px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.contact-title {
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 30px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 22px;
}

.contact-item i {
  font-size: 18px;
  color: #fbb93f;
  margin-top: 4px;
}

.contact-text {
  line-height: 1.6;
  color: #1f2937;
}

/* Remove ugly default blue links */
.contact-card a {
  text-decoration: none;
  color: #1f2937;
  font-weight: 500;
  transition: 0.2s ease;
}

.contact-card a:hover {
  color: #fbb93f;
}

/* Form Card */
.contact-form-card {
  background: #ffffff;
  padding: 45px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.06);
}

/* Inputs Premium */
.contact-form-card .form-control {
  border-radius: 14px;
  padding: 14px 18px;
  border: 1px solid #e5e7eb;
  background: #fafafa;
  transition: 0.3s ease;
}

.contact-form-card .form-control:focus {
  background: #ffffff;
  border-color: #fbb93f;
  box-shadow: 0 0 0 3px rgba(251, 185, 63, 0.15);
}

/* Button */
.btn-gold {
  background: #fbb93f;
  color: #0b1d3a;
  font-weight: 600;
  padding: 14px 36px;
  border-radius: 40px;
  border: none;
  min-width: 180px;
  transition: all 0.3s ease;
  box-shadow: 0 12px 30px rgba(251, 185, 63, 0.35);
}

.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 45px rgba(251, 185, 63, 0.45);
}

/* Make equal height on desktop */
@media (min-width: 992px) {
  .contact-section .row > div {
    display: flex;
  }
}
.contact-form-card {
  background: #ffffff;
  padding: 60px;
  border-radius: 18px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.1);
}
.contact-form-card .form-group {
  position: relative;
  margin-bottom: 22px;
}
.contact-form-card .form-group input,
.contact-form-card .form-group textarea {
  width: 100%;
  padding: 14px 48px 14px 18px;
  border-radius: 12px;
  border: 2px solid #e5e7eb;
  background: #f9fafb;
  font-size: 15px;
  transition: all 0.25s ease;
}
.contact-form-card .form-group input:focus,
.contact-form-card .form-group textarea:focus {
  border-color: #f4b740;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(244, 183, 64, 0.15);
  outline: none;
}
.contact-form-card .form-group.invalid input, .contact-form-card .form-group.invalid textarea {
  border-color: #e03131 !important;
  background: #fff5f5;
  box-shadow: 0 0 0 4px rgba(224, 49, 49, 0.15);
}
.contact-form-card .form-group.valid input, .contact-form-card .form-group.valid textarea {
  border-color: #2f9e44 !important;
  background: #f0fdf4;
  box-shadow: 0 0 0 4px rgba(47, 158, 68, 0.15);
}
.contact-form-card .form-group .valid-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  background: #2f9e44;
  color: #fff;
  border-radius: 50%;
  font-size: 14px;
  display: none;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}
.contact-form-card .form-group.valid .valid-icon {
  display: flex;
}
.contact-form-card textarea {
  resize: none;
}
.contact-form-card .btn-gold {
  background: linear-gradient(135deg, #f4b740, #f59f00);
  border: none;
  padding: 14px 36px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  color: #000;
}
.contact-form-card .btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(244, 183, 64, 0.35);
}
.contact-form-card .form-message {
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 14px;
  margin-bottom: 20px;
}
.contact-form-card .form-message.success {
  background: #e6f7ed;
  color: #1e7e34;
  border: 1px solid #b7ebc6;
}
.contact-form-card .form-message.error {
  background: #fdecea;
  color: #c92a2a;
  border: 1px solid #f5c2c7;
}

.form-group {
  position: relative;
  margin-bottom: 22px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 48px 14px 18px;
  border-radius: 12px;
  border: 2px solid #e5e7eb;
  background: #f9fafb;
  transition: all 0.25s ease;
}
.form-group.invalid input, .form-group.invalid textarea {
  border-color: #e03131 !important;
  background: #fff5f5;
}
.form-group.valid input, .form-group.valid textarea {
  border-color: #2f9e44 !important;
  background: #f0fdf4;
}
.form-group .valid-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  background: #2f9e44;
  color: white;
  border-radius: 50%;
  font-size: 14px;
  display: none;
  align-items: center;
  justify-content: center;
}
.form-group.valid .valid-icon {
  display: flex;
}

.btn-gold:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

/* ===============================
   STUDENT DASHBOARD UI FIX
================================ */
.student-dashboard {
  /* Tabs Styling */
}
.student-dashboard .nav-tabs {
  border-bottom: 1px solid #e5e7eb;
}
.student-dashboard .nav-tabs .nav-link {
  border: none;
  font-weight: 500;
  color: #6b7280;
  padding: 10px 18px;
  border-radius: 8px 8px 0 0;
  transition: all 0.2s ease;
}
.student-dashboard .nav-tabs .nav-link:hover {
  color: #0b1d3a;
  background: #f3f4f6;
}
.student-dashboard .nav-tabs .nav-link.active {
  color: #0b1d3a;
  background: #ffffff;
  border-bottom: 2px solid #fbb93f;
}
.student-dashboard {
  /* Dashboard Cards */
}
.student-dashboard .card {
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.25s ease;
}
.student-dashboard .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08);
}
.student-dashboard {
  /* Payment Layout */
}
.student-dashboard #payment .card {
  height: 100%;
}
.student-dashboard #payment .card #proofCarousel .carousel-control-prev,
.student-dashboard #payment .card #proofCarousel .carousel-control-next {
  width: 8%;
  opacity: 1;
}
.student-dashboard #payment .card #proofCarousel .carousel-control-prev span,
.student-dashboard #payment .card #proofCarousel .carousel-control-next span {
  background-color: #0f1f3d;
  border-radius: 50%;
  padding: 18px;
  transition: all 0.3s ease;
}
.student-dashboard #payment .card #proofCarousel .carousel-control-prev-icon,
.student-dashboard #payment .card #proofCarousel .carousel-control-next-icon {
  filter: invert(1);
  background-size: 60%;
}
.student-dashboard #payment {
  /* QR Code */
}
.student-dashboard #payment img.img-fluid {
  max-width: 220px;
  width: 100%;
  -o-object-fit: contain;
     object-fit: contain;
  margin: 0 auto;
  display: block;
}
.student-dashboard #payment {
  /* Screenshot Preview Container */
}
.student-dashboard #payment #proofContainer {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 420px;
  padding: 20px;
}
.student-dashboard #payment #proofContainer img {
  max-width: 100%;
  max-height: 600px;
  width: auto;
  height: auto;
  -o-object-fit: contain;
     object-fit: contain;
  border-radius: 14px;
}
.student-dashboard #payment {
  /* Make right preview card visually balanced */
}
.student-dashboard #payment .col-md-8 .card {
  padding: 25px;
}
.student-dashboard #payment {
  /* Upload Button Styling */
}
.student-dashboard #payment .btn-success,
.student-dashboard #payment .btn-primary {
  border-radius: 30px;
  font-weight: 500;
}
.student-dashboard {
  /* History Tab Fix */
}
.student-dashboard #history .card {
  max-width: 600px;
  margin: 0 auto;
  padding: 40px;
}
.student-dashboard #history .btn-outline-primary {
  border-radius: 30px;
  padding: 8px 22px;
  font-weight: 500;
}
.student-dashboard {
  /* Logout Button */
}
.student-dashboard .btn-danger {
  border-radius: 30px;
  padding: 8px 22px;
  font-weight: 500;
}

/* SETTINGS PAGE */
.content-wrapper {
  padding: 30px;
}
.content-wrapper h3 {
  font-weight: 600;
  margin-bottom: 20px;
}

/* CARD */
.card {
  border-radius: 12px;
  border: none;
}

.card-body {
  padding: 30px;
}

/* TABS */
#settingsTabs {
  border-bottom: 1px solid #e5e7eb;
}
#settingsTabs .nav-link {
  border: none;
  color: #6b7280;
  font-weight: 500;
  padding: 10px 18px;
}
#settingsTabs .nav-link:hover {
  color: #2563eb;
}
#settingsTabs .nav-link.active {
  background: #f3f4f6;
  border-radius: 8px;
  color: #2563eb;
  font-weight: 600;
}

/* LABEL */
.form-label {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}

/* INPUT */
.form-control {
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  padding: 10px 12px;
  font-size: 14px;
}
.form-control:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

/* TEXTAREA */
textarea.form-control {
  resize: none;
}

/* IMAGE PREVIEW */
.content-wrapper img {
  border-radius: 6px;
  padding: 6px;
  background: #f8fafc;
}

/* SAVE BUTTON */
.text-end .btn-primary {
  border-radius: 30px;
  padding: 10px 26px;
  font-weight: 600;
}

/* TOGGLE SWITCH */
.ribbon-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
}

.toggle-switch {
  position: relative;
  width: 52px;
  height: 26px;
}

.toggle-switch input {
  display: none;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #e5e7eb;
  border-radius: 20px;
  transition: 0.3s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: 0.3s;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.toggle-switch input:checked + .slider {
  background: linear-gradient(135deg, #34d399, #3b82f6);
}

.toggle-switch input:checked + .slider:before {
  transform: translateX(26px);
}

.toggle-label {
  font-size: 14px;
  font-weight: 500;
  color: #374151;
}

.academic-calendar-page {
  padding: 2.25rem 0 64px;
  background: #f6f8fc;
  min-height: 70vh;
}

.calendar-hero {
  text-align: center;
}
.calendar-hero h2,
.calendar-hero p {
  margin-bottom: 0;
}

.calendar-year-select {
  width: auto;
}

.calendar-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.calendar-heading h1 {
  color: #15233b;
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.calendar-heading p {
  color: #65728a;
  margin: 0;
}

.calendar-panel {
  background: #fff;
  border: 1px solid #e7ebf2;
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(23, 42, 77, 0.06);
  overflow: hidden;
}

.calendar-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid #e9edf4;
  flex-wrap: wrap;
}
.calendar-toolbar .btn {
  border-radius: 10px;
}

.calendar-month-title {
  font-weight: 700;
  font-size: 1.2rem;
  color: #172b4d;
  margin: 0;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-weekday {
  padding: 0.8rem 0.25rem;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: #67758d;
  background: #f9faff;
  border-bottom: 1px solid #e9edf4;
}

.calendar-day {
  min-height: 130px;
  padding: 0.55rem;
  border-right: 1px solid #edf0f5;
  border-bottom: 1px solid #edf0f5;
  min-width: 0;
}
.calendar-day:nth-child(7n) {
  border-right: 0;
}
.calendar-day.is-empty {
  background: #fafbfe;
}

.calendar-day-number {
  font-size: 1.2rem;
  font-weight: 700;
  color: #263650;
  margin-bottom: 0.45rem;
  display: flex;
  justify-content: center;
}

.calendar-event {
  display: block;
  padding: 0.35rem 0.42rem;
  border-radius: 7px;
  font-size: 0.72rem;
  line-height: 1.35;
  margin-bottom: 0.35rem;
  min-width: 0;
  overflow: hidden;
}
.calendar-event strong {
  display: block;
  max-width: 100%;
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.035em;
  margin-bottom: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.calendar-event .calendar-event-title {
  display: block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.event-holiday {
  background: #fff0e7;
  color: #9a4213;
}

.event-test {
  background: #e8f1ff;
  color: #1c4f9a;
}

.event-exam {
  background: #eee8ff;
  color: #5b35a5;
}

.event-result {
  background: #e3f8ee;
  color: #176b45;
}

.event-ptm {
  background: #fff7d8;
  color: #765c00;
}

.event-general {
  background: #edf0f5;
  color: #46536a;
}

.calendar-empty {
  padding: 2.25rem 1rem;
  text-align: center;
  color: #66738a;
}

.calendar-legend {
  display: flex;
  gap: 0.65rem 1rem;
  flex-wrap: wrap;
  padding: 1rem 1.25rem;
  border-top: 1px solid #e9edf4;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #59667b;
  font-size: 0.78rem;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  flex: 0 0 10px;
}
.legend-dot.event-holiday {
  background: #f97316;
}
.legend-dot.event-test {
  background: #3182f6;
}
.legend-dot.event-exam {
  background: #805ad5;
}
.legend-dot.event-result {
  background: #22a06b;
}
.legend-dot.event-ptm {
  background: #eab308;
}
.legend-dot.event-general {
  background: #64748b;
}

.calendar-upcoming {
  margin-top: 1.5rem;
  background: #fff;
  border: 1px solid #e7ebf2;
  border-radius: 18px;
  padding: 1.25rem;
}
.calendar-upcoming h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #172b4d;
  margin-bottom: 1rem;
}

.upcoming-row {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.75rem 0;
  border-top: 1px solid #eef1f6;
}

.upcoming-date {
  min-width: 58px;
  text-align: center;
  border-radius: 10px;
  background: #f0f4fb;
  padding: 0.45rem 0.25rem;
  color: #29456f;
}
.upcoming-date strong {
  display: block;
  font-size: 1.1rem;
  line-height: 1.1;
}
.upcoming-date span {
  font-size: 0.68rem;
  text-transform: uppercase;
}

.upcoming-copy {
  min-width: 0;
  flex: 1;
}
.upcoming-copy strong {
  color: #263650;
}
.upcoming-copy p {
  margin: 0.2rem 0 0;
  color: #68758a;
  font-size: 0.85rem;
}

@media (max-width: 767px) {
  .academic-calendar-page {
    padding: 1.5rem 0 42px;
  }
  .calendar-hero h2 {
    font-size: 30px;
  }
  .calendar-toolbar {
    padding: 0.9rem;
  }
  .calendar-day {
    min-height: 88px;
    padding: 0.3rem;
  }
  .calendar-day-number {
    font-size: 0.75rem;
    margin-bottom: 0.3rem;
  }
  .calendar-event {
    padding: 0.25rem;
    font-size: 0.64rem;
  }
  .calendar-event strong {
    font-size: 0.56rem;
  }
  .calendar-weekday {
    font-size: 0.66rem;
    padding: 0.65rem 0.1rem;
  }
}
@media (max-width: 420px) {
  .calendar-day {
    min-height: 72px;
  }
  .calendar-event {
    font-size: 0.58rem;
  }
  .calendar-toolbar .btn {
    padding: 0.35rem 0.5rem;
    font-size: 0.8rem;
  }
}
/* Calendar navigation and mobile event-label overflow */
.calendar-nav-disabled,
.calendar-nav-disabled:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

@media (max-width: 767px) {
  .calendar-event {
    min-width: 0;
  }
  .calendar-event strong,
  .calendar-event .calendar-event-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
/* Calendar download actions and aligned upcoming-event heading/tag */
.calendar-download-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.calendar-download-actions .btn {
  border-radius: 10px;
  font-weight: 600;
  white-space: nowrap;
}

.upcoming-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  min-width: 0;
}

.upcoming-copy .upcoming-event-title {
  display: inline-block;
  line-height: 1.35;
}

.upcoming-copy .upcoming-event-tag {
  display: inline-flex !important;
  align-items: center;
  width: -moz-fit-content;
  width: fit-content;
  flex: 0 0 auto;
  margin: 0 !important;
  padding: 0.3rem 0.5rem;
  line-height: 1.25;
  font-size: 0.72rem;
  border-radius: 7px;
}

@media (max-width: 767px) {
  .calendar-heading {
    align-items: stretch;
  }
  .calendar-download-actions {
    justify-content: flex-start;
  }
  .calendar-download-actions .btn {
    flex: 1 1 100%;
  }
  .upcoming-title-row {
    align-items: flex-start;
    gap: 0.4rem 0.5rem;
  }
}