.public-news-page {
  --news-border: #bfd3ec;
  --news-text: #143e6f;
  --news-muted: #4b6787;
  --news-bg-soft: #f1f7ff;
  --news-blue: #2d66bf;
  --news-shadow: 0 14px 28px rgba(22, 64, 117, 0.1);
  color: var(--news-text);
  padding-bottom: 48px;
}

.public-news-page .announcement-hero {
  border: 1px solid var(--news-border);
  border-radius: 24px;
  padding: 24px;
  background: #f8fbff;
  box-shadow: var(--news-shadow);
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.public-news-page .announcement-kicker {
  margin: 0 0 6px;
  color: #2f63b3;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
}

.public-news-page .announcement-title {
  margin: 0;
  color: #114777;
  font-size: clamp(2rem, 2.8vw, 2.45rem);
  font-weight: 900;
  line-height: 1.22;
}

.public-news-page .announcement-subtitle {
  margin: 12px 0 0;
  color: #436283;
  font-size: 1.18rem;
  line-height: 1.82;
  max-width: 860px;
}

.public-news-page .announcement-stats {
  display: none;
}

.public-news-page .announcement-stat-card {
  border: 1px solid #cbddf3;
  border-left: 5px solid #3f75cf;
  border-radius: 14px;
  padding: 0.75rem 0.9rem;
  background: rgba(255, 255, 255, 0.88);
}

.public-news-page .announcement-stat-card:nth-child(2) {
  border-left-color: #1f8b6b;
  background: linear-gradient(150deg, #f4fffb, #edfbf6);
}

.public-news-page .announcement-stat-label {
  margin: 0;
  color: #4d6886;
  font-size: 0.98rem;
  font-weight: 700;
}

.public-news-page .announcement-stat-value {
  margin: 2px 0 0;
  color: #1a4c80;
  font-size: 1.42rem;
  font-weight: 900;
  line-height: 1.2;
}

.public-news-page .announcement-tools {
  margin-top: 18px;
  border: 1px solid var(--news-border);
  border-radius: 20px;
  padding: 18px;
  background: linear-gradient(165deg, #ffffff 0%, var(--news-bg-soft) 100%);
  box-shadow: 0 10px 22px rgba(19, 58, 109, 0.08);
}

.public-news-page .announcement-tools-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.public-news-page .announcement-tools-title {
  margin: 0;
  color: #0f4c76;
  font-size: 1.55rem;
  font-weight: 900;
}

.public-news-page .announcement-count-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid #bfd5f0;
  border-radius: 999px;
  background: #f0f7ff;
  color: #2f567e;
  padding: 8px 14px;
  font-size: 1rem;
  font-weight: 700;
}

.public-news-page .announcement-search-label {
  display: block;
  color: #446282;
  font-size: 1.06rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.public-news-page .announcement-search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.public-news-page .announcement-search-row .form-control {
  height: 56px;
  border-radius: 14px;
  border: 1px solid #b9d1ed;
  font-size: 1.12rem;
  padding: 0.7rem 1rem;
}

.public-news-page .announcement-search-row .form-control:focus {
  border-color: #86aee1;
  box-shadow: 0 0 0 0.24rem rgba(79, 129, 197, 0.18);
}

.public-news-page .announcement-reset-btn {
  height: 56px;
  min-width: 170px;
  border-radius: 14px;
  border: 1px solid #b9d1ed;
  background: #ffffff;
  color: #2d5886;
  font-size: 1.04rem;
  font-weight: 800;
}

.public-news-page .announcement-reset-btn:hover,
.public-news-page .announcement-reset-btn:focus {
  background: #e9f2ff;
  border-color: #94b8e6;
  color: #1f4a77;
}

.public-news-page .announcement-tools-note {
  margin: 9px 0 0;
  color: #5a7493;
  font-size: 0.98rem;
}

.public-news-page .announcement-list {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 16px;
  align-items: stretch;
}

.public-news-page .announcement-card {
  border: 1px solid #c7dbf3;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 22px rgba(21, 58, 108, 0.09);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.public-news-page .announcement-card:nth-child(odd) {
  background: linear-gradient(160deg, #ffffff, #f2f7ff);
}

.public-news-page .announcement-card:nth-child(even) {
  background: linear-gradient(160deg, #ffffff, #f8fbff);
}

.public-news-page .announcement-card-media {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #dfeaf8;
  overflow: hidden;
}

.public-news-page .announcement-card-media-button {
  border: 0;
  padding: 0;
  cursor: zoom-in;
  text-align: left;
}

.public-news-page .announcement-card-media-button:focus-visible {
  outline: 3px solid #2d66bf;
  outline-offset: -3px;
}

.public-news-page .announcement-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.24s ease;
}

.public-news-page .announcement-card:hover .announcement-card-media img {
  transform: scale(1.03);
}

.public-news-page .announcement-card-media-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #577293;
  font-size: 1rem;
  font-weight: 700;
  background:
    linear-gradient(140deg, #edf4ff, #deebfb),
    repeating-linear-gradient(
      -45deg,
      rgba(255, 255, 255, 0.35),
      rgba(255, 255, 255, 0.35) 14px,
      rgba(228, 240, 255, 0.35) 14px,
      rgba(228, 240, 255, 0.35) 28px
    );
}

.public-news-page .announcement-card-body {
  padding: 14px 15px 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 230px;
  height: 100%;
}

.public-news-page .announcement-card-head {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.public-news-page .announcement-date {
  color: #4f6a88;
  font-size: 0.95rem;
  font-weight: 700;
}

.public-news-page .announcement-card-title {
  margin: 0;
  color: #123f6f;
  font-size: 1.56rem;
  line-height: 1.35;
  font-weight: 900;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.35em * 2);
}

.public-news-page .announcement-card-summary {
  margin: 0;
  color: #3f5f83;
  font-size: 1.08rem;
  line-height: 1.82;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.82em * 4);
}

.public-news-page .announcement-card-actions {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px dashed #c5d9f2;
}

.public-news-page .announcement-detail-btn {
  width: 100%;
  min-height: 52px;
  border: 1px solid #2f69c1;
  border-radius: 14px;
  background: linear-gradient(135deg, #2f69c1, #3f7ad4);
  color: #ffffff;
  font-size: 1.06rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 18px rgba(32, 72, 128, 0.24);
}

.public-news-page .announcement-detail-btn:hover,
.public-news-page .announcement-detail-btn:focus {
  border-color: #2358aa;
  background: linear-gradient(135deg, #285fb5, #346fc9);
  color: #ffffff;
  transform: translateY(-1px);
}

.public-news-page .announcement-details {
  margin-top: auto;
  border-top: 1px dashed #c5d9f2;
  padding-top: 8px;
}

.public-news-page .announcement-details summary {
  cursor: pointer;
  color: #1e5ba0;
  font-size: 1.02rem;
  font-weight: 800;
  padding: 4px 0;
}

.public-news-page .announcement-details[open] summary {
  margin-bottom: 8px;
}

.public-news-page .announcement-details-body {
  border: 1px solid #cfe0f4;
  border-radius: 12px;
  background: #f7fbff;
  color: #35567d;
  padding: 10px 12px;
  font-size: 1rem;
  line-height: 1.8;
}

.public-news-page .announcement-empty-state {
  border: 1px dashed #bfd4ef;
  border-radius: 16px;
  background: #f2f8ff;
  color: #436281;
  text-align: center;
  padding: 22px;
  font-size: 1.05rem;
  line-height: 1.75;
}

.public-news-page .announcement-empty-state strong {
  color: #184d81;
}

.announcement-image-modal .modal-content {
  position: relative;
  width: 100vw;
  height: 100vh;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
}

.announcement-image-modal .modal-dialog.announcement-image-dialog {
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.announcement-image-modal .modal-body {
  background: transparent;
  padding: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.announcement-image-modal .modal-body img {
  display: block;
  width: 98vw;
  height: 98vh;
  max-width: none;
  max-height: none;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
}

.announcement-image-modal .announcement-image-close {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 1085;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(10, 19, 33, 0.76);
  color: #ffffff;
  font-size: 1.8rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.announcement-image-modal .announcement-image-close:hover,
.announcement-image-modal .announcement-image-close:focus {
  background: rgba(20, 38, 61, 0.95);
  color: #ffffff;
}

.announcement-detail-modal .modal-dialog.announcement-detail-dialog {
  width: min(980px, 96vw);
  max-width: 980px;
}

.announcement-detail-modal .modal-content {
  border: 1px solid #b8d1ee;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(165deg, #ffffff 0%, #f3f8ff 100%);
  box-shadow: 0 22px 40px rgba(20, 53, 98, 0.2);
}

.announcement-detail-modal .announcement-detail-header {
  position: relative;
  padding: 22px 68px 16px 22px;
  border-bottom: 1px solid #d0e1f4;
  background:
    radial-gradient(circle at 90% 10%, rgba(77, 133, 216, 0.15), transparent 44%),
    radial-gradient(circle at 5% 90%, rgba(151, 196, 255, 0.2), transparent 42%),
    linear-gradient(140deg, #f7fbff, #eaf3ff);
}

.announcement-detail-modal .announcement-detail-kicker {
  margin: 0 0 4px;
  color: #2d5e97;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
}

.announcement-detail-modal .announcement-detail-title {
  margin: 0;
  color: #113f70;
  font-size: clamp(1.72rem, 2.5vw, 2.12rem);
  line-height: 1.35;
  font-weight: 900;
}

.announcement-detail-modal .announcement-detail-date {
  margin: 8px 0 0;
  color: #3f6489;
  font-size: 1.04rem;
  font-weight: 700;
}

.announcement-detail-modal .announcement-detail-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 46px;
  height: 46px;
  border: 1px solid #b8cde8;
  border-radius: 999px;
  background: #ffffff;
  color: #1c4e80;
  font-size: 1.9rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.announcement-detail-modal .announcement-detail-close:hover,
.announcement-detail-modal .announcement-detail-close:focus {
  background: #eaf2ff;
  color: #143d65;
}

.announcement-detail-modal .announcement-detail-body {
  padding: 18px 22px 14px;
}

.announcement-detail-modal .announcement-detail-image-wrap {
  margin: 0 0 16px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #c6dbf3;
  background: #e8f2ff;
  box-shadow: 0 12px 20px rgba(25, 63, 111, 0.14);
}

.announcement-detail-modal .announcement-detail-image-wrap img {
  display: block;
  width: 100%;
  max-height: 400px;
  object-fit: cover;
}

.announcement-detail-modal .announcement-detail-content {
  border: 1px solid #cfe0f4;
  border-radius: 16px;
  background: #fbfdff;
  padding: 16px 18px;
}

.announcement-detail-modal .announcement-detail-content p {
  margin: 0 0 14px;
  color: #264f77;
  font-size: 1.22rem;
  line-height: 2.02;
  letter-spacing: 0.004em;
}

.announcement-detail-modal .announcement-detail-content p:last-child {
  margin-bottom: 0;
}

@media (max-width: 1199px) {
  .public-news-page .announcement-hero {
    grid-template-columns: 1fr;
  }

  .public-news-page .announcement-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .public-news-page .announcement-title {
    font-size: 2rem;
  }

  .public-news-page .announcement-subtitle {
    font-size: 1.1rem;
  }

  .public-news-page .announcement-stats {
    grid-template-columns: 1fr;
  }

  .public-news-page .announcement-search-row {
    grid-template-columns: 1fr;
  }

  .public-news-page .announcement-reset-btn {
    width: 100%;
  }

  .public-news-page .announcement-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .public-news-page {
    padding-bottom: 34px;
  }

  .public-news-page .announcement-hero {
    border-radius: 18px;
    padding: 16px;
  }

  .public-news-page .announcement-title {
    font-size: 1.78rem;
  }

  .public-news-page .announcement-subtitle {
    font-size: 1.06rem;
    line-height: 1.75;
  }

  .public-news-page .announcement-tools {
    border-radius: 16px;
    padding: 14px;
  }

  .public-news-page .announcement-tools-title {
    font-size: 1.35rem;
  }

  .public-news-page .announcement-count-chip {
    width: 100%;
    justify-content: center;
  }

  .public-news-page .announcement-search-row .form-control,
  .public-news-page .announcement-reset-btn {
    height: 52px;
    font-size: 1rem;
  }

  .public-news-page .announcement-card {
    border-radius: 16px;
  }

  .public-news-page .announcement-card-body {
    padding: 12px 13px 14px;
    min-height: 0;
  }

  .public-news-page .announcement-card-title {
    font-size: 1.38rem;
    min-height: calc(1.35em * 2);
  }

  .public-news-page .announcement-card-summary {
    font-size: 1.03rem;
    line-height: 1.72;
    -webkit-line-clamp: 3;
    min-height: calc(1.72em * 3);
  }

  .public-news-page .announcement-detail-btn {
    min-height: 50px;
    font-size: 1rem;
  }

  .announcement-detail-modal .announcement-detail-header {
    padding: 16px 58px 12px 16px;
  }

  .announcement-detail-modal .announcement-detail-body {
    padding: 14px 16px 12px;
  }

  .announcement-detail-modal .announcement-detail-content {
    padding: 12px 14px;
  }

  .announcement-detail-modal .announcement-detail-content p {
    font-size: 1.08rem;
    line-height: 1.86;
  }

}
