/* style/blog.css */

/* Base styles for the blog page */
.page-blog {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Light text for dark body background */
  background-color: transparent; /* Body background is handled by shared.css #0a0a0a */
}

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

/* Hero Section */
.page-blog__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  text-align: center;
  background-color: #0a0a0a; /* Ensure section background is dark */
  color: #ffffff;
}

.page-blog__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  margin-bottom: 30px;
}

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

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

.page-blog__main-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Use clamp for H1 font size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #26A9E0; /* Brand color for H1 */
}

.page-blog__description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

/* Content Area */
.page-blog__content-area {
  background-color: #0a0a0a; /* Dark background for content area */
  padding: 60px 0;
  color: #ffffff; /* Light text for dark background */
}

.page-blog__section-title {
  font-size: 2.5em;
  font-weight: 600;
  color: #26A9E0; /* Brand color for section titles */
  margin-bottom: 30px;
  text-align: center;
}

.page-blog__paragraph {
  font-size: 1.05em;
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-blog__highlight {
  color: #26A9E0;
  font-weight: bold;
}

/* Category Grid */
.page-blog__category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.page-blog__category-card {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for card background */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: #ffffff;
}

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

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

.page-blog__category-card h3 {
  font-size: 1.5em;
  color: #26A9E0;
  margin: 15px 15px 10px;
}

.page-blog__category-card p {
  font-size: 0.95em;
  margin: 0 15px 15px;
  flex-grow: 1;
  color: #f0f0f0;
}

.page-blog__btn-link {
  display: inline-block;
  padding: 10px 15px;
  margin: 0 15px 15px;
  background-color: transparent;
  color: #EA7C07; /* Login color for text link */
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: color 0.3s ease, background-color 0.3s ease;
}

.page-blog__btn-link:hover {
  color: #ffffff;
  background-color: #EA7C07;
}

/* Benefit List */
.page-blog__benefit-list {
  list-style: none;
  padding: 0;
  margin-bottom: 40px;
}

.page-blog__list-item {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly lighter background for list items */
  margin-bottom: 15px;
  padding: 20px;
  border-radius: 8px;
  font-size: 1.05em;
  color: #f0f0f0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-blog__list-item strong {
  color: #26A9E0;
}

/* Guide List */
.page-blog__guide-list {
  list-style: decimal;
  padding-left: 25px;
  margin-bottom: 40px;
}

.page-blog__guide-list .page-blog__list-item {
  background-color: transparent;
  box-shadow: none;
  padding: 5px 0;
  margin-bottom: 10px;
  color: #f0f0f0;
}

/* Article List */
.page-blog__article-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-bottom: 40px;
}

.page-blog__article-card {
  display: flex;
  background-color: rgba(255, 255, 255, 0.1); /* Card background */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ffffff;
}

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

.page-blog__article-card .page-blog__card-image {
  width: 35%;
  height: auto;
  object-fit: cover;
  border-radius: 8px 0 0 8px;
}

.page-blog__article-card .page-blog__card-content {
  padding: 20px;
  width: 65%;
  display: flex;
  flex-direction: column;
}

.page-blog__article-card .page-blog__card-title {
  font-size: 1.4em;
  margin-top: 0;
  margin-bottom: 10px;
}

.page-blog__article-card .page-blog__card-title a {
  color: #26A9E0; /* Brand color for article titles */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__article-card .page-blog__card-title a:hover {
  color: #EA7C07;
}

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

.page-blog__article-card .page-blog__card-text {
  font-size: 1em;
  color: #f0f0f0;
  flex-grow: 1;
}

.page-blog__view-all-posts {
  text-align: center;
  margin-top: 30px;
}

/* FAQ Section */
.page-blog__faq-list {
  margin-top: 30px;
  margin-bottom: 60px;
}

.page-blog__faq-item {
  background-color: rgba(255, 255, 255, 0.1); /* FAQ item background */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.page-blog__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  color: #26A9E0; /* Brand color for FAQ questions */
  background-color: rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s ease;
}

.page-blog__faq-item summary:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

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

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

.page-blog__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #EA7C07; /* Login color for toggle icon */
}

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

.page-blog__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1.0em;
  color: #f0f0f0;
}

/* CTA Section */
.page-blog__cta-section {
  background: linear-gradient(135deg, #26A9E0, #EA7C07); /* Gradient using brand and login colors */
  border-radius: 12px;
  padding: 50px 30px;
  text-align: center;
  color: #ffffff;
  margin-top: 60px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-blog__cta-title {
  font-size: 2.8em;
  font-weight: 700;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-blog__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-blog__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* Buttons */
.page-blog__btn-primary,
.page-blog__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-blog__btn-primary {
  background-color: #EA7C07; /* Login color */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

.page-blog__btn-primary:hover {
  background-color: #cc6a06;
  border-color: #cc6a06;
}

.page-blog__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0; /* Brand color */
  border: 2px solid #ffffff;
}

.page-blog__btn-secondary:hover {
  background-color: #f0f0f0;
  border-color: #f0f0f0;
  color: #1e87bb;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-blog__main-title {
    font-size: clamp(2em, 5vw, 2.8em);
  }

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

  .page-blog__article-card {
    flex-direction: column;
  }

  .page-blog__article-card .page-blog__card-image {
    width: 100%;
    height: 250px;
    border-radius: 8px 8px 0 0;
  }

  .page-blog__article-card .page-blog__card-content {
    width: 100%;
  }

  .page-blog__cta-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-blog__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }

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

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

  .page-blog__content-area {
    padding: 40px 0;
  }

  .page-blog__container,
  .page-blog__category-grid,
  .page-blog__article-list,
  .page-blog__faq-list,
  .page-blog__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-blog__category-grid {
    grid-template-columns: 1fr;
  }

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

  .page-blog__article-card {
    flex-direction: column;
  }

  .page-blog__article-card .page-blog__card-image {
    width: 100%;
    height: 200px;
  }

  .page-blog__article-card .page-blog__card-content {
    width: 100%;
    padding: 15px;
  }

  .page-blog__article-card .page-blog__card-title {
    font-size: 1.2em;
  }

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

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

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

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

  .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: 1em;
  }

  /* Mobile image responsive */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Content area images, ensure not smaller than 200px */
  .page-blog__hero-image,
  .page-blog__card-image {
    min-width: 200px;
    min-height: 200px;
  }

  /* All sections and containers in mobile */
  .page-blog__section,
  .page-blog__card,
  .page-blog__container,
  .page-blog__hero-section,
  .page-blog__content-area,
  .page-blog__category-grid,
  .page-blog__article-list,
  .page-blog__faq-list,
  .page-blog__cta-section,
  .page-blog__hero-image-wrapper,
  .page-blog__category-card,
  .page-blog__article-card,
  .page-blog__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 480px) {
  .page-blog__hero-section {
    padding: 30px 10px;
    padding-top: 10px !important;
  }

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

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

  .page-blog__cta-title {
    font-size: 1.6em;
  }
}