/* style/blog.css */

/* Base styles for the blog page */
.page-blog {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #F2FFF6; /* Text Main */
    background-color: #08160F; /* Background */
    padding-top: 10px; /* Small top padding for the first section, body handles --header-offset */
}

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

.page-blog__section-title {
    font-size: 2.5rem;
    color: #F2C14E; /* Gold */
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-blog__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #22C768; /* Auxiliary color */
    border-radius: 2px;
}

.page-blog__sub-title {
    font-size: 1.8rem;
    color: #22C768; /* Auxiliary color */
    margin-top: 40px;
    margin-bottom: 20px;
}

.page-blog__text-block {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #F2FFF6; /* Text Main */
}

.page-blog__text-block strong {
    color: #F2C14E; /* Gold */
}

/* Hero Section */
.page-blog__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 0;
    margin-top: 0; /* body padding-top handles header offset */
}

.page-blog__hero-image-wrapper {
    width: 100%;
    max-height: 500px; /* Limit height for hero image */
    overflow: hidden;
    position: relative;
}

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

.page-blog__hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    padding: 40px 20px;
    margin-top: -100px; /* Overlap slightly with image for visual flow */
    background: #11271B; /* Card BG */
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.page-blog__main-title {
    font-size: clamp(2rem, 4vw, 3rem); /* Responsive font size */
    color: #F2C14E; /* Gold */
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 700;
}

.page-blog__hero-description {
    font-size: 1.15rem;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 30px;
}

.page-blog__hero-cta {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: background 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
}

.page-blog__hero-cta:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    transform: translateY(-3px);
}

/* Latest Posts Grid */
.page-blog__latest-posts {
    background-color: #08160F; /* Background */
}

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

.page-blog__post-card {
    background-color: #11271B; /* Card BG */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #2E7A4E; /* Border */
}

.page-blog__post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 15px #57E38D; /* Glow */
}

.page-blog__post-thumbnail {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.page-blog__post-content {
    padding: 20px;
}

.page-blog__post-title {
    font-size: 1.4rem;
    margin-bottom: 10px;
    min-height: 70px;
}

.page-blog__post-title a {
    color: #F2FFF6; /* Text Main */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-blog__post-title a:hover {
    color: #22C768; /* Auxiliary color */
}

.page-blog__post-meta {
    font-size: 0.9rem;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 15px;
}

.page-blog__post-excerpt {
    font-size: 1rem;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 20px;
}

.page-blog__read-more {
    display: inline-block;
    color: #22C768; /* Auxiliary color */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-blog__read-more:hover {
    color: #57E38D; /* Glow */
    text-decoration: underline;
}

.page-blog__all-posts-cta {
    text-align: center;
    margin-top: 50px;
}

/* General Content Section */
.page-blog__content-section {
    background-color: #08160F; /* Background */
}

.page-blog__feature-list, .page-blog__guide-list, .page-blog__support-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 30px;
}

.page-blog__feature-list li, .page-blog__guide-list li, .page-blog__support-list li {
    background-color: #11271B; /* Card BG */
    border: 1px solid #2E7A4E; /* Border */
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    color: #F2FFF6; /* Text Main */
}

.page-blog__feature-list li::before, .page-blog__guide-list li::before, .page-blog__support-list li::before {
    content: '✅';
    margin-right: 15px;
    font-size: 1.2rem;
    line-height: 1;
}

.page-blog__feature-list li strong, .page-blog__guide-list li strong, .page-blog__support-list li strong {
    color: #22C768; /* Auxiliary color */
}

/* CTA Buttons */
.page-blog__cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 50px;
}

.page-blog__btn-primary, .page-blog__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1rem;
    text-decoration: none;
    text-align: center;
    transition: background 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.page-blog__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #ffffff;
}

.page-blog__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    transform: translateY(-3px);
}

.page-blog__btn-secondary {
    background: transparent;
    color: #22C768; /* Auxiliary color */
    border-color: #2E7A4E; /* Border */
}

.page-blog__btn-secondary:hover {
    background-color: #1E3A2A; /* Divider */
    border-color: #22C768; /* Auxiliary color */
    transform: translateY(-3px);
}

/* FAQ Section */
.page-blog__faq-section {
    background-color: #08160F; /* Background */
}

.page-blog__faq-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.page-blog__faq-item {
    background-color: #11271B; /* Card BG */
    border: 1px solid #2E7A4E; /* Border */
    border-radius: 10px;
    overflow: hidden;
    color: #F2FFF6; /* Text Main */
    transition: box-shadow 0.3s ease;
}

.page-blog__faq-item:hover {
    box-shadow: 0 0 15px #57E38D; /* Glow */
}

.page-blog__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    list-style: none; /* For details/summary */
}

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

.page-blog__faq-qtext {
    flex-grow: 1;
    color: #22C768; /* Auxiliary color */
}

.page-blog__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 20px;
    color: #F2C14E; /* Gold */
}

.page-blog__faq-answer {
    padding: 0 20px 20px;
    font-size: 1.05rem;
    color: #A7D9B8; /* Text Secondary */
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-blog__hero-content {
        max-width: 700px;
        margin-top: -80px;
    }
    .page-blog__posts-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-blog__section {
        padding: 40px 15px;
    }

    .page-blog__section-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .page-blog__sub-title {
        font-size: 1.5rem;
        margin-top: 30px;
        margin-bottom: 15px;
    }

    .page-blog__hero-content {
        max-width: 90%;
        padding: 30px 15px;
        margin-top: -60px;
    }

    .page-blog__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }

    .page-blog__hero-description {
        font-size: 1rem;
    }

    .page-blog__hero-cta {
        padding: 12px 25px;
        font-size: 1rem;
    }

    .page-blog__posts-grid {
        grid-template-columns: 1fr;
    }

    .page-blog__post-title {
        font-size: 1.2rem;
        min-height: auto;
    }

    .page-blog__post-excerpt {
        font-size: 0.95rem;
    }

    .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: 12px 15px;
    }

    .page-blog__cta-group {
        flex-direction: column;
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-blog__feature-list li,
    .page-blog__guide-list li,
    .page-blog__support-list li {
        padding: 12px 15px;
        font-size: 0.95rem;
    }

    .page-blog__faq-question {
        font-size: 1.05rem;
        padding: 15px;
    }

    .page-blog__faq-answer {
        font-size: 0.95rem;
        padding: 0 15px 15px;
    }

    /* Mobile image and video responsive */
    .page-blog img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    
    .page-blog video,
    .page-blog__video {
      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__hero-image-wrapper,
    .page-blog__posts-grid,
    .page-blog__post-card,
    .page-blog__faq-section,
    .page-blog__faq-list,
    .page-blog__faq-item,
    .page-blog__cta-group,
    .page-blog__video-section,
    .page-blog__video-container,
    .page-blog__video-wrapper {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      overflow-x: hidden !important; /* Ensure no horizontal scroll */
    }

    .page-blog__video-section {
      padding-top: 10px !important;
    }

    .page-blog__hero-section {
        padding-left: 0;
        padding-right: 0;
    }
    .page-blog__hero-content {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 480px) {
    .page-blog__section-title {
        font-size: 1.8rem;
    }

    .page-blog__hero-content {
        margin-top: -40px;
    }

    .page-blog__main-title {
        font-size: clamp(1.6rem, 7vw, 2rem);
    }

    .page-blog__hero-description {
        font-size: 0.95rem;
    }
}