/* si-academy-widget-01: GMR academy page body. Scoped under .si-acad.
   Colours are CSS variables; the theme setting overrides any of them (inline on the root).
   Defaults measured from www.gmrsports.in. The gallery is CSS-only: one hidden radio per photo;
   labels (thumbnails, arrows) select it. */
.si-acad {
  --si-acad-heading: #00327a;
  --si-acad-accent: #ea0a2a;
  --si-acad-text: rgba(0, 2, 13, 0.8);
  --si-acad-subheading: #00020d;
  --si-acad-list: #044f96;
  --si-acad-card-label: var(--si-acad-accent);
  --si-acad-card-text: #4f4f4f;
  --si-acad-banner-title: #fff;
  --si-acad-bg: #fff;
  --si-acad-placeholder: #dedede;
  --si-acad-card-bg: #fff;
  --si-acad-arrow-icon: #fff;
  --si-acad-divider: #e5e5e5;
  font-family: Manrope, manrope, "Noto Sans Devanagari", "Nirmala UI", Mangal, system-ui, sans-serif;
  color: var(--si-acad-heading);
  background: var(--si-acad-bg);
}
.si-acad *,
.si-acad *::before,
.si-acad *::after {
  box-sizing: border-box;
}
.si-acad-wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0;
}
@media (max-width: 1189px) {
  .si-acad-wrap {
    max-width: none;
    padding: 0 25px;
  }
}
@media (max-width: 767px) {
  .si-acad-wrap {
    padding: 0 15px;
  }
}

/* H1 */
.si-acad-head {
  padding: 40px 0 0;
}
.si-acad h1.si-acad-title {
  margin: 0;
  font-size: 20px;
  line-height: 24px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--si-acad-heading);
}

/* Gallery: hidden radio inputs drive the active slide */
.si-acad-gallery {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 183px;
  gap: 15px;
  align-items: start;
  margin-top: 60px;
}
/* display:none so a click never focuses (and scrolls the page to) the hidden input */
.si-acad-gallery > input {
  display: none;
}
.si-acad-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--si-acad-placeholder);
  overflow: hidden;
}
.si-acad-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.45s ease;
}
.si-acad-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.si-acad-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 30px;
  height: 30px;
  display: none;
  place-items: center;
  background: var(--si-acad-accent);
  cursor: pointer;
}
.si-acad-nav::before {
  content: "";
  width: 8px;
  height: 8px;
  border: solid var(--si-acad-arrow-icon);
  border-width: 0 0 2px 2px;
}
.si-acad-nav.prev {
  left: 10px;
}
.si-acad-nav.prev::before {
  transform: translateX(2px) rotate(45deg);
}
.si-acad-nav.next {
  right: 10px;
}
.si-acad-nav.next::before {
  transform: translateX(-2px) rotate(-135deg);
}

.si-acad-side {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
}
.si-acad-stage {
  min-width: 0;
}
/* Thumbnail column (like prod): exactly 4 thumbs of 183x103 with 20px gaps, top-aligned with the photo.
   No manual scroll and no hover effect; it slides to keep the active photo in view.
   --max (set on .si-acad-track) = photos - 4, so it never slides past the last thumb. */
.si-acad-thumbs {
  overflow: hidden;
  height: calc(183px * 9 / 16 * 4 + 60px);
}
.si-acad-track {
  --k: 0;
  --max: 0;
  --step: calc(183px * 9 / 16 + 20px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  transform: translateY(calc(min(var(--k), var(--max)) * var(--step) * -1));
  transition: transform 0.4s ease;
}
.si-acad-thumbs label {
  display: block;
  position: relative;
  overflow: hidden;
  flex: 0 0 auto;
  aspect-ratio: 16 / 9;
  background: var(--si-acad-placeholder);
  cursor: pointer;
  opacity: 0.45;
}
.si-acad-thumbs img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.si-acad-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding-top: 10px;
  font-size: 14px;
  font-weight: 700;
}
.si-acad-pager .si-acad-nav {
  position: static;
  transform: none;
}
.si-acad-pager .si-acad-nav.prev::before {
  transform: translateY(2px) rotate(135deg);
}
.si-acad-pager .si-acad-nav.next::before {
  transform: translateY(-2px) rotate(-45deg);
}
.si-acad-count {
  display: none;
  min-width: 34px;
  text-align: center;
}
.si-acad-count b {
  color: var(--si-acad-accent);
  font-weight: 700;
}

.si-acad-gallery > input:nth-of-type(1):checked ~ .si-acad-stage .si-acad-slide:nth-of-type(1) {
  opacity: 1;
  z-index: 1;
}
.si-acad-gallery > input:nth-of-type(1):checked ~ .si-acad-stage .si-acad-nav[data-s="1"],
.si-acad-gallery > input:nth-of-type(1):checked ~ .si-acad-side .si-acad-nav[data-s="1"] {
  display: grid;
}
.si-acad-gallery > input:nth-of-type(1):checked ~ .si-acad-side .si-acad-count:nth-of-type(1) {
  display: block;
}
.si-acad-gallery > input:nth-of-type(1):checked ~ .si-acad-side .si-acad-thumbs label:nth-child(1) {
  opacity: 1;
}
.si-acad-gallery > input:nth-of-type(1):checked ~ .si-acad-side .si-acad-track {
  --k: 0;
}
.si-acad-gallery > input:nth-of-type(2):checked ~ .si-acad-stage .si-acad-slide:nth-of-type(2) {
  opacity: 1;
  z-index: 1;
}
.si-acad-gallery > input:nth-of-type(2):checked ~ .si-acad-stage .si-acad-nav[data-s="2"],
.si-acad-gallery > input:nth-of-type(2):checked ~ .si-acad-side .si-acad-nav[data-s="2"] {
  display: grid;
}
.si-acad-gallery > input:nth-of-type(2):checked ~ .si-acad-side .si-acad-count:nth-of-type(2) {
  display: block;
}
.si-acad-gallery > input:nth-of-type(2):checked ~ .si-acad-side .si-acad-thumbs label:nth-child(2) {
  opacity: 1;
}
.si-acad-gallery > input:nth-of-type(2):checked ~ .si-acad-side .si-acad-track {
  --k: 0;
}
.si-acad-gallery > input:nth-of-type(3):checked ~ .si-acad-stage .si-acad-slide:nth-of-type(3) {
  opacity: 1;
  z-index: 1;
}
.si-acad-gallery > input:nth-of-type(3):checked ~ .si-acad-stage .si-acad-nav[data-s="3"],
.si-acad-gallery > input:nth-of-type(3):checked ~ .si-acad-side .si-acad-nav[data-s="3"] {
  display: grid;
}
.si-acad-gallery > input:nth-of-type(3):checked ~ .si-acad-side .si-acad-count:nth-of-type(3) {
  display: block;
}
.si-acad-gallery > input:nth-of-type(3):checked ~ .si-acad-side .si-acad-thumbs label:nth-child(3) {
  opacity: 1;
}
.si-acad-gallery > input:nth-of-type(3):checked ~ .si-acad-side .si-acad-track {
  --k: 0;
}
.si-acad-gallery > input:nth-of-type(4):checked ~ .si-acad-stage .si-acad-slide:nth-of-type(4) {
  opacity: 1;
  z-index: 1;
}
.si-acad-gallery > input:nth-of-type(4):checked ~ .si-acad-stage .si-acad-nav[data-s="4"],
.si-acad-gallery > input:nth-of-type(4):checked ~ .si-acad-side .si-acad-nav[data-s="4"] {
  display: grid;
}
.si-acad-gallery > input:nth-of-type(4):checked ~ .si-acad-side .si-acad-count:nth-of-type(4) {
  display: block;
}
.si-acad-gallery > input:nth-of-type(4):checked ~ .si-acad-side .si-acad-thumbs label:nth-child(4) {
  opacity: 1;
}
.si-acad-gallery > input:nth-of-type(4):checked ~ .si-acad-side .si-acad-track {
  --k: 1;
}
.si-acad-gallery > input:nth-of-type(5):checked ~ .si-acad-stage .si-acad-slide:nth-of-type(5) {
  opacity: 1;
  z-index: 1;
}
.si-acad-gallery > input:nth-of-type(5):checked ~ .si-acad-stage .si-acad-nav[data-s="5"],
.si-acad-gallery > input:nth-of-type(5):checked ~ .si-acad-side .si-acad-nav[data-s="5"] {
  display: grid;
}
.si-acad-gallery > input:nth-of-type(5):checked ~ .si-acad-side .si-acad-count:nth-of-type(5) {
  display: block;
}
.si-acad-gallery > input:nth-of-type(5):checked ~ .si-acad-side .si-acad-thumbs label:nth-child(5) {
  opacity: 1;
}
.si-acad-gallery > input:nth-of-type(5):checked ~ .si-acad-side .si-acad-track {
  --k: 2;
}
.si-acad-gallery > input:nth-of-type(6):checked ~ .si-acad-stage .si-acad-slide:nth-of-type(6) {
  opacity: 1;
  z-index: 1;
}
.si-acad-gallery > input:nth-of-type(6):checked ~ .si-acad-stage .si-acad-nav[data-s="6"],
.si-acad-gallery > input:nth-of-type(6):checked ~ .si-acad-side .si-acad-nav[data-s="6"] {
  display: grid;
}
.si-acad-gallery > input:nth-of-type(6):checked ~ .si-acad-side .si-acad-count:nth-of-type(6) {
  display: block;
}
.si-acad-gallery > input:nth-of-type(6):checked ~ .si-acad-side .si-acad-thumbs label:nth-child(6) {
  opacity: 1;
}
.si-acad-gallery > input:nth-of-type(6):checked ~ .si-acad-side .si-acad-track {
  --k: 3;
}
.si-acad-gallery > input:nth-of-type(7):checked ~ .si-acad-stage .si-acad-slide:nth-of-type(7) {
  opacity: 1;
  z-index: 1;
}
.si-acad-gallery > input:nth-of-type(7):checked ~ .si-acad-stage .si-acad-nav[data-s="7"],
.si-acad-gallery > input:nth-of-type(7):checked ~ .si-acad-side .si-acad-nav[data-s="7"] {
  display: grid;
}
.si-acad-gallery > input:nth-of-type(7):checked ~ .si-acad-side .si-acad-count:nth-of-type(7) {
  display: block;
}
.si-acad-gallery > input:nth-of-type(7):checked ~ .si-acad-side .si-acad-thumbs label:nth-child(7) {
  opacity: 1;
}
.si-acad-gallery > input:nth-of-type(7):checked ~ .si-acad-side .si-acad-track {
  --k: 4;
}
.si-acad-gallery > input:nth-of-type(8):checked ~ .si-acad-stage .si-acad-slide:nth-of-type(8) {
  opacity: 1;
  z-index: 1;
}
.si-acad-gallery > input:nth-of-type(8):checked ~ .si-acad-stage .si-acad-nav[data-s="8"],
.si-acad-gallery > input:nth-of-type(8):checked ~ .si-acad-side .si-acad-nav[data-s="8"] {
  display: grid;
}
.si-acad-gallery > input:nth-of-type(8):checked ~ .si-acad-side .si-acad-count:nth-of-type(8) {
  display: block;
}
.si-acad-gallery > input:nth-of-type(8):checked ~ .si-acad-side .si-acad-thumbs label:nth-child(8) {
  opacity: 1;
}
.si-acad-gallery > input:nth-of-type(8):checked ~ .si-acad-side .si-acad-track {
  --k: 5;
}

/* Body text */
.si-acad-body {
  padding-top: 15px;
}
.si-acad-body p {
  margin: 0 0 15px;
  font-size: 14px;
  line-height: 25.2px;
  color: var(--si-acad-text);
}
.si-acad-body p.si-acad-sub {
  font-weight: 700;
  color: var(--si-acad-subheading);
  margin-top: 25px;
}
.si-acad-body ol {
  margin: 0 0 15px;
  padding-left: 15px;
  list-style: decimal inside;
}
.si-acad-body li {
  font-size: 14px;
  line-height: 24px;
  font-weight: 700;
  color: var(--si-acad-list);
}
.si-acad-body a {
  color: inherit;
  text-decoration: none;
}

/* Location */
.si-acad-loc {
  position: relative;
  padding: 30px 0 60px;
}
.si-acad h2.si-acad-h {
  margin: 0 0 20px;
  font-size: 20px;
  line-height: 24px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--si-acad-heading);
}
.si-acad-map {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 7 / 3;
  object-fit: cover;
  background: var(--si-acad-placeholder);
}
.si-acad-card {
  position: absolute;
  top: 15px;
  right: 57px;
  width: 320px;
  padding: 35px 25px;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--si-acad-card-bg);
  border-radius: 0;
  box-shadow: 5px 5px 30px rgba(0, 0, 0, 0.1);
}
.si-acad-card h3 {
  margin: 0 0 25px;
  font-size: 20px;
  line-height: 24px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--si-acad-heading);
}
.si-acad-card .lbl {
  display: block;
  font-size: 16px;
  line-height: 22px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--si-acad-card-label);
}
.si-acad-card p {
  margin: 0 0 15px;
  font-size: 18px;
  line-height: 26px;
  font-weight: 700;
  color: var(--si-acad-card-text);
  overflow-wrap: anywhere;
}
.si-acad-card p a {
  color: inherit;
  text-decoration: none;
}
.si-acad-card hr {
  border: 0;
  border-top: 1px solid var(--si-acad-divider);
  margin: 0 0 25px;
}
.si-acad-card p:last-child {
  margin-bottom: 0;
}

/* Tablet + mobile (like prod): photo only, two red left/right arrows under it on the right,
   no thumbnails or counter; address card as a full-width rectangle below the map */
@media (max-width: 991px) {
  .si-acad-gallery {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 30px;
  }
  .si-acad-stage .si-acad-nav,
  .si-acad-thumbs,
  .si-acad-count {
    /* biome-ignore lint/complexity/noImportantStyles: must beat the per-photo :checked rules that show the arrows and counter */
    display: none !important;
  }
  .si-acad-pager {
    justify-content: flex-end;
    gap: 6px;
    padding-top: 0;
  }
  .si-acad-pager .si-acad-nav.prev::before {
    transform: translateX(2px) rotate(45deg);
  }
  .si-acad-pager .si-acad-nav.next::before {
    transform: translateX(-2px) rotate(-135deg);
  }
  .si-acad-map {
    aspect-ratio: 4 / 3;
  }
  .si-acad-card {
    position: static;
    width: auto;
    margin: 15px 0 0;
    min-height: 0;
    padding: 30px 25px;
  }
}
@media (max-width: 767px) {
  .si-acad-head {
    padding-top: 20px;
  }
  .si-acad h1.si-acad-title,
  .si-acad h2.si-acad-h,
  .si-acad-card h3 {
    font-size: 18px;
    line-height: 22px;
  }
  .si-acad-gallery {
    margin-top: 20px;
  }
  .si-acad-card p {
    font-size: 16px;
    line-height: 24px;
  }
}

/* Title on the breadcrumb banner: when the breadcrumb template sits directly above this one,
   its banner image (::after) hangs 63px below it and would cover the title. Lift the title
   above it in white and keep the photos below the banner. */
section[class*="breadcrumb_div"] + * .si-acad .si-acad-head {
  position: relative;
  z-index: 2;
  padding-top: 0;
  min-height: 63px;
  background: transparent;
}
section[class*="breadcrumb_div"] + * .si-acad h1.si-acad-title {
  color: var(--si-acad-banner-title);
}
section[class*="breadcrumb_div"] + * .si-acad .si-acad-gallery {
  margin-top: 30px;
}
@media (max-width: 767px) {
  section[class*="breadcrumb_div"] + * .si-acad .si-acad-gallery {
    margin-top: 20px;
  }
}

/* Text-only layout (no gallery, no location), e.g. the Hindi pages */
.si-acad--text {
  padding-bottom: 60px;
}
.si-acad--text h1.si-acad-title {
  font-size: 22px;
  line-height: 30px;
  text-transform: none;
  margin-bottom: 20px;
}
.si-acad--text .si-acad-body {
  padding-top: 0;
}
.si-acad--text .si-acad-body p.si-acad-sub {
  margin-top: 35px;
}
.si-acad--text .si-acad-body ol {
  padding-left: 0;
  margin-bottom: 10px;
}
@media (max-width: 767px) {
  .si-acad--text {
    padding-bottom: 40px;
  }
  .si-acad--text h1.si-acad-title {
    font-size: 18px;
    line-height: 26px;
  }
}

/* si-language-toggle-01: EN / हि switch. Colours come from the binding as
   inline custom properties on the root. */

.si-language-toggle-01 {
  --silt-text: #fff;
  --silt-track: #fff;
  --silt-knob: #f5a300;
  display: inline-flex;
  align-items: center;
}

.si-language-toggle-01 .silt-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px;
  border-radius: 4px;
  color: var(--silt-text);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

/* The link's name, for screen readers only. */
.si-language-toggle-01 .silt-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.si-language-toggle-01 .silt-toggle:focus-visible {
  outline: 2px solid var(--silt-text);
  outline-offset: 2px;
}

.si-language-toggle-01 .silt-track {
  position: relative;
  flex: none;
  box-sizing: border-box;
  width: 46px;
  height: 24px;
  border: 2px solid var(--silt-track);
  border-radius: 999px;
}

.si-language-toggle-01 .silt-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--silt-knob);
  transition: transform 0.2s ease;
}

/* On a Hindi page the knob sits on the हि side. */
.si-language-toggle-01--hi .silt-knob {
  transform: translateX(22px);
}

.si-language-toggle-01 .silt-toggle:hover .silt-knob {
  box-shadow: 0 0 0 3px rgb(255 255 255 / 25%);
}

@media (prefers-reduced-motion: reduce) {
  .si-language-toggle-01 .silt-knob {
    transition: none;
  }
}
