
/* ========================
   EVENTS PAGE STYLES
=========================== */

section.events-page {
  font-family: 'Poppins', sans-serif;
  background-color: #f8f9fa;
  padding: 3rem 0;
}

/* Section Headings */
.events-page h2,
.events-page h3,
.events-page h5 {
  font-weight: 700;
  color: #1e293b;
}

/* Event Card */
.event-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border-radius: 0.75rem;
  overflow: hidden;
}

.event-card .card {
  height: 100%;
  border: none;
  border-radius: 0.75rem;
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0.75rem 1.25rem rgba(0, 0, 0, 0.08);
}

.event-card .card-img-top {
  height: 200px;
  object-fit: cover;
  border-top-left-radius: 0.75rem;
  border-top-right-radius: 0.75rem;
}

.event-card .card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #0f172a;
}

.event-card .card-text {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.5;
}

/* Badges */
.event-card .badge {
  font-size: 0.75rem;
  padding: 0.4em 0.6em;
  border-radius: 0.5rem;
}

.event-card .badge.bg-success {
  background-color: #10b981 !important;
}

.event-card .badge.bg-dark {
  background-color: #334155 !important;
}

/* Calendar Widget */
.calendar-widget {
  background-color: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.calendar-widget h5 {
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
}

.calendar-widget iframe {
  width: 100%;
  border: none;
  min-height: 350px;
  border-radius: 0.5rem;
}

/* Year Filter Dropdown */
#yearFilter {
  font-size: 0.85rem;
  padding: 0.45rem 1rem;
  border-radius: 2rem;
  background-color: #fff;
  border: 1px solid #ced4da;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  transition: border-color 0.2s ease;
}

#yearFilter:focus {
  border-color: #4994d0;
  outline: none;
}

/* Responsive Fixes */
@media (max-width: 576px) {
  .event-card .card-title {
    font-size: 1rem;
  }

  .event-card .card-text {
    font-size: 0.875rem;
  }

  #yearFilter {
    width: 100%;
  }
}



/* ========================
   LATEST NEWS PREVIEW
=========================== */

.news-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid #475569;
  border-radius: 0.75rem;
  overflow: hidden;
}

.news-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0.75rem 1rem rgba(0, 0, 0, 0.08);
}

.news-thumb {
  height: 180px;
  object-fit: cover;
  border-top-left-radius: 0.75rem;
  border-top-right-radius: 0.75rem;
}

.news-link {
  color: #0f172a;
}

.news-link:hover {
  color: #4994d0;
}


.blog-detail h1 {
  font-weight: 700;
  line-height: 1.2;
  color: #222;
}

.blog-detail p.text-muted {
  font-size: 0.9rem;
}

.blog-detail article.blog-content p {
  margin-bottom: 1.25rem;
  color: #333;
}

.blog-detail article.blog-content h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
  color: #0d6efd; /* Bootstrap primary color */
}

.blog-detail article.blog-content ul {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.blog-detail article.blog-content ul li {
  margin-bottom: 0.5rem;
}

.blog-detail hr {
  border-top: 1px solid #dee2e6;
}

.blog-detail a.btn-primary {
  font-weight: 600;
  padding: 0.5rem 1.5rem;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

.blog-detail a.btn-primary:hover {
  background-color: #0b5ed7;
  text-decoration: none;
}


@media (max-width: 767px) {
  /* Event Cards */
  .event-card .card {
    padding: 0.75rem;
  }

  .event-card .card-img-top {
    height: 160px;
  }

  .event-card .card-title {
    font-size: 1rem;
  }

  .event-card .card-text {
    font-size: 0.85rem;
  }

  .event-card .badge {
    font-size: 0.7rem;
    padding: 0.3em 0.5em;
  }

  /* Calendar Widget */
  .calendar-widget {
    padding: 0.75rem;
    box-shadow: none;
  }

  .calendar-widget iframe {
    min-height: 300px;
  }

  /* Year Filter Dropdown */
  #yearFilter {
    width: 100%;
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
  }

  /* News Card */
  .news-card {
    margin-bottom: 1rem;
  }

  .news-thumb {
    height: 150px;
  }

  .news-link {
    font-size: 0.95rem;
  }

  /* Blog Detail */
  .blog-detail h1 {
    font-size: 1.5rem;
    line-height: 1.3;
    margin-bottom: 1rem;
  }

  .blog-detail p.text-muted {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
  }

  .blog-detail article.blog-content p {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .blog-detail article.blog-content h3 {
    font-size: 1.2rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
  }

  .blog-detail article.blog-content ul {
    padding-left: 1.25rem;
    font-size: 0.95rem;
  }

  .blog-detail article.blog-content ul li {
    margin-bottom: 0.4rem;
  }

  .blog-detail a.btn-primary {
    font-size: 0.95rem;
    padding: 0.45rem 1.2rem;
  }
}
