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

/* Base styles for page-blog */
.page-blog {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--op88-text-main); /* Default text color for dark background */
  background-color: var(--op88-bg-dark);
}

.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;
  color: var(--op88-text-main);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-blog__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--op88-primary-color);
  border-radius: 2px;
}

.page-blog__section-title--light {
  color: var(--op88-text-main);
}

.page-blog__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: var(--op88-text-secondary);
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog__text-block--light {
  color: var(--op88-text-secondary);
}

/* Hero Section */
.page-blog__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: var(--op88-deep-green);
  overflow: hidden;
}

.page-blog__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  margin-bottom: 30px;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

.page-blog__hero-content {
  text-align: center;
  max-width: 900px;
  z-index: 1;
}

.page-blog__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive H1 font size */
  font-weight: 700;
  color: var(--op88-gold);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.page-blog__hero-description {
  font-size: 1.3em;
  color: var(--op88-text-main);
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-blog__btn-primary,
.page-blog__btn-secondary,
.page-blog__read-more-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;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-blog__btn-primary {
  background: var(--op88-btn-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(34, 199, 104, 0.4);
}

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

.page-blog__btn-secondary {
  background: var(--op88-card-bg);
  color: var(--op88-primary-color);
  border: 2px solid var(--op88-primary-color);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-blog__btn-secondary:hover {
  background: var(--op88-primary-color);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Introduction Section */
.page-blog__introduction-section {
  padding: 80px 0;
  background-color: var(--op88-bg-dark);
}

/* Categories Section */
.page-blog__categories-section {
  padding: 80px 0;
  background-color: var(--op88-deep-green);
}

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

.page-blog__category-card {
  background-color: var(--op88-card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  padding-bottom: 20px;
  transition: transform 0.3s ease;
}

.page-blog__category-card:hover {
  transform: translateY(-5px);
}

.page-blog__category-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
}

.page-blog__category-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-blog__category-title a {
  color: var(--op88-gold);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__category-title a:hover {
  color: var(--op88-primary-color);
}

.page-blog__category-description {
  font-size: 0.95em;
  color: var(--op88-text-secondary);
  padding: 0 15px;
}

/* Why Read Section */
.page-blog__why-read-section {
  padding: 80px 0;
  background-color: var(--op88-bg-dark);
}

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

.page-blog__feature-item {
  background-color: var(--op88-card-bg);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.page-blog__feature-title {
  font-size: 1.4em;
  font-weight: bold;
  color: var(--op88-primary-color);
  margin-bottom: 15px;
}

.page-blog__feature-description {
  font-size: 1em;
  color: var(--op88-text-secondary);
}

/* Featured Articles Section */
.page-blog__featured-articles-section {
  padding: 80px 0;
  background-color: var(--op88-deep-green);
}

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

.page-blog__article-card {
  background-color: var(--op88-card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.page-blog__article-card:hover {
  transform: translateY(-5px);
}

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

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

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

.page-blog__article-title a {
  color: var(--op88-gold);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__article-title a:hover {
  color: var(--op88-primary-color);
}

.page-blog__article-meta {
  font-size: 0.9em;
  color: var(--op88-text-secondary);
  margin-bottom: 15px;
}

.page-blog__article-excerpt {
  font-size: 1em;
  color: var(--op88-text-main);
  margin-bottom: 20px;
}

.page-blog__read-more-btn {
  background: var(--op88-primary-color);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 0.9em;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.page-blog__read-more-btn:hover {
  background-color: var(--op88-secondary-color);
}

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

/* FAQ Section */
.page-blog__faq-section {
  padding: 80px 0;
  background-color: var(--op88-bg-dark);
}

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

.page-blog__faq-item {
  background-color: var(--op88-card-bg);
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--op88-text-main);
  cursor: pointer;
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

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

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

.page-blog__faq-question:hover {
  background-color: var(--op88-divider);
}

.page-blog__faq-qtext {
  flex-grow: 1;
  color: var(--op88-primary-color);
}

.page-blog__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: var(--op88-gold);
  margin-left: 15px;
}

.page-blog__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: var(--op88-text-secondary);
  line-height: 1.8;
}

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

.page-blog__faq-answer a {
  color: var(--op88-gold);
  text-decoration: underline;
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-blog__section-title {
    font-size: 2em;
  }
  .page-blog__main-title {
    font-size: clamp(1.8em, 5vw, 3em);
  }
  .page-blog__hero-description {
    font-size: 1.1em;
  }
  .page-blog__categories-grid,
  .page-blog__features-grid,
  .page-blog__articles-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

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

  .page-blog__container {
    padding: 0 15px !important;
  }

  .page-blog__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* body handles --header-offset, this is for visual padding */
  }

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

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

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

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

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

  .page-blog__text-block {
    font-size: 0.95em;
  }

  .page-blog__category-image,
  .page-blog__article-image {
    height: 180px;
  }

  /* Ensure all images are responsive */
  .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,
  .page-blog__hero-image-wrapper,
  .page-blog__categories-grid,
  .page-blog__articles-grid,
  .page-blog__features-grid,
  .page-blog__category-card,
  .page-blog__article-card,
  .page-blog__feature-item,
  .page-blog__faq-item,
  .page-blog__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Ensure no overflow */
  }

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

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

@media (max-width: 480px) {
  .page-blog__section-title {
    font-size: 1.5em;
  }
  .page-blog__main-title {
    font-size: clamp(1.2em, 7vw, 2em);
  }
  .page-blog__hero-description {
    font-size: 0.9em;
  }
  .page-blog__cta-buttons {
    gap: 10px;
  }
  .page-blog__btn-primary,
  .page-blog__btn-secondary {
    padding: 12px 20px;
    font-size: 1em;
  }
}