/* style/blog.css */

/* Base styles */
.page-blog {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Light body background #f5f5f5, so dark text */
  background-color: #f5f5f5;
}

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

.page-blog__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: #11A84E; /* Brand primary color */
}

.page-blog__section-subtitle {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  color: #A7D9B8; /* Text Secondary */
}

.page-blog__dark-section {
  background-color: #08160F; /* Background custom color */
  color: #F2FFF6; /* Text Main custom color */
  padding: 60px 0;
}

.page-blog__dark-section .page-blog__section-title,
.page-blog__dark-section .page-blog__section-subtitle {
  color: #F2FFF6;
}

.page-blog__light-bg {
  background-color: #f5f5f5; /* Body background */
  color: #333333;
  padding: 60px 0;
}

/* Hero Section */
.page-blog__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
}

.page-blog__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.page-blog__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken image for text readability */
}

.page-blog__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 40px;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text */
  border-radius: 10px;
}

.page-blog__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive H1 font size */
  color: #F2C14E; /* Gold custom color */
  margin-bottom: 15px;
  line-height: 1.2;
  font-weight: 700;
}

.page-blog__description {
  font-size: 1.15em;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-blog__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  text-align: center;
  max-width: 100%;
}

.page-blog__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button custom color */
  color: #ffffff;
  border: none;
}

.page-blog__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 5px 15px rgba(34, 199, 104, 0.4);
}

.page-blog__btn-secondary {
  background-color: transparent;
  color: #F2FFF6; /* Text Main */
  border: 2px solid #2E7A4E; /* Border custom color */
}

.page-blog__btn-secondary:hover {
  background-color: rgba(46, 122, 78, 0.2); /* Semi-transparent hover */
  color: #F2C14E; /* Gold custom color */
}

/* Latest Posts Section */
.page-blog__latest-posts {
  padding: 60px 0;
}

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

.page-blog__post-card {
  background-color: #11271B; /* Card BG custom color */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #F2FFF6; /* Text Main */
}

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

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

.page-blog__post-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

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

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

.page-blog__post-excerpt {
  font-size: 0.95em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 15px;
}

.page-blog__post-date {
  font-size: 0.85em;
  color: #57E38D; /* Glow custom color */
}

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

/* About go666 Section */
.page-blog__about-go666 {
  padding: 60px 0;
}

.page-blog__content-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.page-blog__about-image {
  flex: 1 1 400px;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-blog__text-content {
  flex: 2 1 500px;
}

.page-blog__text-content p {
  margin-bottom: 15px;
  font-size: 1.05em;
  color: #F2FFF6; /* Text Main */
}

/* Features Section */
.page-blog__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  text-align: center;
}

.page-blog__feature-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333;
}

.page-blog__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-blog__feature-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-blog__feature-title {
  font-size: 1.3em;
  font-weight: bold;
  margin-bottom: 10px;
  color: #11A84E; /* Brand primary color */
}

.page-blog__feature-item p {
  font-size: 0.95em;
  color: #555555;
}

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

.page-blog__promo-card {
  background-color: #11271B; /* Card BG custom color */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding-bottom: 20px;
  color: #F2FFF6; /* Text Main */
}

.page-blog__promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 20px;
}

.page-blog__promo-title {
  font-size: 1.3em;
  font-weight: bold;
  margin-bottom: 10px;
  color: #F2C14E; /* Gold custom color */
  padding: 0 20px;
}

.page-blog__promo-card p {
  font-size: 0.95em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 20px;
  padding: 0 20px;
}

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

.page-blog__faq-item {
  background-color: #ffffff;
  border: 1px solid #2E7A4E; /* Border custom color */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #333333;
}

.page-blog__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  color: #11A84E; /* Brand primary color */
  background-color: #F2FFF6; /* Text Main for summary background */
}

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

.page-blog__faq-qtext {
  flex-grow: 1;
}

.page-blog__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #11A84E;
}

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

.page-blog__faq-answer {
  padding: 20px;
  background-color: #f9f9f9;
  border-top: 1px solid #eee;
  font-size: 1em;
  color: #555555;
}

/* Call to Action Section */
.page-blog__cta-section {
  text-align: center;
  padding: 80px 20px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-blog__hero-content {
    padding: 30px;
  }
  .page-blog__main-title {
    font-size: clamp(2em, 4.5vw, 3em);
  }
  .page-blog__section-title {
    font-size: 2em;
  }
  .page-blog__content-wrapper {
    flex-direction: column;
  }
  .page-blog__about-image {
    width: 100%;
    max-width: 600px;
  }
}

@media (max-width: 768px) {
  .page-blog__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* General image responsiveness */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  /* Specific image containers */
  .page-blog__hero-image-wrapper,
  .page-blog__post-image,
  .page-blog__about-image,
  .page-blog__feature-icon,
  .page-blog__promo-image {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* General button responsiveness */
  .page-blog__cta-button,
  .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-left: 15px !important;
    padding-right: 15px !important;
  }
  
  /* Button containers for mobile */
  .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 !important;
    padding-right: 15px !important;
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 10px !important;
    overflow: hidden !important;
  }

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

  .page-blog__main-title {
    font-size: 2em;
  }

  .page-blog__description {
    font-size: 1em;
  }

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

  .page-blog__section-subtitle {
    font-size: 0.9em;
  }

  .page-blog__posts-grid,
  .page-blog__features-grid,
  .page-blog__promotions-grid {
    grid-template-columns: 1fr;
  }

  .page-blog__about-image {
    margin-bottom: 20px;
  }

  .page-blog__hero-section,
  .page-blog__latest-posts,
  .page-blog__about-go666,
  .page-blog__features,
  .page-blog__promotions,
  .page-blog__faq-section,
  .page-blog__cta-section {
    padding: 30px 0;
  }

  .page-blog__hero-section {
    padding-top: 10px !important; /* Ensure small top padding */
  }

  .page-blog__faq-item summary {
    font-size: 1em;
    padding: 15px;
  }

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