/* --- CODE SHORTCODE 1: UPCOMING EVENTS --- */
.upcoming-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 35px;
  align-items: stretch; 
}

@media screen and (min-width: 768px) {
  .upcoming-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.upcoming-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
  width: 100%;
  min-width: 0;
}

.upcoming-card__image-link {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  overflow: hidden;
}

@media screen and (min-width: 768px) {
  .upcoming-card__image-link {
    aspect-ratio: 1 / 1; 
  }
}

.upcoming-card__image {
  width: 100%;
  height: 100%;
	object-fit: cover;
}

.upcoming-card__content {
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
  flex-grow: 1;
  min-width: 0; 
}

.upcoming-card__title {
  font-weight: 700;
  line-height: 1.4;
  color: #091F2C;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  margin: 0 !important;
}

.upcoming-card__title-link {
  color: #091F2C;
  text-decoration: none;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.upcoming-card__excerpt {
  font-size: clamp(0.875rem, 2vw, 1rem);
  line-height: 1.5;
  color: #58666E;
	font-weight: 400;
  margin: 0 !important;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.upcoming-card__button {
  font-size: clamp(0.875rem, 2vw, 1rem);
  font-weight: 700;
  color: #091F2C;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: auto; 
}
.upcoming-card__button:hover {
	color:#7A9DB0;
}
.upcoming-card__arrow {
	flex-shrink: 0;
    max-height: 24px;
}

.upcoming-card__image-link {
  position: relative; 
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  overflow: hidden;
}

@media screen and (min-width: 768px) {
  .upcoming-card__image-link {
    aspect-ratio: 1 / 1; 
  }
}

.upcoming-card__tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: #EBF1F4; 
  color: #2F7084;
  font-size: clamp(14px, 2vw, 16px);
  font-weight: 700;
  text-transform: uppercase;
  border: 1px solid #7A9DB0;
  padding: 4px 10px;
  border-radius: 999px;
  z-index: 2;
  pointer-events: none; 
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}
/* --- CODE SHORTCODE 2: PAST EVENTS --- */
.past-list {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.past-item {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 40px 16px;
  border-top: 1px solid #B3C7D2; 
}

@media screen and (max-width: 768px) { 
  .past-item {
    gap: 20px;
  }
}

@media screen and (min-width: 576px) {
  .past-item {
    flex-direction: row;
    align-items: flex-start;
  }
}

.past-item__image-link {
  display: block;
  width: 300px;
  height: 220px; 
  flex-shrink: 0;
  overflow: hidden; 
  border-radius: 8px; 
}

@media screen and (max-width: 575px) {
  .past-item__image-link {
    width: 100%; 
  }
}

.past-item__image {
  width: 100%;
  height: 100%; 
  display: block;
  object-fit: cover; 
}

.past-item__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
	gap: 20px;
}

.past-item__title {
  font-weight: 700;
  line-height: 1.4;
  color: #091F2C;
}

.past-item__title-link {
  color: #091F2C;
  text-decoration: none;
}

.past-item__excerpt {
   font-size: clamp(0.875rem, 2vw, 1rem);
  line-height: 1.5;
  color: #4a5568;
	font-weight: 400;
  margin: 0 !important;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
	padding-bottom: 20px;
}

.past-item__button {
   font-size: clamp(0.875rem, 2vw, 1rem);
  font-weight: 700;
  color: #091F2C;
	background-color: #fff;
  text-decoration: none;
  border: 1px solid #091F2C;
  padding: 16px 24px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: background-color 0.2s;
}

.past-item__button:hover {
  background-color: #EBF1F4;
	border-color: #7A9DB0;
	color: #7A9DB0;
}
.past-item__button:hover svg path {
  stroke: #7A9DB0 !important;
}
.past-item__arrow {
	max-height: 24px;
}

/* events category */
.event-single-content p mark.has-inline-color {
  font-size: clamp(18px, 2vw, 20px);
  display: block;
}
.event-single-content p {
  font-size:clamp(14px, 2vw, 16px);
  color: #58666e ;
}
.event-details__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  width: 100%;
}
.event-details__heading {
	padding-top: 20px;
	padding-bottom: 16px;
	color: #2F7084;
	border-top: 1px solid  #B3C7D2;
}
@media screen and (min-width: 768px) {
  .event-details__grid {
    grid-template-columns: repeat(2, 1fr); 
  }
}

.event-card {
 background-color: #ffffff;
    border: 1px solid #B3C7D2;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
	max-width: 352px;
	width: 100%;
}

.event-card__tag {
  background: #EAF4F5;
  color: #2F7084;
   font-size: clamp(12px, 2vw, 14px);
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 999px;
	text-transform: capitalize;
}

.event-card__list {
  list-style: none;
  padding: 0 !important;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap:  12px;
  width: 100%;
}

.event-card__item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: clamp(12px, 2vw, 14px);
    font-weight: 700;
    color: #58666E;
    line-height: 1.4;
}

.event-card__icon {
  flex-shrink: 0;
	max-height: 20px;
}
