/* style/news.css */

:root {
  --page-news-primary-color: #11A84E;
  --page-news-secondary-color: #22C768;
  --page-news-background-color: #08160F;
  --page-news-card-background: #11271B;
  --page-news-text-main: #F2FFF6;
  --page-news-text-secondary: #A7D9B8;
  --page-news-border-color: #2E7A4E;
  --page-news-glow-color: #57E38D;
  --page-news-gold-color: #F2C14E;
  --page-news-divider-color: #1E3A2A;
  --page-news-deep-green: #0A4B2C;
  --page-news-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

.page-news {
  font-family: 'Arial', sans-serif;
  color: var(--page-news-text-main);
  background-color: var(--page-news-background-color);
}

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

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

.page-news__section-title {
  font-size: clamp(28px, 4vw, 42px);
  color: var(--page-news-gold-color);
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.5px;
}

.page-news__section-description {
  font-size: 18px;
  color: var(--page-news-text-secondary);
  max-width: 800px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
}

.page-news__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  overflow: hidden;
}

.page-news__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit height for aesthetic */
  overflow: hidden;
  position: relative;
}

.page-news__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7);
}

.page-news__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 900px;
  text-align: center;
  padding: 20px;
  box-sizing: border-box;
  z-index: 10; /* Ensure text is above image for visibility */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding-top: 60px; /* Adjust for text not to be exactly on image center */
}

.page-news__main-title {
  font-size: clamp(32px, 5vw, 54px);
  color: var(--page-news-text-main);
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.2;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.page-news__description {
  font-size: 20px;
  color: var(--page-news-text-main);
  max-width: 700px;
  margin: 0 auto 30px auto;
  line-height: 1.7;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

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

.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-news__btn-primary {
  background: var(--page-news-button-gradient);
  color: var(--page-news-text-main);
  border: 2px solid transparent;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

.page-news__btn-secondary {
  background: transparent;
  color: var(--page-news-primary-color);
  border: 2px solid var(--page-news-primary-color);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-news__btn-secondary:hover {
  background: var(--page-news-primary-color);
  color: var(--page-news-text-main);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

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

.page-news__update-card {
  background-color: var(--page-news-card-background);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  text-align: left;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-news__card-image {
  width: 100%;
  height: 250px;
  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: 24px;
  color: var(--page-news-text-main);
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-news__card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__card-title a:hover {
  color: var(--page-news-gold-color);
}

.page-news__card-date {
  font-size: 15px;
  color: var(--page-news-text-secondary);
  margin-bottom: 15px;
}

.page-news__card-text {
  font-size: 16px;
  color: var(--page-news-text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-news__read-more-btn {
  display: inline-block;
  padding: 10px 20px;
  background: var(--page-news-deep-green);
  color: var(--page-news-text-main);
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: background-color 0.3s ease;
  align-self: flex-start;
}

.page-news__read-more-btn:hover {
  background-color: var(--page-news-primary-color);
}

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

.page-news__sports-events {
  background-color: var(--page-news-deep-green);
}

.page-news__content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  text-align: left;
}

.page-news__content-block {
  background-color: var(--page-news-card-background);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-news__content-image {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-news__content-subtitle {
  font-size: 22px;
  color: var(--page-news-text-main);
  margin-bottom: 15px;
  line-height: 1.4;
}

.page-news__text-block {
  font-size: 16px;
  color: var(--page-news-text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-news__guides-tips {
  background-color: var(--page-news-background-color);
}

.page-news__dark-section .page-news__section-title,
.page-news__dark-section .page-news__section-description,
.page-news__dark-section .page-news__content-subtitle,
.page-news__dark-section .page-news__text-block {
  color: var(--page-news-text-main);
}

.page-news__faq-section {
  background-color: var(--page-news-deep-green);
}

.page-news__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
  text-align: left;
}

.page-news__faq-item {
  background-color: var(--page-news-card-background);
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 18px;
  font-weight: 600;
  color: var(--page-news-text-main);
  cursor: pointer;
  border-bottom: 1px solid var(--page-news-divider-color);
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

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

.page-news__faq-item[open] .page-news__faq-question {
  background-color: var(--page-news-deep-green);
  border-bottom: none;
  border-radius: 10px 10px 0 0;
}

.page-news__faq-toggle {
  font-size: 24px;
  font-weight: 700;
  color: var(--page-news-gold-color);
  transition: transform 0.3s ease;
}

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

.page-news__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 16px;
  color: var(--page-news-text-secondary);
  line-height: 1.6;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-news__faq-item[open] .page-news__faq-answer {
  max-height: 500px; /* Sufficient height for content */
  padding-top: 10px;
}

.page-news__cta-section {
  background: var(--page-news-background-color);
  padding: 80px 0;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-news__hero-content {
    max-width: 700px;
  }
  .page-news__main-title {
    font-size: clamp(28px, 4.5vw, 48px);
  }
  .page-news__description {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .page-news__section {
    padding: 40px 0;
  }
  .page-news__container {
    padding: 0 15px;
  }
  .page-news__section-title {
    font-size: clamp(24px, 6vw, 36px);
  }
  .page-news__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-news__hero-section {
    padding-bottom: 40px;
  }
  .page-news__hero-content {
    position: static;
    transform: none;
    padding: 20px 15px;
    height: auto;
    margin-top: 20px; /* Separate content from image */
  }
  .page-news__hero-image-wrapper {
    max-height: 400px;
  }
  .page-news__main-title {
    font-size: clamp(28px, 8vw, 38px);
    margin-bottom: 15px;
  }
  .page-news__description {
    font-size: 16px;
    margin-bottom: 20px;
  }
  .page-news__hero-buttons,
  .page-news__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-news__btn-primary,
  .page-news__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 16px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-news__update-grid,
  .page-news__content-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

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

  .page-news__card-title {
    font-size: 20px;
  }
  .page-news__content-subtitle {
    font-size: 20px;
  }

  .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-section,
  .page-news__hero-content,
  .page-news__hero-image-wrapper,
  .page-news__cta-buttons,
  .page-news__update-grid,
  .page-news__content-grid,
  .page-news__faq-list {
    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;
  }

  .page-news__faq-question {
    padding: 18px 20px;
    font-size: 16px;
  }
  .page-news__faq-answer {
    padding: 0 20px 18px 20px;
  }
}

/* Ensure content images are not too small */
.page-news img:not(.page-news__hero-image) {
  min-width: 200px;
  min-height: 200px;
}

/* Override min-width for hero image on mobile if it's too restrictive */
@media (max-width: 768px) {
  .page-news__hero-image {
    min-width: unset;
    min-height: unset;
  }
}