/* ODG-SCHOOL public website — three themes share this file.
   Colours/fonts come from Website → Appearance as CSS variables. */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.site { margin: 0; font-family: var(--bf); font-size: var(--fs); line-height: 1.65; color: var(--tx); background: var(--bg); -webkit-font-smoothing: antialiased; }
.site img { max-width: 100%; height: auto; }
.site a { color: var(--p); }
.site h1, .site h2, .site h3, .site h4 { font-family: var(--hf); line-height: 1.2; color: var(--tx); margin: 0 0 .5em; }
.site h1 { font-size: clamp(30px, 4.5vw, 48px); font-weight: 800; }
.site h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 700; }
.site h3 { font-size: 19px; font-weight: 700; }
.ic { flex: none; vertical-align: -3px; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* shared parts */
.site .logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.logo img { height: 52px; width: auto; }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-text strong { font-family: var(--hf); font-size: 19px; font-weight: 800; }
.logo-text small { font-size: 12.5px; opacity: .75; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav > ul { display: flex; gap: 4px; align-items: center; }
.nav li { position: relative; }
.nav a { display: flex; align-items: center; gap: 4px; padding: 10px 14px; text-decoration: none; color: inherit; font-weight: 600; font-size: 15px; border-radius: var(--rad); }
.nav a:hover, .nav .cur > a { color: var(--p); }
.nav .dropdown { position: absolute; top: 100%; left: 0; min-width: 220px; background: #fff; border-radius: var(--rad); box-shadow: 0 14px 36px rgba(15, 20, 40, .16); padding: 8px; display: none; z-index: 30; }
.nav .dropdown a { color: #1f2433; font-weight: 500; padding: 8px 12px; }
.nav .dropdown a:hover { background: color-mix(in srgb, var(--p) 8%, white); }
.nav li:hover > .dropdown, .nav li:focus-within > .dropdown { display: block; }
.btn-cta { display: inline-flex; align-items: center; gap: 7px; padding: 10px 18px; border-radius: 999px; background: var(--a); color: #1b1b1b !important; font-weight: 700; text-decoration: none; font-size: 14.5px; white-space: nowrap; }
.btn-cta:hover { filter: brightness(.95); }
.btn-hero { display: inline-flex; align-items: center; gap: 8px; padding: 14px 26px; border-radius: 999px; background: var(--a); color: #1b1b1b !important; font-weight: 700; text-decoration: none; }
.btn-hero:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(0,0,0,.18); }
.btn-ghost { display: inline-flex; padding: 13px 24px; border-radius: 999px; border: 2px solid currentColor; color: inherit !important; font-weight: 700; text-decoration: none; }
.nav-toggle { display: none; background: none; border: 0; color: inherit; padding: 8px; cursor: pointer; }
.topbar { background: var(--p); color: #fff; font-size: 13.5px; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 12px; padding-top: 7px; padding-bottom: 7px; flex-wrap: wrap; }
.tb-items { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; opacity: .92; display: inline-flex; gap: 6px; align-items: center; }
.topbar a:hover { opacity: 1; }
.social { display: flex; gap: 10px; align-items: center; }
.social a { color: inherit; opacity: .85; }
.social a:hover { opacity: 1; }

.hero { position: relative; color: #fff; background: linear-gradient(130deg, var(--p), color-mix(in srgb, var(--p) 50%, black)); overflow: hidden; }
.hero.has-img { background: linear-gradient(rgba(0,0,0,calc(var(--ov) / 100)), rgba(0,0,0,calc(var(--ov) / 100))), var(--img) center / cover no-repeat; }
.hero-inner { padding-top: 90px; padding-bottom: 90px; position: relative; }
.hero h1 { color: #fff; max-width: 760px; }
.hero p { font-size: clamp(17px, 2vw, 21px); max-width: 640px; opacity: .95; margin: 0 0 26px; }

.page-title { padding: 50px 0 10px; }
.page-title .lead, .lead { font-size: 19px; opacity: .8; max-width: 760px; }
.crumb { font-size: 14px; text-decoration: none; font-weight: 600; }
.featured { border-radius: var(--rad); margin: 10px 0 24px; width: 100%; max-height: 460px; object-fit: cover; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 44px; padding-bottom: 60px; }
.layout.no-side { grid-template-columns: minmax(0, 1fr); }
.layout.no-side .content { max-width: 880px; }
.is-home .layout.no-side .content { max-width: none; }
.content { min-width: 0; padding-top: 20px; }
.sidebar { padding-top: 50px; }
.widget { margin-bottom: 28px; }
.sidebar .widget { background: #fff; border: 1px solid color-mix(in srgb, var(--tx) 10%, white); border-radius: var(--rad); padding: 20px; }
.widget h3 { font-size: 17px; margin-bottom: 12px; }
.link-list { list-style: none; margin: 0; padding: 0; }
.link-list li { padding: 5px 0; border-bottom: 1px solid color-mix(in srgb, currentColor 10%, transparent); }
.link-list a { text-decoration: none; color: inherit; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; }
.contact-list .ic { color: var(--p); margin-top: 3px; }
.contact-list.sm { gap: 8px; font-size: 14.5px; }
.contact-list a { color: inherit; }
.map iframe { width: 100%; height: 100%; min-height: 300px; border: 0; border-radius: var(--rad); }
.map.sm iframe { min-height: 200px; }

/* rich text from the editor */
.prose { font-size: 1.04em; }
.prose > *:first-child { margin-top: 0; }
.prose p { margin: 0 0 1.1em; }
.prose h2 { margin-top: 1.4em; }
.prose h3 { margin-top: 1.2em; }
.prose img { border-radius: var(--rad); }
.prose blockquote { margin: 1.4em 0; padding: 14px 20px; border-left: 4px solid var(--a); background: color-mix(in srgb, var(--a) 10%, white); border-radius: 0 var(--rad) var(--rad) 0; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li[data-list="bullet"] { list-style-type: disc; }
.prose table { width: 100%; border-collapse: collapse; }
.prose td, .prose th { border: 1px solid #dde1ea; padding: 8px 10px; }
.prose iframe, .prose .ql-video { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--rad); display: block; margin: 1em 0; }
.prose .ql-align-center { text-align: center; }
.prose .ql-align-right { text-align: right; }
.prose .ql-align-justify { text-align: justify; }
.prose .ql-indent-1 { padding-left: 3em; } .prose .ql-indent-2 { padding-left: 6em; }
.prose .ql-size-small { font-size: .8em; } .prose .ql-size-large { font-size: 1.4em; }
.prose.sm { font-size: 15px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; margin-top: 30px; }
.card-link { display: block; background: #fff; border-radius: var(--rad); overflow: hidden; text-decoration: none; color: inherit; box-shadow: 0 2px 14px rgba(20, 30, 60, .08); transition: .2s; }
.card-link:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(20, 30, 60, .14); }
.card-link img { width: 100%; height: 160px; object-fit: cover; display: block; }
.card-link div { padding: 16px 18px; }
.card-link p { margin: 0; font-size: 14.5px; opacity: .8; }

.contact-band { background: color-mix(in srgb, var(--p) 6%, white); padding: 64px 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; align-items: stretch; }
.footer { background: #141a2b; color: #c9cfdd; font-size: 14.5px; }
.footer a { color: #fff; }
.footer h3 { color: #fff; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; padding-top: 50px; padding-bottom: 20px; }
.footer .contact-list .ic { color: var(--a); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 18px; border-top: 1px solid rgba(255,255,255,.08); font-size: 13.5px; }
.footer-nav { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-nav a { text-decoration: none; opacity: .85; }
.powered { opacity: .6; font-size: 12.5px; }

/* ============ CLASSIC ============ */
.theme-classic .header { background: #fff; border-bottom: 1px solid #e8ebf2; z-index: 40; }
.theme-classic.sticky .header { position: sticky; top: 0; }
.theme-classic .header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 84px; }
.theme-classic .header-nav { display: flex; align-items: center; gap: 14px; }
.theme-classic .hero-inner { padding-top: 110px; padding-bottom: 110px; }
.theme-classic .is-home .content, .theme-classic.is-home .content { padding-top: 54px; }

/* ============ MODERN ============ */
.theme-modern .header { background: #fff; z-index: 40; box-shadow: 0 1px 0 #eceff5; }
.theme-modern.sticky .header { position: sticky; top: 0; }
.theme-modern .header.over-hero { position: absolute; left: 0; right: 0; top: 0; background: transparent; box-shadow: none; color: #fff; }
.theme-modern .header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 84px; gap: 16px; }
.theme-modern .header-inner .logo { justify-self: center; grid-column: 2; grid-row: 1; flex-direction: column; text-align: center; gap: 4px; }
.theme-modern .header-inner .logo img { height: 46px; }
.theme-modern .header-nav { grid-column: 1; grid-row: 1; }
.theme-modern .header-inner .btn-cta { grid-column: 3; justify-self: end; grid-row: 1; }
.theme-modern .over-hero .nav a:hover, .theme-modern .over-hero .nav .cur > a { color: var(--a); }
.theme-modern .header:not(.over-hero) .logo { color: var(--p); }
.theme-modern .hero { min-height: 92vh; display: flex; align-items: center; text-align: center; }
.theme-modern .hero-inner { display: flex; justify-content: center; padding-top: 140px; }
.theme-modern .hero h1, .theme-modern .hero p { margin-left: auto; margin-right: auto; }
.theme-modern .hero h1 { font-size: clamp(36px, 6vw, 66px); }
.theme-modern .page-band { background: linear-gradient(130deg, var(--p), color-mix(in srgb, var(--p) 55%, black)); color: #fff; padding: 70px 0 110px; text-align: center; }
.theme-modern .page-band h1 { color: #fff; }
.theme-modern .page-band p { opacity: .9; font-size: 19px; max-width: 700px; margin: 0 auto; }
.theme-modern .content.raised { background: #fff; border-radius: calc(var(--rad) * 1.6); box-shadow: 0 20px 60px rgba(20, 30, 60, .12); padding: 46px clamp(20px, 5vw, 64px); margin: -70px auto 60px; max-width: 980px; position: relative; }
.theme-modern.is-home .content.raised { margin-top: -80px; max-width: 1140px; }
.theme-modern .content.raised .page-title { display: none; }
.theme-modern .widget-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; max-width: 980px; margin: 0 auto 60px; }
.theme-modern .widget-row .widget { background: #fff; border-radius: var(--rad); padding: 22px; box-shadow: 0 4px 20px rgba(20, 30, 60, .07); }
.theme-modern .cta-band { background: var(--s); color: #fff; padding: 60px 0; text-align: center; }
.theme-modern .cta-band h2 { color: #fff; }
.row-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }

/* ============ CAMPUS ============ */
.theme-campus .side-header { position: fixed; left: 0; top: 0; bottom: 0; width: 280px; background: var(--p); color: #fff; display: flex; flex-direction: column; padding: 28px 22px; overflow-y: auto; z-index: 40; }
.theme-campus .side-top { display: flex; justify-content: space-between; align-items: flex-start; }
.theme-campus .side-header .logo { flex-direction: column; align-items: flex-start; }
.theme-campus .side-header .logo img { height: 64px; }
.theme-campus .header-nav { display: flex; flex-direction: column; gap: 22px; margin-top: 34px; flex: 1; }
.theme-campus .nav > ul { flex-direction: column; align-items: stretch; gap: 2px; }
.theme-campus .nav a { padding: 10px 12px; color: #fff; opacity: .9; }
.theme-campus .nav a:hover, .theme-campus .nav .cur > a { opacity: 1; background: rgba(255,255,255,.1); color: #fff; }
.theme-campus .nav .dropdown { position: static; display: block; background: none; box-shadow: none; padding: 0 0 0 14px; }
.theme-campus .nav .dropdown a { color: #fff; opacity: .75; font-size: 14px; padding: 6px 12px; }
.theme-campus .nav .dropdown a:hover { background: none; opacity: 1; }
.theme-campus .btn-cta { align-self: flex-start; }
.theme-campus .side-contact { margin-top: auto; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }
.theme-campus .side-contact a { color: #fff; opacity: .85; text-decoration: none; display: flex; gap: 8px; align-items: center; }
.theme-campus .side-main { margin-left: 280px; min-height: 100vh; display: flex; flex-direction: column; }
.theme-campus .side-main main { flex: 1; }
.theme-campus .hero { background: color-mix(in srgb, var(--p) 6%, white); color: var(--tx); }
.theme-campus .hero.has-img { background: color-mix(in srgb, var(--p) 6%, white); }
.theme-campus .hero h1 { color: var(--tx); }
.theme-campus .hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; padding-top: 70px; padding-bottom: 70px; }
.theme-campus .hero-media img { border-radius: calc(var(--rad) * 2); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; box-shadow: 18px 18px 0 var(--a); }
.hero-dots { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; max-width: 320px; margin: 0 auto; }
.hero-dots i { aspect-ratio: 1; border-radius: 50%; display: block; }
.hero-dots i:nth-child(1) { background: var(--a); } .hero-dots i:nth-child(2) { background: var(--s); }
.hero-dots i:nth-child(3) { background: var(--p); } .hero-dots i:nth-child(4) { background: color-mix(in srgb, var(--a) 60%, yellow); }

/* ============ mobile ============ */
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .header-nav { display: none !important; }
  body.nav-open .header-nav { display: flex !important; }
  .theme-classic .header-inner, .theme-modern .header-inner { flex-wrap: wrap; }
  .theme-classic .header-nav, .theme-modern .header-nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; color: #1f2433; flex-direction: column; align-items: stretch; padding: 12px 20px 20px; box-shadow: 0 16px 30px rgba(0,0,0,.12); }
  .theme-classic .header-inner, .theme-modern .header-inner { position: relative; }
  .nav > ul { flex-direction: column; align-items: stretch; }
  .nav .dropdown { position: static; box-shadow: none; display: none; padding-left: 12px; }
  .nav li.open > .dropdown { display: block; }
  .nav li:hover > .dropdown { display: none; }
  .nav li.open:hover > .dropdown { display: block; }
  .theme-modern .header-inner { grid-template-columns: auto 1fr auto; }
  .theme-modern .header-inner .logo { flex-direction: row; justify-self: center; }
  .theme-modern .header-nav { grid-column: 1 / -1; }
  .layout { grid-template-columns: 1fr; gap: 10px; }
  .sidebar { padding-top: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .theme-campus .side-header { position: sticky; width: auto; bottom: auto; padding: 14px 20px; }
  .theme-campus .side-header .logo { flex-direction: row; align-items: center; }
  .theme-campus .side-header .logo img { height: 44px; }
  .theme-campus .side-top { align-items: center; }
  .theme-campus .header-nav { margin-top: 14px; }
  .theme-campus .side-main { margin-left: 0; }
  .theme-campus .hero-inner { grid-template-columns: 1fr; }
  .hero-inner { padding-top: 60px; padding-bottom: 60px; }
  .theme-modern .hero { min-height: 78vh; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .logo img { height: 42px; }
  .logo-text small { display: none; }
  .topbar .tb-items span { display: none; }
  .theme-modern .header-inner .btn-cta { display: none; }
  .theme-modern .content.raised { padding: 28px 18px; }
}

/* "Try the demo" button */
.demo-fab { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: inline-flex; align-items: center; gap: 8px; padding: 13px 20px; border-radius: 999px; background: var(--s); color: #fff !important; font-weight: 700; text-decoration: none; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.demo-fab:hover { transform: translateY(-2px); }
