/* =====================================================
   LOCAL NEW – NEWS PAGE
   Safe scope for Moodle + Theme Taynguyen / Boost
   ===================================================== */

/* ===== ROOT SCOPE ===== */
.local-news-page {
  width: 100%;
  background: #fff;
  position: relative;
}

/* ===== HERO ===== */
.local-news-page .hero-section {
  position: relative;
  height: 420px;
  display: flex;
  align-items: center;
  background: linear-gradient(
      rgba(230, 240, 250, 0.85),
      rgba(230, 240, 250, 0.85)
    ),
    url("/theme/taynguyen/pix/icons/thuvien.jpg") center / cover no-repeat;
}

.local-news-page .hero-content {
  max-width: 1385px;
  margin: 0 auto;
  padding: 0 20px;
}

.local-news-page .hero-title {
  font-size: 48px;
  font-weight: 700;
  color: #0056b3;
  text-transform: uppercase;
  margin: 0;
}

.local-news-page .hero-subtitle {
  margin-top: 12px;
  font-size: 20px;
  color: #073e6a;
}

/* ===== ADD POST BUTTON ===== */
.local-news-page .add-post-wrapper {
  position: absolute;
  right: 30px;
  bottom: 30px;
}

.local-news-page .add-post-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #005ea0;
  color: #fff;
  padding: 12px 22px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
}

.local-news-page .add-post-btn:hover {
  background: #004a80;
  color: #fff;
  text-decoration: none;
}

/* ===== CONTENT SECTION ===== */
.local-news-page .content-section {
  padding: 80px 0;
}

.local-news-page .content-container {
  max-width: 1385px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== NEWS CARD ===== */
.local-news-page .news-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #d0e4f7;
  border-radius: 12px;
  padding: 40px;
  margin-bottom: 40px;
  box-shadow: 0 4px 15px rgba(0, 86, 179, 0.08);
}

/* ===== TITLE ===== */
.local-news-page .news-title {
  font-size: 32px;
  font-weight: 700;
  color: #005ea0;
  margin-bottom: 20px;
}

/* ===== CONTENT ===== */
.local-news-page .news-content {
  font-size: 20px;
  line-height: 1.6;
  color: #222;
  word-break: break-word;
  overflow-wrap: break-word;
}

/* Fix image inside Moodle editor */
.local-news-page .news-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px 0;
}

/* ===== META TIME ===== */
.local-news-page .news-time {
  display: block;
  margin-top: 14px;
  font-size: 14px;
  color: #666;
}

/* ===== ADMIN POST MENU ===== */
.local-news-page .post-menu {
  position: absolute;
  top: 12px;
  right: 12px;
}

.local-news-page .post-menu summary {
  cursor: pointer;
  font-size: 20px;
  list-style: none;
}

.local-news-page .post-menu summary::-webkit-details-marker {
  display: none;
}

.local-news-page .post-menu-box {
  background: #fff;
  border: 1px solid #ddd;
  padding: 8px;
  border-radius: 6px;
  min-width: 90px;
  margin-top: 6px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.local-news-page .post-menu-box a {
  display: block;
  color: #333;
  font-size: 14px;
  text-decoration: none;
  padding: 4px 0;
}

.local-news-page .post-menu-box a:hover {
  color: #005ea0;
}

/* ===== EMPTY STATE ===== */
.local-news-page .news-card p {
  margin: 0;
  font-size: 18px;
  color: #444;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .local-news-page .hero-title {
    font-size: 32px;
  }

  .local-news-page .hero-subtitle {
    font-size: 16px;
  }

  .local-news-page .news-card {
    padding: 20px;
  }

  .local-news-page .news-title {
    font-size: 24px;
  }

  .local-news-page .news-content {
    font-size: 16px;
  }
}
