.page-blog {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: var(--secondary-color, #FFFFFF); /* Ensures light background */
}

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

/* Hero Banner Section */
.page-blog__hero-banner {
    padding-top: 10px; /* Small top padding, relying on body for header offset */
    background-color: #FFFFFF;
    text-align: center;
    margin-bottom: 40px;
}

.page-blog__hero-image-wrapper {
    width: 100%;
    overflow: hidden;
    margin-bottom: 20px;
}

.page-blog__hero-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 675px; /* Limit height for aesthetic */
}

.page-blog__hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-blog__main-title {
    font-size: 40px;
    color: #26A9E0; /* Brand color for title */
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.2;
}

.page-blog__intro-text {
    font-size: 18px;
    color: #555555;
    margin-bottom: 30px;
}

/* Section Titles */
.page-blog__section-title {
    font-size: 32px;
    color: #26A9E0;
    text-align: center;
    margin-bottom: 30px;
    font-weight: 700;
}

/* Blog Post List Section */
.page-blog__post-list-section {
    padding: 40px 0;
    background-color: #f9f9f9;
}

.page-blog__posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.page-blog__post-card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 15px 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__post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

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

.page-blog__post-image-wrapper {
    width: 100%;
    height: 200px; /* Fixed height for consistent card appearance */
    overflow: hidden;
    flex-shrink: 0;
}

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

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

.page-blog__post-title {
    font-size: 20px;
    color: #26A9E0;
    margin-bottom: 10px;
    font-weight: 600;
    line-height: 1.3;
}

.page-blog__post-excerpt {
    font-size: 15px;
    color: #555555;
    margin-bottom: 15px;
    flex-grow: 1;
}

.page-blog__post-date {
    font-size: 13px;
    color: #777777;
    text-align: right;
    display: block;
}

.page-blog__view-all-wrapper {
    text-align: center;
}

.page-blog__view-all-btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: #26A9E0;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-blog__view-all-btn:hover {
    background-color: #1a7bb7;
}

/* CTA Section */
.page-blog__cta-section {
    background-color: #26A9E0; /* Primary brand color background */
    color: #ffffff;
    padding: 60px 0;
    text-align: center;
}

.page-blog__cta-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.page-blog__cta-text-content {
    flex: 1;
    max-width: 600px;
    text-align: left;
}

.page-blog__cta-title {
    font-size: 36px;
    color: #ffffff;
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.2;
}

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

.page-blog__cta-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: #EA7C07; /* Login color for CTA button */
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 18px;
    transition: background-color 0.3s ease;
}

.page-blog__cta-button:hover {
    background-color: #d46c00;
}

.page-blog__cta-image-wrapper {
    flex-shrink: 0;
    width: 40%;
    max-width: 500px;
}

.page-blog__cta-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}


/* FAQ Section */
.page-blog__faq-section {
    padding: 60px 0;
    background-color: #ffffff;
}

.page-blog__faq-list {
    max-width: 800px;
    margin: 0 auto;
}

details.page-blog__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}
details.page-blog__faq-item summary.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-blog__faq-item summary.page-blog__faq-question::-webkit-details-marker {
  display: none;
}
details.page-blog__faq-item summary.page-blog__faq-question:hover {
  background: #f5f5f5;
}
.page-blog__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333; /* Ensure contrast */
}
.page-blog__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-blog__faq-item .page-blog__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #555555; /* Ensure contrast */
}
details.page-blog__faq-item .page-blog__faq-answer p {
    margin-top: 0;
    margin-bottom: 0;
}

/* General button styles (for consistency, though specific buttons are styled) */
.page-blog__btn-primary {
    background-color: #26A9E0;
    color: #ffffff;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    border: none;
}
.page-blog__btn-primary:hover {
    background-color: #1a7bb7;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-blog__hero-image-wrapper img {
        max-height: 500px;
    }
    .page-blog__main-title {
        font-size: 36px;
    }
    .page-blog__section-title {
        font-size: 28px;
    }
    .page-blog__posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .page-blog__cta-title {
        font-size: 30px;
    }
    .page-blog__cta-container {
        flex-direction: column;
        gap: 30px;
    }
    .page-blog__cta-text-content {
        text-align: center;
        max-width: 100%;
    }
    .page-blog__cta-image-wrapper {
        width: 60%;
    }
}

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

    /* Hero Banner Section */
    .page-blog__hero-banner {
        padding-top: 10px !important; /* Small top padding for mobile */
        margin-bottom: 20px;
    }
    .page-blog__hero-image-wrapper img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        max-height: 300px;
    }
    .page-blog__hero-content {
        padding: 0 15px;
    }
    .page-blog__main-title {
        font-size: 28px;
        margin-bottom: 10px;
    }
    .page-blog__intro-text {
        font-size: 16px;
        margin-bottom: 20px;
    }

    /* Section Titles */
    .page-blog__section-title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    /* Blog Post List Section */
    .page-blog__post-list-section {
        padding: 20px 0;
    }
    .page-blog__posts-grid {
        grid-template-columns: 1fr; /* Single column for mobile */
        gap: 20px;
        margin-bottom: 30px;
    }
    .page-blog__post-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-blog__post-image-wrapper {
        height: 180px; /* Adjust height for mobile cards */
    }
    .page-blog__post-title {
        font-size: 18px;
    }
    .page-blog__post-excerpt {
        font-size: 14px;
    }
    .page-blog__view-all-btn {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 15px;
    }

    /* CTA Section */
    .page-blog__cta-section {
        padding: 40px 0;
    }
    .page-blog__cta-container {
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-blog__cta-text-content {
        max-width: 100%;
        text-align: center;
    }
    .page-blog__cta-title {
        font-size: 26px;
    }
    .page-blog__cta-description {
        font-size: 16px;
        margin-bottom: 20px;
    }
    .page-blog__cta-button {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 15px 15px;
    }
    .page-blog__cta-image-wrapper {
        width: 80%; /* Larger image on mobile */
        max-width: 100%;
        margin-top: 20px;
    }
    .page-blog__cta-image-wrapper img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* FAQ Section */
    details.page-blog__faq-item summary.page-blog__faq-question { padding: 15px; }
    .page-blog__faq-qtext { font-size: 15px; }
    details.page-blog__faq-item .page-blog__faq-answer {
        padding: 0 15px 15px;
    }
    details.page-blog__faq-item .page-blog__faq-answer p {
        font-size: 15px;
    }

    /* General image and container responsiveness */
    .page-blog img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
    }
    .page-blog__section,
    .page-blog__card,
    .page-blog__container,
    .page-blog__posts-grid,
    .page-blog__cta-container,
    .page-blog__faq-list {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
    }
    /* Button specific overrides for mobile */
    .page-blog__cta-button,
    .page-blog__btn-primary,
    .page-blog a[class*="button"],
    .page-blog a[class*="btn"] {
        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;
    }
    .page-blog__cta-buttons,
    .page-blog__button-group,
    .page-blog__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }
    .page-blog__cta-buttons {
        display: flex;
        flex-direction: column;
    }
}