/* style/news.css */

:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --button-register: #C30808;
  --button-login: #C30808;
  --button-text-login-register: #FFFF00;
  --background-white: #FFFFFF;
}

.page-news {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Default text color for dark body background */
  background-color: transparent; /* Body background handled by shared.css */
}

.page-news__hero-section {
  position: relative;
  width: 100%;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: 0; /* Handled by shared.css body padding-top */
}

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

.page-news__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2;
}

.page-news__hero-content {
  position: relative;
  z-index: 3;
  color: var(--text-light);
  max-width: 900px;
  padding: 20px;
}

.page-news__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: var(--secondary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-news__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: var(--secondary-color);
}

.page-news__hero-button {
  display: inline-block;
  background: var(--button-register);
  color: var(--button-text-login-register);
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border: none;
}

.page-news__hero-button:hover {
  background-color: #a00606;
}

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

.page-news__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.page-news__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: var(--text-dark);
}

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

.page-news__latest-news-section {
  background-color: var(--background-white);
}

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

.page-news__news-card {
  background-color: var(--secondary-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-news__news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-news__news-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.page-news__news-card-content {
  padding: 25px;
}

.page-news__news-card-title {
  font-size: 1.4em;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-news__news-card-title a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__news-card-title a:hover {
  color: #005a2e;
}

.page-news__news-card-text {
  font-size: 0.95em;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.page-news__read-more-button {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 0.9em;
  transition: background-color 0.3s ease;
}

.page-news__read-more-button:hover {
  background-color: #005a2e;
}

.page-news__access-guide-section {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-news__access-guide-section .page-news__section-title {
  color: var(--secondary-color);
}

.page-news__access-guide-section .page-news__section-description {
  color: var(--secondary-color);
}

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

.page-news__guide-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
}

.page-news__guide-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.page-news__guide-text {
  font-size: 1em;
  color: var(--secondary-color);
}

.page-news__access-button {
  display: block;
  width: fit-content;
  margin: 50px auto 0 auto;
  background: var(--secondary-color);
  color: var(--primary-color);
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: none;
}

.page-news__access-button:hover {
  background-color: #e0e0e0;
  color: #005a2e;
}

.page-news__promotions-section {
  background-color: var(--background-white);
}

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

.page-news__promo-card {
  background-color: var(--secondary-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-news__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-news__promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-news__promo-title {
  font-size: 1.4em;
  margin: 20px 15px 10px 15px;
  color: var(--primary-color);
}

.page-news__promo-text {
  font-size: 0.95em;
  color: var(--text-dark);
  padding: 0 15px 20px 15px;
}

.page-news__promo-button {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 0.9em;
  margin-bottom: 20px;
  transition: background-color 0.3s ease;
}

.page-news__promo-button:hover {
  background-color: #005a2e;
}

.page-news__product-review-section {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-news__product-review-section .page-news__section-title {
  color: var(--secondary-color);
}

.page-news__product-review-section .page-news__section-description {
  color: var(--secondary-color);
}

.page-news__product-item {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 60px;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
}

.page-news__product-item:last-child {
  margin-bottom: 0;
}

.page-news__product-item--reverse {
  flex-direction: row-reverse;
}

.page-news__product-image {
  flex: 1;
  max-width: 50%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

.page-news__product-content {
  flex: 1;
  max-width: 50%;
}

.page-news__product-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.page-news__product-title a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__product-title a:hover {
  color: #e0e0e0;
}

.page-news__product-text {
  font-size: 1em;
  color: var(--secondary-color);
  margin-bottom: 20px;
}

.page-news__product-button {
  display: inline-block;
  background: var(--secondary-color);
  color: var(--primary-color);
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 1em;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: none;
}

.page-news__product-button:hover {
  background-color: #e0e0e0;
  color: #005a2e;
}

.page-news__faq-section {
  background-color: var(--background-white);
}

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

.page-news__faq-item {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  background-color: var(--secondary-color);
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.1em;
  font-weight: bold;
  color: var(--primary-color);
  cursor: pointer;
  background-color: var(--secondary-color);
  transition: background-color 0.3s ease;
}

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

.page-news__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.3s ease;
}

.page-news__faq-item.active .page-news__faq-toggle {
  transform: rotate(45deg);
}

.page-news__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--text-dark);
}

.page-news__faq-item.active .page-news__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 20px;
}

.page-news__faq-answer p {
  margin: 0;
  color: var(--text-dark);
}

.page-news__faq-button {
  display: block;
  width: fit-content;
  margin: 50px auto 0 auto;
  background: var(--primary-color);
  color: var(--secondary-color);
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border: none;
}

.page-news__faq-button:hover {
  background-color: #005a2e;
}

.page-news__cta-section {
  background-color: var(--primary-color);
  color: var(--text-light);
  text-align: center;
}

.page-news__cta-section .page-news__section-title {
  color: var(--secondary-color);
}

.page-news__cta-section .page-news__section-description {
  color: var(--secondary-color);
}

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

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

.page-news__btn-primary {
  background: var(--button-register);
  color: var(--button-text-login-register);
  border: 2px solid var(--button-register);
}

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

.page-news__btn-secondary {
  background: var(--secondary-color);
  color: var(--primary-color);
  border: 2px solid var(--secondary-color);
}

.page-news__btn-secondary:hover {
  background-color: #e0e0e0;
  border-color: #e0e0e0;
  color: #005a2e;
}

/* General image responsiveness for desktop */
.page-news img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Media Queries for Mobile */
@media (max-width: 768px) {
  .page-news {
    font-size: 15px;
    line-height: 1.5;
  }

  .page-news__hero-section {
    height: 450px;
    padding-top: 0; /* Ensures no double padding */
  }

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

  .page-news__hero-description {
    font-size: 1em;
    padding: 0 10px;
  }

  .page-news__hero-button {
    padding: 12px 25px;
    font-size: 1em;
  }

  .page-news__section {
    padding: 40px 0;
  }

  .page-news__section-title {
    font-size: 1.8em;
    padding: 0 15px;
  }

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

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

  .page-news__news-grid,
  .page-news__promo-grid,
  .page-news__guide-steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .page-news__news-card-text {
    font-size: 0.9em;
  }

  .page-news__guide-item {
    padding: 20px;
  }

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

  .page-news__access-button,
  .page-news__faq-button {
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    box-sizing: border-box;
  }

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

  .page-news__promo-text {
    font-size: 0.9em;
  }

  .page-news__product-item {
    flex-direction: column;
    gap: 20px;
    padding: 20px;
  }

  .page-news__product-item--reverse {
    flex-direction: column;
  }

  .page-news__product-image,
  .page-news__product-content {
    max-width: 100%;
    width: 100%;
  }

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

  .page-news__product-text {
    font-size: 0.9em;
  }

  .page-news__product-button {
    width: 100% !important;
    padding: 10px 20px;
    font-size: 0.9em;
    box-sizing: border-box;
  }

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

  .page-news__faq-answer {
    padding: 0 15px;
  }

  .page-news__faq-item.active .page-news__faq-answer {
    padding: 15px 15px;
  }

  .page-news__cta-buttons {
    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;
    font-size: 1em;
  }

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

  /* Ensure content containers are responsive */
  .page-news__section,
  .page-news__card,
  .page-news__container,
  .page-news__news-card,
  .page-news__promo-card,
  .page-news__guide-item,
  .page-news__product-item,
  .page-news__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* LOGO carousel item exception (if any, not present in this page's content but included for completeness as per rules) */
  .page-news__logo-item {
    width: 80px !important;
    height: 80px !important;
    max-width: 80px !important;
    box-sizing: border-box;
  }
}