/* ============================================================
   ECAN — Design System
   Palette: institutional green + gold accent, warm and credible.
   Type: Lora (headings, editorial serif) / Work Sans (body, humanist sans).
   ============================================================ */

:root {
  --ecan-green:        #01964A;
  --ecan-green-dark:   #006B3C;
  --ecan-green-light:  #EAF7F0;
  --ecan-gold:         #F2C94C;
  --ecan-white:        #FFFFFF;
  --ecan-text:         #18352A;
  --ecan-text-muted:   #55685F;
  --ecan-border:       #DCEAE1;
  --ecan-bg-alt:       #F6FAF7;

  --font-serif: 'Lora', Georgia, serif;
  --font-sans: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-sm: 4px;
  --radius-md: 8px;
  --shadow-card: 0 2px 18px rgba(24, 53, 42, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 110px; }

body {
  font-family: var(--font-sans);
  color: var(--ecan-text);
  background: var(--ecan-white);
  line-height: 1.6;
}

h1, h2, h3, h4, .ecan-serif {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--ecan-text);
  line-height: 1.22;
}

p { color: var(--ecan-text-muted); }

a { color: var(--ecan-green-dark); text-decoration: none; }
a:hover { color: var(--ecan-green); }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ecan-green);
  color: #fff;
  padding: 10px 16px;
  z-index: 2000;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--ecan-gold);
  outline-offset: 2px;
}

.container { max-width: 1280px; }

/* ---------------------------------------------------------
   Buttons
   --------------------------------------------------------- */
.ecan-btn-primary,
.ecan-btn-ghost,
.ecan-btn-gold,
.ecan-btn-outline-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
  white-space: nowrap;
}
.ecan-btn-primary {
  background: var(--ecan-green);
  color: #fff;
}
.ecan-btn-primary:hover { background: var(--ecan-green-dark); color: #fff; }

.ecan-btn-gold {
  background: var(--ecan-gold);
  color: var(--ecan-text);
}
.ecan-btn-gold:hover { background: #e0b73c; color: var(--ecan-text); transform: translateY(-1px); }

.ecan-btn-ghost {
  background: transparent;
  color: var(--ecan-text);
  border-color: var(--ecan-border);
}
.ecan-btn-ghost:hover { border-color: var(--ecan-green); color: var(--ecan-green-dark); }

.ecan-btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.6);
}
.ecan-btn-outline-white:hover { background: rgba(255,255,255,.12); border-color: #fff; color: #fff; }

/* ---------------------------------------------------------
   Top utility bar
   --------------------------------------------------------- */
.ecan-topbar {
  background: var(--ecan-green-dark);
  color: rgba(255,255,255,.9);
  font-size: 0.85rem;
  padding: 7px 0;
}
.ecan-topbar a { color: rgba(255,255,255,.9); margin-right: 18px; }
.ecan-topbar a:last-child { margin-right: 0; }
.ecan-topbar a:hover { color: var(--ecan-gold); }
.ecan-topbar-social a { margin-right: 14px; }
.ecan-topbar-social a:last-child { margin-right: 0; }

/* ---------------------------------------------------------
   Header
   --------------------------------------------------------- */
.ecan-header {
  background: #fff;
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 1030;
  box-shadow: 0 1px 0 var(--ecan-border);
  transition: padding .2s ease, box-shadow .2s ease;
}
.ecan-header.is-compact { padding: 8px 0; box-shadow: 0 4px 20px rgba(24,53,42,.08); }
.ecan-header.is-compact .navbar-brand img { height: 40px; }

.navbar-brand img { transition: height .2s ease; }

/* Header needs more room than the normal 1280px container. */
.ecan-header .container { max-width: 1400px; }

.ecan-nav { gap: 2px; }
.ecan-nav .nav-link {
  color: var(--ecan-text); font-weight: 600; font-size: 0.88rem;
  padding: 10px 10px !important; border-radius: var(--radius-sm); white-space: nowrap;
}
.ecan-nav .nav-link:hover,
.ecan-nav .nav-item.dropdown:hover .nav-link { color: var(--ecan-green-dark); background: var(--ecan-green-light); }
.ecan-nav .dropdown-menu { border: none; box-shadow: var(--shadow-card); border-radius: var(--radius-md); padding: 10px; margin-top: 4px; }
.ecan-nav .dropdown-item { padding: 9px 14px; border-radius: var(--radius-sm); font-weight: 500; font-size: 0.92rem; }
.ecan-nav .dropdown-item:hover { background: var(--ecan-green-light); color: var(--ecan-green-dark); }

@media (min-width: 1200px) {
  .ecan-nav .dropdown:hover > .dropdown-menu { display: block; }
}

/* Safety net: wrap instead of clipping content off-screen. */
.ecan-header .navbar-collapse.d-xl-flex { flex-wrap: wrap; row-gap: 8px; }

.ecan-header-actions { display: flex; align-items: center; gap: 8px; margin-left: 12px; flex-shrink: 0; }
.ecan-header-actions .ecan-btn-ghost,
.ecan-header-actions .ecan-btn-primary { white-space: nowrap; padding-left: 16px; padding-right: 16px; }
.ecan-search-toggle {
  border: none; background: transparent; font-size: 1.15rem; color: var(--ecan-text);
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
}
.ecan-search-toggle:hover { background: var(--ecan-green-light); color: var(--ecan-green-dark); }

.ecan-search-modal input { font-size: 1.1rem; padding: 10px 0; }
.ecan-search-modal input:focus { box-shadow: none; }

.navbar-toggler { border: none; font-size: 1.6rem; color: var(--ecan-green-dark); }
.navbar-toggler:focus { box-shadow: none; }

.ecan-offcanvas { width: 320px; }
.ecan-mobile-link {
  display: block; padding: 14px 4px; font-weight: 600; color: var(--ecan-text);
  border-bottom: 1px solid var(--ecan-border);
}
.ecan-mobile-actions { display: grid; gap: 10px; margin-top: 20px; }
.accordion-button { font-weight: 600; }
.accordion-button:not(.collapsed) { background: var(--ecan-green-light); color: var(--ecan-green-dark); box-shadow: none; }
.accordion-button:focus { box-shadow: none; }

/* ---------------------------------------------------------
   Hero
   --------------------------------------------------------- */
.ecan-hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--ecan-text);
}
.ecan-hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; visibility: hidden;
  transition: opacity 1s ease;
}
.ecan-hero-slide.is-active { opacity: 1; visibility: visible; }
.ecan-hero-slide::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(10,32,22,.86) 0%, rgba(10,32,22,.6) 45%, rgba(10,32,22,.25) 100%);
}
.ecan-hero-content {
  position: relative; z-index: 2; color: #fff;
  max-width: 660px; padding: 90px 0;
}
.ecan-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--ecan-gold); font-weight: 600; font-size: .95rem; margin-bottom: 18px;
}
.ecan-hero-eyebrow::before { content: ''; width: 28px; height: 2px; background: var(--ecan-gold); display: inline-block; }
.ecan-hero-title {
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  color: #fff; margin-bottom: 20px; min-height: 2.6em;
}
.ecan-hero-title .ecan-typewriter-cursor {
  display: inline-block; width: 3px; height: .9em; background: var(--ecan-gold);
  margin-left: 4px; animation: ecan-blink 1s step-end infinite; vertical-align: -2px;
}
@keyframes ecan-blink { 50% { opacity: 0; } }
.ecan-hero-sub { font-size: 1.1rem; color: rgba(255,255,255,.86); margin-bottom: 32px; max-width: 540px; }
.ecan-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.ecan-hero-dots {
  position: absolute; z-index: 3; bottom: 28px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 10px;
}
.ecan-hero-dots button {
  width: 34px; height: 4px; border: none; background: rgba(255,255,255,.35); border-radius: 2px; padding: 0;
}
.ecan-hero-dots button.is-active { background: var(--ecan-gold); }

/* ---------------------------------------------------------
   Section scaffolding
   --------------------------------------------------------- */
.ecan-section { padding: 88px 0; }
.ecan-section-alt { background: var(--ecan-bg-alt); }
.ecan-section-header { max-width: 640px; margin-bottom: 48px; }
.ecan-section-header h2 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); margin-bottom: 14px; }
.ecan-section-header p { font-size: 1.05rem; }
.ecan-section-header.text-center { margin-left: auto; margin-right: auto; text-align: center; }
.ecan-kicker { color: var(--ecan-green); font-weight: 700; letter-spacing: .02em; margin-bottom: 10px; display: block; }

/* ---------------------------------------------------------
   Impact / statistics
   --------------------------------------------------------- */
.ecan-stats {
  background: var(--ecan-green-dark);
  padding: 56px 0;
}
.ecan-stat { text-align: center; color: #fff; padding: 0 12px; }
.ecan-stat i { font-size: 1.8rem; color: var(--ecan-gold); margin-bottom: 10px; display: inline-block; }
.ecan-stat .ecan-stat-number {
  font-family: var(--font-serif); font-size: 2.4rem; font-weight: 700; display: block;
}
.ecan-stat .ecan-stat-label { color: rgba(255,255,255,.82); font-size: .95rem; }

/* ---------------------------------------------------------
   About section
   --------------------------------------------------------- */
.ecan-about-media { position: relative; }
.ecan-about-media img { width: 100%; border-radius: var(--radius-md); }
.ecan-about-media .ecan-badge-card {
  position: absolute; left: -24px; bottom: -24px;
  background: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow-card);
  padding: 20px 24px; max-width: 240px;
}
.ecan-about-media .ecan-badge-card strong { display: block; font-family: var(--font-serif); font-size: 1.6rem; color: var(--ecan-green-dark); }

/* ---------------------------------------------------------
   Focus areas
   --------------------------------------------------------- */
.ecan-focus-card {
  height: 100%; padding: 32px 26px; background: #fff; border: 1px solid var(--ecan-border);
  border-radius: var(--radius-md); transition: box-shadow .2s ease, border-color .2s ease;
}
.ecan-focus-card:hover { box-shadow: var(--shadow-card); border-color: transparent; }
.ecan-focus-icon {
  width: 52px; height: 52px; border-radius: var(--radius-sm); background: var(--ecan-green-light);
  color: var(--ecan-green-dark); display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 18px;
}
.ecan-focus-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.ecan-focus-card p { font-size: .95rem; margin-bottom: 0; }

/* ---------------------------------------------------------
   Featured programme
   --------------------------------------------------------- */
.ecan-programme-feature {
  background: var(--ecan-text); border-radius: var(--radius-md); overflow: hidden; color: #fff;
}
.ecan-programme-feature img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.ecan-programme-feature-body { padding: 48px; }
.ecan-programme-feature-body h2 { color: #fff; }
.ecan-programme-feature-body p { color: rgba(255,255,255,.78); }

/* ---------------------------------------------------------
   Cards: events / news / publications
   --------------------------------------------------------- */
.ecan-card {
  background: #fff; border: 1px solid var(--ecan-border); border-radius: var(--radius-md);
  overflow: hidden; height: 100%; transition: box-shadow .2s ease;
}
.ecan-card:hover { box-shadow: var(--shadow-card); }
.ecan-card-img { aspect-ratio: 4/3; overflow: hidden; }
.ecan-card-img img { width: 100%; height: 100%; object-fit: cover; }
.ecan-card-body { padding: 22px; }
.ecan-card-date {
  display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 600;
  color: var(--ecan-green-dark); background: var(--ecan-green-light); padding: 4px 10px; border-radius: 20px; margin-bottom: 12px;
}
.ecan-card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.ecan-card p { font-size: .92rem; margin-bottom: 0; }

.ecan-pub-card { display: flex; gap: 16px; padding: 18px; border: 1px solid var(--ecan-border); border-radius: var(--radius-md); background: #fff; height: 100%; }
.ecan-pub-card .ecan-pub-icon {
  flex-shrink: 0; width: 54px; height: 54px; border-radius: var(--radius-sm); background: var(--ecan-green-light);
  color: var(--ecan-green-dark); display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
}
.ecan-pub-card h3 { font-size: 1rem; margin-bottom: 6px; }
.ecan-pub-card p { font-size: .85rem; margin-bottom: 0; }

/* ---------------------------------------------------------
   Membership CTA
   --------------------------------------------------------- */
.ecan-membership-cta {
  background: var(--ecan-green-light); border-radius: var(--radius-md); padding: 56px;
}

/* ---------------------------------------------------------
   Membership category "What's included" disclosure
   --------------------------------------------------------- */
.ecan-benefits-details summary {
  cursor: pointer; list-style: none; font-size: .85rem; font-weight: 700;
  color: var(--ecan-green-dark); display: flex; align-items: center; gap: 6px;
  padding: 4px 0;
}
.ecan-benefits-details summary::-webkit-details-marker { display: none; }
.ecan-benefits-details summary .bi { font-size: .7rem; transition: transform .2s ease; }
.ecan-benefits-details[open] summary .bi { transform: rotate(90deg); }
.ecan-benefits-details summary:hover { color: var(--ecan-green); }
.ecan-benefits-details .ecan-prose {
  max-width: none; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--ecan-border);
}
.ecan-benefits-details .ecan-prose p:last-child,
.ecan-benefits-details .ecan-prose ul:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------
   Partners strip
   --------------------------------------------------------- */
.ecan-partners-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 42px; justify-content: center; }
.ecan-partners-strip img { max-height: 46px; width: auto; filter: grayscale(100%); opacity: .65; transition: opacity .2s ease, filter .2s ease; }
.ecan-partners-strip img:hover { filter: grayscale(0%); opacity: 1; }

/* ---------------------------------------------------------
   Final CTA
   --------------------------------------------------------- */
.ecan-final-cta { background: var(--ecan-green); padding: 52px 0; color: #fff; }
.ecan-final-cta h2 { color: #fff; margin-bottom: 6px; font-size: 1.7rem; }
.ecan-final-cta p { color: rgba(255,255,255,.85); margin-bottom: 0; }

/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */
.ecan-footer { background: var(--ecan-text); color: rgba(255,255,255,.7); padding: 72px 0 0; }
.ecan-footer h3 { color: #fff; font-family: var(--font-sans); font-size: 1rem; font-weight: 700; margin-bottom: 18px; }
.ecan-footer-about { font-size: .92rem; color: rgba(255,255,255,.65); }
.ecan-footer-social a { color: rgba(255,255,255,.75); font-size: 1.1rem; margin-right: 14px; }
.ecan-footer-social a:hover { color: var(--ecan-gold); }
.ecan-footer-links li { margin-bottom: 10px; }
.ecan-footer-links a { color: rgba(255,255,255,.68); font-size: .92rem; }
.ecan-footer-links a:hover { color: var(--ecan-gold); }
.ecan-footer-contact li { display: flex; gap: 8px; color: rgba(255,255,255,.68); font-size: .88rem; margin-bottom: 12px; }
.ecan-footer-contact i { color: var(--ecan-gold); margin-top: 3px; }

.ecan-footer-newsletter {
  border-top: 1px solid rgba(255,255,255,.12); border-bottom: 1px solid rgba(255,255,255,.12);
  margin-top: 56px; padding: 32px 0;
}
.ecan-footer-newsletter input { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); color: #fff; }
.ecan-footer-newsletter input::placeholder { color: rgba(255,255,255,.5); }
.ecan-footer-newsletter input:focus { background: rgba(255,255,255,.12); border-color: var(--ecan-gold); color: #fff; box-shadow: none; }

.ecan-footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  padding: 22px 0; font-size: .85rem; color: rgba(255,255,255,.55);
}
.ecan-footer-bottom a { color: var(--ecan-gold); font-weight: 600; }

/* ---------------------------------------------------------
   Scroll reveal (single, restrained entrance)
   --------------------------------------------------------- */
.ecan-reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.ecan-reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .ecan-reveal { opacity: 1; transform: none; transition: none; }
  .ecan-hero-slide { transition: none; }
}

/* ---------------------------------------------------------
   Interior page banner (About, Programmes, Events, etc.)
   --------------------------------------------------------- */
.ecan-page-banner {
  background: var(--ecan-text);
  background-size: cover; background-position: center;
  position: relative; padding: 68px 0 54px; color: #fff;
}
.ecan-page-banner::after { content:''; position:absolute; inset:0; background: linear-gradient(100deg, rgba(10,32,22,.88), rgba(10,32,22,.55)); }
.ecan-page-banner .container { position: relative; z-index: 2; }
.ecan-page-banner h1 { color: #fff; margin-bottom: 8px; font-size: clamp(1.8rem, 3vw, 2.5rem); }
.ecan-breadcrumb { font-size: .85rem; }
.ecan-breadcrumb a { color: rgba(255,255,255,.7); }
.ecan-breadcrumb a:hover { color: var(--ecan-gold); }
.ecan-breadcrumb .current { color: var(--ecan-gold); }

/* ---------------------------------------------------------
   Sub-nav tabs (About cluster, Events upcoming/past, etc.)
   --------------------------------------------------------- */
.ecan-tabs { border-bottom: 1px solid var(--ecan-border); margin-bottom: 40px; }
.ecan-tabs .nav-link {
  color: var(--ecan-text-muted); font-weight: 600; font-size: .92rem; border: none;
  border-bottom: 2px solid transparent; padding: 12px 18px; border-radius: 0;
}
.ecan-tabs .nav-link.active { color: var(--ecan-green-dark); border-bottom-color: var(--ecan-green); background: none; }

/* ---------------------------------------------------------
   Team / committee / chapter cards
   --------------------------------------------------------- */
.ecan-team-card {
  text-align: center;
  background: #fff;
  border: 1px solid var(--ecan-border);
  border-radius: var(--radius-md);
  padding: 20px 18px 24px;
  height: 100%;
  transition: box-shadow .22s ease, transform .22s ease, border-color .22s ease;
}
.ecan-team-card:hover { box-shadow: 0 16px 32px rgba(24,53,42,.12); transform: translateY(-4px); border-color: transparent; }
.ecan-team-photo {
  aspect-ratio: 4/5;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 18px;
  background: var(--ecan-green-light);
  position: relative;
}
.ecan-team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.ecan-team-photo::after {
  content: '';
  position: absolute; inset: 0;
  box-shadow: inset 0 -40px 40px -20px rgba(0,0,0,.18);
  pointer-events: none;
}
.ecan-team-card h3 { font-size: 1.02rem; margin-bottom: 4px; }
.ecan-team-card .role {
  font-size: .82rem; color: var(--ecan-green-dark); font-weight: 700;
  text-transform: uppercase; letter-spacing: .03em;
  display: inline-block; padding-top: 8px; border-top: 2px solid var(--ecan-gold); margin-top: 6px;
}
.ecan-team-grid { justify-content: center; }
.ecan-team-card-trigger { cursor: pointer; display: block; font-family: inherit; color: inherit; appearance: none; -webkit-appearance: none; }
.ecan-team-card-trigger:focus-visible { outline: 3px solid var(--ecan-gold); outline-offset: 3px; }
.ecan-team-view-link {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .78rem; font-weight: 700; color: var(--ecan-green-dark);
  margin-top: 10px; opacity: 0; transform: translateY(2px);
  transition: opacity .2s ease, transform .2s ease;
}
.ecan-team-card:hover .ecan-team-view-link { opacity: 1; transform: translateY(0); }

/* ---------------------------------------------------------
   Team member profile modal
   --------------------------------------------------------- */
.ecan-profile-modal { border: none; border-radius: var(--radius-md); overflow: hidden; }
.ecan-profile-modal .modal-body { padding: 0 32px 32px; text-align: center; }
.ecan-profile-modal-photo {
  width: 110px; height: 110px; border-radius: 50%; overflow: hidden;
  margin: 0 auto 18px; border: 3px solid var(--ecan-green-light); background: var(--ecan-green-light);
}
.ecan-profile-modal-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.ecan-profile-modal-name { font-size: 1.2rem; margin-bottom: 2px; }
.ecan-profile-modal-role {
  font-size: .85rem; font-weight: 700; color: var(--ecan-green-dark);
  text-transform: uppercase; letter-spacing: .03em; margin-bottom: 16px;
}
.ecan-profile-modal-links { display: flex; justify-content: center; gap: 10px; margin-bottom: 18px; }
.ecan-profile-modal-links a {
  width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--ecan-green-light); color: var(--ecan-green-dark); font-size: 1.05rem;
}
.ecan-profile-modal-links a:hover { background: var(--ecan-green); color: #fff; }
.ecan-profile-modal-bio { font-size: .92rem; text-align: left; margin-bottom: 0; }

.ecan-chapter-card, .ecan-committee-card {
  border: 1px solid var(--ecan-border); border-radius: var(--radius-md); padding: 24px; height: 100%; background: #fff;
}
.ecan-chapter-card h3, .ecan-committee-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.ecan-chapter-card ul { font-size: .88rem; color: var(--ecan-text-muted); list-style: none; padding: 0; margin: 12px 0 0; }
.ecan-chapter-card ul li { margin-bottom: 6px; }

/* ---------------------------------------------------------
   Content page prose (About, Vision, History, Objectives)
   --------------------------------------------------------- */
.ecan-prose { max-width: 780px; font-size: 1.02rem; }
.ecan-prose h2 { margin-top: 2rem; font-size: 1.4rem; }
.ecan-prose p { margin-bottom: 1.1rem; }
.ecan-prose ul { margin-bottom: 1.1rem; }

/* ---------------------------------------------------------
   Contact page
   --------------------------------------------------------- */
.ecan-contact-card { background: #fff; border: 1px solid var(--ecan-border); border-radius: var(--radius-md); padding: 32px; }
.ecan-contact-info-item { display: flex; gap: 14px; margin-bottom: 22px; }
.ecan-contact-info-item i { width: 42px; height: 42px; flex-shrink: 0; border-radius: var(--radius-sm); background: var(--ecan-green-light); color: var(--ecan-green-dark); display: flex; align-items: center; justify-content: center; }
.ecan-contact-info-item h4 { font-size: .95rem; margin-bottom: 2px; }
.ecan-contact-info-item p { font-size: .9rem; margin-bottom: 0; }
.ecan-map-frame { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--ecan-border); }
.ecan-map-frame iframe { width: 100%; height: 320px; border: 0; display: block; }

/* ---------------------------------------------------------
   News / events listing filters, pagination
   --------------------------------------------------------- */
.ecan-filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.ecan-filter-bar a {
  padding: 8px 16px; border-radius: 20px; font-size: .85rem; font-weight: 600;
  background: #fff; border: 1px solid var(--ecan-border); color: var(--ecan-text-muted);
}
.ecan-filter-bar a.is-active, .ecan-filter-bar a:hover { background: var(--ecan-green); border-color: var(--ecan-green); color: #fff; }

.ecan-pagination { display: flex; gap: 6px; justify-content: center; margin-top: 40px; }
.ecan-pagination a, .ecan-pagination span {
  min-width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); border: 1px solid var(--ecan-border); font-size: .88rem; font-weight: 600; color: var(--ecan-text);
}
.ecan-pagination a:hover { border-color: var(--ecan-green); color: var(--ecan-green-dark); }
.ecan-pagination .is-active { background: var(--ecan-green); border-color: var(--ecan-green); color: #fff; }

/* ---------------------------------------------------------
   Gallery lightbox
   --------------------------------------------------------- */
.ecan-gallery-item { border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 4/3; cursor: pointer; position: relative; }
.ecan-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.ecan-gallery-item:hover img { transform: scale(1.05); }
.ecan-gallery-caption { position:absolute; left:0; right:0; bottom:0; padding: 10px 12px; font-size:.78rem; color:#fff; background: linear-gradient(0deg, rgba(0,0,0,.65), transparent); }

.ecan-lightbox-overlay {
  position: fixed; inset: 0; background: rgba(10,20,15,.92); z-index: 2000;
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.ecan-lightbox-overlay.is-open { display: flex; }
.ecan-lightbox-overlay img { max-width: 90vw; max-height: 82vh; border-radius: var(--radius-sm); }
.ecan-lightbox-close, .ecan-lightbox-prev, .ecan-lightbox-next {
  position: absolute; background: rgba(255,255,255,.1); border: none; color: #fff; width: 46px; height: 46px;
  border-radius: 50%; font-size: 1.3rem; display: flex; align-items: center; justify-content: center;
}
.ecan-lightbox-close { top: 24px; right: 24px; }
.ecan-lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.ecan-lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }
.ecan-lightbox-close:hover, .ecan-lightbox-prev:hover, .ecan-lightbox-next:hover { background: var(--ecan-green); }
.ecan-lightbox-caption { position: absolute; bottom: 24px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.8); font-size: .9rem; }

/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */
@media (max-width: 991.98px) {
  .ecan-hero { min-height: 560px; }
  .ecan-section { padding: 64px 0; }
  .ecan-about-media .ecan-badge-card { position: static; margin-top: 16px; max-width: none; }
  .ecan-programme-feature-body { padding: 32px; }
}
@media (max-width: 575.98px) {
  .ecan-hero-content { padding: 64px 0; }
  .ecan-membership-cta { padding: 32px 22px; }
}


/* =========================================================
   ECAN HISTORY PAGE
   Brand:
   Primary Green: #01964A
   Dark Green:    #006B3C
   Light Green:   #EAF7F0
   Gold:          #F2C94C
   Dark Text:     #18352A
========================================================= */

:root {
    --ecan-primary: #01964A;
    --ecan-dark: #006B3C;
    --ecan-light: #EAF7F0;
    --ecan-gold: #F2C94C;
    --ecan-text: #18352A;
    --ecan-muted: #60766B;
    --ecan-white: #FFFFFF;
    --ecan-border: #DDECE4;
}


/* =========================================================
   HERO
========================================================= */

.ecan-history-hero {
    position: relative;
    min-height: 430px;
    display: flex;
    align-items: center;
    background:
        url('../img/history-bg.jpg')
        center center / cover no-repeat;
    overflow: hidden;
}

.ecan-history-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            110deg,
            rgba(0, 107, 60, 0.94),
            rgba(1, 150, 74, 0.78)
        );
}

.ecan-history-hero::after {
    content: "";
    position: absolute;
    width: 450px;
    height: 450px;
    right: -180px;
    top: -180px;
    border: 1px solid rgba(242, 201, 76, 0.35);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 70px 0;
    max-width: 760px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--ecan-gold);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.hero-content h1 {
    color: #fff;
    font-size: clamp(42px, 6vw, 68px);
    line-height: 1.05;
    font-weight: 800;
    margin: 0;
}

.hero-divider {
    width: 70px;
    height: 4px;
    background: var(--ecan-gold);
    margin: 25px 0;
    border-radius: 10px;
}

.hero-content p {
    color: rgba(255, 255, 255, 0.92);
    font-size: 18px;
    line-height: 1.8;
    max-width: 680px;
    margin: 0;
}


/* =========================================================
   MAIN SECTION
========================================================= */

.ecan-history-section {
    padding: 100px 0;
    background: #fff;
    color: var(--ecan-text);
}

.history-intro {
    margin-bottom: 110px;
}


/* =========================================================
   IMAGES
========================================================= */

.history-image-wrapper {
    position: relative;
    border-radius: 18px;
    overflow: visible;
    padding-right: 14px;
    padding-bottom: 14px;
}

.history-image-wrapper::before {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 80%;
    height: 80%;
    background: var(--ecan-light);
    border-radius: 18px;
    z-index: 0;
}

.history-image {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    min-height: 430px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(24, 53, 42, 0.15);
}

.image-accent {
    position: absolute;
    z-index: 3;
    left: -12px;
    top: 35px;
    width: 6px;
    height: 100px;
    background: var(--ecan-gold);
    border-radius: 10px;
}

.image-accent-left {
    left: auto;
    right: -12px;
}

.history-image-badge {
    position: absolute;
    z-index: 5;
    left: 25px;
    bottom: 30px;
    display: flex;
    flex-direction: column;
    background: #fff;
    padding: 16px 22px;
    border-radius: 10px;
    box-shadow: 0 12px 35px rgba(24, 53, 42, 0.18);
    border-left: 4px solid var(--ecan-gold);
}

.badge-year {
    color: var(--ecan-dark);
    font-size: 27px;
    line-height: 1;
    font-weight: 800;
}

.badge-text {
    color: var(--ecan-muted);
    font-size: 12px;
    font-weight: 600;
    margin-top: 5px;
}

.photo-caption {
    position: absolute;
    z-index: 5;
    bottom: 28px;
    right: 25px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--ecan-dark);
    color: #fff;
    padding: 11px 17px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(0, 107, 60, 0.25);
}

.photo-caption i {
    color: var(--ecan-gold);
}


/* =========================================================
   SECTION HEADINGS
========================================================= */

.ecan-section-heading {
    margin-bottom: 25px;
}

.ecan-section-heading > span {
    display: inline-block;
    position: relative;
    color: var(--ecan-primary);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.7px;
    padding-left: 38px;
    margin-bottom: 12px;
}

.ecan-section-heading > span::before {
    content: "";
    position: absolute;
    width: 27px;
    height: 3px;
    background: var(--ecan-gold);
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 5px;
}

.ecan-section-heading h2 {
    color: var(--ecan-text);
    font-size: clamp(30px, 4vw, 43px);
    line-height: 1.2;
    font-weight: 800;
    margin: 0;
}

.centered-heading {
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.centered-heading > span {
    padding-left: 0;
}

.centered-heading > span::before {
    display: none;
}

.centered-heading p {
    color: var(--ecan-muted);
    line-height: 1.8;
    margin-top: 18px;
}


/* =========================================================
   BODY TYPOGRAPHY
========================================================= */

.history-content p,
.history-story-block > .row p {
    color: var(--ecan-muted);
    font-size: 16px;
    line-height: 1.9;
    margin-bottom: 18px;
}

.history-content strong,
.history-story-block strong {
    color: var(--ecan-dark);
}


/* =========================================================
   HIGHLIGHT
========================================================= */

.history-highlight {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    background: var(--ecan-light);
    border-left: 4px solid var(--ecan-primary);
    padding: 22px 24px;
    margin-top: 28px;
    border-radius: 0 12px 12px 0;
}

.history-highlight > i {
    color: var(--ecan-gold);
    font-size: 22px;
    margin-top: 3px;
}

.history-highlight strong {
    display: block;
    color: var(--ecan-dark);
    margin-bottom: 5px;
}


/* =========================================================
   BEGINNING / STORY BLOCK
========================================================= */

.history-story-block {
    position: relative;
    background: var(--ecan-light);
    padding: 75px 50px;
    margin-bottom: 110px;
    border-radius: 22px;
    overflow: hidden;
}

.history-story-block::before {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    right: -100px;
    top: -100px;
    border: 35px solid rgba(1, 150, 74, 0.05);
    border-radius: 50%;
}

.history-number {
    text-align: center;
    margin-bottom: 10px;
}

.history-number span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    background: var(--ecan-dark);
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    border-radius: 50%;
    box-shadow: 0 10px 25px rgba(0, 107, 60, 0.2);
}

.founder-callout {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: #fff;
    padding: 25px;
    margin-top: 30px;
    border-radius: 14px;
    border: 1px solid var(--ecan-border);
    box-shadow: 0 10px 35px rgba(24, 53, 42, 0.07);
}

.founder-icon {
    flex: 0 0 55px;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ecan-dark);
    color: var(--ecan-gold);
    border-radius: 12px;
    font-size: 20px;
}

.founder-callout > div:last-child > span {
    color: var(--ecan-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 11px;
    font-weight: 800;
}

.founder-callout h4 {
    color: var(--ecan-text);
    font-size: 21px;
    margin: 5px 0 8px;
    font-weight: 800;
}

.founder-callout p {
    margin-bottom: 0;
    font-size: 14px;
}


/* =========================================================
   FOUNDATION
========================================================= */

.foundation-section {
    margin-bottom: 110px;
}

.foundation-points {
    margin-top: 28px;
}

.foundation-point {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 13px;
    color: var(--ecan-text);
    font-weight: 600;
    font-size: 14px;
}

.foundation-point i {
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ecan-light);
    color: var(--ecan-primary);
    border-radius: 50%;
    font-size: 11px;
}


/* =========================================================
   MILESTONES
========================================================= */

.timeline-section {
    margin-bottom: 110px;
}

.milestone-grid {
    margin-top: 45px;
}

.milestone-card {
    position: relative;
    height: 100%;
    background: #fff;
    border: 1px solid var(--ecan-border);
    border-radius: 16px;
    padding: 38px 30px 32px;
    text-align: center;
    overflow: hidden;
    transition: all 0.3s ease;
}

.milestone-card:hover {
    transform: translateY(-8px);
    border-color: rgba(1, 150, 74, 0.25);
    box-shadow: 0 18px 45px rgba(24, 53, 42, 0.11);
}

.milestone-icon {
    width: 68px;
    height: 68px;
    margin: 0 auto 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ecan-light);
    color: var(--ecan-primary);
    border-radius: 50%;
    font-size: 25px;
}

.milestone-year {
    color: var(--ecan-primary);
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
}

.milestone-card h3 {
    color: var(--ecan-text);
    font-size: 20px;
    font-weight: 750;
    margin-bottom: 13px;
}

.milestone-card p {
    color: var(--ecan-muted);
    line-height: 1.7;
    font-size: 14px;
    margin-bottom: 20px;
}

.card-line {
    width: 40px;
    height: 3px;
    background: var(--ecan-gold);
    margin: auto;
    border-radius: 10px;
}


/* =========================================================
   IMPACT
========================================================= */

.impact-section {
    background: var(--ecan-dark);
    border-radius: 22px;
    padding: 75px 65px;
    margin-bottom: 110px;
    overflow: hidden;
}

.impact-section .ecan-section-heading > span {
    color: var(--ecan-gold);
}

.impact-section .ecan-section-heading h2 {
    color: #fff;
}

.impact-section .history-content p {
    color: rgba(255, 255, 255, 0.78);
}

.impact-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 35px;
    margin-top: 30px;
}

.impact-stat {
    display: flex;
    flex-direction: column;
}

.impact-stat strong {
    color: var(--ecan-gold);
    font-size: 27px;
    font-weight: 800;
    line-height: 1;
}

.impact-stat span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    margin-top: 7px;
}

.impact-visual {
    position: relative;
    width: 300px;
    height: 300px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.impact-circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(242, 201, 76, 0.35);
}

.circle-one {
    width: 260px;
    height: 260px;
}

.circle-two {
    width: 190px;
    height: 190px;
    border-color: rgba(255, 255, 255, 0.18);
}

.impact-center {
    position: relative;
    z-index: 2;
    width: 125px;
    height: 125px;
    border-radius: 50%;
    background: var(--ecan-primary);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.impact-center i {
    color: var(--ecan-gold);
    font-size: 25px;
    margin-bottom: 7px;
}

.impact-center span {
    font-weight: 800;
    font-size: 17px;
}

.impact-center small {
    color: rgba(255, 255, 255, 0.75);
    font-size: 9px;
    margin-top: 3px;
}


/* =========================================================
   PUBLICATION
========================================================= */

.publication-section {
    padding-bottom: 30px;
}

.publication-image-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(24, 53, 42, 0.15);
}

.publication-image {
    display: block;
    width: 100%;
    height: 430px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.publication-image-wrapper:hover .publication-image {
    transform: scale(1.04);
}

.publication-label {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 107, 60, 0.94);
    color: #fff;
    padding: 14px 17px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 700;
}

.publication-label i {
    color: var(--ecan-gold);
}

.publication-feature {
    display: flex;
    gap: 17px;
    margin-top: 28px;
    padding: 22px;
    background: var(--ecan-light);
    border-radius: 12px;
    border-top: 3px solid var(--ecan-gold);
}

.publication-feature > i {
    color: var(--ecan-primary);
    font-size: 23px;
    margin-top: 3px;
}

.publication-feature strong {
    display: block;
    color: var(--ecan-dark);
    margin-bottom: 5px;
}

.publication-feature p {
    margin: 0;
    font-size: 14px;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 991px) {

    .ecan-history-section {
        padding: 70px 0;
    }

    .history-intro,
    .foundation-section,
    .timeline-section,
    .impact-section {
        margin-bottom: 75px;
    }

    .history-story-block {
        padding: 55px 30px;
        margin-bottom: 75px;
    }

    .impact-section {
        padding: 55px 35px;
    }

    .impact-visual {
        margin-top: 35px;
    }

    .publication-section {
        padding-bottom: 0;
    }
}


@media (max-width: 767px) {

    .ecan-history-hero {
        min-height: 390px;
    }

    .hero-content {
        padding: 55px 0;
    }

    .hero-content p {
        font-size: 16px;
    }

    .ecan-history-section {
        padding: 55px 0;
    }

    .history-intro {
        margin-bottom: 65px;
    }

    .history-image {
        min-height: 300px;
    }

    .ecan-section-heading h2 {
        font-size: 30px;
    }

    .history-story-block {
        padding: 45px 20px;
        border-radius: 15px;
    }

    .founder-callout {
        flex-direction: column;
    }

    .impact-section {
        padding: 45px 25px;
        border-radius: 15px;
    }

    .impact-stats {
        gap: 22px;
    }

    .impact-stat strong {
        font-size: 22px;
    }

    .impact-visual {
        width: 250px;
        height: 250px;
    }

    .circle-one {
        width: 220px;
        height: 220px;
    }

    .circle-two {
        width: 160px;
        height: 160px;
    }

    .publication-image {
        height: 320px;
    }

    .history-image-badge {
        left: 15px;
        bottom: 20px;
    }
}


@media (max-width: 480px) {

    .ecan-history-hero {
        min-height: 350px;
    }

    .hero-content h1 {
        font-size: 40px;
    }

    .hero-content p {
        font-size: 15px;
        line-height: 1.7;
    }

    .ecan-section-heading h2 {
        font-size: 27px;
    }

    .history-highlight,
    .publication-feature {
        flex-direction: column;
    }

    .impact-stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .impact-stat:last-child {
        grid-column: 1 / -1;
    }

    .impact-visual {
        width: 220px;
        height: 220px;
    }

    .circle-one {
        width: 195px;
        height: 195px;
    }

    .circle-two {
        width: 140px;
        height: 140px;
    }
}


