.announcement-detail-page {
  width: 100%;
  background: #ffffff;
  font-family: "Montserrat", sans-serif;
}

.announcement-detail-page,
.announcement-detail-page * {
  font-family: "Montserrat", sans-serif;
  box-sizing: border-box;
}

.announcement-detail-page .container {
  width: min(100% - 32px, 1320px);
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Breadcrumb */

.announcement-detail-breadcrumb-section {
  padding: 18px 0 13px !important;
}

.announcement-detail-breadcrumb {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 7px !important;
  color: #7f8994 !important;
  font-size: 10px !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
}

.announcement-detail-breadcrumb a {
  color: #7f8994 !important;
  text-decoration: none !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  transition: color 0.2s ease !important;
}

.announcement-detail-breadcrumb a:hover {
  color: #173f67 !important;
  text-decoration: none !important;
}

.announcement-detail-breadcrumb strong {
  color: #173f67 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
}

.announcement-detail-breadcrumb span {
  color: #9ca6af !important;
  font-size: 10px !important;
}

.announcement-detail-full-line {
  width: 100%;
  height: 1px;
  background: #dfe5eb;
}

/* Section */

.announcement-detail-section {
  padding: 24px 0 22px;
}

/* Top panel */

.announcement-detail-top-panel {
  width: 100%;
  min-height: 42px;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.announcement-detail-top-left {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.announcement-detail-top-right {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.announcement-detail-date-pill {
  min-height: 34px;
  padding: 8px 15px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #dfe6ed;
  color: #173f67;
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.announcement-detail-deadline-pill {
  min-height: 34px;
  padding: 8px 15px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #dfe6ed;
  color: #7f8994;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  white-space: nowrap;
}

.announcement-detail-deadline-pill strong {
  color: #173f67;
  font-weight: 800;
}

.announcement-detail-status {
  min-width: 86px;
  height: 34px;
  padding: 0 16px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.announcement-detail-status.new {
  background: #fde6e8;
  color: #d93030;
}

.announcement-detail-status.active {
  background: #dff3ed;
  color: #187057;
}

.announcement-detail-status.finished {
  background: #eeeeee;
  color: #707070;
}

/* Main content box */

.announcement-detail-info-box {
  width: 100%;
  max-width: 100%;
  padding: 24px 30px 24px;
  background: #f7fbff;
  border-left: 4px solid #173f67;
  border-radius: 7px;
  box-shadow: 0 8px 24px rgba(23, 63, 103, 0.07);
}

.announcement-detail-title {
  margin: 0 0 14px;
  color: #173f67;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.45;
}

.announcement-detail-content {
  width: 100%;
  max-width: 100%;
  color: #606874;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.65;
  text-align: justify;
}

.announcement-detail-content .announcement-text-line {
  margin: 0 0 8px;
}

.announcement-detail-content .announcement-text-line:last-child {
  margin-bottom: 0;
}

.announcement-detail-content a {
  color: #173f67;
  font-weight: 700;
  text-decoration: underline;
}

.announcement-detail-content strong,
.announcement-detail-content b {
  color: #303030;
  font-weight: 800;
}

/* Table */

.announcement-detail-table-wrapper {
  width: 100%;
  max-width: 560px;
  margin-top: 24px;
  margin-bottom: 0;
  overflow-x: auto;
}

.announcement-detail-table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(23, 63, 103, 0.08);
}

.announcement-detail-table th,
.announcement-detail-table td {
  border: 1px solid #dfe6ed;
  padding: 15px 18px;
  color: #222222;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
  text-align: left;
  vertical-align: middle;
}

.announcement-detail-table thead tr:first-child th {
  background: #173f67;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  line-height: 1.4;
}

.announcement-detail-table thead tr:nth-child(2) th {
  background: #214d79;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

.announcement-detail-table tbody td:first-child {
  width: 58px;
  text-align: center;
}

.announcement-detail-table tbody td:nth-child(2) {
  text-align: left;
}

.announcement-detail-table tbody td:last-child {
  width: 130px;
  text-align: center;
}

.announcement-detail-table tbody tr:nth-child(even) td {
  background: #f7f9fb;
}

/* Note */

.announcement-detail-note {
  width: 100%;
  max-width: 100%;
  margin-top: 18px;
  margin-bottom: 0;
  color: #111111;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.55;
  overflow-wrap: normal;
  word-break: normal;
}

.announcement-detail-note p {
  margin: 0 0 8px;
}

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

.announcement-detail-note .announcement-text-line {
  margin: 0 0 8px;
}

.announcement-detail-note .announcement-text-line:last-child {
  margin-bottom: 0;
}

.announcement-detail-note .announcement-text-line.is-strong {
  font-weight: 800;
  color: #111111;
}

.announcement-detail-note .announcement-text-line.is-phone {
  margin-bottom: 7px;
  color: #111111;
  white-space: nowrap;
}

.announcement-detail-note .announcement-text-line.is-phone + .announcement-text-line.is-phone {
  margin-top: 0;
}

.announcement-detail-note .announcement-phone-nowrap {
  white-space: nowrap;
  display: inline-block;
}

.announcement-detail-note .announcement-download-link {
  color: #006eff;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.announcement-detail-note a {
  color: #173f67;
  font-weight: 700;
  text-decoration: underline;
}

.announcement-detail-note a[href^="tel"] {
  white-space: nowrap;
  display: inline-block;
}

.announcement-detail-note strong,
.announcement-detail-note b {
  font-weight: 800;
}

/* Footer gap fix */

.announcement-detail-page + footer,
.announcement-detail-page + .footer,
.announcement-detail-page ~ footer,
.announcement-detail-page ~ .footer {
  margin-top: 0 !important;
}

/* Responsive */

@media (max-width: 1199px) {
  .announcement-detail-page .container {
    padding-left: 18px;
    padding-right: 18px;
  }

  .announcement-detail-section {
    padding: 24px 0 20px;
  }
}

@media (max-width: 991px) {
  .announcement-detail-page .container {
    width: min(100% - 24px, 1320px);
    padding-left: 12px;
    padding-right: 12px;
  }

  .announcement-detail-info-box {
    max-width: 100%;
  }
}

@media (max-width: 767px) {
  .announcement-detail-page .container {
    width: min(100% - 20px, 1320px);
    padding-left: 8px;
    padding-right: 8px;
  }

  .announcement-detail-breadcrumb {
    font-size: 10px !important;
  }

  .announcement-detail-breadcrumb a,
  .announcement-detail-breadcrumb strong {
    font-size: 13px !important;
  }

  .announcement-detail-section {
    padding: 22px 0 18px;
  }

  .announcement-detail-top-panel {
    align-items: flex-start;
    gap: 12px;
  }

  .announcement-detail-top-right {
    gap: 8px;
  }

  .announcement-detail-info-box {
    padding: 22px 22px;
  }

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

  .announcement-detail-content,
  .announcement-detail-note {
    font-size: 13px;
    line-height: 1.55;
  }

  .announcement-detail-table-wrapper {
    max-width: 100%;
  }
}

@media (max-width: 575px) {
  .announcement-detail-page .container {
    width: min(100% - 18px, 1320px);
    padding-left: 6px;
    padding-right: 6px;
  }

  .announcement-detail-top-panel {
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 10px;
  }

  .announcement-detail-top-left {
    width: 100%;
  }

  .announcement-detail-top-right {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }

  .announcement-detail-date-pill {
    width: 100%;
    min-height: 34px;
    border-radius: 8px;
    justify-content: flex-start;
  }

  .announcement-detail-deadline-pill {
    flex: 1;
    min-width: 0;
    min-height: 34px;
    border-radius: 8px;
    justify-content: flex-start;
  }

  .announcement-detail-status {
    flex: 0 0 auto;
    height: 34px;
  }

  .announcement-detail-info-box {
    padding: 20px 18px;
  }

  .announcement-detail-note .announcement-text-line,
  .announcement-detail-content .announcement-text-line {
    margin-bottom: 7px;
  }
}

@media (max-width: 480px) {
  .announcement-detail-section {
    padding: 20px 0 16px;
  }

  .announcement-detail-info-box {
    padding: 18px 16px;
  }

  .announcement-detail-table th,
  .announcement-detail-table td {
    padding: 12px;
    font-size: 10px;
  }

  .announcement-detail-date-pill,
  .announcement-detail-deadline-pill {
    font-size: 11.5px;
  }

  .announcement-detail-status {
    min-width: 80px;
    font-size: 10.5px;
  }
}

@media (max-width: 420px) {
  .announcement-detail-page .container {
    width: min(100% - 14px, 1320px);
    padding-left: 4px;
    padding-right: 4px;
  }

  .announcement-detail-top-right {
    flex-direction: column;
    align-items: stretch;
  }

  .announcement-detail-deadline-pill {
    width: 100%;
  }

  .announcement-detail-status {
    width: max-content;
  }
}

@media (max-width: 360px) {
  .announcement-detail-section {
    padding: 18px 0 14px;
  }

  .announcement-detail-info-box {
    padding: 16px 14px;
  }
}