/* Progressive interaction layer. Content is usable before JavaScript runs. */
.parallax-frame { overflow: hidden; border-radius: inherit; width: 100%; height: 100%; }
.parallax-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.home-hero .hero-photo .parallax-frame { border-radius: 24px; height: auto; }
.home-hero .hero-photo .parallax-frame img { aspect-ratio: 1.35; height: auto; }
.involved-img .parallax-frame { border-radius: 16px; height: 290px; }
.parallax-active img { will-change: transform; }

/* Scroll-snap carousels: touch scrolling, keyboard navigation, explicit controls. */
.content-carousel { --slide-gap: 24px; position: relative; min-width: 0; }
.carousel-track, .timeline.carousel-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 3);
  grid-template-columns: none; gap: var(--slide-gap); overflow-x: auto;
  overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 4px;
  scrollbar-width: thin; scrollbar-color: #8bbaaa #e6f0eb;
  width: 100%; max-width: none; margin: 0; padding: 8px 4px 24px;
  position: relative; align-items: stretch; -webkit-overflow-scrolling: touch;
}
.carousel-slide { scroll-snap-align: start; min-width: 0; height: auto; }
.people-carousel .carousel-track { scrollbar-width: none; -ms-overflow-style: none; }
.people-carousel .carousel-track::-webkit-scrollbar { display: none; width: 0; height: 0; }
.people-carousel .team-card, .people-carousel .advisory-card { margin: 0; padding: 30px 26px; border: 1px solid #dce8e1; background: #fff; }
.people-carousel .team-card:hover, .people-carousel .advisory-card:hover { transform: none; box-shadow: none; border-color: var(--brand-green); }
.people-carousel .team-avatar { width: 112px; height: 112px; margin-inline: auto; }
.people-carousel h4 { font-size: 23px; line-height: 1.25; }
.people-carousel p { font-size: 14px; line-height: 1.75; }
.people-carousel .team-role { color: var(--brand-green-deep); font-size: 12px; }
.people-carousel .team-card:not(:has(.team-avatar)) { background: #e6f2eb; }
.carousel-controls { display: none; justify-content: space-between; align-items: center; gap: 16px; margin-top: 24px; }
.carousel-ready .carousel-controls { display: flex; }
.carousel-hint { color: var(--neutral); font-size: 12px; }
.carousel-actions { display: flex; align-items: center; gap: 14px; }
.carousel-button { border: 1px solid #c4d9ce; border-radius: 30px; background: #fff; color: var(--ink); min-height: 44px; padding: 10px 20px; font-size: 12px; font-weight: 700; cursor: pointer; transition: background .2s, color .2s; }
.carousel-button:hover:not(:disabled) { background: var(--brand-action); color: white; border-color: var(--brand-action); }
.carousel-button:disabled { opacity: .35; cursor: default; }
.carousel-status { min-width: 75px; text-align: center; font-size: 12px; font-variant-numeric: tabular-nums; color: #53665b; }
.timeline.carousel-track::before { display: none; }
.timeline.carousel-track { gap: 0; grid-auto-columns: 35%; padding-top: 18px; padding-left: 4px; }
.timeline.carousel-track .timeline-item { padding: 34px 24px 0 0; border-top: 2px solid #9ccdbb; position: relative; }
.timeline.carousel-track .timeline-item:last-child { padding-bottom: 0; }
.timeline.carousel-track .timeline-marker { left: 24px; top: -8px; height: 14px; width: 14px; border: 3px solid var(--brand-green-deep); background: #eff6f2; }
.timeline.carousel-track .timeline-content { padding: 28px; height: 100%; border: 1px solid #e0e9e3; box-shadow: none; }
.timeline.carousel-track .timeline-date { color: var(--brand-action); font-size: 12px; margin-bottom: 15px; }
.timeline.carousel-track h4 { font-size: 23px; line-height: 1.25; font-weight: 500; margin-bottom: 14px; }
.timeline.carousel-track p { font-size: 14px; }

/* District reach: actual published school counts, never fictional growth data. */
.section-reach { padding: 30px 0 58px; }
.reach-panel { border: 1px solid #dae7df; border-radius: 24px; padding: 42px; background: #fff; }
.reach-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 34px; }
.reach-heading h2 { max-width: 580px; font-size: clamp(27px, 3vw, 39px); font-weight: 500; line-height: 1.15; margin-bottom: 14px; }
.reach-heading p { color: var(--neutral); font-size: 14px; }
.chart-switch { display: flex; flex-shrink: 0; border: 1px solid #d6e4db; border-radius: 30px; padding: 4px; gap: 4px; }
.chart-switch button { background: transparent; color: #476052; border: 0; border-radius: 24px; padding: 11px 16px; min-height: 44px; font-size: 11px; font-weight: 700; cursor: pointer; }
.chart-switch button[aria-pressed=true] { background: var(--ink); color: white; }
.reach-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: stretch; }
.chart-axis { display: flex; justify-content: space-between; font-size: 10px; color: #65766c; padding: 0 6px 15px; border-bottom: 1px solid #e3ebe6; gap: 16px; }
.district-bars { padding-block: 16px; display: flex; flex-direction: column; gap: 8px; }
.district-bar { display: grid; grid-template-columns: 78px minmax(0,1fr) 50px; gap: 14px; align-items: center; width: 100%; padding: 14px 8px; background: transparent; border: 1px solid transparent; border-radius: 9px; cursor: pointer; text-align: left; color: var(--ink); }
.district-bar:hover { background: #f3f8f5; }
.district-bar[aria-pressed=true] { background: #edf6f1; border-color: #d2e8dd; }
.chart-label { font-size: 13px; font-weight: 600; }
.chart-value { text-align: right; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.chart-track { background: #eaf1ed; border-radius: 5px; height: 25px; overflow: hidden; }
.chart-fill { display: block; height: 100%; border-radius: 5px; background: var(--brand-action); transform-origin: left; transition: width .6s ease, transform .8s ease, background .2s; }
.district-bar:nth-child(even) .chart-fill { background: var(--brand-green-deep); }
.chart-waiting .chart-fill { transform: scaleX(0); }
.chart-note { color: var(--neutral); font-size: 11px; line-height: 1.65; }
.district-detail { background: #eef5f0; border-radius: 18px; padding: 28px; }
.district-detail-label { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-green-deep); font-weight: 700; }
.district-detail h3 { font-size: 32px; font-weight: 500; margin: 14px 0 5px; }
.district-detail strong { font-size: 13px; color: var(--brand-green-deep); }
.district-detail p { font-size: 13px; color: #52685b; line-height: 1.75; margin: 17px 0 20px; }
.district-detail .text-btn { font-size: 12px; text-decoration: underline; text-underline-offset: 4px; }
@media(max-width: 1000px) {
  .carousel-track { grid-auto-columns: calc((100% - 24px) / 2); }
  .timeline.carousel-track { grid-auto-columns: 48%; }
  .reach-heading { align-items: flex-start; flex-direction: column; gap: 22px; }
  .reach-panel { padding: 30px; }
  .reach-layout { gap: 24px; }
}
@media(max-width: 640px) {
  .carousel-track { grid-auto-columns: 87%; gap: 16px; }
  .timeline.carousel-track { grid-auto-columns: 90%; }
  .timeline.carousel-track .timeline-item { padding-right: 18px; }
  .timeline.carousel-track .timeline-content { padding: 24px; }
  .carousel-controls { align-items: flex-start; flex-direction: column; margin-top: 18px; gap: 14px; }
  .carousel-actions { width: 100%; justify-content: space-between; }
  .carousel-button { padding-inline: 22px; }
  .reach-panel { padding: 25px 18px; border-radius: 18px; }
  .reach-layout { grid-template-columns: 1fr; }
  .district-bar { grid-template-columns: 67px minmax(0,1fr) 43px; gap: 8px; padding-inline: 5px; }
  .chart-label { font-size: 12px; }
  .chart-value { font-size: 12px; }
  .chart-axis { font-size: 9px; }
  .district-detail { padding: 24px; }
  .home-hero .hero-photo .parallax-frame { border-radius: 18px; }
  .home-hero .hero-photo .parallax-frame img { aspect-ratio: 1.65; }
  .involved-img .parallax-frame { height: 220px; }
}
@media(prefers-reduced-motion: reduce) {
  .chart-fill { transition: none; }
  .chart-waiting .chart-fill { transform: none; }
  .parallax-active img { transform: none !important; will-change: auto; }
}

/* Rajasthan explorer: an accessible directory paired with a local SVG map. */
.school-explorer-section { padding: 12px 0 76px; }
.school-explorer { background: #163c3d; color: #f5faf6; border-radius: 28px; overflow: hidden; padding: 44px 44px 22px; }
.explorer-heading { display: flex; justify-content: space-between; align-items: end; gap: 50px; padding-bottom: 30px; border-bottom: 1px solid #517374; }
.explorer-heading .tag { background: #60b09c; color: #102f30; margin-bottom: 20px; }
.explorer-heading h2 { color: #f5faf6; font-size: clamp(32px,4vw,54px); font-weight: 500; line-height: 1.08; letter-spacing: -.035em; margin: 0; }
.explorer-heading > p { max-width: 290px; color: #c5dbd4; line-height: 1.7; font-size: 14px; margin: 0 0 4px; }
.explorer-layout { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(280px,1fr); }
.explorer-map-column { min-width: 0; padding: 24px 24px 26px 0; align-self: center; }
.explorer-map { position: relative; aspect-ratio: 760/590; width: 100%; isolation: isolate; background: radial-gradient(ellipse at center,#245653 0,transparent 69%); }
.map-geography, .map-geography svg, .map-marker-layer { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-pin-connectors { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.map-pin-connectors line { stroke: #007b9f; stroke-width: 1.5; stroke-dasharray: 3 2; vector-effect: non-scaling-stroke; }
.map-region { fill: #e2ebd9; stroke: #a4b8a7; stroke-width: .85; stroke-linejoin: round; }
.map-region-served { fill: #9dcab6; }
.map-region.is-active { fill: #60b09c; stroke: #f5faf6; stroke-width: 2; }
.map-state-label { position: absolute; left: 52%; top: 33%; color: #244844; font-size: clamp(9px,1vw,12px); letter-spacing: .17em; pointer-events: none; }
.map-compass { position: absolute; right: 4%; top: 4%; color: #b6cfc6; font-size: 12px; letter-spacing: .12em; }
.school-map-pin { position: absolute; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 2px solid #e8f8f3; border-radius: 50%; background: #007b9f; color: white; font: 600 12px 'DM Sans',sans-serif; box-shadow: 0 0 0 5px #00a0d22b,0 3px 9px #102b3159; transform: translate(-50%,-50%); cursor: pointer; transition: background .2s,box-shadow .2s; z-index: 1; }
.school-map-pin::before { content: ''; position: absolute; inset: -5px; }
.school-map-pin:hover,.school-map-pin[aria-pressed=true] { background: #163c3d; box-shadow: 0 0 0 7px #00a0d25c,0 4px 14px #102b3180; z-index: 3; }
.district-map-pin { width: 40px; height: 40px; }
.school-explorer button:focus-visible,.school-explorer a:focus-visible,.school-explorer input:focus-visible,.school-explorer summary:focus-visible { outline: 3px solid #76daf4; outline-offset: 4px; }
.map-legend { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 15px; font-size: 11px; color: #d7e9e2; }
.map-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #00a0d2; margin-right: 7px; }
.map-legend button { color: #e3f4ed; background: transparent; border: 1px solid #648683; border-radius: 24px; min-height: 44px; padding: 9px 15px; font: inherit; cursor: pointer; }
.map-legend button:hover { background: #295453; }
.map-precision { color: #b6cfc6; font-size: 11px; line-height: 1.7; max-width: 470px; margin: 14px 0 0; }
.explorer-panel { border-left: 1px solid #517374; padding: 30px 0 28px 30px; min-width: 0; }
.explorer-eyebrow { display: flex; align-items: center; gap: 12px; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: #a8d9c8; }
[data-map-number] { display: inline-grid; place-items: center; min-width: 34px; min-height: 32px; border: 1px solid #648683; padding: 6px; }
.explorer-summary h3 { font-size: clamp(25px,2.7vw,36px); line-height: 1.13; letter-spacing: -.025em; color: #f5faf6; font-weight: 500; margin: 20px 0 12px; }
.explorer-summary p { color: #c5dbd4; font-size: 12px; line-height: 1.7; margin-bottom: 22px; }
.school-search-label { display: block; color: #f5faf6; font-size: 11px; margin-bottom: 9px; font-weight: 600; }
.school-search-wrap { position: relative; }
.school-search-wrap svg { position: absolute; top: 15px; left: 13px; color: #a8d9c8; pointer-events: none; }
.school-search-wrap input { width: 100%; min-width: 0; height: 46px; background: #224a49; color: #fff; border: 1px solid #6b8982; border-radius: 8px; padding: 10px 12px 10px 39px; font: 12px 'DM Sans',sans-serif; }
.school-search-wrap input::placeholder { color: #bad2c9; opacity: 1; }
.school-result-count { color: #b6cfc6; font-size: 10px; padding-block: 12px 8px; }
.school-results { max-height: 194px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #60b09c #224a49; border-block: 1px solid #517374; }
.school-results button { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; text-align: left; padding: 11px 12px; min-height: 44px; border: 0; border-bottom: 1px solid #3c6260; background: transparent; color: #e3f4ed; cursor: pointer; font: 12px 'DM Sans',sans-serif; }
.school-results button[hidden],.school-explorer [hidden] { display: none !important; }
.school-results button small { color: #bad2c9; font-size: 9px; flex-shrink: 0; }
.school-results button:hover { background: #2b5552; }
.school-results button[aria-pressed=true] { color: #163c3d; background: #b6dfce; }
.school-results button[aria-pressed=true] small { color: #295753; }
.school-empty { font-size: 13px; color: #d7e9e2; padding: 22px 0; }
.school-detail { padding-top: 20px; }
.school-detail h4 { font-size: 18px; line-height: 1.3; font-weight: 500; color: #f5faf6; margin: 9px 0; }
.school-detail p { color: #c5dbd4; font-size: 11px; line-height: 1.65; margin: 0 0 12px; }
.school-programmes { display: flex; flex-wrap: wrap; gap: 5px; }
.school-programmes span { border: 1px solid #648683; color: #d7e9e2; padding: 5px 7px; font-size: 9px; border-radius: 3px; }
.school-activities { margin-top: 12px; font-size: 11px; color: #d7e9e2; }
.school-activities summary { cursor: pointer; min-height: 32px; padding: 7px 0; }
.school-activities ul { margin: 5px 0 15px 16px; padding: 0; max-height: 155px; overflow: auto; }
.school-activities li { font-size: 11px; line-height: 1.6; margin-bottom: 7px; }
.school-detail > a { display: inline-block; color: #b8e8f5; font-size: 11px; text-decoration: underline; text-underline-offset: 4px; padding-block: 12px; }
.map-district-tabs { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border: 1px solid #648683; }
.map-district-tabs button { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 16px; border: 0; border-right: 1px solid #648683; color: #eaf5ef; background: transparent; cursor: pointer; font: 500 17px 'Outfit',sans-serif; text-align: left; }
.map-district-tabs button:last-child { border-right: 0; }
.map-district-tabs button:hover { background: #295453; }
.map-district-tabs button[aria-pressed=true] { background: #007b9f; color: #fff; }
.map-district-tabs small { display: block; font: 10px 'DM Sans',sans-serif; margin-top: 6px; color: #d2e7df; }
.district-tab-number { font: 10px 'DM Sans',sans-serif; color: #b6cfc6; }
.map-source { display: block; background: transparent; padding: 16px 0 0; margin: 0; color: #b6cfc6; font-size: 9px; line-height: 1.6; }
.map-source a { color: #d7e9e2; text-decoration: underline; }
.event-gallery-section { padding: 70px 0; background: #eef5f0; }
.event-group { border-top: 1px solid #bfd6c9; }
.event-group:last-child { border-bottom: 1px solid #bfd6c9; }
.event-group summary { font: 500 clamp(19px,2vw,25px) 'Outfit',sans-serif; color: #244844; padding: 24px 12px; cursor: pointer; }
.event-group summary:hover { color: #007b9f; }
.event-photo-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; padding: 4px 0 28px; }
.event-photo-grid a { display: block; border-radius: 14px; overflow: hidden; background: #d8e7dd; }
.event-photo-grid img { width: 100%; aspect-ratio: 4/3; height: auto; object-fit: cover; display: block; transition: transform .3s; }
.event-photo-grid a:hover img { transform: scale(1.035); }
@media(max-width:1000px) {
  .school-explorer { padding: 30px 26px 20px; }
  .explorer-layout { grid-template-columns: minmax(0,1.2fr) minmax(270px,1fr); }
  .explorer-panel { padding-left: 22px; }
  .explorer-map-column { padding-right: 16px; }
  .map-district-tabs button { font-size: 15px; padding: 15px 11px; gap: 8px; }
  .district-tab-number { display: none; }
}
@media(max-width:760px) {
  .school-explorer-section { padding-bottom: 44px; }
  .school-explorer { padding: 28px 18px 20px; border-radius: 20px; }
  .explorer-heading { display: block; padding-bottom: 22px; }
  .explorer-heading > p { margin-top: 18px; max-width: 440px; font-size: 13px; }
  .explorer-layout { grid-template-columns: 1fr; }
  .explorer-map-column { padding: 18px 0 22px; }
  .explorer-map { max-width: 560px; margin-inline: auto; }
  .explorer-panel { border-left: 0; border-top: 1px solid #517374; padding: 24px 0; }
  .explorer-summary h3 { margin-top: 14px; }
  .school-results { max-height: 180px; }
  .school-results button { font-size: 13px; }
  .school-map-pin { width: 29px; height: 29px; font-size: 10px; }
  .district-map-pin { width: 34px; height: 34px; }
  .map-district-tabs { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .map-district-tabs button { padding: 16px; font-size: 17px; }
  .map-district-tabs button:nth-child(2) { border-right: 0; }
  .map-district-tabs button:nth-child(-n+2) { border-bottom: 1px solid #648683; }
  .map-legend { font-size: 10px; gap: 8px; }
  .map-legend button { padding-inline: 12px; }
  .event-photo-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
}
@media(prefers-reduced-motion:reduce) {
  .school-map-pin,.event-photo-grid img { transition: none; }
  .event-photo-grid a:hover img { transform: none; }
}
