/* Year Filter Tabs */
.ed-year-filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 40px 0 32px;
}

.ed-year-tabs {
  display: flex;
  gap: 14px;
}

.ed-year-tab {
  padding: 8px 24px;
  border-radius: 10px;
  border: 1px solid #023f6a;
  background: #fff;
  color: #023f6a;
  text-align: center;
  transition:
    background-color 0.2s,
    color 0.2s,
    border-color 0.2s;
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
  font-weight: 400;
  cursor: pointer;
}

.ed-year-tab:hover {
  border-color: #03489f;
  color: #03489f;
}

.ed-year-tab.active {
  background: #03489f;
  color: #fff;
  border-color: #03489f;
}

.ed-archive-select {
  padding: 8px 32px 8px 16px;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2300243d' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center;
  font-family: "Open Sans", sans-serif;
  font-size: 14px;
  color: #00243d;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

/* Mobile Year Dropdown — hidden on desktop */
.ed-year-mobile-dropdown {
  display: none;
  position: relative;
  width: 100%;
}

.ed-year-mobile-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 20px;
  border: none;
  border-radius: 14px;
  background: #03489F;
  color: #fff;
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
  cursor: pointer;
  transition: background-color 0.2s;
}

.ed-year-mobile-trigger:hover {
  background: #023f6a;
}

.ed-year-mobile-arrow {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.ed-year-mobile-dropdown.open .ed-year-mobile-arrow {
  transform: rotate(180deg);
}

.ed-year-mobile-list {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 36, 61, 0.12);
  z-index: 50;
  max-height: 280px;
  overflow-y: auto;
}

.ed-year-mobile-dropdown.open .ed-year-mobile-list {
  display: block;
}

.ed-year-mobile-option {
  padding: 10px 20px;
  font-family: "Open Sans", sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: #00243D;
  cursor: pointer;
  transition: background-color 0.15s;
}

.ed-year-mobile-option:hover {
  background: #f0f4f8;
}

.ed-year-mobile-option.active {
  font-weight: 600;
  color: #03489F;
  background: #E6F0F8;
}

/* Screen-reader only label */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Year Content Panels */
.ed-year-content {
  display: none;
}

.ed-year-content.active {
  display: block;
}

/* Hero Content Section */
.ed-hero-content {
  margin-bottom: 80px;
}

.ed-hero-layout {
  display: flex;
  gap: 42px;
  align-items: center;
}

.ed-hero-media {
  position: relative;
  width: 50%;
  height: 553px;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
}

.ed-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

.ed-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 12px;
}

.ed-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  cursor: pointer;
}

.ed-hero-text {
  flex: 1;
  min-width: 0;
}

.ed-hero-title {
  font-family: "Playfair Display", serif;
  font-size: 26px;
  font-weight: 500;
  color: #00243d;
  margin: 0 0 18px 0;
  line-height: 1.4;
}

.ed-hero-text p {
  font-size: 14px;
  line-height: 175%;
  color: #00243d;
  margin: 0;
}

.ed-hero-text a {
  color: #03489f;
  text-decoration: underline;
}

/* Accordion Sections */
.ed-accordion-section {
  margin-bottom: 12px;
}

.ed-accordion {
  border-bottom: 1px solid #d1d5db;
  padding: 0 30px 0 30px;
  border-radius: 20px;
}

.ed-accordion.open {
  background: #FFF5E5;
  border-bottom: 1px solid #FAA011;
}

.ed-accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  padding: 20px 0;
  cursor: pointer;
  font-family: "Playfair Display", serif;
  font-size: 22px;
  font-weight: 500;
  color: #00243d;
  text-align: left;
}

.ed-accordion-arrow {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
  will-change: transform;
}

.ed-accordion.open .ed-accordion-arrow {
  transform: rotate(180deg);
}

.ed-accordion-body {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.4s ease,
    padding 0.4s ease;
  padding: 0;
  will-change: max-height;
  display: flex;
  gap: 42px;
  align-items: center;
}

.ed-accordion.open .ed-accordion-body {
  max-height: 2000px;
  padding: 0 0 28px 0;
}

/* Accordion image styling */
.ed-accordion-image {
  width: 45%;
  min-height: 300px;
  object-fit: cover;
  display: block;
  border-radius: 12px;
  flex-shrink: 0;
}

/* Accordion body text styling */
.ed-accordion-body>p {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  line-height: 175%;
  color: #00243d;
  margin: 0;
}

.ed-accordion-text {
  flex: 1;
  min-width: 0;
}

.ed-accordion-text p {
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 160%;
  color: #00243D;
}

.ed-accordion-text p+p {
  margin-top: 16px;
}

.ed-accordion-text ul {
  padding-left: 17px;
  margin: 10px 0 0 0;
}
.ed-accordion-text ul li {
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 160%;
  color: #00243D;
  padding-bottom: 10px;
}

/* Activity blocks inside accordions */
.ed-accordion-body .ed-activity-block {
  background: #f5f0e8;
  border-radius: 14px;
  padding: 32px;
}

.ed-activity-block+.ed-activity-block {
  margin-top: 16px;
}

.ed-activity-block h4 {
  font-family: "Open Sans", sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #00243d;
  margin: 0 0 8px 0;
}

.ed-activity-block p {
  font-size: 14px;
  line-height: 175%;
  color: #00243d;
  margin: 0;
}

/* DAIScovery Journeys Series */
.daiscovery-journeys-section {
  margin: 60px 0;
}

/* Responsive */
@media (max-width: 1024px) {
  .ed-hero-layout {
    gap: 28px;
    /* padding: 28px; */
  }

  .ed-hero-title {
    font-size: 22px;
  }
}

@media (max-width: 820px) {
  .ed-hero-layout {
    flex-direction: column;
  }

  .ed-hero-media {
    width: 100%;
  }

  .ed-year-filter {
    flex-wrap: wrap;
    gap: 12px;
    overflow: visible;
    position: relative;
    z-index: 10;
  }

  .ed-year-tabs,
  .ed-archive-dropdown {
    display: none;
  }

  .ed-year-mobile-dropdown {
    display: block;
  }

  .ed-accordion-header {
    font-size: 18px;
    padding: 16px 0;
  }

  .ed-activity-block {
    padding: 24px;
  }

  .ed-accordion-body {
    flex-direction: column;
    gap: 20px;
  }

  .ed-accordion-image {
    width: 100%;
    min-height: 250px;
  }
  .ed-accordion {
    border-radius: 14px;
    padding: 0 20px 0 20px;
  }
}

@media (max-width: 479px) {
  .ed-hero-layout {
    padding: 20px;
    gap: 20px;
  }

  .ed-hero-title {
    font-size: 20px;
  }

  .ed-play-icon {
    width: 40px;
    height: 40px;
  }

  .ed-accordion-header {
    font-size: 16px;
  }

  .ed-accordion-body {
    flex-direction: column;
    gap: 16px;
  }

  .ed-accordion-image {
    width: 100%;
    min-height: 200px;
  }

  .ed-accordion-body .ed-activity-block {
    padding: 18px;
  }

  .ed-activity-block h4 {
    font-size: 14px;
  }

  .ed-activity-block p {
    font-size: 13px;
  }
}

/* Video Modal */
.video-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s,
    visibility 0.3s;
}

.video-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.video-modal {
  position: relative;
  width: 90%;
  max-width: 900px;
}

.video-modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
}

.video-modal-body {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}

.video-modal-body iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Split media + text block (UI similar to reference image) */
.ed-split-block {
  display: flex;
  gap: 32px;
  align-items: stretch;
  background: #fff6e7;
  border: 1px solid rgba(252, 163, 18, 0.35);
  border-radius: 16px;
  padding: 28px;
}

.ed-split-media {
  width: 42%;
  min-height: 220px;
  background: #d1d5db;
  border-radius: 14px;
  position: sticky;
  top: 24px;
}

.ed-split-text {
  flex: 1;
  min-width: 0;
  max-height: 500px;
  overflow: auto;
  padding-right: 10px;
  /* keep scroll bar from overlapping text */
  scrollbar-width: thin;
  /* Firefox */
}

.ed-split-text::-webkit-scrollbar {
  width: 6px;
}

.ed-split-text::-webkit-scrollbar-track {
  background: transparent;
}

.ed-split-text::-webkit-scrollbar-thumb {
  background: rgba(3, 72, 159, 0.35);
  border-radius: 999px;
}

.ed-split-text::-webkit-scrollbar-thumb:hover {
  background: rgba(3, 72, 159, 0.5);
}

.ed-split-text p {
  margin: 6px;
  font-family: "Open Sans", sans-serif;
  font-size: 14px;
  line-height: 175%;
  color: #00243d;
}

.ed-split-text p+p {
  margin-top: 16px;
}

.ed-split-text ul {
  margin: 0;
  padding-left: 18px;
  font-family: "Open Sans", sans-serif;
  font-size: 14px;
  line-height: 175%;
  color: #00243d;
  list-style: disc;
}

.ed-split-text p+ul {
  margin-top: 12px;
}

.ed-split-text ul li {
  margin: 0 0 12px 0;
}

.ed-split-text ul li:last-child {
  margin-bottom: 0;
}

.ed-split-text ul li::marker {
  color: #03489f;
}

.ed-split-text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--Blue-300, #03489f);
  color: #fff;
  font-family: "Open Sans", sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  margin-top: 16px;
}

.ed-split-text-button:hover {
  opacity: 0.92;
}

.ed-split-text .spa-text {
  color: var(--Blue-300, #03489f);
  text-decoration: none;
}

.ed-split-text .spa-text:hover {
  text-decoration: underline;
}

.ed-split-title {
  margin: 0 0 12px 0;
  font-family: "Playfair Display", serif;
  font-size: 18px;
  font-weight: 600;
  color: #00243d;
  line-height: 1.25;
}

.ed-sun-inline-icon {
  width: 16px;
  height: 16px;

  margin-top: 4px;
}

.ed-sun-row {
  display: flex;

  gap: 6px;
  align-items: flex-start;
  margin: 16px;
}

.ed-sun-row:last-child {
  margin-bottom: 0;
}

.ed-sun-row p {
  margin: 0;
}



@media (max-width: 820px) {
  .ed-split-block {
    padding: 20px;
  }

  .ed-split-media {
    width: 44%;
    min-height: 180px;
  }

  .ed-split-text {
    max-height: 280px;
  }
}

@media (max-width: 479px) {
  .ed-split-block {
    flex-direction: column;
    gap: 16px;
    padding: 18px;
  }

  .ed-split-media {
    width: 100%;
    min-height: 140px;
    position: relative;
    top: auto;
  }

  .ed-split-text {
    max-height: 220px;
  }
}

/* ===== Postcard PDF Link ===== */
.postcard-pdf {
  margin-bottom: 20px;
}

.postcard-pdf-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border: 1.5px solid #03489f;
  border-radius: 12px;
  background: #f0f6ff;
  color: #03489f;
  font-family: "Open Sans", sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s, border-color 0.2s;
}

.postcard-pdf-link:hover {
  background: #ddeafc;
  border-color: #023f6a;
}

.postcard-pdf-link svg {
  flex-shrink: 0;
}

/* ===== Postcard List ===== */
.postcard-list {
  display: flex;
  flex-direction: column;
}

.postcard-row {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px 20px;
  border-bottom: 1px solid #e5e7eb;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.2s;
}

.postcard-row:first-child {
  border-top: 1px solid #e5e7eb;
}

.postcard-row:hover {
  background: #f0f4f8;
}

.postcard-thumb {
  width: 160px;
  height: 90px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #e5e7eb;
}

.postcard-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.postcard-title {
  flex: 1;
  min-width: 0;
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #03489f;
  line-height: 1.4;
}

.postcard-year {
  flex-shrink: 0;
  font-family: "Open Sans", sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #03489f;
  min-width: 50px;
  text-align: right;
}

@media (max-width: 820px) {
  .postcard-row {
    gap: 16px;
    padding: 14px 16px;
  }

  .postcard-thumb {
    width: 120px;
    height: 70px;
  }

  .postcard-title {
    font-size: 14px;
  }

  .postcard-year {
    font-size: 16px;
  }
}

@media (max-width: 479px) {
  .postcard-row {
    gap: 12px;
    padding: 12px 0;
  }

  .postcard-thumb {
    width: 90px;
    height: 60px;
    border-radius: 6px;
  }

  .postcard-title {
    font-size: 13px;
  }

  .postcard-year {
    font-size: 14px;
    font-weight: 700;
  }
}