.page-news {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--Text-Main);
  background-color: var(--Deep-Navy);
}

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

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

.page-news__dark-section {
  background-color: var(--Deep-Navy);
  color: var(--Text-Main);
}

.page-news__section-title {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--Text-Main);
  line-height: 1.2;
}

.page-news__section-title--light {
  color: var(--Text-Main);
}

.page-news__text-block {
  font-size: 17px;
  line-height: 1.7;
  color: var(--Text-Secondary);
}

.page-news__text-block p {
  margin-bottom: 1em;
}

.page-news__highlight {
  color: var(--Gold);
  font-weight: bold;
}

/* Hero Section */
.page-news__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, assuming body has --header-offset */
  padding-bottom: 80px;
  overflow: hidden;
}

.page-news__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

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

.page-news__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 40px 20px;
  background: rgba(16, 35, 63, 0.85); /* Card BG with transparency */
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

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

.page-news__tagline {
  font-size: clamp(18px, 2.5vw, 24px);
  color: var(--Text-Secondary);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-news__btn-primary {
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(43, 115, 246, 0.4);
}

.page-news__btn-primary:hover {
  background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
  box-shadow: 0 6px 20px rgba(43, 115, 246, 0.6);
}

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

.page-news__btn-secondary:hover {
  background: var(--Text-Main);
  color: var(--Deep-Navy);
}

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

.page-news__article-card {
  background-color: var(--Card-BG);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  color: var(--Text-Secondary);
}

.page-news__article-thumbnail {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.page-news__article-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
}

.page-news__article-card:hover .page-news__article-thumbnail img {
  transform: scale(1.05);
}

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

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

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

.page-news__article-title a:hover {
  color: var(--Gold);
}

.page-news__article-meta {
  font-size: 14px;
  color: var(--Text-Secondary);
  margin-bottom: 15px;
}

.page-news__article-excerpt {
  font-size: 16px;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-news__read-more {
  display: inline-block;
  color: var(--Gold);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
  margin-top: auto;
}

.page-news__read-more:hover {
  text-decoration: underline;
  color: var(--Text-Main);
}

.page-news__view-all-button {
  text-align: center;
}

.page-news__view-all-button .page-news__btn-secondary {
  margin-left: 0;
  border-color: var(--Gold);
  color: var(--Gold);
}

.page-news__view-all-button .page-news__btn-secondary:hover {
  background: var(--Gold);
  color: var(--Deep-Navy);
}

/* Categories Section */
.page-news__categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.page-news__category-card {
  background-color: var(--Card-BG);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  padding: 25px;
  text-decoration: none;
  color: var(--Text-Main);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

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

.page-news__category-card img {
  
  
  object-fit: contain;
  margin-bottom: 15px;
  display: block;
}

.page-news__category-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 0;
  line-height: 1.3;
}

/* Why Unibet Section */
.page-news__why-unibet {
  background-color: var(--Card-BG);
}

/* FAQ Section */
details.page-news__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid var(--Border);
  overflow: hidden;
  background: var(--Card-BG);
  color: var(--Text-Secondary);
}

details.page-news__faq-item summary.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}

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

details.page-news__faq-item summary.page-news__faq-question:hover {
  background: rgba(var(--Text-Main-rgb), 0.05);
}

.page-news__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--Text-Main);
}

.page-news__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--Gold);
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
  line-height: 1;
}

details.page-news__faq-item .page-news__faq-answer {
  padding: 0 25px 25px;
  background: rgba(var(--Text-Main-rgb), 0.02);
  border-radius: 0 0 8px 8px;
  color: var(--Text-Secondary);
}

.page-news__faq-answer p {
  margin-bottom: 0;
}

/* CTA Section */
.page-news__cta-section {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(90deg, #113B7A 0%, #1D5FD1 100%);
}

.page-news__cta-content {
  background: var(--Card-BG);
  padding: 50px;
  border-radius: 15px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.page-news__cta-content .page-news__section-title {
  margin-top: 0;
  color: var(--Text-Main);
}

.page-news__cta-content p {
  font-size: 18px;
  color: var(--Text-Secondary);
  margin-bottom: 40px;
}

.page-news__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-news__hero-content {
    max-width: 700px;
  }
  .page-news__main-title {
    font-size: clamp(30px, 4.5vw, 50px);
  }
  .page-news__tagline {
    font-size: clamp(16px, 2.2vw, 20px);
  }
  .page-news__articles-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-news__category-card h3 {
    font-size: 18px;
  }
  .page-news__btn-primary,
  .page-news__btn-secondary {
    padding: 12px 25px;
    font-size: 16px;
  }
}

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

  /* HERO Section */
  .page-news__hero-section {
    padding-bottom: 60px;
    padding-top: 10px; /* Small top padding, assuming body has --header-offset */
  }
  .page-news__hero-image img {
    object-fit: contain !important; /* Prevent cropping on mobile */
    aspect-ratio: unset !important; /* Allow natural aspect ratio */
    height: auto !important;
    position: relative;
  }
  .page-news__hero-content {
    padding: 30px 15px;
    max-width: 90%;
  }
  .page-news__main-title {
    font-size: clamp(28px, 7vw, 40px);
    margin-bottom: 15px;
  }
  .page-news__tagline {
    font-size: clamp(15px, 3.5vw, 18px);
    margin-bottom: 25px;
  }

  /* Buttons */
  .page-news__btn-primary,
  .page-news__btn-secondary,
  .page-news a[class*="button"],
  .page-news a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
    margin-left: 0 !important; /* Remove margin-left for secondary button */
  }
  .page-news__cta-buttons {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px; /* Add padding to button container */
  }

  /* Articles Grid */
  .page-news__articles-grid {
    grid-template-columns: 1fr;
    gap: 25px;
    overflow-x: hidden; /* Prevent horizontal scroll */
  }
  .page-news__article-card {
    margin: 0 auto;
    max-width: 400px;
  }
  .page-news__article-title {
    font-size: 20px;
  }
  .page-news__article-excerpt {
    font-size: 15px;
  }

  /* Categories Grid */
  .page-news__categories-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
  }
  .page-news__category-card {
    padding: 20px;
  }
  .page-news__category-card h3 {
    font-size: 17px;
  }

  /* FAQ Section */
  details.page-news__faq-item summary.page-news__faq-question {
    padding: 15px;
  }
  .page-news__faq-qtext {
    font-size: 16px;
  }
  .page-news__faq-toggle {
    font-size: 24px;
    width: 24px;
  }
  details.page-news__faq-item .page-news__faq-answer {
    padding: 0 15px 15px;
  }

  /* General Image Handling */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }
  .page-news__section,
  .page-news__card,
  .page-news__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-news__articles-grid {
    grid-template-columns: 1fr;
  }
  .page-news__categories-grid {
    grid-template-columns: 1fr;
  }
  .page-news__hero-content {
    padding: 20px 10px;
  }
  .page-news__cta-content {
    padding: 30px 20px;
  }
}

/* Ensure body padding-top is handled by shared.css */
:root {
  --Text-Main-rgb: 243, 248, 255; /* RGB for #F3F8FF */
}

.page-news p,
.page-news li {
  color: var(--Text-Secondary);
}

.page-news__card {
  background: var(--Card-BG);
  color: var(--Text-Secondary);
  border: 1px solid var(--Border);
}

.page-news__dark-section {
  background: var(--Deep-Navy);
  color: var(--Text-Main);
}

.page-news__btn-primary {
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  color: #ffffff;
  border: none;
}

.page-news__btn-secondary {
  background: none;
  color: var(--Text-Main);
  border: 2px solid var(--Text-Main);
}

.page-news__btn-secondary:hover {
  background: var(--Text-Main);
  color: var(--Deep-Navy);
}