/* style/blog.css */

/* General Styles */
.page-blog {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #F5F7FA; /* Body background color */
}

.page-blog__light-bg {
  background-color: #F5F7FA;
  color: #333333;
}

.page-blog__dark-section {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  padding: 60px 0;
}

.page-blog__main-title,
.page-blog__section-title,
.page-blog__cta-title {
  color: #E53935;
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 20px;
}

.page-blog__main-title {
  font-size: clamp(28px, 4vw, 48px);
}

.page-blog__section-title {
  font-size: clamp(24px, 3.5vw, 36px);
  text-align: center;
  margin-bottom: 40px;
}

.page-blog__cta-title {
  font-size: clamp(24px, 3.5vw, 36px);
  text-align: center;
  color: #ffffff;
}

.page-blog__description,
.page-blog__cta-description {
  font-size: 18px;
  margin-bottom: 30px;
}

.page-blog__cta-description {
  color: #ffffff;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.page-blog__cta-button {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-blog__btn-primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-blog__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-blog__btn-secondary {
  background: #ffffff;
  color: #E53935;
  border: 2px solid #E53935;
}

.page-blog__btn-secondary:hover {
  background: #f0f0f0;
  color: #E53935;
  transform: translateY(-2px);
}

/* Hero Section */
.page-blog__hero-section {
  padding-top: 10px; /* Adjusted for shared header offset */
  padding-bottom: 60px;
}

.page-blog__hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  padding: 20px 16px;
}

.page-blog__hero-content {
  flex: 1 1 50%;
  min-width: 300px;
}

.page-blog__hero-image {
  flex: 1 1 40%;
  text-align: center;
}

.page-blog__hero-side-image {
  max-width: 600px;
  width: 100%;
  height: 600px; /* Fixed height for display area, AI will generate 600x600 */
  object-fit: contain;
  display: block;
}

.page-blog__cta-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

/* Article Section */
.page-blog__articles-section {
  padding: 60px 0;
}

.page-blog__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

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

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

.page-blog__article-card:hover {
  transform: translateY(-5px);
}

.page-blog__article-media {
  width: 100%;
  height: 250px; /* Fixed height for article image display */
  overflow: hidden;
}

.page-blog__article-media img {
  width: 100%;
  height: 100%;
  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: 22px;
  margin-bottom: 10px;
  color: #333333;
  line-height: 1.3;
}

.page-blog__article-link {
  text-decoration: none;
  color: inherit;
}

.page-blog__article-link:hover {
  color: #E53935;
}

.page-blog__article-date {
  font-size: 14px;
  color: #666666;
  margin-bottom: 15px;
}

.page-blog__article-summary {
  font-size: 16px;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-blog__read-more-btn {
  align-self: flex-start;
  padding: 10px 20px;
  font-size: 16px;
}

/* CTA Section */
.page-blog__cta-section {
  text-align: center;
}

.page-blog__cta-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 16px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-blog__main-title {
    font-size: clamp(24px, 5vw, 40px);
  }

  .page-blog__hero-container {
    flex-direction: column-reverse;
    text-align: center;
  }

  .page-blog__hero-content,
  .page-blog__hero-image {
    flex: 1 1 100%;
  }

  .page-blog__hero-side-image {
    max-width: 400px;
    height: 400px;
    margin: 0 auto;
  }

  .page-blog__cta-buttons {
    justify-content: center;
  }
}

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

  .page-blog__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px !important;
  }

  .page-blog__hero-container {
    padding: 15px !important;
    gap: 20px !important;
  }

  .page-blog__main-title {
    font-size: clamp(28px, 6vw, 36px) !important;
    margin-bottom: 15px !important;
  }

  .page-blog__description {
    font-size: 16px !important;
    margin-bottom: 20px !important;
  }

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

  .page-blog__cta-buttons {
    flex-direction: column !important;
    gap: 10px !important;
    padding: 0 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-blog__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px !important;
    font-size: 16px !important;
  }

  .page-blog__articles-section {
    padding: 40px 0 !important;
  }

  .page-blog__content-area {
    padding: 0 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-blog__section-title {
    font-size: clamp(22px, 5vw, 30px) !important;
    margin-bottom: 30px !important;
  }

  .page-blog__article-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .page-blog__article-card {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
  }

  .page-blog__article-media {
    height: 200px !important; /* Adjusted height for mobile */
  }

  .page-blog__article-media img {
    max-width: 100% !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  .page-blog__article-title {
    font-size: 18px !important;
  }

  .page-blog__article-summary {
    font-size: 15px !important;
  }

  .page-blog__cta-section {
    padding: 40px 0 !important;
  }

  .page-blog__cta-container {
    padding: 30px 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-blog__cta-title {
    font-size: clamp(22px, 5vw, 30px) !important;
    margin-bottom: 15px !important;
  }

  .page-blog__cta-description {
    font-size: 16px !important;
    margin-bottom: 25px !important;
  }

  /* Generic image responsive for content area */
  .page-blog img {
    max-width: 100% !important;
    height: auto !important;
    display: block !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;
  }
}