/* CSS for blog.html */

/* General Styles */
.page-blog {
  font-family: 'Arial', sans-serif;
  color: #1F2D3D; /* Text Main color */
  line-height: 1.6;
  background: #F4F7FB; /* Background color from custom配色 */
}

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

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

.page-blog__section-title {
  font-size: 32px;
  font-weight: 700;
  color: #1F2D3D; /* Text Main color */
  text-align: center;
  margin-bottom: 20px;
}

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

.page-blog__light-bg {
  background: #FFFFFF; /* Card B G color */
  color: #1F2D3D; /* Text Main color */
}

.page-blog__dark-section {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Main brand color gradient */
  color: #ffffff; /* White text for dark background */
}

.page-blog__light-text {
  color: #ffffff;
}

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

.page-blog__hero-image-wrapper {
  width: 100%;
  max-width: 1280px;
  margin-bottom: 30px;
  overflow: hidden;
  border-radius: 10px;
}

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

.page-blog__hero-content {
  max-width: 900px;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.page-blog__main-title {
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #1F2D3D;
  margin-bottom: 20px;
}

.page-blog__description {
  font-size: 17px;
  margin-bottom: 30px;
  color: #1F2D3D;
}

/* CTA Buttons */
.page-blog__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.page-blog__btn-primary,
.page-blog__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-blog__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button color */
  color: #ffffff;
  border: 2px solid transparent;
}

.page-blog__btn-primary:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  box-shadow: 0 6px 15px rgba(47, 107, 255, 0.4);
}

.page-blog__btn-secondary {
  background: #ffffff;
  color: #2F6BFF;
  border: 2px solid #2F6BFF; /* Border color from custom配色, but using brand color for contrast */
}

.page-blog__btn-secondary:hover {
  background: #f0f5ff;
  color: #1F52CC;
  border-color: #1F52CC;
}

/* Topics Grid */
.page-blog__topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.page-blog__topic-card {
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  border: 1px solid #D6E2FF; /* Border color */
  text-align: center;
}

.page-blog__topic-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
}

.page-blog__topic-title a {
  color: #2F6BFF; /* Main brand color */
  text-decoration: none;
}

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

.page-blog__topic-card p {
  font-size: 15px;
  color: #1F2D3D;
}

/* Featured Articles */
.page-blog__featured-articles {
  padding: 60px 0;
}

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

.page-blog__article-card {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid #D6E2FF;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

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

.page-blog__article-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.page-blog__article-title a {
  color: #1F2D3D;
  text-decoration: none;
}

.page-blog__article-title a:hover {
  color: #2F6BFF;
  text-decoration: underline;
}

.page-blog__article-meta {
  font-size: 13px;
  color: #666;
  margin-bottom: 15px;
}

.page-blog__article-excerpt {
  font-size: 15px;
  color: #1F2D3D;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-blog__read-more-btn {
  align-self: flex-start;
  padding: 10px 20px;
  font-size: 15px;
  border-radius: 5px;
}

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

/* Betting Tips Section */
.page-blog__betting-tips {
  padding-bottom: 60px;
}

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

.page-blog__tip-item {
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  border: 1px solid #D6E2FF;
}

.page-blog__tip-title {
  font-size: 20px;
  font-weight: 700;
  color: #2F6BFF;
  margin-bottom: 15px;
}

.page-blog__tip-item p {
  font-size: 15px;
  color: #1F2D3D;
}

.page-blog__content-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-blog__text-block {
  font-size: 16px;
  color: #1F2D3D;
  margin-top: 20px;
  text-align: justify;
}

/* Security Section */
.page-blog__security-info {
  padding: 60px 0;
}

.page-blog__security-features {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  text-align: left;
}

.page-blog__security-features li {
  font-size: 16px;
  margin-bottom: 15px;
  position: relative;
  padding-left: 25px;
}

.page-blog__security-features li strong {
  color: #ffffff;
}

.page-blog__security-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #A5C4FF; /* Glow color */
  font-weight: bold;
}

/* FAQ Section */
details.page-blog__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #D6E2FF; /* Border color */
  overflow: hidden;
  background: #FFFFFF; /* Card B G color */
}
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: #f5f5f5;
}
.page-blog__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #1F2D3D; /* Text Main color */
}
.page-blog__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #2F6BFF; /* Main brand color */
  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: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #1F2D3D; /* Text Main color */
}

/* CTA Bottom Section */
.page-blog__cta-bottom {
  padding: 60px 0;
  text-align: center;
}

/* Responsive Design */
@media (max-width: 1023px) {
  /* Homepage-specific styles (as per instruction, must be included) */
  .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) {
  /* Homepage-specific styles (as per instruction, must be included) */
  .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;
    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;
  }
}

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

  .page-blog__section-intro {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .page-blog__hero-section {
    padding-bottom: 20px;
  }

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

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

  .page-blog__description {
    font-size: 15px;
  }

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

  .page-blog__btn-primary,
  .page-blog__btn-secondary,
  .page-blog a[class*="button"],
  .page-blog 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: 12px 20px;
  }

  .page-blog__topics-grid,
  .page-blog__articles-grid,
  .page-blog__tips-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

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

  .page-blog__article-excerpt,
  .page-blog__topic-card p,
  .page-blog__tip-item p,
  .page-blog__text-block {
    font-size: 14px;
  }

  .page-blog__security-features li {
    font-size: 14px;
  }

  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 responsiveness for content area */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-blog__container,
  .page-blog__section,
  .page-blog__card,
  .page-blog__hero-image-wrapper,
  .page-blog__hero-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Additional homepage-specific styles (as per instruction, must be included) */
.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;}
.page-blog__game-trial-shell{border:1px solid rgba(212,175,55,.45);border-radius:10px;overflow:hidden;}
.page-blog__reward-modal{position:fixed;inset:0;z-index:10000;}