/* =====================================================================
   TMS brand layer - The Modern Scholar International School
   Source: TMS Brand Guidelines v1.0 (Sept 2026), pages 12, 16, 17
   ---------------------------------------------------------------------
   Navy  #163355  primary: letters, type, backgrounds   (the ONLY blue)
   Gold  #C49D50  accent: tips, rules, highlights        (text only on navy)
   Page  #EAD1A8  soft fills
   Cream #F1ECE0  paper / page backgrounds
   White #FFFFFF  clean space, forms, screens
   Contrast: navy/white 12.8:1, navy/cream 10.9:1, gold/navy 5.0:1,
             navy/page-gold 8.5:1, gold/white 2.6:1 = never for text
   Loaded last in header.php; selectors are prefixed with "html body"
   so they win over the older inline <style> blocks without !important.
   ===================================================================== */

:root {
    --tms-navy: #163355;
    --tms-gold: #C49D50;
    --tms-page-gold: #EAD1A8;
    --tms-cream: #F1ECE0;
    --tms-white: #FFFFFF;
    --tms-line: #DDD5C3;
}

html body ::selection { background: var(--tms-page-gold); color: var(--tms-navy); }

/* ---------- Header & logo ------------------------------------------ */
html body .header-middle { background: var(--tms-white); }
html body .header-middle .mws-logo { width: auto; float: none; text-align: left !important; }
/* Horizontal lockup. Sized so the menu stays on one line at 1280px+ screens.
   (Guideline wants the tagline version at 500px+; swap in the no-tagline master when it arrives.) */
html body .header-middle .logo-wrapper { flex: 0 0 auto; }
html body .header-middle #logo img {
    width: 300px;
    max-width: 100%;
    height: auto;
    float: none;
    display: block;
    padding: 4px 0 8px;
}
@media screen and (max-width: 1365px) {
    html body .header-middle #logo img { width: 260px; }
}
@media screen and (max-width: 1180px) {
    html body .header-middle #logo img { width: 230px; }
}
html body .header-middle span.affliationtxt {
    display: inline-block;
    background: var(--tms-cream);
    border: 1px solid var(--tms-line);
    color: var(--tms-navy);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
    padding: 3px 12px;
    border-radius: 4px;
}

/* Header CTAs: navy = primary, gold = action, outline = utility */
html body a.admission-open-badge { background: var(--tms-navy); color: var(--tms-white); }
html body a.admission-open-badge:hover { background: var(--tms-gold); color: var(--tms-navy); }
html body a.cus-blink,
html body a.cus-blink.cus-no { background: var(--tms-gold); color: var(--tms-navy); }
html body a.cus-blink:hover { background: var(--tms-navy); color: var(--tms-white); text-decoration: none; }
html body a.parent-login { background: var(--tms-white); color: var(--tms-navy); border: 2px solid var(--tms-navy); }
html body a.parent-login:hover { background: var(--tms-navy); color: var(--tms-white); text-decoration: none; }
html body a.admission-open-strip { background: var(--tms-navy); color: var(--tms-white); }

/* Main navigation: navy type, gold underline for hover / active */
html body .header-menu #cssmenu > ul > li > a { color: var(--tms-navy); }
html body .header-menu #cssmenu > ul > li:hover > a,
html body .header-menu #cssmenu > ul > li.active > a { color: var(--tms-navy); box-shadow: inset 0 -2px 0 var(--tms-gold); }
html body #cssmenu > ul > li { border-right-color: var(--tms-line); }
html body #cssmenu > ul > li.has-sub > a:before,
html body #cssmenu > ul > li.has-sub > a:after { background-color: var(--tms-gold); }
html body #cssmenu ul ul li,
html body #cssmenu ul ul li a { background: var(--tms-navy); color: var(--tms-white); }
html body #cssmenu ul ul li:hover,
html body #cssmenu ul ul li:hover > a { background: var(--tms-gold); color: var(--tms-navy); }

/* ---------- Section titles ----------------------------------------- */
html body .new-heading-block h3,
html body .heading-block h3 { color: var(--tms-navy); }
html body .new-heading-block:before,
html body .new-heading-block:after { background: var(--tms-gold); height: 2px; }
html body .managment-box { background: var(--tms-navy); }
html body .managment-box h2,
html body .managment-box p { color: var(--tms-white); }
html body .managment-box h2:before,
html body .managment-box h2:after { background: var(--tms-gold); height: 2px; }

/* ---------- Content blocks ----------------------------------------- */
html body .principal-text h3,
html body .principal-text h5 { color: var(--tms-navy); }
html body .principal-text:before { background: var(--tms-gold); }
html body .principal-text a { background: var(--tms-navy); color: var(--tms-white); box-shadow: 0 3px 0 var(--tms-gold); }
html body .principal-text a:hover { background: var(--tms-gold); color: var(--tms-navy); box-shadow: 0 3px 0 var(--tms-navy); text-decoration: none; }

html body .btn-primary,
html body .school-managment .btn-primary {
    background: var(--tms-navy);
    border-color: var(--tms-navy);
    color: var(--tms-white);
}
html body .btn-primary:hover,
html body .btn-primary:focus,
html body .btn-primary:active { background: var(--tms-gold); border-color: var(--tms-gold); color: var(--tms-navy); }

html body .all-award .award-img1,
html body .cus-award img { border-color: var(--tms-page-gold); }

/* Talent Development / Latest / Trainings: navy title, gold side rules, gold frame */
html body .cus-sports-text h3 { color: var(--tms-navy); }
html body .cus-sports-text h3:before,
html body .cus-sports-text h3:after { background: var(--tms-gold); height: 2px; }
html body .cus-sports-slide { border: 2px solid var(--tms-gold); }

/* Pillars band */
html body .nep { background: var(--tms-navy); }
html body .nep h1, html body .nep h2, html body .nep h3 { color: var(--tms-white); }

/* Testimonials (Parents' Corner) */
html body .cus-sports-slide-text > span { color: var(--tms-gold); }
html body .cus-sports-slide-text p,
html body .cus-sports-slide-text h6,
html body .cus-sports-slide-text h6 span { color: var(--tms-navy); }

/* Carousel dots */
html body .owl-theme .owl-dots .owl-dot span { background: var(--tms-line); }
html body .owl-theme .owl-dots .owl-dot.active span,
html body .owl-theme .owl-dots .owl-dot:hover span { background: var(--tms-gold); }

/* Enquiry form */
html body section.contactform input[type=submit],
html body section.contactform .btn,
html body section.contactform .form-submit {
    background: var(--tms-gold);
    border: 0;
    color: var(--tms-navy);
    font-weight: 700;
}
html body section.contactform input[type=submit]:hover,
html body section.contactform .btn:hover { background: var(--tms-white); color: var(--tms-navy); }
html body section.contactform input:focus,
html body section.contactform select:focus { border-color: var(--tms-gold); box-shadow: 0 0 0 2px rgba(196, 157, 80, .35); outline: 0; }

/* ---------- Floating tabs ------------------------------------------ */
html body .cus-add a { background: var(--tms-gold); color: var(--tms-navy); }
html body .virtual-btn a { background: var(--tms-navy); color: var(--tms-white); border: 1px solid var(--tms-gold); }
html body a.scroll-top { background: var(--tms-navy); color: var(--tms-white); }
html body a.scroll-top:hover { background: var(--tms-gold); color: var(--tms-navy); }

/* ---------- Footer ------------------------------------------------- */
html body .footer { background: var(--tms-navy); }
html body .footer h2,
html body .footer h3 { color: var(--tms-gold); }
html body .footer a,
html body .footer ul.menu li a,
html body .footer .foot-nav ul li a { color: var(--tms-white); }
html body .footer a:hover,
html body .footer ul.menu li a:hover { color: var(--tms-gold); text-decoration: none; }
html body .footer-address p,
html body .footer-address p.tms-footer-line,
html body .footer-address p.tms-footer-line a { color: var(--tms-white); }
html body .footer-address p.tms-footer-line i { color: var(--tms-gold); }
html body .footer ul.follow-us li a {
    background: transparent;
    border: 2px solid var(--tms-gold);
    color: var(--tms-white);
}
html body .footer ul.follow-us li a:hover { background: var(--tms-gold); color: var(--tms-navy); }
html body .bottom { background: var(--tms-navy); border-top: 1px solid rgba(196, 157, 80, .55); }
html body .bottom p, html body .bottom span { color: var(--tms-white); }

/* ---------- Mobile menu -------------------------------------------- */
@media screen and (max-width: 1000px) {
    html body .header-middle #logo img { width: 240px; }
}
@media screen and (max-width: 640px) {
    html body .header-middle #logo img { width: 210px; }
    /* hamburger tile = navy; opened list = white sheet with navy type and gold hairlines */
    html body .header-menu #cssmenu,
    html body #cssmenu { background: var(--tms-navy) !important; }
    html body .header-menu #cssmenu > ul { background: var(--tms-white); }
    html body .header-menu #cssmenu > ul > li > a,
    html body .header-menu #cssmenu ul li a { color: var(--tms-navy); }
    html body .header-menu #cssmenu ul ul li a { color: var(--tms-white); }
    html body #cssmenu ul li { border-top-color: var(--tms-page-gold); }
    html body #cssmenu .submenu-button:before,
    html body #cssmenu .submenu-button:after { background: var(--tms-gold); }
    html body #cssmenu .button:before { background: var(--tms-white); }
}

/* ---------- Layout fixes (pre-existing issues) --------------------- */
/* Advisory Committee: slider dots were pulled up over the bio text and the READ MORE button */
html body .school-managment .owl-dots {
    position: static;
    margin: 18px 0 0;
    text-align: center;
}

/* Hero slider arrows: navy chevron on a soft white disc, readable on cream banners too */
html body #myCarousel .carousel-control { background: none; opacity: 1; width: 8%; text-shadow: none; }
html body #myCarousel .carousel-control .glyphicon {
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; margin-top: -22px; border-radius: 50%;
    background: rgba(255, 255, 255, .82); color: var(--tms-navy); font-size: 18px;
    box-shadow: 0 2px 8px rgba(22, 51, 85, .18);
}
html body #myCarousel .carousel-control:hover .glyphicon { background: var(--tms-gold); color: var(--tms-navy); }
html body #myCarousel .carousel-control.left .glyphicon { left: 18px; margin-left: 0; }
html body #myCarousel .carousel-control.right .glyphicon { right: 18px; margin-right: 0; left: auto; }
@media screen and (max-width: 640px) {
    html body #myCarousel .carousel-control .glyphicon { width: 34px; height: 34px; margin-top: -17px; font-size: 14px; }
    html body #myCarousel .carousel-control.left .glyphicon { left: 8px; }
    html body #myCarousel .carousel-control.right .glyphicon { right: 8px; }
}

/* Decorative diagonal strips used on the homepage and copied into inner pages (Our Campus, Life at TMS ...) */
html body .new-award-section:before,
html body .managment:before,
html body .nep:before,
html body .life:after,
html body .wp-campus:after { background: var(--tms-gold); }

/* Plain text links: Bootstrap's default bright blue (#007bff) -> navy.
   Same weight as Bootstrap's own "a" rule, so any link that already has its own colour keeps it. */
a { color: #163355; }
a:hover, a:focus { color: #163355; }

/* ---------- FAQ accordions (faq.php, admissions-faq.php) -------------
   !important because the live stylesheet admission-campaigns/css/style.css,
   loaded at the very end of footer.php, paints these buttons green. */
html body #genralQuestions .card-header h2 .btn,
html body #genralQuestions .card-header h2 .btn-link {
    background: var(--tms-navy) !important;
    border-color: var(--tms-navy) !important;
    color: var(--tms-white) !important;
    box-shadow: none !important;
    text-decoration: none !important;
}
html body #genralQuestions .card-header h2 .btn[aria-expanded="true"] {
    box-shadow: inset 0 -3px 0 var(--tms-gold) !important;
}
html body #genralQuestions .card-header h2 .btn:hover,
html body #genralQuestions .card-header h2 .btn:focus {
    background: var(--tms-gold) !important;
    border-color: var(--tms-gold) !important;
    color: var(--tms-navy) !important;
}
html body #genralQuestions .card-header h2 .btn::before,
html body #genralQuestions .card-header h2 .btn::after { background: var(--tms-white) !important; }
html body #genralQuestions .card-header h2 .btn:hover::before,
html body #genralQuestions .card-header h2 .btn:hover::after,
html body #genralQuestions .card-header h2 .btn:focus::before,
html body #genralQuestions .card-header h2 .btn:focus::after { background: var(--tms-navy) !important; }

/* ---------- Bootstrap primary buttons (e.g. year buttons on albums-gallery.php)
   Normal / active = navy, hover = gold. Bootstrap's own active state is very specific, hence :not() + !important. */
html body .btn-primary,
html body .btn-primary:focus,
html body .btn-primary.focus,
html body .btn-primary:not(:disabled):not(.disabled):active,
html body .btn-primary:not(:disabled):not(.disabled).active {
    background-color: var(--tms-navy) !important;
    border-color: var(--tms-navy) !important;
    color: var(--tms-white) !important;
    box-shadow: none !important;
}
html body .btn-primary:not(:disabled):not(.disabled):hover,
html body .btn-primary:not(:disabled):not(.disabled).active:hover {
    background-color: var(--tms-gold) !important;
    border-color: var(--tms-gold) !important;
    color: var(--tms-navy) !important;
}

/* ---------- Image / Video tabs on the event gallery pages (ul#myTab)
   Selected tab = navy with white text (also on hover); other tab = navy text, gold on hover. */
html body ul#myTab li a.nav-link {
    color: var(--tms-navy) !important;
    border-color: transparent !important;
}
html body ul#myTab li a.nav-link.active,
html body ul#myTab li a.nav-link.active:hover,
html body ul#myTab li a.nav-link.active:focus {
    background: var(--tms-navy) !important;
    border-color: var(--tms-navy) !important;
    color: var(--tms-white) !important;
}
html body ul#myTab li a.nav-link:not(.active):hover,
html body ul#myTab li a.nav-link:not(.active):focus {
    background: var(--tms-gold) !important;
    border-color: var(--tms-gold) !important;
    color: var(--tms-navy) !important;
}
html body ul#myTab { border-bottom-color: var(--tms-line); }

/* ---------- Bootstrap 4 carousel arrows (our-curriculum.php sports / arts / trips sliders)
   Old green square from the root bootstrap.min.css -> navy; gold with a navy arrow on hover. */
html body .carousel-control-prev-icon,
html body .carousel-control-next-icon {
    background-color: var(--tms-navy);
}
html body .carousel-control-prev:hover .carousel-control-prev-icon,
html body .carousel-control-prev:focus .carousel-control-prev-icon {
    background-color: var(--tms-gold);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23163355' viewBox='0 0 8 8'%3e%3cpath d='M5.25 0l-4 4 4 4 1.5-1.5-2.5-2.5 2.5-2.5-1.5-1.5z'/%3e%3c/svg%3e");
}
html body .carousel-control-next:hover .carousel-control-next-icon,
html body .carousel-control-next:focus .carousel-control-next-icon {
    background-color: var(--tms-gold);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23163355' viewBox='0 0 8 8'%3e%3cpath d='M2.75 0l-1.5 1.5 2.5 2.5-2.5 2.5 1.5 1.5 4-4-4-4z'/%3e%3c/svg%3e");
}

/* ---------- Home hero slider: one <picture> per slide (phone image up to 414px, desktop image above).
   Slides 2+ get their image from tms-hero-slider.js; until then they show cream, never a broken image. */
html body #myCarousel .item picture,
html body #myCarousel .item picture img { display: block; width: 100%; height: auto; }
html body #myCarousel .item { background: var(--tms-cream); }
html body #myCarousel .item img:not([src]) { visibility: hidden; }

/* ---------- Home - Pillars of our education system (index.php .tms-pillars)
   Desktop: 4 round icons joined by a wavy line (SVG behind the icons, dots at the joins).
   Phone/tablet below 768px: 2 per row, no line. Each item links to its our-curriculum.php section. */
html body section.tms-pillars-section { background: var(--tms-cream); }
html body section.tms-pillars-section::after { background-image: none; }
html body section.tms-pillars-section h1 { color: var(--tms-navy); }
html body .tms-pillars { position: relative; max-width: 1100px; margin: 30px auto 0; }
html body .tms-pillars-list { list-style: none; margin: 0; padding: 0; display: flex; justify-content: space-between; position: relative; z-index: 1; }
html body .tms-pillars-list li { flex: 0 0 25%; max-width: 25%; padding: 0 12px; margin: 0; text-align: center; float: none; }
html body .tms-pillars-list a { display: block; color: var(--tms-navy); text-decoration: none; }
html body .tms-pillar-icon { position: relative; display: block; width: 140px; height: 140px; margin: 0 auto 18px; transition: transform .25s ease; }
html body .tms-pillar-icon img { display: block; width: 100%; height: 100%; border-radius: 50%; }
html body .tms-pillar-icon::before,
html body .tms-pillar-icon::after { content: ""; position: absolute; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 50%; background: var(--tms-pillar, var(--tms-navy)); }
html body .tms-pillar-icon::before { left: 3.5%; top: 32%; }
html body .tms-pillar-icon::after { left: 96.5%; top: 68%; }
html body .tms-pillar-title { display: block; max-width: 230px; margin: 0 auto; font-weight: 700; font-size: 18px; line-height: 1.35; color: var(--tms-navy); }
html body .tms-pillars-list a:hover .tms-pillar-icon,
html body .tms-pillars-list a:focus .tms-pillar-icon { transform: translateY(-4px) scale(1.04); }
html body .tms-pillars-list a:hover .tms-pillar-title,
html body .tms-pillars-list a:focus .tms-pillar-title { text-decoration: underline; text-decoration-color: var(--tms-gold); text-underline-offset: 4px; }
html body .tms-pillars-wave { position: absolute; left: 0; top: 0; width: 100%; height: 140px; z-index: 0; overflow: visible; }
html body .tms-pillars-wave path { fill: none; stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke; }
@media (max-width: 991px) {
    html body .tms-pillar-icon { width: 120px; height: 120px; }
    html body .tms-pillars-wave { height: 120px; }
    html body .tms-pillar-title { font-size: 16px; }
}
@media (max-width: 767px) {
    html body .tms-pillars-wave,
    html body .tms-pillar-icon::before,
    html body .tms-pillar-icon::after { display: none; }
    html body .tms-pillars-list { flex-wrap: wrap; justify-content: center; row-gap: 28px; }
    html body .tms-pillars-list li { flex: 0 0 50%; max-width: 50%; padding: 0 8px; }
    html body .tms-pillar-icon { width: 110px; height: 110px; margin-bottom: 12px; }
    html body .tms-pillar-title { font-size: 15px; }
}

/* ---------- Home - Parents' Corner: "Coming soon" box in place of the video (same height as the old video) */
html body .tms-video-soon { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
    min-height: 315px; padding: 24px; background: var(--tms-navy); border: 1px solid var(--tms-gold); border-radius: 6px; }
html body .tms-video-soon-icon { width: 64px; height: 64px; color: var(--tms-gold); margin-bottom: 16px; }
html body .tms-video-soon-title { display: block; color: var(--tms-gold); font-size: 26px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
html body .tms-video-soon-text { display: block; color: var(--tms-white); font-size: 16px; margin-top: 8px; }
@media (max-width: 767px) { html body .tms-video-soon { min-height: 220px; margin-top: 20px; } }

/* ---------- Awards page - Selected Recognitions (awards.php) */
html body .tms-recognitions { margin: 0 0 30px; }
html body .tms-recognitions-list { list-style: none; margin: 0; padding: 0; }
html body .tms-recognitions-list li { margin: 0 0 18px; padding: 0; }
html body .tms-recognitions-list li::before { display: none; }
html body .tms-recognitions-list h3 { display: flex; align-items: center; gap: 12px; margin: 0 0 6px; padding: 0;
    font-size: 18px !important; font-weight: 700; line-height: 1.35; text-transform: none; color: var(--tms-navy); }
html body .tms-recognitions-list h3 img { flex: 0 0 52px; width: 52px; height: auto; }
html body .tms-recognitions-list p { margin: 0; font-size: 16px; line-height: 1.6; text-align: left; }
@media (max-width: 767px) {
    html body .tms-recognitions-list h3 { font-size: 16px !important; gap: 10px; }
    html body .tms-recognitions-list h3 img { flex-basis: 44px; width: 44px; }
}

/* ---------- Vision & Values - values grid (vision-values.php .tms-values): 7 icons with text,
   3 per row on desktop (last one centred), 2 per row on tablet/phone. */
html body .tms-values { list-style: none; margin: 10px 0 30px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; row-gap: 34px; }
html body .tms-values li { flex: 0 0 33.333%; max-width: 33.333%; margin: 0; padding: 0 6px; text-align: center; }
html body .tms-values li::before { display: none; }
html body .tms-values img { display: block; width: auto; max-width: 100%; height: 170px; object-fit: contain; margin: 0 auto 14px; }
html body .tms-values h3 { margin: 0 0 4px; padding: 0; font-size: 18px !important; font-weight: 700; line-height: 1.3; text-transform: none; color: var(--tms-navy); }
html body .tms-values p { margin: 0; font-size: 16px; font-weight: 400; line-height: 1.5; text-align: center; color: var(--tms-navy); }
@media (max-width: 991px) {
    html body .tms-values li { flex-basis: 50%; max-width: 50%; }
}
@media (max-width: 575px) {
    html body .tms-values { row-gap: 26px; }
    html body .tms-values li { padding: 0 6px; }
    html body .tms-values img { height: 120px; margin-bottom: 10px; }
    html body .tms-values h3 { font-size: 16px !important; }
    html body .tms-values p { font-size: 14px; }
}

/* ---------- Inner-page sidebar (ABOUT / ADMISSIONS / MEDIA ROOM ... box, .recent-post) on phones/tablets.
   The theme (custom5b2c.css, max-width 1000px) makes these links white for an old dark sidebar,
   so on today's light grey box they were invisible. Same colour as on desktop. */
@media (max-width: 1000px) {
    html body .recent-post a { color: #000; }
    html body .recent-post a:hover,
    html body .recent-post a:focus { color: var(--tms-navy); }
}
/* blog.php sidebar: its links carry style="color:#fff" in the HTML, so they were invisible
   on the light grey box at every screen size. */
html body .recent-post .custom-row a { color: #000 !important; }
html body .recent-post .custom-row a:hover,
html body .recent-post .custom-row a:focus { color: var(--tms-navy) !important; }
/* Up to 50em (800px) the theme pads the Values block (.content x2, 2px each side) - indent the Vision block the same so both line up. */
@media screen and (max-width: 50em) { html body .tms-vv-vision { padding-left: 4px; padding-right: 4px; } }

/* ---------- Font consistency (16 Nov 2026, doc task 5 + user) ----------
   Site standard: body text Montserrat 14px / 26px, #333; banner page titles 38px (28px up to 992px);
   page titles in the content area (pages without the dark banner) 30px like Overview.
   The theme forces h2 to 25px/19px and h3 to 22px/19px, so the same kind of title had 5 different sizes. */
html body .tms-content-title {
    font-size: 30px !important; line-height: 33px !important; font-weight: 500 !important;
    text-transform: uppercase; color: #24353b; letter-spacing: normal;
}
/* Navy band titles (Life at TMSIS, Vacancies): same size as the banner titles - 35px everywhere before */
html body .tms-band-title h3 { font-size: 38px !important; line-height: 1.15 !important; }
@media (max-width: 992px) { html body .tms-band-title h3 { font-size: 28px !important; } }
/* Our Principal / Advisory Committee: text was 16px black, the last paragraph 14px grey and touching
   the screen edge on phones - now all paragraphs like the rest of the site */
html body .our-leader .solar-text p,
html body .our-leader .solar-text1 p,
html body .our-leader .declaire p { font-size: 14px; line-height: 26px; color: #333; }
html body .our-leader .declaire { padding: 0 15px; }
@media (max-width: 767px) { html body .our-leader .solar-text { padding: 0; } }
/* School Life tabs text was 15px black */
html body .vertical-tabs { font-size: 14px; color: #333; }
/* Text pasted from Word / e-mail with inline Arial 12pt (corona-advisory.php) follows the site font */
html body .blog-left [style*="Arial"] {
    font-family: inherit !important; font-size: inherit !important; line-height: inherit !important; color: inherit !important;
}
/* FAQ accordions (faq.php, admissions-faq.php) - doc task 6: questions were on one line (Bootstrap .btn
   nowrap) and were cut off on phones, under the +/- icon. Now they wrap, with room for the icon on the right;
   phone size 11px -> 13px. Answers left-aligned (the live admission-campaigns stylesheet is loaded last). */
html body #genralQuestions .card-header h2 .btn {
    white-space: normal !important; text-align: left !important;
    line-height: 1.45 !important; padding: 12px 60px 12px 20px !important; height: auto !important;
}
html body #genralQuestions .card-body { text-align: left !important; line-height: 24px; padding: 14px 16px; }
@media (max-width: 992px) { html body #genralQuestions .card-header h2 .btn { font-size: 13px !important; } }
@media (max-width: 767px) { html body #genralQuestions .card-header h2 .btn { padding: 12px 54px 12px 14px !important; } }
/* faq.php: question 4 is commented out in the HTML but its empty .card box (20px margin) stayed -> double gap */
html body #genralQuestions .card:not(:has(.card-header)) { display: none; }
/* the questions sit in 2 full-width columns of a flex .row - that left ~17px extra between question 3 and 4 */
html body #genralQuestions > .row { display: block; }
/* Mobile menu +/- icons (user, 16 Nov): the theme's +/- button is 58px tall with the icon at 23-38px,
   but the menu rows are 39px (55px at 992-1000px) - so the + sat on the row's bottom line and the
   button reached into the next row. Button = row height, icon centred. Nested rows (Assessment Policy) 43px.
   Labels also get a 16px left gutter (they touched the screen edge on phones). */
@media screen and (max-width: 1000px) {
    html body #cssmenu > ul > li > .submenu-button { height: 39px; }
    html body #cssmenu ul ul .submenu-button { height: 43px; }
    html body #cssmenu ul .submenu-button::before { top: calc(50% - 7.5px); }
    html body #cssmenu ul .submenu-button::after { top: calc(50% - 1.5px); }
    /* opened top-level item: the theme paints the minus white - invisible on the white row */
    html body #cssmenu > ul > li > .submenu-button.submenu-opened::after { background: var(--tms-gold); }
}
@media screen and (min-width: 992px) and (max-width: 1000px) {
    html body #cssmenu > ul > li > .submenu-button { height: 55px; }
}
@media screen and (max-width: 991px) {
    html body #cssmenu > ul > li > a { padding-left: 16px !important; }
}
/* 641-1000px: the menu list is right-aligned, so the +/- sat on top of the labels - room on the right
   (all items, so the labels stay in one line); icons gold like on phones (theme: light grey #ddd) */
@media screen and (min-width: 641px) and (max-width: 1000px) {
    html body #cssmenu > ul > li > a { padding-right: 52px !important; }
    html body #cssmenu > ul > li > .submenu-button::before,
    html body #cssmenu > ul > li > .submenu-button::after { background: var(--tms-gold); }
}
/* Doc task 13 (16 Nov): big gaps between words on phones - the theme justifies every <p>
   (custom5b2c.css p {text-align: justify}), which stretches the spaces on narrow lines.
   Up to 991px text is left-aligned (what the last line of a justified paragraph already does);
   desktop keeps justified text. Also the admissions box (.admision p), Bootstrap .text-justify
   and inline style="text-align: justify" (corona-advisory.php). Centred text (.text-center etc.) is not touched. */
@media screen and (max-width: 991px) {
    html body p,
    html body .admision p { text-align: left; }
    html body .text-justify,
    html body [style*="text-align: justify"],
    html body [style*="text-align:justify"] { text-align: left !important; }
}
/* Side tab renamed "General Enquiry" -> "Enquire Now" (user, 16-17 Nov). The tab is rotated around its
   centre and footer-2.css placed it for the longer label (right: -75px for 186px); the shorter label
   (151px) sat 9px off-screen. Same 8px gap from the edge as before: right = 18px - width/2. */
@media screen and (min-width: 729px) {
    html body .cus-add { right: -57px; }
}
/* FAQ "What is the assessment pattern?" - wing-wise table (17 Nov). Phones: each wing as a small card. */
html body .tms-faq-table-title { margin: 0 0 10px; }
html body .tms-faq-table-wrap { overflow-x: auto; }
html body table.tms-faq-table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 22px; color: #333; margin: 0; }
html body table.tms-faq-table th { background: var(--tms-navy); color: #fff; font-weight: 600; text-align: left; padding: 10px 12px; border: 1px solid var(--tms-navy); }
html body table.tms-faq-table td { border: 1px solid #e2d9c6; padding: 10px 12px; vertical-align: top; text-align: left; }
html body table.tms-faq-table tbody tr:nth-child(even) td { background: #faf7f0; }
html body table.tms-faq-table td:first-child { font-weight: 600; color: var(--tms-navy); }
html body table.tms-faq-table td:nth-child(2) { white-space: nowrap; }
@media (max-width: 575px) {
    html body table.tms-faq-table thead { display: none; }
    html body table.tms-faq-table,
    html body table.tms-faq-table tbody,
    html body table.tms-faq-table tr,
    html body table.tms-faq-table td { display: block; width: 100%; }
    html body table.tms-faq-table tr { border: 1px solid #e2d9c6; margin-bottom: 10px; }
    html body table.tms-faq-table td { border: 0; padding: 6px 12px; }
    html body table.tms-faq-table tbody tr:nth-child(even) td { background: transparent; }
    html body table.tms-faq-table tbody tr td:first-child { background: var(--tms-navy); color: #fff; }
    html body table.tms-faq-table td:nth-child(2)::before { content: "Classes: "; font-weight: 600; color: var(--tms-navy); }
}
/* FAQ answers with several paragraphs (Q1 since 17 Nov): space between them, left-aligned like the other answers */
html body #genralQuestions .card-body p { text-align: left; margin: 0 0 10px; }
html body #genralQuestions .card-body p:last-child { margin-bottom: 0; }
/* FAQ assessment answer: links to the 5 assessment policy PDFs under the wing-wise table (17 Nov) */
html body .tms-faq-policies { margin-top: 18px; }
html body .tms-faq-policies ul { list-style: none; margin: 0; padding: 0; }
html body .tms-faq-policies li { margin: 0 0 8px; padding-left: 22px; position: relative; line-height: 22px; }
html body .tms-faq-policies li::before {
    content: ""; position: absolute; left: 0; top: 4px; width: 14px; height: 14px;
    background: var(--tms-gold); border-radius: 2px;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 0h7l4 4v12H3z'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 0h7l4 4v12H3z'/%3E%3C/svg%3E") center / contain no-repeat;
}
html body .tms-faq-policies a { color: var(--tms-navy); font-weight: 600; text-decoration: underline !important; text-underline-offset: 3px; }
html body .tms-faq-policies a:hover,
html body .tms-faq-policies a:focus { color: var(--tms-navy); text-decoration-color: var(--tms-gold) !important; text-decoration-thickness: 2px !important; }

/* Contact Us form - Date of Birth field (18 Nov 2026). The native date picker shows no placeholder,
   so a "Date of Birth" label sits inside the empty field like the other placeholders (#999, 14px, uppercase)
   and hides once a date is chosen or the field is focused (.has-value is set by the page script;
   :valid is the no-JS fallback since the field is required). */
html body .tms-dob-field { position: relative; }
html body .tms-dob-field .tms-dob-ph {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  color: #999; font-size: 14px; line-height: 18px; text-transform: uppercase; pointer-events: none; white-space: nowrap;
}
html body .tms-dob-field.has-value .tms-dob-ph,
html body .tms-dob-field .tms-dob:valid + .tms-dob-ph,
html body .tms-dob-field .tms-dob:focus + .tms-dob-ph { display: none; }
html body .tms-dob-field:not(.has-value) .tms-dob:invalid:not(:focus) { color: transparent; }
html body .tms-dob-field .tms-dob { text-align: left; min-height: 53px; -webkit-appearance: none; appearance: none; }
html body .tms-dob-field .tms-dob::-webkit-date-and-time-value { text-align: left; }

/* Contact Us form - same size for every field (user, 18 Nov 2026): the theme gives the text inputs
   53px height / 10px 15px padding / 99% width (.form-ara input), but selects and the textarea kept
   Bootstrap's 34px height and 6px 12px padding (selects 100% wide). */
html body #submitContact .form-ara select.form-control {
  height: 53px; min-height: 53px; width: 99%; padding: 10px 15px 10px 11px; font-size: 14px; line-height: 20px;
}
/* (browsers add ~4px inside a select, so 11px left padding puts its text in line with the inputs' 15px) */
html body #submitContact .form-ara textarea.form-control { padding: 10px 15px; }

/* ===== Footer enquiry form (tms-footer-enquiry-form.php, 19 Nov 2026) – same fields as Contact Us ===== */
/* rows of 2 | 3 | 2 fields (user): grid rows with the same gap, every control 100% of its cell -> all rows share the
   same left and right edge (the theme's 90%-wide inputs in floated 33% columns could not line up 2- and 3-field rows) */
html body .tms-ff-form .tms-ff-row { display: grid; column-gap: 36px; }
html body .tms-ff-form .tms-ff-row-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
html body .tms-ff-form .tms-ff-row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
html body .tms-ff-form .tms-ff-field { width: auto; float: none; margin: 0 0 18px; padding: 0; text-align: left; }
html body .tms-ff-form .tms-ff-field label { display: block; margin-bottom: 8px; }
html body .tms-ff-form .home-page-enquiry-form-input { width: 100% !important; display: block; height: 38px; margin: 0 !important; }
html body .tms-ff-form .tms-dob-field { width: 100%; }
html body .tms-ff-form .tms-dob-field .tms-dob { min-height: 0; height: 38px; line-height: 26px; padding: 5px; }
html body .tms-ff-form .tms-dob-field .tms-dob-ph { left: 6px; font-size: 14px; color: #757575; }
html body .tms-ff-form select.tms-ff-select {
  padding: 5px 2px; background-color: #fff; border-width: 1px !important;
  font-size: 14px; text-transform: uppercase; color: #333;
}
html body .tms-ff-form select.tms-ff-select:invalid { color: #757575; }
html body .tms-ff-form select.tms-ff-select option { color: #333; }
html body .tms-ff-form .tms-ff-captcha { clear: both; padding: 4px 0 18px; }
@media (max-width: 640px) {
  html body .tms-ff-form .tms-ff-row { column-gap: 14px; }
  html body .tms-ff-form .tms-ff-row-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html body .tms-ff-form .tms-ff-row-3 > .tms-ff-field:last-child { grid-column: 1 / -1; }   /* Parent Name full width */
}
/* no labels any more (user, 19 Nov) - on narrow phones half-width boxes cut the placeholders ("PRIMARY CONTACT N…"),
   so there every field takes the full width */
@media (max-width: 480px) {
  html body .tms-ff-form .tms-ff-row-2, html body .tms-ff-form .tms-ff-row-3 { grid-template-columns: minmax(0, 1fr); }
}
html body .tms-ff-form .tms-ff-field { margin-bottom: 16px; }
/* the theme gives this section a fixed height (built for 2 rows of fields) - let it grow with the 3 rows + reCAPTCHA */
html body section.bg:has(.tms-ff-form), html body section.contactform:has(.tms-ff-form) { height: auto !important; min-height: 0; }
html body section.bg:has(.tms-ff-form) .container, html body section.contactform:has(.tms-ff-form) .container { height: auto; }
/* phones: the theme floats this section (float:left, max-width 767px), so the footer's block box lay on top of the
   form and no field could be tapped (pre-existing on all inner pages) - take it out of the float */
@media (max-width: 767px) {
  html body section.bg:has(.tms-ff-form) { float: none; width: 100%; display: block; }
}

/* page-title banners (23 Nov 2026, new building photo): on phones long titles ran to the screen edge - side padding, centred */
@media (max-width: 767px) {
  html body .page-title h1 { padding-left: 15px; padding-right: 15px; text-align: center; }
}
