/* ==========================================================================
   ABLE OFFICERS theme layer — sits on top of bootstrap.min.css (5.3.8).
   Recreates the Astra + Elementor look of the original WordPress site.
   Tokens: site-content/theme/THEME-GUIDE.md
   ========================================================================== */

:root {
  --able-green: #367701;
  --able-green-dark: #275425;
  --able-black: #080808;
  --able-text: #1a1a1a;
  --able-muted: #777777;
  --able-page: #e2e5e7;
  --able-light: #f7f8f9;
  --able-footer-bar: #131313;
  --able-overlay: rgba(0, 1, 12, .65);

  --able-font-head: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --able-font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --able-font-btn: 'Poppins', var(--able-font-body);

  --bs-primary: #367701;
  --bs-primary-rgb: 54, 119, 1;
  --bs-body-font-family: var(--able-font-body);
  --bs-body-font-size: 1rem;
  --bs-body-line-height: 1.65;
  --bs-body-color: #1a1a1a;
  --bs-link-color: #367701;
  --bs-link-color-rgb: 54, 119, 1;
  --bs-link-hover-color: #275425;
  --bs-link-hover-color-rgb: 39, 84, 37;
  --bs-border-radius: 3px;
  --bs-focus-ring-color: rgba(54, 119, 1, .35);
}

@media (max-width: 768px) { html { font-size: 91.2%; } }

/* Sticky footer (same as the site's Additional CSS) */
body { display: flex; flex-direction: column; min-height: 100vh; background: #fff; }
.site-main { flex-grow: 1; }

h1, h2, h3, h4, h5, h6 { font-family: var(--able-font-head); color: var(--able-black); }
h1 { font-weight: 900; line-height: 1.4; }
h2 { font-weight: 900; line-height: 1.3; }
h3 { line-height: 1.3; }
a { text-underline-offset: 2px; }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 2000; background: #fff; color: var(--able-black); padding: .5rem 1rem; }
.skip-link:focus { left: 1rem; top: 1rem; }

.container-able { width: 100%; max-width: 1240px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.container-boxed { width: 100%; max-width: 1230px; margin: 0 auto; padding-left: 15px; padding-right: 15px; }
.text-able { color: var(--able-green) !important; }
.bg-able-light { background: var(--able-light); }
.bg-able-page { background: var(--able-page); }

/* --------------------------------------------------------------------------
   Header — transparent over the banner (Astra transparent header)
   -------------------------------------------------------------------------- */
.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 1030; }
.site-header .navbar { padding: 1rem 0; }
.site-title {
  font-family: var(--able-font-head); font-weight: 900; font-size: 1.5rem; color: #fff;
  text-decoration: none; letter-spacing: -.01em; line-height: 1.2;
}
.site-title:hover, .site-title:focus { color: #f9f9f9; }
.site-header .nav-link {
  font-family: var(--able-font-head); font-weight: 600; font-size: 1rem; color: #fff;
  padding: .5rem 1em !important;
}
.site-header .nav-link:hover, .site-header .nav-link:focus,
.site-header .nav-link.active, .site-header .dropdown-toggle.show { color: #fff; opacity: .85; }
.site-header .dropdown-toggle::after { display: none; }
.site-header .dropdown-toggle .bi { width: .65em; height: .65em; margin-left: .35em; vertical-align: .1em; }
.site-header .dropdown-menu {
  border: 0; border-radius: 0; padding: 0; min-width: 14rem;
  box-shadow: 0 4px 10px -2px rgba(0, 0, 0, .1); margin-top: .5rem !important;
}
.site-header .dropdown-item { font-family: var(--able-font-head); font-weight: 600; font-size: .9375rem; padding: .9em 1em; color: var(--able-text); border-bottom: 1px solid #eaeaea; }
.site-header .dropdown-item:last-child { border-bottom: 0; }
.site-header .dropdown-item:hover, .site-header .dropdown-item:focus, .site-header .dropdown-item.active { background: #f5f5f5; color: var(--able-green); }

.btn-header {
  background: var(--able-green); color: #fff; border: 0; border-radius: 2px;
  font-family: var(--able-font-head); font-weight: 600; font-size: .875rem; padding: 15px 20px; line-height: 1;
}
.btn-header:hover, .btn-header:focus { background: var(--able-green-dark); color: #fff; }

.navbar-toggler.able-toggler {
  background: var(--able-green); color: #fff; border: 0; border-radius: 2px;
  width: 40px; height: 40px; padding: 0; display: inline-flex; align-items: center; justify-content: center;
}
.navbar-toggler.able-toggler .bi { width: 22px; height: 22px; }
.navbar-toggler.able-toggler:focus { box-shadow: 0 0 0 3px rgba(255, 255, 255, .5); }
.navbar-toggler.able-toggler .icon-close { display: none; }
.navbar-toggler.able-toggler[aria-expanded="true"] .icon-open { display: none; }
.navbar-toggler.able-toggler[aria-expanded="true"] .icon-close { display: inline-block; }

@media (max-width: 991.98px) {
  .site-header .navbar-collapse { background: #fff; margin: 1rem -20px 0; padding: .5rem 0; box-shadow: 0 8px 20px rgba(0, 0, 0, .15); }
  .site-header .nav-link { color: var(--able-text); padding: .85rem 20px !important; border-bottom: 1px solid #eaeaea; }
  .site-header .nav-link:hover, .site-header .nav-link:focus, .site-header .nav-link.active { color: var(--able-green); opacity: 1; }
  .site-header .dropdown-menu { box-shadow: none; margin: 0 !important; }
  .site-header .dropdown-item { padding-left: 40px; }
  .site-header .header-cta { padding: 1rem 20px .5rem; }
  .site-title { font-size: 1.0625rem; }
}

/* --------------------------------------------------------------------------
   Banners (hero, page banner, post banner) + photo bands
   -------------------------------------------------------------------------- */
.photo-band {
  position: relative; background-color: #222; background-size: cover; background-position: center center;
  background-repeat: no-repeat; color: #fff; isolation: isolate;
}
.photo-band::before { content: ""; position: absolute; inset: 0; background: var(--able-overlay); z-index: -1; }
.photo-band.overlay-light::before { background: rgba(15, 15, 15, .49); }
/* Top-of-page banners: photo anchored near the top, shifted up ~30% of its overflow */
.hero, .page-banner, .post-banner { background-position: center 30%; }
.photo-band.overlay-none::before { display: none; }
.photo-band h1, .photo-band h2, .photo-band h3, .photo-band p { color: #fff; }

/* Hero fills 85% of the viewport height. The photo is `cover`, so it crops to fit any size. */
.hero { min-height: 85vh; min-height: 85svh; display: flex; align-items: center; padding: 140px 0 80px; }
.hero h1 { font-size: 2.75rem; font-weight: 700; line-height: 1.4; max-width: 600px; margin-bottom: 1.5rem; }
.hero .lead-strong { font-weight: 700; font-size: 1.05rem; line-height: 1.55; max-width: 580px; }
@media (max-width: 767.98px) { .hero { min-height: max(85vh, 460px); text-align: center; } .hero h1, .hero .lead-strong { margin-left: auto; margin-right: auto; } .hero h1 { font-size: 1.75rem; } .hero .lead-strong { font-size: .95rem; } }

.page-banner { min-height: 485px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 70px 0 50px; }
.page-banner h1 { font-size: 3.5rem; font-weight: 700; line-height: 1; margin: 0; }
.page-banner.banner-rounded { border-bottom-right-radius: 40px; overflow: hidden; }
@media (max-width: 767.98px) { .page-banner { min-height: 340px; padding-top: 90px; } .page-banner h1 { font-size: 2.4rem; } }

.post-banner { min-height: 400px; display: flex; align-items: center; padding: 120px 0 50px; }
.post-banner { align-items: flex-start; padding-top: 140px; }
.post-banner h1 { font-size: 2.6rem; font-weight: 800; line-height: 1.3; margin: 0; text-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.post-banner h1 img, .post-banner h1 span { font-size: inherit !important; }
.post-banner.photo-band::before { background: rgba(0, 0, 0, .15); }
@media (max-width: 767.98px) { .post-banner { min-height: 400px; padding-top: 0; align-items: center; } .post-banner h1 { font-size: 1.6rem; } }

/* --------------------------------------------------------------------------
   Sections + headings
   -------------------------------------------------------------------------- */
.section { padding: 80px 0; }
.section-sm { padding: 50px 0; }
.two-tone { font-family: var(--able-font-head); font-weight: 700; font-size: 2.2rem; line-height: 1.2; color: var(--able-black); margin-bottom: 1.25rem; }
.two-tone.text-center { margin-bottom: 3rem; }
.section-lead { color: var(--able-muted); max-width: 640px; margin: -2rem auto 3rem; text-align: center; }
.band-title { font-family: var(--able-font-head); font-size: 2.9rem; font-weight: 700; line-height: 1; margin-bottom: 1.25rem; }
@media (max-width: 767.98px) { .two-tone { font-size: 2.1rem; } .band-title { font-size: 2.1rem; } .section { padding: 56px 0; } }

.pattern-band { background-color: var(--able-light); background-image: url('/uploads/2023/09/pattern-1.png'); background-size: cover; background-position: center; position: relative; isolation: isolate; }
.pattern-band::before { content: ""; position: absolute; inset: 0; background: rgba(245, 245, 245, .9); z-index: -1; }
.blob-band { background-image: url('/uploads/2020/06/blob-grad.svg'); background-repeat: no-repeat; background-position: center center; background-size: contain; }

.prose p { margin-bottom: 1.1rem; }
.prose-muted { color: #242424; font-size: 1rem; line-height: 1.6; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn-able {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--able-green); border: 1px solid var(--able-green); color: #fff;
  font-family: var(--able-font-btn); font-weight: 700; font-size: .9375rem; line-height: 1;
  text-transform: uppercase; letter-spacing: .02em; padding: 15px 40px; border-radius: 3px;
  box-shadow: 0 8px 13px rgba(0, 0, 0, .12); transition: background-color .2s, border-color .2s, transform .2s;
}
.btn-able:hover, .btn-able:focus { background: #000; border-color: #000; color: #fff; }
.btn-able:active { transform: translateY(1px); }
.btn-able .bi { width: .85em; height: .85em; }
.btn-able-sm { padding: 12px 18px; font-size: .875rem; font-weight: 400; box-shadow: none; }
.btn-able-inverse { background: #fff; border-color: #fff; color: var(--able-green); font-size: .8125rem; }
.btn-able-inverse:hover, .btn-able-inverse:focus { background: #000; border-color: #000; color: #fff; }
.link-able {
  font-family: var(--able-font-btn); font-weight: 700; font-size: .8125rem; text-transform: uppercase; letter-spacing: .04em;
  color: var(--able-green); text-decoration: none; display: inline-flex; align-items: center; gap: .35rem;
}
.link-able:hover, .link-able:focus { color: #000; }
.link-able .bi { width: .8em; height: .8em; }

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
.card-able { background: #fff; border: 0; border-radius: 4px; box-shadow: 0 3px 12px rgba(0, 0, 0, .03); height: 100%; overflow: hidden; transition: box-shadow .25s, transform .25s; }
.card-able:hover { box-shadow: 0 18px 22px rgba(0, 0, 0, .05); }
.card-able .card-img-top { aspect-ratio: 4 / 3; object-fit: cover; }
.card-able .card-body { padding: 22px 22px 26px; }
.card-able .card-title { font-family: var(--able-font-head); font-weight: 600; font-size: 1.25rem; color: #212121; margin-bottom: .5rem; }
.card-able .card-text { color: var(--able-muted); font-size: .9rem; line-height: 1.6; margin: 0; }

.card-able.card-poppins .card-title { font-family: var(--able-font-btn); font-size: 1.1rem; }

/* Team */
.member { background: #fff; padding: 6px 6px 22px; text-align: center; box-shadow: 0 3px 12px rgba(0, 0, 0, .06); height: 100%; }
.member img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.member h3 { font-family: var(--able-font-head); font-size: 1.05rem; font-weight: 700; margin: 1.1rem .5rem .4rem; color: #111; }
.member p { color: var(--able-green); margin: 0 .5rem; font-size: .8rem; font-weight: 700; }
.member-lg h3 { font-size: 1.15rem; }

/* Green bands (About achievements, Resources list, Join left column) */
.green-band { background: #224b09; color: #fff; }
.green-band .lead-text { color: #f1f1f1; font-size: .95rem; line-height: 1.95; }
.check-card { background: #f7f7f7; border-radius: 4px; padding: 26px 22px; box-shadow: 0 8px 13px rgba(0, 0, 0, .5); height: 100%; }
.check-card .bi { width: 24px; height: 24px; color: var(--able-green); margin-bottom: .8rem; }
.check-card p { margin: 0; color: #242424; font-size: .95rem; line-height: 1.6; }

.resource-card {
  background: #e9eae6; border: 1px solid #ffab009e; border-radius: 0; padding: 14px 26px 30px; height: 100%;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.resource-card > .bi { width: 26px; height: 26px; color: #275425; margin-bottom: 1.1rem; }
.resource-card h3 { font-size: 1.25rem; font-weight: 700; margin: 0; color: #212121; }
.resource-card hr { border: 0; border-top: 2px solid var(--able-green); opacity: 1; width: 40px; margin: .75rem auto 1.1rem; }
.resource-card p { color: #171717; font-size: .9rem; line-height: 1.6; flex-grow: 1; margin-bottom: 1.25rem; }
.btn-able.btn-visit { font-weight: 400; font-size: 1rem; padding: 13px 14px; border-radius: 0; box-shadow: none; }
.resource-card { padding: 16px 30px 34px; }
.resource-card h3 { font-size: 1.4rem; }
.resource-card p { font-size: .95rem; }

/* Contact info boxes */
.contact-band { background: #f4f4f4; }
.info-box { background: #fff; border-radius: 4px; padding: 26px 25px 28px; box-shadow: 0 32px 80px -40px rgba(0, 0, 0, .24); height: 100%; }
.info-box .info-icon { width: 34px; height: 34px; border-radius: 50%; background: #e2e5e7; color: var(--able-green); display: inline-flex; align-items: center; justify-content: center; margin-bottom: .9rem; }
.info-box .info-icon .bi { width: 15px; height: 15px; }
.info-box h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: .75rem; color: #111; }
.info-box h3 a { color: inherit; text-decoration: none; }
.info-box ul { list-style: none; padding: 0; margin: 0; font-size: .82rem; line-height: 1.75; }
.info-box li a { color: #171717; text-decoration: none; }
.info-box li a:hover, .info-box li a:focus { color: var(--able-green); }
.info-box li .bi { margin-right: .35rem; color: #3b5998; }

.map-wrap { border: 2px dotted var(--able-green); }
.map-embed { display: block; width: 100%; height: 360px; border: 0; }

/* Join split */
.join-split { display: grid; grid-template-columns: 1fr; max-width: 1350px; margin: 0 auto; }
@media (min-width: 992px) { .join-split { grid-template-columns: 1fr 1fr; } }
.join-split .join-text { background: #224b09; color: #fff; padding: 60px 64px; }
@media (max-width: 575.98px) { .join-split .join-text { padding: 40px 24px; } }
.join-split .join-text h2 { color: #fff; font-size: 2rem; font-weight: 600; text-transform: uppercase; padding-top: 1.1rem; border-top: 2px solid #fff; display: inline-block; min-width: 60%; margin-bottom: 1.5rem; }
.join-split .join-text p { color: #fff; font-size: 1.05rem; line-height: 1.6; }
.join-split .join-text ul { list-style: none; padding: 0; }
.join-split .join-text li { display: flex; gap: .5rem; font-size: 1.05rem; }
.join-split .able-form .form-control, .join-split .able-form .form-select { padding: .6rem .6rem; }
.join-split .able-form .row { --bs-gutter-y: 1.4rem; }
.join-split .join-text li .bi { flex: 0 0 auto; margin-top: .35rem; width: 13px; height: 13px; }
.join-split .join-form { background: url('/uploads/2023/09/cropped-Untitled-design-7.jpg') center / 160px repeat; padding: 12px 6px 12px 6px; }
.join-split .join-form .form-panel { border-radius: 6px; height: 100%; padding: 26px 18px; box-shadow: 0 0 10px rgba(0, 0, 0, .15); }
.welcome-band h2 { font-size: 1.6rem; font-weight: 700; }
.welcome-band .bi { width: 30px; height: 30px; color: #c00; }

/* --------------------------------------------------------------------------
   Forms (Forminator look)
   -------------------------------------------------------------------------- */
.able-form .form-label { font-weight: 600; font-size: .75rem; color: #444; margin-bottom: .25rem; }
.able-form .form-control {
  border-radius: 2px; border: 2px solid var(--able-green); background-color: #fff; padding: .45rem .55rem; font-size: .9rem; color: #222;
}
.able-form .form-select { border-radius: 2px; border: 2px solid #777; background-color: #ededed; padding: .45rem .55rem; font-size: .9rem; }
.able-form .form-control::placeholder { color: #888; }
.able-form .form-control:focus, .able-form .form-select:focus { border-color: var(--able-green-dark); box-shadow: 0 0 0 .2rem rgba(54, 119, 1, .15); }
.able-form .form-control.is-invalid, .able-form .form-select.is-invalid { border-color: #dc3545; }
.able-form textarea.form-control { min-height: 120px; }
.able-form .btn-able { font-family: var(--able-font-body); font-weight: 600; text-transform: none; font-size: .85rem; padding: 12px 22px; border-radius: 0; box-shadow: none; }
.form-narrow { max-width: 560px; margin: 0 auto; }
.form-panel { background: #fff; border-radius: 4px; box-shadow: 0 0 10px 2px rgba(0, 0, 0, .05); padding: 34px; }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* --------------------------------------------------------------------------
   Carousel (home "Event GALLERY") — scroll-snap track, JS adds autoplay/arrows
   -------------------------------------------------------------------------- */
.able-carousel { position: relative; padding: 0 56px; }
.able-carousel .track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 50px) / 3); gap: 25px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none;
}
.able-carousel .track::-webkit-scrollbar { display: none; }
.able-carousel .slide { scroll-snap-align: start; margin: 0; }
.able-carousel .slide img { width: 100%; height: 420px; object-fit: cover; display: block; }
.able-carousel .nav-btn {
  position: absolute; top: calc(50% - 22px); width: 44px; height: 44px; border: 0; background: transparent;
  color: var(--able-green); display: flex; align-items: center; justify-content: center; padding: 0; transform: translateY(-50%);
}
.able-carousel .nav-btn .bi { width: 30px; height: 30px; }
.able-carousel .nav-btn.prev { left: 0; }
.able-carousel .nav-btn.next { right: 0; }
.able-carousel .nav-btn:hover, .able-carousel .nav-btn:focus { color: #000; }
.able-carousel .dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.able-carousel .dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; background: #000; opacity: 1; }
.able-carousel .dots button[aria-current="true"] { background: var(--able-green); }
@media (max-width: 991.98px) { .able-carousel .track { grid-auto-columns: calc((100% - 25px) / 2); } }
@media (max-width: 575.98px) { .able-carousel { padding: 0 36px; } .able-carousel .track { grid-auto-columns: 100%; } .able-carousel .slide img { height: 320px; } }

/* --------------------------------------------------------------------------
   Events gallery (Portfolio Filter Gallery look)
   -------------------------------------------------------------------------- */
.gallery-intro { text-align: center; max-width: 640px; margin: 0 auto 2rem; font-size: .95rem; color: #3a3a3a; }

/* Filter pills: one row on wide screens, wrap neatly on small ones. Active pill in ABLE green. */
.gallery-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 auto 2.5rem; padding: 0; list-style: none; max-width: 980px; }
.gallery-filters button {
  display: inline-flex; align-items: center; gap: .55rem; font-family: var(--able-font-head); font-size: .9rem; font-weight: 600;
  line-height: 1.2; color: #1a1a1a; background: #fff; border: 1px solid #d5d9dd; border-radius: 999px;
  padding: .5rem 1rem; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s;
}
.gallery-filters .filter-count {
  min-width: 1.6rem; padding: .1rem .45rem; border-radius: 999px; background: var(--able-light); color: var(--able-muted);
  font-size: .75rem; font-weight: 700; text-align: center;
}
.gallery-filters button:hover, .gallery-filters button:focus-visible { border-color: var(--able-green); color: var(--able-green); }
.gallery-filters button[aria-pressed="true"] { background: var(--able-green); border-color: var(--able-green); color: #fff; }
.gallery-filters button[aria-pressed="true"] .filter-count { background: rgba(255, 255, 255, .22); color: #fff; }

/* Tiles: consistent 4:5 frames, photos cropped to fill (not stretched). */
.gallery-grid .gallery-item[hidden] { display: none !important; }
.gallery-grid a { display: block; overflow: hidden; background: #fff; border-radius: 4px; box-shadow: 0 3px 12px rgba(0, 0, 0, .06); transition: box-shadow .3s, transform .3s; }
.gallery-grid a:hover, .gallery-grid a:focus-visible { transform: translateY(-3px); box-shadow: 0 12px 22px -10px rgba(0, 0, 0, .35); }
.gallery-grid img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.gallery-grid img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; }
.lightbox .modal-content { background: transparent; border: 0; }
.lightbox .modal-body { padding: 0; text-align: center; }
.lightbox img { max-width: 100%; max-height: 82vh; object-fit: contain; }
.lightbox .lb-caption { color: #fff; font-size: .9rem; margin-top: .75rem; }
.lightbox .lb-close { position: absolute; top: -44px; right: 0; color: #fff; background: transparent; border: 0; }
.lightbox .lb-close .bi { width: 28px; height: 28px; }
.lightbox .lb-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0, 0, 0, .45); color: #fff; border: 0; width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.lightbox .lb-nav .bi { width: 22px; height: 22px; }
.lightbox .lb-prev { left: 8px; }
.lightbox .lb-next { right: 8px; }

/* --------------------------------------------------------------------------
   Events (past events list + most recent event on home)
   Flyers are posters, so show the whole image on a light background (no cropping).
   -------------------------------------------------------------------------- */
.event-card-img { height: auto; aspect-ratio: 4 / 3; object-fit: contain; background: var(--able-light); }
/* Shared by event and blog cards: a fixed 4:3 frame that shows the whole flyer */
.card-able .card-img-top.frame-contain { height: auto; aspect-ratio: 4 / 3; object-fit: contain; background: var(--able-light); }
/* Post titles in the shared page banner: long titles, so a smaller size than the other banners */
.post-page-banner h1 { font-size: 2.3rem; line-height: 1.25; font-weight: 700; }
@media (max-width: 767.98px) { .post-page-banner h1 { font-size: 1.6rem; } }
.event-card .card-title { font-size: 1.1rem; line-height: 1.35; }
.event-meta { color: var(--able-green); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin-bottom: .5rem; }
.event-feature-img { width: 100%; height: auto; max-height: 620px; object-fit: contain; background: #fff; box-shadow: 0 3px 12px rgba(0, 0, 0, .06); }
.event-feature-title { font-family: var(--able-font-head); font-weight: 700; font-size: 1.3rem; color: #111; margin-bottom: .75rem; }
.modal-backdrop.show { opacity: .88; }

/* --------------------------------------------------------------------------
   Blog listing (Astra archive, fixed flags background)
   -------------------------------------------------------------------------- */
body.page-blog {
  background: var(--able-page);
}
.blog-listing { padding: 128px 0 50px; }
.post-card { background: #fff; height: 100%; display: flex; flex-direction: column; }
.post-card .post-thumb { display: block; overflow: hidden; }
.post-card .post-thumb img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; background: var(--able-light); display: block; transition: transform .4s; }
.post-card .post-thumb:hover img { transform: scale(1.02); }
.post-card .post-body { padding: 1.5em 2.14em 2em; display: flex; flex-direction: column; flex-grow: 1; }
.post-card .post-title { font-family: var(--able-font-head); font-weight: 600; font-size: 1.375rem; line-height: 1.35; margin: 0 0 1rem; }
.post-card .post-title a { color: #080808; text-decoration: none; }
.post-card .post-title a:hover, .post-card .post-title a:focus { color: var(--able-green); }
.post-card .post-excerpt { color: #3a3a3a; font-size: .95rem; line-height: 1.85; margin-bottom: 1.25rem; }
.post-card .read-more { margin-top: auto; color: var(--able-green); text-decoration: none; font-size: .95rem; }
.post-card .read-more:hover, .post-card .read-more:focus { color: var(--able-green-dark); text-decoration: underline; }
@media (max-width: 767.98px) { .post-card .post-body { padding: 1.5em 1em; } .blog-listing { padding-top: 110px; } }

.pagination-able { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 2em 0 0; margin: 0; list-style: none; }
.pagination-able a, .pagination-able span {
  display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px;
  background: #fff; color: var(--able-text); text-decoration: none; border-radius: 2px; font-weight: 600;
}
.pagination-able a:hover, .pagination-able a:focus { background: var(--able-green-dark); color: #fff; }
.pagination-able [aria-current="page"] { background: var(--able-green); color: #fff; }

/* --------------------------------------------------------------------------
   Single post
   -------------------------------------------------------------------------- */
.post-wrap { background: var(--able-page); padding: 50px 0 70px; }
.post-content { max-width: 750px; margin: 0 auto; font-size: 1rem; line-height: 1.65; color: var(--able-text); overflow-wrap: anywhere; }
.post-content > * { max-width: 100%; }
.post-content img { max-width: 100%; height: auto; }
.post-content .post-figure { margin: 0 0 1.75rem; }
.post-content .post-figure img { width: 100%; }
.post-content .post-video { margin-bottom: 1.75rem; }

/* Post header line (date + back link), sits under the banner */
.post-header-meta { max-width: 750px; margin: 0 auto 1.5rem; text-align: center; font-size: .8rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--able-muted); }
.post-header-meta a { color: var(--able-green); text-decoration: none; }
.post-header-meta a:hover { text-decoration: underline; }
.post-header-meta .sep { margin: 0 .5rem; }

/* Flyers and posters: show the whole image, scaled to fit the screen, centred in the column */
.post-content .flyer-wrapper { margin: 1.5rem 0 2rem; text-align: center; }
.post-content .flyer-wrapper img { display: block; margin: 0 auto; width: auto; max-width: 100%; max-height: 78vh; height: auto; border-radius: 6px; box-shadow: 0 3px 14px rgba(0, 0, 0, .08); }
.post-content h2, .post-content h3, .post-content h4 { margin-top: 1.5rem; margin-bottom: .75rem; font-weight: 700; }
.post-content h2 { font-size: 1.75rem; }
.post-content h3 { font-size: 1.4rem; }
.post-content ul, .post-content ol { padding-left: 1.5rem; }
.post-content table { width: 100%; margin-bottom: 1.5rem; }
.post-content iframe { max-width: 100%; }
/* custom-HTML posts bring their own .tripart-content / .able-content styles (incl. padding) — keep them as authored */
.post-content:has(> .tripart-content), .post-content:has(> .able-content) { max-width: 820px; }
.post-meta { color: #555; font-size: .9rem; margin-bottom: 1.5rem; }
.post-nav { max-width: 750px; margin: 3rem auto 0; padding-top: 1.5rem; border-top: 1px solid #c9ccce; display: flex; justify-content: space-between; gap: 1rem; }
.post-nav a { color: var(--able-text); text-decoration: none; font-weight: 600; max-width: 48%; }
.post-nav a:hover, .post-nav a:focus { color: var(--able-green); }
.post-nav .label { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: #6e7180; font-weight: 400; }
.post-nav .next { text-align: right; margin-left: auto; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer-block { background: var(--able-green-dark); color: #fff; padding: 50px 0 70px; }
.footer-block .container-boxed { max-width: 1110px; }
.footer-block .footer-col { background: rgba(0, 0, 0, .04); box-shadow: 0 0 10px rgba(0, 0, 0, .12); padding: 30px 20px; height: 100%; }
.footer-block .footer-brand { font-family: var(--able-font-head); font-size: 1.75rem; font-weight: 700; line-height: 1.25; color: #fff; margin-bottom: .75rem; }
.footer-block h2.footer-label { font-family: var(--able-font-head); font-size: 1.0625rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: #fff; margin-bottom: 1rem; line-height: 1.3; }
.footer-block p { color: #fff; font-size: .95rem; line-height: 1.6; margin: 0 0 .75rem; }
.footer-block ul { list-style: none; padding: 0; margin: 0; }
.footer-block li { margin-bottom: .55rem; font-size: .95rem; }
.footer-block a { color: #fff; text-decoration: none; }
.footer-block a:hover, .footer-block a:focus { color: #fff; text-decoration: underline; }
.footer-block .icon-line { display: flex; gap: .6rem; align-items: flex-start; }
.footer-block .icon-line .bi { flex: 0 0 auto; margin-top: .3rem; width: 14px; height: 14px; }
.social-icons { display: flex; gap: 6px; }
.social-icons a { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.social-icons a:hover, .social-icons a:focus { opacity: .9; text-decoration: none; }
.social-icons .facebook { background: #3b5998; }
.social-icons .youtube { background: #cd201f; }
.social-icons .bi { width: 17px; height: 17px; }

.footer-bar { background: var(--able-footer-bar); border-top: 1px solid #000; color: var(--able-page); font-size: .875rem; min-height: 80px; padding: 30px 0; text-align: center; }
.footer-bar p { margin: 0; }

.scroll-top {
  position: fixed; right: 20px; bottom: 20px; width: 42px; height: 42px; border-radius: 2px; border: 0;
  background: var(--able-green); color: #fff; display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; z-index: 1020;
}
.scroll-top.show { opacity: .9; visibility: visible; }
.scroll-top:hover, .scroll-top:focus { opacity: 1; background: var(--able-green-dark); }

/* 404 */
.notfound { padding: 60px 0 90px; text-align: center; }
.notfound .code { font-family: var(--able-font-head); font-size: 6rem; font-weight: 900; color: var(--able-green); line-height: 1; }

/* Entrance animation (subtle stand-in for Elementor fadeInUp) */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .able-carousel .track { scroll-behavior: auto; }
  * { transition: none !important; }
}

:focus-visible { outline: 2px solid var(--able-green); outline-offset: 2px; }
.photo-band :focus-visible, .site-header :focus-visible, .footer-block :focus-visible { outline-color: #fff; }
