:root {
  --primary: #001d42;
  --blue: #0878ce;
  --accent: #ffa800;
  --success: #10b447;
  --ink: #14233a;
  --muted: #5d6b7e;
  --soft: #f4f8fc;
  --white: #ffffff;
  --line: #dce6f0;
  --shadow: 0 18px 55px rgba(0, 29, 66, 0.12);
  --shadow-sm: 0 8px 24px rgba(0, 29, 66, 0.08);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: "DM Sans", Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.65;
  overflow-x: hidden;
}
h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand {
  font-family: "Manrope", Arial, sans-serif;
  color: var(--primary);
}
h1,
h2,
h3,
h4 {
  letter-spacing: -0.025em;
}
a {
  text-decoration: none;
}
.navbar {
  background: rgba(255, 255, 255, 0.98) !important;
  border-bottom: 1px solid var(--line) !important;
  box-shadow: 0 4px 22px rgba(0, 29, 66, 0.05);
  z-index: 1030;
}
.navbar .container {
  min-height: 82px;
}
.site-logo {
  display: block;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
}
.header-logo {
  width: 245px;
  max-width: 100%;
  max-height: 68px;
}
.navbar-brand {
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
}
.nav-link {
  color: var(--primary) !important;
  font-size: 0.94rem;
  font-weight: 700;
  padding: 0.65rem 0.62rem !important;
  border-radius: 8px;
  white-space: nowrap;
}
.nav-link:hover,
.nav-link.active {
  color: var(--blue) !important;
  background: #f1f7fd;
}
.navbar-toggler {
  border-color: var(--line);
}
.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(8, 120, 206, 0.15);
}
.btn {
  font-weight: 800;
  border-radius: 11px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-brand {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(0, 29, 66, 0.18);
}
.btn-brand:hover {
  background: var(--blue);
  border-color: var(--blue);
}
.btn-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--primary) !important;
  box-shadow: 0 8px 20px rgba(255, 168, 0, 0.22);
}
.btn-accent:hover {
  filter: brightness(0.95);
}
.btn-outline-brand {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: #fff;
}
.btn-outline-brand:hover {
  background: var(--primary);
  color: #fff;
}
.section {
  padding: 82px 0;
}
.section-sm {
  padding: 55px 0;
}
.page-hero {
  padding: 74px 0 62px;
  background: linear-gradient(135deg, #f2f7fc 0%, #fff 72%);
  border-bottom: 1px solid var(--line);
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.76rem;
}
.kicker i {
  color: var(--accent);
}
.display-title {
  font-size: clamp(2.25rem, 5vw, 4.45rem);
  line-height: 1.04;
  font-weight: 800;
  color: var(--primary);
}
.lead {
  color: var(--muted) !important;
}
.hero {
  padding: 76px 0 86px;
  background:
    radial-gradient(
      circle at 92% 10%,
      rgba(255, 168, 0, 0.12),
      transparent 24%
    ),
    radial-gradient(circle at 8% 20%, rgba(8, 120, 206, 0.1), transparent 28%),
    linear-gradient(135deg, #f3f8fd, #fff 70%);
}
.hero-img {
  display: block;
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: var(--shadow);
}
.card-soft {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.icon-box {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  flex: 0 0 54px;
  background: #eaf4fc;
  color: var(--blue);
  font-size: 1.35rem;
  font-weight: 900;
}
.stat {
  padding: 26px;
  min-height: 132px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.stat strong {
  font-family: "Manrope";
  font-size: 2rem;
  color: var(--primary);
  display: block;
}
.stat div {
  color: var(--muted);
}
.search-wrap {
  margin-top: -35px;
  position: relative;
  z-index: 2;
}
.search-card {
  background: #fff;
  padding: 30px !important;
}
.form-label {
  font-weight: 800;
  color: var(--primary);
  font-size: 0.9rem;
  margin-bottom: 0.45rem;
}
.form-control,
.form-select {
  min-height: 52px;
  border-radius: 10px;
  border: 1px solid #c9d7e5;
  color: var(--ink);
  background: #fff;
}
.form-control::placeholder {
  color: #718096;
  opacity: 1;
}
.form-control:focus,
.form-select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 0.22rem rgba(8, 120, 206, 0.14);
}
.badge-soft {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #eaf4fc;
  color: var(--primary);
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}
.text-secondary {
  color: var(--muted) !important;
}
.bg-light-subtle {
  background: #f7fafd !important;
}
.tutor-img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}
.profile-img {
  width: 270px;
  height: 270px;
  object-fit: cover;
  border-radius: 50%;
  border: 7px solid #eaf4fc;
  box-shadow: var(--shadow);
}
.list-check {
  list-style: none;
  padding: 0;
  margin: 0;
}
.list-check li {
  margin: 12px 0;
  color: var(--ink);
}
.list-check i {
  color: var(--blue);
  margin-right: 8px;
}
.footer {
  background: var(--primary);
  color: #fff;
}
.footer-logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  padding: 12px 16px;
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}
.footer-logo {
  width: 310px;
  max-width: 100%;
  max-height: 82px;
}
.footer h6 {
  color: #fff;
  margin-bottom: 14px;
}
.footer p {
  color: rgba(255, 255, 255, 0.78);
}
.footer a {
  display: block;
  color: rgba(255, 255, 255, 0.82);
  margin: 7px 0;
}
.footer a:hover {
  color: #fff;
}
.login-panel {
  background: linear-gradient(145deg, var(--primary), #073d73);
  color: #fff;
}
.login-panel h2 {
  color: #fff;
}
.accordion-item {
  border: 0;
  border-bottom: 1px solid var(--line);
}
.accordion-button {
  color: var(--primary);
  font-family: "Manrope";
  font-weight: 800;
  padding: 22px;
}
.accordion-button:not(.collapsed) {
  background: #eaf4fc;
  color: var(--primary);
  box-shadow: none;
}
.reveal {
  animation: rise 0.65s ease both;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 1199px) {
  .header-logo {
    width: 210px;
  }
  .nav-link {
    font-size: 0.87rem;
    padding: 0.55rem 0.4rem !important;
  }
}
@media (max-width: 991px) {
  .navbar .container {
    min-height: 74px;
  }
  .header-logo {
    width: 225px;
    max-height: 64px;
  }
  .navbar-collapse {
    padding: 16px 0 4px;
  }
  .nav-link {
    padding: 0.7rem 0.75rem !important;
  }
  .section {
    padding: 62px 0;
  }
  .hero {
    padding: 58px 0 70px;
  }
  .hero-img {
    height: 400px;
    margin-top: 10px;
  }
  .page-hero {
    padding: 58px 0 48px;
  }
}
@media (max-width: 575px) {
  .navbar .container {
    min-height: 68px;
  }
  .header-logo {
    width: 190px;
    max-height: 55px;
  }
  .section {
    padding: 48px 0;
  }
  .hero {
    padding: 45px 0 55px;
  }
  .page-hero {
    padding: 46px 0 40px;
  }
  .hero-img {
    height: 285px;
    border-radius: 20px;
  }
  .display-title {
    font-size: 2.3rem;
  }
  .search-wrap {
    margin-top: -20px;
  }
  .search-card {
    padding: 20px !important;
  }
  .footer-logo {
    width: 240px;
    max-height: 70px;
  }
}

.page-hero .hero-img {
  height: 390px;
}

/* Page imagery: high-contrast, responsive, content-specific one-to-one teaching frame */
.content-image-frame {
  position: relative;
  border-radius: 24px;
  padding: 7px;
  background: linear-gradient(
    135deg,
    var(--primary),
    var(--blue) 65%,
    var(--accent)
  );
  box-shadow: 0 20px 50px rgba(0, 29, 66, 0.16);
  overflow: hidden;
}
.content-image-frame::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 17px;
  pointer-events: none;
}
.content-image-frame img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 330px;
  object-fit: cover;
  border-radius: 18px;
}
.image-caption {
  position: absolute;
  left: 24px;
  bottom: 22px;
  z-index: 2;
  background: rgba(0, 29, 66, 0.92);
  color: #fff;
  border-left: 4px solid var(--accent);
  padding: 9px 13px;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}
@media (max-width: 575px) {
  .content-image-frame {
    border-radius: 18px;
    padding: 5px;
  }
  .content-image-frame img {
    min-height: 250px;
    border-radius: 14px;
  }
  .content-image-frame::after {
    inset: 10px;
    border-radius: 12px;
  }
  .image-caption {
    left: 15px;
    bottom: 15px;
    font-size: 0.7rem;
  }
}

/* Page-specific responsive imagery */
.content-image-frame img,
.hero-photo-frame img {
  height: clamp(230px, 32vw, 390px);
  min-height: 0;
  max-height: 390px;
  object-fit: cover;
  object-position: center;
}
.service-photo {
  display: block;
  width: 100%;
  height: 170px;
  object-fit: cover;
}
.tutor-img {
  height: 210px;
  object-fit: cover;
}
@media (max-width: 991.98px) {
  .content-image-frame img,
  .hero-photo-frame img {
    height: clamp(220px, 48vw, 340px);
    max-height: 340px;
  }
  .service-photo {
    height: 150px;
  }
  .tutor-img {
    height: 200px;
  }
}
@media (max-width: 575.98px) {
  .content-image-frame img,
  .hero-photo-frame img {
    height: 230px;
    max-height: 230px;
  }
  .service-photo {
    height: 125px;
  }
  .tutor-img {
    height: 180px;
  }
}
