/* style/blog.css */

/* --- Base Styles --- */
.page-blog {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #F2FFF6; /* Text Main for dark background */
    background-color: #08160F; /* Background */
}

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

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

.page-blog__section-title {
    font-size: 2.5em;
    color: #F2FFF6; /* Text Main */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
}

/* --- Hero Section --- */
.page-blog__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    background-color: #08160F; /* Ensure background matches body */
}

.page-blog__hero-image {
    width: 100%;
    height: auto;
    max-height: 675px; /* Adjust based on typical hero aspect ratio */
    object-fit: cover;
    display: block;
    margin-bottom: 40px; /* Space between image and text */
}

.page-blog__hero-content {
    text-align: center;
    position: relative; /* Ensure content is not absolutely positioned over image */
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.page-blog__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive H1 */
    color: #F2FFF6; /* Text Main */
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-blog__description {
    font-size: 1.1em;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 30px;
}

.page-blog__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-blog__btn-primary,
.page-blog__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box; /* Crucial for responsive buttons */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow long words to break */
    text-align: center;
}

.page-blog__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button color */
    color: #F2FFF6; /* Text Main */
    border: 2px solid transparent;
}

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

.page-blog__btn-secondary {
    background: #11271B; /* Card BG */
    color: #2AD16F; /* A lighter green for contrast */
    border: 2px solid #2E7A4E; /* Border */
}

.page-blog__btn-secondary:hover {
    background: #2E7A4E; /* Border */
    color: #F2FFF6; /* Text Main */
}

/* --- Welcome Section --- */
.page-blog__welcome-section p {
    font-size: 1.05em;
    margin-bottom: 15px;
    color: #F2FFF6; /* Text Main */
}

.page-blog__welcome-section strong {
    color: #57E38D; /* Glow */
}

/* --- Guides and News Sections (Grid Layout) --- */
.page-blog__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.page-blog__article-card,
.page-blog__news-card {
    background-color: #11271B; /* Card BG */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-blog__article-image,
.page-blog__news-image {
    width: 100%;
    height: 220px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    /* No filter allowed */
}

.page-blog__article-content,
.page-blog__news-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-blog__article-title,
.page-blog__news-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    line-height: 1.3;
}

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

.page-blog__article-title a:hover,
.page-blog__news-title a:hover {
    color: #57E38D; /* Glow */
}

.page-blog__article-meta,
.page-blog__news-meta {
    font-size: 0.9em;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 15px;
}

.page-blog__article-excerpt,
.page-blog__news-excerpt {
    font-size: 1em;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-blog__read-more-link {
    color: #2AD16F; /* A vibrant green for links */
    text-decoration: none;
    font-weight: bold;
    align-self: flex-start;
    transition: color 0.3s ease;
}

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

.page-blog__read-more-link--light {
    color: #F2FFF6; /* For dark section */
}

.page-blog__read-more-link--light:hover {
    color: #57E38D; /* Glow */
}

.page-blog__view-all {
    text-align: center;
    margin-top: 20px;
}

/* --- Dark Section Specifics --- */
.page-blog__dark-section {
    background-color: #0A4B2C; /* Deep Green */
    color: #F2FFF6; /* Text Main */
}

/* --- Tips Section --- */
.page-blog__content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.page-blog__tip-item {
    background-color: #11271B; /* Card BG */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-blog__tip-title {
    font-size: 1.5em;
    color: #57E38D; /* Glow */
    margin-bottom: 15px;
    line-height: 1.3;
}

.page-blog__tip-item p {
    color: #F2FFF6; /* Text Main */
    margin-bottom: 10px;
}

/* --- FAQ Section --- */
.page-blog__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.page-blog__faq-item {
    background-color: #11271B; /* Card BG */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.page-blog__faq-item[open] {
    background-color: #0A4B2C; /* Deep Green */
}

.page-blog__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: #F2FFF6; /* Text Main */
    list-style: none; /* Remove default marker */
    transition: color 0.3s ease;
}

.page-blog__faq-question::-webkit-details-marker {
    display: none; /* Remove default marker for Webkit browsers */
}

.page-blog__faq-question:hover {
    color: #57E38D; /* Glow */
}

.page-blog__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: #57E38D; /* Glow */
}

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

.page-blog__faq-answer p {
    margin-bottom: 10px;
}

/* --- Conclusion Section --- */
.page-blog__conclusion-section {
    text-align: center;
}

.page-blog__conclusion-section p {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #F2FFF6; /* Text Main */
}

.page-blog__conclusion-section a {
    color: #57E38D; /* Glow */
    text-decoration: underline;
}

.page-blog__conclusion-section a:hover {
    color: #2AD16F;
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
    .page-blog__hero-image {
        max-height: 500px;
    }
    .page-blog__main-title {
        font-size: clamp(2rem, 4vw, 3rem);
    }
    .page-blog__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-blog__hero-section {
        padding-bottom: 40px;
    }
    .page-blog__hero-image {
        margin-bottom: 20px;
        max-height: 400px;
    }
    .page-blog__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }
    .page-blog__description {
        font-size: 1em;
    }
    .page-blog__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-blog__btn-primary,
    .page-blog__btn-secondary {
        width: 100% !important; /* Force full width on mobile */
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
    }

    .page-blog__section {
        padding: 40px 0;
    }
    .page-blog__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    /* Images responsiveness */
    .page-blog img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Container responsiveness */
    .page-blog__section,
    .page-blog__article-card,
    .page-blog__news-card,
    .page-blog__tip-item,
    .page-blog__faq-item,
    .page-blog__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }

    .page-blog__article-image,
    .page-blog__news-image {
        height: 180px; /* Adjust height for mobile cards */
    }

    .page-blog__article-title,
    .page-blog__news-title {
        font-size: 1.2em;
    }

    .page-blog__tip-title {
        font-size: 1.3em;
    }

    .page-blog__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-blog__faq-answer {
        padding: 0 20px 15px 20px;
    }
    .page-blog__faq-toggle {
        font-size: 1.2em;
    }

    /* Ensure multiple buttons wrap */
    .page-blog__cta-buttons {
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .page-blog__hero-image {
        max-height: 300px;
    }
    .page-blog__main-title {
        font-size: clamp(1.5rem, 8vw, 2rem);
    }
    .page-blog__section-title {
        font-size: 1.5em;
    }
    .page-blog__grid {
        grid-template-columns: 1fr; /* Single column on very small screens */
    }
}