/* General styles for the news page content */
.page-news {
  background-color: var(--bg-color, #0A0A0A); /* Dark background from brand colors */
  color: var(--text-main, #FFF6D6); /* Light text for dark background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  padding-bottom: 50px; /* Add some padding at the bottom */
}

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

.page-news__section-title {
  font-size: 38px;
  font-weight: 700;
  color: var(--text-main, #FFF6D6);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-news__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--main-color, #F2C14E);
  border-radius: 2px;
}

/* Hero Section */
.page-news__hero-section {
  position: relative;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, header offset handled by body */
  background-color: var(--bg-color, #0A0A0A);
}

.page-news__hero-content-wrapper {
  display: flex;
  flex-direction: column; /* Image on top, text below */
  align-items: center;
  max-width: 100%;
  margin: 0 auto;
}

.page-news__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-news__hero-text-container {
  max-width: 900px;
  text-align: center;
  padding: 40px 20px;
}

.page-news__hero-title {
  font-size: 48px;
  font-weight: 800;
  color: var(--text-main, #FFF6D6);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-news__hero-description {
  font-size: 18px;
  color: var(--text-main, #FFF6D6);
  margin-bottom: 30px;
}

/* Primary Button */
.page-news__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #FFF6D6;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(242, 193, 78, 0.4);
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-news__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(242, 193, 78, 0.6);
}

/* Secondary Button */
.page-news__btn-secondary {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 25px;
  background: var(--card-bg, #111111);
  color: var(--main-color, #F2C14E);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--main-color, #F2C14E);
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-news__btn-secondary:hover {
  background: var(--main-color, #F2C14E);
  color: var(--card-bg, #111111);
  transform: translateY(-2px);
}

/* Latest News Section */
.page-news__latest-news-section {
  padding: 60px 0;
  background-color: var(--bg-color, #0A0A0A);
}

.page-news__news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-news__news-card {
  background: var(--card-bg, #111111);
  border: 1px solid var(--border-color, #3A2A12);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

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

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

.page-news__card-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-news__card-title a {
  color: var(--text-main, #FFF6D6);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__card-title a:hover {
  color: var(--glow-color, #FFD36B);
}

.page-news__card-date {
  font-size: 14px;
  color: #a0a0a0;
  margin-bottom: 15px;
}

.page-news__card-excerpt {
  font-size: 16px;
  color: #cccccc;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-news__all-news-cta {
  text-align: center;
  margin-top: 50px;
}

/* Why Follow Section */
.page-news__why-follow-section {
  padding: 60px 0;
  background-color: var(--card-bg, #111111); /* Slightly different background */
  border-top: 1px solid var(--border-color, #3A2A12);
}

.page-news__benefit-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-news__benefit-item {
  background: var(--bg-color, #0A0A0A);
  border: 1px solid var(--border-color, #3A2A12);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.page-news__benefit-item:hover {
  transform: translateY(-5px);
}

.page-news__benefit-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--glow-color, #FFD36B);
  margin-bottom: 15px;
}

.page-news__benefit-description {
  font-size: 16px;
  color: #cccccc;
}

.page-news__cta-bottom {
  text-align: center;
  margin-top: 50px;
}

/* FAQ Section */
.page-news__faq-section {
  padding: 60px 0;
  background-color: var(--bg-color, #0A0A0A);
  border-top: 1px solid var(--border-color, #3A2A12);
}

.page-news__faq-list {
  margin-top: 40px;
}

details.page-news__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid var(--border-color, #3A2A12);
  overflow: hidden;
  background: var(--card-bg, #111111);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

details.page-news__faq-item summary.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: var(--text-main, #FFF6D6);
}

details.page-news__faq-item summary.page-news__faq-question::-webkit-details-marker {
  display: none;
}

details.page-news__faq-item summary.page-news__faq-question:hover {
  background: rgba(255, 255, 255, 0.05); /* Slight hover effect */
}

.page-news__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
}

.page-news__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--glow-color, #FFD36B);
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}

details.page-news__faq-item .page-news__faq-answer {
  padding: 0 25px 20px;
  background: var(--bg-color, #0A0A0A);
  border-radius: 0 0 10px 10px;
  color: #cccccc;
}

/* Image responsiveness base */
.page-news img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-news__hero-title {
    font-size: 42px;
  }
  .page-news__section-title {
    font-size: 34px;
  }
  .page-news__news-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-news__benefit-list {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  /* Hero Section */
  .page-news__hero-section {
    padding-top: 10px !important; /* Ensure small top padding */
  }
  .page-news__hero-text-container {
    padding: 30px 15px;
  }
  .page-news__hero-title {
    font-size: 32px;
    margin-bottom: 15px;
  }
  .page-news__hero-description {
    font-size: 16px;
    margin-bottom: 25px;
  }
  .page-news__btn-primary {
    font-size: 16px;
    padding: 12px 25px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Section Titles */
  .page-news__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }

  /* News Grid */
  .page-news__news-grid {
    grid-template-columns: 1fr; /* Single column */
    gap: 25px;
  }
  .page-news__news-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-news__card-image {
    height: 180px; /* Adjust height for mobile */
  }
  .page-news__card-title {
    font-size: 20px;
  }
  .page-news__card-excerpt {
    font-size: 15px;
  }
  .page-news__btn-secondary {
    font-size: 15px;
    padding: 10px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-news__all-news-cta {
    margin-top: 40px;
  }

  /* Why Follow Section */
  .page-news__why-follow-section {
    padding: 40px 0;
  }
  .page-news__benefit-list {
    grid-template-columns: 1fr; /* Single column */
    gap: 25px;
  }
  .page-news__benefit-item {
    padding: 25px;
  }
  .page-news__benefit-title {
    font-size: 20px;
  }
  .page-news__benefit-description {
    font-size: 15px;
  }
  .page-news__cta-bottom {
    margin-top: 40px;
  }

  /* FAQ Section */
  .page-news__faq-section {
    padding: 40px 0;
  }
  details.page-news__faq-item summary.page-news__faq-question {
    padding: 15px 20px;
  }
  .page-news__faq-qtext {
    font-size: 16px;
  }
  .page-news__faq-toggle {
    font-size: 24px;
    width: 25px;
  }
  details.page-news__faq-item .page-news__faq-answer {
    padding: 0 20px 15px;
  }

  /* Universal image and container responsiveness */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important; /* Ensure padding/border is included in width */
  }

  .page-news__container {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  /* Button container responsiveness */
  .page-news__cta-buttons,
  .page-news__button-group,
  .page-news__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px; /* Spacing between stacked buttons */
  }
}