/* style/news.css */

/* Variables for colors */
:root {
  --primary-color: #FF8C1A;
  --secondary-color: #FFA53A;
  --card-bg: #17191F;
  --page-bg: #0D0E12;
  --text-main: #FFF3E6;
  --border-color: #A84F0C;
  --glow-color: #FFB04D;
  --deep-orange: #D96800;
}

/* Base styles for the page content */
.page-news {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* Default text color for the page, chosen for dark body background */
  background-color: var(--page-bg); /* Ensure main content area respects page-bg */
}

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

.page-news__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px; /* Add padding for mobile responsiveness */
  box-sizing: border-box;
}

.page-news__section-title {
  font-size: clamp(28px, 4vw, 48px); /* Responsive font size */
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-main);
  line-height: 1.2;
}

.page-news__section-description {
  font-size: 18px;
  margin-bottom: 40px;
  color: var(--text-main);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-news__text-main {
  color: var(--text-main);
}

/* Hero Section */
.page-news__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 20px 60px; /* Small top padding, larger bottom for content */
  overflow: hidden;
  background-color: var(--page-bg);
}

.page-news__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

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

.page-news__hero-content {
  padding-top: 40px;
  max-width: 900px;
  text-align: center;
  z-index: 1;
}

.page-news__main-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--text-main);
  line-height: 1.2;
}

.page-news__description {
  font-size: clamp(16px, 2vw, 20px);
  margin-bottom: 30px;
  color: var(--text-main);
}

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

.page-news__btn-primary {
  background: linear-gradient(180deg, var(--secondary-color) 0%, var(--deep-orange) 100%);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-news__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 132, 26, 0.4);
}

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

.page-news__btn-secondary:hover {
  background: var(--primary-color);
  color: #ffffff;
}

.page-news__cta-group {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 30px;
}

/* Latest News Section */
.page-news__news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-news__news-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* Ensure cards have consistent height */
  display: flex;
  flex-direction: column;
}

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

.page-news__card-image {
  width: 100%;
  height: 220px; /* Fixed height for consistent image size */
  object-fit: cover;
  display: block;
}

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

.page-news__card-meta {
  font-size: 14px;
  color: #bbbbbb;
  margin-bottom: 10px;
}

.page-news__card-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.3;
  flex-grow: 1;
}

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

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

.page-news__card-excerpt {
  font-size: 16px;
  color: #cccccc;
  margin-bottom: 20px;
}

.page-news__card-link {
  display: inline-block;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  position: relative;
  padding-bottom: 2px;
  transition: color 0.3s ease;
}

.page-news__card-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.3s ease;
}

.page-news__card-link:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* Call to Action Section */
.page-news__cta-section {
  background-color: var(--primary-color);
  padding: 80px 20px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--deep-orange) 100%);
}

.page-news__cta-section .page-news__section-title,
.page-news__cta-section .page-news__section-description {
  color: #ffffff;
}

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

.page-news__faq-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  margin-bottom: 20px;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 20px;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  background-color: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--border-color);
}

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

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

.page-news__faq-toggle {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color);
  margin-left: 15px;
}

.page-news__faq-answer {
  padding: 20px 25px;
  font-size: 16px;
  color: #cccccc;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Responsive Styles */
@media (max-width: 768px) {
  .page-news__section {
    padding: 40px 15px;
  }

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

  .page-news__hero-section {
    padding: 10px 15px 40px;
  }

  .page-news__main-title {
    font-size: 30px;
  }

  .page-news__description {
    font-size: 16px;
  }

  .page-news__btn-primary,
  .page-news__btn-secondary {
    width: 100% !important;
    margin-left: 0 !important;
    margin-bottom: 15px;
    font-size: 16px;
    padding: 12px 20px;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-news__cta-group {
    flex-direction: column;
    gap: 15px;
    padding: 0 10px;
  }

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

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

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

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

  .page-news__faq-answer {
    font-size: 15px;
    padding: 15px 20px;
  }

  /* Mobile image responsiveness */
  .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__cta-group {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Ensure no horizontal scroll */
  }

  .page-news__hero-section {
    padding-top: 10px !important;
  }

  /* Specific for content sections to ensure padding */
  .page-news__latest-news .page-news__container,
  .page-news__cta-section .page-news__container,
  .page-news__faq-section .page-news__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}

/* Ensure no filter on images */
.page-news img {
  filter: none;
}