/* style/news.css */
:root {
  --primary-color: #0A2463;
  --secondary-color: #FFD700;
  --text-light: #ffffff;
  --text-dark: #333333;
  --background-dark: #000;
  --background-light: #f5f5f5;
  --card-bg-dark: rgba(255, 255, 255, 0.1);
  --card-bg-light: #ffffff;
  --border-color: #e0e0e0;
}

.page-news {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Body background is dark, so use light text */
  background: var(--background-dark); /* Ensure background is dark as per shared.css */
  padding-top: 120px; /* Desktop: Space for fixed header */
}

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

/* Hero Section */
.page-news__hero-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, #051231 100%);
  padding: 80px 0;
  text-align: center;
  color: var(--text-light);
}

.page-news__hero-container {
  max-width: 900px;
  margin: 0 auto;
}

.page-news__hero-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--secondary-color);
}

.page-news__hero-description {
  font-size: 18px;
  margin-bottom: 40px;
  opacity: 0.9;
}

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

.page-news__cta-button {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-news__cta-button--primary:hover {
  background: #e6c200;
  border-color: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

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

.page-news__cta-button--secondary:hover {
  background: var(--secondary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* Section Titles */
.page-news__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 50px;
  color: var(--secondary-color);
  position: relative;
  padding-bottom: 15px;
}

.page-news__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--secondary-color);
  border-radius: 2px;
}

/* Articles Grid */
.page-news__articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.page-news__article-card {
  background: var(--card-bg-dark);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-light);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-news__article-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

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

.page-news__article-content {
  padding: 25px;
}

.page-news__article-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--secondary-color);
  line-height: 1.3;
}

.page-news__article-excerpt {
  font-size: 16px;
  margin-bottom: 15px;
  opacity: 0.8;
}

.page-news__article-date {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  display: block;
}

.page-news__view-all-button-wrapper {
  text-align: center;
  margin-top: 30px;
}

/* Sections */
.page-news__latest-news-section,
.page-news__guides-section,
.page-news__promotions-section {
  padding: 60px 0;
  background: #0d0d0d;
}

.page-news__guides-section {
  background: #1a1a1a;
}

.page-news__promotions-section {
  background: #0d0d0d;
}

.page-news__contact-section {
  background: linear-gradient(45deg, #051231 0%, var(--primary-color) 100%);
  padding: 80px 0;
  text-align: center;
  color: var(--text-light);
}

.page-news__contact-description {
  font-size: 18px;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-news__hero-title {
    font-size: 40px;
  }

  .page-news__section-title {
    font-size: 32px;
  }

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

@media (max-width: 768px) {
  .page-news {
    padding-top: 100px !important; /* Mobile: Space for fixed header */
    font-size: 16px;
    line-height: 1.6;
  }

  .page-news__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-news__hero-section {
    padding: 60px 0;
  }

  .page-news__hero-title {
    font-size: 32px;
    margin-bottom: 15px;
  }

  .page-news__hero-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-news__hero-cta {
    flex-direction: column;
    gap: 15px;
  }

  .page-news__cta-button {
    padding: 12px 25px !important;
    font-size: 16px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-news__section-title {
    font-size: 28px;
    margin-bottom: 40px;
  }

  .page-news__articles-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-news__article-card {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  }

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

  .page-news__article-title {
    font-size: 18px;
  }

  .page-news__article-excerpt {
    font-size: 15px;
  }

  .page-news__latest-news-section,
  .page-news__guides-section,
  .page-news__promotions-section {
    padding: 40px 0;
  }

  .page-news__contact-section {
    padding: 60px 0;
  }

  .page-news__contact-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  /* Image responsiveness for all images */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  .page-news__article-card,
  .page-news__latest-news-section .page-news__container,
  .page-news__guides-section .page-news__container,
  .page-news__promotions-section .page-news__container,
  .page-news__contact-section .page-news__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
}