/* ------------------------------------ */
/* Page Blog Base Styles */
/* ------------------------------------ */
.page-blog {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #F3F8FF; /* Text Main */
  background-color: var(--deep-navy); /* From shared.css */
}

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

.page-blog__dark-section {
  background: var(--deep-navy); /* Deep Navy */
  color: #F3F8FF; /* Text Main */
  padding: 60px 0;
}

.page-blog__light-bg {
  background: #10233F; /* Card BG */
  color: #F3F8FF; /* Text Main */
  padding: 60px 0;
}

.page-blog__section-title {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #F2C14E; /* Gold */
}

.page-blog__section-description {
  font-size: 18px;
  text-align: center;
  max-width: 800px;
  margin: -20px auto 40px auto;
  color: #AFC4E8; /* Text Secondary */
}

.page-blog h1, .page-blog h2, .page-blog h3, .page-blog h4, .page-blog h5, .page-blog h6 {
  color: #F3F8FF; /* Text Main */
  line-height: 1.2;
}

.page-blog__card {
  background: #10233F; /* Card BG */
  border: 1px solid #244D84; /* Border */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-blog__btn-primary {
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  color: #F3F8FF; /* Text Main */
  border: none;
}

.page-blog__btn-primary:hover {
  background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
  box-shadow: 0 0 15px #4FA8FF; /* Glow */
}

.page-blog__btn-secondary {
  background: transparent;
  color: #F2C14E; /* Gold */
  border: 2px solid #F2C14E; /* Gold */
}

.page-blog__btn-secondary:hover {
  background: rgba(242, 193, 78, 0.1);
  color: #F3F8FF; /* Text Main */
  border-color: #F3F8FF; /* Text Main */
  box-shadow: 0 0 15px #F2C14E; /* Gold */
}

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

/* ------------------------------------ */
/* Hero Section */
/* ------------------------------------ */
.page-blog__hero-section {
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  text-align: center;
}

.page-blog__hero-image-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.page-blog__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken image for text readability */
}

.page-blog__hero-content {
  position: relative;
  z-index: 1;
  padding-top: 80px; /* Adjust as needed to ensure clear separation from top */
  padding-bottom: 80px;
  max-width: 900px;
}

.page-blog__main-title {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 20px;
  color: #F2C14E; /* Gold */
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
}

.page-blog__intro-text {
  font-size: 20px;
  margin-bottom: 30px;
  color: #AFC4E8; /* Text Secondary */
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

/* ------------------------------------ */
/* Latest Posts Section */
/* ------------------------------------ */
.page-blog__latest-posts {
  padding: 80px 0;
}

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

.page-blog__post-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.page-blog__post-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
}

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

.page-blog__post-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #F3F8FF; /* Text Main */
  line-height: 1.3;
}

.page-blog__post-date {
  font-size: 14px;
  color: #AFC4E8; /* Text Secondary */
  margin-bottom: 15px;
}

.page-blog__post-excerpt {
  font-size: 16px;
  color: #AFC4E8; /* Text Secondary */
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-blog__read-more {
  display: inline-flex;
  align-items: center;
  color: #F2C14E; /* Gold */
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__read-more:hover {
  color: #4FA8FF; /* Glow */
}

.page-blog__read-more span {
  margin-left: 5px;
}

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

/* ------------------------------------ */
/* Categories Section */
/* ------------------------------------ */
.page-blog__categories {
  padding: 80px 0;
}

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

.page-blog__category-card {
  text-align: center;
  text-decoration: none;
  color: inherit;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-blog__category-icon {
  width: 120px;
  height: 90px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-blog__category-title {
  font-size: 20px;
  font-weight: 700;
  color: #F3F8FF; /* Text Main */
}

/* ------------------------------------ */
/* Guides & Tips Section */
/* ------------------------------------ */
.page-blog__guides-tips {
  padding: 80px 0;
}

.page-blog__guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-blog__guide-item {
  padding: 30px;
  display: flex;
  flex-direction: column;
}

.page-blog__guide-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #F2C14E; /* Gold */
}

.page-blog__guide-text {
  font-size: 16px;
  color: #AFC4E8; /* Text Secondary */
  margin-bottom: 20px;
  flex-grow: 1;
}

/* ------------------------------------ */
/* FAQ Section */
/* ------------------------------------ */
details.page-blog__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #244D84; /* Border */
  overflow: hidden;
  background: #10233F; /* Card BG */
}
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;
}
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(242, 193, 78, 0.05);
}
.page-blog__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #F3F8FF; /* Text Main */
}
.page-blog__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #F2C14E; /* Gold */
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-blog__faq-item .page-blog__faq-answer {
  padding: 0 25px 20px;
  background: rgba(16, 35, 63, 0.8); /* Slightly lighter than Card BG */
  border-radius: 0 0 10px 10px;
  font-size: 16px;
  color: #AFC4E8; /* Text Secondary */
}

/* ------------------------------------ */
/* Contact CTA Section */
/* ------------------------------------ */
.page-blog__contact-cta {
  padding: 80px 0;
  text-align: center;
}

/* ------------------------------------ */
/* Responsive Design */
/* ------------------------------------ */

/* Universal image and container responsiveness for mobile */
.page-blog img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* @media (max-width: 1023px) - Tablet and smaller */
@media (max-width: 1023px) {
  .page-blog__hero-section {
    min-height: 400px;
    padding-top: 0; /* body handles padding */
  }
  .page-blog__main-title {
    font-size: 40px;
  }
  .page-blog__intro-text {
    font-size: 18px;
  }
  .page-blog__section-title {
    font-size: 30px;
  }
  .page-blog__post-card {
    margin-bottom: 20px;
  }
  .page-blog__posts-grid, .page-blog__categories-grid, .page-blog__guides-grid {
    gap: 20px;
  }
}

/* @media (min-width: 1024px) - Desktop (dummy for specific desktop layouts, not used here for 3-column game trial) */
@media (min-width: 1024px) {
  /* No specific desktop layout for this blog page that requires overriding global desktop styles */
  /* The general grid layouts handle themselves with auto-fit */
}

/* @media (max-width: 768px) - Mobile */
@media (max-width: 768px) {
  .page-blog__hero-section {
    min-height: 350px;
    padding-top: 0;
  }
  .page-blog__hero-content {
    padding-top: 50px;
    padding-bottom: 50px;
  }
  .page-blog__main-title {
    font-size: 32px;
  }
  .page-blog__intro-text {
    font-size: 16px;
  }
  .page-blog__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-blog__btn-primary,
  .page-blog__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 15px;
    font-size: 16px;
  }

  .page-blog__dark-section,
  .page-blog__light-bg {
    padding: 40px 0;
  }
  .page-blog__section-title {
    font-size: 26px;
    margin-bottom: 30px;
  }
  .page-blog__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  /* Images and containers for mobile */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-blog__container,
  .page-blog__hero-section,
  .page-blog__latest-posts,
  .page-blog__categories,
  .page-blog__guides-tips,
  .page-blog__faq-section,
  .page-blog__contact-cta,
  .page-blog__post-card,
  .page-blog__category-card,
  .page-blog__guide-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-blog__posts-grid,
  .page-blog__categories-grid,
  .page-blog__guides-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-blog__post-title {
    font-size: 18px;
  }
  .page-blog__post-excerpt {
    font-size: 14px;
  }
  .page-blog__category-icon {
    width: 100px;
    height: 75px;
  }
  .page-blog__category-title {
    font-size: 18px;
  }
  .page-blog__guide-title {
    font-size: 18px;
  }
  .page-blog__guide-text {
    font-size: 14px;
  }

  details.page-blog__faq-item summary.page-blog__faq-question {
    padding: 15px;
  }
  .page-blog__faq-qtext {
    font-size: 16px;
  }
  .page-blog__faq-toggle {
    font-size: 20px;
    width: 24px;
  }
  details.page-blog__faq-item .page-blog__faq-answer {
    padding: 0 15px 15px;
    font-size: 14px;
  }
}