/* Final content system. Every rule is scoped away from the frozen header/footer. */
.ts-refreshed {
  --school-navy: #202540;
  --school-orange: #F58220;
  --school-white: #FFFFFF;
  --school-grey: #F4F5F8;
  --school-peach: #FFF1E5;
  color: var(--school-navy);
  background: var(--school-white);
  font-family: "HiStudy Euclid", Arial, sans-serif;
}
.ts-refreshed h1, .ts-refreshed h2, .ts-refreshed h3 { color: var(--school-navy); }
.ts-refreshed h1, .ts-refreshed h2 { font-family: "HiStudy Euclid", Arial, sans-serif; font-weight: 700; }
.ts-refreshed h2 em, .ts-refreshed h1 em {
  font-style: normal; color: inherit;
  background: linear-gradient(transparent 65%, #ffd6b5 65%, #ffd6b5 94%, transparent 94%);
}
.ts-refreshed .refresh-kicker, .ts-refreshed .label { color: var(--school-navy); border-color: #20254022; }
.ts-refreshed .refresh-kicker::before, .ts-refreshed .label::before { background: var(--school-orange); box-shadow: 0 0 0 3px var(--school-peach); }
.ts-refreshed .premium-heading, .ts-refreshed .refresh-heading {
  text-align: center; max-width: 900px; margin: 0 auto 38px;
}
.ts-refreshed .premium-heading h2, .ts-refreshed .refresh-heading h2 {
  font-size: clamp(34px, 4.2vw, 58px); letter-spacing: -1.8px; line-height: 1.12; margin: 25px 0 20px;
}
.ts-refreshed .premium-heading p, .ts-refreshed .refresh-heading p {
  max-width: 720px; margin: 0 auto; color: #626679; font-size: 18px; line-height: 1.7;
}
.ts-refreshed .section-head { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 20px; text-align: center; }
.ts-refreshed .section-head > div { width: 100%; }
.ts-refreshed .section-head h2 { margin: 25px auto 20px; max-width: 850px; font-size: clamp(34px, 4.2vw, 58px); }
.ts-refreshed .updates-heading, .ts-refreshed .inquiry-copy { text-align: center; }
.ts-refreshed .updates > .label { display: flex; width: fit-content; margin: 0 auto 24px; }
.ts-refreshed .about-grid { display: block; max-width: 960px; margin: auto; text-align: center; }
.ts-refreshed .about-grid p { font-size: 18px; line-height: 1.8; }
.ts-refreshed .mini-links-section { padding: 80px 40px; }
/* Rounded section starts and endings follow the supplied reference. */
.premium-home > section:not(.hero) {
  width: calc(100% - 36px); margin: 24px auto; border-radius: 46px; overflow: clip;
}
.premium-home > section:nth-of-type(2n):not(.hero) { background-color: var(--school-grey); }
.premium-home > section:nth-of-type(2n+1):not(.hero) { background-color: var(--school-white); }
.premium-home > .ts-message-section { background: var(--school-peach) !important; }
.premium-home > .amenities-showcase, .premium-home > .inquiry { background: var(--school-navy) !important; }
.ts-refreshed .amenities-showcase h2, .ts-refreshed .amenities-showcase p,
.ts-refreshed .amenities-showcase .refresh-kicker,
.ts-refreshed .inquiry h2, .ts-refreshed .inquiry .label,
.ts-refreshed .inquiry-copy p { color: white; }
.ts-refreshed .amenities-showcase .refresh-kicker, .ts-refreshed .inquiry .label { border-color: #ffffff55; }
.ts-refreshed .hero h1, .ts-refreshed .hero h1 em { color: white; }
.ts-refreshed .hero-copy > span { color: var(--school-orange); }
.ts-refreshed .inquiry { display: block; }
.ts-refreshed .inquiry-copy { margin: 0 auto 36px; max-width: 850px; }
.ts-refreshed .inquiry-form { max-width: 980px; margin: auto; }
.ts-refreshed .blog-grid small, .ts-refreshed .designation, .ts-refreshed .inner-hero span { color: #a64c00; }
.ts-refreshed .inner-hero { background: var(--school-grey); text-align: center; }
.ts-refreshed .updates-card, .ts-refreshed .blog-grid article { background: var(--school-white); }
.ts-refreshed .section-more { display: flex; justify-content: center; margin: 38px auto 0; padding: 0 12px; }
/* HiStudy border-to-fill hover, with a rolling text/arrow transition. */
.ts-refreshed .premium-button {
  position: relative; isolation: isolate; overflow: hidden; display: inline-flex;
  align-items: center; justify-content: center; gap: 14px; min-height: 54px;
  min-width: 172px; padding: 14px 26px; border: 2px solid var(--school-orange);
  border-radius: 999px; background: transparent; color: var(--school-navy);
  font: 700 15px/1.3 "HiStudy Euclid", Arial, sans-serif; text-decoration: none;
  cursor: pointer; transition: color .3s, box-shadow .3s, transform .3s;
}
.ts-refreshed .premium-button::before {
  content: ""; position: absolute; inset: 0; background: var(--school-orange);
  transform: translateY(105%); transition: transform .35s ease; z-index: -1;
}
.ts-refreshed .premium-button:hover::before, .ts-refreshed .premium-button:focus-visible::before { transform: translateY(0); }
.ts-refreshed .premium-button:hover { color: var(--school-navy); box-shadow: 0 8px 22px #f5822025; transform: translateY(-2px); }
.ts-refreshed .premium-button > span { transition: transform .3s; }
.ts-refreshed .premium-button:hover > span { transform: translateX(4px); }
.ts-refreshed .premium-button:focus-visible { outline: 3px solid var(--school-navy); outline-offset: 4px; }
.ts-refreshed .amenities-showcase .premium-button, .ts-refreshed .inquiry .premium-button { color: white; }
.ts-refreshed .amenities-showcase .premium-button:hover, .ts-refreshed .inquiry .premium-button:hover { color: var(--school-navy); }
/* Portrait-left card with a soft background and readable editorial copy. */
.ts-refreshed .ts-message-title { flex-direction: column; gap: 0; text-align: center; }
.ts-refreshed .ts-message-title h2 { color: var(--school-navy); margin: 24px 0 18px; }
.ts-refreshed .ts-message-title h2::before, .ts-refreshed .ts-message-title > span:not(.refresh-kicker) { display: none; }
.ts-refreshed .ts-message-tabs { display: flex; width: fit-content; margin: 12px auto 34px; }
.ts-refreshed .ts-message-panel, .ts-refreshed .ts-leader-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 44px; align-items: center;
  padding: 22px; border-radius: 24px; background: linear-gradient(135deg, white 40%, var(--school-peach));
  border: 1px solid #2025400e; box-shadow: 0 18px 50px #2025400a;
}
.ts-refreshed .ts-message-photo, .ts-refreshed .ts-leader-image {
  order: -1; margin: 0; height: 550px; border-radius: 16px;
  background: linear-gradient(145deg, #e6e7eb, var(--school-peach));
  overflow: hidden;
}
.ts-refreshed .ts-message-photo img, .ts-refreshed .ts-leader-image img {
  width: 100%; height: 100%; object-fit: cover; object-position: center top;
  transform: scale(1.1); transform-origin: center top;
}
.ts-refreshed .ts-message-copy { padding: 24px 20px 24px 0; }
.ts-refreshed .ts-message-quote { font: 700 clamp(24px, 2.5vw, 34px)/1.35 "HiStudy Euclid", Arial, sans-serif; color: var(--school-navy); }
.ts-refreshed .ts-message-copy p:not(.ts-message-quote) { color: #626679; line-height: 1.8; }
.ts-refreshed .ts-message-footer { flex-wrap: wrap; gap: 18px; border-top-color: #20254018; }
.ts-refreshed .ts-leader-page { background: var(--school-grey); }
.ts-refreshed .ts-leader-heading { justify-content: center; text-align: center; }
.ts-refreshed .ts-leader-heading span { display: none; }
.ts-refreshed .ts-leader-content { padding: 22px 16px 22px 0; }
/* English-first, Hindi-second policy pages. */
.ts-refreshed .policy-hero { padding: 125px 24px 46px; background: var(--school-grey); border-radius: 0 0 48px 48px; }
.ts-refreshed .policy-layout { max-width: 1100px; margin: 36px auto; padding: 0 24px; }
.ts-refreshed .policy-card { scroll-margin-top: 140px; margin: 28px 0; padding: 44px; background: white; border: 1px solid #20254012; border-radius: 24px; box-shadow: 0 14px 40px #20254007; }
.ts-refreshed .policy-card h2 { font-size: 30px; margin: 12px 0 28px; }
.ts-refreshed .policy-card p { font-size: 17px; line-height: 1.9; color: #404557; margin: 0 0 18px; overflow-wrap: anywhere; }
.ts-refreshed .hindi-content { background: var(--school-peach); font-family: "Nirmala UI", "Mangal", sans-serif; }
.ts-refreshed .hindi-content p { font-size: 18px; line-height: 2; }
.ts-refreshed .language-caption { color: #9e4700; font-size: 12px; font-weight: 700; letter-spacing: 2px; }
.ts-refreshed .language-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; padding: 28px 20px 0; }
.ts-refreshed .information-grid, .ts-refreshed .facility-directory { max-width: 1260px; margin: 45px auto; padding: 0 24px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ts-refreshed .information-link { position: relative; padding: 28px; border: 1px solid #20254014; border-radius: 20px; text-decoration: none; color: var(--school-navy); background: var(--school-grey); transition: transform .3s, background .3s; }
.ts-refreshed .information-link:hover { transform: translateY(-5px); background: var(--school-peach); }
.ts-refreshed .information-link > span { color: #a64c00; font-size: 13px; }
.ts-refreshed .information-link h3 { margin: 24px 0; font-size: 21px; }
.ts-refreshed .information-link b { position: absolute; bottom: 22px; right: 24px; }
.ts-refreshed .facility-directory article { overflow: hidden; border-radius: 18px; background: var(--school-grey); }
.ts-refreshed .facility-directory img { width: 100%; height: 240px; object-fit: cover; }
.ts-refreshed .facility-directory h3 { margin: 20px; font-size: 23px; }
.premium-page > .section-more { margin-bottom: 55px; }
@media (max-width: 760px) {
  .premium-home > section:not(.hero) { width: calc(100% - 20px); border-radius: 28px; margin: 14px auto; }
  .ts-refreshed .premium-heading h2, .ts-refreshed .refresh-heading h2 { letter-spacing: -1px; }
  .ts-refreshed .mini-links-section { padding: 52px 20px; }
  .ts-refreshed .ts-message-panel, .ts-refreshed .ts-leader-grid { grid-template-columns: 1fr; gap: 12px; padding: 14px; }
  .ts-refreshed .ts-message-photo, .ts-refreshed .ts-leader-image { height: 400px; }
  .ts-refreshed .ts-message-copy, .ts-refreshed .ts-leader-content { padding: 18px 8px; }
  .ts-refreshed .ts-message-tab { padding: 13px 17px; font-size: 13px; }
  .ts-refreshed .policy-hero { padding: 105px 20px 30px; border-radius: 0 0 28px 28px; }
  .ts-refreshed .policy-layout { padding: 0 14px; }
  .ts-refreshed .policy-card { padding: 24px 20px; }
  .ts-refreshed .policy-card h2 { font-size: 25px; }
  .ts-refreshed .information-grid, .ts-refreshed .facility-directory { grid-template-columns: 1fr; padding: 0 18px; }
  .ts-refreshed .inquiry .section-more { margin-top: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .ts-refreshed .premium-button, .ts-refreshed .premium-button::before,
  .ts-refreshed .premium-button > span, .ts-refreshed .information-link { transition: none; }
}
/* Override legacy filled CTA colours with the same border variation. */
.ts-refreshed .premium-button.btn,
.ts-refreshed .inquiry-form button.premium-button {
  background: transparent; color: var(--school-navy); border: 2px solid var(--school-orange);
}
.ts-refreshed .hero .premium-button.btn,
.ts-refreshed .inquiry .premium-button,
.ts-refreshed .amenities-showcase .premium-button { color: white; }
.ts-refreshed .hero .premium-button:hover,
.ts-refreshed .inquiry .premium-button:hover,
.ts-refreshed .amenities-showcase .premium-button:hover { color: var(--school-navy); }
.ts-refreshed .inner-content { background: var(--school-grey); }
.ts-refreshed .simple-card small, .ts-refreshed .event-meta-line,
.ts-refreshed .message-quote, .ts-refreshed .ts-leader-content blockquote { color: var(--school-navy); }
.ts-refreshed .download-list b { background: var(--school-orange); color: var(--school-navy); }
.ts-refreshed .heading-line, .ts-refreshed .title-line { background: var(--school-orange); }

.ts-refreshed .section-subtitle { text-align: center; max-width: 740px; margin: 18px auto 30px; color: #626679; font-size: 18px; line-height: 1.7; }
.ts-refreshed .hero-copy { text-align: center; margin-inline: auto; }
.ts-refreshed .hero-actions { justify-content: center; }


/* Timetables and fee tables used by the four handbook pages. */
.ts-refreshed .schedule-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0 30px;
}
.ts-refreshed .schedule-grid > div {
  display: grid;
  gap: 9px;
  padding: 20px;
  border: 1px solid #20254014;
  border-radius: 16px;
  background: var(--school-grey);
}
.ts-refreshed .schedule-grid strong { color: var(--school-navy); }
.ts-refreshed .schedule-grid span { color: #9e4700; font-weight: 700; }
.ts-refreshed .schedule-grid small { color: #626679; line-height: 1.6; }
.ts-refreshed .policy-list { margin: 20px 0 30px; padding-left: 25px; }
.ts-refreshed .policy-list li { margin: 0 0 18px; padding-left: 8px; color: #404557; line-height: 1.9; }
.ts-refreshed .table-scroll { overflow-x: auto; margin: 22px 0 30px; border-radius: 16px; }
.ts-refreshed .school-table { width: 100%; border-collapse: collapse; min-width: 560px; background: white; }
.ts-refreshed .school-table th,
.ts-refreshed .school-table td { padding: 16px 20px; border: 1px solid #20254018; text-align: left; }
.ts-refreshed .school-table th { background: var(--school-navy); color: white; }
.ts-refreshed .school-table tbody tr:nth-child(even) { background: var(--school-peach); }
@media (max-width: 760px) {
  .ts-refreshed .schedule-grid { grid-template-columns: 1fr; }
  .ts-refreshed .school-table th,
  .ts-refreshed .school-table td { padding: 13px 15px; }
}

/* Navigation expansion: the original header dimensions and colours stay intact. */
.desktop-nav .desktop-menu {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 52px;
}
.desktop-nav .desktop-submenu {
  position: absolute;
  top: calc(100% - 2px);
  left: 50%;
  z-index: 90;
  width: 238px;
  padding: 10px;
  border: 1px solid #ffffff24;
  border-radius: 16px;
  background: #202540;
  box-shadow: 0 22px 50px #0d123d38;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 12px);
  transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
}
.desktop-nav .desktop-submenu-right {
  right: 0;
  left: auto;
  transform: translateY(12px);
}
.desktop-nav .desktop-menu:hover .desktop-submenu,
.desktop-nav .desktop-menu:focus-within .desktop-submenu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.desktop-nav .desktop-menu:hover .desktop-submenu-right,
.desktop-nav .desktop-menu:focus-within .desktop-submenu-right {
  transform: translateY(0);
}
.desktop-nav .desktop-submenu a {
  display: block;
  padding: 11px 13px;
  border-radius: 10px;
  color: #fff;
  font: 600 13px/1.35 "Inter", sans-serif;
  white-space: normal;
}
.desktop-nav .desktop-submenu a::after { display: none; }
.desktop-nav .desktop-submenu a:hover,
.desktop-nav .desktop-submenu a:focus-visible {
  color: #202540;
  background: #F58220;
  outline: none;
}

/* Dedicated leadership pages. */
.ts-refreshed .leadership-language {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #20254018;
}
.ts-refreshed .leadership-language h2 {
  margin: 0 0 16px;
  color: var(--school-navy);
  font: 700 23px/1.35 "HiStudy Euclid", "Outfit", sans-serif;
}
.ts-refreshed .leadership-language[lang="hi"] {
  font-family: "Nirmala UI", "Mangal", sans-serif;
}
.ts-refreshed .leadership-switch {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

/* Achievement and media directory cards. */
.ts-refreshed .editorial-grid {
  width: min(1240px, calc(100% - 40px));
  margin: 42px auto 60px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.ts-refreshed .editorial-card {
  position: relative;
  min-height: 300px;
  padding: 30px;
  overflow: hidden;
  border: 1px solid #20254012;
  border-radius: 22px;
  background: linear-gradient(145deg, #fff 15%, var(--school-peach));
  box-shadow: 0 16px 42px #2025400b;
  transition: transform .3s ease, box-shadow .3s ease;
}
.ts-refreshed .editorial-card::after {
  content: "";
  position: absolute;
  right: -48px;
  bottom: -52px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: #f5822015;
}
.ts-refreshed .editorial-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 24px 55px #20254016;
}
.ts-refreshed .editorial-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 48px;
  border-radius: 16px;
  background: var(--school-navy);
  color: var(--school-orange);
  font-size: 25px;
  font-weight: 800;
}
.ts-refreshed .editorial-card h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 12px;
  color: var(--school-navy);
  font-size: 23px;
}
.ts-refreshed .editorial-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #626679;
  font-size: 15px;
  line-height: 1.75;
}
.ts-refreshed .editorial-note {
  width: min(900px, calc(100% - 40px));
  margin: -20px auto 70px;
  padding: 22px 25px;
  border-left: 4px solid var(--school-orange);
  border-radius: 0 16px 16px 0;
  background: #fff;
  color: #626679;
  line-height: 1.75;
}
@media (max-width: 900px) {
  .desktop-nav .desktop-menu { display: none; }
  .ts-refreshed .editorial-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .ts-refreshed .editorial-grid { grid-template-columns: 1fr; width: calc(100% - 28px); }
  .ts-refreshed .editorial-card { min-height: 270px; }
}
