/* ============================================================
   SkyGroupGh — News & Events enhancements
   ============================================================ */

/* --- News Cards -------------------------------------------------------- */
.news-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #eef1f6;
  height: 100%;
  transition: transform .35s ease, box-shadow .35s ease;
  display: flex;
  flex-direction: column;
}
.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(13,110,253,.12);
}

.news-card .img-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f1f5fb;
}
.news-card .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.news-card:hover .img-wrap img {
  transform: scale(1.06);
}

.news-card .category-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: #0d6efd;
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: .35rem .85rem;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(13,110,253,.3);
}

.news-card .content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-card .date {
  font-size: .85rem;
  color: #6b7280;
  margin-bottom: .75rem;
  display: flex;
  align-items: center;
  gap: .4rem;
}

.news-card h4 {
  font-size: 1.2rem;
  margin-bottom: .75rem;
  line-height: 1.4;
}
.news-card h4 a {
  color: #111827;
  text-decoration: none;
  transition: color .25s ease;
}
.news-card h4 a:hover {
  color: #0d6efd;
}

.news-card p {
  color: #6b7280;
  font-size: .93rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.news-card .read-more {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: #0d6efd;
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
  margin-top: auto;
  transition: gap .3s ease;
}
.news-card .read-more:hover {
  gap: .65rem;
}

/* --- Sticky Sidebar ---------------------------------------------------- */
.sticky-sidebar {
  position: sticky;
  top: 100px; /* Offset for the sticky header */
}

/* --- Event Cards ------------------------------------------------------- */
.event-card {
  display: flex;
  gap: 1rem;
  background: #fff;
  border-radius: 14px;
  padding: 1.25rem;
  border: 1px solid #eef1f6;
  margin-bottom: 1rem;
  transition: border-color .3s ease, box-shadow .3s ease;
  text-decoration: none;
}
.event-card:hover {
  border-color: rgba(13,110,253,.3);
  box-shadow: 0 10px 24px rgba(13,110,253,.08);
}

.event-date {
  background: linear-gradient(135deg, #e7f0ff, #d5e5ff);
  color: #0d6efd;
  border-radius: 10px;
  width: 65px;
  height: 65px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.event-date .month {
  font-size: .7rem;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: .05em;
}
.event-date .day {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
}

.event-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.event-info h5 {
  font-size: 1rem;
  margin-bottom: .25rem;
  color: #111827;
  line-height: 1.3;
  transition: color .25s ease;
}
.event-card:hover .event-info h5 {
  color: #0d6efd;
}
.event-info .meta {
  font-size: .8rem;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: .4rem;
  margin-top: .25rem;
}

/* --- Responsive -------------------------------------------------------- */
@media (max-width: 991.98px) {
  .sticky-sidebar {
    position: static;
    margin-top: 3rem;
  }
}