.events-section {
  background-color: #e8f2f7;
  padding: 40px;
  border-radius: 20px;
  margin: 80px auto;
  display: flex;
  gap: 40px;
  align-items: center;
}


.image-container {
  flex: 0 0 50%;
}

.event-image {
  width: 100%;
  height: 454px;
  border-radius: 15px;
}

.content-container {
  flex: 1;
}

.main-heading {
  color: #00243d;
  font-family: "Playfair Display";
  font-size: 32px;
  font-style: normal;
  font-weight: 500;
  line-height: 140%;
  padding-bottom: 20px;
}

.intro-text {
  color: #00243d;
  font-family: "Open Sans";
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 160%;
  padding-bottom: 24px;
}

.friday-assembly-heading {
  color: #03489f;
  font-family: "Open Sans";
  font-size: 18px;
  font-style: normal;
  font-weight: 500;
  line-height: 160%;
  padding-bottom: 8px;
}

.friday-assembly-text {
  color: #00243d;
  font-family: "Open Sans";
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 160%;
}

/* -------------tab section----------------  */

.celebrations-year-section.year-container {
  flex-direction: column;
  gap: 0;
  margin-top: 60px;
  margin-bottom: 80px;
}

.celebrations-year-filter {
  width: 100%;
  position: sticky;
  top: 194px;
  z-index: 9;
  background: #fff;
  padding: 16px 0 32px;
  margin-bottom: 8px;
  isolation: isolate;
}

.celebrations-year-filter::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 16px;
  background: #fff;
  pointer-events: none;
}

.celebrations-year-filter--past-sticky {
  position: static;
}

#footer {
  position: relative;
  z-index: 25;
}

.celebrations-year-tabs {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-width: 0;
}

.celebrations-year-tabs-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  min-width: 0;
  flex: 1;
}

.celebrations-year-tab--mobile-only {
  display: none;
}

.celebrations-archive-wrapper {
  flex-shrink: 0;
  position: relative;
  width: auto;
  min-width: 140px;
  max-width: 200px;
}

@media screen and (min-width: 1025px) {
  .celebrations-archive-wrapper.celebrations-archive--open-up .annual-archive-options {
    top: auto;
    bottom: 100%;
    border-radius: 10px 10px 0 0;
    border-top: 1px solid #023f6a;
    border-bottom: none;
    box-shadow: 0 -8px 24px rgba(0, 36, 61, 0.12);
  }

  .celebrations-archive-wrapper.celebrations-archive--open-up.open .annual-archive-trigger {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-top: none;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
  }

  .celebrations-archive-wrapper.celebrations-archive--open-up.open .annual-archive-arrow {
    transform: rotate(0deg);
  }
}

.celebrations-year-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: #fff;
  color: #023f6a;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  flex-shrink: 0;
  white-space: nowrap;
}

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

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

.celebrations-year-panels {
  flex: 1;
  min-width: 0;
  width: 100%;
}

.celebrations-year-panels .celebrations-year-panel {
  display: none;
  margin-top: 0;
  margin-bottom: 0;
}

.celebrations-year-panels .celebrations-year-panel.tab-content {
  margin-top: 0;
  margin-bottom: 0;
}

.celebrations-year-panels .celebrations-year-panel.active {
  display: flex;
  gap: 78px;
  align-items: flex-start;
}

.celebrations-archive-year .celebrations-archive-sidebar {
  display: none;
}

.tab-wrapper {
  position: relative;
}

.tabs {
  display: flex;
  gap: 14px;
  background: #fff;
  position: sticky;
  top: 197px;
  z-index: 9;
  padding: 0 0 0 0;
}

.tab {
  display: flex;
  padding: 8px 24px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border: 1px solid #023f6a;
  border-radius: 10px;
  color: #023f6a;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
  font-size: 16px;
  background: transparent;
}

.tab.active {
  color: white;
  background: #03489f;
}

.tab-content {
  display: none;
  background: #fff;
  gap: 78px;
  margin-top: 60px;
  margin-bottom: 80px;
}

.tab-content.active {
  display: flex;
}

/* Sidebar */
.sidebar {
  width: 250px;
  flex-shrink: 0;
  position: sticky;
  top: 210px;
  align-self: flex-start;
  display: flex;
  flex-direction: column;
  gap: 25px;
  max-height: calc(100vh - 230px);
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 8px;
  scrollbar-width: thin;
  scrollbar-color: #b1c8db transparent;
}

.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-thumb {
  background: #b1c8db;
  border-radius: 10px;
}

.celebrations-year-section .sidebar {
  top: 320px;
  max-height: calc(100vh - 306px);
}

.celebrations-year-section .sidebar.celebrations-sidebar--past-sticky {
  position: static;
}

.sidebar-item {
  color: #00243d4d;
  font-family: "Open Sans";
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 160%;
  cursor: pointer;
  display: flex;
  gap: 12px;
  text-align: left;
  background-color: transparent;
  border: none;
  flex-shrink: 0;
}

.sidebar-item.active {
  color: #03489f;
}

.sidebar-item .dot {
  background-color: #00243d4d;
  border-radius: 50px;
  margin-top: 8px;
  padding: 3px;
  height: 6px;
  transition: background-color 0.3s ease;
}

.sidebar-item.active .dot {
  background-color: #03489f;
}

.main-container {
  flex: 1;
  min-width: 0;
  width: auto;
}

/* Content area */
.content-area {
  flex: 1;
  padding-left: 20px;
  animation: fadeIn 0.5s ease-in-out;
  background-color: #def4e2;
  border-radius: 20px;
  padding: 46px;
}

.content-area h2 {
  margin: 0 0 16px;
  color: #00243d;
  font-family: "Playfair Display";
  font-size: 32px;
  font-style: normal;
  font-weight: 500;
  line-height: 140%;
}

.content-area p {
  margin: 0 0 15px;
  color: #00243d;
  font-family: "Open Sans";
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 160%;
}

.content-area>img {
  max-width: 100%;
  height: 446px;
  margin: 15px 0 20px 0;
  border-radius: 16px;
  width: 100%;
  object-fit: cover;
}

/* Mobile dropdown */
.sidebar-dropdown {
  display: none;
  margin-bottom: 15px;
  width: 100%;
  padding: 8px;
  width: 97%;
  margin-left: 2px;
  border-radius: 10px;
  border: 1px solid #03489f;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.event-dropdown {
  display: none;
  position: relative;
}

.event-select-button svg,
.event-select-arrow {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.event-select-button {
  align-items: center;
}

.event-select-button span {
  flex: 1;
  min-width: 0;
  padding-right: 12px;
}

.celebration-gallery-swiper {
  cursor: grab;
  overflow: hidden;
  width: 100%;
}

/* photo gallery css  */
.celebration-swiper-wrapper {
  margin-top: 64px;
  height: 320px;
  width: 100%;
  min-width: 0;
  overflow: hidden;
}

.celebration-title-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.celebration-swiper-arrows {
  display: flex;
  align-items: center;
  gap: 40px;
}

.celebration-arrow {
  cursor: pointer;
}

.left-celebration-arrow {
  transform: rotate(180deg);
}

.celebration-title-wrapper h3 {
  font-size: 24px;
  color: #00243d;
  font-weight: 500;
}

.celebration-swiper-img-wrapper {
  border-radius: 10px;
  overflow: hidden;
  height: 204px;
  transition: 0.4s all ease;
}

.celebration-swiper-img-wrapper .celebration-slider-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.celebration-swiper-wrapper .swiper-slide-next .celebration-swiper-img-wrapper {
  height: 258px;
}

.medals-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 15px;
}
.medals-wrap > div {
  flex: 0 0 calc(50% - 8px);
  box-sizing: border-box;
}
.medal-points{
  margin-bottom: 5px !important;
}

.content-area ul {
  list-style-position: inside;
  margin-bottom: 15px;
}

.content-area ul li {
  color: #00243d;
  font-family: "Open Sans";
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 160%;
}

@media screen and (max-width: 1024px) {
  .celebrations-year-section.year-container {
    flex-direction: column;
    gap: 2px;
    margin-top: 40px;
    max-width: 100%;
    overflow-x: clip;
  }

  .celebrations-year-filter {
    position: sticky;
    top: 155px;
    padding-top: 12px;
    padding-bottom: 12px;
    margin-bottom: 0;
    max-width: 100%;
    z-index: 1;
    background: #fff;
    overflow-x: clip;
  }

  .celebrations-year-tabs {
    overflow-x: clip;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .celebrations-year-tabs-wrapper {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
  }

  .celebrations-year-tabs-wrapper::-webkit-scrollbar {
    display: none;
  }

  .celebrations-year-tab--mobile-only {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .celebrations-year-section .celebrations-archive-wrapper {
    display: none;
  }

  .celebrations-year-tab {
    padding: 8px 20px;
  }

  .celebrations-year-panels {
    width: 100%;
  }

  .celebrations-year-panels .celebrations-year-panel.tab-content.active {
    flex-direction: column;
    gap: 24px;
    width: 100%;
    align-items: stretch;
  }

  .celebrations-year-panels .celebrations-year-panel.active {
    gap: 40px;
  }

  .celebrations-year-panels .celebrations-year-panel.tab-content {
    gap: 24px;
  }

  .celebrations-year-section .sidebar {
    display: none;
    position: static;
    width: 100%;
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .celebrations-year-section .event-dropdown {
    display: block;
    width: 100%;
    position: sticky;
    top: 227px;
    z-index: 1;
    background: #fff;
    padding: 10px 0;
  }

  .celebrations-archive-year .event-dropdown {
    display: none;
  }

  .celebrations-year-section .event-select-button {
    width: 100%;
    font-size: 16px;
    background-color: transparent;
    color: #023f6a;
    border: 1px solid #03489f;
    padding: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 10px;
    text-align: left;
  }

  .celebrations-year-section .event-select-options {
    width: 100%;
    font-weight: 500;
    border: 1px solid #03489f;
    border-radius: 10px;
    margin-top: 5px;
    padding: 10px;
  }

  .celebrations-year-section .main-container {
    width: 100%;
    min-width: 0;
  }

  .celebrations-year-section .content-area {
    padding: 28px;
    padding-left: 28px;
  }

  .celebration-swiper-wrapper {
    height: auto;
    z-index: 0;
    position: relative;
  }

  .celebration-swiper-img-wrapper {
    height: 180px;
  }

  .celebration-swiper-wrapper .swiper-slide-next .celebration-swiper-img-wrapper {
    height: 180px;
  }

  .event-image {
    height: 400px;
  }

  .content-area>img {
    height: auto;
    aspect-ratio: 16 / 9;
    max-height: 360px;
  }
}

@media screen and (max-width: 820px) {
  .events-section {
    flex-direction: column;
    margin: 40px 0;
    gap: 22px;
  }

  .image-container {
    flex: none;
    width: 100%;
  }

  .event-image {
    width: 100%;
    height: 400px;
  }

  .content-container {
    padding-left: 0;
  }

  .main-heading {
    font-size: 24px;
    padding-bottom: 10px;
  }

  .friday-assembly-heading {
    font-size: 1.2em;
    margin-bottom: 10px;
    padding-bottom: 0;
  }

  .intro-text,
  .friday-assembly-text {
    font-size: 16px;
    padding-bottom: 20px;
  }

  .content-area {
    padding: 20px;
  }

  .content-area h2 {
    font-size: 24px;
  }

  .main-container {
    width: 100%;
  }

  .celebrations-year-panels .celebrations-year-panel.active {
    flex-direction: column;
    gap: 20px;
  }

  .sidebar {
    display: none;
  }

  .celebrations-archive-year .event-dropdown {
    display: none;
  }

  .sidebar-dropdown {
    display: block;
  }

  .tabs {
    padding-bottom: 30px;
  }

  .event-dropdown {
    width: 100%;
    display: block;
  }

  .event-dropdown .event-select-button:focus {
    outline: 1px solid #000000;
  }

  .event-select-button {
    width: 100%;
    font-size: 16px;
    background-color: transparent;
    color: #023f6a;
    border: 1px solid #023f6a;
    padding: 14px;
    display: flex;
    justify-content: space-between;
    border: 1px solid #03489f;
    border-radius: 10px;
    text-align: left;
  }

  .event-select-button svg {
    width: 20px;
    height: 20px;
  }

  .event-dropdown .event-select-button:focus {
    outline: none;
  }

  .event-select-options {
    width: 100%;
    font-weight: 500;
    border: 1px solid #03489f;
    border-radius: 10px;
    margin-top: 5px;
    padding: 10px;
  }

  .event-option {
    padding: 8px;
    text-decoration: none;
    color: #374151;
    cursor: pointer;
    font-size: 14px;
  }

  .content-area ul {
    list-style-position: unset;
    padding-left: 15px;
  }
}

@media screen and (max-width: 480px) {
  .medals-wrap > div {
    flex: 0 0 100%;
  }

  .tabs {
    top: 150px;
    padding-top: 10px;
    overflow-x: scroll;
  }

  .content-area>img {
    max-height: 250px;
  }

  .events-section {
    padding: 16px;
    margin: 40px 0;
  }

  .main-heading {
    font-size: 24px;
  }

  .friday-assembly-heading {
    font-size: 16px;
  }

  .intro-text,
  .friday-assembly-text {
    font-size: 0.9em;
    line-height: 1.5;
  }

  .event-image {
    height: 252px;
  }

  .event-select-button {
    line-height: 22px;
    font-size: 14px;
    align-items: center;
    border-radius: 14px;
  }

  .event-select-button span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
  }
}