/* ref-nav must stay visible */
body.ref-site .ref-nav,
body.ref-home .ref-nav { display: flex !important; }

/* Site-wide redesign: match homepage ref look on every marketing page */
body.ref-site,
body.ref-home {
  background: #fff !important;
  color: #0B1F3A !important;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif !important;
}

body.ref-site #app_Mainheader,
body.ref-site .app_header,
body.ref-home #app_Mainheader,
body.ref-home .app_header {
  display: none !important;
}

body.ref-site #backtoTop,
body.ref-home #backtoTop {
  display: none !important;
}

body.ref-site .page-wrapper,
body.ref-home .page-wrapper {
  background: #fff !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: visible !important;
}

/* Sticky ref nav on inner pages */
body.ref-site > div > .page-wrapper > .ref-nav,
body.ref-site .ref-site-shell > .ref-nav,
body.ref-site .ref-landing > .ref-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #ece7e0;
  max-width: 100%;
  padding-left: max(28px, calc((100% - 1180px) / 2 + 28px));
  padding-right: max(28px, calc((100% - 1180px) / 2 + 28px));
}

.ref-nav-links a.is-active {
  color: #0F8F86 !important;
  font-weight: 650 !important;
}

/* ----- Transform old banners into homepage-style heroes ----- */
body.ref-site .banner_section,
body.ref-site .banner_section_haveOverlay,
body.ref-site #Overview.pageSection,
body.ref-site .pageSection.Overview_version2 {
  background: #fff !important;
  padding: 28px 0 12px !important;
  min-height: 0 !important;
}

body.ref-site .banner_section::before,
body.ref-site .banner_section::after,
body.ref-site .banner_section_haveOverlay::before,
body.ref-site .overlay_img {
  display: none !important;
}

body.ref-site .container_banner,
body.ref-site .container_banner_inner,
body.ref-site .container {
  max-width: 1180px !important;
}

body.ref-site .bannerTagLine h1,
body.ref-site .bannerTagLine .font-60px,
body.ref-site h1.font-60px,
body.ref-site h1.font-extrabold {
  font-size: clamp(34px, 5vw, 52px) !important;
  line-height: 1.08 !important;
  letter-spacing: -0.035em !important;
  font-weight: 750 !important;
  color: #0B1F3A !important;
  max-width: 720px;
}

body.ref-site .bannerTagLine .font-22px,
body.ref-site .bannerTagLine .font-primary,
body.ref-site .pageSection > .container > .font-22px {
  font-size: 18px !important;
  line-height: 1.5 !important;
  color: #5c6b7a !important;
  font-weight: 400 !important;
  max-width: 560px;
}

body.ref-site .text-secondary:not(.btn):not(.bg-secondary) {
  color: #0F8F86 !important;
}

/* Buttons → homepage pills */
body.ref-site .btn,
body.ref-site a.btn {
  min-height: 46px !important;
  border-radius: 12px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  padding-left: 22px !important;
  padding-right: 22px !important;
  box-shadow: none !important;
  letter-spacing: 0 !important;
}

body.ref-site .btn.h-60px,
body.ref-site .btn.h-68px,
body.ref-site .btn.h-78px {
  height: auto !important;
  min-height: 46px !important;
}

body.ref-site .btn-secondary,
body.ref-site .btn.btn-secondary,
body.ref-site a.btn-secondary,
body.ref-site .bg-secondary.btn {
  background: #0F8F86 !important;
  border: 1.5px solid #0F8F86 !important;
  color: #fff !important;
}

body.ref-site .btn-secondary:hover,
body.ref-site a.btn-secondary:hover {
  background: #0C756E !important;
  border-color: #0C756E !important;
}

body.ref-site .btn-outline-primary,
body.ref-site a.btn-outline-primary {
  background: #fff !important;
  color: #0B1F3A !important;
  border: 1.5px solid #d9d3c8 !important;
}

body.ref-site .btn-outline-primary:hover,
body.ref-site a.btn-outline-primary:hover {
  border-color: #0B1F3A !important;
  background: #fff !important;
  color: #0B1F3A !important;
}

body.ref-site .btn-gredient1,
body.ref-site .TalkBtn {
  background: #fff !important;
  border: 1.5px solid #d9d3c8 !important;
  border-radius: 12px !important;
  color: #0B1F3A !important;
}

/* Headings / body copy */
body.ref-site h2,
body.ref-site .font-50px,
body.ref-site .font-42px,
body.ref-site .font-40px {
  color: #0B1F3A !important;
  letter-spacing: -0.03em !important;
  font-weight: 700 !important;
}

body.ref-site .font-50px { font-size: clamp(28px, 4vw, 40px) !important; }
body.ref-site .font-42px { font-size: clamp(26px, 3.5vw, 34px) !important; }
body.ref-site .font-32px { font-size: 24px !important; }
body.ref-site .font-28px { font-size: 20px !important; }
body.ref-site .font-26px { font-size: 20px !important; }
body.ref-site .font-22px { font-size: 17px !important; }

body.ref-site .font-primary,
body.ref-site p {
  color: #5c6b7a;
}

/* Sections / cards */
body.ref-site .pageSection {
  padding-top: 48px !important;
  padding-bottom: 48px !important;
  background: #fff !important;
}

body.ref-site .pageSection:nth-of-type(even),
body.ref-site .bg-stands,
body.ref-site .chaosWrapper,
body.ref-site .section_wrap.bg-light,
body.ref-site .who-its-for-section .who-its-for-container {
  background: #F6F3EE !important;
}

body.ref-site .who-its-for-container,
body.ref-site .rounded-20px,
body.ref-site .rounded-15px,
body.ref-site .about-pathshala-card,
body.ref-site .comparison-card,
body.ref-site .before-card,
body.ref-site .after-card,
body.ref-site .pricing-header,
body.ref-site .infoCard,
body.ref-site .feature-card,
body.ref-site .ps-choose-card,
body.ref-site .card {
  border-radius: 18px !important;
  border: 1px solid #ece7e0 !important;
  box-shadow: 0 12px 36px rgba(11, 31, 58, 0.05) !important;
  background: #fff !important;
  overflow: hidden;
}

body.ref-site .who-its-for-container {
  padding: 28px !important;
}

body.ref-site .who-its-for-container h2.text-white,
body.ref-site .text-white {
  color: #0B1F3A !important;
}

/* Hide old Kenya-era ribbons / ornate bits */
body.ref-site .before-ribbon,
body.ref-site .after-ribbon,
body.ref-site img[src*="ribbon"],
body.ref-site img[src*="before-ribbon"],
body.ref-site img[src*="after-ribbon"],
body.ref-site img[src*="green_ribbon"],
body.ref-site img[src*="red_ribbon"],
body.ref-site .arrow-style-1,
body.ref-site .arrow-style-2,
body.ref-site .ProofComment_box_2.rounded-bottom-right-0 {
  /* keep proof comments but soften */
}

body.ref-site .comparison-card h5,
body.ref-site .comparison-card .text-white {
  color: #0B1F3A !important;
}

body.ref-site .comparison-card.before-card,
body.ref-site .comparison-card.after-card {
  background: #fff !important;
  padding: 22px !important;
}

body.ref-site .ProofComment_box {
  background: #e7f6f4 !important;
  border: 1px solid #d5efeb !important;
  border-radius: 14px !important;
  color: #0B1F3A !important;
  box-shadow: none !important;
}

/* Tables */
body.ref-site table {
  border-collapse: separate !important;
  border-spacing: 0 !important;
  overflow: hidden;
  border-radius: 14px !important;
  border: 1px solid #ece7e0 !important;
}

body.ref-site table th {
  background: #F6F3EE !important;
  color: #0B1F3A !important;
  font-weight: 650 !important;
}

body.ref-site table td {
  color: #24344d !important;
}

/* Accordion / FAQ */
body.ref-site .accordion-item,
body.ref-site .accordion-button {
  border-radius: 12px !important;
  border-color: #ece7e0 !important;
}

body.ref-site .accordion-button:not(.collapsed) {
  background: #e7f6f4 !important;
  color: #0B1F3A !important;
  box-shadow: none !important;
}

/* Forms / modals */
body.ref-site .modal-content {
  border-radius: 18px !important;
  border: 1px solid #ece7e0 !important;
}

body.ref-site .form-control,
body.ref-site .form-select,
body.ref-site select.form-control {
  border-radius: 12px !important;
  border-color: #ece7e0 !important;
  min-height: 48px !important;
}

body.ref-site .form-control:focus {
  border-color: #0F8F86 !important;
  box-shadow: 0 0 0 3px rgba(15, 143, 134, 0.15) !important;
}

/* Images */
body.ref-site .imageWrapper,
body.ref-site .rounded-20px img,
body.ref-site .banner_section img.w-100 {
  border-radius: 18px !important;
}

/* Footer already dark via india-theme; tighten to homepage short style */
body.ref-site .footer_wrapper,
body.ref-site #fCol1.footer_row1 {
  margin-top: 24px !important;
  border-radius: 0 !important;
}

body.ref-site .ContactFooterV2,
body.ref-site .footer_top .row.d-none {
  /* keep contact strip */
}

body.ref-site .EmpoweringCol {
  background: #0F8F86 !important;
  color: #fff !important;
  border-radius: 999px !important;
  font-size: 18px !important;
}

/* Private schools / CBC extras */
body.ref-site .ps-hero,
body.ref-site .cbc-hero,
body.ref-site .sa-hero {
  background: #fff !important;
  padding-top: 24px !important;
}

body.ref-site .ps-choose-card__img,
body.ref-site .cbc-control-card__art {
  border-radius: 14px !important;
}

/* Content shell padding under sticky nav */
body.ref-site .page-wrapper > .ref-nav + *,
body.ref-site .ref-site-shell > .ref-nav + * {
  padding-top: 8px;
}

@media (max-width: 980px) {
  body.ref-site .bannerTagLine h1,
  body.ref-site h1.font-60px {
    font-size: 34px !important;
  }

  body.ref-site .ref-nav {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}
