/* Structural base shared by eSchoolPortal.Net engine-2 themes. Layout only — each theme's
   theme.css gives it its identity. Colours, fonts and corners arrive as CSS variables
   from the Website editor (theme.json "css_var"). */
:root {
  --t-primary: #2f54eb; --t-accent: #f59e0b; --t-ink: #111827; --t-bg: #ffffff; --t-surface: #ffffff;
  --t-radius: 12px; --t-font-head: system-ui, sans-serif; --t-font-body: system-ui, sans-serif;
  --t-muted: color-mix(in srgb, var(--t-ink) 60%, var(--t-bg));
  --t-line: color-mix(in srgb, var(--t-ink) 12%, var(--t-bg));
  --t-soft: color-mix(in srgb, var(--t-primary) 12%, var(--t-surface));
  --t-alt: color-mix(in srgb, var(--t-primary) 5%, var(--t-bg));
  --t-on-primary: #fff;
  --t-shadow: 0 18px 40px -24px color-mix(in srgb, var(--t-ink) 45%, transparent);
  --t-wrap: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body.t { margin: 0; background: var(--t-bg); color: var(--t-ink); font: 16px/1.65 var(--t-font-body); -webkit-font-smoothing: antialiased; }
.t img { max-width: 100%; display: block; }
.t a { color: var(--t-primary); }
.t h1, .t h2, .t h3 { font-family: var(--t-font-head); line-height: 1.2; margin: 0 0 .55em; }
.t h1 { font-size: clamp(2rem, 4.8vw, 3.5rem); }
.t h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
.t h3 { font-size: 1.15rem; }
.t p { margin: 0 0 1em; }
.t-wrap { width: min(var(--t-wrap), 100% - 32px); margin-inline: auto; }
.t-narrow { max-width: 820px; }
.t-center { text-align: center; }
.t-muted { color: var(--t-muted); }
.t-small { font-size: .88rem; color: var(--t-muted); margin-top: 14px; }
.t-lead { font-size: 1.14rem; color: var(--t-muted); max-width: 62ch; }
.t-skip { position: absolute; left: -999px; top: 8px; background: var(--t-ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 300; }
.t-skip:focus { left: 8px; }
.t :focus-visible { outline: 3px solid color-mix(in srgb, var(--t-primary) 55%, #fff); outline-offset: 2px; }
.site-icon { flex-shrink: 0; vertical-align: middle; }
.t-preview { background: #fef3c7; color: #78350f; text-align: center; padding: 8px 16px; font-size: .9rem; }
.t-announce { background: var(--t-ink); color: #fff; font-size: .92rem; }
.t-announce .t-wrap { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; align-items: center; padding: 8px 0; }
.t-announce a { color: var(--t-accent); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }

/* Buttons */
.t-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: calc(var(--t-radius) * .75); background: var(--t-primary);
  color: var(--t-on-primary) !important; border: 2px solid var(--t-primary); font: 600 .97rem/1.2 var(--t-font-body); text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; }
.t-btn:hover { transform: translateY(-1px); box-shadow: var(--t-shadow); }
.t-btn--lg { padding: 14px 26px; font-size: 1.03rem; }
.t-btn--sm { padding: 8px 14px; font-size: .88rem; }
.t-btn--ghost { background: transparent; color: var(--t-primary) !important; }
.t-btn--accent { background: var(--t-accent); border-color: var(--t-accent); color: var(--t-ink) !important; }
.t-btn[disabled] { opacity: .6; cursor: progress; }
.t-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.t-link:hover { text-decoration: underline; }

/* Header + mobile menu (themes style the look) */
.t-header { position: relative; z-index: 50; }
.t-header.is-sticky { position: sticky; top: 0; }
.t-header-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.t-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; min-width: 0; }
.t-brand img { width: 46px; height: 46px; object-fit: contain; }
.t-brand-text { display: flex; flex-direction: column; min-width: 0; }
.t-brand-text strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-menu { display: flex; align-items: center; gap: 4px; }
.t-menu a { text-decoration: none; white-space: nowrap; }
.t-brand-text small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.t-menu-toggle { display: none; background: none; border: 0; padding: 8px; color: inherit; cursor: pointer; border-radius: 8px; }
@media (max-width: 1120px) {
  .t-menu-toggle { display: block; }
  .t-menu { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; padding: 12px 16px 18px; display: none;
    background: var(--t-surface); border-bottom: 1px solid var(--t-line); box-shadow: 0 18px 30px -20px rgba(0,0,0,.4); }
  .t-menu.is-open { display: flex; }
  .t-menu .t-btn { margin-top: 8px; }
}

/* Sections & grids */
.t-section { padding: clamp(52px, 8vw, 100px) 0; }
.t-section--alt { background: var(--t-alt); }
.t-head { text-align: center; max-width: 720px; margin: 0 auto 38px; }
.t-head p { color: var(--t-muted); }
.t-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 64px); align-items: center; }
.t-split--top { align-items: start; }
@media (max-width: 860px) { .t-split { grid-template-columns: minmax(0, 1fr); } }
.t-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 20px; }
.t-cards--2 { grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); }
.t-cards--3 { grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr)); }
.t-cards--4 { grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.t-stack { display: grid; gap: 22px; }
.t-card { background: var(--t-surface); border: 1px solid var(--t-line); border-radius: var(--t-radius); padding: 26px; }
.t-feature p { color: var(--t-muted); margin: 0; }
.t-feature.has-image { padding: 0; overflow: hidden; }
.t-feature.has-image img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.t-feature.has-image h3, .t-feature.has-image p { padding: 0 22px; }
.t-feature.has-image h3 { margin-top: 18px; } .t-feature.has-image p { padding-bottom: 22px; }
.t-icon { width: 50px; height: 50px; display: inline-grid; place-items: center; border-radius: calc(var(--t-radius) * .9); background: var(--t-soft); color: var(--t-primary); margin-bottom: 16px; }
.t-icon--lg { width: 76px; height: 76px; }
.t-tag { display: inline-block; font-size: .78rem; font-weight: 700; color: var(--t-primary); background: var(--t-soft); padding: 3px 10px; border-radius: 99px; margin-bottom: 10px; }
.t-prose p:last-child { margin-bottom: 0; }
.t-prose ul { padding-left: 1.2em; }
.t-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: calc(var(--t-radius) * 1.3); }
.t-mv { display: grid; gap: 18px; }
.t-person { text-align: center; }
.t-person img, .t-avatar { width: 108px; height: 108px; border-radius: 50%; object-fit: cover; margin: 0 auto 14px; }
.t-avatar { display: grid; place-items: center; background: var(--t-soft); color: var(--t-primary); font: 800 2.1rem var(--t-font-head); }
.t-person p { color: var(--t-muted); font-size: .92rem; }
.t-leader { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 32px; align-items: start; margin: 0; }
.t-leader:not(:has(.t-leader-photo)) { grid-template-columns: minmax(0, 1fr); }
.t-leader-photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--t-radius); }
.t-leader blockquote { margin: 0 0 14px; font-size: 1.04rem; }
@media (max-width: 760px) { .t-leader { grid-template-columns: minmax(0, 1fr); } .t-leader-photo { max-width: 260px; } }
.t-program { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 28px; align-items: center; }
.t-program.is-flipped > :first-child { order: 2; }
.t-program img, .t-program-art { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: calc(var(--t-radius) * .8); }
.t-program-art { display: grid; place-items: center; background: var(--t-soft); color: var(--t-primary); }
@media (max-width: 760px) { .t-program { grid-template-columns: minmax(0, 1fr); } .t-program.is-flipped > :first-child { order: 0; } }

/* Gallery + lightbox */
.t-masonry { columns: 4 220px; column-gap: 14px; }
.t-masonry a { display: block; margin-bottom: 14px; border-radius: calc(var(--t-radius) * .7); overflow: hidden; break-inside: avoid; }
.t-masonry img { width: 100%; transition: transform .35s; }
.t-masonry a:hover img { transform: scale(1.04); }
.t-masonry a[hidden] { display: none; }
.t-filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 26px; }
.t-filters button { border: 1px solid var(--t-line); background: var(--t-surface); padding: 8px 16px; border-radius: 99px; cursor: pointer; font: 500 .92rem var(--t-font-body); color: var(--t-ink); }
.t-filters button.is-on { background: var(--t-primary); border-color: var(--t-primary); color: var(--t-on-primary); }
.t-lightbox { position: fixed; inset: 0; background: rgba(5, 8, 20, .92); display: none; align-items: center; justify-content: center; z-index: 400; padding: 24px; flex-direction: column; gap: 12px; }
.t-lightbox.is-open { display: flex; }
.t-lightbox img { max-width: 100%; max-height: 82vh; border-radius: 10px; }
.t-lightbox p { color: #fff; margin: 0; }
.t-lightbox button { position: absolute; background: rgba(255,255,255,.14); border: 0; color: #fff; width: 46px; height: 46px; border-radius: 50%; cursor: pointer; font-size: 1.4rem; }
.t-lightbox .lb-close { top: 18px; right: 18px; } .t-lightbox .lb-prev { left: 18px; } .t-lightbox .lb-next { right: 18px; }

/* Notices, FAQ, steps */
.t-notice { margin-bottom: 16px; }
.t-notice time { color: var(--t-primary); font-weight: 700; font-size: .88rem; }
.t-notice h2 { font-size: 1.25rem; margin-top: 6px; }
.t-notice-box { display: flex; gap: 18px; align-items: flex-start; }
.t-faq details { background: var(--t-surface); border: 1px solid var(--t-line); border-radius: var(--t-radius); padding: 0 18px; margin-bottom: 10px; }
.t-faq summary { cursor: pointer; font-weight: 600; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.t-faq summary::after { content: '+'; color: var(--t-primary); font-size: 1.3rem; line-height: 1; }
.t-faq details[open] summary::after { content: '−'; }
.t-faq summary::-webkit-details-marker { display: none; }
.t-faq p { color: var(--t-muted); }
.t-steps { counter-reset: s; list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 14px; }
.t-steps li { counter-increment: s; display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; }
.t-steps li::before { content: counter(s); grid-row: span 2; width: 40px; height: 40px; border-radius: 50%; background: var(--t-primary); color: var(--t-on-primary); display: grid; place-items: center; font-weight: 700; }
.t-steps span { color: var(--t-muted); font-size: .94rem; }
.t-ticks { list-style: none; padding: 0; display: grid; gap: 8px; }
.t-ticks li { display: flex; gap: 10px; align-items: center; }
.t-ticks .site-icon { color: var(--t-primary); }

/* Forms */
.t-forms { display: grid; gap: 20px; }
.t-form { display: grid; gap: 14px; }
.t-form-title { margin-bottom: 0; font-size: 1.4rem !important; }
.t-form > p { margin: 0; }
.t-form label { display: grid; gap: 6px; font-weight: 600; font-size: .9rem; }
.t-form input, .t-form select, .t-form textarea { width: 100%; padding: 11px 13px; border: 1.5px solid var(--t-line); border-radius: calc(var(--t-radius) * .55); font: 400 1rem var(--t-font-body); background: var(--t-surface); color: var(--t-ink); }
.t-form input:focus, .t-form select:focus, .t-form textarea:focus { border-color: var(--t-primary); outline: none; box-shadow: 0 0 0 3px var(--t-soft); }
.t-form .t-check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--t-muted); }
.t-form .t-check input { width: auto; margin-top: 4px; }
.t-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 560px) { .t-grid2 { grid-template-columns: minmax(0, 1fr); } }
.t-form-msg { margin: 0; font-weight: 600; min-height: 1.2em; }
.t-form-msg.is-ok { color: #047857; } .t-form-msg.is-err { color: #b91c1c; }
.t-upi { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; background: var(--t-alt); border-radius: calc(var(--t-radius) * .7); padding: 14px; }
.t-alert { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; border-radius: 10px; padding: 10px 12px; font-size: .92rem; }

/* Contact */
.t-contact-list { display: grid; gap: 14px; }
.t-contact { display: flex; gap: 16px; padding: 20px; }
.t-contact .t-icon { margin: 0; }
.t-contact h3 { margin-bottom: 4px; } .t-contact p { margin: 0; color: var(--t-muted); }
.t-map { border-radius: var(--t-radius); overflow: hidden; border: 1px solid var(--t-line); margin-bottom: 16px; }
.t-map iframe { width: 100%; height: 360px; border: 0; display: block; }

/* Inner page heading */
.t-pagehead { padding: clamp(46px, 7vw, 86px) 0; }
.t-pagehead.has-image { background-image: linear-gradient(110deg, rgba(0,0,0,.72), rgba(0,0,0,.35)), var(--t-banner) !important; background-size: cover !important; background-position: center !important; color: #fff; }
.t-pagehead.has-image h1, .t-pagehead.has-image p, .t-pagehead.has-image .t-crumbs, .t-pagehead.has-image .t-crumbs a { color: #fff !important; }
.t-pagehead h1 { margin-bottom: 8px; }
.t-pagehead p { max-width: 62ch; margin: 0; font-size: 1.08rem; }
.t-crumbs { display: flex; align-items: center; gap: 6px; font-size: .88rem; margin-bottom: 14px; }
.t-crumbs a { text-decoration: none; }

/* Login */
.t-login { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: calc(100vh - 160px); }
.t-login-side { background: linear-gradient(140deg, var(--t-primary), var(--t-ink)); color: #fff; display: flex; align-items: flex-end; padding: clamp(28px, 6vw, 64px); }
.t-login.has-image .t-login-side { background: linear-gradient(0deg, rgba(0,0,0,.7), transparent), var(--t-login-img) center/cover; }
.t-login-side h1 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.t-login-side p { color: rgba(255,255,255,.85); }
.t-login-form { display: grid; place-items: center; padding: 32px 16px; }
.t-login-form .t-form { width: min(420px, 100%); }
@media (max-width: 820px) { .t-login { grid-template-columns: minmax(0, 1fr); } .t-login-side { min-height: 170px; } }

/* Footer basics */
.t-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.t-footer a { text-decoration: none; }
.t-footer a:hover { text-decoration: underline; }
.t-social { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.t-social a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; }
.t-contact-mini li { display: flex; gap: 10px; align-items: flex-start; }
.t-contact-mini .site-icon { margin-top: 4px; }

/* Reveal */
.will-reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.will-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .t * { transition: none !important; animation: none !important; scroll-behavior: auto; } }
