/* style/blog.css */

/* Body background is handled by shared.css var(--background-color) which is #08160F (dark) */
/* Therefore, text color for main content should be light (#F2FFF6) */

.page-blog {
  color: var(--text-main-color); /* #F2FFF6 */
  background-color: var(--background-color); /* #08160F */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-blog__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  text-align: center;
  overflow: hidden;
}

.page-blog__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit height for aesthetic */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  min-height: 300px; /* Ensure minimum size */
}

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

.page-blog__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--text-main-color); /* #F2FFF6 */
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-blog__description {
  font-size: 1.15rem;
  color: var(--text-secondary-color); /* #A7D9B8 */
  margin-bottom: 30px;
}

.page-blog__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: var(--button-gradient);
  color: var(--text-main-color); /* #F2FFF6 */
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-blog__cta-button:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.page-blog__cta-button--secondary {
  background: transparent;
  border: 2px solid var(--border-color); /* #2E7A4E */
  color: var(--text-main-color); /* #F2FFF6 */
  margin-left: 20px;
}

.page-blog__cta-button--secondary:hover {
  background: rgba(46, 122, 78, 0.2); /* #2E7A4E with opacity */
}

.page-blog__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--gold-color); /* #F2C14E */
  text-align: center;
  margin-bottom: 40px;
  margin-top: 60px;
  font-weight: bold;
}

.page-blog__text-block {
  font-size: 1.05rem;
  color: var(--text-secondary-color); /* #A7D9B8 */
  margin-bottom: 20px;
  text-align: justify;
}

.page-blog__introduction-section,
.page-blog__articles-section,
.page-blog__guides-section,
.page-blog__promotions-section,
.page-blog__security-section,
.page-blog__faq-section,
.page-blog__cta-bottom-section {
  padding: 60px 0;
  border-bottom: 1px solid var(--divider-color); /* #1E3A2A */
}

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

.page-blog__article-card {
  background-color: var(--card-bg-color); /* #11271B */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 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 25px rgba(0, 0, 0, 0.4);
}

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

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

.page-blog__article-title {
  font-size: 1.4rem;
  color: var(--text-main-color); /* #F2FFF6 */
  margin-bottom: 10px;
  font-weight: bold;
}

.page-blog__article-title a {
  color: inherit;
  text-decoration: none;
}

.page-blog__article-title a:hover {
  color: var(--gold-color); /* #F2C14E */
}

.page-blog__article-meta {
  font-size: 0.9rem;
  color: var(--text-secondary-color); /* #A7D9B8 */
  margin-bottom: 15px;
}

.page-blog__article-excerpt {
  font-size: 1rem;
  color: var(--text-secondary-color); /* #A7D9B8 */
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-blog__read-more {
  color: var(--glow-color); /* #57E38D */
  text-decoration: none;
  font-weight: bold;
  align-self: flex-start;
}

.page-blog__read-more:hover {
  text-decoration: underline;
}

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

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

.page-blog__guide-card {
  background-color: var(--card-bg-color); /* #11271B */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

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

.page-blog__guide-title {
  font-size: 1.6rem;
  color: var(--gold-color); /* #F2C14E */
  margin-bottom: 15px;
}

.page-blog__guide-description {
  font-size: 1rem;
  color: var(--text-secondary-color); /* #A7D9B8 */
  margin-bottom: 25px;
}

.page-blog__guide-link {
  display: inline-block;
  color: var(--glow-color); /* #57E38D */
  text-decoration: none;
  font-weight: bold;
  border-bottom: 2px solid var(--glow-color);
  padding-bottom: 5px;
}

.page-blog__guide-link:hover {
  color: var(--text-main-color); /* #F2FFF6 */
  border-color: var(--text-main-color); /* #F2FFF6 */
}

.page-blog__promotions-content,
.page-blog__security-content {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-blog__promotions-content .page-blog__promotion-image,
.page-blog__security-content .page-blog__security-image {
  flex: 1;
  max-width: 50%;
  border-radius: 12px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

.page-blog__promotions-content .page-blog__promotion-text,
.page-blog__security-content .page-blog__security-text {
  flex: 1;
  max-width: 50%;
}

.page-blog__security-content {
  flex-direction: row-reverse; /* Image on right */
}

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

.page-blog__faq-item {
  background-color: var(--card-bg-color); /* #11271B */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

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

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

.page-blog__faq-item summary:hover {
  background-color: var(--deep-green-color); /* #0A4B2C */
}

.page-blog__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--gold-color); /* #F2C14E */
}

.page-blog__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  color: var(--text-secondary-color); /* #A7D9B8 */
}

.page-blog__cta-bottom-section {
  text-align: center;
  padding-bottom: 80px;
}

.page-blog__cta-buttons-wrapper {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* Responsive styles */
@media (max-width: 992px) {
  .page-blog__promotions-content,
  .page-blog__security-content {
    flex-direction: column;
    text-align: center;
  }

  .page-blog__promotions-content .page-blog__promotion-image,
  .page-blog__security-content .page-blog__security-image {
    max-width: 80%;
    margin-bottom: 30px;
  }

  .page-blog__promotions-content .page-blog__promotion-text,
  .page-blog__security-content .page-blog__security-text {
    max-width: 100%;
  }

  .page-blog__security-content {
    flex-direction: column; /* Revert to column for smaller screens */
  }
}

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

  .page-blog__hero-content {
    margin-top: 20px;
    padding: 0 15px;
  }

  .page-blog__main-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }

  .page-blog__description {
    font-size: 1rem;
  }

  .page-blog__cta-button {
    padding: 12px 20px;
    font-size: 0.95rem;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-blog__cta-button--secondary {
    margin-left: 0;
    margin-top: 15px;
  }

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

  .page-blog__section-title {
    font-size: clamp(1.8rem, 6vw, 2.2rem);
    margin-top: 40px;
    margin-bottom: 30px;
  }

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

  .page-blog__introduction-section,
  .page-blog__articles-section,
  .page-blog__guides-section,
  .page-blog__promotions-section,
  .page-blog__security-section,
  .page-blog__faq-section,
  .page-blog__cta-bottom-section {
    padding: 40px 0;
  }

  .page-blog__container {
    padding: 0 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-blog__hero-image {
    height: auto;
    max-height: 400px;
  }

  .page-blog__article-card {
    margin-bottom: 20px;
  }

  .page-blog__article-image {
    height: 180px;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-blog__article-title {
    font-size: 1.2rem;
  }

  .page-blog__guide-card {
    padding: 25px;
  }

  .page-blog__guide-title {
    font-size: 1.4rem;
  }

  .page-blog__promotions-content .page-blog__promotion-image,
  .page-blog__security-content .page-blog__security-image {
    max-width: 100%;
  }

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

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

@media (max-width: 480px) {
  .page-blog__hero-content {
    padding: 0 10px;
  }

  .page-blog__main-title {
    font-size: clamp(1.8rem, 9vw, 2.2rem);
  }

  .page-blog__description {
    font-size: 0.9rem;
  }

  .page-blog__section-title {
    font-size: clamp(1.6rem, 7vw, 2rem);
  }
}