/* style/blog.css */

/* Base styles for the blog page */
.page-blog {
  font-family: 'Arial', sans-serif;
  color: #F2FFF6; /* Text Main */
  background-color: #08160F; /* Background */
  line-height: 1.6;
}

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

/* Hero Section */
.page-blog__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* Small top padding, larger bottom for content */
  overflow: hidden;
  box-sizing: border-box;
}

.page-blog__hero-image-wrapper {
  width: 100%;
  max-height: 675px; /* Limit height for hero image */
  overflow: hidden;
}

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

.page-blog__hero-content {
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: 20px; /* Space below image */
  box-sizing: border-box;
}

.page-blog__main-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  color: #F2C14E; /* Gold */
  margin-bottom: 20px;
  line-height: 1.2;
}

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

.page-blog__hero-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

/* General Section Styling */
.page-blog__introduction-section,
.page-blog__games-section,
.page-blog__promotions-section,
.page-blog__guide-section,
.page-blog__security-section,
.page-blog__support-section,
.page-blog__faq-section,
.page-blog__conclusion-section,
.page-blog__related-articles-section {
  padding: 60px 0;
  background-color: #08160F; /* Background */
}

.page-blog__section-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: #F2C14E; /* Gold */
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.3;
}

.page-blog__text-content {
  font-size: 1.1rem;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 20px;
  text-align: justify;
}

/* Card Styles */
.page-blog__card {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 12px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #F2FFF6; /* Text Main */
}

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

.page-blog__card-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-blog__card-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #F2C14E; /* Gold */
  margin-bottom: 15px;
  line-height: 1.4;
}

.page-blog__card-title a {
  color: #F2C14E; /* Gold */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__card-title a:hover {
  color: #57E38D; /* Glow */
}

.page-blog__card-text {
  font-size: 1rem;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Game Categories Grid */
.page-blog__game-categories,
.page-blog__promotions-grid,
.page-blog__guide-steps,
.page-blog__articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

/* Buttons */
.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: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  width: auto; /* Default to auto width */
}

.page-blog__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button */
  color: #ffffff; /* White text for contrast */
  border: 2px solid transparent;
  box-shadow: 0 4px 10px rgba(42, 209, 111, 0.3);
}

.page-blog__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 6px 15px rgba(42, 209, 111, 0.5);
  transform: translateY(-2px);
}

.page-blog__btn-secondary {
  background: transparent;
  color: #2AD16F; /* Button green for text */
  border: 2px solid #2AD16F;
}

.page-blog__btn-secondary:hover {
  background: #2AD16F;
  color: #ffffff;
  border-color: #2AD16F;
  transform: translateY(-2px);
}

/* List styles */
.page-blog__list {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.page-blog__list li {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="%232AD16F" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"></polyline></svg>') no-repeat left center;
  background-size: 18px;
  padding-left: 30px;
  margin-bottom: 10px;
  color: #A7D9B8; /* Text Secondary */
}

/* Security and Support Images */
.page-blog__security-image,
.page-blog__support-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

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

/* FAQ Section */
.page-blog__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog__faq-item {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2rem;
  font-weight: 600;
  color: #F2FFF6; /* Text Main */
  cursor: pointer;
  background-color: #0A4B2C; /* Deep Green */
  border-bottom: 1px solid #1E3A2A; /* Divider */
  transition: background-color 0.3s ease;
}

.page-blog__faq-question:hover {
  background-color: #11A84E; /* Main color */
}

.page-blog__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  margin-left: 15px;
  color: #2AD16F;
}

.page-blog__faq-item[open] .page-blog__faq-toggle {
  content: '−';
}

.page-blog__faq-answer {
  padding: 20px 25px;
  font-size: 1rem;
  color: #A7D9B8; /* Text Secondary */
  text-align: justify;
}

.page-blog__faq-answer p {
  margin-bottom: 15px;
}

.page-blog__faq-answer a.page-blog__faq-link {
  color: #2AD16F; /* Button green */
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-blog__faq-answer a.page-blog__faq-link:hover {
  color: #57E38D; /* Glow */
}

/* Conclusion CTA */
.page-blog__conclusion-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-blog__main-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }

  .page-blog__section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
  }

  .page-blog__card-title {
    font-size: 1.3rem;
  }

  .page-blog__hero-content {
    padding: 30px 15px;
  }

  .page-blog__text-content {
    font-size: 1rem;
  }

  .page-blog__faq-question {
    font-size: 1.1rem;
    padding: 18px 20px;
  }
}

@media (max-width: 768px) {
  .page-blog__container {
    padding: 0 15px; /* Mobile padding */
  }

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

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

  .page-blog__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }

  .page-blog__hero-description {
    font-size: 1rem;
  }

  .page-blog__hero-cta-buttons,
  .page-blog__support-cta,
  .page-blog__conclusion-cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px; /* Ensure buttons have side padding */
  }

  .page-blog__btn-primary,
  .page-blog__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
  }

  .page-blog__introduction-section,
  .page-blog__games-section,
  .page-blog__promotions-section,
  .page-blog__guide-section,
  .page-blog__security-section,
  .page-blog__support-section,
  .page-blog__faq-section,
  .page-blog__conclusion-section,
  .page-blog__related-articles-section {
    padding: 40px 0;
  }

  .page-blog__section-title {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
    margin-bottom: 30px;
  }

  .page-blog__text-content {
    font-size: 0.95rem;
  }

  .page-blog__game-categories,
  .page-blog__promotions-grid,
  .page-blog__guide-steps,
  .page-blog__articles-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-blog__card {
    padding: 20px;
  }

  .page-blog__card-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-blog__card-title {
    font-size: 1.2rem;
  }

  .page-blog__card-text {
    font-size: 0.9rem;
  }

  .page-blog__security-image,
  .page-blog__support-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    margin: 30px auto;
  }

  .page-blog__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }

  .page-blog__faq-answer {
    font-size: 0.9rem;
    padding: 15px 20px;
  }

  /* Ensure all images are responsive on mobile */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-blog__section,
  .page-blog__card,
  .page-blog__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-blog__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0;
  }
  
  .page-blog__hero-section {
    padding-top: 10px !important;
  }
}

@media (max-width: 480px) {
  .page-blog__main-title {
    font-size: clamp(1.6rem, 8vw, 2.2rem);
  }

  .page-blog__hero-description {
    font-size: 0.9rem;
  }

  .page-blog__btn-primary,
  .page-blog__btn-secondary {
    font-size: 0.95rem;
    padding: 10px 15px;
  }

  .page-blog__section-title {
    font-size: clamp(1.4rem, 7vw, 2rem);
  }

  .page-blog__card-title {
    font-size: 1.1rem;
  }

  .page-blog__text-content,
  .page-blog__card-text {
    font-size: 0.85rem;
  }

  .page-blog__faq-question {
    font-size: 0.95rem;
    padding: 12px 15px;
  }

  .page-blog__faq-answer {
    font-size: 0.85rem;
    padding: 12px 15px;
  }
}