/* ================= GLOBAL ================= */

body {
  font-family: "Outfit", sans-serif;
  background-color: #f0f2f5;
  margin: 0;
  padding: 0;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* ================= KULIAH BANNER ================= */

.announcement-banner-section {
  width: 100%;
  height: 70vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  background: linear-gradient(
    135deg,
    rgba(41, 110, 86, 0.95),
    rgba(22, 60, 48, 0.95)
  );
}

.announcement-banner-section::before,
.announcement-banner-section::after {
  content: "";
  position: absolute;
  width: 550px;
  height: 550px;
  background: url("img/islamic-pattern2.png") center/contain no-repeat;
  opacity: 0.06;
  animation: announcementRotate 60s linear infinite;
  pointer-events: none;
  z-index: 1;
}

.announcement-banner-section::before {
  top: -200px;
  left: -200px;
}

.announcement-banner-section::after {
  bottom: -200px;
  right: -200px;
  animation-direction: reverse;
}

@keyframes announcementRotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.announcement-banner-content {
  position: relative;
  z-index: 5;
  color: #ffffff;
  max-width: 800px;
  padding: 0 20px;
}

.announcement-banner-title {
  font-size: clamp(32px, 5vw, 58px);
  font-family: "Playfair Display", serif;
  font-weight: 600;
  margin-bottom: 20px;
}

.announcement-banner-subtext {
  font-size: clamp(16px, 2vw, 22px);
  opacity: 0.95;
}

.announcement-page {
  width: min(1000px, 92%);
  margin: 50px auto 80px;
}

.announcements-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.announcement-card {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: 0.3s ease;

  margin-top: 25px;
}

.announcement-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.announcement-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.announcement-header {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f0;
}

.announcement-header img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 10px;
}

.announcement-header .title {
  font-weight: 600;
  font-size: 1rem;
}

.announcement-header .date {
  font-size: 0.8rem;
  color: #777;
  margin-left: auto;
}

.announcement-media {
  width: 100%;
  height: auto;
  display: block;

  object-fit: contain;
  background: #000;
}

.announcement-content {
  padding: 18px 22px 22px;
}

.announcement-content h2 {
  font-size: 1.1rem;
  margin: 5px 0;
}

.announcement-content p {
  font-size: 0.9rem;
  color: #555;
}

@media (max-width: 768px) {
  .announcement-page {
    padding: 0 5px;
  }
  .announcement-media {
    max-height: 250px;
  }
}

.announcement-title {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 600;
  color: #296e56;
  line-height: 1.4;
}

.announcement-desc {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
  margin-top: 4px;
}

.announcement-header .date small {
  color: #777;
  font-size: 12px;
}

/* ================= FADE IN ================= */

.fade-in {
  opacity: 0;
  transform: translateY(60px);
  transition: all 0.9s ease;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

/* ================= MOBILE OPTIMIZATION ================= */

@media (max-width: 768px) {
  .announcement-banner-section {
    height: 60vh;
    padding: 20px;
  }

  .announcement-banner-section::before,
  .announcement-banner-section::after {
    width: 300px;
    height: 300px;
    opacity: 0.04;
  }

  .announcement-banner-section::before {
    top: -120px;
    left: -120px;
  }

  .announcement-banner-section::after {
    bottom: -120px;
    right: -120px;
  }

  .announcement-banner-title {
    font-size: 30px;
    line-height: 1.3;
  }

  .announcement-banner-subtext {
    font-size: 15px;
    line-height: 1.6;
    padding: 0 10px;
  }

  /* ===== Page Container ===== */

  .announcement-page {
    padding: 0 12px;
    margin: 30px auto 60px;
  }

  /* ===== Cards ===== */

  .announcement-card {
    margin-top: 15px;
    border-radius: 20px;
  }

  .announcement-card:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  }

  /* ===== Header ===== */

  .announcement-header {
    padding: 12px;
  }

  .announcement-header img {
    width: 36px;
    height: 36px;
  }

  .announcement-header .title {
    font-size: 14px;
  }

  .announcement-header .date {
    font-size: 11px;
  }

  /* ===== Media ===== */

  .announcement-media {
    max-height: 220px;
  }

  /* ===== Content ===== */

  .announcement-content {
    padding: 15px;
  }

  .announcement-title {
    font-size: 16px;
  }

  .announcement-desc {
    font-size: 14px;
    line-height: 1.6;
  }
}

.profile_name {
  font-size: 16px;
  font-weight: 600;
  color: #296e56;
}
