body {
  box-sizing: border-box;
  height: 100%;
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #edf4ff;
}

html {
  height: 100%;
}

.app-wrapper {
  width: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #0b3c8a 0%, #122142 45%, #0b3c8a 100%);
    color: #ffffff;
    padding: 2.5rem 1rem 2.25rem;
    /* Ensure subpage hero doesn't take homepage full-height layout */
    min-height: auto;
    display: block;
    align-items: initial;
}

.hero-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.hero-breadcrumb {
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
    color: #c7d8ff;
}

.hero-breadcrumb a {
    color: #ffc107;
    text-decoration: none;
}

.hero-breadcrumb a:hover {
    text-decoration: underline;
}

.hero-title {
    font-size: 1.9rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.hero-subtitle {
    font-size: 1rem;
    color: #dbe6ff;
    margin-bottom: 0;
    max-width: 42rem;
}

.back-link {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.35rem;
  color: #ffc107;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  background: rgba(255, 193, 7, 0.15);
  border-radius: 0.5rem;
  transition: all 0.2s ease;
}

.back-link:hover {
  background: rgba(255, 193, 7, 0.25);
  transform: translateX(-3px);
}

/* Main Content */
main {
  flex: 1 1 auto;
  padding: 2rem 1rem 2rem;
}

.main-inner {
  max-width: 1100px;
  margin: 0 auto;
}

/* Announcement Card */
.announcement-detail-card {
  background: #f2f6ff;
  border-radius: 0.9rem;
  padding: 2.5rem;
  border: 1px solid #d3def8;
  box-shadow: 0 4px 14px rgba(11, 60, 138, 0.08);
  margin-bottom: 1.5rem;
}

@media (max-width: 575.98px) {
  .announcement-detail-card {
    padding: 1.5rem;
  }
}

/* Header Section */
.announcement-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid #d3def8;
}

.announcement-meta-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.announcement-category {
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: #0b3c8a;
  color: #ffffff;
}

.announcement-priority {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #6c7aa5;
  padding: 0.45rem 0.9rem;
  background: #e3ebff;
  border-radius: 999px;
}

.priority-icon {
  font-size: 1.1rem;
}

.announcement-title {
  font-size: 2rem;
  font-weight: 700;
  color: #122142;
  margin-bottom: 1rem;
  line-height: 1.3;
}

@media (max-width: 575.98px) {
  .announcement-title {
    font-size: 1.5rem;
  }
}

.announcement-meta-info {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: #6c7aa5;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.meta-icon {
  font-size: 1.1rem;
}

.meta-label {
  font-weight: 600;
  color: #4d5c82;
}

/* Content Section */
.announcement-content {
  color: #4d5c82;
  line-height: 1.8;
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.announcement-content p {
  margin-bottom: 1.25rem;
}

.announcement-content ul,
.announcement-content ol {
  margin-bottom: 1.25rem;
  padding-left: 1.75rem;
}

.announcement-content li {
  margin-bottom: 0.75rem;
}

.announcement-content strong {
  color: #122142;
  font-weight: 600;
}

/* Info Boxes */
.info-box {
  background: #fff9e6;
  border-left: 4px solid #ffc107;
  padding: 1.25rem 1.5rem;
  border-radius: 0.5rem;
  margin: 1.75rem 0;
}

.info-box-title {
  font-weight: 700;
  color: #122142;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
}

.info-box-content {
  color: #4d5c82;
  font-size: 0.95rem;
  line-height: 1.6;
}

.urgent-box {
  background: #ffe6e6;
  border-left-color: #dc3545;
}

.urgent-box .info-box-title {
  color: #dc3545;
}

/* Action Section */
.action-section {
  background: #e8f0ff;
  border-radius: 0.9rem;
  padding: 1.75rem;
  margin-top: 2rem;
  border: 1px solid #d3def8;
}

.action-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #122142;
  margin-bottom: 1rem;
}

.action-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-action {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: #0b3c8a;
  color: #ffffff;
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-action:hover {
  background: #0a58ca;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(11, 60, 138, 0.3);
  color: #ffffff;
}

.btn-secondary {
  background: #6c7aa5;
}

.btn-secondary:hover {
  background: #5a6890;
}

/* Contact Section */
.contact-section {
  background: #f2f6ff;
  border-radius: 0.9rem;
  padding: 1.75rem;
  border: 1px solid #d3def8;
  margin-bottom: 1.5rem;
}

.contact-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #122142;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
}

.contact-item {
  display: flex;
  align-items: start;
  gap: 0.75rem;
}

.contact-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #0b3c8a;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-details {
  flex: 1 1 auto;
}

.contact-label {
  font-size: 0.8rem;
  color: #6c7aa5;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.contact-value {
  font-size: 0.95rem;
  color: #122142;
  font-weight: 600;
}

.contact-value a {
  color: #0b3c8a;
  text-decoration: none;
}

.contact-value a:hover {
  text-decoration: underline;
}

/* Related Section */
.related-section {
  background: #f2f6ff;
  border-radius: 0.9rem;
  padding: 1.75rem;
  border: 1px solid #d3def8;
}

.related-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #122142;
  margin-bottom: 1rem;
}

.related-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.related-item {
  margin: 0;
}

.related-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.1rem;
  background: #ffffff;
  border-radius: 0.5rem;
  text-decoration: none;
  color: #4d5c82;
  transition: all 0.2s ease;
  border: 1px solid #e3ebff;
}

.related-link:hover {
  background: #e8f0ff;
  border-color: #0b3c8a;
  color: #0b3c8a;
  transform: translateX(5px);
}

.related-icon {
  font-size: 1.2rem;
}

.related-text {
  flex: 1 1 auto;
  font-weight: 500;
  font-size: 0.95rem;
}

.related-arrow {
  color: #6c7aa5;
  font-size: 1.1rem;
}

/* Accessibility */
a:focus-visible,
button:focus-visible {
  outline: 2px dashed #ffc107;
  outline-offset: 2px;
}

/* Responsive */
@media (max-width: 575.98px) {
  .hero-section {
    padding-inline: 0.75rem;
  }

  main {
    padding-inline: 0.75rem;
  }

  .announcement-meta-info {
    gap: 1rem;
  }

  .action-buttons {
    flex-direction: column;
  }

  .btn-action {
    width: 100%;
    justify-content: center;
  }
}

@view-transition {
  navigation: auto;
}
