/* style/blog.css */

/* Base styles for the blog page content */
.page-blog {
  color: #333333; /* Dark text for light body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* Hero Section */
.page-blog__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  color: #ffffff;
  padding-top: 0; /* Handled by shared.css body padding */
  margin-bottom: 40px;
}

.page-blog__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.6); /* Darken image for text readability */
}

.page-blog__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 500px; /* Ensure sufficient height */
}

.page-blog__hero-content {
  z-index: 1;
}

.page-blog__hero-title {
  font-size: 3.2em;
  color: #FFD700; /* Gold for emphasis */
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-blog__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  max-width: 800px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

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

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

.page-blog__button--primary {
  background-color: #FFD700; /* Gold */
  color: #0A2463; /* Dark blue */
  border: 2px solid #FFD700;
}

.page-blog__button--primary:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
}

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

.page-blog__button--secondary:hover {
  background-color: rgba(255, 215, 0, 0.1);
  transform: translateY(-2px);
}

/* General Container and Section Titles */
.page-blog__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-blog__section-title {
  font-size: 2.5em;
  color: #0A2463; /* Dark blue */
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.page-blog__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: #FFD700;
  margin: 15px auto 0;
  border-radius: 2px;
}

/* Latest Articles Section */
.page-blog__latest-articles-section {
  padding: 60px 0;
  background-color: #fcfcfc;
}

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

.page-blog__article-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-blog__article-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.page-blog__article-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
}

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

.page-blog__article-title {
  font-size: 1.5em;
  color: #0A2463;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-blog__article-title a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

.page-blog__article-title a:hover {
  color: #FFD700;
}

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

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

.page-blog__read-more {
  display: inline-block;
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-blog__read-more:hover {
  color: #0A2463;
}

/* Featured Post Section */
.page-blog__featured-post-section {
  padding: 60px 0;
  background-color: #f0f0f0;
}

.page-blog__full-article {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  padding: 40px;
}

.page-blog__full-article-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 30px;
  object-fit: cover;
  min-height: 300px; /* Ensure minimum size */
}

.page-blog__full-article-title {
  font-size: 2.2em;
  color: #0A2463;
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-blog__full-article-meta {
  font-size: 0.95em;
  color: #777777;
  margin-bottom: 30px;
}

.page-blog__full-article-content p {
  margin-bottom: 20px;
  font-size: 1.05em;
  color: #333333;
}

.page-blog__full-article-content h4 {
  font-size: 1.6em;
  color: #0A2463;
  margin-top: 30px;
  margin-bottom: 15px;
  position: relative;
  padding-left: 20px;
}

.page-blog__full-article-content h4::before {
  content: '▶';
  color: #FFD700;
  position: absolute;
  left: 0;
  font-size: 0.8em;
  top: 5px;
}

.page-blog__full-article-content ol,
.page-blog__full-article-content ul {
  margin-bottom: 20px;
  padding-left: 25px;
}

.page-blog__full-article-content li {
  margin-bottom: 10px;
  font-size: 1.05em;
  color: #333333;
}

.page-blog__full-article-content li strong {
  color: #0A2463;
}

.page-blog__full-article-content a {
  color: #0A2463;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-blog__full-article-content a:hover {
  color: #FFD700;
}

/* Categories Section */
.page-blog__categories-section {
  padding: 60px 0;
  background-color: #fcfcfc;
}

.page-blog__categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.page-blog__category-card {
  background-color: #0A2463;
  color: #ffffff;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  text-decoration: none;
  transition: transform 0.3s ease, background-color 0.3s ease;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 180px;
}

.page-blog__category-card:hover {
  transform: translateY(-5px);
  background-color: #1a3c7a;
}

.page-blog__category-title {
  font-size: 1.8em;
  margin-bottom: 10px;
  color: #FFD700;
}

.page-blog__category-description {
  font-size: 1em;
  color: #e0e0e0;
}

/* Call to Action Section */
.page-blog__cta-section {
  padding: 80px 0;
  background-color: #0A2463; /* Dark blue background */
  color: #ffffff;
  text-align: center;
}

.page-blog__cta-title {
  font-size: 2.8em;
  color: #FFD700;
  margin-bottom: 20px;
  line-height: 1.2;
}

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

.page-blog__button--large {
  padding: 18px 40px;
  font-size: 1.3em;
  background-color: #FFD700;
  color: #0A2463;
  border: 2px solid #FFD700;
}

.page-blog__button--large:hover {
  background-color: #e6c200;
  transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-blog__hero-title {
    font-size: 2.8em;
  }
  .page-blog__section-title {
    font-size: 2.2em;
  }
  .page-blog__full-article-title {
    font-size: 2em;
  }
  .page-blog__cta-title {
    font-size: 2.4em;
  }
}

@media (max-width: 768px) {
  .page-blog__hero-container {
    padding: 80px 20px;
    min-height: 400px;
  }
  .page-blog__hero-title {
    font-size: 2.2em;
  }
  .page-blog__hero-description {
    font-size: 1.1em;
  }
  .page-blog__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-blog__button {
    width: 100%;
  }

  .page-blog__section-title {
    font-size: 1.8em;
  }
  .page-blog__articles-grid {
    grid-template-columns: 1fr;
  }
  .page-blog__full-article {
    padding: 25px;
  }
  .page-blog__full-article-title {
    font-size: 1.8em;
  }
  .page-blog__full-article-content h4 {
    font-size: 1.4em;
  }
  .page-blog__categories-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
  .page-blog__cta-title {
    font-size: 2em;
  }
  .page-blog__button--large {
    font-size: 1.1em;
    padding: 15px 30px;
  }
  /* Mobile content area image constraint */
  .page-blog img {
    max-width: 100%;
    height: auto;
  }
  .page-blog__article-image {
    height: auto;
  }
  .page-blog__full-article-image {
    min-height: 200px;
  }
  .page-blog__article-card img,
  .page-blog__full-article-image,
  .page-blog__hero-image {
    min-width: 200px;
    min-height: 200px;
  }
}

@media (max-width: 480px) {
  .page-blog__hero-container {
    padding: 60px 15px;
  }
  .page-blog__hero-title {
    font-size: 1.8em;
  }
  .page-blog__hero-description {
    font-size: 1em;
  }
  .page-blog__section-title {
    font-size: 1.6em;
  }
  .page-blog__full-article-title {
    font-size: 1.6em;
  }
  .page-blog__cta-title {
    font-size: 1.8em;
  }
}