/* NCP modern design layer. Keeps existing page names and links unchanged. */
:root {
  --ncp-ink: #132033;
  --ncp-muted: #526173;
  --ncp-line: #dce6ef;
  --ncp-soft: #f4f8fb;
  --ncp-card: #ffffff;
  --ncp-teal: #0f766e;
  --ncp-blue: #0284c7;
  --ncp-gold: #f59e0b;
  --ncp-shadow: 0 14px 34px rgba(15, 23, 42, 0.09);
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--ncp-ink);
  background:
    linear-gradient(135deg, rgba(14, 116, 144, 0.08), rgba(245, 158, 11, 0.05)),
    var(--ncp-soft);
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
}

a {
  transition: color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

img {
  border-radius: 6px;
}

.container {
  max-width: 1180px;
}

.header {
  background: rgba(255, 255, 255, 0.96) !important;
  border-bottom: 1px solid var(--ncp-line);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(12px);
}

.top-head {
  color: #dbeafe !important;
  background: #0f172a;
  border-bottom: 0 !important;
  margin-bottom: 0 !important;
}

.top-head span {
  border-left-color: rgba(255, 255, 255, 0.22) !important;
}

.top-head span i,
.social a,
.sidenav a i {
  color: var(--ncp-gold) !important;
}

.social a {
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
  border-radius: 6px;
}

.social a:hover,
.social a:focus {
  color: #111827 !important;
  background: var(--ncp-gold) !important;
}

.navbar {
  padding: 12px 0;
}

.navbar-brand img {
  max-width: 170px;
  border-radius: 0;
}

.navbar-light .navbar-nav .nav-link {
  color: #26364a;
  font-weight: 700;
  border-radius: 6px;
  padding: 10px 12px;
}

.navbar-light .navbar-nav .active > .nav-link,
.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link:focus {
  color: #ffffff;
  background: linear-gradient(135deg, var(--ncp-teal), var(--ncp-blue));
}

.nav-item {
  border-right: 0 !important;
}

.sidenav {
  background: #ffffff !important;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18) !important;
}

.sidenav h2,
.sidenav h3 {
  color: var(--ncp-ink);
  font-weight: 800;
}

.sidenav a {
  color: #334155 !important;
  border-radius: 6px;
  margin: 2px 10px;
}

.sidenav a:hover,
.sidenav a:focus {
  color: #ffffff !important;
  background: linear-gradient(135deg, var(--ncp-teal), var(--ncp-blue));
  padding-left: 22px !important;
}

.imar,
.mar {
  margin-top: 120px;
}

.carousel,
.carousel-inner,
.carousel-item,
.carousel-item img {
  max-height: 560px;
}

.carousel-item img {
  width: 100%;
  object-fit: cover;
  border-radius: 0;
}

.news-bg {
  height: auto !important;
  min-height: 56px;
  margin: 0 0 34px !important;
  color: #111827;
  background: #f59e0b !important;
  box-shadow: none !important;
}

.news-bg::before {
  background: #0f172a !important;
  font-weight: 800;
}

.news-bg marquee {
  color: #111827 !important;
  font-weight: 800;
}

.heading,
.heading2,
.heading3,
.heading1 {
  color: var(--ncp-ink) !important;
  border-left: 5px solid var(--ncp-teal) !important;
  padding: 12px 0 12px 16px !important;
  margin: 28px 0 22px !important;
  font-weight: 800;
  line-height: 1.35;
}

.heading small,
.heading1 small {
  color: var(--ncp-teal) !important;
}

.best,
.course,
.video-course,
.box,
.thumbnail,
.card,
.panel,
.well {
  border: 1px solid var(--ncp-line) !important;
  border-radius: 8px !important;
  background: var(--ncp-card) !important;
  box-shadow: var(--ncp-shadow);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.best:hover,
.course:hover,
.video-course:hover,
.box:hover,
.thumbnail:hover,
.card:hover,
.panel:hover,
.well:hover {
  transform: translateY(-5px);
  border-color: #7dd3fc !important;
  box-shadow: 0 18px 38px rgba(14, 116, 144, 0.16);
}

.best a,
.course,
.course a,
.video-course a {
  font-weight: 800;
}

.course-bg {
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(15, 118, 110, 0.88)) !important;
  padding: 55px 0;
}

.course-bg .heading,
.course-bg .heading small,
.course-bg h2,
.course-bg h3,
.course-bg p {
  color: #ffffff !important;
}

.course {
  min-height: 92px;
  color: var(--ncp-ink) !important;
  padding: 18px !important;
}

.course i,
.best i {
  color: var(--ncp-gold) !important;
}

.btn,
button,
input[type="submit"],
.submit {
  border-radius: 7px !important;
  font-weight: 800 !important;
}

.btn-primary,
.submit,
input[type="submit"] {
  border-color: transparent !important;
  background: linear-gradient(135deg, var(--ncp-teal), var(--ncp-blue)) !important;
}

table {
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--ncp-shadow);
}

th {
  color: #ffffff;
  background: #0f766e;
}

footer,
.footer {
  color: #cbd5e1 !important;
  background: #0f172a !important;
}

.mobile-nav {
  box-shadow: 0 -10px 26px rgba(15, 23, 42, 0.16);
}

.mobile-nav a {
  color: var(--ncp-teal) !important;
  font-weight: 800;
}

@media (max-width: 991px) {
  .navbar-nav.flex-row {
    flex-direction: column !important;
    align-items: stretch;
    width: 100%;
  }

  .navbar-light .navbar-nav .nav-link {
    display: block;
  }

  .imar,
  .mar {
    margin-top: 92px;
  }
}

@media (max-width: 767px) {
  .mobile-nav {
    display: block !important;
  }

  .top-head {
    display: none;
  }

  .header {
    position: sticky !important;
  }

  .imar,
  .mar {
    margin-top: 0;
  }

  body {
    padding-bottom: 68px;
  }

  .heading,
  .heading2,
  .heading3,
  .heading1 {
    font-size: 20px !important;
  }
}
