/* style/blog.css */

/* Custom Colors */
:root {
  --fb777-primary-color: #F2C14E;
  --fb777-secondary-color: #FFD36B;
  --fb777-button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  --fb777-card-bg: #111111;
  --fb777-background: #0A0A0A;
  --fb777-text-main: #FFF6D6;
  --fb777-border: #3A2A12;
  --fb777-glow: #FFD36B;
}

.page-blog {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--fb777-text-main); /* Default text color for the page */
  background-color: var(--fb777-background); /* Ensure consistency with body background */
}

.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: var(--fb777-primary-color);
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-blog__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  color: var(--fb777-text-main);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog__btn-primary,
.page-blog__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
  cursor: pointer;
  box-sizing: border-box;
}

.page-blog__btn-primary {
  background: var(--fb777-button-gradient);
  color: #ffffff; /* White text for primary button */
  border: none;
}

.page-blog__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 211, 107, 0.4);
}

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

.page-blog__btn-secondary:hover {
  background: var(--fb777-secondary-color);
  color: var(--fb777-background);
  box-shadow: 0 5px 15px rgba(255, 211, 107, 0.4);
}

.page-blog__cta-container {
  text-align: center;
  margin-top: 40px;
  margin-bottom: 40px;
}

/* Hero Section */
.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: 40px;
}

.page-blog__hero-image-container {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
  position: relative;
  margin-bottom: 30px;
}

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

.page-blog__hero-content {
  max-width: 900px;
  padding: 40px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  margin-top: -100px; /* Overlap slightly with image for visual flow */
  position: relative;
  z-index: 1;
}

.page-blog__main-title {
  font-size: clamp(2em, 4vw, 3.5em);
  color: var(--fb777-primary-color);
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: 0.05em;
}

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

/* Latest Articles Section */
.page-blog__latest-articles-section {
  padding: 60px 0;
  background-color: var(--fb777-background);
}

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

.page-blog__article-card {
  background-color: var(--fb777-card-bg);
  border-radius: 10px;
  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 6px 20px rgba(255, 211, 107, 0.3);
}

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

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

.page-blog__article-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  line-height: 1.3;
  flex-grow: 1;
}

.page-blog__article-title a {
  color: var(--fb777-primary-color);
  text-decoration: none;
}

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

.page-blog__article-meta {
  font-size: 0.9em;
  color: #aaa;
  margin-bottom: 15px;
}

.page-blog__article-excerpt {
  font-size: 1em;
  color: var(--fb777-text-main);
  margin-bottom: 20px;
}

.page-blog__read-more-link {
  display: inline-block;
  color: var(--fb777-secondary-color);
  text-decoration: none;
  font-weight: bold;
  align-self: flex-start;
}

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

/* Categories Section */
.page-blog__categories-section {
  padding: 60px 0;
  background-color: var(--fb777-dark-section-bg, #1A1A1A);
}

.page-blog__category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
}

.page-blog__category-item {
  background-color: var(--fb777-card-bg);
  border: 1px solid var(--fb777-border);
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: var(--fb777-text-main);
  transition: all 0.3s ease;
}

.page-blog__category-item:hover {
  background-color: #1A1A1A;
  border-color: var(--fb777-secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 211, 107, 0.2);
}

.page-blog__category-icon {
  width: 30px;
  height: 30px;
  margin-bottom: 10px;
  filter: drop-shadow(0 0 5px var(--fb777-secondary-color)); /* Glow effect for icons */
}

.page-blog__category-item span {
  font-weight: bold;
  font-size: 1.1em;
}

/* Guides & Tips Section */
.page-blog__guides-tips-section {
  padding: 60px 0;
  background-color: var(--fb777-background);
}

.page-blog__tips-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-blog__tips-item {
  background-color: var(--fb777-card-bg);
  border: 1px solid var(--fb777-border);
  margin-bottom: 15px;
  padding: 20px;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-blog__tips-item:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 10px rgba(255, 211, 107, 0.2);
}

.page-blog__tips-item a {
  color: var(--fb777-text-main);
  text-decoration: none;
  font-size: 1.2em;
  display: block;
}

.page-blog__tips-item a:hover {
  color: var(--fb777-secondary-color);
  text-decoration: underline;
}

/* Promotions Section */
.page-blog__promotions-section {
  padding: 60px 0;
  background-color: var(--fb777-dark-section-bg, #1A1A1A);
}

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

.page-blog__promo-card {
  background-color: var(--fb777-card-bg);
  border-radius: 10px;
  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__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(255, 211, 107, 0.3);
}

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

.page-blog__promo-title {
  font-size: 1.4em;
  color: var(--fb777-primary-color);
  padding: 15px 20px 5px;
  line-height: 1.3;
}

.page-blog__promo-description {
  font-size: 1em;
  color: var(--fb777-text-main);
  padding: 0 20px 15px;
  flex-grow: 1;
}

/* Community Section */
.page-blog__community-section {
  padding: 60px 0;
  background-color: var(--fb777-background);
  text-align: center;
}

.page-blog__community-note {
  margin-top: 20px;
  font-size: 1em;
  color: var(--fb777-text-main);
}

.page-blog__community-note a {
  color: var(--fb777-secondary-color);
  text-decoration: none;
  font-weight: bold;
}

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

/* FAQ Section */
.page-blog__faq-section {
  padding: 60px 0;
  background-color: var(--fb777-dark-section-bg, #1A1A1A);
}

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

.page-blog__faq-item {
  background-color: var(--fb777-card-bg);
  border: 1px solid var(--fb777-border);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
}

.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: #1A1A1A; /* Slightly different background for question */
  color: var(--fb777-primary-color);
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
}

.page-blog__faq-question:hover {
  background-color: #222222;
}

.page-blog__faq-question h3 {
  margin: 0;
  color: inherit;
  font-size: 1em; /* Adjust H3 inside FAQ question to be readable */
}

.page-blog__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  width: 20px;
  text-align: center;
  color: var(--fb777-secondary-color);
  transition: transform 0.3s ease;
}

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

.page-blog__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--fb777-text-main);
}

.page-blog__faq-item.active .page-blog__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to accommodate content */
  padding: 15px 20px;
}

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

.page-blog__faq-answer .page-blog__btn-primary {
  margin-top: 10px;
  margin-bottom: 10px;
}

/* Common Responsive Styles */
.page-blog img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-blog__hero-image-container,
.page-blog__articles-grid,
.page-blog__category-grid,
.page-blog__promo-grid,
.page-blog__faq-list,
.page-blog__cta-container,
.page-blog__btn-primary,
.page-blog__btn-secondary {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

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

  .page-blog__hero-section {
    padding-bottom: 20px;
  }

  .page-blog__hero-content {
    padding: 25px;
    margin-top: -50px;
    border-radius: 8px;
  }

  .page-blog__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }

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

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

  .page-blog__section-description {
    font-size: 0.95em;
  }

  .page-blog__articles-grid,
  .page-blog__promo-grid {
    grid-template-columns: 1fr;
  }

  .page-blog__article-card,
  .page-blog__promo-card {
    margin-left: 15px;
    margin-right: 15px;
  }

  .page-blog__article-title,
  .page-blog__promo-title {
    font-size: 1.2em;
  }

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

  .page-blog__category-item {
    padding: 15px;
  }

  .page-blog__tips-item {
    margin-left: 15px;
    margin-right: 15px;
    padding: 15px;
  }

  .page-blog__tips-item a {
    font-size: 1em;
  }

  .page-blog__faq-item {
    margin-left: 15px;
    margin-right: 15px;
  }

  .page-blog__faq-question {
    padding: 15px;
  }

  .page-blog__faq-question h3 {
    font-size: 0.95em;
  }

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

  .page-blog__faq-item.active .page-blog__faq-answer {
    padding: 15px 15px;
  }

  .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__cta-container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-blog__cta-buttons,
  .page-blog__button-group,
  .page-blog__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-blog__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-blog__article-image,
  .page-blog__promo-image,
  .page-blog__category-icon {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-blog__section,
  .page-blog__card,
  .page-blog__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Color Contrast Adjustments (Dark Background) */
.page-blog__dark-bg {
  background-color: var(--fb777-card-bg);
  color: var(--fb777-text-main);
}

.page-blog__light-bg {
  background-color: var(--fb777-background);
  color: var(--fb777-text-main);
}

.page-blog__dark-section {
  background: #1A1A1A; /* Slightly different dark for sections */
  color: var(--fb777-text-main);
}

.page-blog__faq-question {
  background-color: #1A1A1A;
  color: var(--fb777-primary-color);
}

.page-blog__faq-item.active .page-blog__faq-answer {
  background-color: var(--fb777-card-bg);
}