/* SECTION */
.pe-section {
  padding: 50px 0; 
  background: #d8d8d8;
}

/* WRAPPER  */
.pe-wrapper {
  width: 100%;
}

/* TITLE */
.pe-title {
  text-align: center;
  font-weight: 700;
  margin-bottom: 40px;
}

.pe-title span {
  color: #ff4d4d;
}

/* VIEWPORT */
.pe-viewport {
  overflow: hidden;
  width: 100%;
  padding: 0 10px; 
}

/* TRACK */
.pe-track {
  display: flex;
  gap: 20px;
  align-items: stretch;
  will-change: transform;
}

/* SLIDE */
.pe-slide {
  flex: 0 0 33.333%;
  max-width: 33.333%;
}

/* CARD */
.pe-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;

  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  transition: 0.3s ease;
}

/* HOVER */
.pe-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}

/* IMAGE */
.pe-img {
  position: relative;
  overflow: hidden;
}

.pe-img img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

/* DATE BADGE */
.pe-date {
  position: absolute;
  top: 15px;
  left: 15px;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  width: 65px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.pe-date .month {
  display: block;
  background: #f2f2f2;
  font-size: 12px;
  padding: 4px 0;
}

.pe-date .day {
  display: block;
  font-size: 20px;
  font-weight: bold;
  color: #0d3b66;
}

.pe-date .year {
  display: block;
  font-size: 11px;
  padding-bottom: 5px;
  color: #0d3b66;
}

/* BODY */
.pe-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* TITLE */
.pe-body h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  min-height: 48px;
}

/* TIME */
.pe-time {
  color: #ff4d4d;
  font-weight: 500;
  margin-bottom: 5px;
}

/* LOCATION */
.pe-loc {
  color: #ff4d4d;
  font-size: 14px;
  margin-bottom: 10px;
}

/* DESCRIPTION */
.pe-desc {
  flex-grow: 1;
  font-size: 14px;
  color: #555;
  margin-bottom: 15px;
}

/* BUTTON */
.pe-body a {
  margin-top: auto;
  text-decoration: none;
  color: #ff4d4d;
  font-weight: 600;
}

/* ========================= */
/* ✅ RESPONSIVE (FIXED) */
/* ========================= */

/* Tablet */
@media (max-width: 992px) {
  .pe-slide {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .pe-slide {
    flex: 0 0 92%;
    max-width: 92%;
  }

  .pe-img img {
    height: 180px;
  }
}

/* Small mobile */
@media (max-width: 576px) {
  .pe-slide {
    flex: 0 0 96%;
    max-width: 96%;
  }
}

.announcement-bar {
  position: relative;
  width: 100%;
  background: #1e3a8a; /* 🔵 clean blue */
  color: #fff;
  padding: 12px 0;
  overflow: hidden;
  border-top: 2px solid #fe4e37;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

/* layout */
.announcement-wrapper {
  display: flex;
  align-items: center;
  padding: 0 20px;
}

/* scroll container */
.announcement-scroll {
  overflow: hidden;
  width: 100%;
}

/* track */
.announcement-track {
  display: flex;
  gap: 80px;                 /* more breathing space */
  width: max-content;
  animation: scrollLoop 50s linear infinite; /* slower & smooth */
}

/* message */
.announcement-item {
  white-space: nowrap;
  font-size: 15px;
  letter-spacing: 0.4px;
  color: #fff;
  opacity: 0.95;
  transition: 0.3s ease;
}

/* hover */
.announcement-item:hover {
  opacity: 1;
  transform: scale(1.02);
}

/* links */
.announcement-item a {
  color: #fff;
  text-decoration: none;
}

.announcement-item a:hover {
  text-decoration: underline;
}

/* 🔥 subtle fade edges (clean, not dark blocks) */
.announcement-bar::before,
.announcement-bar::after {
  content: "";
  position: absolute;
  top: 0;
  width: 80px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.announcement-bar::before {
  left: 0;
  background: linear-gradient(to right, #1e3a8a, transparent);
}

.announcement-bar::after {
  right: 0;
  background: linear-gradient(to left, #1e3a8a, transparent);
}

/* animation */
@keyframes scrollLoop {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* pause */
.announcement-track:hover {
  animation-play-state: paused;
}
@media (max-width: 768px) {
  .announcement-track {
    gap: 50px;
    animation: scrollLoop 60s linear infinite;
  }

  .announcement-item {
    font-size: 14px;
  }
}
