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

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

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

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

.page-blog__light-bg {
  background-color: #10233F; /* Card BG */
  color: var(--Text-Main);
}

.page-blog__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: var(--Text-Main);
  line-height: 1.2;
}

.page-blog__section-description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  color: var(--Text-Secondary);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-blog__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px; /* Small top padding, larger bottom padding */
  position: relative;
  overflow: hidden;
  text-align: center;
}

.page-blog__hero-image-wrapper {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
  margin-bottom: 30px;
}

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

.page-blog__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 20px;
}

.page-blog__main-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  color: var(--Gold);
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-blog__hero-description {
  font-size: 18px;
  color: var(--Text-Secondary);
  margin-bottom: 30px;
}

.page-blog__button {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.page-blog__button--primary {
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  color: #F3F8FF;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

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

.page-blog__button--secondary:hover {
  background: var(--Gold);
  color: var(--Deep-Navy);
}

/* Latest Articles */
.page-blog__latest-articles {
  background-color: var(--Deep-Navy);
}

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

.page-blog__article-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-blog__article-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

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

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

.page-blog__article-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-blog__article-title {
  font-size: 22px;
  font-weight: bold;
  color: var(--Text-Main);
  margin-bottom: 10px;
  line-height: 1.3;
}

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

.page-blog__article-excerpt {
  font-size: 15px;
  color: var(--Text-Secondary);
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-blog__article-date {
  font-size: 14px;
  color: #AFC4E8;
  opacity: 0.7;
  margin-top: auto; /* Pushes date to bottom */
}

.page-blog__center {
  text-align: center;
}

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

/* Topics Section */
.page-blog__topics-section {
  background-color: var(--Card-BG);
}

.page-blog__topic-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-blog__topic-item {
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease;
}

.page-blog__topic-item:hover {
  transform: translateY(-5px);
}

.page-blog__topic-heading {
  font-size: 24px;
  font-weight: bold;
  color: var(--Gold);
  margin-bottom: 15px;
}

.page-blog__topic-text {
  font-size: 16px;
  color: var(--Text-Secondary);
}

/* Why Read Blog Section */
.page-blog__why-read-blog {
  background-color: var(--Deep-Navy);
}

.page-blog__benefits-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-blog__benefits-item {
  background-color: var(--Card-BG);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
}

.page-blog__benefits-heading {
  font-size: 22px;
  font-weight: bold;
  color: var(--Text-Main);
  margin-bottom: 10px;
}

.page-blog__benefits-text {
  font-size: 16px;
  color: var(--Text-Secondary);
}

/* CTA Section */
.page-blog__cta-section {
  padding: 80px 0;
  background-color: var(--Deep-Navy);
  text-align: center;
}

.page-blog__cta-container {
  max-width: 900px;
}

/* FAQ Section */
.page-blog__faq-section {
  background-color: var(--Card-BG);
}

.page-blog__faq-list {
  margin-top: 40px;
}

details.page-blog__faq-item {
  margin-bottom: 15px;
  border-radius: 12px;
  border: 1px solid var(--Border);
  overflow: hidden;
  background: var(--Card-BG);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

details.page-blog__faq-item summary.page-blog__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, color 0.3s ease;
  color: var(--Text-Main);
}

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

details.page-blog__faq-item summary.page-blog__faq-question:hover {
  background: rgba(43, 115, 246, 0.1);
  color: var(--Gold);
}

.page-blog__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
}

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

details.page-blog__faq-item[open] .page-blog__faq-question {
  background: rgba(43, 115, 246, 0.15);
  color: var(--Gold);
}

details.page-blog__faq-item[open] .page-blog__faq-toggle {
  color: var(--Gold);
}

details.page-blog__faq-item .page-blog__faq-answer {
  padding: 0 25px 25px;
  background: var(--Card-BG);
  border-radius: 0 0 12px 12px;
  color: var(--Text-Secondary);
  font-size: 16px;
}

/* General Image and Button Responsiveness */
.page-blog img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-blog__button, .page-blog a[class*="button"], .page-blog a[class*="btn"] {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

/* Responsive styles */
@media (max-width: 1023px) {
  /* No homepage game trial specific CSS on blog page */
}

@media (min-width: 1024px) {
  /* No homepage game trial specific CSS on blog page */
}

@media (max-width: 768px) {
  .page-blog__section {
    padding: 40px 0;
  }

  .page-blog__hero-section {
    padding: 10px 0 40px;
  }

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

  .page-blog__hero-description,
  .page-blog__section-description {
    font-size: 16px;
    margin-bottom: 25px;
  }

  .page-blog__section-title {
    font-size: 28px;
    margin-bottom: 15px;
  }

  .page-blog__article-grid,
  .page-blog__topic-list,
  .page-blog__benefits-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .page-blog__article-content {
    padding: 20px;
  }

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

  .page-blog__article-excerpt,
  .page-blog__topic-text,
  .page-blog__benefits-text {
    font-size: 15px;
  }

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

  .page-blog__button,
  .page-blog a[class*="button"],
  .page-blog a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 15px;
  }

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

  details.page-blog__faq-item summary.page-blog__faq-question {
    padding: 15px 20px;
  }

  .page-blog__faq-qtext {
    font-size: 16px;
  }

  .page-blog__faq-toggle {
    font-size: 24px;
    width: 24px;
  }

  details.page-blog__faq-item .page-blog__faq-answer {
    padding: 0 20px 20px;
  }

  .page-blog__container {
    padding: 0 15px;
  }

  /* Mandatory image and container rules for mobile */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-blog__section,
  .page-blog__card,
  .page-blog__container,
  .page-blog__article-card,
  .page-blog__topic-item,
  .page-blog__benefits-item,
  .page-blog__cta-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }
  .page-blog__hero-content {
    padding: 0 15px;
  }
  .page-blog__hero-image-wrapper {
    margin-bottom: 20px;
  }
  .page-blog__faq-section .page-blog__container {
    padding: 0;
  }
  details.page-blog__faq-item {
    margin-left: 15px;
    margin-right: 15px;
  }
}

/* Custom Colors */
:root {
  --Primary-Color: #113B7A;
  --Accent-Color: #1D5FD1;
  --Button-Gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  --Card-BG: #10233F;
  --Text-Main: #F3F8FF;
  --Text-Secondary: #AFC4E8;
  --Border: #244D84;
  --Glow: #4FA8FF;
  --Gold: #F2C14E;
  --Divider: #1B3357;
  --Deep-Navy: #08162B;
}

/* Body background color from shared.css is var(--deep-navy), which is dark. Ensure light text. */
.page-blog {
  color: var(--Text-Main); /* Using Text-Main (#F3F8FF) for primary text */
}

.page-blog p, .page-blog li {
  color: var(--Text-Secondary); /* Using Text-Secondary (#AFC4E8) for paragraphs and list items */
}

.page-blog__card {
  background: var(--Card-BG); /* #10233F is a dark background */
  color: var(--Text-Main); /* Using Text-Main (#F3F8FF) for card text */
  border: 1px solid var(--Border); /* #244D84 */
}

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

.page-blog__btn-primary {
  background: var(--Button-Gradient);
  color: #ffffff; /* Explicitly white for contrast */
  border: none;
}

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

/* Ensure contrast for titles */
h1.page-blog__main-title, h2.page-blog__section-title {
  color: var(--Gold);
}

/* FAQ toggle color is Gold, which is light, on Card-BG which is dark. Good contrast. */