/* style/blog.css */

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

.page-blog__section {
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

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

.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;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    text-align: center;
    overflow: hidden;
    background-color: #08160F; /* Background */
}

.page-blog__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.page-blog__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    display: block;
    filter: brightness(0.6);
}

.page-blog__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    color: #F2FFF6; /* Text Main */
}

.page-blog__main-title {
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #F2FFF6; /* Text Main */
    /* Using clamp for responsive font-size without fixed large values */
    font-size: clamp(2em, 5vw, 3.5em);
}

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

/* Buttons */
.page-blog__btn-primary,
.page-blog__btn-secondary,
.page-blog__read-more-btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

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

.page-blog__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

.page-blog__btn-secondary {
    background-color: transparent;
    color: #11A84E; /* Main Color */
    border: 2px solid #11A84E; /* Main Color */
    margin-left: 15px;
}

.page-blog__btn-secondary:hover {
    background-color: #11A84E; /* Main Color */
    color: #F2FFF6; /* Text Main */
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(17, 168, 78, 0.4);
}

/* Latest Articles Section */
.page-blog__latest-articles {
    background-color: #08160F; /* Background */
}

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

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

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

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

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

.page-blog__article-date {
    font-size: 0.9em;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 10px;
    display: block;
}

.page-blog__article-title {
    font-size: 1.4em;
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.3;
    flex-grow: 1;
}

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

.page-blog__article-title a:hover {
    color: #2AD16F; /* Button top color for hover */
}

.page-blog__article-excerpt {
    font-size: 1em;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 20px;
}

.page-blog__read-more-btn {
    align-self: flex-start;
    background-color: transparent;
    color: #22C768; /* Auxiliary Color */
    border: 1px solid #22C768; /* Auxiliary Color */
    padding: 8px 18px;
    font-size: 0.9em;
}

.page-blog__read-more-btn:hover {
    background-color: #22C768; /* Auxiliary Color */
    color: #F2FFF6; /* Text Main */
}

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

/* Featured Article Section */
.page-blog__featured-article-section {
    background-color: #11271B; /* Card BG */
    padding: 80px 0;
}

.page-blog__featured-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.page-blog__featured-content h2 {
    text-align: left;
    margin-bottom: 30px;
}

.page-blog__featured-content h3 {
    color: #2AD16F; /* Button top color */
    font-size: 1.6em;
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-blog__featured-content p,
.page-blog__featured-content li {
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 15px;
}

.page-blog__featured-content ul,
.page-blog__featured-content ol {
    list-style-position: inside;
    padding-left: 20px;
    margin-bottom: 20px;
}

.page-blog__featured-content ul li::marker {
    color: #2AD16F; /* Button top color */
}

.page-blog__featured-content ol li::marker {
    color: #2AD16F; /* Button top color */
}

.page-blog__featured-content a {
    color: #2AD16F;
    text-decoration: underline;
}

.page-blog__featured-content a:hover {
    color: #57E38D; /* Glow */
}

.page-blog__cta-group {
    display: flex;
    gap: 20px;
    margin-top: 40px;
}

.page-blog__featured-image-wrapper {
    text-align: center;
}

.page-blog__featured-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    display: block;
}

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

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

.page-blog__category-card {
    background-color: #11271B; /* Card BG */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    text-decoration: none;
    color: #F2FFF6; /* Text Main */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, background-color 0.3s ease;
    border: 1px solid #2E7A4E; /* Border */
}

.page-blog__category-card:hover {
    transform: translateY(-5px);
    background-color: #1E3A2A; /* Divider for subtle hover */
}

.page-blog__category-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #2AD16F; /* Button top color */
}

.page-blog__category-description {
    color: #A7D9B8; /* Text Secondary */
    font-size: 0.95em;
}

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

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

.page-blog__faq-item {
    background-color: #08160F; /* Background */
    border: 1px solid #2E7A4E; /* Border */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #F2FFF6; /* Text Main */
}

.page-blog__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-weight: bold;
    font-size: 1.1em;
    cursor: pointer;
    list-style: none;
    color: #F2FFF6; /* Text Main */
}

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

.page-blog__faq-item summary:hover {
    background-color: #1E3A2A; /* Divider for subtle hover */
}

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

.page-blog__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 20px;
    color: #2AD16F; /* Button top color */
}

.page-blog__faq-item[open] .page-blog__faq-toggle {
    content: '−';
}

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

.page-blog__faq-answer p {
    margin-bottom: 0;
    color: #A7D9B8;
}

.page-blog__faq-answer a {
    color: #2AD16F;
    text-decoration: underline;
}

.page-blog__faq-answer a:hover {
    color: #57E38D;
}

/* Final CTA Section */
.page-blog__cta-section {
    background-color: #08160F; /* Background */
    text-align: center;
    padding: 80px 0;
}

.page-blog__cta-content {
    max-width: 800px;
}

.page-blog__cta-content h2 {
    margin-bottom: 20px;
}

.page-blog__cta-content p {
    font-size: 1.1em;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 40px;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-blog__featured-grid {
        grid-template-columns: 1fr;
    }
    .page-blog__featured-image-wrapper {
        order: -1;
        margin-bottom: 40px;
    }
    .page-blog__featured-content h2 {
        text-align: center;
    }
    .page-blog__btn-secondary {
        margin-left: 0;
    }
}

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

    .page-blog__container {
        padding: 0 15px;
    }

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

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

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

    /* Images responsive */
    .page-blog img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-blog__hero-image {
        width: 100% !important;
        height: 100% !important;
    }

    /* Image containers responsive */
    .page-blog__hero-image-wrapper,
    .page-blog__article-card,
    .page-blog__featured-image-wrapper,
    .page-blog__category-card,
    .page-blog__faq-item,
    .page-blog__cta-section,
    .page-blog__section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-blog__latest-articles .page-blog__container,
    .page-blog__featured-article-section .page-blog__container,
    .page-blog__categories-section .page-blog__container,
    .page-blog__faq-section .page-blog__container,
    .page-blog__cta-section .page-blog__container {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Buttons responsive */
    .page-blog__btn-primary,
    .page-blog__btn-secondary,
    .page-blog__read-more-btn {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .page-blog__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }

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

    .page-blog__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important;
    }

    .page-blog__hero-content {
        padding: 0;
    }

    .page-blog__articles-grid,
    .page-blog__categories-grid {
        grid-template-columns: 1fr;
    }

    .page-blog__article-card,
    .page-blog__category-card {
        margin: 0 auto;
        width: calc(100% - 30px);
    }

    .page-blog__faq-item summary {
        font-size: 1em;
        padding: 15px 20px;
    }

    .page-blog__faq-answer {
        padding: 0 20px 15px;
    }
}

@media (max-width: 480px) {
    .page-blog__section-title {
        font-size: 1.8em;
    }
    .page-blog__main-title {
        font-size: clamp(1.6em, 8vw, 2.2em);
    }
    .page-blog__article-title {
        font-size: 1.2em;
    }
    .page-blog__category-title {
        font-size: 1.3em;
    }
}