/* Shared visual system for every public page, loaded after page-specific styles. */
:root {
  --rr-page-ink: #081225;
  --rr-page-navy: #102a56;
  --rr-page-blue: #1e40af;
  --rr-page-lime: #dcfd7d;
  --rr-page-paper: #f7f8f5;
  --rr-page-text: #273449;
  --rr-page-muted: #667085;
  --rr-page-line: rgba(16, 42, 86, 0.12);
  --rr-page-shadow: 0 18px 50px rgba(8, 18, 37, 0.1);
}

body:not(.home-page) {
  color: var(--rr-page-text);
  background: var(--rr-page-paper);
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
}

body:not(.home-page) h1,
body:not(.home-page) h2,
body:not(.home-page) h3,
body:not(.home-page) h4,
body:not(.home-page) h5,
body:not(.home-page) h6 {
  color: var(--rr-page-ink);
  font-family: "Outfit", ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -0.025em;
}

body:not(.home-page) p,
body:not(.home-page) li {
  color: var(--rr-page-text);
  line-height: 1.72;
}

body:not(.auth-page) .header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1030;
  width: 100%;
  background: transparent;
  box-shadow: none;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    padding 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease,
    backdrop-filter 0.3s ease;
}

body:not(.auth-page) .header.is-scrolled {
  padding: 10px 0;
  background: rgba(8, 18, 37, 0.94);
  box-shadow: 0 12px 36px rgba(8, 18, 37, 0.2);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}

body:not(.auth-page) .header .navbar-nav .nav-item a {
  position: relative;
  color: rgba(255, 255, 255, 0.82);
  background: transparent !important;
}

body:not(.auth-page) .header .navbar-nav .nav-item a:hover,
body:not(.auth-page) .header .navbar-nav .active > a {
  color: var(--rr-page-lime) !important;
  background: transparent !important;
}

body:not(.auth-page) .header .navbar-nav .active > a::after {
  position: absolute;
  right: 13px;
  bottom: 3px;
  left: 13px;
  height: 3px;
  border-radius: 999px;
  background: var(--rr-page-lime);
  content: "";
  box-shadow: 0 0 14px rgba(220, 253, 125, 0.55);
}

body:not(.auth-page) .header .navbar-nav .nav-item.nav-login a {
  color: var(--rr-page-ink);
  background: #ffffff !important;
}

body:not(.auth-page) .header .navbar-nav .nav-item.nav-login a:hover,
body:not(.auth-page) .header .navbar-nav .nav-item.nav-login.active a {
  color: var(--rr-page-ink) !important;
  background: var(--rr-page-lime) !important;
}

body:not(.auth-page) .header .navbar-nav .nav-item.nav-login.active > a::after {
  display: none;
}

body:not(.auth-page) .header.is-hidden {
  transform: translateY(-110%);
}

body:not(.auth-page) .header.is-visible {
  transform: translateY(0);
}

body:not(.home-page) .sub_banner {
  background: var(--rr-page-ink);
}

body:not(.home-page) .sub_banner .sub_banner_con:not(.about-hero):not(.subjects-hero) {
  min-height: 390px;
  display: flex;
  align-items: center;
  padding: 132px 0 72px;
  background:
    radial-gradient(circle at 85% 20%, rgba(220, 253, 125, 0.12), transparent 34%),
    linear-gradient(110deg, #081225 0%, #102a56 62%, #1e40af 125%);
}

body:not(.home-page) .sub_banner .sub_banner_con::before,
body:not(.home-page) .sub_banner::before {
  display: none;
}

body:not(.home-page) .sub_banner_content {
  max-width: 760px;
  margin: 0 auto;
}

body:not(.home-page) .sub_banner_content h1 {
  margin-bottom: 18px;
  color: #ffffff;
  font-size: clamp(2.45rem, 5vw, 4.4rem);
   font-weight: 100;
  line-height: 1;
  letter-spacing: -0.045em;
}

body:not(.home-page) .sub_banner_content > p {
  max-width: 62ch;
  margin-right: auto;
  margin-left: auto;
  color: rgba(255, 255, 255, 0.84) !important;
  font-size: 1rem;
}

body:not(.home-page) .sub_banner_content .box {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(8, 18, 37, 0.34);
}

body:not(.home-page) .sub_banner_content .box a,
body:not(.home-page) .sub_banner_content .box span {
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 600;
}

body:not(.home-page) .sub_banner_content .box a:hover,
body:not(.home-page) .sub_banner_content .box .box_span {
  color: var(--rr-page-lime);
}

body:not(.home-page) > section:not(.footer-con),
body:not(.home-page) > main,
body:not(.home-page) > .product-section,
body:not(.home-page) > .legal-page-con {
  background: var(--rr-page-paper);
}

body:not(.home-page) section:not(.sub_banner_con):not(.footer-con) {
  scroll-margin-top: 96px;
}

body:not(.home-page) section h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.06;
}

body:not(.home-page) section h6 {
  color: var(--rr-page-blue);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

body:not(.home-page) .service-card,
body:not(.home-page) .course-box,
body:not(.home-page) .pricing-card,
body:not(.home-page) .package-card,
body:not(.home-page) .faq-note-card,
body:not(.home-page) .contact-card,
body:not(.home-page) .legal-card,
body:not(.home-page) .preview-box,
body:not(.home-page) .auth-panel,
body:not(.home-page) .registration-card,
body:not(.home-page) .pricing-story {
  border: 1px solid var(--rr-page-line);
  border-radius: 16px;
  box-shadow: var(--rr-page-shadow);
}

body:not(.home-page) .primary_btn,
body:not(.home-page) .submit_now,
body:not(.home-page) .package-cta,
body:not(.home-page) button[type="submit"] {
  min-height: 48px;
  border: 1px solid var(--rr-page-lime);
  border-radius: 10px;
  background: var(--rr-page-lime);
  color: var(--rr-page-ink);
  font-weight: 700;
}

body:not(.home-page) .primary_btn:hover,
body:not(.home-page) .submit_now:hover,
body:not(.home-page) .package-cta:hover,
body:not(.home-page) button[type="submit"]:hover {
  border-color: #ffffff;
  background: #ffffff;
  color: var(--rr-page-ink);
  box-shadow: 0 12px 30px rgba(8, 18, 37, 0.18);
  transform: translateY(-2px);
}

body:not(.home-page) .form-control,
body:not(.home-page) input,
body:not(.home-page) select,
body:not(.home-page) textarea {
  border-color: var(--rr-page-line);
  border-radius: 10px;
}

body:not(.home-page) .form-control:focus,
body:not(.home-page) input:focus,
body:not(.home-page) select:focus,
body:not(.home-page) textarea:focus {
  border-color: var(--rr-page-blue);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.16);
}

body:not(.home-page) .footer-con {
  background: var(--rr-page-ink);
}

body:not(.home-page) .footer-card {
  border-radius: 0;
  background: transparent;
}

.footer-con {
  overflow: hidden;
  padding: clamp(3rem, 6vw, 5rem) 0 0;
  background: var(--rr-page-ink);
  color: rgba(255, 255, 255, 0.72);
}

.footer-reference-top {
  display: grid;
  grid-template-columns: minmax(230px, 0.9fr) minmax(0, 1.6fr);
  gap: clamp(2rem, 8vw, 9rem);
  padding-bottom: clamp(3.5rem, 7vw, 6rem);
}

.footer-contact-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-reference-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.footer-reference-links .footer-col h5 {
  margin: 0 0 1rem;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-reference-links .footer-col ul {
  display: grid;
  gap: 0.6rem;
}

.footer-reference-links .footer-col li {
  margin: 0;
}

.footer-reference-links .footer-col a {
  min-height: 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.84rem;
  line-height: 1.4;
}

.footer-reference-divider {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-reference-divider p,
.footer-reference-bottom p,
.footer-reference-bottom a {
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.78rem;
}

.footer-start-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  background: #ffffff;
  color: var(--rr-page-ink);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.footer-reference-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0 0;
}

.footer-reference-bottom > div {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.footer-reference-bottom > div > * {
  flex: 0 0 auto;
  white-space: nowrap;
}

.footer-wordmark {
  margin-top: clamp(2rem, 5vw, 4rem);
  color: rgba(255, 255, 255, 0.2);
  font-size: clamp(5rem, 18vw, 15rem);
  font-weight: 800;
  letter-spacing: -0.09em;
  line-height: 0.72;
  text-align: center;
  white-space: nowrap;
}

body:not(.home-page) .footer-card h5,
body:not(.home-page) .footer-card p,
body:not(.home-page) .footer-card a,
body:not(.home-page) .footer-card address {
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
}

body:not(.home-page) .footer-card h5 {
  color: var(--rr-page-lime);
  font-weight: 700;
}

body:not(.home-page) .footer-card a:hover {
  color: var(--rr-page-lime);
}

body:not(.home-page) .auth-main {
  min-height: 680px;
  padding: 150px 16px 90px;
  background:
    radial-gradient(circle at 20% 20%, rgba(30, 64, 175, 0.1), transparent 35%),
    var(--rr-page-paper);
}

@media (max-width: 767.98px) {
  body:not(.home-page) .sub_banner .sub_banner_con {
    min-height: 350px;
    padding: 116px 0 58px;
  }

  body:not(.home-page) .sub_banner_content h1 {
    font-size: clamp(2.15rem, 10vw, 3.15rem);
  }

  body:not(.home-page) .sub_banner_content > p {
    font-size: 0.92rem;
  }

  body:not(.home-page) section h2 {
    font-size: clamp(1.85rem, 9vw, 2.7rem);
  }

  body:not(.home-page) .auth-main {
    min-height: 620px;
    padding-top: 116px;
  }

  .footer-reference-top {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-reference-links {
    gap: 1.5rem 1rem;
  }

  .footer-reference-divider,
  .footer-reference-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-reference-bottom > div {
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    gap: 0.75rem 1rem;
  }

  .footer-reference-bottom > div::-webkit-scrollbar {
    display: none;
  }

  .footer-wordmark {
    margin-top: 3rem;
    font-size: 25vw;
  }
}

@media (prefers-reduced-motion: reduce) {
  body:not(.home-page) *,
  body:not(.home-page) *::before,
  body:not(.home-page) *::after {
    transition-duration: 0.01ms !important;
  }
}

/* AOS is progressive enhancement: never leave page content hidden if it fails. */
body:not([data-aos-duration]) [data-aos] {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}

/* One shared footer system for every public page. */
.footer-con,
body.home-page .footer-con {
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  align-items: stretch;
  box-sizing: border-box;
  padding: clamp(3.75rem,7vw,6rem) 0 0;
  overflow: hidden;
  background: linear-gradient(145deg,#081225 0%,#101a2d 55%,#10234a 100%);
  color: rgba(255,255,255,.72);
}
.footer-card,
body.home-page .footer-card {
  display: flex;
  width: 100%;
  align-items: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}
.footer-card > .container,
body.home-page .footer-card > .container {
  width: min(100% - 40px,1400px);
  margin: 0 auto;
}
.footer-reference-top,
body.home-page .footer-reference-top {
  grid-template-columns: minmax(230px,.9fr) minmax(0,1.6fr);
  gap: clamp(2rem,8vw,9rem);
  padding-bottom: clamp(2.5rem,5vw,4rem);
}
.footer-contact-block,
body.home-page .footer-contact-block { align-items: flex-start; }
.footer-brand-logo,
body.home-page .footer-brand-logo {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  width: fit-content;
  margin: 0 0 13px;
  padding: 10px 13px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  background: rgba(255,255,255,.045);
  transition: border-color .18s ease,background .18s ease;
}
.footer-brand-logo img,
body.home-page .footer-brand-logo img { display: block; width: 164px; height: auto; max-height: 58px; object-fit: contain; }
.footer-brand-logo:hover,
.footer-brand-logo:focus-visible,
body.home-page .footer-brand-logo:hover,
body.home-page .footer-brand-logo:focus-visible { border-color: rgba(220,253,125,.42); background: rgba(220,253,125,.07); }
.footer-brand-tagline,
body.home-page .footer-brand-tagline {
  max-width: 320px;
  margin: 0 0 18px;
  color: rgba(255,255,255,.62);
  font-size: .82rem;
  line-height: 1.65;
}
.footer-contact-block .footer-social-bubble,
body.home-page .footer-contact-block .footer-social-bubble {
  position: static;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 9px;
  margin: 0 0 16px;
  padding: 0;
  background: transparent;
}
.footer-contact-block .footer-social-bubble a,
body.home-page .footer-contact-block .footer-social-bubble a {
  display: inline-flex;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: .86rem;
}
.footer-address span,
body.home-page .footer-address span { color: rgba(255,255,255,.48); font-size: .72rem; }
.footer-address a,
body.home-page .footer-address a { color: rgba(255,255,255,.78); font-size: .78rem; }
.footer-reference-links,
body.home-page .footer-reference-links { gap: clamp(1.25rem,3vw,2.5rem); padding-top: 7px; }
.footer-reference-links .footer-col h5,
body.home-page .footer-reference-links .footer-col h5 {
  margin-bottom: 15px;
  color: #dcfd7d;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
}
.footer-reference-links .footer-col ul,
body.home-page .footer-reference-links .footer-col ul { gap: 11px; }
.footer-reference-links .footer-col a,
body.home-page .footer-reference-links .footer-col a {
  display: inline-flex;
  color: rgba(255,255,255,.68);
  font-size: .8rem;
  transition: color .18s ease,transform .18s ease;
}
.footer-reference-links .footer-col a:hover,
.footer-reference-links .footer-col a:focus-visible,
body.home-page .footer-reference-links .footer-col a:hover,
body.home-page .footer-reference-links .footer-col a:focus-visible { transform: translateX(2px); color: #dcfd7d; }
.footer-reference-divider,
body.home-page .footer-reference-divider { border-color: rgba(255,255,255,.15); }
.footer-reference-divider p,
body.home-page .footer-reference-divider p { color: rgba(255,255,255,.58); }
.footer-start-link,
body.home-page .footer-start-link { padding: 10px 18px; border-radius: 999px; }
.footer-reference-bottom,
body.home-page .footer-reference-bottom { padding-top: 16px; }
.footer-reference-bottom p,
.footer-reference-bottom a,
body.home-page .footer-reference-bottom p,
body.home-page .footer-reference-bottom a { color: rgba(255,255,255,.48); font-size: .68rem; }
.footer-wordmark,
body.home-page .footer-wordmark {
  margin-top: clamp(2.5rem,5vw,4rem);
  color: rgba(255,255,255,.1);
  font-size: clamp(5rem,18vw,15rem);
  font-weight: 700;
  letter-spacing: -.09em;
  line-height: .72;
  text-align: center;
  white-space: nowrap;
}
@media (max-width: 767px) {
  .footer-reference-top,
  body.home-page .footer-reference-top { grid-template-columns: 1fr; gap: 2rem; padding-bottom: 2rem; }
  .footer-reference-links,
  body.home-page .footer-reference-links { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; }
  .footer-reference-divider,
  body.home-page .footer-reference-divider { align-items: center; flex-direction: row; }
  .footer-reference-bottom,
  body.home-page .footer-reference-bottom { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 480px) {
  .footer-card > .container,
  body.home-page .footer-card > .container { width: min(100% - 32px,1400px); }
  .footer-reference-links,
  body.home-page .footer-reference-links { grid-template-columns: repeat(2,minmax(0,1fr)); row-gap: 1.5rem; }
  .footer-reference-links .footer-col:last-child,
  body.home-page .footer-reference-links .footer-col:last-child { grid-column: 1 / -1; }
  .footer-reference-divider,
  body.home-page .footer-reference-divider { align-items: flex-start; flex-direction: column; }
}

/* Reveal content images and CSS-built hero artwork as they enter view. */
body.visual-reveal-enabled main .visual-reveal-target {
  opacity: 0;
  translate: 0 22px;
  transition: opacity .72s cubic-bezier(.2,.65,.3,1), translate .72s cubic-bezier(.2,.65,.3,1);
  will-change: opacity,translate;
}
body.visual-reveal-enabled main .visual-reveal-target.visual-reveal-visible {
  opacity: 1;
  translate: 0 0;
}
@media (prefers-reduced-motion: reduce) {
  body.visual-reveal-enabled main .visual-reveal-target,
  body.visual-reveal-enabled main .visual-reveal-target.visual-reveal-visible {
    opacity: 1;
    translate: none;
    transition: none;
    will-change: auto;
  }
}

body:not(.home-page) .footer-con .footer-brand-tagline,
body:not(.home-page) .footer-con .footer-address span,
body:not(.home-page) .footer-con .footer-reference-divider p,
body:not(.home-page) .footer-con .footer-reference-bottom p,
body:not(.home-page) .footer-con .footer-reference-bottom a {
  color: #cbd5e1;
}

body:not(.home-page) .footer-con .footer-address a {
  color: #e2e8f0;
}
