/* style/blog.css */

/* Custom Colors */
:root {
  --page-blog-card-bg: #11271B;
  --page-blog-bg: #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-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

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

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

.page-blog__section-title {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  color: var(--page-blog-text-main);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 10px;
}

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

.page-blog__section-title--dark {
  color: #333333; /* For light background sections */
}

.page-blog__description {
  font-size: 18px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px;
  color: var(--page-blog-text-secondary);
}

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

.page-blog__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  margin-bottom: 30px;
  border-radius: 12px;
  overflow: hidden;
  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(32px, 5vw, 52px);
  font-weight: 800;
  color: var(--page-blog-gold);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-blog__hero-content .page-blog__description {
  font-size: 20px;
  color: var(--page-blog-text-main);
  margin-bottom: 40px;
}

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

.page-blog__btn-primary,
.page-blog__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-blog__btn-primary {
  background: var(--page-blog-btn-gradient);
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-blog__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

.page-blog__btn-secondary {
  background: #ffffff;
  color: #11A84E;
  border: 2px solid #11A84E;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-blog__btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  background: #f0f0f0;
}

/* Recent Posts Section */
.page-blog__recent-posts {
  padding: 80px 0;
  background-color: var(--page-blog-bg);
}

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

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

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

.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: 25px;
}

.page-blog__post-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--page-blog-gold);
  line-height: 1.3;
}

.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-main);
  margin-bottom: 20px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.page-blog__read-more {
  display: flex;
  align-items: center;
  font-size: 16px;
  font-weight: 600;
  color: #2AD16F;
  transition: color 0.3s ease;
}

.page-blog__post-card:hover .page-blog__read-more {
  color: var(--page-blog-gold);
}

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

.page-blog__post-card:hover .page-blog__arrow {
  transform: translateX(5px);
}

.page-blog__all-posts-cta {
  text-align: center;
}

/* Categories Section */
.page-blog__categories-section {
  padding: 80px 0;
  background-color: #f5f5f5;
}

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

.page-blog__category-card {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: #333333;
  border: 1px solid #e0e0e0;
}

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

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

.page-blog__category-description {
  font-size: 16px;
  color: #555555;
}

/* Why Choose 2bong Section */
.page-blog__about-2bong {
  padding: 80px 0;
  background-color: var(--page-blog-deep-green);
}

.page-blog__about-content {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-blog__about-text {
  flex: 1;
  color: var(--page-blog-text-main);
}

.page-blog__about-text p {
  margin-bottom: 20px;
  font-size: 17px;
  line-height: 1.7;
}

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

.page-blog__about-text a:hover {
  color: var(--page-blog-gold);
}

.page-blog__about-image {
  flex: 1;
  text-align: center;
}

.page-blog__responsive-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  display: block;
}

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

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

.page-blog__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #333333;
}

.page-blog__faq-item summary {
  list-style: none; /* Hide default marker */
  cursor: pointer;
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
  font-weight: 600;
  color: #11A84E;
  transition: background-color 0.3s ease;
}

.page-blog__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

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

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

.page-blog__faq-toggle {
  font-size: 24px;
  font-weight: 700;
  color: #11A84E;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

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

.page-blog__faq-answer {
  padding: 0 25px 20px;
  font-size: 16px;
  color: #555555;
  line-height: 1.6;
}

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

.page-blog__faq-answer a {
  color: #11A84E;
  text-decoration: underline;
}

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

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

.page-blog__cta-section .page-blog__description {
  color: var(--page-blog-text-main);
  margin-bottom: 40px;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-blog__about-content {
    flex-direction: column;
  }

  .page-blog__about-image {
    margin-top: 30px;
  }
}

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

  .page-blog__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-blog__hero-section,
  .page-blog__recent-posts,
  .page-blog__categories-section,
  .page-blog__about-2bong,
  .page-blog__faq-section,
  .page-blog__cta-section {
    padding: 40px 0;
  }

  .page-blog__main-title {
    font-size: clamp(28px, 8vw, 42px);
  }

  .page-blog__hero-content .page-blog__description {
    font-size: 16px;
  }

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

  .page-blog__btn-primary,
  .page-blog__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 16px;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

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

  .page-blog__post-title {
    font-size: 20px;
  }

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

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

  /* Image responsive adaptations */
  .page-blog img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-blog__hero-section,
  .page-blog__recent-posts,
  .page-blog__categories-section,
  .page-blog__about-2bong,
  .page-blog__faq-section,
  .page-blog__cta-section,
  .page-blog__container,
  .page-blog__post-card,
  .page-blog__category-card,
  .page-blog__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-blog__hero-section { /* Small top padding for hero on mobile, body takes care of header offset */
    padding-top: 10px !important;
  }
}

@media (max-width: 480px) {
  .page-blog__main-title {
    font-size: clamp(24px, 10vw, 36px);
  }

  .page-blog__hero-content .page-blog__description {
    font-size: 15px;
  }

  .page-blog__post-title {
    font-size: 18px;
  }

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