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

/* Hero Section */
.page-blog__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, assuming shared.css handles body padding-top */
    color: #ffffff;
    text-align: center;
    overflow: hidden;
    min-height: 500px; /* Ensure hero section has a minimum height */
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

.page-blog__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 100px 20px 80px;
    background: rgba(0, 0, 0, 0.4); /* Dark overlay for text readability */
    border-radius: 8px;
    box-sizing: border-box;
}

.page-blog__main-title {
    font-size: 3.2em;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-blog__description {
    font-size: 1.2em;
    margin-bottom: 40px;
    color: #f0f0f0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-blog__btn-primary,
.page-blog__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-blog__btn-primary {
    background-color: #017439; /* Primary brand color */
    color: #ffffff;
    border: 2px solid #017439;
}

.page-blog__btn-primary:hover {
    background-color: #005a2e;
    transform: translateY(-2px);
}

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

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

/* General Section Styles */
.page-blog__section-title {
    font-size: 2.5em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: #017439; /* Brand color for titles */
}

.page-blog__section-title--light {
    color: #ffffff;
}

.page-blog__section-intro {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    color: #555555;
}

.page-blog__section-intro--light {
    color: #f0f0f0;
}

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

/* Articles Section */
.page-blog__articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

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

.page-blog__article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

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

.page-blog__article-image {
    width: 100%;
    height: 220px; /* Fixed height for consistency */
    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: 1.4em;
    font-weight: 600;
    margin-bottom: 10px;
    color: #017439;
    line-height: 1.3;
}

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

.page-blog__article-date {
    font-size: 0.85em;
    color: #777777;
    margin-top: auto; /* Pushes date and read more to bottom */
    display: block;
    margin-bottom: 10px;
}

.page-blog__read-more {
    display: inline-block;
    color: #017439;
    font-weight: 600;
    font-size: 0.9em;
    text-decoration: none;
}

.page-blog__read-more:hover {
    text-decoration: underline;
}

.page-blog__view-all-button-wrapper {
    text-align: center;
    margin-top: 50px;
}

/* Benefits Section */
.page-blog__benefits-section {
    background-color: #017439; /* Primary brand color background */
    color: #ffffff;
    padding: 80px 0;
}

.page-blog__benefits-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-blog__benefits-list li {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 8px;
    font-size: 1.1em;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.page-blog__benefits-list li strong {
    color: #FFFF00; /* Highlight color for emphasis */
    flex-shrink: 0;
}

/* About Lotte92 Section */
.page-blog__about-lotte92 {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.page-blog__about-lotte92 p {
    font-size: 1.1em;
    margin-bottom: 25px;
    line-height: 1.7;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: justify;
}

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

.page-blog__faq-list {
    max-width: 900px;
    margin: 0 auto;
    margin-top: 40px;
}

details.page-blog__faq-item {
  margin-bottom: 15px;
  border-radius: 8px; /* Slightly larger radius */
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05); /* Subtle shadow */
}
details.page-blog__faq-item summary.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px; /* Slightly more padding */
  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: 1.15em; /* Slightly larger font */
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333; /* Ensure contrast */
}
.page-blog__faq-toggle {
  font-size: 28px; /* Larger toggle icon */
  font-weight: bold;
  color: #017439; /* Brand color for toggle */
  flex-shrink: 0;
  margin-left: 15px;
  width: 32px; /* Larger width */
  text-align: center;
}
details.page-blog__faq-item .page-blog__faq-answer {
  padding: 0 25px 25px;
  background: #f9f9f9;
  border-radius: 0 0 8px 8px;
  color: #555555;
  font-size: 1em;
}
details.page-blog__faq-item .page-blog__faq-answer p {
    margin: 0;
    padding: 0;
    text-align: left;
}

/* Final CTA Section */
.page-blog__final-cta {
    background-color: #017439;
    color: #ffffff;
    padding: 100px 0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-blog__hero-content {
        padding: 80px 20px 60px;
    }

    .page-blog__main-title {
        font-size: 2.8em;
    }

    .page-blog__description {
        font-size: 1.1em;
    }

    .page-blog__articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .page-blog__benefits-list {
        grid-template-columns: 1fr;
        max-width: 600px;
    }

    .page-blog__section-title {
        font-size: 2.2em;
    }
}

@media (max-width: 768px) {
    /* HERO 主图区域 */
    .page-blog__hero-section {
        padding-top: 10px;
        min-height: 400px; /* Adjust min height for mobile */
    }
    .page-blog__hero-image img {
        object-fit: contain !important;
        aspect-ratio: unset !important;
        height: auto !important;
        max-height: 250px; /* Limit hero image height on mobile */
    }
    .page-blog__hero-content {
        padding: 40px 15px 30px;
        background: rgba(0, 0, 0, 0.6); /* Stronger overlay for mobile readability */
        border-radius: 0;
    }
    .page-blog__main-title {
        font-size: clamp(1.8em, 6vw, 2.5em);
        margin-bottom: 15px;
    }
    .page-blog__description {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-blog__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 15px;
        box-sizing: border-box !important;
    }
    .page-blog__btn-primary,
    .page-blog__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* 通用图片与容器 */
    .page-blog img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }
    .page-blog__container,
    .page-blog__content-area,
    .page-blog__articles-section,
    .page-blog__benefits-section,
    .page-blog__about-lotte92,
    .page-blog__faq-section,
    .page-blog__final-cta {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* 产品展示图区域 (Articles Grid) */
    .page-blog__articles-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 20px;
        overflow-x: hidden;
    }
    .page-blog__article-card {
        width: 100%;
    }
    .page-blog__article-image {
        height: 180px;
    }
    .page-blog__article-title {
        font-size: 1.2em;
    }
    .page-blog__article-excerpt {
        font-size: 0.9em;
    }

    /* 装饰主标题 + 长文 SEO 区 */
    .page-blog__section-title {
        font-size: 1.8em;
        margin-bottom: 25px;
    }
    .page-blog__section-intro {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-blog__about-lotte92 p {
        font-size: 1em;
        text-align: left;
    }

    /* Benefits Section */
    .page-blog__benefits-list {
        grid-template-columns: 1fr;
    }
    .page-blog__benefits-list li {
        font-size: 1em;
        padding: 15px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .page-blog__benefits-list li strong {
        margin-bottom: 5px;
    }
}