/* style/news.css */

/* Base Styles */
.page-news {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default dark text for light background */
  background-color: var(--bg-color, #FFFFFF);
}

.page-news__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-news__section-title {
  font-size: 2.5em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
}

.page-news__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 50px;
  color: #555555;
}

.page-news__full-content-text {
  font-size: 1em;
  line-height: 1.8;
  margin-top: 40px;
  margin-bottom: 40px;
  padding: 0 15px;
  text-align: justify;
}

/* Hero Section */
.page-news__hero-section {
  background-color: #26A9E0; /* Brand color as background */
  color: #FFFFFF; /* White text for dark background */
  padding: 100px 0;
  text-align: center;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

.page-news__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-news__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-news__hero-cta {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* Buttons */
.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-news__btn-primary {
  background-color: #EA7C07; /* Login color for primary action */
  color: #FFFFFF;
  border: 2px solid #EA7C07;
}

.page-news__btn-primary:hover {
  background-color: #d16b06;
  border-color: #d16b06;
}

.page-news__btn-secondary {
  background-color: #FFFFFF;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-news__btn-secondary:hover {
  background-color: #e0f2ff;
  color: #1a7fb2;
  border-color: #1a7fb2;
}

/* Grid Layout */
.page-news__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.page-news__grid-full {
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px;
  margin-bottom: 50px;
}

/* Card Styles */
.page-news__card {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: #333333;
}

.page-news__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-news__card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-news__card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-news__card-title {
  font-size: 1.4em;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-news__card-title a {
  color: #26A9E0;
  text-decoration: none;
}

.page-news__card-title a:hover {
  text-decoration: underline;
}

.page-news__card-text {
  font-size: 0.95em;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-news__card-link {
  color: #EA7C07;
  text-decoration: none;
  font-weight: bold;
  align-self: flex-start;
}

.page-news__card-link:hover {
  text-decoration: underline;
}

/* Update Item Styles */
.page-news__update-item {
  display: flex;
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  color: #333333;
}

.page-news__update-image {
  width: 50%;
  height: auto;
  object-fit: cover;
  display: block;
}

.page-news__update-content {
  width: 50%;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-news__update-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: #26A9E0;
  font-weight: bold;
}

.page-news__update-text {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
}

/* Guide Item Styles (similar to update item) */
.page-news__guide-item {
  display: flex;
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  color: #333333;
}

.page-news__guide-image {
  width: 50%;
  height: auto;
  object-fit: cover;
  display: block;
}

.page-news__guide-content {
  width: 50%;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-news__guide-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: #26A9E0;
  font-weight: bold;
}

.page-news__guide-text {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
}

/* Announcement List */
.page-news__announcement-list {
  list-style: none;
  padding: 0;
  margin: 0;
  margin-bottom: 50px;
}

.page-news__announcement-item {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 25px;
  margin-bottom: 20px;
  transition: transform 0.3s ease;
  color: #333333;
}

.page-news__announcement-item:hover {
  transform: translateY(-3px);
}

.page-news__announcement-title {
  font-size: 1.5em;
  margin-bottom: 10px;
}

.page-news__announcement-title a {
  color: #26A9E0;
  text-decoration: none;
}

.page-news__announcement-title a:hover {
  text-decoration: underline;
}

.page-news__announcement-date {
  font-size: 0.9em;
  color: #777777;
  margin-bottom: 10px;
}

.page-news__announcement-text {
  font-size: 1em;
  color: #555555;
}

/* FAQ Section */
.page-news__faq-section {
  background-color: #26A9E0;
  color: #FFFFFF;
  padding: 80px 0;
}

.page-news__faq-section .page-news__section-title {
  color: #FFFFFF;
}

.page-news__faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.page-news__faq-item {
  background-color: #FFFFFF;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  color: #333333;
}

.page-news__faq-item summary {
  list-style: none; /* Hide default marker */
}

.page-news__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for Webkit */
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  color: #26A9E0;
  background-color: #f8f8f8;
  border-bottom: 1px solid #eee;
}

.page-news__faq-question:hover {
  background-color: #eef;
}

.page-news__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  line-height: 1;
  margin-left: 15px;
}

.page-news__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: #555555;
  background-color: #FFFFFF;
}

/* CTA Section */
.page-news__cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: #FFFFFF;
}

.page-news__cta-title {
  font-size: 2.8em;
  color: #26A9E0;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-news__cta-description {
  font-size: 1.2em;
  color: #555555;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-news__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-news__hero-title {
    font-size: 2.8em;
  }

  .page-news__section-title {
    font-size: 2em;
  }

  .page-news__update-item,
  .page-news__guide-item {
    flex-direction: column;
  }

  .page-news__update-image,
  .page-news__update-content,
  .page-news__guide-image,
  .page-news__guide-content {
    width: 100%;
  }

  .page-news__update-content, .page-news__guide-content {
    padding: 20px;
  }

  .page-news__update-title, .page-news__guide-title {
    font-size: 1.5em;
  }
}

@media (max-width: 768px) {
  .page-news {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-news__container {
    padding: 0 15px;
  }

  .page-news__hero-section {
    padding: 80px 0;
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-news__hero-title {
    font-size: 2.2em;
  }

  .page-news__hero-description {
    font-size: 1em;
  }

  .page-news__hero-cta {
    flex-direction: column;
    gap: 15px;
  }

  .page-news__btn-primary,
  .page-news__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
  }

  .page-news__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }

  .page-news__section-description {
    font-size: 0.9em;
    margin-bottom: 30px;
  }

  .page-news__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-news__card-image {
    height: 200px;
  }

  .page-news__card-title {
    font-size: 1.2em;
  }

  .page-news__update-item,
  .page-news__guide-item {
    flex-direction: column;
  }

  .page-news__update-image,
  .page-news__update-content,
  .page-news__guide-image,
  .page-news__guide-content {
    width: 100%;
  }

  .page-news__update-title,
  .page-news__guide-title {
    font-size: 1.3em;
  }

  .page-news__announcement-title {
    font-size: 1.2em;
  }

  .page-news__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }

  .page-news__cta-title {
    font-size: 2em;
  }

  .page-news__cta-description {
    font-size: 1em;
  }

  .page-news__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  /* Ensure images do not overflow */
  .page-news img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-news__section,
  .page-news__card,
  .page-news__container,
  .page-news__update-item,
  .page-news__guide-item,
  .page-news__announcement-item,
  .page-news__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    /* padding-left: 15px; */ /* Handled by container */
    /* padding-right: 15px; */ /* Handled by container */
  }

  .page-news__full-content-text {
    padding: 0;
  }

  .page-news__cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .page-news__cta-buttons .page-news__btn-primary,
  .page-news__cta-buttons .page-news__btn-secondary {
    width: 100%;
  }

  .page-news__video-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure video section respects header offset on mobile */
  }
}

@media (max-width: 480px) {
  .page-news__hero-title {
    font-size: 1.8em;
  }

  .page-news__section-title {
    font-size: 1.5em;
  }

  .page-news__cta-title {
    font-size: 1.8em;
  }
}

/* Color Contrast Fixes for specific elements if needed */
.page-news__dark-bg {
  color: #ffffff;
}

.page-news__light-bg {
  color: #333333;
}

.page-news__cta-section {
  background-color: #FFFFFF;
  color: #333333;
}