/* style/blog.css */
.page-blog {
  font-family: Arial, sans-serif;
  color: #333333; /* Dark text for light background */
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

.page-blog__hero-section {
  position: relative;
  text-align: center;
  color: #ffffff; /* Light text for hero content */
  overflow: hidden;
  padding: 0;
  margin-bottom: 60px;
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Darken image for text readability, not changing color */
}

.page-blog__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 900px;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent dark background for text */
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  width: 90%;
}

.page-blog__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FCBC45; /* Login color for highlight */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-blog__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: #ffffff;
}

.page-blog__hero-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.page-blog__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  font-size: 1.1em;
}

.page-blog__button--primary {
  background-color: #FCBC45; /* Login color */
  color: #000000; /* Main color */
  border: 2px solid #FCBC45;
}

.page-blog__button--primary:hover {
  background-color: #e0a33c;
  color: #FFFFFF;
}

.page-blog__button--secondary {
  background-color: transparent;
  color: #FFFFFF; /* Aux color */
  border: 2px solid #FFFFFF;
}

.page-blog__button--secondary:hover {
  background-color: #FFFFFF;
  color: #000000; /* Main color */
}

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

.page-blog__section-title {
  font-size: 2.8em;
  color: #000000; /* Main color */
  text-align: center;
  margin-bottom: 20px;
  padding-top: 40px;
}

.page-blog__section-intro {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  color: #555555;
}

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

.page-blog__article-card,
.page-blog__guide-card {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  color: #333333;
}

.page-blog__article-card:hover,
.page-blog__guide-card:hover {
  transform: translateY(-10px);
}

.page-blog__article-image,
.page-blog__guide-image {
  width: 100%;
  height: 225px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-blog__article-title,
.page-blog__guide-title {
  font-size: 1.6em;
  padding: 20px 20px 10px;
  color: #000000; /* Main color */
}

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

.page-blog__article-title a:hover,
.page-blog__guide-title a:hover {
  color: #FCBC45; /* Login color */
}

.page-blog__article-excerpt,
.page-blog__guide-description {
  font-size: 0.95em;
  padding: 0 20px 15px;
  flex-grow: 1;
}

.page-blog__read-more {
  display: inline-block;
  color: #FCBC45; /* Login color */
  text-decoration: none;
  font-weight: bold;
  padding: 0 20px 20px;
  transition: color 0.3s ease;
}

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

.page-blog__security-section,
.page-blog__community-section {
  padding: 60px 0;
  background-color: #f9f9f9;
  margin-bottom: 60px;
}

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

.page-blog__security-content:nth-child(even) {
  flex-direction: row-reverse;
}

.page-blog__security-image,
.page-blog__community-image {
  flex: 1;
  min-width: 300px;
  max-width: 600px; /* Constrain image width */
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: block;
}

.page-blog__security-text,
.page-blog__community-text {
  flex: 2;
  min-width: 300px;
  max-width: 600px; /* Constrain text width */
}

.page-blog__security-subtitle,
.page-blog__community-subtitle {
  font-size: 2em;
  color: #000000;
  margin-bottom: 15px;
}

.page-blog__security-text p,
.page-blog__community-text p {
  margin-bottom: 20px;
  font-size: 1em;
  color: #555555;
}

.page-blog__why-choose-section {
  padding: 60px 0;
  margin-bottom: 60px;
}

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

.page-blog__why-choose-item {
  background-color: #f0f0f0;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  font-size: 1.05em;
  color: #333333;
  line-height: 1.5;
}

.page-blog__why-choose-item strong {
  color: #000000; /* Main color */
  display: block;
  margin-bottom: 10px;
  font-size: 1.2em;
}

.page-blog__cta-section {
  background-color: #000000; /* Main color */
  color: #FFFFFF; /* Aux color */
  padding: 80px 20px;
  text-align: center;
  margin-bottom: 0;
}

.page-blog__cta-title {
  font-size: 3em;
  margin-bottom: 20px;
  color: #FCBC45; /* Login color */
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-blog__hero-title {
    font-size: 2.5em;
  }
  .page-blog__hero-description {
    font-size: 1.1em;
  }
  .page-blog__section-title {
    font-size: 2.2em;
  }
  .page-blog__article-title,
  .page-blog__guide-title {
    font-size: 1.4em;
  }
  .page-blog__security-subtitle,
  .page-blog__community-subtitle {
    font-size: 1.8em;
  }
}

@media (max-width: 768px) {
  .page-blog__hero-section {
    margin-bottom: 40px;
  }
  .page-blog__hero-content {
    width: 95%;
    padding: 15px;
  }
  .page-blog__hero-title {
    font-size: 2em;
  }
  .page-blog__hero-description {
    font-size: 1em;
  }
  .page-blog__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-blog__button {
    width: 100%;
    padding: 12px 20px;
  }
  .page-blog__section-title {
    font-size: 1.8em;
  }
  .page-blog__section-intro {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-blog__articles-grid,
  .page-blog__guides-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 40px;
  }
  .page-blog__article-image,
  .page-blog__guide-image {
    height: 200px;
  }
  .page-blog__security-content,
  .page-blog__community-content {
    flex-direction: column;
    gap: 30px;
  }
  .page-blog__security-content:nth-child(even) {
    flex-direction: column;
  }
  .page-blog__security-image,
  .page-blog__community-image {
    max-width: 100%;
  }
  .page-blog__security-text,
  .page-blog__community-text {
    max-width: 100%;
  }
  .page-blog__security-subtitle,
  .page-blog__community-subtitle {
    font-size: 1.5em;
  }
  .page-blog__why-choose-list {
    grid-template-columns: 1fr;
    margin-top: 30px;
  }
  .page-blog__cta-title {
    font-size: 2.2em;
  }
  .page-blog__cta-description {
    font-size: 1em;
  }
  /* Ensure images within content areas are responsive and don't overflow */
  .page-blog img {
    max-width: 100%;
    height: auto;
  }
  .page-blog__hero-image {
    height: 400px; /* Adjust hero image height for mobile */
  }
}

@media (max-width: 480px) {
  .page-blog__hero-title {
    font-size: 1.6em;
  }
  .page-blog__hero-description {
    font-size: 0.9em;
  }
  .page-blog__section-title {
    font-size: 1.5em;
  }
  .page-blog__article-title,
  .page-blog__guide-title {
    font-size: 1.2em;
  }
  .page-blog__security-subtitle,
  .page-blog__community-subtitle {
    font-size: 1.3em;
  }
  .page-blog__cta-title {
    font-size: 1.8em;
  }
}