/* ===== Year Filter ===== */
.tie-year-filter {
  margin: 60px 0 32px;
}

/* ===== Year Filter Tabs ===== */
.tie-year-tabs {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.tie-tab {
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  padding: 8px 24px;
  border-radius: 10px;
  border: 1px solid #023f6a;
  background: transparent;
  color: #023f6a;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
  display: inline-block;
}

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

.tie-tab:hover:not(.tie-tab--active) {
  background: #e6f0f8;
}

.tie-archive-wrapper {
  position: relative;
}

.tie-archive-select {
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  padding: 8px 36px 8px 12px;
  border-radius: 10px;
  border: 1px solid #023f6a;
  background: transparent;
  color: #023f6a;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='14' height='8' viewBox='0 0 14 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L7 7L13 1' stroke='%23023F6A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

/* ===== Content Panels ===== */
.tie-panels {
  margin-bottom: 80px;
}

.tie-panel {
  display: none;
}

.tie-panel--active {
  display: block;
}

/* ===== Content Card ===== */
.tie-year-tabs-wrapper{
  display: flex;
  gap: 14px;
}
.tie-card {
  position: relative;
  background: #e6f0f8;
  border-radius: 20px;
  min-height: 480px;
  display: flex;
  align-items: stretch;
  overflow: hidden;
}

.tie-card-image {
  flex: 0 0 45%;
  padding: 34px;
}

.tie-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  display: block;
}

.tie-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  padding: 45px 50px 45px 0;
  min-width: 0;
}

.tie-card-heading {
  font-family: "Playfair Display", serif;
  font-size: 32px;
  font-weight: 500;
  line-height: 1.4;
  color: #00243d;
  margin: 0;
}

.tie-card-text {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tie-card-text p {
  font-family: "Open Sans", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  color: #00243d;
  margin: 0;
}

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

.tie-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;
}

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

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

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

.tie-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;
}

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

.tie-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;
}

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

.tie-year-mobile-option.active {
  font-weight: 600;
  color: #03489f;
  background: #e6f0f8;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .tie-card-heading {
    font-size: 26px;
  }

  .tie-card-content {
    padding: 32px 32px 32px 0;
  }

  .tie-card-image {
    padding: 28px;
  }
}

@media (max-width: 768px) {
  .tie-year-filter {
    margin: 40px 0 24px;
  }

  .tie-card {
    flex-direction: column;
    min-height: auto;
  }

  .tie-card-image {
    flex: none;
    padding: 24px 24px 0;
  }

  .tie-card-image img {
    aspect-ratio: 16 / 10;
  }

  .tie-card-content {
    padding: 24px;
  }

  .tie-card-heading {
    font-size: 22px;
  }

  .tie-panels {
    margin-bottom: 40px;
  }
}

@media (max-width: 479px) {
  .tie-year-tabs {
    display: none;
  }

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

  .tie-year-filter {
    margin: 32px 0 20px;
  }

  .tie-card-image {
    padding: 16px 16px 0;
  }

  .tie-card-content {
    padding: 20px 16px;
  }

  .tie-card-heading {
    font-size: 20px;
  }
}

.tie-year-content {
  display: none;
}

.tie-year-content.active {
  display: block;
  margin-bottom: 80px
}
