/* JCC Brooklyn — custom additions on top of the legacy theme styles.
   Loaded last from inc/enqueue.php so we can override anything from
   site.css / theme-default.css / responsive.css. */

/* ────────────────────────────────────────────────────────────────
   Main desktop nav layout fix.

   The legacy site.css has rules under `.styl-one nav.hikey_menu` (with
   a typo — missing "e") that should have flexed the nav with logo on
   the left and menu spread to the right. Our markup uses the corrected
   class `.style-one`, so those rules never matched and the nav
   collapsed into a right-aligned text block. We re-implement only that
   layout here — no extra borders / backgrounds / pills.

   Also drop the 10px top margin that the legacy CSS put on
   `.hikey_nav_manu`, which left a thin strip of white body color
   above the header.
   ──────────────────────────────────────────────────────────────── */

#sticky-header.hikey_nav_manu {
  margin: 0;
}

@media (min-width: 992px) {

  /* Match legacy hikey layout: logo + menu grouped and centered (see static HTML). */
  .style-one nav.hikey_menu {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0 6px;
    padding-right: 0;
    text-align: center;
  }

  .style-one nav.hikey_menu .nav_scroll {
    margin: 0;
    padding: 0;
    flex: 0 0 auto;
    text-align: center;
    display: inline-block;
  }

  .style-one nav.hikey_menu>.logo_img,
  .style-one nav.hikey_menu>.main_sticky {
    flex: 0 0 auto;
  }
}

/* Make sure sub-menu pops above the (sometimes overlapping) hero
   below. The legacy CSS already has the show/hide rules; we just
   force a generous z-index and a non-clipped overflow on parents. */
#sticky-header,
#sticky-header .container,
#sticky-header .menu-bg,
#sticky-header nav.hikey_menu,
#sticky-header nav.hikey_menu>ul,
#sticky-header nav.hikey_menu>ul>li {
  overflow: visible;
}

.hikey_menu ul li:hover>.sub-menu {
  visibility: visible !important;
  opacity: 1 !important;
  top: 100% !important;
  z-index: 9999 !important;
}

/* ────────────────────────────────────────────────────────────────
   Sticky header fixes.
   When `#sticky-header.sticky` flips to position:fixed (legacy-theme.js
   toggles the class on scroll > 100), three things were broken:

   1.  The page below jumped up by the full header height because the
       header was removed from the document flow with no compensation.
       We mitigate that by reserving a stable height on body via
       `padding-top` set to the JS-measured header height (CSS variable),
       falling back to a sensible default until the JS runs.

   2.  WordPress admin bar has its own 32px top margin. The legacy CSS
       used `top: 0` blindly, which made our sticky bar overlap the
       admin bar for logged-in users.

   3.  In the original "hikey" theme the top utility bar (Donate /
       Kings Bay Y / Contact Us) was meant to scroll away when the header
       went sticky, leaving only the slim nav. We replicate that.
   ──────────────────────────────────────────────────────────────── */

/* Don't reserve the body offset — header is statically positioned by
   default, so we only intervene once .sticky is applied.  Note we use
   `!important` sparingly because legacy site.css already does. */

#sticky-header.sticky {
  background: #050a1e;
  margin: 0 !important;
  padding: 0 !important;
}

/* Keep the top utility bar visible in the sticky state — the user
   wants Donate / Kings Bay Y / Contact Us to stay reachable while
   scrolling, like the original site did. */

/* Honor the WP admin bar offset when it's present (logged-in front-end). */
.admin-bar #sticky-header.sticky {
  top: 32px;
}

@media screen and (max-width: 782px) {
  .admin-bar #sticky-header.sticky {
    top: 46px;
  }
}

/* Reserve space below the static header so the page doesn't jump when
   the sticky flag toggles. The exact value depends on viewport — pick
   the same tall placeholder our header occupies. */
@media (min-width: 992px) {
  body {
    scroll-padding-top: 110px;
  }
}

/* ────────────────────────────────────────────────────────────────
   Mobile menu (replacement for the dropped meanmenu plugin).
   Markup is built by legacy-theme.js: a hamburger button is prepended
   inside .mobile-menu, and `.jcc-mobile-nav-collapsed` is toggled on
   the nav element to show/hide it.
   ──────────────────────────────────────────────────────────────── */
.mobile-menu-area {
  background: #fff;
  border-bottom: 1px solid #eee;
}

.mobile-menu {
  position: relative;
  padding: 10px 15px;
}

.jcc-mobile-toggle {
  background: transparent;
  border: 0;
  padding: 8px 6px;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
}

.jcc-mobile-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background: #f5841f;
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}

.jcc-mobile-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.jcc-mobile-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.jcc-mobile-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu nav.jcc-mobile-nav-collapsed {
  display: none;
}

.mobile-menu nav .nav_scroll,
.mobile-menu nav .menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-menu nav li {
  border-top: 1px solid #f0f0f0;
}

.mobile-menu nav li a {
  display: block;
  padding: 12px 8px;
  color: #222;
  text-decoration: none;
  font-weight: 500;
}

.mobile-menu nav li a:hover {
  background: #fafafa;
  color: #ea0b8c;
}

.mobile-menu nav .sub-menu {
  display: none;
  padding-left: 16px;
  background: #fafafa;
}

.mobile-menu nav li.is-open>.sub-menu {
  display: block;
}

/* ────────────────────────────────────────────────────────────────
   Brand color utility classes — replace the legacy `<font color>`
   attribute. The import script already rewrites known palette colors
   to these classes via JCC_Content_Cleaner.
   ──────────────────────────────────────────────────────────────── */
.text-pink {
  color: #ea0b8c;
}

.text-orange {
  color: #f5841f;
}

.text-green {
  color: #9aca3f;
}

.text-white {
  color: #ffffff;
}

.text-black {
  color: #000000;
}

/* ────────────────────────────────────────────────────────────────
   Top-bar links (above the main menu).
   ──────────────────────────────────────────────────────────────── */
.top-bar-link {
  color: #fff;
  text-decoration: none;
  margin: 0 4px;
}

.top-bar-link:hover {
  color: #f5841f;
}

.top-bar-sep {
  color: #fff;
  opacity: .6;
  margin: 0 4px;
}

.top-bar-link--modal {
  display: inline;
  background: transparent;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
  vertical-align: baseline;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
}

.top-bar-link--modal:hover,
.top-bar-link--modal:focus,
.top-bar-link--modal:active {
  color: #f5841f;
  background: transparent;
  border: 0;
  box-shadow: none;
  text-decoration: none;
}

.top-bar-link--modal:focus-visible {
  outline: 2px solid #f5841f;
  outline-offset: 2px;
}

/* Preheader Contact Us modal (rendered outside #sticky-header) */
.jcc-top-bar-contact-modal {
  z-index: 10050;
}

.jcc-top-bar-contact-modal .modal-dialog {
  max-width: 520px;
}

.jcc-top-bar-contact-modal .jcc-contact-modal-dialog--wide {
  max-width: min(960px, calc(100vw - 2rem));
}

.jcc-top-bar-contact-modal .modal-content {
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(5, 10, 30, 0.35);
}

.jcc-top-bar-contact-modal .modal-header {
  background-color: #050a1e;
  color: #fff;
  border-bottom: 0;
  padding: 1rem 1.25rem;
}

.jcc-top-bar-contact-modal .modal-title {
  color: #fff;
  font-weight: 600;
  font-size: 1.25rem;
}

.jcc-top-bar-contact-modal .btn-close {
  filter: invert(1);
  opacity: 0.85;
}

.jcc-top-bar-contact-modal .modal-body {
  background: #ffffff;
  padding: 1.5rem 1.5rem 1.75rem;
}

.jcc-top-bar-contact-modal .jcc-contact-modal__block {
  height: 100%;
}

.jcc-top-bar-contact-modal .jcc-contact-modal__name {
  color: #9aca3f;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.85rem;
}

.jcc-top-bar-contact-modal .jcc-contact-modal__row {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin-bottom: 0.65rem;
  color: #333;
  font-size: 0.95rem;
  line-height: 1.45;
}

.jcc-top-bar-contact-modal .jcc-contact-modal__row:last-child {
  margin-bottom: 0;
}

.jcc-top-bar-contact-modal .jcc-contact-modal__row img {
  flex-shrink: 0;
  width: 20px;
  height: auto;
  margin-top: 0.1rem;
}

.jcc-top-bar-contact-modal .jcc-contact-modal__row a {
  color: #050a1e;
  text-decoration: none;
  word-break: break-word;
}

.jcc-top-bar-contact-modal .jcc-contact-modal__row a:hover {
  color: #f5841f;
  text-decoration: underline;
}

@media (min-width: 768px) {
  .jcc-top-bar-contact-modal .jcc-contact-modal__grid>.col-md-4:not(:last-child) .jcc-contact-modal__block,
  .jcc-top-bar-contact-modal .jcc-contact-modal__grid>.col-md-6:first-child .jcc-contact-modal__block {
    border-right: 1px solid #e9ecef;
    padding-right: 1rem;
  }
}

@media (max-width: 767.98px) {
  .jcc-top-bar-contact-modal .jcc-contact-modal__grid>.col-12:not(:last-child) .jcc-contact-modal__block {
    margin-bottom: 0.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #e9ecef;
  }
}

.jcc-top-bar-contact-modal .modal-footer {
  justify-content: center;
  background: #f8f4ef;
  border-top: 1px solid #e9ecef;
  padding: 1rem 1.25rem 1.25rem;
}

.jcc-top-bar-contact-modal .modal-footer .destination-button a,
.jcc-top-bar-contact-modal .modal-footer .destination-button span {
  display: inline-block;
  font-size: 18px;
  color: #ffffff;
  font-weight: 500;
  border-radius: 5px;
  background-color: #f5841f;
  padding: 9px 22px;
  text-decoration: none;
}

/* ────────────────────────────────────────────────────────────────
   Newsletter fallback form (used when CF7 is not configured).

   The legacy site.css already styles `.style-one .footer-newslatter-box`
   (input full-width, button below with margin-top:21px). We don't override
   anything here — just ensure the fallback markup keeps the input on its
   own row regardless of any browser default form layout.
   ──────────────────────────────────────────────────────────────── */
.footer-newslatter-fallback .footer-newslatter-box {
  display: block;
}

.footer-newslatter-fallback .footer-newslatter-box input,
.footer-newslatter-fallback .footer-newslatter-box button {
  display: block;
}

/* ────────────────────────────────────────────────────────────────
   Card thumbnails — normalise aspect ratio.

   Legacy theme uses natural-size images (e.g. class-01.png 520×365,
   jan26.png 330×219 — all landscape ~1.4:1). WordPress now serves the
   posts’ featured images at whatever ratio the editor uploaded
   (often portrait 580×660), and `<img>` ships with explicit
   width/height attributes that browsers respect.

   Force a uniform landscape crop so cards stay visually consistent
   regardless of the source image, both for `.blog-thumb` (popular
   programs / programs CPT cards) and `.destination-thumb` (latest
   posts / events / Anna's Corner cards). The legacy `width: 100%;`
   rule from site.css remains; we just add height + object-fit.
   ──────────────────────────────────────────────────────────────── */
.blog-thumb,
.destination-thumb {
  aspect-ratio: 16 / 11;
  width: 100%;
  overflow: hidden;
}

.blog-thumb img,
.destination-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

@supports not (aspect-ratio: 1) {

  .blog-thumb,
  .destination-thumb {
    height: 0;
    padding-bottom: 68.75%;
    position: relative;
  }

  .blog-thumb img,
  .destination-thumb img {
    position: absolute;
    inset: 0;
  }
}

/* Counter stripe — label uses .counter-desc p in legacy HTML; theme used .counter-box-desc. */
.coutner-area .counter-box-desc,
.coutner-area2 .counter-box-desc {
  font-size: 16px;
  line-height: 28px;
  color: #f1f1f1;
  font-weight: 400;
  margin: 0;
}

/* “Popular Programs” / blog band titles: keep legacy .section-main-title h1 from site.css (#0b0b0a), not a theme tint. */

/* Programs grid — section heading above cards */
.blog-area.style-two .section-title.text-center {
  margin-bottom: 2.5rem;
}

/* Program grid row — even gutters between cards */
.blog-area.style-two .jcc-programs-grid>.row {
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 1.5rem;
  align-items: stretch;
}

/* Popular Programs: natural card height (legacy — no equal-height stretch) */
.blog-area.style-two .row.jcc-popular-programs-grid {
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 1.5rem;
  align-items: flex-start;
}

/* Dotted rule between description and meta (legacy assets/images/line.png) */
.blog-area.style-two .jcc-program-dotted-line {
  display: inline-block;
  max-width: 100%;
  height: auto;
  margin: 6px 0 4px;
  vertical-align: middle;
}

/* Popular Programs — legacy .single-blog-box structure (index.html) */
.blog-area.style-two .row.jcc-popular-programs-grid .single-blog-box:not(.jcc-single-program-compact)>div>h4.text-center {
  margin: 0;
  font-size: 22px;
  line-height: 28px;
  font-weight: 700;
  color: #0b0b0a;
}

.blog-area.style-two .row.jcc-popular-programs-grid .single-blog-box:not(.jcc-single-program-compact)>div>h4 a {
  color: inherit;
  text-decoration: none;
}

.blog-area.style-two .row.jcc-popular-programs-grid .single-blog-box:not(.jcc-single-program-compact)>div>h4 a:hover {
  color: #f5841f;
}

.blog-area.style-two .row.jcc-popular-programs-grid .single-blog-box:not(.jcc-single-program-compact)>div>p {
  text-align: left;
  font-size: 16px;
  line-height: 28px;
  color: #3e3e3e;
  margin: 0;
}

.blog-area.style-two .row.jcc-popular-programs-grid .single-blog-box:not(.jcc-single-program-compact) .destination-button {
  margin-top: 1.75rem;
}

/* Program page: map / form iframe in sidebar (after thumbs) or under body on article pages */
.why-choose-area .jcc-program-embed iframe {
  display: block;
  width: 100%;
  max-width: 100%;
}

.why-choose-area .col-lg-7 .jcc-program-embed,
.why-choose-area .col-12.col-lg-7 .jcc-program-embed {
  margin-top: 1.5rem;
}

/* Program / article sidebar: stacked thumbs + iframes + CTA buttons */
.why-choose-area .jcc-why-choose-sidebar {
  padding-top: 0.25rem;
}

@media (min-width: 992px) {
  .why-choose-area .jcc-why-choose-sidebar {
    padding-left: 1.5rem;
  }
}

.why-choose-area .jcc-why-choose-sidebar .widget-sidber {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 0;
}

.why-choose-area .jcc-why-choose-sidebar .widget-sidber>p {
  margin: 0;
}

.why-choose-area .jcc-why-choose-sidebar .why-choose-thumb {
  display: block;
}

.why-choose-area .jcc-why-choose-sidebar .why-choose-thumb img {
  max-width: 520px;
}

.why-choose-area .jcc-why-choose-sidebar .widget-sidber .choose-btn {
  display: block;
  margin: 0;
}

.why-choose-area .jcc-why-choose-sidebar .widget-sidber .choose-btn a {
  margin-bottom: 0.75rem;
}

.why-choose-area .jcc-why-choose-sidebar .widget-sidber .choose-btn a:last-child {
  margin-bottom: 0;
}

.why-choose-area .jcc-why-choose-sidebar .jcc-program-embed {
  margin: 0;
}

.why-choose-area .jcc-why-choose-sidebar .jcc-program-embed iframe {
  max-height: 280px;
}

/* Main column: space between stacked iframes under body */
.why-choose-area .col-lg-7 .jcc-program-embed+.jcc-program-embed,
.why-choose-area .col-12.col-lg-7 .jcc-program-embed+.jcc-program-embed {
  margin-top: 1.25rem;
}

/* WYSIWYG embeds (YouTube, etc.) in program body */
.why-choose-area .jcc-program-body .wp-block-embed,
.why-choose-area .jcc-program-body iframe {
  max-width: 100%;
}

.why-choose-area .jcc-program-body .wp-block-embed__wrapper {
  position: relative;
}

.why-choose-area .jcc-program-body .wp-block-embed iframe {
  width: 100%;
}

/* Staff page: centered section h1; consecutive grids = one continuous band */
.team-area.jcc-staff-grid-band .jcc-staff-portrait--placeholder {
  background: #f0ebe3;
  object-fit: contain;
}

.team-area.jcc-staff-grid-band .jcc-staff-grid-heading {
  margin-bottom: 32px;
}

.team-area.jcc-staff-grid-band:has(+ .team-area.jcc-staff-grid-band) {
  padding-bottom: 2.5rem;
}

.team-area.jcc-staff-grid-band+.team-area.jcc-staff-grid-band {
  padding-top: 0;
  margin-top: 0;
  border-top: 1px solid #f8f4ef;
}

/* Program cards: breathing room between title (or meta) and CTA pill(s) */
.blog-area.style-two .single-blog-box>div>h4.text-center {
  margin-bottom: 0;
}

.blog-area.style-two .single-blog-box:not(.jcc-press-release-card) .destination-button {
  margin-top: 1.75rem;
}

/* Image + single CTA → centered; description and/or multiple pills → left */
.blog-area.style-two .destination-button.jcc-card-cta--center {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem 0.75rem;
  text-align: center;
}

.blog-area.style-two .destination-button.jcc-card-cta--center a {
  display: inline-block;
  margin: 0;
}

.blog-area.style-two .destination-button.jcc-card-cta--start {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 0.5rem 0.75rem;
  text-align: left;
}

.blog-area.style-two .destination-button.jcc-card-cta--start a {
  display: inline-block;
  margin: 0 0.5rem 0.5rem 0;
}

/* Browse Our Programs — custom_programs + programs_grid (legacy programs.html) */
.blog-area.style-two .row.jcc-browse-programs-grid,
.blog-area.style-two .row.jcc-custom-programs-grid {
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 1.5rem;
  align-items: flex-start;
}

.blog-area.style-two .single-blog-box.jcc-browse-program-card {
  margin-bottom: 0;
}

.blog-area.style-two .jcc-browse-program-card>div:not(.blog-thumb) {
  padding-top: 25px;
}

.blog-area.style-two .jcc-browse-program-card>div>h4.text-center {
  margin: 0;
  font-size: 22px;
  line-height: 28px;
  font-weight: 700;
  color: #0b0b0a;
}

.blog-area.style-two .jcc-browse-program-card>div>h4 a {
  color: inherit;
  text-decoration: none;
}

.blog-area.style-two .jcc-browse-program-card>div>h4 a:hover {
  color: #f5841f;
}

.blog-area.style-two .jcc-browse-program-card .blog-thumb {
  border-radius: 20px 20px 0 0;
}

/* Windsor / Clinton: keep preschool registration headline on one line at desktop */
@media (min-width: 992px) {

  body.section-windsor-terrace .section-main-title h2,
  body.section-clinton-hill .section-main-title h2 {
    white-space: nowrap;
  }
}

body.section-windsor-terrace .popular-programs-bottom-banner img,
body.section-north-williamsburg .popular-programs-bottom-banner img,
.jcc-banner-img-band .jcc-banner-img__image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

/* Banner image — contained width + vertical rhythm (north-williamsburg.html) */
.jcc-banner-img-band {
  padding: 0rem 0 3rem;
  background-color: #f9f7f3;
}

.jcc-banner-img-band .jcc-banner-img__link {
  display: block;
  line-height: 0;
}

.jcc-banner-img-band .jcc-banner-img__link:focus-visible {
  outline: 2px solid #f5841f;
  outline-offset: 4px;
  border-radius: 12px;
}

/* Location pill styled like legacy (white text) */
.blog-area.style-two .destination-button a.jcc-location-pill-inert {
  color: #ffffff;
  pointer-events: none;
  cursor: default;
  text-decoration: none;
}

/* One-card Job Openings strip (2s-head-teacher.html): row is default start-aligned; logo-sized art, not full-bleed .blog-thumb */
.blog-area.style-two .single-blog-box.jcc-single-program-compact>div+div {
  text-align: center;
}

.blog-area.style-two .single-blog-box.jcc-single-program-compact .blog-thumb {
  /* Undo global card thumb rule (16:11 + width 100% would leave a tall empty box around a small logo). */
  aspect-ratio: auto;
  width: auto;
  max-width: 100%;
  margin-inline: auto;
  overflow: visible;
  background: transparent;
  margin-bottom: 0.75rem;
  position: relative;
  min-height: 0;
  padding-bottom: 0 !important;
  height: auto;
  text-align: center;
}

.blog-area.style-two .single-blog-box.jcc-single-program-compact .blog-thumb img {
  width: auto !important;
  max-width: 120px;
  max-height: 52px;
  height: auto;
  object-fit: contain;
  object-position: center;
  margin-inline: auto;
  display: block;
  position: relative;
  inset: auto;
}

.blog-area.style-two .single-blog-box.jcc-single-program-compact .blog-thumb .color-overlay {
  display: none !important;
  opacity: 0;
}

/* `.why-choose-thumb img` in site.css is only `width: 100%`. WP adds explicit
   width/height attributes — without `height: auto` the image can look vertically
   stretched inside the flex column. */
.about-area.inner .why-choose-thumb img,
.why-choose-area .why-choose-thumb img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}

/* Press releases / media — logo + excerpt + Read More (4-up on desktop) */
.blog-area.style-two.jcc-press-releases {
  padding-top: 82px;
  padding-bottom: 80px;
}

.blog-area.style-two.jcc-press-releases .section-title.text-center {
  margin-bottom: 2.5rem;
}

.blog-area.style-two.jcc-press-releases .section-main-title h1 {
  margin: 0;
}

.blog-area.style-two.jcc-press-releases .jcc-press-releases__grid {
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 1.5rem;
  align-items: stretch;
}

.blog-area.style-two.jcc-press-releases .jcc-press-releases__grid>[class*="col-"] {
  display: flex;
  align-items: stretch;
  margin-bottom: 0;
}

.blog-area.style-two.jcc-press-releases .single-blog-box.jcc-press-release-card {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  width: 100%;
  min-height: 100%;
  height: 100%;
  margin-bottom: 0;
  text-align: center;
  padding: 40px 36px 32px;
  box-sizing: border-box;
}

.blog-area.style-two.jcc-press-releases .jcc-press-release-card__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  flex: 1 1 auto;
  width: 100%;
  min-height: 100%;
}

.blog-area.style-two.jcc-press-releases .jcc-press-release-card__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 80px;
  width: 100%;
  min-height: 80px;
  max-height: 80px;
  margin: 0;
  padding: 0 8px;
  box-sizing: border-box;
}

.blog-area.style-two.jcc-press-releases .jcc-press-release-card__logo img,
.blog-area.style-two.jcc-press-releases .jcc-press-release-card__logo-img {
  width: auto !important;
  height: auto !important;
  max-width: 100%;
  max-height: 72px;
  object-fit: contain;
  object-position: center;
  display: block;
  margin: 0 auto;
}

.blog-area.style-two.jcc-press-releases .jcc-press-release-card__excerpt {
  flex: 1 1 auto;
  width: 100%;
  margin: 1rem 0 0;
  padding: 0;
  font-size: 16px;
  line-height: 26px;
  color: #0b0b0a;
  text-align: center;
}

.blog-area.style-two.jcc-press-releases .jcc-press-release-card .destination-button {
  flex: 0 0 auto;
  margin-top: auto !important;
  padding-top: 1.5rem;
  width: 100%;
  text-align: center;
}

.blog-area.style-two.jcc-press-releases .jcc-press-release-card .destination-button a {
  display: inline-block;
  min-width: 10rem;
  border-radius: 0;
  text-align: center;
}

/* Neutralise legacy job-card img cap when markup has no .blog-thumb */
.blog-area.style-two.jcc-press-releases .single-blog-box.jcc-press-release-card>div>div[align="center"] img {
  max-width: 100%;
  max-height: 72px;
}

/* Job openings — small logo, title in <p>, More Details button */
.blog-area.style-two.jcc-job-openings .section-title.text-center {
  margin-bottom: 2.5rem;
}

/* Job card: no .blog-thumb — centered logo + title + CTA (2s-head-teacher.html) */
.blog-area.style-two .single-blog-box:not(:has(.blog-thumb))>div>div[align="center"] {
  margin-bottom: 0.75rem;
}

.blog-area.style-two .single-blog-box:not(:has(.blog-thumb))>div>div[align="center"] img {
  width: auto;
  max-width: 80px;
  height: auto;
  display: inline-block;
}

.blog-area.style-two .single-blog-box:not(:has(.blog-thumb))>div>p[align="center"] {
  margin: 0;
}

.blog-area.style-two .single-blog-box:not(:has(.blog-thumb)) .destination-button {
  margin-top: 1.75rem;
}

/* Donation options — legacy blog-area / single-blog-box (paypal.jpg + zelle.jpg) */
.blog-area.style-two.jcc-donation-options .section-title.text-center {
  margin-bottom: 2.5rem;
}

.blog-area.style-two.jcc-donation-options .jcc-donation-options__image {
  margin: 0 0 0;
  font-weight: inherit;
}

.blog-area.style-two.jcc-donation-options .jcc-donation-options__image a {
  display: inline-block;
}

.blog-area.style-two.jcc-donation-options .jcc-donation-options__img {
  width: 100%;
  max-width: 500px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.blog-area.style-two.jcc-donation-options .jcc-donation-options__desc {
  margin: 0;
  font-size: inherit;
  line-height: inherit;
  font-weight: inherit;
  color: #b2d235;
}

/* Social links grid — icon in h4 + orange CTA (Kings Bay / Stay Connected) */
.destination-area.jcc-social-links-grid .section-title.text-center {
  margin-bottom: 2.5rem;
}

.destination-area.jcc-social-links-grid .single-destination-box h4 {
  margin: 0;
}

.destination-area.jcc-social-links-grid .single-destination-box h4 a {
  display: inline-block;
}

.destination-area.jcc-social-links-grid .single-destination-box h4 img {
  width: auto;
  max-width: 140px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.destination-area.jcc-social-links-grid .single-destination-box .destination-button {
  margin-top: 1.25rem;
}

/* Locations grid — address cards + Get Directions (locations.html) */
.destination-area.jcc-locations-grid-band .section-title.text-center {
  margin-bottom: 2.5rem;
}

.destination-area.jcc-locations-grid-band .section-main-title h1 {
  margin: 0;
}

.jcc-locations-grid {
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 1.5rem;
  align-items: stretch;
}

.jcc-locations-grid>[class*="col-"] {
  display: flex;
  align-items: stretch;
  margin-bottom: 0;
}

.jcc-locations-grid .single-destination-box.jcc-location-card {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  width: 100%;
  min-height: 100%;
  height: 100%;
  margin-bottom: 0;
  padding: 35px 36px 32px;
  text-align: center;
  box-sizing: border-box;
}

.jcc-locations-grid .jcc-location-card__head h4 {
  margin: 0 0 1rem;
  font-size: 22px;
  line-height: 28px;
  font-weight: 700;
  color: #0b0b0a;
  text-align: center;
}

.jcc-locations-grid .jcc-location-card__address {
  flex: 1 1 auto;
  margin: 0;
  padding: 0;
  font-size: 16px;
  line-height: 26px;
  color: #3e3e3e;
  text-align: center;
}

.jcc-locations-grid .jcc-location-card .destination-button {
  flex: 0 0 auto;
  margin-top: auto !important;
  padding-top: 1.25rem;
  width: 100%;
  text-align: center;
}

.jcc-locations-grid .jcc-location-card .destination-button a {
  display: inline-block;
  border-radius: 5px;
}

/* Upcoming events — destination cards (static events pages) */
.destination-area.jcc-events-grid-band .section-title.text-center {
  margin-bottom: 2.5rem;
}

.destination-area.jcc-events-grid-band .section-main-title h1 {
  margin: 0;
}

.jcc-events-grid>.row {
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 1.5rem;
  align-items: stretch;
}

.jcc-events-grid>.row>[class*="col-"] {
  display: flex;
  align-items: stretch;
  margin-bottom: 0;
}

.jcc-events-grid .single-destination-box.jcc-event-card {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  width: 100%;
  min-height: 100%;
  height: 100%;
  margin-bottom: 0;
  padding: 35px 36px 32px;
  text-align: center;
  box-sizing: border-box;
}

.jcc-events-grid .jcc-event-card__date h4 {
  margin: 0 0 1rem;
  font-size: 22px;
  line-height: 28px;
  font-weight: 700;
  color: #0b0b0a;
  text-align: center;
}

.jcc-events-grid .jcc-event-card__date h4 i {
  margin-right: 0.35rem;
  color: #0b0b0a;
}

.jcc-events-grid .jcc-event-card__thumb {
  position: relative;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  margin: 0;
  aspect-ratio: 16 / 11;
}

.jcc-events-grid .jcc-event-card__thumb img,
.jcc-events-grid .jcc-event-card__img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  object-position: center;
  display: block;
}

.jcc-events-grid .jcc-event-card__thumb .color-overlay {
  display: none !important;
}

.jcc-events-grid .single-destination-box.jcc-event-card:hover .destination-thumb img {
  transform: none;
}

.jcc-events-grid .jcc-event-card__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding-top: 1.25rem;
  text-align: center;
}

.jcc-events-grid .jcc-event-card__title {
  margin: 0 0 0.75rem;
  font-size: 22px;
  line-height: 28px;
  font-weight: 700;
  color: #0b0b0a;
  text-align: center;
}

.jcc-events-grid .jcc-event-card__meta {
  margin: 0;
  font-size: 16px;
  line-height: 28px;
  color: #3e3e3e;
}

.jcc-events-grid .jcc-event-card__meta p {
  margin: 0;
}

.jcc-events-grid .jcc-event-card__time i {
  margin-right: 0.35rem;
  color: #0b0b0a;
}

.jcc-events-grid .jcc-event-card__venue {
  margin-top: 0.15rem;
}

.jcc-events-grid .jcc-event-card .destination-button {
  flex: 0 0 auto;
  margin-top: auto !important;
  padding-top: 1.25rem;
  width: 100%;
  text-align: center;
}

.jcc-events-grid .jcc-event-card .destination-button a {
  display: inline-block;
  border-radius: 5px;
}

/* Anna's Corner blog index (/annas-corner/ as Posts page) */
.destination-area.jcc-annas-corner-index {
  padding: 52px 0 70px;
}

/* Blog / Anna's Corner post cards — gutters, equal height, Read More pinned to bottom */
.destination-area .row.jcc-post-cards-grid {
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 2rem;
  align-items: stretch;
}

.destination-area .row.jcc-post-cards-grid>[class*="col-"] {
  display: flex;
  align-items: stretch;
  margin-bottom: 0;
}

.destination-area .row.jcc-post-cards-grid .single-destination-box:not(.jcc-event-card):not(.jcc-location-card) {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  margin-bottom: 0;
}

.destination-area .row.jcc-post-cards-grid .single-destination-box>.destination-content {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding-top: 24px;
}

.destination-area .row.jcc-post-cards-grid .destination-content>p:first-child {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 28px;
}

.destination-area .row.jcc-post-cards-grid .destination-content h4 {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 28px;
  font-weight: 700;
  color: #0b0b0a;
}

.destination-area .row.jcc-post-cards-grid .destination-content h4 a {
  color: inherit;
  text-decoration: none;
}

.destination-area .row.jcc-post-cards-grid .destination-content h4 a:hover {
  color: #f5841f;
}

.destination-area .row.jcc-post-cards-grid .jcc-latest-post-excerpt {
  margin: 0;
  flex: 1 1 auto;
  font-size: 16px;
  line-height: 28px;
  color: #3e3e3e;
}

.destination-area .row.jcc-post-cards-grid .single-destination-box .destination-button {
  margin-top: auto;
  padding-top: 16px;
}

.destination-thumb.destination-thumb--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #c5c5c5 0%, #ececec 55%, #ffffff 100%);
}

.destination-thumb.destination-thumb--empty .destination-thumb__placeholder-label {
  position: relative;
  z-index: 0;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #1a1a1a;
  text-align: center;
  padding: 10px;
}

/* Showcase hero: center CTA row when one or two buttons are shown. */
.style-two .hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 18px;
  width: 100%;
}

.style-two .hero-actions .hero-btn,
.style-two .hero-actions .hero-btn2 {
  display: block;
  margin: 0;
}

.style-two .hero-actions .hero-btn a,
.style-two .hero-actions .hero-btn2 a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-right: 0;
}

.style-two .hero-actions .hero-btn a i,
.style-two .hero-actions .hero-btn2 a i {
  position: static;
  top: auto;
  left: auto;
  margin-left: 0;
}

/* Video hero: align CTAs to the full viewport, not the Bootstrap gutter. */
.hikey-hero-area.style-two.video .hero-actions {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* Button-only video hero: keep the lone CTA in the middle of the band. */
.hikey-hero-area.style-two.video .hero-content.hero-content--cta-only {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 535px;
}