/*
 * Sky template - site styles (loaded after Bootstrap 3).
 * The school's two colours arrive as --sky-1 (main) and --sky-2 (deep), set in layout.php
 * from schools.color_1 / color_2, with --sky-1-ink / --sky-2-ink for readable text on them.
 * style.css and responsive.css (the original theme) are kept in the folder but no longer loaded.
 */
:root {
  --sky-1: #1f4e9c; --sky-1-ink: #fff;
  --sky-2: #0f2a57; --sky-2-ink: #fff;
  --sky-sun: #f3b23a;
  --sky-ink: #17223b;
  --sky-muted: #59657a;
  --sky-line: #dde4ee;
  --sky-mist: #eef3f9;
  --sky-paper: #ffffff;
  --sky-head: 'Bricolage Grotesque', 'Segoe UI', Arial, sans-serif;
  --sky-body: 'Source Sans 3', 'Segoe UI', Arial, sans-serif;
  --sky-wrap: 1180px;
}

/* ---------- base ---------- */
html { scroll-behavior: smooth; }
body.sky { font-family: var(--sky-body); font-size: 17px; line-height: 1.6; color: var(--sky-ink); background: var(--sky-paper); -webkit-font-smoothing: antialiased; }
.sky h1, .sky h2, .sky h3, .sky h4 { font-family: var(--sky-head); color: var(--sky-ink); font-weight: 700; letter-spacing: -.01em; line-height: 1.15; margin: 0; }
.sky a { color: var(--sky-1); }
.sky a:hover, .sky a:focus { color: var(--sky-2); }
.sky :focus-visible { outline: 3px solid var(--sky-sun); outline-offset: 2px; }
.sky img { max-width: 100%; height: auto; }
.sky .container { max-width: var(--sky-wrap); width: auto; padding-left: 20px; padding-right: 20px; }
.sky-skip { position: absolute; left: -9999px; top: 0; background: var(--sky-sun); color: var(--sky-ink); padding: 8px 14px; z-index: 100; font-weight: 700; }
.sky-skip:focus { left: 8px; top: 8px; }
.sky-narrow { max-width: 760px !important; }
.sky-section { padding: 72px 0; }
.sky-h2 { font-size: clamp(26px, 3.2vw, 36px); }
.sky-empty { color: var(--sky-muted); font-size: 18px; margin: 0; }

/* buttons */
.sky-btn, .sky .btn-primary { display: inline-block; font-family: var(--sky-head); font-weight: 700; font-size: 16px; padding: 12px 22px; border-radius: 4px; border: 2px solid var(--sky-sun); background: var(--sky-sun); color: var(--sky-ink) !important; text-decoration: none !important; line-height: 1.2; transition: background .15s, border-color .15s; }
.sky-btn:hover, .sky .btn-primary:hover { background: #ffc85a; border-color: #ffc85a; }
.sky .btn-primary { background: var(--sky-1); border-color: var(--sky-1); color: var(--sky-1-ink) !important; }
.sky .btn-primary:hover { background: var(--sky-2); border-color: var(--sky-2); color: var(--sky-2-ink) !important; }
.sky .btn-default { font-weight: 700; padding: 11px 20px; border-radius: 4px; }
.sky-btn-line { background: transparent; border-color: currentColor; color: inherit !important; }
.sky-btn-line:hover { background: rgba(255,255,255,.12); border-color: currentColor; }
.sky-btn-light { background: #fff; border-color: #fff; color: var(--sky-ink) !important; }
.sky-btn-light:hover { background: var(--sky-mist); border-color: var(--sky-mist); }

/* ---------- header: see sky-header.css (the original Sky menu) ---------- */
.sky-mark { display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; background: var(--sky-1); color: var(--sky-1-ink); font-family: var(--sky-head); font-weight: 800; font-size: 17px; border-radius: 50% 50% 4px 50%; }
.sky-brand-name { font-family: var(--sky-head); font-weight: 700; font-size: 19px; color: var(--sky-ink); line-height: 1.15; max-width: 260px; }
.sky-login { display: inline-block; padding: 9px 16px !important; background: var(--sky-1); color: var(--sky-1-ink) !important; border-radius: 4px; font-weight: 700; border: 0 !important; text-decoration: none !important; }
.sky-login:hover { background: var(--sky-2); color: var(--sky-2-ink) !important; }
.sky-login-light { background: var(--sky-sun); color: var(--sky-ink) !important; margin-top: 8px; }
.sky-login-light:hover { background: #ffc85a; color: var(--sky-ink) !important; }

/* ---------- hero ---------- */
.sky-hero { position: relative; background: var(--sky-2); }
.sky-slide { min-height: clamp(420px, 72vh, 680px); background-size: cover; background-position: center; display: flex; align-items: flex-end; position: relative; }
.sky-slide::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,18,36,0) 35%, rgba(10,18,36,.55) 100%); }
.sky-slide .container { position: relative; width: 100%; padding-bottom: 64px; }
.sky-caption { max-width: 620px; background: var(--sky-1); color: var(--sky-1-ink); padding: 30px 34px 32px; border-top: 6px solid var(--sky-sun); }
.sky-caption-title { color: inherit !important; font-size: clamp(30px, 4.4vw, 52px); font-weight: 800 !important; letter-spacing: -.02em; }
.sky-caption p { margin: 12px 0 0; font-size: 19px; opacity: .92; }
.sky-caption .sky-btn { margin-top: 20px; margin-right: 8px; }
.sky-hero-plain { padding: 96px 0 104px; background: var(--sky-2); }
.sky-hero-plain .sky-caption { background: transparent; padding: 0 0 0 26px; border-top: 0; border-left: 6px solid var(--sky-sun); color: var(--sky-2-ink); }
.sky-slides .owl-nav { position: absolute; right: 20px; bottom: 56px; display: flex; gap: 6px; }
.sky-slides .owl-nav .owl-prev, .sky-slides .owl-nav .owl-next { width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.92); color: var(--sky-ink); border-radius: 50%; font-size: 17px; cursor: pointer; }
.sky-slides .owl-nav .owl-prev:hover, .sky-slides .owl-nav .owl-next:hover { background: var(--sky-sun); }
.sky-slides .owl-nav.disabled, .sky-slides .owl-dots.disabled { display: none; }
.sky-slides .owl-dots { position: absolute; left: 0; right: 0; bottom: 60px; text-align: center; }
.sky-slides .owl-dot span { display: block; width: 9px; height: 9px; margin: 0 4px; border-radius: 50%; background: rgba(255,255,255,.55); }
.sky-slides .owl-dot.active span { background: var(--sky-sun); }
.sky-slides .owl-dot { display: inline-block; }

/* ---------- highlights (site sections) ---------- */
.sky-highlights { padding: 0; position: relative; z-index: 2; }
.sky-highlight-grid { display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; margin-top: -36px; border: 1px solid var(--sky-line); box-shadow: 0 18px 40px rgba(23,34,59,.10); }
.sky-highlight-grid.sky-n1 { grid-template-columns: 1fr; }
.sky-highlight-grid.sky-n2 { grid-template-columns: 1fr 1fr; }
.sky-highlight { padding: 28px 30px 30px; border-left: 1px solid var(--sky-line); }
.sky-highlight:first-child { border-left: 0; }
.sky-highlight h2 { font-size: 21px; margin-bottom: 8px; color: var(--sky-1); }
.sky-highlight p { margin: 0; color: var(--sky-muted); }

/* ---------- about ---------- */
.sky-about-grid { display: grid; grid-template-columns: 5fr 6fr; gap: 56px; align-items: center; }
.sky-about-grid.sky-about-text-only { grid-template-columns: 1fr; max-width: 780px; }
.sky-about-img { margin: 0; position: relative; }
.sky-about-img img { width: 100%; display: block; border-radius: 4px; position: relative; z-index: 1; }
.sky-about-img::after { content: ''; position: absolute; left: -16px; bottom: -16px; width: 55%; height: 55%; background: var(--sky-sun); border-radius: 4px; }
.sky-about-text .sky-h2 { margin-bottom: 16px; }

/* ---------- reading text ---------- */
.sky-prose { font-size: 18px; line-height: 1.72; color: #2a3550; overflow-wrap: break-word; }
.sky-prose p { margin: 0 0 1.05em; }
.sky-prose h2 { font-size: 26px; margin: 1.4em 0 .5em; }
.sky-prose h3 { font-size: 21px; margin: 1.3em 0 .45em; }
.sky-prose h4 { font-size: 18px; margin: 1.2em 0 .4em; }
.sky-prose ul, .sky-prose ol { padding-left: 1.3em; margin: 0 0 1.05em; }
.sky-prose li { margin-bottom: .3em; }
.sky-prose blockquote { border-left: 4px solid var(--sky-sun); margin: 1.2em 0; padding: .2em 0 .2em 1em; font-size: inherit; color: var(--sky-ink); }
.sky-prose img { border-radius: 4px; margin: .4em 0; height: auto !important; }
.sky-prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.05em; font-size: 16px; display: block; overflow-x: auto; }
.sky-prose th, .sky-prose td { border: 1px solid var(--sky-line); padding: 8px 10px; }
.sky-prose iframe { max-width: 100%; }
.sky-prose a { text-decoration: underline; }

/* ---------- news ---------- */
.sky-news { background: var(--sky-mist); }
.sky-section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.sky-more { font-weight: 700; font-family: var(--sky-head); }
.sky-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.sky-card { background: #fff; border-radius: 4px; overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--sky-line); }
.sky-card-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--sky-1); }
.sky-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.sky-card:hover .sky-card-img img { transform: scale(1.04); }
.sky-card-img.is-blank { display: flex; align-items: center; justify-content: center; color: var(--sky-1-ink); font-size: 40px; opacity: .9; text-decoration: none; }
.sky-card-body { padding: 18px 20px 22px; }
.sky-card time, .sky-article-meta { display: block; color: var(--sky-muted); font-size: 14.5px; font-weight: 600; margin-bottom: 6px; }
.sky-card h3 { font-size: 20px; }
.sky-card h3 a { color: var(--sky-ink); text-decoration: none; }
.sky-card h3 a:hover { color: var(--sky-1); text-decoration: underline; }
.sky-card p { margin: 8px 0 0; color: var(--sky-muted); font-size: 16px; }
.sky-pager { display: flex; justify-content: center; align-items: center; gap: 20px; margin-top: 36px; font-weight: 600; }
.sky-pager a { padding: 8px 16px; border: 1px solid var(--sky-line); border-radius: 4px; background: #fff; text-decoration: none; }

.sky-article { padding-top: 48px; }
.sky-back { display: inline-block; font-weight: 700; margin-bottom: 18px; text-decoration: none; }
.sky-back::before { content: '\2190\00a0'; }
.sky-article-title { font-size: clamp(30px, 4vw, 44px); margin-bottom: 10px; }
.sky-article-img { margin: 22px 0 28px; }
.sky-article-img img { width: 100%; border-radius: 4px; }

/* ---------- inner page banner ---------- */
.sky-banner { background: var(--sky-1); color: var(--sky-1-ink); padding: 56px 0 50px; border-bottom: 6px solid var(--sky-sun); }
.sky-banner h1 { color: inherit; font-size: clamp(30px, 4.4vw, 48px); font-weight: 800; }
.sky-banner p { margin: 10px 0 0; font-size: 18px; opacity: .9; max-width: 640px; }

/* ---------- gallery ---------- */
.sky-gallery { columns: 4 240px; column-gap: 14px; }
.sky-gallery-item { display: block; margin-bottom: 14px; break-inside: avoid; border-radius: 4px; overflow: hidden; background: var(--sky-mist); }
.sky-gallery-item img { width: 100%; display: block; transition: opacity .2s; }
.sky-gallery-item:hover img { opacity: .88; }

/* ---------- contact ---------- */
.sky-contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0; border-top: 1px solid var(--sky-line); border-left: 1px solid var(--sky-line); }
.sky-contact-item { padding: 26px 24px; border-right: 1px solid var(--sky-line); border-bottom: 1px solid var(--sky-line); }
.sky-contact-item .fa { font-size: 24px; color: var(--sky-1); width: 44px; height: 44px; line-height: 44px; text-align: center; background: var(--sky-mist); border-radius: 50%; margin-bottom: 12px; }
.sky-contact-item h2 { font-size: 18px; margin-bottom: 4px; }
.sky-contact-item p { margin: 0; font-size: 17px; overflow-wrap: anywhere; }
.sky-map { margin-top: 30px; border: 1px solid var(--sky-line); border-radius: 4px; overflow: hidden; }
.sky-map iframe { display: block; width: 100%; height: 380px; border: 0; }

/* ---------- call to action ---------- */
.sky-cta { background: var(--sky-1); color: var(--sky-1-ink); padding: 44px 0; }
.sky-cta-in { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.sky-cta h2 { color: inherit; font-size: 28px; }
.sky-cta p { margin: 6px 0 0; opacity: .9; }
.sky-cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- footer ---------- */
.sky-footer { background: var(--sky-2); color: var(--sky-2-ink); padding-top: 60px; font-size: 16px; }
.sky-footer a { color: var(--sky-2-ink); opacity: .88; }
.sky-footer a:hover { opacity: 1; color: var(--sky-2-ink); }
.sky-footer-grid { display: grid; grid-template-columns: 1.4fr 1.2fr 1fr 1fr; gap: 36px; padding-bottom: 44px; }
.sky-footer h2 { color: inherit; font-size: 22px; margin-bottom: 10px; }
.sky-footer h3 { color: inherit; font-size: 16px; margin-bottom: 14px; opacity: .75; font-weight: 700; }
.sky-footer p { opacity: .85; margin: 0 0 10px; }
.sky-footer-list, .sky-footer-links { list-style: none; margin: 0; padding: 0; }
.sky-footer-list li { margin-bottom: 12px; }
.sky-footer-list span { display: block; font-size: 14px; opacity: .7; }
.sky-footer-list a { overflow-wrap: anywhere; }
.sky-footer-links li { margin-bottom: 8px; }
.sky-footer-links .fa { width: 18px; }
.sky-footer-bottom { border-top: 1px solid rgba(255,255,255,.15); padding: 18px 0; font-size: 14.5px; }
.sky-footer-bottom .container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; opacity: .85; }
.sky-top { position: fixed; right: 18px; bottom: 90px; width: 44px; height: 44px; border-radius: 50%; background: var(--sky-sun); color: var(--sky-ink) !important; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 16px rgba(0,0,0,.18); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 40; }
.sky-top.is-on { opacity: 1; pointer-events: auto; }

/* ---------- news pop-up ---------- */
.site-popup .modal-content { border-radius: 4px; border: 0; overflow: hidden; }
.site-popup .modal-body { padding: 0; }
.site-popup-img img { width: 100%; max-height: 320px; object-fit: cover; display: block; }
.site-popup-kicker { margin: 18px 22px 4px; color: var(--sky-muted, #59657a); font-weight: 600; font-size: 14.5px; }
.site-popup h3 { margin: 0 22px; font-size: 24px; line-height: 1.2; }
.site-popup h3 a { color: inherit; text-decoration: none; }
.site-popup-foot { display: flex; gap: 8px; padding: 20px 22px 22px; flex-wrap: wrap; }

/* ---------- smaller screens ---------- */
@media (max-width: 991px) {
  .sky-footer-grid { grid-template-columns: 1fr 1fr; }
  .sky-about-grid { grid-template-columns: 1fr; gap: 40px; }
  .sky-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  body.sky { font-size: 16.5px; }
  .sky-section { padding: 52px 0; }
  .sky-brand-name { font-size: 16.5px; max-width: 190px; }
  .sky-mark { width: 40px; height: 40px; flex-basis: 40px; font-size: 15px; }
  .sky-slide { min-height: 480px; }
  .sky-slide .container { padding-bottom: 76px; }
  .sky-caption { padding: 22px 22px 24px; }
  .sky-caption p { font-size: 17px; }
  .sky-slides .owl-nav { display: none; }
  .sky-hero-plain { padding: 64px 0 80px; }
  .sky-highlight-grid, .sky-highlight-grid.sky-n2 { grid-template-columns: 1fr; margin-top: -24px; }
  .sky-highlight { border-left: 0; border-top: 1px solid var(--sky-line); padding: 22px; }
  .sky-highlight:first-child { border-top: 0; }
  .sky-card-grid { grid-template-columns: 1fr; gap: 18px; }
  .sky-footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .sky-banner { padding: 40px 0 36px; }
  .sky-prose { font-size: 17px; }
  .sky-map iframe { height: 300px; }
  .sky-about-img::after { left: -10px; bottom: -10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sky *, .sky *::before, .sky *::after { transition: none !important; animation: none !important; }
}
