/* =====================================================================
   WIND OF CHRIST CHAPEL INTERNATIONAL (TEMA): Additional CSS
   Paste into WordPress > Customize > Additional CSS (or load from the child theme).
   Palette taken from the church logo: royal blue, white and a tint of gold.
   In Elementor, apply these classes via Advanced > CSS Classes on the
   container or widget named in each comment. Tailwind utilities in the
   HTML only describe layout that Elementor handles natively (flex, gap,
   padding, columns), so they do not need to be carried over.
   ===================================================================== */

/* ---------- 1. Design tokens (= Elementor Global Colors) ---------- */
:root {
  --primary: #0F3E91;
  --primary-dark: #0A2766;
  --accent: #D9A21B;
  --accent-dark: #966A05;
  --secondary: #F2C94C;
  --body: #4B5878;
  --tint-sage: #FBF7EA;
  --tint-blue: #EEF3FB;
  --border: #E3E8F2;
  --white: #FFFFFF;
  --shadow-card: 0 10px 30px rgba(15, 62, 145, 0.08);
  --shadow-float: 0 25px 60px rgba(15, 62, 145, 0.18);
  --radius: 4px;
  --font: "Jost", "Futura", "Century Gothic", sans-serif;
  --font-script: "Mrs Saint Delafield", "Allura", cursive;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, p, ul, ol, figure, blockquote { margin: 0; }
ul.ch-list-reset, ol.ch-list-reset { list-style: none; padding: 0; }
p + p { margin-top: 1em; }
button, input, select, textarea { font: inherit; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 { font-family: var(--font); color: var(--primary); font-weight: 500; line-height: 1.2; margin: 0; }
a { color: inherit; text-decoration: none; transition: color .2s var(--ease); }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--secondary); outline-offset: 3px; border-radius: 2px; }
.ch-skip {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--white); color: var(--primary); padding: 10px 16px; border-radius: var(--radius);
}
.ch-skip:focus { left: 16px; }

/* ---------- 3. Typography helpers (Heading / Text Editor widgets) ---------- */
.ch-h1 { font-size: 40px; line-height: 1.1; font-weight: 500; color: var(--white); }
.ch-h2 { font-size: 30px; line-height: 1.2; font-weight: 500; }
.ch-h3 { font-size: 18px; line-height: 1.35; font-weight: 500; }
@media (min-width: 768px) { .ch-h2 { font-size: 34px; } .ch-h3 { font-size: 20px; } }
@media (min-width: 992px) { .ch-h1 { font-size: 64px; } .ch-h2 { font-size: 38px; } }
.ch-page-title { font-size: 36px; line-height: 1.15; font-weight: 500; color: var(--white); }
@media (min-width: 768px) { .ch-page-title { font-size: 48px; } }

/* Eyebrow label above every H2 */
.ch-eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 600; line-height: 1.4;
  text-transform: uppercase; letter-spacing: 2px;
  color: var(--accent-dark); margin-bottom: 12px;
}
.ch-eyebrow--light { color: var(--secondary); }

.ch-meta { font-size: 12px; color: #8A94AB; }
.ch-lead { font-size: 16px; line-height: 1.7; }
.ch-on-dark { color: rgba(255, 255, 255, .8); }
.ch-signature { font-family: var(--font-script); font-size: 56px; line-height: 1; color: var(--primary); }

/* Short sage divider line */
.ch-divider { width: 48px; height: 3px; background: var(--secondary); border-radius: 2px; margin: 14px auto; }

/* ---------- 4. Buttons (Button widget: CSS Class) ---------- */
.ch-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: var(--primary-dark);
  font-family: var(--font); font-size: 14px; font-weight: 500; line-height: 1.2;
  padding: 12px 28px; border-radius: 3px; border: 1px solid var(--accent);
  cursor: pointer; transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.ch-btn:hover { background: #C38F0F; border-color: #C38F0F; color: var(--primary-dark); }
.ch-btn:active { transform: translateY(1px); }
.ch-btn--sage { background: var(--white); border-color: var(--white); color: var(--primary); }
.ch-btn--sage:hover { background: var(--tint-blue); border-color: var(--tint-blue); color: var(--primary-dark); }
.ch-bg-blue .ch-btn--sage, .ch-card .ch-btn--sage, .ch-bg-sage .ch-btn--sage, main > section:not(.ch-overlay):not(.ch-bg-primary):not(.ch-bg-navy) .ch-btn--sage { border-color: var(--primary); }
.ch-btn--outline { background: transparent; color: var(--primary); border-color: var(--border); }
.ch-btn--outline:hover { background: var(--primary); border-color: var(--primary); color: var(--white); }
.ch-btn--upper { text-transform: uppercase; letter-spacing: 1px; font-size: 13px; }
.ch-btn--pill { border-radius: 999px; padding: 7px 16px; font-size: 12px; }
.ch-btn--block { width: 100%; }

/* Text link with arrow ("LISTEN TO THE MESSAGE →") */
.ch-link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  color: var(--primary);
}
.ch-link-arrow:hover { color: var(--accent-dark); }
.ch-link-arrow i { transition: transform .2s var(--ease); }
.ch-link-arrow:hover i { transform: translateX(4px); }
.ch-link { color: var(--accent-dark); font-weight: 500; }
.ch-link:hover { color: var(--primary); }

/* ---------- 5. Cards & images ---------- */
.ch-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-card); }
.ch-card--bordered { border: 1px solid var(--border); }
.ch-card--float { box-shadow: var(--shadow-float); }
.ch-img { border-radius: var(--radius); overflow: hidden; }
.ch-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.ch-img:hover img, .ch-card:hover .ch-img img { transform: scale(1.05); }
.ch-category { font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent-dark); }

/* Icon box (Services grid): outlined square icon */
.ch-iconbox-icon {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--accent); border-radius: 3px; color: var(--primary); font-size: 17px; background: rgba(217, 162, 27, .08);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.ch-iconbox:hover .ch-iconbox-icon { background: var(--accent); color: var(--primary-dark); }

/* ---------- 6. Section backgrounds ---------- */
.ch-bg-tint { background: linear-gradient(180deg, var(--tint-sage) 0%, var(--tint-blue) 100%); }
.ch-bg-sage { background: var(--tint-sage); }
.ch-bg-blue { background: var(--tint-blue); }
.ch-bg-primary { background: var(--primary); color: rgba(255, 255, 255, .8); }
.ch-bg-primary h1, .ch-bg-primary h2, .ch-bg-primary h3 { color: var(--white); }
.ch-bg-split { background: linear-gradient(180deg, var(--white) 50%, var(--tint-blue) 50%); }

/* Photo + blue overlay (Container > Background image + Background Overlay 85%) */
.ch-overlay { position: relative; isolation: isolate; background-size: cover; background-position: center; }
.ch-overlay::before { content: ""; position: absolute; inset: 0; background: var(--primary); opacity: .85; z-index: -1; }
.ch-overlay--soft::before { opacity: .92; }
.ch-overlay--texture::before { opacity: .94; }

/* ---------- 7. Header / navigation ---------- */
.ch-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: transparent; transition: background .3s var(--ease), box-shadow .3s var(--ease), padding .3s var(--ease);
  padding: 22px 0;
}
.ch-header.is-scrolled { background: var(--primary); box-shadow: 0 6px 24px rgba(15, 30, 60, .25); padding: 12px 0; }
.ch-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--white); font-weight: 600; letter-spacing: 2px; font-size: 18px; }
.ch-logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.ch-logo-text strong { font-size: 15px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; }
.ch-logo-text small { font-size: 11px; font-weight: 500; letter-spacing: 1.2px; text-transform: uppercase; color: var(--secondary); margin-top: 3px; }
@media (min-width: 480px) { .ch-logo-text strong { font-size: 17px; } }
.ch-logo-mark {
  flex: none;
  width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--secondary); color: var(--secondary);
  display: inline-flex; align-items: center; justify-content: center; font-size: 14px;
}
.ch-nav > li { position: relative; }
.ch-nav > li > a, .ch-nav > li > button {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 12px;
  font-size: 15px; font-weight: 500; color: var(--white); background: none; border: 0; cursor: pointer; font-family: var(--font);
  position: relative;
}
.ch-nav > li > a::after, .ch-nav > li > button::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px;
  background: var(--secondary); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.ch-nav > li:hover > a::after, .ch-nav > li:hover > button::after,
.ch-nav .is-active::after { transform: scaleX(1); }
.ch-nav .is-active { color: var(--secondary); }
.ch-nav i.fa-chevron-down { font-size: 10px; transition: transform .2s var(--ease); }
.ch-nav > li:hover i.fa-chevron-down, .ch-nav > li.is-open i.fa-chevron-down { transform: rotate(180deg); }

.ch-dropdown {
  position: absolute; top: 100%; left: 0; min-width: 220px; padding: 10px 0; margin: 0; list-style: none;
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-float);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.ch-nav > li:hover > .ch-dropdown, .ch-nav > li:focus-within > .ch-dropdown, .ch-nav > li.is-open > .ch-dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.ch-dropdown a { display: block; padding: 9px 22px; font-size: 14px; color: var(--primary); }
.ch-dropdown a:hover, .ch-dropdown a.is-current { background: rgba(217, 162, 27, .14); color: var(--primary-dark); }

.ch-icon-btn {
  width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  color: var(--white); background: transparent; border: 0; border-radius: 50%; cursor: pointer; font-size: 16px;
}
.ch-icon-btn:hover { color: var(--secondary); }

/* Mobile slide-in menu */
.ch-drawer-backdrop { position: fixed; inset: 0; background: rgba(15, 30, 60, .55); z-index: 60; opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s; }
.ch-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(340px, 86vw); z-index: 70; overflow-y: auto;
  background: var(--primary); color: var(--white); padding: 24px;
  transform: translateX(100%); transition: transform .35s var(--ease);
}
body.menu-open { overflow: hidden; }
body.menu-open .ch-drawer { transform: translateX(0); }
body.menu-open .ch-drawer-backdrop { opacity: 1; visibility: visible; }
.ch-drawer-nav a, .ch-drawer-nav button {
  display: flex; width: 100%; justify-content: space-between; align-items: center;
  padding: 13px 0; font-size: 16px; font-weight: 500; color: var(--white);
  background: none; border: 0; border-bottom: 1px solid rgba(255, 255, 255, .12); cursor: pointer; font-family: var(--font); text-align: left;
}
.ch-drawer-nav a.is-active { color: var(--secondary); }
.ch-drawer-sub { display: none; padding: 4px 0 8px 14px; }
.ch-drawer-sub a { font-size: 15px; color: rgba(255, 255, 255, .75); border-bottom: 0; padding: 9px 0; }
.ch-drawer-group.is-open .ch-drawer-sub { display: block; }
.ch-drawer-group.is-open > button i { transform: rotate(180deg); }

/* Search overlay */
.ch-search { position: fixed; inset: 0; z-index: 80; background: rgba(10, 39, 102, .96); display: flex; align-items: center; justify-content: center; padding: 16px; opacity: 0; visibility: hidden; transition: opacity .25s var(--ease), visibility .25s; }
.ch-search.is-open { opacity: 1; visibility: visible; }
.ch-search input { width: min(640px, 100%); background: transparent; border: 0; border-bottom: 2px solid var(--secondary); color: var(--white); font-size: 28px; font-family: var(--font); padding: 12px 0; }
.ch-search input::placeholder { color: rgba(255, 255, 255, .5); }
.ch-search input:focus { outline: none; }

/* ---------- 8. Hero & page hero ---------- */
.ch-hero { min-height: 620px; }
/* Hero background slideshow (Elementor: Container > Background type "Slideshow", Ken Burns on) */
.ch-hero-slides { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.ch-hero-slides span {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.06); transition: opacity 1.4s var(--ease), transform 7s linear;
}
.ch-hero-slides span.is-active, .ch-hero-slides:not(.is-ready) span:first-child { opacity: 1; transform: scale(1); }
.ch-page-hero { min-height: 320px; }
.ch-breadcrumb { font-size: 14px; color: rgba(255, 255, 255, .75); }
.ch-breadcrumb a:hover { color: var(--secondary); }
.ch-breadcrumb span[aria-current] { color: var(--secondary); }

/* ---------- 9. Event date badge & name tags ---------- */
.ch-date-badge {
  position: absolute; top: 14px; right: 14px; background: var(--primary); color: var(--white);
  text-align: center; padding: 8px 12px; border-radius: 3px; line-height: 1; min-width: 70px;
}
.ch-date-badge strong { display: block; font-size: 26px; font-weight: 500; }
.ch-date-badge span { display: block; font-size: 11px; margin-top: 5px; letter-spacing: .5px; opacity: .9; }
.ch-nametag { position: absolute; left: -12px; bottom: -24px; padding: 16px 22px; border-radius: 3px; min-width: 210px; }
@media (min-width: 768px) { .ch-nametag { left: -24px; } }
.ch-nametag--accent { background: var(--accent); color: var(--primary-dark); }
.ch-nametag--primary { background: var(--primary); color: var(--white); }
.ch-nametag strong { display: block; font-size: 17px; font-weight: 500; }
.ch-nametag--primary strong { color: var(--secondary); }
.ch-nametag span { font-size: 13px; opacity: .9; }
.ch-quote-mark { position: absolute; top: -34px; left: -14px; font-size: 110px; line-height: 1; color: var(--secondary); font-family: Georgia, serif; }

/* ---------- 10. Campaign progress & carousel dots ---------- */
.ch-progress { height: 8px; background: rgba(15, 62, 145, .1); border-radius: 999px; overflow: hidden; }
.ch-progress > span { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 999px; transition: width 1.6s var(--ease); }
.ch-stat strong { display: block; font-size: 18px; font-weight: 600; color: var(--primary); }
.ch-stat span { font-size: 12px; color: #8A94AB; }
.ch-dots { display: flex; gap: 8px; justify-content: center; }
.ch-dots button { width: 8px; height: 8px; border-radius: 50%; border: 0; background: var(--border); cursor: pointer; padding: 0; transition: background .2s, transform .2s; }
.ch-dots button.is-active { background: var(--accent); transform: scale(1.25); }
.ch-slides { position: relative; }
.ch-slides img { position: absolute; inset: 0; opacity: 0; transition: opacity .6s var(--ease), transform .6s var(--ease); }
.ch-slides img.is-active, .ch-slides:not(.is-ready) img:first-child { opacity: 1; }
.ch-secure { background: #F7F8FA; border-top: 1px solid var(--border); font-size: 12px; color: #8A94AB; }

/* ---------- 11. Accordion (Elementor Accordion / Toggle widget) ---------- */
.ch-accordion-item { border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); margin-bottom: 12px; overflow: hidden; }
.ch-accordion-btn {
  display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 22px; background: var(--white); border: 0; cursor: pointer; text-align: left;
  font-family: var(--font); font-size: 17px; font-weight: 500; color: var(--primary); transition: background .2s;
}
.ch-accordion-btn i { color: var(--accent-dark); transition: transform .25s var(--ease); }
.ch-accordion-item.is-open .ch-accordion-btn { background: rgba(217, 162, 27, .14); }
.ch-accordion-item.is-open .ch-accordion-btn i { transform: rotate(45deg); }
.ch-accordion-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s var(--ease); }
.ch-accordion-item.is-open .ch-accordion-panel { grid-template-rows: 1fr; }
.ch-accordion-panel > div { overflow: hidden; visibility: hidden; transition: visibility .3s; }
.ch-accordion-item.is-open .ch-accordion-panel > div { visibility: visible; }
.ch-accordion-panel p { padding: 0 22px 20px; margin: 0; }
.ch-accordion-item.is-open .ch-accordion-panel p { padding-top: 16px; }

/* ---------- 12. Forms ---------- */
.ch-label { display: block; font-size: 13px; font-weight: 500; color: var(--primary); margin-bottom: 6px; }
.ch-input, .ch-select, .ch-textarea {
  width: 100%; font-family: var(--font); font-size: 15px; color: var(--primary);
  background: var(--white); border: 1px solid var(--border); border-radius: 3px; padding: 12px 14px;
  transition: border-color .2s, box-shadow .2s;
}
.ch-input:focus, .ch-select:focus, .ch-textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(217, 162, 27, .22); }
.ch-textarea { min-height: 140px; resize: vertical; }
.ch-chip {
  padding: 11px 0; border: 1px solid var(--border); border-radius: 3px; background: var(--white);
  font-family: var(--font); font-size: 15px; font-weight: 500; color: var(--primary); cursor: pointer; transition: all .2s;
}
.ch-chip:hover { border-color: var(--accent); }
.ch-chip.is-active { background: var(--primary); border-color: var(--primary); color: var(--white); }
.ch-toggle { display: inline-flex; background: var(--tint-blue); border-radius: 999px; padding: 4px; }
.ch-toggle button { border: 0; background: transparent; padding: 8px 20px; border-radius: 999px; font-family: var(--font); font-size: 14px; font-weight: 500; color: var(--body); cursor: pointer; }
.ch-toggle button.is-active { background: var(--primary); color: var(--white); }
.ch-form-note { font-size: 14px; }

/* ---------- 13. Footer ---------- */
.ch-footer { background: var(--primary); color: rgba(255, 255, 255, .7); }
.ch-footer h3 { color: var(--white); font-size: 18px; margin-bottom: 18px; }
.ch-footer a { color: rgba(255, 255, 255, .7); }
.ch-footer a:hover { color: var(--secondary); }
.ch-footer strong { color: var(--white); }
.ch-footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); }
.ch-social a {
  width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255, 255, 255, .25); border-radius: 50%;
}
.ch-social a:hover { background: var(--secondary); border-color: var(--secondary); color: var(--primary); }

/* ---------- 14. Event calendar ---------- */
.ch-cal-head { background: var(--primary); color: var(--white); }
.ch-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.ch-cal-dow { padding: 10px 4px; text-align: center; font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--primary); background: var(--tint-blue); }
.ch-cal-day { min-height: 64px; padding: 6px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); font-size: 13px; color: var(--primary); background: var(--white); }
@media (min-width: 768px) { .ch-cal-day { min-height: 110px; padding: 10px; font-size: 14px; } }
.ch-cal-day.is-muted { color: #B6BDCC; background: #FAFBFC; }
.ch-cal-day.is-today .ch-cal-num { background: var(--secondary); color: var(--primary); }
.ch-cal-num { display: inline-flex; width: 28px; height: 28px; align-items: center; justify-content: center; border-radius: 50%; font-weight: 500; }
.ch-cal-event { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 12px; line-height: 1.3; color: var(--primary); }
.ch-cal-event::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.ch-cal-event:hover { color: var(--accent-dark); }
.ch-cal-event .ch-cal-label { display: none; }
@media (min-width: 768px) { .ch-cal-event .ch-cal-label { display: inline; } }

/* ---------- 15. Media player placeholder ---------- */
.ch-player { position: relative; background: #071A44; border-radius: var(--radius); overflow: hidden; }
.ch-player-btn {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 78px; height: 78px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--accent); color: var(--primary-dark); font-size: 24px; box-shadow: 0 0 0 12px rgba(242, 201, 76, .3);
  transition: transform .2s var(--ease), background .2s;
}
.ch-player-btn:hover { transform: translate(-50%, -50%) scale(1.06); background: #C38F0F; }

/* ---------- 16. Pagination & filters ---------- */
.ch-pagination a, .ch-pagination span {
  width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: 3px; color: var(--primary); font-weight: 500;
}
.ch-pagination a:hover { border-color: var(--accent); color: var(--accent-dark); }
.ch-pagination .is-current { background: var(--primary); border-color: var(--primary); color: var(--white); }
.ch-filter-bar { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-card); }
[data-filter-item].is-hidden { display: none; }

/* ---------- 17. Map placeholder ---------- */
.ch-map { position: relative; background: #E9EDF3 center / cover no-repeat; border-radius: var(--radius); overflow: hidden; min-height: 300px; }
.ch-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- 18. Scroll reveal (Elementor: Motion Effects > Entrance Animation "Fade In Up") ---------- */
.js .ch-reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .ch-reveal.is-visible { opacity: 1; transform: none; }
.ch-delay-1 { transition-delay: .1s !important; }
.ch-delay-2 { transition-delay: .2s !important; }
.ch-delay-3 { transition-delay: .3s !important; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .ch-reveal { opacity: 1; transform: none; transition: none; }
  .ch-img img, .ch-progress > span { transition: none; }
}

/* ---------- 19. Wind of Christ additions ---------- */
/* Header logo (Theme Builder: Site Logo widget, CSS class ch-logo-img) */
.ch-logo-img { width: 50px; height: 50px; flex: none; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .25)); transition: width .3s var(--ease), height .3s var(--ease); }
.ch-header.is-scrolled .ch-logo-img { width: 42px; height: 42px; }
@media (min-width: 768px) { .ch-logo-img { width: 60px; height: 60px; } }
.ch-logo-text strong { letter-spacing: 1px; }
.ch-logo-text small { color: var(--secondary); }

/* Gold rule under the white header when scrolled */
.ch-header.is-scrolled { border-bottom: 2px solid var(--accent); }

/* Home hero: deep blue on the text side, photos clear on the right */
.ch-hero::before { background: linear-gradient(90deg, rgba(10, 39, 102, .92) 0%, rgba(15, 62, 145, .72) 45%, rgba(15, 62, 145, .18) 100%); opacity: 1; }
@media (max-width: 767px) { .ch-hero::before { background: linear-gradient(180deg, rgba(10, 39, 102, .8), rgba(10, 39, 102, .9)); } }
.ch-hero h1 .ch-gold { color: var(--secondary); }
.ch-hero-dots { display: flex; gap: 10px; margin-top: 36px; }
.ch-hero-dots button { width: 10px; height: 10px; padding: 0; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .45); cursor: pointer; transition: width .3s var(--ease), background .3s; }
.ch-hero-dots button.is-active { width: 30px; background: var(--accent); }

/* Page heroes: same deep blue, slightly lighter on the right */
.ch-page-hero::before { background: linear-gradient(90deg, rgba(10, 39, 102, .92), rgba(15, 62, 145, .7)); opacity: 1; }

/* Gold top border on the footer */
.ch-footer { border-top: 4px solid var(--accent); }
.ch-footer-logo { width: 120px; height: auto; }

/* Youth collage: second photo overlaps the first */
.ch-collage-inset { position: absolute; left: 0; bottom: 0; border: 6px solid var(--white); box-shadow: var(--shadow-float); }
.ch-bg-sage .ch-collage-inset { border-color: var(--tint-sage); }

/* Count-up numbers sit on primary */
.ch-bg-primary .ch-eyebrow--light { color: var(--secondary); }

/* Deep navy band (Message of the Month) */
.ch-bg-navy { background: var(--primary-dark) radial-gradient(ellipse at 85% 20%, rgba(15, 62, 145, .9), transparent 60%); color: rgba(255, 255, 255, .8); border-top: 3px solid var(--accent); border-bottom: 3px solid var(--accent); }
.ch-bg-navy h2, .ch-bg-navy h3 { color: var(--white); }
.ch-player-tag { position: absolute; top: 16px; left: 16px; z-index: 1; display: inline-flex; align-items: center; gap: 6px; background: var(--accent); color: var(--primary-dark); font-size: 11px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; padding: 6px 12px; border-radius: 3px; }

/* History timeline (Container ch-timeline > Containers ch-timeline-item) */
ol.ch-timeline, ul.ch-timeline, .ch-timeline { position: relative; padding-left: 34px; }
.ch-timeline::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--accent), var(--primary)); }
.ch-timeline-item { position: relative; padding-bottom: 44px; }
.ch-timeline-item:last-child { padding-bottom: 0; }
.ch-timeline-item::before { content: ""; position: absolute; left: -34px; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--white); border: 4px solid var(--accent); box-shadow: 0 0 0 4px rgba(217, 162, 27, .18); }
.ch-timeline-badge { display: inline-block; background: var(--primary); color: var(--white); font-size: 12px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; padding: 5px 12px; border-radius: 3px; }

/* ---------- 20. Upcoming programmes (flyer-style cards) ---------- */
.ch-programme {
  position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end;
  min-height: 460px; border-radius: var(--radius); background-size: cover; background-position: center;
  box-shadow: var(--shadow-float); color: rgba(255, 255, 255, .85); border-bottom: 4px solid var(--accent);
  transition: transform .4s var(--ease);
}
.ch-programme::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 39, 102, .05) 0%, rgba(10, 39, 102, .55) 40%, rgba(10, 39, 102, .97) 78%); }
.ch-programme:hover { transform: translateY(-6px); }
.ch-programme-body { padding: 28px; width: 100%; }
.ch-programme-title { font-size: 26px; line-height: 1.15; font-weight: 600; color: var(--white); text-transform: uppercase; letter-spacing: .5px; }
.ch-programme-title::after { content: ""; display: block; width: 48px; height: 3px; background: var(--accent); margin-top: 12px; border-radius: 2px; }
.ch-programme-date { position: absolute; top: 18px; left: 18px; background: var(--accent); color: var(--primary-dark); text-align: center; padding: 10px 14px; border-radius: 3px; line-height: 1; min-width: 74px; box-shadow: 0 8px 20px rgba(0, 0, 0, .25); }
.ch-programme-date strong { display: block; font-size: 30px; font-weight: 600; }
.ch-programme-date span { display: block; font-size: 11px; font-weight: 600; letter-spacing: .6px; margin-top: 6px; text-transform: uppercase; }

/* ---------- 21. Books / library (designed covers; swap for real cover photos) ---------- */
.ch-book {
  position: relative; aspect-ratio: 2 / 3; border-radius: 3px 8px 8px 3px; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px;
  padding: 20px 16px; box-shadow: 0 18px 34px rgba(10, 39, 102, .28), inset 6px 0 0 rgba(0, 0, 0, .18);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.ch-book::before { content: ""; position: absolute; inset: 10px 10px 10px 16px; border: 1px solid currentColor; opacity: .35; border-radius: 2px; pointer-events: none; }
article:hover > .ch-book { transform: translateY(-6px) rotate(-1deg); box-shadow: 0 26px 44px rgba(10, 39, 102, .32), inset 6px 0 0 rgba(0, 0, 0, .18); }
.ch-book-logo { width: 54px; height: 54px; }
.ch-book-kicker { font-size: 10px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; opacity: .85; }
.ch-book-title { font-size: 19px; line-height: 1.15; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.ch-book-author { font-size: 10px; letter-spacing: .5px; opacity: .8; margin-top: 4px; }
.ch-book--navy { background: linear-gradient(160deg, #123E8F, var(--primary-dark)); color: var(--white); }
.ch-book--navy .ch-book-kicker, .ch-book--royal .ch-book-kicker { color: var(--secondary); }
.ch-book--royal { background: linear-gradient(160deg, #1D5BC4, var(--primary)); color: var(--white); }
.ch-book--gold { background: linear-gradient(160deg, #F2C94C, var(--accent)); color: var(--primary-dark); }
.ch-book--white { background: linear-gradient(160deg, #FFFFFF, #EEF3FB); color: var(--primary); border: 1px solid var(--border); }
.ch-book--white .ch-book-kicker { color: var(--accent-dark); }
.ch-book-img { aspect-ratio: 2 / 3; object-fit: cover; border-radius: 3px 8px 8px 3px; box-shadow: 0 18px 34px rgba(10, 39, 102, .28); }

/* ---------- 22. Programme banner + "also coming up" list ---------- */
.ch-flyer { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-float); border: 4px solid var(--white); }
.ch-flyer img { width: 100%; height: auto; transition: transform .6s var(--ease); }
.ch-flyer:hover img { transform: scale(1.03); }
.ch-flyer-zoom { position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 6px; background: rgba(10, 39, 102, .88); color: var(--white); font-size: 12px; font-weight: 500; padding: 7px 12px; border-radius: 999px; }
.ch-programme-row { display: flex; align-items: center; gap: 16px; padding: 14px 18px; }
.ch-programme-row-date { flex: none; width: 54px; text-align: center; background: var(--primary); color: var(--white); border-radius: 3px; padding: 7px 0; line-height: 1; }
.ch-programme-row-date strong { display: block; font-size: 20px; font-weight: 600; }
.ch-programme-row-date span { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; color: var(--secondary); }

/* ---------- 23. Gallery (Gallery widget, grid) ---------- */
.ch-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ch-gallery > a { display: block; aspect-ratio: 1 / 1; position: relative; }
.ch-gallery > a::after { content: "\f00e"; font-family: "Font Awesome 5 Free"; font-weight: 900; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 22px; background: rgba(10, 39, 102, .45); opacity: 0; transition: opacity .3s var(--ease); }
.ch-gallery > a:hover::after, .ch-gallery > a:focus-visible::after { opacity: 1; }
.ch-gallery-feature { grid-column: span 2; grid-row: span 2; }
@media (min-width: 768px) { .ch-gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }

/* Lightbox */
.ch-lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(6, 20, 54, .94); display: flex; align-items: center; justify-content: center; padding: 56px 16px 24px; opacity: 0; visibility: hidden; transition: opacity .25s var(--ease), visibility .25s; }
.ch-lightbox.is-open { opacity: 1; visibility: visible; }
.ch-lightbox img { max-width: min(1100px, 100%); max-height: 100%; width: auto; height: auto; border-radius: var(--radius); box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.ch-lightbox button { position: absolute; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: var(--white); font-size: 18px; cursor: pointer; }
.ch-lightbox button:hover { background: var(--accent); color: var(--primary-dark); }
.ch-lightbox [data-lb-close] { top: 14px; right: 14px; }
.ch-lightbox [data-lb-prev] { left: 14px; top: 50%; transform: translateY(-50%); }
.ch-lightbox [data-lb-next] { right: 14px; top: 50%; transform: translateY(-50%); }
.ch-book-img { width: 100%; height: auto; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.ch-book-link:hover .ch-book-img, .ch-book-link:focus-visible .ch-book-img { transform: translateY(-6px) rotate(-1deg); box-shadow: 0 26px 44px rgba(10, 39, 102, .32); }

/* Let grid columns shrink on small phones instead of overflowing */
.grid > * { min-width: 0; }
.ch-input, .ch-select, .ch-textarea { max-width: 100%; }
.ch-map { width: 100%; }
