.page-news {
  font-family: Arial, sans-serif;
  color: var(--text-main, #FFF6D6); /* Default text color for the page, based on dark background */
  background-color: var(--background, #0A0A0A); /* Ensure consistency with body bg */
}

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

/* Hero Section */
.page-news__hero-section {
  padding-top: 10px; /* Small top padding, relying on body for --header-offset */
  padding-bottom: 60px;
  text-align: center;
  background: var(--background, #0A0A0A);
  position: relative;
  overflow: hidden;
}

.page-news__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive H1 font size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text-main, #FFF6D6);
}

.page-news__description {
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: var(--text-main, #FFF6D6);
}

.page-news__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  width: 100%; /* Ensure container takes full width for responsive wrapping */
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  max-width: 100%; /* Ensure button adapts to container */
  box-sizing: border-box;
}

.page-news__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111; /* Dark text for bright button */
  border: none;
}

.page-news__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(255, 211, 107, 0.4);
}

.page-news__btn-secondary {
  background: var(--card-bg, #111111);
  color: var(--text-main, #FFF6D6);
  border: 2px solid var(--border, #3A2A12);
}

.page-news__btn-secondary:hover {
  transform: translateY(-2px);
  background-color: var(--border, #3A2A12);
}

/* General Section Styling */
.page-news__latest-news-section,
.page-news__categories-section,
.page-news__why-j9bet-section,
.page-news__cta-bottom-section,
.page-news__faq-section {
  padding: 60px 0;
  background: var(--background, #0A0A0A);
}

.page-news__section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: var(--text-main, #FFF6D6);
}

.page-news__section-description {
  font-size: 1.1rem;
  line-height: 1.6;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: var(--text-main, #FFF6D6);
}

/* News Grid */
.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: var(--card-bg, #111111);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* Ensure cards have equal height */
  display: flex;
  flex-direction: column;
}

.page-news__news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(255, 211, 107, 0.2);
}

.page-news__card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.page-news__card-content {
  padding: 25px;
  flex-grow: 1; /* Allow content to expand */
  display: flex;
  flex-direction: column;
}

.page-news__card-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-main, #FFF6D6);
  line-height: 1.4;
}

.page-news__card-meta {
  font-size: 0.9rem;
  color: var(--border, #3A2A12); /* Lighter text for meta info */
  margin-bottom: 15px;
}