/* style/news.css */

/* BEM Naming: page-news__element-name */
/* Color Palette:
   Main: #11A84E
   Accent: #22C768
   Button: linear-gradient(180deg, #2AD16F 0%, #13994A 100%)
   Card BG: #11271B
   Background: #08160F
   Text Main: #F2FFF6
   Text Secondary: #A7D9B8
   Border: #2E7A4E
   Glow: #57E38D
   Gold: #F2C14E
   Divider: #1E3A2A
   Deep Green: #0A4B2C
*/

.page-news {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Light body background #f4f4f4, so use dark text */
  background-color: #f4f4f4; /* From shared.css body background */
}

.page-news__dark-bg {
  background-color: #08160F; /* Custom Background color */
  color: #F2FFF6; /* Text Main */
}

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

.page-news__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 10px 20px 60px; /* Small top padding, then more at bottom */
  overflow: hidden;
}

.page-news__hero-image {
  width: 100%;
  height: auto;
  max-height: 675px;
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
}

.page-news__hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  padding: 0 15px;
}

.page-news__main-title {
  font-size: 2.8em;
  font-weight: bold;
  color: #F2FFF6;
  margin-bottom: 15px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-news__hero-description {
  font-size: 1.2em;
  color: #A7D9B8;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-news__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  border: none;
  cursor: pointer;
}

.page-news__cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.page-news__cta-button--secondary {
  background: #11A84E; /* Main color */
  color: #F2FFF6; /* Text Main */
  border: 1px solid #2E7A4E; /* Border */
}

.page-news__cta-button--secondary:hover {
  background: #22C768; /* Accent color */
}

.page-news__section-title {
  font-size: 2.2em;
  color: #11A84E; /* Main color */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-news__section-description {
  font-size: 1.1em;
  color: #333333;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px;
}

.page-news__latest-news {
  padding: 60px 20px;
}

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

.page-news__news-card {
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  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 10px 20px rgba(0, 0, 0, 0.15);
}

.page-news__news-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;
  font-weight: bold;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-news__card-title a {
  color: #11A84E; /* Main color */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__card-title a:hover {
  color: #22C768; /* Accent color */
}

.page-news__card-date {
  font-size: 0.9em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 10px;
}

.page-news__card-excerpt {
  font-size: 1em;
  color: #333333;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-news__read-more {
  display: inline-block;
  color: #11A84E; /* Main color */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
  margin-top: auto;
}

.page-news__read-more:hover {
  color: #22C768; /* Accent color */
}

.page-news__view-all-news {
  text-align: center;
  margin-top: 40px;
}

.page-news__giftcode-highlights {
  padding: 60px 20px;
  text-align: center;
}

.page-news__highlight-cards {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  max-width: 1000px;
  margin: 0 auto 40px;
}

.page-news__highlight-card {
  background-color: #11271B; /* Card BG */
  border-radius: 12px;
  padding: 25px;
  flex: 1;
  min-width: 280px;
  max-width: 450px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-news__highlight-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.page-news__highlight-image {
  width: 100%;
  height: 200px; /* Fixed height */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-news__highlight-title {
  font-size: 1.3em;
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 10px;
}

.page-news__highlight-title a {
  color: #F2FFF6;
  text-decoration: none;
}

.page-news__highlight-title a:hover {
  color: #A7D9B8; /* Text Secondary */
}

.page-news__highlight-text {
  font-size: 1em;
  color: #A7D9B8; /* Text Secondary */
}

.page-news__faq-section {
  padding: 60px 20px;
  max-width: 1000px;
  margin: 0 auto;
}

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

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

.page-news__faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  font-size: 1.1em;
  color: #333333;
  background-color: #f9f9f9;
  transition: background-color 0.3s ease;
}

.page-news__faq-item summary:hover {
  background-color: #f0f0f0;
}

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

.page-news__faq-qtext {
  flex-grow: 1;
}

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

.page-news__faq-item[open] .page-news__faq-toggle {
  content: '−';
}

.page-news__faq-answer {
  padding: 15px 20px 20px;
  font-size: 1em;
  color: #555555;
  border-top: 1px solid #eee;
}

.page-news__cta-banner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 20px;
  overflow: hidden;
}

.page-news__cta-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  filter: brightness(0.5);
}

.page-news__cta-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 15px;
}

.page-news__cta-title {
  font-size: 2.5em;
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-news__cta-description {
  font-size: 1.2em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-news__main-title {
    font-size: 2.5em;
  }
  .page-news__section-title {
    font-size: 2em;
  }
  .page-news__news-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-news__hero-section,
  .page-news__latest-news,
  .page-news__giftcode-highlights,
  .page-news__faq-section,
  .page-news__cta-banner {
    padding: 30px 15px;
  }

  .page-news__main-title {
    font-size: 1.8em;
  }
  .page-news__hero-description {
    font-size: 1em;
  }
  .page-news__section-title {
    font-size: 1.8em;
    margin-bottom: 25px;
  }
  .page-news__cta-title {
    font-size: 1.8em;
  }
  .page-news__cta-description {
    font-size: 1em;
  }

  .page-news__cta-button,
  .page-news__cta-button--secondary {
    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;
    margin-bottom: 10px;
  }
  .page-news__view-all-news .page-news__cta-button {
    margin-bottom: 0;
  }

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

  .page-news__highlight-cards {
    flex-direction: column;
    gap: 20px;
  }

  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-news__hero-section,
  .page-news__latest-news,
  .page-news__giftcode-highlights,
  .page-news__faq-section,
  .page-news__cta-banner,
  .page-news__news-card,
  .page-news__highlight-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

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

  .page-news__news-image {
    height: 180px; /* Adjust height for mobile */
  }

  .page-news__highlight-image {
    height: 150px;
  }

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

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

@media (max-width: 480px) {
  .page-news__main-title {
    font-size: 1.5em;
  }
  .page-news__section-title {
    font-size: 1.5em;
  }
  .page-news__cta-title {
    font-size: 1.5em;
  }
  .page-news__cta-button {
    font-size: 1em;
  }
}