/* Pragati Classes — page sections */

/* notebook paper: ruled lines + red margin */
.ruled { background-color: #fff; background-image: repeating-linear-gradient(180deg, transparent 0 35px, var(--rule) 35px 36px); }

/* ============================================================== HERO */
.hero { padding: clamp(40px, 6vw, 80px) 0 0; background-color: #fff; background-image: repeating-linear-gradient(180deg, transparent 0 35px, var(--rule) 35px 36px); }
.hero::before { content: ""; position: absolute; top: 0; bottom: 0; left: max(16px, calc((100% - var(--wrap)) / 2 - 36px)); width: 2px; background: var(--margin); opacity: .55; }
.hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero__copy { display: grid; gap: 22px; justify-items: start; }
.hero__since { font-weight: 700; color: var(--margin); }
.hero__title { font-size: clamp(2.9rem, 6.6vw, 5.4rem); line-height: 1; letter-spacing: -.035em; }
html.is-hi .hero__title { font-size: clamp(2.4rem, 5.4vw, 4.2rem); line-height: 1.3; }
.hero__lede { font-size: 1.2rem; color: var(--muted); max-width: 46ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__photo { position: relative; }
.hero__photo img { width: 100%; aspect-ratio: 4 / 4.3; object-fit: cover; border-radius: 22px 22px 22px 120px; box-shadow: var(--shadow); }
.note-card { position: absolute; left: -28px; bottom: 28px; display: grid; gap: 2px; max-width: 220px; padding: 16px 18px; background: var(--hl); color: var(--ink); border-radius: 4px; box-shadow: 0 14px 30px -12px rgb(29 43 100 / .45); transform: rotate(-2.5deg); font-weight: 600; line-height: 1.3; }
.note-card strong { font-family: var(--font-display); font-size: 2.6rem; line-height: 1; }

.proof { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(48px, 6vw, 80px); padding: 0; list-style: none; border-top: 2px solid var(--ink); background: #fff; }
.proof li { display: grid; gap: 2px; padding: 22px 20px 26px 0; }
.proof li + li { padding-left: 20px; border-left: 1px solid var(--line); }
.proof strong { font-family: var(--font-display); font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 800; line-height: 1; }
.proof span { color: var(--muted); font-size: .98rem; }

@media (max-width: 880px) {
  .hero::before { left: 8px; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__photo img { aspect-ratio: 16 / 11; border-radius: 18px 18px 18px 80px; }
  .note-card { left: auto; right: 12px; bottom: -22px; }
  .proof { grid-template-columns: 1fr 1fr; }
  .proof li:nth-child(3) { padding-left: 0; border-left: 0; }
  .proof li:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ===================================================== BATCH FINDER */
.finder { background: var(--tint); }
.hero__inner > *, .week__inner > *, .admission__inner > *, .visit__inner > * { min-width: 0; }
.finder__box { display: grid; gap: 22px; padding: clamp(20px, 3vw, 32px); background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--line); }
.pick { margin: 0; padding: 0; border: 0; min-width: 0; }
.pick legend { padding: 0; margin-bottom: 10px; font-weight: 700; font-size: .95rem; }
.pick__opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-weight: 600; color: var(--muted); transition: border-color .15s, background .15s, color .15s; }
.opt:hover { border-color: var(--ink); color: var(--ink); }
.opt[aria-checked="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
@media (max-width: 640px) {
  .pick__opts { flex-wrap: nowrap; overflow-x: auto; margin-inline: -4px; padding: 2px 4px 6px; }
  .opt { flex: none; }
}

.finder__count { margin: 26px 0 14px; font-weight: 700; color: var(--muted); }
.batches { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.batch { position: relative; display: grid; gap: 14px; padding: 22px 22px 20px; background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--line); animation: card-in .35s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 40ms); }
.batch::before { content: ""; position: absolute; left: 0; top: 22px; bottom: 22px; width: 3px; border-radius: 0 3px 3px 0; background: var(--subj, var(--ink)); }
.batch__top { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.batch h3 { font-size: 1.3rem; }
.batch__lvl { font-size: .9rem; color: var(--muted); font-weight: 600; }
.batch__fee { text-align: right; font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; line-height: 1.1; }
.batch__fee small { display: block; font-family: var(--font-body); font-size: .8rem; color: var(--muted); font-weight: 600; }
.batch__info { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: .98rem; }
.batch__info li { display: flex; align-items: center; gap: 10px; }
.batch__info svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.seats { display: grid; gap: 6px; }
.seats__bar { height: 8px; border-radius: 8px; background: var(--rule); overflow: hidden; }
.seats__bar i { display: block; height: 100%; width: var(--fill); border-radius: 8px; background: var(--green); }
.seats--low .seats__bar i { background: var(--margin); }
.seats__txt { font-size: .9rem; font-weight: 700; color: var(--green); }
.seats--low .seats__txt { color: var(--margin); }
.batch .btn { margin-top: 4px; }
.batches__empty { grid-column: 1 / -1; padding: 28px; border-radius: var(--radius-lg); border: 1.5px dashed var(--line); background: #fff; display: grid; gap: 12px; justify-items: start; }
@keyframes card-in { from { opacity: 0; transform: translateY(10px); } }

/* ========================================================== RESULTS */
.tabs { display: inline-flex; justify-self: start; padding: 4px; border-radius: 999px; background: var(--tint); border: 1px solid var(--line); }
.tab { min-height: 40px; padding: 0 18px; border-radius: 999px; border: 0; background: transparent; font-weight: 700; color: var(--muted); }
.tab[aria-selected="true"] { background: var(--ink); color: #fff; }
.results__stats { display: flex; flex-wrap: wrap; gap: 12px 40px; margin-bottom: 28px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.results__stats div { display: grid; }
.results__stats strong { font-family: var(--font-display); font-size: 2.3rem; line-height: 1.05; }
.results__stats span { color: var(--muted); font-size: .95rem; }
.toppers { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.topper { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: center; padding: 18px; border-radius: var(--radius-lg); background: var(--tint); animation: card-in .35s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 30ms); }
.topper__score { grid-column: 1 / -1; font-family: var(--font-display); font-weight: 800; font-size: 2.6rem; line-height: 1; letter-spacing: -.03em; }
.topper__score span { background: linear-gradient(transparent 58%, var(--hl) 58% 92%, transparent 92%); }
.topper__name { font-weight: 700; line-height: 1.2; }
.topper__meta { grid-column: 1 / -1; font-size: .9rem; color: var(--muted); }
.avatar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--av, var(--ink)); color: #fff; font-weight: 700; font-size: .95rem; flex: none; }

/* ========================================================== FACULTY */
.faculty { background: var(--tint); }
.teachers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
.teacher { display: grid; gap: 16px; align-content: start; padding: 24px; background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--line); }
.teacher .avatar { width: 64px; height: 64px; font-size: 1.3rem; font-family: var(--font-display); }
.teacher__sub { font-weight: 700; margin-top: 4px; }
.teacher__meta { color: var(--muted); font-size: .95rem; }
@media (max-width: 960px) { .teachers { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .teachers { grid-template-columns: 1fr; } .teacher { grid-template-columns: auto 1fr; align-items: center; } }

/* ========================================================= LECTURES */
.lecture-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.lecture { display: grid; gap: 8px; text-decoration: none; }
.lecture__thumb { position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 9; background: var(--tint); }
.lecture__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.lecture:hover .lecture__thumb img { transform: scale(1.04); }
.lecture__play { position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: rgb(255 255 255 / .92); color: var(--ink); transition: transform .2s; }
.lecture:hover .lecture__play { transform: scale(1.08); }
.lecture__play svg { width: 26px; height: 26px; margin-left: 3px; }
.lecture__dur { position: absolute; right: 10px; bottom: 10px; padding: 2px 8px; border-radius: 6px; background: rgb(0 0 0 / .7); color: #fff; font-size: .8rem; font-weight: 600; }
.lecture__t { font-weight: 700; font-size: 1.1rem; line-height: 1.3; margin-top: 6px; }
.lecture__m { color: var(--muted); font-size: .95rem; }
@media (max-width: 860px) { .lecture-row { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; } .lecture { scroll-snap-align: start; } }

/* ============================================================= WEEK */
.week { background-color: #fff; background-image: repeating-linear-gradient(180deg, transparent 0 35px, var(--rule) 35px 36px); }
.week__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.week__table { width: 100%; margin-top: 24px; border-collapse: collapse; background: #fff; }
.week__table th, .week__table td { padding: 16px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.week__table th { width: 40%; padding-right: 16px; font-weight: 700; }
.week__table td { color: var(--muted); }
.parents { display: grid; gap: 18px; }
.parent-quote { padding: 26px 26px 22px; background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: 0 10px 30px -20px rgb(29 43 100 / .4); }
.parent-quote blockquote { margin: 0 0 14px; font-size: 1.15rem; line-height: 1.55; }
.parent-quote figcaption { color: var(--muted); font-size: .95rem; }
.parent-quote figcaption strong { color: var(--fg); }
@media (max-width: 860px) { .week__inner { grid-template-columns: 1fr; } }

/* ======================================================== ADMISSION */
.admission { background: var(--ink); color: #fff; --fg: #fff; --muted: rgb(255 255 255 / .72); --line: rgb(255 255 255 / .2); }
.admission__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.admission__copy { display: grid; gap: 18px; }
.admission__copy > p { color: var(--muted); font-size: 1.15rem; max-width: 46ch; }
.ticks { display: grid; gap: 10px; margin: 6px 0 0; padding: 0; list-style: none; }
.ticks li { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.ticks svg { width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: var(--hl); color: var(--ink); flex: none; }
.enquiry { padding: clamp(22px, 3vw, 32px); background: #fff; color: var(--ink); border-radius: var(--radius-lg); --fg: var(--ink); --muted: #56618C; --line: rgb(29 43 100 / .16); }
@media (max-width: 860px) { .admission__inner { grid-template-columns: 1fr; } }

/* ============================================================ VISIT */
.visit__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); }
.visit__info { display: grid; gap: 20px; align-content: start; }
.visit__addr { font-size: 1.2rem; font-weight: 600; }
.visit__dl { border-top: 1px solid var(--line); }
.visit__dl div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.visit__dl dt { color: var(--muted); }
.visit__dl a { font-weight: 700; }
.visit__cta { display: flex; flex-wrap: wrap; gap: 10px; }
.faq__h { margin-bottom: 4px; }
@media (max-width: 860px) { .visit__inner { grid-template-columns: 1fr; } }

/* =========================================================== SHEETS */
.sheet__title { font-size: 1.7rem; margin: 0 48px 16px 0; }
.slip { margin-bottom: 20px; padding: 16px 18px; border-radius: 10px; background-color: #FFFBE0; background-image: repeating-linear-gradient(180deg, transparent 0 27px, #F1E7A8 27px 28px); border-left: 3px solid var(--margin); display: grid; gap: 4px; line-height: 28px; }
.slip strong { font-family: var(--font-display); font-size: 1.15rem; }

/* =========================================================== FOOTER */
.site-footer { padding: 36px 0; border-top: 1px solid var(--line); }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.site-footer__meta { color: var(--muted); font-size: .95rem; }
