/* =========================================================
   ANNOUNCEMENT SYSTEM
   ========================================================= */

.announcement-system-wrapper {
  position: relative;
}

/* Hide the raw Views block title */
.block-views-blockactive-announcements-content h2 {
  display: none;
}

/* The Views block itself */
.block-views-blockactive-announcements-content {
  position: relative;
  z-index: 9990;
}

/* Each announcement */
.announcement-item {
  display: none;
}

/* ---------------------------------------------------------
   POPUP
   --------------------------------------------------------- */

.announcement-popup {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
}

.announcement-popup-inner {
  position: relative;
  width: min(720px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  padding: 32px;
}

/* ---------------------------------------------------------
   CLOSE BUTTON
   --------------------------------------------------------- */

.announcement-close-button {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.08);
  color: #222;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  z-index: 5;
}

.announcement-close-button:hover {
  background: rgba(0, 0, 0, 0.16);
}

/* ---------------------------------------------------------
   MESSAGE
   --------------------------------------------------------- */

.announcement-message {
  margin-bottom: 20px;
  line-height: 1.6;
}

/* ---------------------------------------------------------
   MEDIA
   --------------------------------------------------------- */

.announcement-media {
  margin-top: 16px;
}

.announcement-media video,
.announcement-media iframe,
.announcement-media img {
  display: block;
  width: 100%;
  max-width: 100%;
  border-radius: 10px;
}

/* ---------------------------------------------------------
   FLOATING VIDEO
   --------------------------------------------------------- */

.announcement-floating-video {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 99998;
  width: min(420px, calc(100vw - 32px));
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.announcement-floating-video .announcement-media {
  margin: 0;
}

.announcement-floating-video video,
.announcement-floating-video iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

/* ---------------------------------------------------------
   BANNER
   --------------------------------------------------------- */

.announcement-banner {
  position: relative;
  width: 100%;
  padding: 16px 52px 16px 20px;
  background: #f5f5f5;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  z-index: 9990;
}

.announcement-banner .announcement-message {
  margin: 0;
}

/* ---------------------------------------------------------
   BUTTON
   --------------------------------------------------------- */

.announcement-button {
  margin-top: 18px;
}

.announcement-button a {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
}

/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media (max-width: 600px) {
  .announcement-popup {
    padding: 12px;
  }

  .announcement-popup-inner {
    max-height: 94vh;
    padding: 24px 18px;
    border-radius: 12px;
  }

  .announcement-floating-video {
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
  }

  .announcement-banner {
    padding: 14px 48px 14px 14px;
  }
}