/* News public pages */
.news-hero {
  padding: 120px 0 60px;
  background: linear-gradient(135deg, #0B1A3E 0%, #14295A 100%);
  color: #fff;
}

.news-hero .container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.news-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  transition: color 0.2s ease;
}

.news-back-link:hover {
  color: #FFB133;
}

.news-hero-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
  line-height: 1.1;
}

.news-hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 2rem;
  max-width: 600px;
}

.news-search {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.news-search-input {
  flex: 1 1 280px;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.news-search-input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.news-search-input:focus {
  border-color: #FFB133;
  background: rgba(255, 255, 255, 0.12);
}

.news-search-btn,
.news-search-clear {
  padding: 14px 22px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.news-search-btn {
  background: #FFB133;
  color: #0B1A3E;
}

.news-search-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(255, 177, 51, 0.25);
}

.news-search-clear {
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.news-search-clear:hover {
  border-color: #FFB133;
  color: #FFB133;
}

.news-section {
  padding: 60px 0 100px;
  background: #F7F9FC;
}

.news-section .container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

.news-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(11, 26, 62, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(11, 26, 62, 0.12);
}

.news-card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.news-card-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #E8EDF5;
}

.news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.news-card:hover .news-card-image img {
  transform: scale(1.04);
}

.news-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(11, 26, 62, 0.25);
}

.news-card-placeholder svg {
  width: 48px;
  height: 48px;
}

.news-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.news-card-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #0B1A3E;
  background: #FFE9C7;
  padding: 4px 10px;
  border-radius: 100px;
}

.news-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0B1A3E;
  margin-bottom: 8px;
  line-height: 1.3;
}

.news-card-subtitle {
  font-size: 0.92rem;
  color: #5A6A8C;
  line-height: 1.5;
  margin-bottom: 16px;
  flex: 1;
}

.news-card-cta {
  font-weight: 700;
  color: #FFB133;
  font-size: 0.92rem;
}

.news-empty {
  text-align: center;
  padding: 80px 20px;
  color: #5A6A8C;
}

.news-empty p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

/* Detail page */
.news-detail {
  padding: 120px 0 100px;
  background: #F7F9FC;
  min-height: 100vh;
}

.news-detail .container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.news-detail-header {
  margin-bottom: 36px;
}

.news-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.news-detail-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #0B1A3E;
  background: #FFE9C7;
  padding: 5px 12px;
  border-radius: 100px;
}

.news-detail-title {
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  font-weight: 800;
  color: #0B1A3E;
  line-height: 1.15;
  margin-bottom: 12px;
}

.news-detail-subtitle {
  font-size: 1.15rem;
  color: #5A6A8C;
  line-height: 1.5;
  margin-bottom: 14px;
}

.news-detail-meta {
  font-size: 0.88rem;
  color: #8B9AB7;
}

.news-detail-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 36px;
}

.news-detail-figure {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(11, 26, 62, 0.08);
}

.news-detail-figure-featured {
  grid-column: 1 / -1;
}

.news-detail-figure img {
  width: 100%;
  height: auto;
  display: block;
}

.news-detail-content {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #2C3A5A;
  margin-bottom: 48px;
}

.news-detail-content p {
  margin-bottom: 1.2em;
}

.news-detail-content h2,
.news-detail-content h3 {
  color: #0B1A3E;
  margin-top: 1.6em;
  margin-bottom: 0.6em;
}

.news-detail-footer {
  padding-top: 32px;
  border-top: 1px solid #E2E8F0;
}

.btn.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  border: 1.5px solid #0B1A3E;
  color: #0B1A3E;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn.btn-outline:hover {
  background: #0B1A3E;
  color: #fff;
}

@media (min-width: 700px) {
  .news-detail-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}
