:root {
  --primary-color: #26A9E0; /* Light Blue */
  --secondary-color: #FFFFFF; /* White */
  --text-color-dark: #333333;
  --text-color-light: #FFFFFF;
  --bg-color-light: #FFFFFF;
  --bg-color-dark: #26A9E0;
  --border-color: #e0e0e0;
  --login-color: #EA7C07;
}

/* Base styles for the blog page content */
.page-blog {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-color-dark); /* Default dark text on light body background */
  background: var(--bg-color-light); /* Body background is white */
}

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

.page-blog__section-title {
  font-size: 32px;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  line-height: 1.2;
}

/* Hero Section */
.page-blog__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding as body handles header offset */
  background: linear-gradient(135deg, #e0f2f7, #f0f8fa); /* Light gradient background */
}

.page-blog__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%; /* Ensure it takes full width within max-width */
}

.page-blog__hero-image {
  width: 100%;
  margin-bottom: 30px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.page-blog__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
  border-radius: 12px; /* Apply border-radius to the image as well */
}

.page-blog__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  max-width: 800px; /* Constrain content width */
}

.page-blog__main-title {
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 20px;
  line-height: 1.2;
  /* Use clamp for responsive font size without fixed large values */
  font-size: clamp(28px, 4vw, 48px);
}

.page-blog__description {
  font-size: 18px;
  color: var(--text-color-dark);
  margin-bottom: 30px;
}

.page-blog__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--primary-color);
  color: var(--text-color-light);
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(38, 169, 224, 0.4);
  max-width: 100%; /* Ensure button adapts to container width */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-blog__cta-button:hover {
  background: #208cb9; /* Darker shade of primary-color */
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(38, 169, 224, 0.6);
}

/* Articles Section */
.page-blog__articles-section {
  padding: 80px 0;
  background: var(--bg-color-light);
}

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

.page-blog__article-card {
  background: var(--secondary-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-blog__article-image {
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  overflow: hidden;
}

.page-blog__article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.page-blog__article-card:hover .page-blog__article-image img {
  transform: scale(1.05);
}

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

.page-blog__article-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 15px;
  line-height: 1.3;
  flex-grow: 1; /* Allow title to take available space */
}

.page-blog__article-title a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__article-title a:hover {
  color: #1a7a9e; /* Darker shade of primary-color */
}

.page-blog__article-excerpt {
  font-size: 16px;
  color: #555555;
  margin-bottom: 15px;
}

.page-blog__article-date {
  font-size: 14px;
  color: #888888;
  margin-bottom: 20px;
  display: block;
}

.page-blog__read-more {
  display: inline-block;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: color 0.3s ease;
}

.page-blog__read-more:hover {
  color: #1a7a9e; /* Darker shade of primary-color */
}

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

/* CTA Section */
.page-blog__cta-section {
  padding: 80px 0;
  text-align: center;
  background: var(--bg-color-dark); /* Using primary color as dark background */
  color: var(--text-color-light); /* Light text for dark background */
}

.page-blog__cta-content {
  max-width: 900px;
  margin: 0 auto;
}

.page-blog__cta-section .page-blog__section-title {
  color: var(--text-color-light); /* Ensure white title on dark background */
  margin-bottom: 20px;
}

.page-blog__cta-section p {
  font-size: 18px;
  margin-bottom: 40px;
  color: var(--text-color-light);
}