:root{
  --navy:#09275b;
  --blue:#1d5fc7;
  --gold:#f2ad24;
  --cream:#fbf5ec;
  --ink:#17243a;
  --muted:#617086;
  --green:#34724d;
  --purple:#533681;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Arial,Helvetica,sans-serif;
  color:var(--ink);
  background:var(--cream);
}
a{color:inherit}

/* HEADER — matched to contact.html */
.ep-site-header{
  background:#fff;
  border-bottom:1px solid rgba(9,39,91,.08);
  position:relative;
  z-index:20;
}
.ep-nav-inner{
  max-width:1320px;
  margin:auto;
  min-height:82px;
  padding:0 55px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:30px;
}
.ep-brand{
  color:var(--navy);
  font-size:25px;
  font-weight:900;
  letter-spacing:-1px;
  text-decoration:none;
  white-space:nowrap;
}
.ep-brand span{color:var(--blue)}
.ep-menu{display:flex;align-items:center;gap:4px}
.ep-menu>a,.ep-dropdown-button{
  padding:12px 14px;
  color:var(--ink);
  text-decoration:none;
  font-size:14px;
  font-weight:700;
  background:none;
  border:0;
  cursor:pointer;
  font-family:inherit;
}
.ep-menu>a:hover,.ep-dropdown-button:hover{color:var(--blue)}
.ep-dropdown{position:relative}
.ep-dropdown-menu{
  display:none;
  position:absolute;
  right:0;
  top:100%;
  min-width:190px;
  padding:8px;
  background:#fff;
  border:1px solid rgba(9,39,91,.09);
  border-radius:12px;
  box-shadow:0 14px 35px rgba(9,39,91,.12);
}
.ep-dropdown-open .ep-dropdown-menu{display:block}
.ep-dropdown-menu a{
  display:block;
  padding:11px 13px;
  color:var(--ink);
  text-decoration:none;
  border-radius:8px;
  font-size:14px;
}
.ep-dropdown-menu a:hover{background:var(--cream);color:var(--blue)}
.ep-menu-toggle{
  display:none;
  background:none;
  border:0;
  padding:8px;
  cursor:pointer;
}
.ep-menu-toggle span{
  display:block;
  width:25px;
  height:2px;
  background:var(--navy);
  margin:5px 0;
}

/* PAGE — matched to contact.html */
.ep-page{
  max-width:1320px;
  margin:auto;
  padding:58px 55px 80px;
}
.ep-page-title{
  text-align:center;
  max-width:950px;
  margin:0 auto 48px;
}
.ep-eyebrow{
  color:var(--blue);
  font-size:13px;
  font-weight:800;
  letter-spacing:2.5px;
  text-transform:uppercase;
  margin-bottom:14px;
}
.ep-page-title h1{
  margin:0;
  color:var(--navy);
  font-size:clamp(48px,6vw,76px);
  line-height:1;
  letter-spacing:-3px;
}
.ep-rule{
  width:88px;
  height:6px;
  margin:20px auto 0;
  border-radius:20px;
  background:var(--gold);
}

/* EVENTS */
.ep-intro{
  max-width:850px;
  margin:0 auto 34px;
  text-align:center;
}
.ep-intro p{
  margin:0;
  color:var(--muted);
  font-size:18px;
  line-height:1.65;
}

.ep-section-heading{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:20px;
  margin:42px 0 20px;
}
.ep-section-heading h2{
  margin:0;
  color:var(--navy);
  font-size:32px;
  letter-spacing:-1px;
}
.ep-section-heading .ep-section-rule{
  flex:1;
  height:1px;
  background:rgba(9,39,91,.12);
  margin-bottom:7px;
}

.ep-feature{
  display:grid;
  grid-template-columns:.75fr 1.25fr;
  gap:22px;
  align-items:stretch;
  margin-bottom:22px;
}
.ep-feature-visual{
  min-height:460px;
  border-radius:28px;
  overflow:hidden;
  background:#dcebf7;
}
.ep-feature-visual img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  display:block;
}
.ep-card{
  padding:30px;
  background:rgba(255,255,255,.36);
  border-radius:26px;
  border:1px solid rgba(9,39,91,.055);
}
.ep-card h2{
  margin:0 0 14px;
  color:var(--navy);
  font-size:25px;
  letter-spacing:-.5px;
}
.ep-card p{
  margin:0;
  color:var(--ink);
  font-size:17px;
  line-height:1.65;
}
.ep-event-meta{
  display:grid;
  gap:15px;
}
.ep-meta-item{
  display:grid;
  grid-template-columns:46px 1fr;
  gap:13px;
  align-items:start;
}
.ep-icon{
  width:46px;
  height:46px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  font-size:20px;
  font-weight:900;
}
.ep-icon.orange{background:#ed7b20}
.ep-icon.green{background:var(--green)}
.ep-icon.purple{background:var(--purple)}
.ep-meta-item strong{
  display:block;
  color:var(--navy);
  font-size:14px;
  text-transform:uppercase;
  letter-spacing:1px;
  margin-bottom:4px;
}
.ep-meta-item span{
  color:var(--ink);
  font-size:16px;
  line-height:1.55;
}

.ep-button{
  display:inline-flex;
  align-items:center;
  gap:12px;
  padding:14px 21px;
  border-radius:9px;
  background:var(--blue);
  color:#fff;
  text-decoration:none;
  font-weight:800;
  box-shadow:0 9px 22px rgba(29,95,199,.22);
  transition:.18s ease;
  margin-top:22px;
}
.ep-button:hover{
  background:var(--navy);
  transform:translateY(-2px);
}

/* Accordion */
.ep-accordion{
  display:grid;
  gap:12px;
}
.ep-event{
  background:rgba(255,255,255,.58);
  border:1px solid rgba(9,39,91,.08);
  border-radius:18px;
  overflow:hidden;
}
.ep-event-button{
  width:100%;
  border:0;
  background:transparent;
  padding:21px 24px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  text-align:left;
  color:var(--navy);
  font:inherit;
  font-size:18px;
  font-weight:800;
  cursor:pointer;
}
.ep-event-button:hover{
  background:rgba(255,255,255,.75);
}
.ep-event-button:focus-visible{
  outline:3px solid rgba(29,95,199,.35);
  outline-offset:-3px;
}
.ep-event-title{line-height:1.35}
.ep-chevron{
  flex:0 0 auto;
  width:32px;
  height:32px;
  border-radius:50%;
  background:var(--cream);
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--blue);
  font-size:20px;
  transition:transform .18s ease,background .18s ease;
}
.ep-event.open .ep-chevron{
  transform:rotate(180deg);
  background:#fff;
}
.ep-event-content{
  display:grid;
  grid-template-rows:0fr;
  transition:grid-template-rows .25s ease;
}
.ep-event.open .ep-event-content{grid-template-rows:1fr}
.ep-event-content-inner{
  overflow:hidden;
  min-height:0;
  padding:0 24px;
}
.ep-event.open .ep-event-content-inner{
  padding:0 24px 24px;
}
.ep-event-details{
  padding-top:2px;
  border-top:1px solid rgba(9,39,91,.08);
}
.ep-event-details p{
  margin:18px 0 0;
  color:var(--ink);
  font-size:16px;
  line-height:1.7;
}
.ep-event-details b{color:var(--navy)}
.ep-event-details a{
  color:var(--blue);
  font-weight:700;
  text-decoration:underline;
}
.ep-event-details a:hover{color:var(--navy)}

.ep-gallery{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:18px 0 4px;
  align-items:flex-start;
}
.ep-gallery a{
  display:block;
  width:120px;
  height:82px;
  border-radius:10px;
  overflow:hidden;
  background:#fff;
  border:1px solid rgba(9,39,91,.08);
}
.ep-gallery img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition:transform .18s ease;
}
.ep-gallery a:hover img{transform:scale(1.04)}
.ep-video{
  width:240px;
  max-width:100%;
  margin:18px 0 4px;
  border-radius:10px;
  display:block;
}

.ep-past-note{
  max-width:800px;
  margin:0 0 20px;
  color:var(--muted);
  font-size:16px;
  line-height:1.6;
}

.ep-callout{
  margin-top:42px;
  padding:48px 55px;
  border-radius:26px;
  background:var(--navy);
  color:#fff;
  text-align:center;
}
.ep-callout h2{
  margin:0;
  font-size:clamp(32px,4vw,46px);
  letter-spacing:-1px;
}
.ep-callout p{
  max-width:760px;
  margin:17px auto 25px;
  color:rgba(255,255,255,.82);
  font-size:17px;
  line-height:1.65;
}
.ep-callout .ep-button{
  background:var(--gold);
  color:var(--navy);
  box-shadow:none;
}

/* FOOTER — matched to contact.html */
.ep-footer{
  padding:50px 24px;
  background:#fffdf9;
  border-top:1px solid rgba(9,39,91,.08);
}
.ep-footer-inner{
  max-width:1100px;
  margin:auto;
  display:flex;
  justify-content:space-between;
  gap:40px;
}
.ep-footer h3{
  color:var(--navy);
  margin:0 0 10px;
}
.ep-footer p{
  color:var(--muted);
  margin:0;
  line-height:1.6;
}

/* RESPONSIVE */
@media(max-width:900px){
  .ep-nav-inner{min-height:70px;padding:0 28px}
  .ep-menu-toggle{display:block}
  .ep-menu{
    display:none;
    position:absolute;
    left:20px;
    right:20px;
    top:70px;
    padding:10px;
    background:#fff;
    border:1px solid rgba(9,39,91,.09);
    border-radius:14px;
    box-shadow:0 14px 35px rgba(9,39,91,.12);
    flex-direction:column;
    align-items:stretch;
  }
  .ep-menu.ep-menu-open{display:flex}
  .ep-menu>a,.ep-dropdown-button{
    display:block;
    width:100%;
    text-align:left;
    padding:13px 14px;
  }
  .ep-dropdown-menu{
    position:static;
    box-shadow:none;
    border:0;
    padding:0 0 6px 12px;
  }
  .ep-page{padding:48px 24px 65px}
  .ep-feature{grid-template-columns:1fr}
  .ep-feature-visual{min-height:420px}
}
@media(max-width:600px){
  .ep-page-title{margin-bottom:34px}
  .ep-page-title h1{font-size:48px}
  .ep-section-heading h2{font-size:28px}
  .ep-card{padding:25px}
  .ep-feature-visual{min-height:360px;border-radius:22px}
  .ep-event-button{padding:18px 18px;font-size:16px}
  .ep-event-content-inner{padding-left:18px;padding-right:18px}
  .ep-event.open .ep-event-content-inner{padding-left:18px;padding-right:18px;padding-bottom:20px}
  .ep-gallery a{width:105px;height:74px}
  .ep-callout{padding:40px 25px}
  .ep-footer-inner{flex-direction:column}
}
@media(prefers-reduced-motion:reduce){
  *{scroll-behavior:auto!important;transition:none!important}
}


  /* Keep the Workshops link integrated with the dropdown and remove underlines. */
  .ep-dropdown-heading { display: flex; align-items: center; }
  .ep-dropdown-link,
  .ep-dropdown-link:hover,
  .ep-dropdown-link:focus,
  .ep-dropdown-link:visited {
    color: inherit;
    font: inherit;
    text-decoration: none;
  }
  .ep-dropdown-link { display: inline-flex; align-items: center; }
  
/* Dropdown layering and reliable hover support for desktop, click support on touch */
.ep-site-header { z-index: 100; }
.ep-dropdown { z-index: 101; }
.ep-dropdown-menu { z-index: 102; }
@media (hover: hover) and (min-width: 901px) {
  .ep-dropdown:hover .ep-dropdown-menu,
  .ep-dropdown:focus-within .ep-dropdown-menu { display: block; }
}

/* Navigation dropdown layering and positioning */
.ep-dropdown {
    position: relative;
    z-index: 101;
}

.ep-dropdown-menu {
    z-index: 102;
}

/* Show dropdown when opened by JavaScript */
.ep-dropdown-open .ep-dropdown-menu {
    display: block;
}

/* Desktop dropdown hover and keyboard support */
@media (hover: hover) and (min-width: 901px) {
    .ep-dropdown:hover .ep-dropdown-menu,
    .ep-dropdown:focus-within .ep-dropdown-menu {
        display: block;
    }
}

  /* Keep the Workshops link integrated with the dropdown and remove underlines. */
  .ep-dropdown-heading { display: flex; align-items: center; }
  .ep-dropdown-link,
  .ep-dropdown-link:hover,
  .ep-dropdown-link:focus,
  .ep-dropdown-link:visited {
    color: inherit;
    font: inherit;
    text-decoration: none;
  }
  .ep-dropdown-link { display: inline-flex; align-items: center; }
  
.ep-dropdown-open .ep-dropdown-menu {
  display: block;
}

.ep-menu-toggle, 
.ep-dropdown-button, 
.ep-event-button,
body {
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(0,0,0,0); /* Removes the ugly gray flash overlay on tap */
}


@media (max-width: 900px) {
  .ep-menu {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    z-index: 1001;
  }
  .ep-site-header {
    z-index: 1000;
    isolation: isolate;
  }
  .ep-dropdown-open .ep-dropdown-menu {
    display: block;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }
}

/* Workshops: label is a link, arrow is the submenu toggle */
.ep-dropdown-heading { display: flex; align-items: center; }
.ep-dropdown-heading .ep-dropdown-link,
.ep-dropdown-heading .ep-dropdown-link:visited {
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  padding-right: 4px;
}
.ep-dropdown-heading .ep-dropdown-link:hover,
.ep-dropdown-heading .ep-dropdown-link:focus-visible { color: var(--blue); }
.ep-dropdown-heading .ep-dropdown-button { padding-left: 4px; }

@media (max-width: 900px) {
  .ep-dropdown-heading .ep-dropdown-link { flex: 1; padding: 13px 14px; }
  .ep-dropdown-heading .ep-dropdown-button { width: auto; padding: 13px 14px; }
}