/* style/news.css */
:root {
  --news-bg-color: #08160F;
  --news-card-bg-color: #11271B;
  --news-text-main-color: #F2FFF6;
  --news-text-secondary-color: #A7D9B8;
  --news-border-color: #2E7A4E;
  --news-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --news-glow-color: #57E38D;
  --news-gold-color: #F2C14E;
  --news-divider-color: #1E3A2A;
  --news-deep-green-color: #0A4B2C;
}

.page-news {
  background-color: var(--news-bg-color);
  color: var(--news-text-main-color);
  font-family: Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

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

.page-news__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0;
  text-align: center;
  overflow: hidden;
}

.page-news__hero-image-wrapper {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  position: relative;
}

.page-news__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-news__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin-top: 40px;
  padding: 0 20px;
}

.page-news__main-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--news-gold-color);
  line-height: 1.2;
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.4);
}

.page-news__hero-description {
  font-size: 1.25rem;
  color: var(--news-text-main-color);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-news__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-news__cta-button--primary {
  background: var(--news-btn-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-news__cta-button--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

.page-news__cta-button--secondary {
  background: transparent;
  color: var(--news-gold-color);
  border: 2px solid var(--news-gold-color);
  margin-left: 20px;
}

.page-news__cta-button--secondary:hover {
  background: rgba(242, 193, 78, 0.1);
  transform: translateY(-2px);
}

.page-news__section-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--news-gold-color);
  text-align: center;
  margin-bottom: 40px;
  text-shadow: 0 0 8px rgba(242, 193, 78, 0.3);
}

.page-news__section-description {
  font-size: 1.1rem;
  color: var(--news-text-secondary-color);
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
}

.page-news__latest-news-section,
.page-news__video-section,
.page-news__categories-section,
.page-news__why-us-section,
.page-news__faq-section,
.page-news__cta-section {
  padding: 80px 0;
  border-top: 1px solid var(--news-divider-color);
}

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

.page-news__news-card {
  background-color: var(--news-card-bg-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--news-border-color);
  display: flex;
  flex-direction: column;
}

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

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

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

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

.page-news__card-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 15px;
  line-height: 1.4;
}

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

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

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

.page-news__read-more {
  color: var(--news-gold-color);
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  position: relative;
  padding-right: 15px;
}

.page-news__read-more::after {
  content: '→';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  transition: right 0.3s ease;
}

.page-news__read-more:hover::after {
  right: -5px;
}

.page-news__button-wrapper {
  text-align: center;
  margin-top: 20px;
}

.page-news__video-section .page-news__section-title,
.page-news__video-section .page-news__section-description {
  margin-bottom: 30px;
}

.page-news__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  margin: 0 auto 40px auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  width: 100%; /* Ensure width is 100% on desktop too */
}

.page-news__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.page-news__video-cta {
  margin-top: 30px;
}

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

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

.page-news__category-card {
  background-color: var(--news-card-bg-color);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--news-border-color);
  transition: transform 0.3s ease;
}

.page-news__category-card:hover {
  transform: translateY(-3px);
}

.page-news__category-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--news-gold-color);
  margin-bottom: 15px;
  text-align: center;
}

.page-news__category-description {
  font-size: 1rem;
  color: var(--news-text-secondary-color);
  margin-bottom: 20px;
  text-align: center;
}

.page-news__category-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-news__category-list li {
  color: var(--news-text-main-color);
  font-size: 0.95rem;
  margin-bottom: 8px;
  position: relative;
  padding-left: 20px;
}

.page-news__category-list li::before {
  content: '•';
  color: var(--news-gold-color);
  position: absolute;
  left: 0;
  top: 0;
}

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

.page-news__why-us-item {
  background-color: var(--news-card-bg-color);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--news-border-color);
  text-align: center;
}

.page-news__why-us-heading {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--news-gold-color);
  margin-bottom: 15px;
}

.page-news__why-us-text {
  font-size: 1rem;
  color: var(--news-text-secondary-color);
}

.page-news__faq-item {
  background-color: var(--news-card-bg-color);
  border-radius: 12px;
  margin-bottom: 15px;
  border: 1px solid var(--news-border-color);
  overflow: hidden;
}

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

.page-news__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for details/summary */
}

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

.page-news__faq-toggle {
  font-size: 1.5rem;
  color: var(--news-gold-color);
  margin-left: 15px;
}

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

.page-news__faq-item.active .page-news__faq-answer {
  max-height: 2000px; /* Arbitrary large value for smooth transition */
  transition: max-height 0.5s ease-in;
}

.page-news__faq-item[open] .page-news__faq-answer {
  max-height: fit-content; /* For details/summary */
  padding-top: 10px;
}

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

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

.page-news__faq-answer a {
  color: var(--news-gold-color);
  text-decoration: underline;
}

.page-news__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  width: 100%; /* Ensure width is 100% on desktop too */
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-news__hero-content {
    margin-top: 20px;
  }
  .page-news__main-title {
    font-size: 3rem;
  }
  .page-news__section-title {
    font-size: 2.2rem;
  }
  .page-news__news-grid,
  .page-news__category-grid,
  .page-news__why-us-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
  }
}

@media (max-width: 768px) {
  .page-news__hero-section {
    padding: 10px 0 40px 0;
  }
  .page-news__hero-image-wrapper {
    max-height: 300px;
  }
  .page-news__main-title {
    font-size: 2.2rem;
    margin-bottom: 15px;
  }
  .page-news__hero-description {
    font-size: 1.1rem;
    margin-bottom: 25px;
  }
  .page-news__cta-button {
    padding: 12px 25px;
    font-size: 1rem;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-news__cta-button--secondary {
    margin-left: 0;
    margin-top: 15px;
  }
  .page-news__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  .page-news__section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }
  .page-news__section-description {
    font-size: 1rem;
    margin-bottom: 40px;
  }
  .page-news__latest-news-section,
  .page-news__video-section,
  .page-news__categories-section,
  .page-news__why-us-section,
  .page-news__faq-section,
  .page-news__cta-section {
    padding: 50px 0;
  }
  .page-news__news-grid,
  .page-news__category-grid,
  .page-news__why-us-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-news__card-image {
    height: 180px;
  }
  .page-news__card-title {
    font-size: 1.2rem;
  }
  .page-news__category-title {
    font-size: 1.25rem;
  }
  .page-news__why-us-heading {
    font-size: 1.15rem;
  }
  .page-news__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }
  
  /* Mobile specific image, video, container rules */
  .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__video-section,
  .page-news__video-container,
  .page-news__video-wrapper,
  .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;
    overflow: hidden !important;
  }
  
  .page-news__video-section {
    padding-top: 10px !important;
  }
  
  .page-news__video-wrapper {
    padding-bottom: 56.25% !important;
    height: 0 !important;
  }
}

@media (max-width: 480px) {
  .page-news__main-title {
    font-size: 1.8rem;
  }
  .page-news__hero-description {
    font-size: 1rem;
  }
  .page-news__section-title {
    font-size: 1.6rem;
  }
}