/* Backup of original events.css */
/* Copied for safety before redesign */

/* Events page styles */
.events-section h1 {
  letter-spacing: 1px;
}
.event-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.press-main-image {
  max-height: 280px;
  object-fit: cover;
  width: 100%;
  border-radius: 6px;
}
.press-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.press-thumbs img {
  width: 64px;
  height: 48px;
  object-fit: cover;
  cursor: pointer;
  border-radius: 4px;
  border: 1px solid #ddd;
  display: inline-block;
  max-width: 64px;
  height: 48px;
}
.press-thumbs img.active {
  outline: 3px solid #0d6efd;
  opacity: 1;
}
.press-row {
  align-items: start;
}
.press-left {
  max-width: 560px;
}
.press-left .carousel {
  width: 100%;
}
.press-left .press-main-image {
  max-height: 420px;
}
.press-right {
  padding-left: 30px;
}

/* Ensure only the active carousel item is visible (override if other rules interfere) */
.press-left .carousel .carousel-item {
  display: none;
}
.press-left .carousel .carousel-item.active {
  display: block;
}
.press-left .carousel .carousel-item img {
  display: block;
  width: 100%;
  object-fit: fill;
}
.event-item .event-body {
  min-width: 0;
}
.event-item .event-image {
  flex: 0 0 160px;
}
#eventsList .event-item h3 {
  font-size: 2rem;
  font-weight: 700;
}
#eventsList .event-item h3 {
  /* high-specificity fallback to ensure this rule wins */
}

/* Force the title size if other styles override it */
.events-section #eventsList .event-item h3 {
  font-size: 0.7rem !important;
  color: #008080 !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
}

.events-section #eventsList .event-item h3:hover {
  color: #349797 !important;
  text-decoration: underline !important;
}

#eventsList .event-item h3.h5,
#eventsList .event-item h3.h5 a {
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
}

#eventsList .event-item h3 a {
  color: inherit;
  text-decoration: none;
}

#eventsList .pagination {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-start;
}
.pager {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1rem;
}
.pager .page-link {
  cursor: pointer;
}
/* Sidebar */
aside .list-unstyled a {
  display: block;
  padding: 6px 0;
  color: #0d6efd;
  text-decoration: none;
}
aside .list-unstyled a:hover {
  text-decoration: underline;
}
/* Empty state */
.events-empty {
  background: #fff;
}
@media (max-width: 991px) {
  .event-item {
    flex-direction: column;
  }
  .event-item .event-image {
    width: 100%;
    max-width: none;
    min-width: auto;
    margin-bottom: 10px;
  }
}
@media (max-width: 575px) {
  .press-thumbs img {
    width: 48px;
    height: 36px;
  }
  #eventsList .event-item h3 {
    font-size: 1.1rem;
  }
}

/* Teal button theme */
.btn-teal {
  background: #008080;
  color: #fff;
  border-color: #008080;
}
.btn-teal:hover {
  background: #006f6f;
  border-color: #006f6f;
  color: #fff;
}
.btn-teal-outline {
  background: transparent;
  color: #008080;
  border: 1px solid #008080;
}
.btn-teal-outline:hover {
  background: rgba(0, 128, 128, 0.08);
  color: #004f4f;
}

/* Source link styling for press detail page */
.source-link {
  font-size: 1.05rem; /* slightly larger than body text */
  color: #0d6efd;
  word-break: break-all;
}
.source-link:hover {
  text-decoration: underline;
}
