/* Base Styles for page-blog */
.page-blog {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #F3F8FF; /* Text Main */
  background-color: #08162B; /* Deep Navy - Body background from shared.css */
}

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

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

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

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

/* Hero Section */
.page-blog__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 40px;
  background-color: #08162B; /* Deep Navy */
}

.page-blog__hero-image-wrapper {
  width: 100%;
  max-width: 1280px;
  margin-bottom: 30px;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

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

.page-blog__hero-content-area {
  text-align: center;
  max-width: 900px;
  padding: 0 16px;
}

.page-blog__main-title {
  font-size: 48px;
  font-weight: 800;
  color: #F2C14E; /* Gold */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-blog__hero-description {
  font-size: 20px;
  color: #AFC4E8; /* Text Secondary */
  margin-bottom: 30px;
}

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

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

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

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

.page-blog__btn-secondary:hover {
  background: #F2C14E;
  color: #113B7A; /* Main Color */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

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

/* Latest Articles Grid */
.page-blog__articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-blog__article-card {
  background-color: #10233F; /* Card BG */
  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;
}

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

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

.page-blog__article-image {
  width: 100%;
  height: 225px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

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

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

.page-blog__article-title:hover {
  color: #F2C14E; /* Gold */
}

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

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

.page-blog__read-more {
  color: #1D5FD1; /* Auxiliary Color */
  font-weight: 600;
  text-decoration: none;
}

.page-blog__read-more:hover {
  text-decoration: underline;
}

/* Categories Section */
.page-blog__dark-section {
  background-color: #113B7A; /* Main Color */
  color: #F3F8FF; /* Text Main */
}

.page-blog__category-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.page-blog__category-item {
  background-color: #08162B; /* Deep Navy */
  border: 1px solid #244D84; /* Border */
  border-radius: 25px;
  padding: 10px 20px;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.page-blog__category-item:hover {
  background-color: #1D5FD1; /* Auxiliary Color */
  border-color: #1D5FD1;
}

.page-blog__category-link {
  color: #F3F8FF; /* Text Main */
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
}

.page-blog__category-link:hover {
  color: #F3F8FF;
}

/* Guides Section */
.page-blog__guide-item {
  display: flex;
  align-items: center;
  background-color: #10233F; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-blog__guide-item:nth-child(even) {
  flex-direction: row-reverse;
}

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

.page-blog__guide-content {
  width: 60%;
  padding: 30px;
}

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

.page-blog__guide-title a {
  color: inherit;
  text-decoration: none;
}

.page-blog__guide-title a:hover {
  text-decoration: underline;
}

.page-blog__guide-content p {
  color: #AFC4E8; /* Text Secondary */
  margin-bottom: 15px;
}

/* CTA Section */
.page-blog__cta-content {
  padding-top: 50px;
  padding-bottom: 50px;
}

.page-blog__cta-description {
  font-size: 18px;
  color: #AFC4E8;
  margin-bottom: 30px;
  text-align: center;
}

/* FAQ Section */
details.page-blog__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  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 20px;
  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(29, 95, 209, 0.1); /* Light hover effect with Auxiliary Color */
}

.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 20px 20px;
  background: rgba(16, 35, 63, 0.8); /* Slightly lighter Card BG for answer */
  border-radius: 0 0 5px 5px;
  color: #AFC4E8; /* Text Secondary */
}

.page-blog__faq-answer p {
  margin: 0;
}

/* More Articles Section */
.page-blog__more-articles .page-blog__cta-buttons {
  margin-top: 20px;
}

/* Fixed Header Spacing - blog page specific (only if shared doesn't handle body padding) */
/* If shared.css already has body { padding-top: var(--header-offset); }, then this is NOT needed here. */
/* Assuming shared.css handles body padding, so no additional padding-top on main sections. */

/* Responsive Design */
@media (max-width: 1023px) {
  /* Game Trial Reset (Homepage specific, included for strict compliance) */
  .page-blog__home-hero {
    display: block !important;
    grid-template-columns: none !important;
    height: auto !important;
    max-height: none !important;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  .page-blog__hero-brand,
  .page-blog__hero-jackpot {
    display: none !important;
  }
  .page-blog__game-trial {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    overflow: hidden !important;
    margin: 0 auto;
    padding: 0 0 12px !important;
    box-sizing: border-box;
  }
  .page-blog__game-trial-shell {
    height: auto !important;
    max-height: none !important;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-blog__game-trial-topbar,
  .page-blog__game-trial-bottombar {
    display: none !important;
  }
  .page-blog__game-trial-viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 1024 / 768;
    flex: none !important;
    min-height: 240px;
    max-height: none !important;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-blog__game-trial-frame {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    max-width: 100%;
    border: none;
    z-index: 1;
    overflow: hidden;
  }
  .page-blog__game-trial-overlay {
    z-index: 5 !important;
    pointer-events: auto !important;
  }
  .page-blog__game-trial-start {
    z-index: 6 !important;
    pointer-events: auto !important;
    touch-action: manipulation;
  }
}

@media (min-width: 1024px) {
  /* PC Three-Column Layout (Homepage specific, included for strict compliance) */
  .page-blog__home-hero {
    display: grid;
    grid-template-columns: 26% 48% 26%;
    gap: 16px;
    align-items: stretch;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 10px 16px 24px; /* Adjust padding if needed */
    box-sizing: border-box;
  }
  .page-blog__hero-brand,
  .page-blog__hero-jackpot,
  .page-blog__game-trial {
    height: 300px;
    max-height: 300px;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-blog__game-trial {
    max-width: none !important;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  .page-blog__game-trial-shell {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 300px;
    box-sizing: border-box;
  }
  .page-blog__game-trial-viewport {
    flex: 1;
    min-height: 0;
    position: relative;
    width: 100%;
  }
  .page-blog__game-trial-frame {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: none;
  }
  .page-blog__hero-jackpot-claim {
    background: #c62828 !important;
    color: #fff !important;
  }
}

/* Mobile Responsive (max-width: 768px) */
@media (max-width: 768px) {
  .page-blog__section-title {
    font-size: 28px;
  }

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

  .page-blog__hero-description {
    font-size: 18px;
  }

  .page-blog__btn-primary,
  .page-blog__btn-secondary {
    font-size: 16px;
    padding: 10px 20px;
    margin: 0;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-blog__btn-secondary {
    margin-top: 15px;
  }

  .page-blog__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-blog__articles-grid {
    grid-template-columns: 1fr;
  }

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

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

  .page-blog__category-list {
    flex-direction: column;
    align-items: center;
  }

  .page-blog__guide-item {
    flex-direction: column;
  }

  .page-blog__guide-item:nth-child(even) {
    flex-direction: column;
  }

  .page-blog__guide-image {
    width: 100%;
    height: 250px;
  }

  .page-blog__guide-content {
    width: 100%;
    padding: 20px;
  }

  .page-blog__guide-title {
    font-size: 24px;
  }

  /* FAQ */
  details.page-blog__faq-item summary.page-blog__faq-question { padding: 15px; }
  .page-blog__faq-qtext { font-size: 15px; }
  details.page-blog__faq-item .page-blog__faq-answer { padding: 0 15px 15px; }

  /* General image and container rules for mobile */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-blog__section,
  .page-blog__container,
  .page-blog__articles-grid,
  .page-blog__category-list,
  .page-blog__guide-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-blog__container {
    padding: 0 15px;
  }
}

/* Game Trial Overlay Z-index (Homepage specific, included for strict compliance) */
.page-blog__game-trial-overlay{z-index:5;pointer-events:auto;}
.page-blog__game-trial-overlay.is-hidden{display:none!important;pointer-events:none!important;}
.page-blog__game-trial-start{z-index:6;pointer-events:auto;touch-action:manipulation;}

/* Game Trial Shell (Homepage specific, included for strict compliance) */
.page-blog__game-trial-shell{border:1px solid rgba(212,175,55,.45);border-radius:10px;overflow:hidden;}

/* Reward Modal (Homepage specific, included for strict compliance) */
.page-blog__reward-modal{position:fixed;inset:0;z-index:10000; background: rgba(0,0,0,0.7); display: flex; justify-content: center; align-items: center;}
.page-blog__reward-modal[hidden] { display: none; }
.page-blog__reward-modal-content { background: #10233F; padding: 30px; border-radius: 10px; text-align: center; position: relative; max-width: 500px; width: 90%; box-shadow: 0 5px 25px rgba(0,0,0,0.6); }
.page-blog__reward-modal-close { position: absolute; top: 15px; right: 15px; background: none; border: none; font-size: 24px; color: #F2C14E; cursor: pointer; }
.page-blog__reward-modal-title { font-size: 28px; color: #F2C14E; margin-bottom: 20px; }
.page-blog__reward-modal-description { color: #AFC4E8; margin-bottom: 30px; }
.page-blog__reward-modal-btn { background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%); color: #FFFFFF; padding: 10px 25px; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 18px; display: inline-block; }

/* Global .is-hidden utility for JS */
.is-hidden { display: none !important; }