html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

:root {
  --brand-primary: #071b49;
  --brand-accent: #d8a91f;
  --brand-bg: #f7f9fc;
}

body {
  margin: 0;
  background: #fff;
  color: #1a1a1a;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.main-header {
  background: var(--brand-primary);
  position: sticky;
  top: 0;
  z-index: 1030;
}

.navbar-brand {
  font-size: 1.6rem;
}

.hero-section {
  background: linear-gradient(180deg, #ffffff 0%, var(--brand-bg) 100%);
}

.hero-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e8edf7;
  box-shadow: 0 8px 25px rgba(5, 19, 58, 0.08);
}

.programs-section {
  background: #fff;
}

.course-card {
  border: 1px solid #e7ebf3;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 6px 18px rgba(5, 19, 58, 0.08);
  transition: transform .2s ease, box-shadow .2s ease;
}

.course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(5, 19, 58, 0.14);
}

.course-image-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.course-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.course-type {
  position: absolute;
  top: 12px;
  left: 12px;
  border-radius: 999px;
  font-size: .75rem;
}

.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: #25D366;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  padding: 12px 18px;
  border-radius: 30px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, .2);
  z-index: 1100;
}

.whatsapp-float:hover {
  color: #fff;
  transform: translateY(-2px);
}

.landing-footer {
  background: #0a0f1f;
  color: #e6e9f2;
  margin-top: 2rem;
}

.landing-footer a {
  color: #e6e9f2;
}

@media (max-width: 768px) {
  .hero-section {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }

  .course-image-wrap {
    height: 190px;
  }
}

/* =========================
   Admin modern layout
========================= */
.admin-body {
  background: #f3f6fb;
  color: #1f2a37;
}

.admin-shell {
  min-height: 100vh;
  display: flex;
}

.admin-sidebar {
  width: 270px;
  background: linear-gradient(180deg, #0b1f52 0%, #081737 100%);
  color: #fff;
  padding: 1rem;
  box-shadow: 6px 0 18px rgba(0, 0, 0, 0.12);
  position: sticky;
  top: 0;
  align-self: flex-start;
  height: 100vh;
}

.admin-brand-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}

.admin-brand {
  text-decoration: none;
  color: #fff;
  display: flex;
  align-items: center;
  gap: .6rem;
}

.admin-brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--brand-accent);
  color: #0f172a;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.admin-brand-text {
  font-weight: 700;
  letter-spacing: .2px;
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.admin-nav-link {
  color: #d7e2ff;
  text-decoration: none;
  padding: .7rem .85rem;
  border-radius: 10px;
  font-weight: 500;
  transition: all .2s ease;
}

.admin-nav-link:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.admin-content-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.admin-topbar {
  background: #ffffff;
  border-bottom: 1px solid #e7edf5;
  padding: 1rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1020;
}

.admin-page-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: #0f172a;
}

.admin-main {
  padding: 1.4rem;
}

.admin-main .card,
.admin-main .table,
.admin-main .list-group {
  border-radius: 14px;
  border-color: #e7edf5;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.admin-main .btn-primary {
  background: #0b1f52;
  border-color: #0b1f52;
}

.admin-main .btn-primary:hover {
  background: #081737;
  border-color: #081737;
}

@media (max-width: 992px) {
  .admin-shell {
    display: block;
  }

  .admin-sidebar {
    width: 100%;
    height: auto;
    position: relative;
    border-radius: 0 0 16px 16px;
  }

  .admin-topbar {
    position: static;
  }
}
