/* style/blog.css */

/* Base styles for page-blog, assuming body background is dark from shared.css */
.page-blog {
  font-family: 'Arial', sans-serif;
  color: #F2FFF6; /* Text Main */
  background-color: #08160F; /* Background */
  line-height: 1.6;
  padding-bottom: 50px; /* Ensure space above footer */
}

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

.page-blog__section-title {
  font-size: 2.5em;
  color: #57E38D; /* Glow */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
}

.page-blog__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, header offset handled by body */
  background-color: #08160F;
}

.page-blog__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit hero image height */
  overflow: hidden;
  margin-bottom: 30px;
}

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

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

.page-blog__main-title {
  font-size: clamp(2em, 5vw, 3.5em); /* Responsive font size for H1 */
  color: #F2C14E; /* Gold */
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.1;
  text-shadow: 0 0 10px rgba(87, 227, 141, 0.5);
}

.page-blog__description {
  font-size: 1.1em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
}

.page-blog__cta-button {
  display: inline-block;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(34, 199, 104, 0.4);
}

.page-blog__cta-button:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 6px 20px rgba(34, 199, 104, 0.6);
}

.page-blog__introduction-section,
.page-blog__categories-section,
.page-blog__featured-articles-section,
.page-blog__tips-strategies-section,
.page-blog__news-trends-section,
.page-blog__promotions-cta-section,
.page-blog__faq-section,
.page-blog__conclusion-section {
  padding: 60px 0;
  border-bottom: 1px solid #1E3A2A; /* Divider */
}

.page-blog__introduction-section p,
.page-blog__tips-strategies-section p,
.page-blog__news-trends-section p,
.page-blog__promotions-cta-section p,
.page-blog__conclusion-section p {
  font-size: 1.05em;
  line-height: 1.7;
  margin-bottom: 20px;
  color: #F2FFF6;
}

.page-blog__category-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 40px;
  border-radius: 10px;
  object-fit: cover;
}

.page-blog__category-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-blog__category-item {
  background-color: #11271B; /* Card B G */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-blog__category-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.page-blog__category-item h3 {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #F2C14E; /* Gold */
}

.page-blog__category-item h3 a {
  color: #F2C14E;
  text-decoration: none;
}

.page-blog__category-item h3 a:hover {
  text-decoration: underline;
}

.page-blog__category-item p {
  font-size: 0.95em;
  color: #A7D9B8;
  margin-bottom: 0;
}

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

.page-blog__article-card {
  background-color: #11271B; /* Card B G */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-blog__article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

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

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

.page-blog__card-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: #F2FFF6;
}

.page-blog__card-title a {
  color: #F2FFF6;
  text-decoration: none;
}

.page-blog__card-title a:hover {
  text-decoration: underline;
  color: #57E38D;
}

.page-blog__card-meta {
  font-size: 0.85em;
  color: #A7D9B8;
  margin-bottom: 15px;
}

.page-blog__card-excerpt {
  font-size: 0.95em;
  color: #A7D9B8;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-blog__read-more-button {
  display: inline-block;
  background: #2E7A4E;
  color: #F2FFF6;
  padding: 10px 15px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 0.9em;
  font-weight: bold;
  transition: background-color 0.3s ease;
  align-self: flex-start;
}

.page-blog__read-more-button:hover {
  background-color: #13994A;
}

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

.page-blog__view-all-button {
  @extend .page-blog__cta-button;
  padding: 12px 25px;
  font-size: 1em;
}

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

.page-blog__tip-card {
  background-color: #11271B; /* Card B G */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-blog__tip-card h3 {
  font-size: 1.4em;
  color: #57E38D; /* Glow */
  margin-bottom: 15px;
}

.page-blog__tip-card p {
  font-size: 0.95em;
  color: #A7D9B8;
  margin-bottom: 0;
}

.page-blog__news-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-blog__news-item {
  background-color: #11271B; /* Card B G */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.page-blog__news-item:hover {
  transform: translateX(5px);
}

.page-blog__news-title {
  font-size: 1.3em;
  margin-bottom: 10px;
}

.page-blog__news-title a {
  color: #F2FFF6;
  text-decoration: none;
}

.page-blog__news-title a:hover {
  text-decoration: underline;
  color: #57E38D;
}

.page-blog__news-date {
  font-size: 0.85em;
  color: #A7D9B8;
  margin-bottom: 10px;
}

.page-blog__news-excerpt {
  font-size: 0.95em;
  color: #A7D9B8;
}

.page-blog__promotions-cta-section {
  text-align: center;
}

.page-blog__promotions-cta-section p {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog__faq-list {
  margin-top: 40px;
}

.page-blog__faq-item {
  background-color: #11271B; /* Card B G */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.page-blog__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.15em;
  font-weight: bold;
  color: #F2FFF6;
  cursor: pointer;
  list-style: none; /* Remove default marker */
}

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

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

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

.page-blog__faq-item[open] .page-blog__faq-toggle {
  content: '−';
}

.page-blog__faq-answer {
  padding: 0 20px 20px;
  font-size: 1em;
  color: #A7D9B8;
  line-height: 1.7;
}

.page-blog__conclusion-section {
  text-align: center;
  border-bottom: none;
}

.page-blog__conclusion-section p {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog__cta-button--large {
  padding: 18px 35px;
  font-size: 1.2em;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-blog__section-title {
    font-size: 2em;
  }
  .page-blog__main-title {
    font-size: clamp(1.8em, 7vw, 3em);
  }
  .page-blog__hero-image-wrapper {
    max-height: 400px;
  }
}

@media (max-width: 768px) {
  .page-blog {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-blog__container {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-blog__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-blog__main-title {
    font-size: clamp(1.5em, 8vw, 2.5em);
  }
  .page-blog__description {
    font-size: 1em;
  }
  .page-blog__cta-button {
    padding: 12px 20px;
    font-size: 1em;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-blog__cta-button--large {
    padding: 15px 25px;
    font-size: 1.1em;
  }
  .page-blog__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }
  .page-blog__hero-image-wrapper {
    max-height: 300px;
    margin-bottom: 20px;
  }
  .page-blog__category-list,
  .page-blog__article-grid,
  .page-blog__tips-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-blog__introduction-section,
  .page-blog__categories-section,
  .page-blog__featured-articles-section,
  .page-blog__tips-strategies-section,
  .page-blog__news-trends-section,
  .page-blog__promotions-cta-section,
  .page-blog__faq-section,
  .page-blog__conclusion-section {
    padding: 40px 0;
  }
  .page-blog__article-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-blog__card-image {
    height: 180px;
  }
  .page-blog__card-title {
    font-size: 1.2em;
  }
  .page-blog__read-more-button {
    width: 100%;
    text-align: center;
  }
  .page-blog__view-all-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-blog__news-item {
    padding: 15px;
  }
  .page-blog__news-title {
    font-size: 1.1em;
  }
  .page-blog__faq-item summary {
    padding: 15px;
    font-size: 1.05em;
  }
  .page-blog__faq-answer {
    padding: 0 15px 15px;
  }

  /* Image responsive rules for mobile */
  .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__introduction-section,
  .page-blog__categories-section,
  .page-blog__featured-articles-section,
  .page-blog__tips-strategies-section,
  .page-blog__news-trends-section,
  .page-blog__promotions-cta-section,
  .page-blog__faq-section,
  .page-blog__conclusion-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no horizontal scroll */
  }
  .page-blog__category-item,
  .page-blog__tip-card,
  .page-blog__news-item,
  .page-blog__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 480px) {
  .page-blog__section-title {
    font-size: 1.5em;
  }
  .page-blog__main-title {
    font-size: clamp(1.3em, 9vw, 2em);
  }
  .page-blog__hero-image-wrapper {
    max-height: 200px;
  }
}