/* style/blog.css */

/* General Styles */
.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;
}

.page-blog__section {
  padding: 60px 0;
  border-bottom: 1px solid #1E3A2A; /* Divider */
}

.page-blog__section:last-of-type {
  border-bottom: none;
}

.page-blog__section-title,
.page-blog__sub-title,
.page-blog__card-title,
.page-blog__feature-title {
  color: #F2FFF6; /* Text Main */
  font-weight: bold;
  margin-bottom: 20px;
  text-align: center;
}

.page-blog__section-title {
  font-size: clamp(28px, 4vw, 38px);
  margin-bottom: 40px;
}

.page-blog__sub-title {
  font-size: clamp(22px, 3vw, 28px);
  text-align: left;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-blog p {
  margin-bottom: 15px;
  color: #A7D9B8; /* Text Secondary */
}

.page-blog__list {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  color: #A7D9B8; /* Text Secondary */
}

.page-blog__list li {
  margin-bottom: 8px;
}

/* Hero Section */
.page-blog__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 10px; /* Small decorative top margin */
  padding-bottom: 60px;
  overflow: hidden;
  background-color: #0A4B2C; /* Deep Green */
}

.page-blog__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Adjust as needed */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7);
}

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

.page-blog__main-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.2;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 20px;
}

.page-blog__description {
  font-size: clamp(16px, 2vw, 20px);
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
}

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

.page-blog__cta-buttons--center {
  margin-top: 40px;
}

.page-blog__btn-primary,
.page-blog__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
  box-sizing: border-box;
}

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

.page-blog__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(34, 199, 104, 0.6);
}

.page-blog__btn-secondary {
  background-color: transparent;
  color: #2AD16F; /* A lighter shade of primary for contrast */
  border: 2px solid #2AD16F;
}

.page-blog__btn-secondary:hover {
  background-color: rgba(42, 209, 111, 0.1);
  color: #F2FFF6; /* Text Main */
}

/* Image with Text Layout */
.page-blog__image-with-text {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-blog__image-with-text .page-blog__content-image {
  flex: 1;
  min-width: 300px;
  max-width: 50%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

.page-blog__image-with-text > div {
  flex: 1;
  min-width: 300px;
}

/* Card Styles */
.page-blog__card {
  background-color: #11271B; /* Card BG */
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid #2E7A4E; /* Border */
  display: flex;
  flex-direction: column;
  color: #F2FFF6; /* Text Main */
}

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

.page-blog__card-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
  text-align: left;
}

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

.page-blog__card-link {
  display: inline-block;
  margin-top: 15px;
  color: #2AD16F; /* A lighter shade of primary for contrast */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-blog__card-link:hover {
  color: #57E38D; /* Glow */
  text-decoration: underline;
}

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

.page-blog__game-card {
  padding: 20px;
}

/* Promotions Section */
.page-blog__promotion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-blog__promotion-card .page-blog__card-image {
  height: 220px;
}

/* Features Section */
.page-blog__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-blog__feature-item {
  text-align: center;
}

.page-blog__feature-title {
  font-size: 22px;
  margin-bottom: 15px;
}

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

/* FAQ Section */
.page-blog__faq-list {
  margin-top: 40px;
}

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

.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 18px;
  color: #F2FFF6; /* Text Main */
  user-select: none;
}

.page-blog__faq-question:hover {
  background-color: rgba(42, 209, 111, 0.1);
}

.page-blog__faq-toggle {
  font-size: 24px;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #2AD16F;
}

.page-blog__faq-item[open] .page-blog__faq-toggle {
  transform: rotate(45deg);
}

.page-blog__faq-answer {
  padding: 0 25px 20px;
  font-size: 16px;
  color: #A7D9B8; /* Text Secondary */
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.page-blog__faq-item[open] .page-blog__faq-answer {
  max-height: 500px; /* Adjust as needed for content */
  transition: max-height 0.5s ease-in;
}

.page-blog__faq-item details > summary {
  list-style: none;
}

.page-blog__faq-item details > summary::-webkit-details-marker {
  display: none;
}

/* Conclusion Section */
.page-blog__conclusion-section {
  text-align: center;
  padding-bottom: 80px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-blog__hero-image-wrapper {
    max-height: 500px;
  }
  .page-blog__image-with-text {
    flex-direction: column;
    align-items: center;
  }
  .page-blog__image-with-text .page-blog__content-image {
    max-width: 80%;
  }
  .page-blog__image-with-text > div {
    text-align: center;
  }
  .page-blog__sub-title {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .page-blog__section {
    padding: 40px 0;
  }
  .page-blog__hero-image-wrapper {
    max-height: 300px;
  }
  .page-blog__main-title {
    font-size: clamp(28px, 6vw, 40px);
  }
  .page-blog__description {
    font-size: clamp(15px, 3vw, 18px);
  }
  .page-blog__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }
  .page-blog__btn-primary,
  .page-blog__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-blog__cta-buttons,
  .page-blog__button-group,
  .page-blog__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  /* Image/Video responsive fix */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-blog video,
  .page-blog__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-blog__section,
  .page-blog__card,
  .page-blog__container,
  .page-blog__video-section,
  .page-blog__video-container,
  .page-blog__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }
  .page-blog__video-section {
    padding-top: 10px !important;
  }
  .page-blog__image-with-text .page-blog__content-image {
    max-width: 100%;
  }

  .page-blog__card-image {
    height: auto;
    min-height: 200px; /* Ensure images are not too small */
  }
  .page-blog__card-title {
    font-size: 18px;
  }
  .page-blog__faq-question {
    font-size: 16px;
    padding: 15px 20px;
  }
  .page-blog__faq-answer {
    padding: 0 20px 15px;
  }
  .page-blog__section-title {
    font-size: clamp(24px, 5vw, 32px);
  }
  .page-blog__sub-title {
    font-size: clamp(20px, 4vw, 24px);
  }
}

@media (max-width: 480px) {
  .page-blog__hero-image-wrapper {
    max-height: 250px;
  }
  .page-blog__main-title {
    font-size: clamp(26px, 7vw, 36px);
  }
  .page-blog__description {
    font-size: clamp(14px, 4vw, 16px);
  }
  .page-blog__card {
    padding: 20px;
  }
  .page-blog__card-image {
    min-height: 180px;
  }
  .page-blog__faq-question {
    font-size: 15px;
  }
}