/* =========================================================
   ANNOUNCEMENT SYSTEM
   ========================================================= */
#block-arppis-customfeed {
    scroll-margin-top: 100px;
}

.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
   --------------------------------------------------------- */
   
.block-views-blockactive-announcements-block-1 .views-row {
  display: none;
}

.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 img {
  display: block;
  width: 100%;
  max-width: 100%;
  border-radius: 10px;
}

.announcement-popup-inner .announcement-media {
  width: 100%;
  margin: 20px 0;
}

.announcement-popup-inner .announcement-media iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  min-height: 0;
  border: 0;
  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%;
  box-sizing: border-box;

  display: flex;
  flex-direction: column;
  align-items: flex-start;

  min-height: 64px;
  padding: 20px 100px 20px 24px;

  background: #153d6e;
  color: #fff;

  border-bottom: 6px solid #b99d64;

 
}

/* Banner content — order controls the visual sequence,
   independent of the HTML order */

.announcement-banner .announcement-title {
  order: 1;
  margin: 0 0 8px 5%;
  color: #fff !important;

  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
}

.announcement-banner .announcement-button {
  order: 2;
  flex-shrink: 0;
  margin: 0 0 14px 5%;
  z-index:9990;
}

.announcement-banner .announcement-message {
  order: 3;
  margin: 0 5%;
  color: rgba(253, 254, 254, 0.85) !important;

  font-size: 20px;
  line-height: 1.3;
}

.announcement-banner .announcement-message p {
  margin: 0;
  color: rgba(253, 254, 254, 0.85) !important;

  font-size: 20px;
  line-height: 1.3;
}

/* Button */

.announcement-banner .announcement-button a {
  display: inline-block;

  padding: 8px 15px;

  border-radius: 5px;

  background: #b99d64;
  color: #fff !important;

  text-decoration: none;
  font-size: 13px;
  font-weight: 600;

  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.announcement-banner .announcement-button a:hover {
  background: #a98d55;
  transform: translateY(-1px);
}

/* Close button */

.announcement-banner .announcement-close-button {
  position: absolute;

  top: 50%;
  right: 2%;

  width: 60px;
  height: 60px;

  padding: 0;

  transform: translateY(-50%);

  border: 0;
  border-radius: 50%;

  background: rgba(185, 157, 100, 0.28);
  color: #fff;

  font-size: 22px;
  line-height: 34px;

  cursor: pointer;

  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.announcement-banner .announcement-close-button:hover {
  background: rgba(185, 157, 100, 0.45);
  transform: translateY(-50%) scale(1.05);
}

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

@media (max-width: 700px) {

  .announcement-banner {
    min-height: 0;
    padding: 13px 52px 13px 16px;
  }

  .announcement-banner .announcement-title {
    margin: 0 0 6px;
    font-size: 16px;
  }

  .announcement-banner .announcement-button {
    margin: 0 0 8px;
  }

  .announcement-banner .announcement-message {
    margin: 0;
    font-size: 13px;
  }

  .announcement-banner .announcement-message p {
    font-size: 13px;
  }

  .announcement-banner .announcement-button a {
    padding: 7px 13px;
    font-size: 12px;
  }

  .announcement-banner .announcement-close-button {
    top: 18px;
    right: 12px;
    width: 36px;
    height: 36px;
    transform: none;
  }

  .announcement-banner .announcement-close-button:hover {
    transform: scale(1.05);
  }
}

/* Close button */

.announcement-banner .announcement-close-button {
  position: absolute;

  top: 20%;
  right: 2%;

  width: 60px;
  height: 60px;

  padding: 0;

  transform: translateY(-50%);

  border: 0;
  border-radius: 50%;

  background: rgba(185, 157, 100, 0.28);
  color: #fff;

  font-size: 22px;
  line-height: 34px;

  cursor: pointer;

  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.announcement-banner .announcement-close-button:hover {
  background: rgba(185, 157, 100, 0.45);
  transform: translateY(-50%) scale(1.05);
}

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

@media (max-width: 700px) {

  .announcement-banner {
    display: block;

    min-height: 0;

    padding: 13px 52px 13px 16px;
  }

  .announcement-banner .announcement-title {
    font-size: 16px;
  }

  .announcement-banner .announcement-message {
    font-size: 13px;
  }

  .announcement-banner .announcement-button {
    margin: 10px 0 0;
  }

  .announcement-banner .announcement-button a {
    padding: 7px 13px;
    font-size: 12px;
  }

  .announcement-banner .announcement-close-button {
    right: 12px;
  }
}

/* ---------------------------------------------------------
   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;
  }
}

.announcement-popup-inner .announcement-message {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  color: #222 !important;
  font-size: 16px;
  line-height: 1.6;
  margin-top: 20px;
  margin-bottom: 20px;
}

.announcement-popup-inner .announcement-message p {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}

.announcement-popup-inner .announcement-title {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  color: #222 !important;
  margin: 0 40px 10px 0;
}


/* BUTTON VISIBILITY */
.announcement-popup-inner .announcement-button {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  margin-top: 20px;
}

.announcement-popup-inner .announcement-button a {
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
  transform: none !important;

  padding: 10px 18px;
  border-radius: 6px;
  background: #153d6e;
  color: #fff !important;
  text-decoration: none;
  font-weight: 600;
}

.announcement-popup-inner .announcement-button a:hover {
  opacity: 0.9 !important;
}

/* =========================================================
   FLOATING VIDEO POLISH
   ========================================================= */

.announcement-floating-video {
  background: #fff;
  color: #222;
  padding: 0;
}

/* Video */
.announcement-floating-video .announcement-media {
  margin: 0;
  width: 100%;
}

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

/* Title */
.announcement-floating-video .announcement-title {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;

  color: #222 !important;
  font-size: 18px;
  line-height: 1.3;
  margin: 16px 48px 8px 16px;
}

/* Message */
.announcement-floating-video .announcement-message {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;

  color: #444 !important;
  font-size: 14px;
  line-height: 1.5;
  margin: 0 16px 14px;
}

/* Message paragraphs */
.announcement-floating-video .announcement-message p {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  transform: none !important;
  margin: 0;
}

/* Button */
.announcement-floating-video .announcement-button {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;

  margin: 10px 0 16px 16px;
}

.announcement-floating-video .announcement-button a {
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
  transform: none !important;

  padding: 9px 16px;
  border-radius: 6px;
  background: #153d6e;
  color: #fff !important;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

/* Close button */
.announcement-floating-video .announcement-close-button {
  top: 8px;
  right: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: #222;
}