/* style/news-maintenance-notice.css */
.page-news-maintenance-notice {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background handled by shared.css */
}

.page-news-maintenance-notice__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  padding: 60px 20px;
  text-align: center;
  overflow: hidden;
  color: #ffffff;
  background-color: #017439; /* Primary brand color for hero background */
}

.page-news-maintenance-notice__hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(1, 116, 57, 0.7), rgba(1, 116, 57, 0.9));
  z-index: 1;
}

.page-news-maintenance-notice__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.page-news-maintenance-notice__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

.page-news-maintenance-notice__main-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

.page-news-maintenance-notice__intro-text {
  font-size: 1.2em;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-news-maintenance-notice__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-news-maintenance-notice__cta-buttons--centered {
  margin-top: 40px;
}

.page-news-maintenance-notice__btn-primary,
.page-news-maintenance-notice__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-news-maintenance-notice__btn-primary {
  background-color: #C30808; /* Specific color for 'Đăng ký' and 'Đăng nhập' */
  color: #FFFF00; /* Specific font color */
  border: 2px solid #C30808;
}

.page-news-maintenance-notice__btn-primary:hover {
  background-color: #e02020;
  border-color: #e02020;
}

.page-news-maintenance-notice__btn-secondary {
  background-color: #ffffff;
  color: #017439;
  border: 2px solid #017439;
}

.page-news-maintenance-notice__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #005a2e;
}

.page-news-maintenance-notice__content-area {
  padding: 60px 20px;
}

.page-news-maintenance-notice__container {
  max-width: 1000px;
  margin: 0 auto;
}

.page-news-maintenance-notice__light-bg {
  background-color: #ffffff;
  color: #333333; /* Dark text for light background */
}

.page-news-maintenance-notice__dark-bg {
  background-color: #017439;
  color: #ffffff; /* Light text for dark background */
}

.page-news-maintenance-notice__section-title {
  font-size: 2em;
  margin-bottom: 30px;
  text-align: center;
  line-height: 1.3;
}

.page-news-maintenance-notice__light-bg .page-news-maintenance-notice__section-title {
  color: #017439;
}

.page-news-maintenance-notice__dark-bg .page-news-maintenance-notice__section-title {
  color: #ffffff;
}

.page-news-maintenance-notice__paragraph {
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 20px;
}

.page-news-maintenance-notice__list {
  list-style: disc inside;
  margin-bottom: 30px;
  padding-left: 20px;
}

.page-news-maintenance-notice__list-item {
  font-size: 1.05em;
  line-height: 1.8;
  margin-bottom: 10px;
}

.page-news-maintenance-notice__image {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 40px auto;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-news-maintenance-notice__faq-list {
  margin-top: 40px;
}

.page-news-maintenance-notice__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.page-news-maintenance-notice__light-bg .page-news-maintenance-notice__faq-item {
  background-color: #f9f9f9;
  color: #333333;
  border: 1px solid #e0e0e0;
}

.page-news-maintenance-notice__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: bold;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
}

.page-news-maintenance-notice__light-bg .page-news-maintenance-notice__faq-question {
  background-color: #e8f5e9;
  border-bottom: 1px solid #dcdcdc;
}

.page-news-maintenance-notice__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.page-news-maintenance-notice__light-bg .page-news-maintenance-notice__faq-question:hover {
  background-color: #dcedc8;
}

.page-news-maintenance-notice__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
}

.page-news-maintenance-notice__faq-answer {
  padding: 0 25px 15px;
  font-size: 1em;
  line-height: 1.6;
}

.page-news-maintenance-notice__faq-answer p {
  margin-top: 10px;
}

.page-news-maintenance-notice__faq-item[open] .page-news-maintenance-notice__faq-question {
  border-bottom: none;
}

.page-news-maintenance-notice__contact-section {
  text-align: center;
}

.page-news-maintenance-notice__contact-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
  margin-bottom: 30px;
}

.page-news-maintenance-notice__contact-item {
  font-size: 1.1em;
  margin-bottom: 10px;
}

/* Ensure images, videos, and buttons are responsive and don't overflow */
.page-news-maintenance-notice img,
.page-news-maintenance-notice video {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-news-maintenance-notice__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  margin: 40px auto;
  border-radius: 8px;
}

.page-news-maintenance-notice__video-wrapper iframe,
.page-news-maintenance-notice__video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-news-maintenance-notice__main-title {
    font-size: 2em;
  }

  .page-news-maintenance-notice__intro-text,
  .page-news-maintenance-notice__paragraph,
  .page-news-maintenance-notice__list-item,
  .page-news-maintenance-notice__faq-question,
  .page-news-maintenance-notice__faq-answer p,
  .page-news-maintenance-notice__contact-item {
    font-size: 1em;
  }

  .page-news-maintenance-notice__section-title {
    font-size: 1.6em;
  }

  .page-news-maintenance-notice__hero-section,
  .page-news-maintenance-notice__content-area,
  .page-news-maintenance-notice__contact-section {
    padding: 40px 15px;
  }

  .page-news-maintenance-notice__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-news-maintenance-notice__btn-primary,
  .page-news-maintenance-notice__btn-secondary {
    width: 100%;
    padding: 12px 20px;
  }

  .page-news-maintenance-notice img,
  .page-news-maintenance-notice video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-news-maintenance-notice__container,
  .page-news-maintenance-notice__hero-content,
  .page-news-maintenance-notice__cta-buttons,
  .page-news-maintenance-notice__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .page-news-maintenance-notice__faq-question,
  .page-news-maintenance-notice__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-news-maintenance-notice__hero-section {
    padding-top: var(--header-offset, 120px) !important; 
  }
}

@media (max-width: 480px) {
  .page-news-maintenance-notice__main-title {
    font-size: 1.8em;
  }
  .page-news-maintenance-notice__section-title {
    font-size: 1.4em;
  }
}