/* Page-builder grid for the `site` theme family (Laravel side only; the HTML kit has no page-builder grid).
   The page builder lays sections out with Bootstrap-style classes (row, col-*, container). Visitors get no Bootstrap,
   so this file gives those few classes the same meaning. Loaded before the design CSS, so a design may restyle it. */
.container, .container-fluid { inline-size: 100%; margin-inline: auto; padding-inline: 1rem; box-sizing: border-box; }
.container { max-inline-size: var(--w, 1200px); }
.row { --pb-gap: 1.5rem; display: flex; flex-wrap: wrap; margin-inline: calc(var(--pb-gap) / -2); row-gap: var(--pb-gap); }
.row > * { box-sizing: border-box; flex: 0 0 auto; inline-size: 100%; max-inline-size: 100%; padding-inline: calc(var(--pb-gap) / 2); min-inline-size: 0; }
.col { flex: 1 0 0%; inline-size: auto; }
.col-auto { flex: 0 0 auto; inline-size: auto; }
.p-0 { padding: 0 !important; } .m-0 { margin: 0 !important; }
.row > .p-0 { padding-inline: 0 !important; }
.text-center { text-align: center; } .text-start { text-align: start; } .text-end { text-align: end; }
.d-none { display: none !important; } .d-flex { display: flex !important; } .d-block { display: block !important; }
.align-items-center { align-items: center; } .justify-content-center { justify-content: center; } .justify-content-between { justify-content: space-between; }
.mb-0 { margin-block-end: 0 !important; } .mb-1 { margin-block-end: .25rem !important; } .mb-2 { margin-block-end: .5rem !important; } .mb-3 { margin-block-end: 1rem !important; } .mb-4 { margin-block-end: 1.5rem !important; } .mb-5 { margin-block-end: 3rem !important; }
.mt-0 { margin-block-start: 0 !important; } .mt-1 { margin-block-start: .25rem !important; } .mt-2 { margin-block-start: .5rem !important; } .mt-3 { margin-block-start: 1rem !important; } .mt-4 { margin-block-start: 1.5rem !important; } .mt-5 { margin-block-start: 3rem !important; }

/* widths: col-N applies at every size, col-sm/md/lg/xl-N from that breakpoint up (576, 768, 992, 1200) */
.col-1 { flex: 0 0 auto; inline-size: 8.3333%; } .col-2 { flex: 0 0 auto; inline-size: 16.6667%; } .col-3 { flex: 0 0 auto; inline-size: 25%; }
.col-4 { flex: 0 0 auto; inline-size: 33.3333%; } .col-5 { flex: 0 0 auto; inline-size: 41.6667%; } .col-6 { flex: 0 0 auto; inline-size: 50%; }
.col-7 { flex: 0 0 auto; inline-size: 58.3333%; } .col-8 { flex: 0 0 auto; inline-size: 66.6667%; } .col-9 { flex: 0 0 auto; inline-size: 75%; }
.col-10 { flex: 0 0 auto; inline-size: 83.3333%; } .col-11 { flex: 0 0 auto; inline-size: 91.6667%; } .col-12 { flex: 0 0 auto; inline-size: 100%; }
.col-2-4 { flex: 0 0 auto; inline-size: 20%; }
@media (min-width: 576px) {
  .col-sm-1 { inline-size: 8.3333%; } .col-sm-2 { inline-size: 16.6667%; } .col-sm-3 { inline-size: 25%; } .col-sm-4 { inline-size: 33.3333%; } .col-sm-5 { inline-size: 41.6667%; } .col-sm-6 { inline-size: 50%; }
  .col-sm-7 { inline-size: 58.3333%; } .col-sm-8 { inline-size: 66.6667%; } .col-sm-9 { inline-size: 75%; } .col-sm-10 { inline-size: 83.3333%; } .col-sm-11 { inline-size: 91.6667%; } .col-sm-12 { inline-size: 100%; }
}
@media (min-width: 768px) {
  .col-md-1 { inline-size: 8.3333%; } .col-md-2 { inline-size: 16.6667%; } .col-md-3 { inline-size: 25%; } .col-md-4 { inline-size: 33.3333%; } .col-md-5 { inline-size: 41.6667%; } .col-md-6 { inline-size: 50%; }
  .col-md-7 { inline-size: 58.3333%; } .col-md-8 { inline-size: 66.6667%; } .col-md-9 { inline-size: 75%; } .col-md-10 { inline-size: 83.3333%; } .col-md-11 { inline-size: 91.6667%; } .col-md-12 { inline-size: 100%; }
}
@media (min-width: 992px) {
  .col-lg-1 { inline-size: 8.3333%; } .col-lg-2 { inline-size: 16.6667%; } .col-lg-3 { inline-size: 25%; } .col-lg-4 { inline-size: 33.3333%; } .col-lg-5 { inline-size: 41.6667%; } .col-lg-6 { inline-size: 50%; }
  .col-lg-7 { inline-size: 58.3333%; } .col-lg-8 { inline-size: 66.6667%; } .col-lg-9 { inline-size: 75%; } .col-lg-10 { inline-size: 83.3333%; } .col-lg-11 { inline-size: 91.6667%; } .col-lg-12 { inline-size: 100%; }
}
@media (min-width: 1200px) {
  .col-xl-1 { inline-size: 8.3333%; } .col-xl-2 { inline-size: 16.6667%; } .col-xl-3 { inline-size: 25%; } .col-xl-4 { inline-size: 33.3333%; } .col-xl-5 { inline-size: 41.6667%; } .col-xl-6 { inline-size: 50%; }
  .col-xl-7 { inline-size: 58.3333%; } .col-xl-8 { inline-size: 66.6667%; } .col-xl-9 { inline-size: 75%; } .col-xl-10 { inline-size: 83.3333%; } .col-xl-11 { inline-size: 91.6667%; } .col-xl-12 { inline-size: 100%; }
}

/* Footer/header regions: the kit lays the three footer sections out as a CSS grid directly under .site-footer
   (base.css). The page builder wraps them in pb-themesection > container > row > col, so that grid would squeeze each
   whole row into one cell; the row/col grid above does the layout here instead. */
.site-footer.pb-footer { display: block; }
.pb-footer .pb-themesection .container { max-inline-size: var(--w, 1200px); }

/* The footer takes its colour from the design (--footer-bg on .site-footer). The page builder also lets a section carry an
   inline background, and a school's Edulia footer sections have one (e.g. navy): left alone it painted every design's
   footer the same colour. Inline backgrounds on the footer rows are ignored for the site theme. */
#footer.site-footer > .pb-themesection, #footer.site-footer > #grids > .pb-themesection { background: transparent !important; } /* beats a school rule like "#footer > .pb-themesection { background-color: #... !important }" from its Edulia footer CSS */

/* Same for spacing: a school's Edulia footer sections carry a component padding of their own (100px above the logo column),
   stacked on the design's footer padding it left a band of empty footer above the logo. The design sets the spacing. */
.pb-footer [id]:has(> .sec-footer-content, > .sec-footer-widget, > .sec-footer-copyright) { padding-block: 0 !important; }

/* Footer link lists start at the heading's left edge. The page builder canvas loads Bootstrap, whose reboot gives every
   <ul> a 2rem left padding, so the links sat indented under their heading there (the live site has no Bootstrap). */
.sec-footer-widget ul, .sec-footer-copyright ul { padding: 0; margin: 0; }

/* Rich text keeps the school's inline colours, chosen for a white page. Inside the heading band the colour belongs to the
   design, so inline text colours there are ignored (dark text on a dark band was unreadable). */
.sec-page-heading [style*="color"] { color: inherit !important; }

/* Classes of the fixed pages (frontEnd/theme/site) that the kit CSS does not define. They use the design's own variables. */
.pg__search { display: grid; gap: .35rem; margin-block: 0 1.75rem; } .pg__search input { inline-size: 100%; }
.pg__narrow { max-inline-size: 30rem; padding-block: 3rem 4rem; } .pg__logo { text-align: center; margin-block-end: 1.5rem; }
.pg__profile { display: grid; gap: 1.5rem; align-items: start; padding-block-start: 3rem; }
@media (min-width: 700px) { .pg__profile { grid-template-columns: 160px minmax(0, 1fr); } }
.pg__photo { inline-size: 160px; block-size: 160px; object-fit: cover; border-radius: var(--radius, 8px); }
.pg__facts { display: grid; gap: .25rem 2rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); margin: 0; }
.pg__facts > div { display: grid; gap: .1rem; padding-block: .5rem; border-block-end: 1px solid var(--c-line, #ddd); }
.pg__facts dt { font-size: .85em; color: var(--c-muted, #666); } .pg__facts dd { margin: 0; overflow-wrap: anywhere; }
.pg__section { margin-block-start: 2.25rem; } .pg__section > h2 { margin-block-end: .9rem; }
.pg__inline { display: inline; }
.sec__more { margin-block: 1.75rem 3.5rem; text-align: center; }

/* Search/filter fields sit on any section colour (some designs make list sections dark). They are white boxes, so their
   text must be dark whatever the section's text colour is, or typed characters disappear. */
.pg__search input, .tbl__toolbar input, .tbl__toolbar select, input[type="search"] { background-color: #fff; color: #111; }
.pg__search input::placeholder, .tbl__toolbar input::placeholder, input[type="search"]::placeholder { color: #666; opacity: 1; }

/* Filter form, note, view tabs and table stack with no gaps (the kit left them touching). The header search form (frm-F10) is left alone. */
section.sec .frm--inline:not(.frm-F10) { margin-block-end: 1.5rem; }
section.sec .frm + .sec__meta, section.sec .frm--inline + .sec__meta { margin-block: -.5rem 1rem; }
section.sec [data-tabs] > [role="tablist"] { margin-block-end: 1.5rem; }

/* Long-form text pages (text-editor sections): checklists in two columns, quotes set apart. */
.sec-text-editor .sec__prose ul.pg__checks { columns: 2 16rem; column-gap: 2rem; padding-inline-start: 1.25rem; }
.sec-text-editor .sec__prose ul.pg__checks li { break-inside: avoid; margin-block-end: .35rem; }
.sec-text-editor .sec__prose blockquote { margin-inline: 0; padding: .75rem 1.25rem; border-inline-start: 4px solid var(--c-accent, currentColor); font-weight: 600; }
.sec-text-editor .sec__prose h2 { margin-block: 0 1rem; } .sec-text-editor .sec__prose h3 { margin-block: 1.75rem .5rem; }
.sec-page-heading .sec__lead ul { padding-inline-start: 1.25rem; margin-block: .75rem; }

/* Text sections start at the same left edge as the page title band and the header (the design's .wrap edge), in a readable
   column. A design whose title is centred centres this column too (01, 02 and 06 set margin-inline: auto themselves). */
.sec-text-editor .sec__prose { margin-inline: 0 auto; }
/* "Why us" without a photo: the points take the full width (3 across) instead of the right half. */
.sec-x-why-us .split:not(:has(.sec__media img)) { grid-template-columns: minmax(0, 1fr); }
.sec-x-why-us .split:not(:has(.sec__media img)) .sec__media { display: none; }
.sec-x-why-us .split:not(:has(.sec__media img)) .sec__head { text-align: center; }
.sec-x-why-us .split:not(:has(.sec__media img)) .sec__head .sec__lead { margin-inline: auto; text-align: center; max-inline-size: 60ch; }
.sec-x-why-us .split:not(:has(.sec__media img)) .sec__grid { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
@media (min-width: 900px) { .sec-x-why-us .split:not(:has(.sec__media img)) .sec__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sec-x-why-us .sec__badge:empty { display: none; }

.sec-text-editor { padding-block: 2.5rem; }

/* Lists inside text sections: Bengali-numbered objectives, keyword chips. */
.sec-text-editor .sec__prose ol.pg__ol-bn { list-style-type: bengali; padding-inline-start: 1.75rem; } .sec-text-editor .sec__prose ol.pg__ol-bn li { margin-block-end: .5rem; padding-inline-start: .25rem; }
.sec-text-editor .sec__prose ul.pg__chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.sec-text-editor .sec__prose ul.pg__chips li { padding: .3rem .95rem; border: 1.5px solid currentColor; border-radius: 999px; font-weight: 600; }
.sec-x-why-us .sec__lead:empty { display: none; }
.sec-text-editor + .sec-text-editor { padding-block-start: 0; }

.sec-page-heading .sec__lead p { margin: 0 0 .7rem; }

.sec-text-editor .sec__prose :is(p, ul, ol, blockquote) + h2 { margin-block-start: 2.5rem; }

/* Chips on the dark heading band (program lists). */
.sec-page-heading .sec__lead ul.pg__chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; margin-block: 1rem 0; }
.sec-page-heading .sec__lead ul.pg__chips li { padding: .3rem .95rem; border: 1.5px solid currentColor; border-radius: 999px; font-weight: 600; }

/* Blog / archive lists: one article per row, photo on the left, text on the right (stacked on phones). */
.sec__grid.pg__rows { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
.pg__rows > .sec__item { padding-block-end: var(--card-pad, 1rem); }
.pg__rows > .sec__item > .sec__media img { background: var(--c-line, #e5e7eb); aspect-ratio: 3 / 2; object-fit: cover; }
@media (min-width: 700px) {
  .sec__grid.pg__rows > .sec__item { display: grid; grid-template-columns: 240px minmax(0, 1fr); column-gap: .5rem; row-gap: .45rem; align-content: start; padding-block-end: 0; }
  .pg__rows > .sec__item > .sec__media { grid-column: 1; grid-row: 1 / span 4; align-self: stretch; }
  .pg__rows > .sec__item > .sec__media img { block-size: 100%; inline-size: 100%; aspect-ratio: auto; min-block-size: 11rem; }
  .sec__grid.pg__rows > .sec__item > :not(.sec__media) { grid-column: 2; }
  .pg__rows > .sec__item > :nth-child(2) { margin-block-start: var(--card-pad, 1rem); }
  .pg__rows > .sec__item > :last-child { margin-block-end: var(--card-pad, 1rem); justify-self: start; }
}
.pg__search { margin-block-end: 1.75rem; } .pg__search input { padding: .7rem .9rem; border: 1px solid var(--c-line, #d1d5db); border-radius: var(--radius, 8px); }

.pg__layout { padding-block-end: 4rem; }

main.pg > .pg__layout { padding-block-end: 4rem; } /* design CSS sets padding-block: Xrem 0 after this file, so the selector is stronger */

/* News / blog detail: readable centred column with space between title, meta, photo, text and comments. */
.pg-news-details .pg__layout { max-inline-size: 52rem; }
.pg-news-details .pg__article > .sec__item-title { font-size: clamp(1.6rem, 3.2vw, 2.3rem); line-height: 1.3; margin-block: 0 .9rem; }
.pg-news-details .pg__article > .sec__meta { margin-block: 0 1.5rem; }
.pg-news-details .pg__article > .sec__media { margin-block: 0 2rem; }
.pg-news-details .pg__article > .sec__media img { display: block; inline-size: 100%; block-size: auto; aspect-ratio: 2 / 1; object-fit: cover; border-radius: var(--radius, 8px); background: var(--c-line, #e5e7eb); }
.pg-news-details .pg__article > .sec__lead { margin-block: 0; line-height: 1.95; } .pg-news-details .pg__article > .sec__lead p { margin-block: 0 1.1rem; }
.pg-news-details .pg__comments { margin-block-start: 1rem; padding-block-start: 2rem; border-block-start: 1px solid var(--c-line, #e5e7eb); }
.pg-news-details .pg__comments > h2 { margin-block: 0 1.25rem; font-size: 1.4rem; }
.pg-news-details .pg__comments > ul { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 1rem; }
.pg-news-details .pg__article > .sec__lead { max-inline-size: none; }

/* Section headings left empty in the page builder (no eyebrow/title/lead) leave no stray marker or gap. */
.sec__eyebrow:empty, .sec__title:empty, .sec__lead:empty { display: none; }
.sec__head:not(:has(:is(.sec__eyebrow, .sec__title, .sec__lead):not(:empty))) { display: none; }
/* Gallery cards keep one photo shape whatever the upload size; a missing file shows a plain block. */
.sec-photo-gallery .sec__media img { inline-size: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--c-line, #e5e7eb); }

/* Gallery album page: space under the heading band, larger photos, even shapes. */
main.pg-gallery-details > .wrap { padding-block: 3rem 4rem; }
.pg-gallery-details .sec__item-title { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-block: 0 .75rem; }
.pg-gallery-details .sec__lead { margin-block: 0 2rem; max-inline-size: 70ch; }
.pg-gallery-details .sec__grid { --min: 15rem; gap: 1rem; list-style: none; padding: 0; margin: 0; }
.pg-gallery-details .sec__media, .pg-gallery-details .sec__media img { display: block; inline-size: 100%; }
.pg-gallery-details .sec__media img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius, 8px); background: var(--c-line, #e5e7eb); }
.pg-gallery-details .sec__grid > .sec__item { padding: 0; gap: 0; } .pg-gallery-details .sec__media { line-height: 0; }
.pg-gallery-details .sec__grid > .sec__item > .sec__media { margin: 0; }

/* Facilities: the page builder's "image side" setting (left / right) was ignored, so every photo sat on the right. */
@media (min-width: 768px) { .sec-facilities[data-image-align="left"] .split > .sec__media { order: -1; } }
.sec-facilities .sec__media img { display: block; inline-size: 100%; block-size: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--c-line, #e5e7eb); }
.sec-facilities .sec__title { font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.25; margin-block: 0 1rem; }
.sec-facilities .sec__lead { margin-block: 0; max-inline-size: none; line-height: 1.85; }
.sec-facilities { padding-block: 2.5rem; }

/* Contact page: form, then information + map side by side (full width, not a quarter column). */
.sec-google-map { padding-block: 3rem; }
.sec-google-map .split { align-items: stretch; }
.sec-google-map .sec__body h2 { margin-block: 0 1.25rem; }
.pg__contact { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.pg__contact li { display: grid; gap: .2rem; padding: 1rem 1.25rem; background: #fff; border: 1px solid var(--c-line, #e5e7eb); border-radius: var(--radius, 8px); color: #333; }
.pg__contact strong { font-size: .85rem; letter-spacing: .02em; color: var(--c-muted, #666); } .pg__contact a, .pg__contact span { font-weight: 600; overflow-wrap: anywhere; }
.sec-google-map .sec__map { min-block-size: 22rem; display: flex; } .sec-google-map .sec__map iframe { inline-size: 100%; block-size: 100%; min-block-size: 22rem; border: 0; }

.sec-contact-from .sec__body { margin-inline: auto; }
.sec-contact-from .sec__head { max-inline-size: 820px; margin-inline: auto; }
.sec-text-editor .sec__prose ul.pg__contact { padding: 0; margin: 0; }

/* Book a visit: space under the heading band, a form of readable width with short fields in pairs. */
main.pg-book-a-visit > .wrap { padding-block: 3rem 4rem; }
.pg-book-a-visit .frm { max-inline-size: 52rem; margin-inline: auto; }
.pg-book-a-visit .frm > h2 { margin-block: 0 .5rem; }
@media (min-width: 700px) {
  .pg-book-a-visit .frm { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.25rem; }
  .pg-book-a-visit .frm > h2, .pg-book-a-visit .frm > .frm__actions, .pg-book-a-visit .frm > .frm__row:has(textarea) { grid-column: 1 / -1; }
}

/* Table pages (result, form download, lists…): one frame instead of two nested ones, evenly padded toolbar, cells and footer. */
.sec__body > .tbl, .sec__body > .tbl > .tbl__scroll { border: 0; border-radius: 0; box-shadow: none; }
.sec__body > .tbl .tbl__scroll { overflow-x: auto; }
.tbl__toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; padding: 1rem 1.25rem; }
.tbl__toolbar label { display: flex; align-items: center; gap: .5rem; margin: 0; }
.tbl__toolbar select, .tbl__toolbar input[type="search"] { min-block-size: 40px; padding: .35rem .75rem; border: 1px solid var(--c-line, #cbd5e1); border-radius: 8px; background: #fff; color: #111; }
.tbl__toolbar input[type="search"] { min-inline-size: 13rem; }
.tbl table { inline-size: 100%; border-collapse: collapse; }
.tbl th, .tbl td { padding: .85rem 1.25rem; text-align: start; vertical-align: middle; }
.tbl td[colspan] { text-align: center; padding-block: 2.25rem; color: var(--c-muted, #666); }
.tbl__footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; padding: 1rem 1.25rem; border-block-start: 1px solid var(--c-line, #e5e7eb); }
.sec-form-download, .sec-front-result, .sec-front-class-routine, .sec-front-exam-routine, .sec-academic-calendar, .sec-teacher-list-page, .sec-donor { padding-block: 3rem 4.5rem; }
.sec-form-download .sec__head, .sec-front-result .sec__head, .sec-front-class-routine .sec__head, .sec-front-exam-routine .sec__head, .sec-academic-calendar .sec__head { margin-block-end: 1.5rem; }
.tbl .tbl__toolbar select, .tbl .tbl__toolbar input[type="search"] { border: 1px solid var(--c-line, #cbd5e1); border-radius: 8px; }
.sec-google-map .sec__body h2 { color: var(--title-color, var(--c-ink, var(--ink, #111))); }
/* table cells keep their natural width; long words break only when a cell overflows */
.tbl .tbl__scroll table :is(th, td) { overflow-wrap: break-word; word-break: normal; }
.tbl .tbl__scroll table td a { overflow-wrap: normal; }
.tbl .tbl__scroll table:has(thead th:nth-child(8)) :is(th, td) { padding-inline: .7rem; }
.tbl .tbl__scroll table:has(thead th:nth-child(8)) td:last-child { min-inline-size: 9rem; }

/* Header and footer rows are wrapped by the page builder in container > row > col, which adds padding and a narrower box
   than the .wrap that every other section uses, so the header (and its top bar) sat inside the page edges while the page
   bands ran full width. The header takes the full width (its own .wrap lines up with the page content), the footer
   takes exactly the content width, and neither adds container/column padding on top of the section's own. */
.pb-header .pb-themesection > .container { max-inline-size: none; padding-inline: 0; }
.pb-header .pb-themesection > .container > .row { margin-inline: 0; }
.pb-header .pb-themesection > .container > .row > * { padding-inline: 0; }
.pb-footer .pb-themesection > .container { max-inline-size: min(var(--w, 1200px), 100% - 2rem); padding-inline: 0; }
.pb-footer .pb-themesection > .container > .row { margin-inline: 0; }
.pb-footer .pb-themesection > .container > .row > * { padding-inline: 0; }
.pb-footer .sec > .wrap { inline-size: 100%; padding-inline: 0; }

/* The counter band centres its heading block (base.css), so the title's accent bar and the intro paragraph centre with it
   instead of sitting at the left edge under a centred title. */
.sec-counter .sec__head .sec__title::after { margin-inline: auto; }
.sec-counter .sec__head .sec__lead { margin-inline: auto; }

/* Call-to-action, speech, FAQ, map, opening-hour and contact-form sections are "non-container" in the page builder: it wraps
   them in a boxed .container, so their coloured band stopped short of the page edges (white gutters either side) while every
   other band ran full width. In the site theme they are full-width bands like the rest, their own .wrap keeps the text on
   the content edge. */
.pb-themesection > .container:has(.sec-cta, .sec-speech, .sec-opening-hour, .sec-faqs, .sec-google-map, .sec-contact-form) { max-inline-size: none; padding-inline: 0; }
.pb-themesection > .container:has(.sec-cta, .sec-speech, .sec-opening-hour, .sec-faqs, .sec-google-map, .sec-contact-form) > .full-width { padding-inline: 0; }
.pb-themesection > .container:has(.sec-cta, .sec-speech, .sec-opening-hour, .sec-faqs, .sec-google-map, .sec-contact-form) > .full-width > .row { margin-inline: 0; }

/* Rhythm: a second call-to-action straight after one would repeat the same loud band (and, in a dark design, merge with a
   dark footer). The second one is the quiet version: light surface, ink text, accent button. */
.pb-themesection:has(.sec-cta) + .pb-themesection:has(.sec-cta) .sec-cta { background: var(--c-surface, #f4f6f9); color: var(--c-ink, #1b2433); }
.pb-themesection:has(.sec-cta) + .pb-themesection:has(.sec-cta) .sec-cta :is(.sec__title, .sec__lead) { color: inherit; }
.pb-themesection:has(.sec-cta) + .pb-themesection:has(.sec-cta) .sec-cta .btn { background: var(--c-accent); color: var(--on-accent, #fff); }

/* The footer's copyright strip has its own darker background; inside the footer's content-width container it showed as a
   box with lighter gutters either side. The strip runs the full width, its text stays on the content edge. */
.pb-footer .pb-themesection > .container:has(.sec-footer-copyright) { max-inline-size: none; }
.pb-footer .pb-themesection > .container:has(.sec-footer-copyright) .sec-footer-copyright > .wrap { inline-size: min(var(--w, 1200px), 100% - 2rem); margin-inline: auto; }
/* A school's Edulia footer page can give the copyright row its own bottom padding (90px here): it showed as a band of
   footer colour under the strip. The strip is the last thing on the page, flush with the bottom edge. */
.pb-footer .pb-themesection:has(.sec-footer-copyright) { padding-block-end: 0 !important; }

/* A section in one half of a two-column row fills its column: the content edge is the column edge, not a second inset
   (.wrap = the page width minus 2rem), and a form there starts at the column's left edge instead of centring inside it. */
.row > [class*="col-md-"] .sec > .wrap, .row > [class*="col-lg-"] .sec > .wrap { inline-size: 100%; padding-inline: 0; }
.row > [class*="col-md-"] .sec-contact-from .sec__body, .row > [class*="col-md-"] .sec-contact-from .sec__head { max-inline-size: none; margin-inline: 0; }
.row > [class*="col-md-"] .sec-text-editor .sec__prose { max-inline-size: none; }
/* A multi-column row is laid out in the content width (a full-bleed one would split the whole screen and push the first
   column against the window edge). Single-column rows stay full-bleed so section bands reach the edges. */
.pb-themesection > .container-fluid:has(> .row > [class*="col-md-"]:not(.col-12)), .pb-themesection > .container-fluid:has(> .row > [class*="col-lg-"]) { max-inline-size: var(--w, 1200px); margin-inline: auto; padding-inline: 0; }
.pb-themesection > .container-fluid:has(> .row > [class*="col-md-"]:not(.col-12)) > .row, .pb-themesection > .container-fluid:has(> .row > [class*="col-lg-"]) > .row { margin-inline: 0; }
.pb-themesection > .container-fluid:has(> .row > [class*="col-md-"]:not(.col-12)) > .row > *:not(:last-child), .pb-themesection > .container-fluid:has(> .row > [class*="col-lg-"]) > .row > *:not(:last-child) { padding-inline-end: 1.5rem !important; }
.pb-themesection > .container-fluid:has(> .row > [class*="col-md-"]:not(.col-12)) > .row > *:not(:first-child), .pb-themesection > .container-fluid:has(> .row > [class*="col-lg-"]) > .row > *:not(:first-child) { padding-inline-start: 1.5rem !important; }
.row > [class*="col-md-"] .sec-contact-from .frm { padding-inline: 0; }

/* x-hero: the home banner. The headline, lead and buttons are live text over the design's hero colour (and an optional
   photo), so what the school writes is what visitors read and the buttons are real links. */
.sec-x-hero { position: relative; isolation: isolate; background: radial-gradient(circle at 88% 18%, rgb(255 255 255 / .07) 0 14rem, transparent 14.1rem), radial-gradient(circle at 96% 82%, rgb(255 255 255 / .05) 0 8rem, transparent 8.1rem), var(--hero-bg, var(--deep, var(--c-ink))); color: var(--hero-ink, #fff); padding-block: clamp(3.5rem, 9vw, 7rem); overflow: hidden; }
.sec-x-hero > .sec__media { position: absolute; inset: 0; z-index: -1; } .sec-x-hero > .sec__media img { inline-size: 100%; block-size: 100%; object-fit: cover; }
.sec-x-hero > .sec__media:not(:empty)::after { content: ""; position: absolute; inset: 0; background: var(--hero-overlay, linear-gradient(90deg, rgb(0 0 0 / .72), rgb(0 0 0 / .2))); }
.sec-x-hero .sec__title { color: inherit; font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 800; line-height: 1.25; max-inline-size: 30ch; }
.sec-x-hero .sec__title::after { content: none; }
.sec-x-hero .sec__lead { color: inherit; opacity: .92; font-size: clamp(1.02rem, 1.6vw, 1.2rem); line-height: 1.8; max-inline-size: 62ch; margin-block: 1.1rem 1.8rem; }
.sec-x-hero .sec__cta { margin: 0; justify-content: flex-start; }
.sec-x-hero .btn--outline { background: transparent; color: inherit; border-color: currentColor; }
.sec-x-hero .btn--outline:hover { background: #fff; color: var(--deep, var(--c-ink)); }

/* ---------- public result page (marksheet found by the result search) ---------- */
.pg-individual-result-view .wrap { padding-block: clamp(2rem, 5vw, 3.5rem); }
.pg-individual-result-view .marksheet_container { background: var(--c-surface, #fff); border: 1px solid var(--c-line, #dfe4ec); border-radius: .75rem; padding: clamp(1rem, 3vw, 2rem); }
.pg-individual-result-view .institute_info { text-align: center; margin-block-end: 1.25rem; }
.pg-individual-result-view .result-info, .pg-individual-result-view .result-summary { display: flex; flex-wrap: wrap; gap: .75rem 2rem; margin: 0 0 1.25rem; }
.pg-individual-result-view .result-info div, .pg-individual-result-view .result-summary div { display: flex; gap: .5rem; }
.pg-individual-result-view dt { font-weight: 600; }
.pg-individual-result-view dt::after { content: ":"; }
.pg-individual-result-view dd { margin: 0; }
.pg-individual-result-view .result-summary { margin-block: 1.25rem 0; padding-block-start: 1rem; border-block-start: 1px solid var(--c-line, #dfe4ec); }
.pg-individual-result-view .result-print { display: flex; justify-content: flex-end; margin-block-end: 1rem; }
.pg-individual-result-view .sec__lead { margin-inline: auto; text-align: center; }

/* A centred section heading carries its underline in the centre too (facilities, no photo). */
.sec-x-why-us .split:not(:has(.sec__media img)) .sec__head .sec__title::after { margin-inline: auto; }

/* A sticky header needs no scrolling ancestor. A school stylesheet that sets "html, body { overflow-x: hidden }" makes the
   body a scroll container and the header scrolls away with the page. clip stops sideways overflow just the same
   without creating one. */
html, body { overflow-x: clip !important; }

/* Phones: the top strip keeps the phone number on the left and, together on the right, the social icons and a
   dashboard/login icon. The e-mail address and the words next to the icon are left out, to fit one line (the label stays
   for screen readers). Only the menu bar (logo and menu button) stays in view while scrolling: the strip has a fixed
   height and the sticky header is moved up by exactly that height, so the strip scrolls away and the bar stays. */
@media (max-width: 760px) {
  #header.site-header { inset-block-start: -2.5rem; }
  .sec-header-content .sec__topbar { block-size: 2.5rem; overflow: hidden; }
  .sec-header-content .sec__topbar > .wrap { block-size: 100%; padding-block: 0; flex-wrap: nowrap; justify-content: flex-start; align-items: center; gap: .75rem; }
  .sec-header-content .sec__nav-contact { margin-inline-end: auto; }
  .sec-header-content .sec__topbar ul { flex-wrap: nowrap; }
  .sec-header-content .sec__nav-contact li:has(> a[href^="mailto:"]) { display: none; }
  .sec-header-content .sec__nav-account a > span { position: absolute; inline-size: 1px; block-size: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
  .sec-header-content .sec__nav-account a { position: relative; display: inline-flex; align-items: center; justify-content: center; min-inline-size: 2rem; min-block-size: 2rem; }
}

/* The mobile menu's contact list: every design gives each drawer link a line below it, which left a stray line under the
   last one. The lines between the items stay. */
.drawer__contact li:last-child > a { border-block-end: 0; }

/* Mobile menu (drawer) with dropdowns: one calm accordion for every design.
   A parent row opens on tap; its chevron is a plain icon, the open row gets a soft tint, and the children sit under it
   indented. The heavy bar and dark boxes (they came from the focus/current styles of each design) are gone;
   the current page is shown by a soft tint only (no bar at the edge). */
.drawer .sec__menu { gap: .2rem; }
.drawer .sec__menu > li > a, .drawer .sec__menu > li > a:focus { box-shadow: none; }
.drawer .sec__menu a { background: none; transition: background-color .18s; }
.drawer .sec__menu a:hover, .drawer .sec__menu a:focus-visible, .drawer .sec__menu li:hover > a { background: rgb(255 255 255 / .09); box-shadow: none; }
.drawer .sec__menu a:focus:not(:focus-visible) { background: none; box-shadow: none; outline: 0; }
.drawer .sec__menu a[aria-current] { background: rgb(255 255 255 / .1); box-shadow: none; }
.drawer .sec__menu > li.is-open { background: rgb(255 255 255 / .07); border-radius: 12px; }
.drawer .sec__menu > li.is-open > a:not([aria-current]) { background: none; }
.drawer__toggle { inset-inline-end: .15rem; }
.drawer__toggle:hover, .drawer__toggle:focus-visible { background: rgb(255 255 255 / .1); }
.drawer__toggle:focus:not(:focus-visible) { background: none; }
.drawer .sec__submenu { margin: 0 .8rem .4rem 1.4rem; padding: .1rem 0 .1rem .5rem; border-inline-start: 0; gap: 0; }
.drawer .sec__submenu a { min-block-size: 42px; padding: .4rem .7rem; border: 0; border-radius: 8px; font-weight: 500; font-size: .95em; opacity: .94; }
.drawer .sec__submenu a:hover, .drawer .sec__submenu a:focus-visible { opacity: 1; }
.drawer .sec__submenu .sec__submenu { margin-inline-end: 0; }
