/* style/blog.css */
/* Base styles for the blog page */
.page-blog {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #F2FFF6; /* Text Main */
  background-color: #08160F; /* Background */
  padding-bottom: 50px; /* Add some padding at the bottom */
}

/* Hero Section */
.page-blog__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 10px 20px 40px; /* Small top padding, more bottom */
  box-sizing: border-box;
}

.page-blog__hero-image-wrapper {
  width: 100%;
  max-width: 1920px; /* Max width for the image */
  margin-bottom: 30px;
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-blog__hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.page-blog__main-title {
  font-size: clamp(2em, 5vw, 3.2em); /* Responsive H1 font size */
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #F2C14E; /* Gold */
  letter-spacing: 1px;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-blog__intro-text {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #A7D9B8; /* Text Secondary */
}

/* CTA Buttons */
.page-blog__cta-buttons {
  display: flex;
  flex-wrap: wrap; /* Allow wrapping on small screens */
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.page-blog__btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  text-align: center;
  box-sizing: border-box; /* Ensure padding is included in width */
  max-width: 100%; /* Ensure button doesn't overflow */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
}

.page-blog__btn--primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6; /* Text Main */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-blog__btn--secondary {
  background: #11271B; /* Card BG */
  color: #F2FFF6; /* Text Main */
  border: 2px solid #2E7A4E; /* Border */
}

.page-blog__btn--secondary:hover {
  background: #2E7A4E; /* Border */
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* General Section Styles */
.page-blog__section {
  max-width: 1200px;
  margin: 50px auto;
  padding: 40px 20px;
  background-color: #11271B; /* Card BG */
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  box-sizing: border-box;
}

.page-blog__section-title {
  font-size: 2.5em;
  color: #F2C14E; /* Gold */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  text-shadow: 0 0 8px rgba(242, 193, 78, 0.4);
}

.page-blog__description-text {
  font-size: 1.05em;
  color: #A7D9B8; /* Text Secondary */
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px;
}

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

.page-blog__article-card {
  background-color: #0A4B2C; /* Deep Green - slightly lighter than card bg for distinction */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #2E7A4E; /* Border */
}

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

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

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

.page-blog__article-title {
  font-size: 1.4em;
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.3;
}

.page-blog__article-title a {
  color: #F2FFF6; /* Text Main */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__article-title a:hover {
  color: #2AD16F; /* Lighter green for hover */
}

.page-blog__article-excerpt {
  font-size: 0.95em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 15px;
  flex-grow: 1; /* Allow excerpt to take available space */
}

.page-blog__article-date {
  font-size: 0.85em;
  color: #57E38D; /* Glow */
  margin-bottom: 20px;
  display: block;
}

.page-blog__btn--read-more {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6; /* Text Main */
  padding: 10px 20px;
  font-size: 0.9em;
  border-radius: 5px;
  align-self: flex-start; /* Align button to start */
}

.page-blog__btn--read-more:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
}

.page-blog__view-all-button-wrapper {
  text-align: center;
  margin-top: 20px;
}

.page-blog__btn--view-all {
  background: #22C768; /* Auxiliary color */
  color: #F2FFF6; /* Text Main */
  padding: 12px 25px;
  font-size: 1em;
  border-radius: 8px;
  text-decoration: none;
}

.page-blog__btn--view-all:hover {
  background: #13994A; /* Darker green */
}


/* Why Choose Section */
.page-blog__feature-list {
  list-style: none;
  padding: 0;
  margin: 0 auto 40px;
  max-width: 900px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
}

.page-blog__feature-item {
  background-color: #0A4B2C; /* Deep Green */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-blog__feature-title {
  font-size: 1.5em;
  color: #F2C14E; /* Gold */
  margin-bottom: 10px;
  font-weight: bold;
}

.page-blog__feature-item p {
  color: #A7D9B8; /* Text Secondary */
  font-size: 1em;
}

/* Game Types Section */
.page-blog__game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-blog__game-card {
  background-color: #0A4B2C; /* Deep Green */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-blog__game-image {
  width: 100%;
  height: 200px; /* Consistent height for game images */
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
}

.page-blog__game-title {
  font-size: 1.3em;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 10px;
  font-weight: bold;
  padding: 0 15px;
}

.page-blog__game-description {
  font-size: 0.95em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 20px;
  padding: 0 15px;
  flex-grow: 1;
}

.page-blog__btn--game {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6; /* Text Main */
  padding: 10px 20px;
  font-size: 0.9em;
  border-radius: 5px;
  margin: 0 auto; /* Center button */
  display: block; /* Make it a block element to take full width of padding */
  max-width: fit-content; /* Adjust to content width */
}

.page-blog__btn--game:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
}

/* Promotions Section */
.page-blog__promotion-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  margin: 0 auto 40px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Registration and Download Section */
.page-blog__split-content {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 60px;
  background-color: #0A4B2C; /* Deep Green */
  border-radius: 10px;
  padding: 30px;
  border: 1px solid #2E7A4E; /* Border */
}

.page-blog__split-content--reverse {
  flex-direction: row-reverse;
}

.page-blog__content-block {
  flex: 1;
}

.page-blog__image-block {
  flex: 1;
  min-width: 300px; /* Ensure image block has a minimum width */
}

.page-blog__sub-title {
  font-size: 2em;
  color: #F2C14E; /* Gold */
  margin-bottom: 20px;
  font-weight: bold;
}

.page-blog__step-list,
.page-blog__app-features {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-blog__step-list li,
.page-blog__app-features li {
  font-size: 1.05em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
}

.page-blog__step-list li::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  position: absolute;
  left: 0;
  top: 0;
  background-color: #2AD16F;
  color: #F2FFF6;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8em;
  font-weight: bold;
}

.page-blog__app-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: #2AD16F;
  font-weight: bold;
}

.page-blog__responsive-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* FAQ Section */
.page-blog__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-blog__faq-item {
  background-color: #0A4B2C; /* Deep Green */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  cursor: pointer;
  background-color: #11271B; /* Card BG */
  border-bottom: 1px solid transparent; /* Placeholder for border */
  transition: background-color 0.3s ease;
}

.page-blog__faq-item[open] .page-blog__faq-question {
  background-color: #13994A; /* Darker green on open */
  border-bottom: 1px solid #2AD16F; /* Border on open */
}

.page-blog__faq-question:hover {
  background-color: #13994A; /* Darker green on hover */
}

.page-blog__faq-qtext {
  flex-grow: 1;
  margin-right: 15px;
}

.page-blog__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #2AD16F; /* Lighter green */
}

.page-blog__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: #A7D9B8; /* Text Secondary */
}

/* Contact Support Section */
.page-blog__contact-support .page-blog__responsive-image {
  max-width: 600px;
  margin: 0 auto 30px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-blog__section-title {
    font-size: 2em;
  }
  .page-blog__main-title {
    font-size: clamp(1.8em, 6vw, 2.8em);
  }
  .page-blog__article-card {
    min-width: 280px;
  }
  .page-blog__split-content {
    flex-direction: column;
    gap: 30px;
  }
  .page-blog__split-content--reverse {
    flex-direction: column; /* Stacks vertically even if reverse originally */
  }
  .page-blog__image-block {
    min-width: unset; /* Remove min-width on smaller screens */
    width: 100%;
  }
}

@media (max-width: 768px) {
  .page-blog {
    font-size: 16px;
    line-height: 1.6;
    padding-bottom: 30px;
  }

  /* Universal responsive image, video, and button styles */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-blog video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-blog__hero-section,
  .page-blog__section,
  .page-blog__articles-grid,
  .page-blog__game-grid,
  .page-blog__split-content,
  .page-blog__faq-list,
  .page-blog__contact-support,
  .page-blog__hero-content,
  .page-blog__cta-buttons,
  .page-blog__articles-grid,
  .page-blog__game-grid,
  .page-blog__feature-list,
  .page-blog__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }
  
  .page-blog__hero-section {
    padding-top: 10px !important; /* Small top padding for hero */
  }

  .page-blog__main-title {
    font-size: clamp(1.5em, 8vw, 2.5em);
    margin-bottom: 15px;
  }

  .page-blog__intro-text {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-blog__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
  }
  
  .page-blog__btn {
    padding: 12px 20px;
    font-size: 1em;
    width: 100% !important; /* Full width for buttons */
    max-width: 100% !important;
  }

  .page-blog__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-blog__article-card {
    padding: 0; /* Remove padding from card itself, use section padding */
  }
  
  .page-blog__article-image {
    height: 180px;
  }

  .page-blog__article-title {
    font-size: 1.2em;
    margin-bottom: 10px;
  }

  .page-blog__article-excerpt {
    font-size: 0.9em;
  }

  .page-blog__feature-title {
    font-size: 1.3em;
  }

  .page-blog__game-card {
    padding-bottom: 15px;
  }

  .page-blog__game-image {
    height: 150px;
  }

  .page-blog__game-title {
    font-size: 1.2em;
  }

  .page-blog__promotion-image {
    margin-bottom: 30px;
  }

  .page-blog__sub-title {
    font-size: 1.8em;
  }

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

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

@media (max-width: 480px) {
  .page-blog__hero-section,
  .page-blog__section {
    padding-left: 10px;
    padding-right: 10px;
  }
  .page-blog__cta-buttons {
    gap: 10px;
  }
  .page-blog__btn {
    padding: 10px 15px;
    font-size: 0.9em;
  }
  .page-blog__section-title {
    font-size: 1.5em;
  }
  .page-blog__article-image {
    height: 150px;
  }
  .page-blog__game-image {
    height: 120px;
  }
  .page-blog__sub-title {
    font-size: 1.5em;
  }
}