/**
 * CT-inspired layout (itep.nen-global.org/ct.html) — public site only.
 * Loaded after main.css / custom.css; scoped with .site-ct-theme where needed.
 */

:root {
  --ct-primary: #c11111;
  --ct-accent: #004fa3;
  --ct-stroke: #1c5fa8;
  --ct-footer: #0a1c2e;
  --ct-light-gray: #e8e8e8;
  --ct-link-hover: #1157c1;
}

/* ----- Body / typography ----- */
.site-ct-theme {
  font-family: "Poppins", "Roboto", system-ui, sans-serif;
}

.site-ct-theme .section-title h2,
.site-ct-theme .section-title .pb-1 {
  color: var(--ct-primary) !important;
  text-align: center;
  font-weight: 700 !important;
}

.site-ct-theme .section-title .subtitle {
  text-align: center;
}

/* ----- Header ----- */
.dredbg {
  background: var(--ct-primary) !important;
}

.site-ct-header.header {
  padding: 0 !important;
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.nen-ct-topbar .nen-ct-toplinks a,
.nen-ct-topbar .nen-ct-toplinks .dropdown-toggle {
  color: #fff !important;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.nen-ct-topbar .nen-ct-toplinks a:hover,
.nen-ct-topbar .nen-ct-toplinks .dropdown-toggle:hover {
  color: #fff !important;
  text-decoration: underline !important;
}

.nen-ct-topbar .dropdown-menu {
  z-index: 10050;
}

.nen-ct-topsocial a {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 1rem;
  line-height: 1;
}

.nen-ct-topsocial a:hover {
  color: #fff !important;
}

.nen-ct-topsocial .nen-ct-social-item {
  padding-left: 0.65rem;
  margin-left: 0.65rem;
  border-left: 1px solid rgba(255, 255, 255, 0.35);
}

.nen-ct-topsocial .nen-ct-social-item:first-child {
  padding-left: 0;
  margin-left: 0;
  border-left: 0;
}

.nen-ct-toplinks-inner {
  gap: 1rem 1.25rem;
}

.nen-ct-mainbar {
  padding: 0.25rem 0;
}

/* CT logo / wordmark */
.nen-ct-brand-logo .nen-ct-main-logo-img {
  max-height: 48px;
  width: auto;
  object-fit: contain;
}

.nen-ct-brand-mark {
  width: 2.35rem;
  height: 2.35rem;
  font-size: 0.65rem;
  letter-spacing: 0.02em;
  line-height: 1;
  background: var(--ct-primary);
  border-radius: 2px;
}

.nen-ct-brand-type .nen-ct-brand-line1,
.nen-ct-brand-type .nen-ct-brand-line2 {
  color: var(--ct-primary);
  font-size: 0.95rem;
  line-height: 1.05;
  letter-spacing: 0.03em;
}

.nen-ct-brand-type .nen-ct-brand-line1 {
  font-size: 0.78rem;
}

.nen-ct-brand-type .nen-ct-brand-line2 {
  font-size: 1.05rem;
}

/* Main nav — iTEP in blue, rest in CT red; optional icons */
#header.site-ct-header .nen-ct-mainnav > ul > li > a {
  color: var(--ct-primary) !important;
  font-weight: 600;
}

#header.site-ct-header .nen-ct-mainnav .nen-ct-nav-itep > a {
  color: var(--ct-accent) !important;
}

#header.site-ct-header .nen-ct-mainnav .nen-ct-nav-itep > a:hover {
  color: var(--ct-link-hover) !important;
}

#header.site-ct-header .nen-ct-mainnav > ul > li > a:hover {
  color: var(--ct-link-hover) !important;
}

#header.site-ct-header .nen-ct-mainnav .nen-ct-nav-plain > a i {
  display: none;
}

#header.site-ct-header .nen-ct-mainnav > ul > li > a i {
  margin-right: 0.35rem !important;
  font-size: 1rem;
  vertical-align: -0.1em;
}

@media (max-width: 1199px) {
  .site-ct-theme.mobile-nav-active .navmenu > ul {
    top: 130px;
    inset: 130px 16px 24px 16px;
  }
}

/* ----- Hero split slider (CT-style slide) ----- */
.hero.ct-hero-split {
  padding: 0 !important;
  background: #fff !important;
  position: relative;
  overflow: hidden;
}

.hero.ct-hero-split.section.dark-background {
  background: #fff !important;
}

.hero.ct-hero-shell.ct-hero-split .carousel {
  min-height: min(92vh, 820px);
  background: #fff;
}

.hero.ct-hero-shell.ct-hero-split .carousel-item::before,
.hero.ct-hero-shell.ct-hero-split .carousel-item:before {
  display: none !important;
  content: none !important;
}

.hero.ct-hero-split .hero-split-slide {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  min-height: min(92vh, 820px);
  height: 100%;
  width: 100%;
  background: #fff;
}

.hero.ct-hero-split .hero-split-left {
  flex: 0 1 46%;
  max-width: 640px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 2.5rem 1.25rem 2.5rem 1.75rem;
  background: #fff;
  position: relative;
  z-index: 2;
}

.hero.ct-hero-split .hero-split-left-inner {
  width: 100%;
  max-width: 500px;
}

.hero.ct-hero-split .hero-split-lead {
  font-size: clamp(1.05rem, 1.25vw, 1.35rem);
  line-height: 1.55;
  color: #333;
  margin: 0 0 1.65rem;
  font-weight: 400;
  text-align: left;
}

.hero.ct-hero-split .hero-split-actions {
  justify-content: flex-start !important;
}

.hero.ct-hero-split .hero-split-cta {
  background: #c41e3e !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em;
  padding: 0.65rem 1.25rem !important;
  font-size: 0.875rem !important;
  text-decoration: none !important;
  text-transform: uppercase;
  box-shadow: none;
}

.hero.ct-hero-split .hero-split-cta:hover {
  background: #a01830 !important;
  color: #fff !important;
}

.hero.ct-hero-split .hero-split-cta-outline {
  background: #fff !important;
  color: #c41e3e !important;
  border: 2px solid #c41e3e !important;
}

.hero.ct-hero-split .hero-split-cta-outline:hover {
  background: #fff5f5 !important;
  color: #a01830 !important;
}

.hero.ct-hero-split .hero-split-right {
  flex: 1 1 54%;
  position: relative;
  min-height: min(92vh, 820px);
  background: #dde4ec;
}

.hero.ct-hero-split .hero-split-image-wrap {
  position: absolute;
  inset: 0;
  clip-path: polygon(28% 0, 100% 0, 100% 100%, 0 100%, 0 72%, 28% 0);
}

.hero.ct-hero-split .hero-split-img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  z-index: 1;
  display: block !important;
}

.hero.ct-hero-split .hero-split-edge-svg {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: min(72px, 10vw);
  z-index: 4;
  pointer-events: none;
  transform: translateX(-58%);
}

.hero.ct-hero-split .hero-price-strike-block {
  position: relative;
  display: inline-block;
  padding: 0 0.15rem;
}

.hero.ct-hero-split .hero-price-strike {
  font-size: clamp(1.65rem, 2.8vw, 2.1rem);
  font-weight: 800;
  color: #111;
  line-height: 1;
}

.hero.ct-hero-split .hero-price-x {
  position: absolute;
  inset: -0.1rem -0.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c41e3e;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 900;
  line-height: 1;
  transform: rotate(-22deg);
  pointer-events: none;
  opacity: 0.92;
}

.hero.ct-hero-split .hero-price-badge {
  display: inline-block;
  background: #c41e3e;
  color: #fff;
  font-weight: 700;
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
  font-size: 1.05rem;
}

@media (max-width: 991px) {
  .hero.ct-hero-shell.ct-hero-split .carousel {
    min-height: auto;
  }

  .hero.ct-hero-split .hero-split-slide {
    flex-direction: column;
    min-height: auto;
  }

  .hero.ct-hero-split .hero-split-right {
    order: -1;
    min-height: 46vh;
    flex: 0 0 auto;
  }

  .hero.ct-hero-split .hero-split-left {
    flex: 1 1 auto;
    max-width: none;
    justify-content: flex-start;
    padding: 2rem 1.25rem 2.75rem;
  }

  .hero.ct-hero-split .hero-split-left-inner {
    max-width: none;
  }

  .hero.ct-hero-split .hero-split-image-wrap {
    clip-path: none;
  }

  .hero.ct-hero-split .hero-split-edge-svg {
    display: none;
  }
}

.hero.ct-hero-split .carousel-control-prev,
.hero.ct-hero-split .carousel-control-next {
  z-index: 6;
}

.hero.ct-hero-split .carousel-indicators {
  z-index: 6;
}

/* Primary CTA buttons — align with CT pill buttons */
.site-ct-theme .btn-get-started,
.site-ct-theme .btn-custom-danger {
  border-radius: 35px !important;
}

/* ----- Sections ----- */
.ct-worldbg-line {
  background-image: repeating-linear-gradient(
    -8deg,
    transparent,
    transparent 8px,
    rgba(0, 79, 163, 0.045) 8px,
    rgba(0, 79, 163, 0.045) 9px
  ) !important;
}

.site-ct-theme #offers.services.section {
  background-color: var(--ct-light-gray) !important;
}

/* Feature-like spacing for network / cards (light touch) */
.site-ct-theme .read-more.btn-custom-danger {
  font-weight: 600;
}

/* ----- Footer (CT bottom bar) ----- */
.site-ct-theme .nen-ct-footer.footer {
  background-color: var(--ct-footer) !important;
  color: #fff !important;
  padding: 12px 0 !important;
  border: 0 !important;
}

.site-ct-theme .nen-ct-footer .footer-about {
  color: #fff !important;
}

.site-ct-theme .nen-ct-footer .footer-about a {
  color: #fff !important;
  text-decoration: none;
}

.site-ct-theme .nen-ct-footer .footer-about a:hover {
  text-decoration: underline;
}

.site-ct-theme .nen-ct-footer .footer-about img {
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

/* ----- NEN “Who we are” + map + regional offices (reference layout) ----- */
.nen-who-section {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.nen-who-text-col {
  text-align: left;
  max-width: 520px;
}

.nen-who-logo {
  display: block;
}

.nen-who-heading {
  color: var(--ct-primary) !important;
  font-weight: 700 !important;
  font-size: clamp(1.5rem, 2.5vw, 1.85rem);
  letter-spacing: -0.02em;
}

.nen-who-copy {
  color: #333;
  line-height: 1.65;
}

/* Map + pills row */
.nen-map-visual {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1.25rem 1.5rem;
  overflow: visible;
}

.nen-map-main {
  position: relative;
  flex: 1 1 260px;
  min-width: 0;
}

.nen-map-label {
  text-align: center;
  color: #6c757d;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.nen-who-section .nen-map-legend.map-legend {
  margin: 0 0 0.75rem;
  padding: 10px 14px;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.nen-full-map {
  height: 400px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
}

/* Connector line toward map (desktop) */
.nen-connector-line {
  display: none;
}

@media (min-width: 992px) {
  .nen-connector-line {
    display: block;
    position: absolute;
    left: -72px;
    top: 46%;
    width: 72px;
    height: 2px;
    background: #5a5f66;
    z-index: 0;
  }

  .nen-connector-line::after {
    content: "";
    position: absolute;
    right: -7px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #5a5f66;
    box-shadow: 0 0 0 3px rgba(90, 95, 102, 0.2);
  }
}

/* Decorative dashed arc + colored dots */
.nen-map-arc-decor {
  position: absolute;
  right: -8px;
  top: 18%;
  bottom: 28%;
  width: min(42%, 140px);
  pointer-events: none;
  z-index: 1;
}

.nen-map-arc {
  position: absolute;
  inset: 0;
  border: 2px dashed rgba(90, 95, 102, 0.35);
  border-left: 0;
  border-radius: 0 999px 999px 0 / 0 50% 50% 0;
}

.nen-map-arc-dots {
  position: absolute;
  right: 4px;
  top: 8%;
  bottom: 8%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 0.35rem;
}

.nen-map-arc-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px #fff;
}

.nen-map-arc-dots span:nth-child(1) {
  background: #e67e22;
}
.nen-map-arc-dots span:nth-child(2) {
  background: #8b1538;
}
.nen-map-arc-dots span:nth-child(3) {
  background: #6f42c1;
}
.nen-map-arc-dots span:nth-child(4) {
  background: #1e3a5f;
}
.nen-map-arc-dots span:nth-child(5) {
  background: #5dade2;
}
.nen-map-arc-dots span:nth-child(6) {
  background: #27ae60;
}

.nen-map-flags.map_flags {
  margin-top: 0.75rem;
  margin-bottom: 0;
  gap: 0.35rem;
}

.nen-map-flags .flag-icon {
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

/* Stat pills (vertical stack) */
.nen-stat-pills {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 0 0 auto;
  min-width: 200px;
  margin-top: 2.5rem;
}

@media (max-width: 991px) {
  .nen-stat-pills {
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
    margin-top: 0;
    min-width: 0;
  }

  .nen-stat-pill {
    flex: 1 1 calc(50% - 0.5rem);
    min-width: 160px;
  }

  .nen-map-arc-decor {
    display: none;
  }
}

.nen-stat-pill {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0.85rem 0.45rem 0.45rem;
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  white-space: nowrap;
}

@media (max-width: 400px) {
  .nen-stat-pill {
    white-space: normal;
  }
}

.nen-pill-bubble {
  flex: 0 0 auto;
  min-width: 2.75rem;
  height: 2.75rem;
  padding: 0 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  line-height: 1.1;
  text-align: center;
}

.nen-pill-text {
  flex: 1 1 auto;
  letter-spacing: 0.02em;
}

.nen-pill-students {
  background: linear-gradient(135deg, #e67e22, #d35400);
}
.nen-pill-instructors {
  background: linear-gradient(135deg, #8b1538, #6d1029);
}
.nen-pill-centers {
  background: linear-gradient(135deg, #7d4cdb, #5b2cbf);
}
.nen-pill-testing {
  background: linear-gradient(135deg, #1e3a5f, #152a45);
}
.nen-pill-proctors {
  background: linear-gradient(135deg, #5dade2, #3498db);
}
.nen-pill-regions {
  background: linear-gradient(135deg, #27ae60, #1e8449);
}

/* Regional office cards */
.nen-regional-wrap {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.nen-region-card {
  border: 1px solid #dee2e6;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

.nen-region-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--ct-primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.55rem 0.85rem;
  letter-spacing: 0.02em;
}

.nen-region-globe-ico {
  font-size: 1.1rem;
  opacity: 0.95;
}

.nen-region-flags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 0.75rem 1rem;
  justify-content: flex-start;
}

.nen-region-flag {
  display: inline-flex;
  border-radius: 50%;
  overflow: hidden;
  line-height: 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.nen-region-flag .flag-icon {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  background-size: cover;
}

/* ----- Home: Benefits (dynamic) ----- */
.site-benefits-section {
  background: #f2f2f2;
  padding-top: 2.75rem;
  padding-bottom: 2.75rem;
}

.site-benefits-heading {
  color: var(--ct-primary) !important;
  font-weight: 700 !important;
  font-size: clamp(1.45rem, 2.2vw, 1.85rem);
}

.site-benefit-grid-row {
  margin-bottom: 0.25rem;
}

.site-benefit-icon {
  font-size: 1.65rem;
  color: #212529;
  line-height: 1.15;
  padding-top: 0.15rem;
}

.site-benefit-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #212529;
}

.site-benefit-desc {
  color: #555;
  font-size: 0.92rem;
  line-height: 1.55;
}

/* ----- Home: Gallery (certificates / badges row) ----- */
.site-gallery-section {
  background-color: #fff;
  padding-top: 2.75rem;
  padding-bottom: 2.75rem;
  background-image: radial-gradient(
      circle at 1px 1px,
      rgba(0, 0, 0, 0.055) 1px,
      transparent 0
    ),
    repeating-linear-gradient(
      -8deg,
      transparent,
      transparent 10px,
      rgba(0, 79, 163, 0.028) 10px,
      rgba(0, 79, 163, 0.028) 11px
    );
  background-size: 22px 22px, auto;
}

.site-gallery-heading {
  color: var(--ct-primary) !important;
  font-weight: 700 !important;
  font-size: clamp(1.45rem, 2.2vw, 1.85rem);
}

.site-gallery-thumb-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.site-gallery-thumb-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
}

.site-gallery-thumb {
  max-height: 132px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

@media (max-width: 575.98px) {
  .site-gallery-thumb {
    max-height: 96px;
  }
}

/* ----- Home: Partners (logo strip, matches main nav #tabs) ----- */
.site-partners-section {
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.site-partner-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  opacity: 0.92;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

a.site-partner-logo-link:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.site-partner-logo-img {
  max-height: 56px;
  width: auto;
  height: auto;
  object-fit: contain;
  vertical-align: middle;
}

@media (min-width: 768px) {
  .site-partner-logo-img {
    max-height: 64px;
  }
}

@media (min-width: 1200px) {
  .site-partner-logo-img {
    max-height: 72px;
  }
}

