/* style/blog.css */

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

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

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

.page-blog__section-spacing {
  padding: 80px 0;
}

.page-blog__section-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  color: var(--page-blog-gold);
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-blog__section-description {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--page-blog-text-secondary);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
}

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

.page-blog__hero-image {
  width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: cover;
  display: block;
  margin-bottom: 30px;
}

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

.page-blog__main-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  color: var(--page-blog-gold);
  margin-bottom: 15px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(87, 227, 141, 0.5);
}

.page-blog__hero-description {
  font-size: clamp(18px, 2.5vw, 24px);
  color: var(--page-blog-text-main);
  margin-bottom: 30px;
}

/* CTA Button Base */
.page-blog__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-blog__btn-primary {
  background: var(--page-blog-button-gradient);
  color: #ffffff; /* White text for primary button */
  border: none;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

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

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

.page-blog__btn-secondary:hover {
  background: rgba(242, 193, 78, 0.1);
  transform: translateY(-3px);
}

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

.page-blog__post-card {
  background-color: var(--page-blog-card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-blog__post-image {
  width: 100%;
  height: 225px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

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

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

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

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

.page-blog__post-meta {
  font-size: 14px;
  color: var(--page-blog-text-secondary);
  margin-bottom: 15px;
}

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

.page-blog__read-more-link {
  color: var(--page-blog-gold);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  align-self: flex-start;
  transition: color 0.3s ease;
}

.page-blog__read-more-link:hover {
  text-decoration: underline;
  color: var(--page-blog-glow);
}

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

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

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

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

.page-blog__category-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
}

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

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

.page-blog__category-description {
  font-size: 16px;
  color: var(--page-blog-text-secondary);
  padding: 0 20px;
}

/* Why Choose Section (Dark Background) */
.page-blog__dark-section {
  background-color: var(--page-blog-deep-green);
  color: var(--page-blog-text-main);
}

.page-blog__dark-section .page-blog__section-title {
  color: var(--page-blog-gold);
}

.page-blog__dark-section .page-blog__section-description {
  color: var(--page-blog-text-secondary);
}

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

.page-blog__feature-item {
  background-color: rgba(0, 0, 0, 0.2); /* Slightly transparent dark background */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-blog__feature-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--page-blog-gold);
  margin-bottom: 15px;
}

.page-blog__feature-text {
  font-size: 16px;
  color: var(--page-blog-text-secondary);
}

.page-blog__conclusion-text {
  font-size: 18px;
  color: var(--page-blog-text-main);
  text-align: center;
  margin-top: 50px;
  font-weight: 500;
}

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

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

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

.page-blog__faq-item summary:hover {
  background-color: rgba(17, 39, 27, 0.8);
}

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

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

.page-blog__faq-toggle {
  font-size: 24px;
  line-height: 1;
  margin-left: 15px;
  color: var(--page-blog-gold);
}

.page-blog__faq-answer {
  padding: 15px 25px 20px 25px;
  font-size: 16px;
  color: var(--page-blog-text-secondary);
  border-top: 1px solid var(--page-blog-divider);
}

/* CTA Section */
.page-blog__cta-content {
  text-align: center;
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-blog__hero-image {
    max-height: 500px;
  }
  .page-blog__section-spacing {
    padding: 60px 0;
  }
  .page-blog__posts-grid, .page-blog__category-grid, .page-blog__features-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-blog__hero-image {
    max-height: 400px;
  }
  .page-blog__main-title {
    font-size: clamp(28px, 6vw, 40px);
  }
  .page-blog__hero-description {
    font-size: clamp(16px, 3vw, 20px);
  }
  .page-blog__section-spacing {
    padding: 40px 0;
  }
  .page-blog__section-title {
    font-size: clamp(24px, 5vw, 36px);
  }
  .page-blog__section-description {
    font-size: clamp(14px, 2.5vw, 18px);
    margin-bottom: 30px;
  }
  
  /* Force responsive for images */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* All containers containing images, videos, buttons */
  .page-blog__section, 
  .page-blog__card, 
  .page-blog__container, 
  .page-blog__hero-section, 
  .page-blog__latest-posts, 
  .page-blog__categories, 
  .page-blog__why-choose, 
  .page-blog__faq-section, 
  .page-blog__cta-section, 
  .page-blog__post-card, 
  .page-blog__category-card, 
  .page-blog__feature-item, 
  .page-blog__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  /* Buttons responsive */
  .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;
    padding-right: 15px;
  }
  
  .page-blog__button-group {
    flex-direction: column !important;
    gap: 15px !important;
    padding: 0 15px; /* Ensure buttons have padding too */
  }

  .page-blog__post-title {
    font-size: 20px;
  }
  .page-blog__post-excerpt {
    font-size: 15px;
  }
  .page-blog__category-title {
    font-size: 22px;
  }
  .page-blog__feature-title {
    font-size: 22px;
  }
  .page-blog__faq-item summary {
    font-size: 16px;
    padding: 15px 20px;
  }
  .page-blog__faq-answer {
    font-size: 15px;
    padding: 10px 20px 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-blog__section-spacing {
    padding: 30px 0;
  }
  .page-blog__hero-image {
    max-height: 300px;
  }
  .page-blog__button-group {
    gap: 10px !important;
  }
  .page-blog__posts-grid {
    grid-template-columns: 1fr;
  }
  .page-blog__category-grid {
    grid-template-columns: 1fr;
  }
  .page-blog__features-grid {
    grid-template-columns: 1fr;
  }
}