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

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

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

.page-blog__dark-bg {
  background-color: var(--page-blog-bg-dark);
  color: var(--page-blog-text-main);
}

.page-blog__card {
  background-color: var(--page-blog-card-bg);
  color: var(--page-blog-text-main);
  border: 1px solid var(--page-blog-border-color);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-blog__section-title {
  font-size: 2.5em;
  font-weight: bold;
  color: var(--page-blog-gold-color);
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
}

.page-blog__content-subtitle {
  font-size: 1.8em;
  color: var(--page-blog-text-main);
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-blog p {
  margin-bottom: 15px;
  color: var(--page-blog-text-secondary);
}

.page-blog a {
  color: var(--page-blog-glow-color);
  text-decoration: none;
}

.page-blog a:hover {
  text-decoration: underline;
}

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

.page-blog__video-container {
  width: 100%;
  max-width: 1920px; /* Max width for the video container */
  margin: 0 auto;
  box-sizing: border-box;
  z-index: 0; /* Ensure video is behind text if any */
}

.page-blog__video {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
}

.page-blog__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin-top: 40px;
}

.page-blog__hero-title {
  font-size: 3.2em;
  font-weight: 800;
  color: var(--page-blog-gold-color);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-blog__hero-description {
  font-size: 1.2em;
  color: var(--page-blog-text-secondary);
  margin-bottom: 30px;
}

/* Buttons */
.page-blog__btn-primary,
.page-blog__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 30px;
  font-weight: bold;
  text-transform: uppercase;
  transition: all 0.3s ease;
  text-decoration: none;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-blog__btn-primary {
  background: var(--page-blog-button-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-blog__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-blog__btn-secondary {
  background: transparent;
  color: var(--page-blog-glow-color);
  border: 2px solid var(--page-blog-glow-color);
  margin-left: 20px;
}

.page-blog__btn-secondary:hover {
  background: var(--page-blog-glow-color);
  color: var(--page-blog-bg-dark);
}

.page-blog__button-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

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

.page-blog__post-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-align: left;
  height: 100%;
}

.page-blog__post-image {
  width: 100%;
  height: 250px; /* Fixed height for consistent card appearance */
  object-fit: cover;
  border-radius: 8px 8px 0 0;
  display: block;
}

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

.page-blog__post-date {
  font-size: 0.9em;
  color: var(--page-blog-text-secondary);
  margin-bottom: 10px;
}

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

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

.page-blog__post-title a:hover {
  color: var(--page-blog-glow-color);
}

.page-blog__post-excerpt {
  font-size: 0.95em;
  color: var(--page-blog-text-secondary);
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-blog__read-more {
  color: var(--page-blog-glow-color);
  font-weight: bold;
  align-self: flex-start;
}

/* Categories Section */
.page-blog__categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.page-blog__category-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  font-size: 1.1em;
  font-weight: bold;
  color: var(--page-blog-text-main);
  text-align: center;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.page-blog__category-card:hover {
  background-color: var(--page-blog-deep-green);
  color: var(--page-blog-glow-color);
}

/* In-depth Guide & News Updates content area */
.page-blog__content-area {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 0;
}

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

.page-blog__faq-item {
  margin-bottom: 15px;
  cursor: pointer;
  overflow: hidden;
}

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

.page-blog__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker */
}

.page-blog__faq-question:hover {
  background-color: var(--page-blog-primary-color);
}

.page-blog__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: var(--page-blog-gold-color);
}

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

.page-blog__faq-answer {
  padding: 15px 20px;
  background-color: var(--page-blog-card-bg);
  border-top: 1px solid var(--page-blog-border-color);
  border-radius: 0 0 8px 8px;
  color: var(--page-blog-text-secondary);
  font-size: 1em;
}

/* Final CTA Section */
.page-blog__final-cta {
  text-align: center;
  padding: 80px 20px;
}

.page-blog__cta-text {
  font-size: 1.2em;
  color: var(--page-blog-text-secondary);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Responsive Design --- */

/* Tablet */
@media (max-width: 1024px) {
  .page-blog__section-title {
    font-size: 2em;
  }

  .page-blog__hero-title {
    font-size: 2.8em;
  }

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

/* Mobile */
@media (max-width: 768px) {
  .page-blog__section {
    padding: 40px 15px;
  }

  .page-blog__hero-section {
    padding: 10px 15px 40px 15px;
  }

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

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

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

  .page-blog__content-subtitle {
    font-size: 1.5em;
  }

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

  .page-blog__post-image {
    height: 200px;
  }

  .page-blog__button-group {
    flex-direction: column;
    gap: 15px;
  }

  .page-blog__btn-primary,
  .page-blog__btn-secondary {
    width: 100% !important;
    margin-left: 0;
    padding: 12px 20px;
    font-size: 0.9em;
  }

  .page-blog__category-card {
    min-height: 80px;
  }

  /* Mobile image responsiveness */
  .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-section,
  .page-blog__video-container,
  .page-blog__content-area,
  .page-blog__posts-grid,
  .page-blog__categories-grid,
  .page-blog__button-group,
  .page-blog__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  /* Mobile video responsiveness */
  .page-blog video,
  .page-blog__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .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: 0; /* Handled by parent section */
    padding-right: 0; /* Handled by parent section */
    overflow: hidden !important;
  }

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

  .page-blog__faq-question {
    font-size: 1.1em;
  }
  .page-blog__faq-answer {
    font-size: 0.9em;
  }
}