/* style/news.css */

/* General Page Styles */
.page-news {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #000000; /* Inherited from shared.css body, but good to keep in mind */
}

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

.page-news__section {
  padding: 60px 0;
  text-align: center;
}

.page-news__dark-bg {
  background-color: #000000; /* Ensure dark background */
  color: #ffffff;
}

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

.page-news__section-title {
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 30px;
  font-weight: 700;
  line-height: 1.2;
}

.page-news__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

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

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

.page-news__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-news__btn-small {
  padding: 8px 18px;
  font-size: 0.9em;
}

/* Hero Section */
.page-news__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  overflow: hidden;
  min-height: 500px;
}

.page-news__hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 1200px; /* Constrain image width */
  margin-bottom: 30px;
}

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

.page-news__hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  padding: 0 15px;
  box-sizing: border-box;
}

.page-news__main-title {
  font-size: clamp(32px, 5vw, 56px);
  color: #ffffff;
  margin-bottom: 15px;
  font-weight: 800;
  line-height: 1.1;
}

.page-news__subtitle {
  font-size: clamp(18px, 2.5vw, 24px);
  color: #f0f0f0;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Intro Section */
.page-news__intro-section .page-news__section-title {
  color: #26A9E0;
}

.page-news__intro-section .page-news__text-block {
  color: #333333;
}

/* Featured Categories Section */
.page-news__featured-categories .page-news__section-title {
  color: #26A9E0;
}

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

.page-news__card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: left;
  display: flex;
  flex-direction: column;
  color: #333333;
}

.page-news__card-image {
  width: 100%;
  height: 225px; /* 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: 1.4em;
  margin-bottom: 10px;
  font-weight: 700;
}

.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;
  line-height: 1.5;
  color: #555555;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-news__card-date {
  font-size: 0.85em;
  color: #888888;
  display: block;
  margin-top: auto;
}

.page-news__view-all-button-wrapper {
  margin-top: 40px;
}

/* Benefits Section */
.page-news__benefits-section .page-news__section-title {
  color: #ffffff;
}

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

.page-news__benefit-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  color: #ffffff;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-news__benefit-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-news__benefit-text {
  font-size: 1em;
  line-height: 1.6;
}

/* Access Section */
.page-news__access-section .page-news__section-title {
  color: #26A9E0;
}

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

.page-news__step-item {
  background-color: #f8f8f8;
  border-radius: 10px;
  padding: 30px;
  color: #333333;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-news__step-image {
  width: 100%;
  max-width: 300px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-news__step-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-news__step-text {
  font-size: 1em;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* FAQ Section */
.page-news__faq-section .page-news__section-title {
  color: #ffffff;
}

.page-news__faq-list {
  margin-top: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

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

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-news__faq-question::-webkit-details-marker {
  display: none; /* For details/summary */
}

.page-news__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.page-news__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #26A9E0;
}

.page-news__faq-answer {
  padding: 15px 25px;
  font-size: 1em;
  line-height: 1.6;
  color: #f0f0f0;
  padding-top: 0;
}

/* CTA Section */
.page-news__cta-section .page-news__section-title {
  color: #26A9E0;
}

.page-news__cta-section .page-news__text-block {
  color: #333333;
  margin-bottom: 30px;
}

.page-news__cta-button {
  font-size: 1.2em;
  padding: 15px 35px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-news__hero-section {
    padding: 40px 15px;
  }
  .page-news__section {
    padding: 40px 0;
  }
  .page-news__main-title {
    font-size: clamp(30px, 4.5vw, 50px);
  }
  .page-news__subtitle {
    font-size: clamp(16px, 2vw, 20px);
  }
}

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

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

  .page-news__hero-section {
    padding: 30px 15px;
    padding-top: 10px !important; /* body already handles header offset */
    min-height: 400px;
  }

  .page-news__hero-image-wrapper {
    margin-bottom: 20px;
  }

  .page-news__hero-content {
    padding: 0;
  }

  .page-news__main-title {
    font-size: clamp(28px, 8vw, 40px);
  }

  .page-news__subtitle {
    font-size: clamp(15px, 4vw, 18px);
    margin-bottom: 25px;
  }

  .page-news__section-title {
    font-size: clamp(24px, 7vw, 36px);
    margin-bottom: 25px;
  }

  .page-news__text-block {
    font-size: 1em;
  }

  .page-news__grid-layout,
  .page-news__benefits-grid,
  .page-news__steps-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

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

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

  .page-news__btn-primary,
  .page-news__btn-secondary,
  .page-news a[class*="button"],
  .page-news a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-news__view-all-button-wrapper, 
  .page-news__cta-section .page-news__container .page-news__btn-primary {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-news__cta-button {
    font-size: 1.1em;
    padding: 12px 25px;
  }

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

  .page-news__section,
  .page-news__card,
  .page-news__container,
  .page-news__hero-image-wrapper,
  .page-news__steps-grid,
  .page-news__benefits-grid,
  .page-news__grid-layout {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

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

  .page-news__faq-answer {
    padding: 10px 20px;
  }
}

@media (max-width: 480px) {
  .page-news__hero-section {
    min-height: 300px;
  }
  .page-news__main-title {
    font-size: clamp(24px, 9vw, 36px);
  }
  .page-news__subtitle {
    font-size: clamp(14px, 4.5vw, 16px);
  }
  .page-news__section-title {
    font-size: clamp(22px, 8vw, 30px);
  }
  .page-news__btn-primary,
  .page-news__btn-secondary {
    padding: 10px 20px;
    font-size: 0.95em;
  }
  .page-news__card-image {
    height: 150px;
  }
}