/* style/blog.css */
:root {
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --card-bg: #11271B;
  --background-dark: #08160F;
  --text-main: #F2FFF6;
  --text-secondary: #A7D9B8;
  --border-color: #2E7A4E;
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green: #0A4B2C;
}

.page-blog {
  font-family: 'Arial', sans-serif;
  color: var(--text-main); /* Default text color for dark background */
  background-color: var(--background-dark); /* Assume body background is dark */
}

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

.page-blog__section-title {
  font-size: clamp(2em, 4vw, 2.8em);
  color: var(--text-main);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page-blog__description {
  font-size: 1.1em;
  line-height: 1.6;
  color: var(--text-secondary);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px auto;
}

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

.page-blog__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-blog__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-blog__btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

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

/* Hero Section */
.page-blog__hero-section {
  position: relative;
  padding: 80px 0 60px;
  text-align: center;
  overflow: hidden;
  padding-top: 10px; /* Small top padding */
}

.page-blog__hero-image-container {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 40px;
}

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

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

.page-blog__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em);
  color: var(--gold-color);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-blog__hero-section .page-blog__description {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: var(--text-main);
}

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

/* Latest Posts Section */
.page-blog__latest-posts {
  padding: 80px 0;
  background-color: #f5f5f5;
  color: #333333;
}

.page-blog__latest-posts .page-blog__section-title {
  color: #333333;
}

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

.page-blog__post-card {
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: #333333;
}

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

.page-blog__post-thumbnail-wrapper {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

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

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

.page-blog__post-title {
  font-size: 1.5em;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-blog__post-title a {
  color: var(--deep-green);
  text-decoration: none;
}

.page-blog__post-title a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-blog__post-meta {
  font-size: 0.9em;
  color: #666666;
  margin-bottom: 15px;
}

.page-blog__post-excerpt {
  font-size: 1em;
  line-height: 1.6;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-blog__read-more {
  display: inline-flex;
  align-items: center;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-blog__read-more:hover {
  color: var(--deep-green);
}

.page-blog__arrow {
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.page-blog__read-more:hover .page-blog__arrow {
  transform: translateX(5px);
}

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

/* Featured Article & Guide Sections */
.page-blog__featured-article,
.page-blog__guide-section,
.page-blog__promotions-section {
  padding: 80px 0;
}

.page-blog__featured-article {
  background-color: var(--background-dark);
  color: var(--text-main);
}

.page-blog__guide-section {
  background-color: #f5f5f5;
  color: #333333;
}

.page-blog__promotions-section {
  background-color: var(--background-dark);
  color: var(--text-main);
}

.page-blog__featured-article .page-blog__section-title,
.page-blog__promotions-section .page-blog__section-title {
  color: var(--text-main);
}

.page-blog__guide-section .page-blog__section-title {
  color: #333333;
}

.page-blog__article-content {
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.7;
  font-size: 1.05em;
}

.page-blog__article-content p {
  margin-bottom: 1.5em;
}

.page-blog__article-content h3 {
  font-size: 1.8em;
  font-weight: 700;
  margin-top: 2.5em;
  margin-bottom: 1em;
  line-height: 1.3;
}

.page-blog__featured-article .page-blog__article-content h3 {
  color: var(--gold-color);
}

.page-blog__guide-section .page-blog__article-content h3 {
  color: var(--deep-green);
}

.page-blog__promotions-section .page-blog__article-content h3 {
  color: var(--gold-color);
}

.page-blog__article-content ol {
  margin-left: 20px;
  margin-bottom: 1.5em;
}

.page-blog__article-content ol li {
  margin-bottom: 0.5em;
}

.page-blog__article-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  margin-bottom: 40px;
  min-width: 200px; /* Ensure min size */
  min-height: 200px; /* Ensure min size */
}

.page-blog__read-full-article,
.page-blog__view-all-promos {
  margin-top: 40px;
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

/* FAQ Section */
.page-blog__faq-section {
  padding: 80px 0;
  background-color: #f5f5f5;
  color: #333333;
}

.page-blog__faq-section .page-blog__section-title {
  color: #333333;
}

.page-blog__faq-item {
  background-color: #ffffff;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  color: #333333;
}

.page-blog__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1em;
  color: var(--deep-green);
  transition: background-color 0.3s ease;
}

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

.page-blog__faq-item summary:hover {
  background-color: #e8f5e9;
}

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

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

.page-blog__faq-answer {
  padding: 15px 25px 25px;
  font-size: 1em;
  line-height: 1.6;
  color: #555555;
  border-top: 1px solid #eee;
}

/* Bottom CTA Section */
.page-blog__cta-bottom-section {
  padding: 80px 0;
  text-align: center;
  background-color: var(--deep-green);
}

.page-blog__cta-bottom-section .page-blog__section-title {
  color: var(--text-main);
}

.page-blog__cta-bottom-section .page-blog__description {
  margin-bottom: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-blog__hero-image-container {
    max-height: 400px;
  }

  .page-blog__main-title {
    font-size: clamp(2em, 4.5vw, 3em);
  }

  .page-blog__post-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

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

  .page-blog__article-content h3 {
    font-size: 1.6em;
  }
}

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

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

  .page-blog__hero-image-container {
    max-height: 300px;
    margin-bottom: 30px;
  }

  .page-blog__hero-image,
  .page-blog__post-thumbnail,
  .page-blog__article-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-blog__container,
  .page-blog__section,
  .page-blog__card,
  .page-blog__hero-section,
  .page-blog__latest-posts,
  .page-blog__featured-article,
  .page-blog__guide-section,
  .page-blog__promotions-section,
  .page-blog__faq-section,
  .page-blog__cta-bottom-section,
  .page-blog__article-content,
  .page-blog__post-card,
  .page-blog__post-thumbnail-wrapper,
  .page-blog__post-content,
  .page-blog__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }

  .page-blog__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-blog__btn-primary,
  .page-blog__btn-secondary {
    width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-blog__section-title {
    font-size: clamp(1.5em, 5vw, 2.2em);
    margin-bottom: 30px;
  }

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

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

  .page-blog__article-content h3 {
    font-size: 1.4em;
  }

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

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

  .page-blog__hero-section {
    padding-top: 10px !important;
  }
}

@media (max-width: 480px) {
  .page-blog__hero-image-container {
    max-height: 200px;
  }

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

  .page-blog__post-grid {
    grid-template-columns: 1fr;
  }

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

  .page-blog__article-content h3 {
    font-size: 1.2em;
  }
}