/* style/blog.css */

/* General styles for the blog page */
.page-blog {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #0a0a0a; /* Ensure consistency with body background */
}

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

.page-blog__section {
  padding: 60px 0;
  text-align: center;
}

.page-blog__dark-section {
  background-color: #0a0a0a;
  color: #ffffff;
}

.page-blog__light-bg {
  background-color: #1a1a1a; /* Slightly lighter dark background for contrast */
  color: #ffffff;
}

.page-blog__section-title {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 700;
  color: #26A9E0;
  margin-bottom: 30px;
  line-height: 1.2;
}

.page-blog__paragraph {
  font-size: 18px;
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

/* Hero Section */
.page-blog__hero-section {
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 600px;
  overflow: hidden;
}

.page-blog__hero-image-wrapper {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
}

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

.page-blog__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 80px 20px;
  background: rgba(0, 0, 0, 0.7); /* Semi-transparent overlay for text readability */
  border-radius: 10px;
  margin-top: 10px; /* Small top margin, body handles overall offset */
}

.page-blog__main-title {
  font-size: clamp(36px, 5vw, 60px); /* Using clamp for responsive H1 */
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 20px;
  line-height: 1.1;
}

.page-blog__hero-description {
  font-size: 20px;
  color: #f0f0f0;
  margin-bottom: 30px;
  line-height: 1.5;
}

/* Buttons */
.page-blog__btn-primary,
.page-blog__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow word breaking */
  box-sizing: border-box;
  max-width: 100%;
}

.page-blog__btn-primary {
  background-color: #26A9E0;
  color: #FFFFFF;
  border: 2px solid #26A9E0;
}

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

.page-blog__btn-secondary {
  background-color: transparent;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-blog__btn-secondary:hover {
  background-color: #26A9E0;
  color: #FFFFFF;
}

.page-blog__btn-center {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: fit-content;
}

/* Feature Grid */
.page-blog__feature-grid, .page-blog__benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-blog__feature-item,
.page-blog__benefit-item {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white for dark background */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
  box-sizing: border-box;
}

.page-blog__feature-icon,
.page-blog__benefit-icon {
  width: 100%;
  max-width: 300px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  display: block;
  object-fit: cover;
}

.page-blog__feature-title,
.page-blog__benefit-title {
  font-size: 24px;
  font-weight: 700;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-blog__feature-description,
.page-blog__benefit-description {
  font-size: 16px;
  color: #f0f0f0;
  text-align: left;
}

/* Steps Grid */
.page-blog__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: left;
}

.page-blog__step-item {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  height: 100%;
  box-sizing: border-box;
}

.page-blog__step-title {
  font-size: 22px;
  font-weight: 700;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-blog__list,
.page-blog__list-ordered {
  list-style-position: inside;
  padding-left: 0;
  color: #f0f0f0;
}

.page-blog__list li,
.page-blog__list-ordered li {
  margin-bottom: 10px;
  font-size: 16px;
  padding-left: 10px;
  position: relative;
}

.page-blog__list li::before {
  content: '•';
  color: #26A9E0;
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}

.page-blog__list-ordered li::marker {
  color: #26A9E0;
  font-weight: bold;
}

/* Blog List Section */
.page-blog__blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: left;
}

.page-blog__blog-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

.page-blog__blog-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

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

.page-blog__blog-title {
  font-size: 20px;
  font-weight: 700;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-blog__blog-excerpt {
  font-size: 16px;
  color: #f0f0f0;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-blog__read-more {
  font-size: 14px;
  color: #999;
  display: block;
  text-align: right;
}

.page-blog__read-more time {
  margin-left: 5px;
}

.page-blog__view-all-wrapper {
  margin-top: 40px;
}

/* FAQ Section */
.page-blog__faq-list {
  margin-top: 40px;
  text-align: left;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-blog__faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px;
  font-size: 18px;
  font-weight: 700;
  color: #FFFFFF;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
}

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

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

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

.page-blog__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  margin-left: 15px;
  color: #26A9E0;
}

.page-blog__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 16px;
  color: #f0f0f0;
  line-height: 1.6;
}

/* Conclusion Section */
.page-blog__conclusion-section {
  background-color: #0a0a0a;
  color: #ffffff;
  padding-bottom: 80px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-blog__hero-content {
    padding: 60px 20px;
  }
  .page-blog__section {
    padding: 40px 0;
  }
}

@media (max-width: 768px) {
  .page-blog__hero-content {
    padding: 40px 15px;
    margin-top: 10px !important; /* Ensure small top margin on mobile */
  }
  .page-blog__main-title {
    font-size: clamp(32px, 8vw, 40px);
  }
  .page-blog__hero-description {
    font-size: 16px;
  }
  .page-blog__section-title {
    font-size: clamp(24px, 6vw, 32px);
  }
  .page-blog__paragraph {
    font-size: 16px;
    padding: 0 15px;
  }
  .page-blog__feature-grid, .page-blog__benefits-grid, .page-blog__steps-grid, .page-blog__blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-blog__container {
    padding: 0 15px;
  }
  .page-blog__feature-item, .page-blog__benefit-item, .page-blog__step-item, .page-blog__blog-card {
    padding: 20px;
  }
  .page-blog__btn-primary,
  .page-blog__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
    display: block !important;
    margin-bottom: 15px;
  }
  .page-blog__btn-center {
    width: 100%;
  }
  .page-blog__feature-icon,
  .page-blog__benefit-icon,
  .page-blog__blog-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-blog__section,
  .page-blog__card,
  .page-blog__container,
  .page-blog__hero-section,
  .page-blog__hero-content,
  .page-blog__feature-grid,
  .page-blog__benefits-grid,
  .page-blog__steps-grid,
  .page-blog__blog-grid,
  .page-blog__faq-list,
  .page-blog__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-blog__hero-section {
    padding-top: 10px !important; /* body handles --header-offset, this is for visual spacing */
  }
  .page-blog__faq-item summary {
    font-size: 16px;
    padding: 15px;
  }
  .page-blog__faq-answer {
    padding: 0 15px 15px 15px;
  }
}

@media (max-width: 480px) {
  .page-blog__main-title {
    font-size: clamp(28px, 10vw, 36px);
  }
  .page-blog__section-title {
    font-size: clamp(20px, 8vw, 28px);
  }
  .page-blog__hero-content {
    border-radius: 0;
  }
}