/* style/blog.css */

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

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

.page-blog__section-title {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    font-weight: 700;
    color: #F2FFF6; /* Text Main */
    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: linear-gradient(90deg, #11A84E, #22C768);
    border-radius: 2px;
}

/* Hero Section */
.page-blog__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 0 60px 0; /* Small top padding, larger bottom padding */
    overflow: hidden;
}

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

.page-blog__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.5); /* Darken image for text readability */
}

.page-blog__hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
    box-sizing: border-box;
}

.page-blog__main-title {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 800;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-blog__hero-description {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Buttons */
.page-blog__btn-primary,
.page-blog__btn-secondary {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    margin: 10px;
    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;
    box-shadow: 0 4px 15px rgba(34, 199, 104, 0.4);
}

.page-blog__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(34, 199, 104, 0.6);
}

.page-blog__btn-secondary {
    background-color: transparent;
    color: #2AD16F; /* Main brand color for text */
    border: 2px solid #2AD16F; /* Border */
}

.page-blog__btn-secondary:hover {
    background-color: #2AD16F;
    color: #08160F; /* Background color for text on hover */
    transform: translateY(-3px);
}

/* Articles Grid */
.page-blog__articles-grid,
.page-blog__news-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: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-blog__article-card:hover,
.page-blog__news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

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

.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.4rem;
    font-weight: 700;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 10px;
    line-height: 1.4;
}

.page-blog__article-title a,
.page-blog__news-title a {
    color: inherit;
    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.9rem;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 15px;
}

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

.page-blog__read-more {
    display: inline-block;
    color: #2AD16F; /* Main brand color */
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

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

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

/* About Section */
.page-blog__about-pg88 {
    padding: 60px 0;
    background-color: #0A4B2C; /* Deep Green */
    text-align: center;
}

.page-blog__about-content p {
    max-width: 800px;
    margin: 0 auto 20px auto;
    font-size: 1.1rem;
    color: #F2FFF6; /* Text Main */
}

.page-blog__about-content .page-blog__btn-primary {
    margin-top: 30px;
}

/* CTA Download Section */
.page-blog__cta-download {
    padding: 80px 0;
    text-align: center;
}

.page-blog__cta-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 20px;
}

.page-blog__cta-description {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.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;
    transition: all 0.3s ease;
}

.page-blog__faq-item summary {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.15rem;
    color: #F2FFF6; /* Text Main */
    transition: background-color 0.3s ease;
}

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

.page-blog__faq-item summary:hover {
    background-color: #0A4B2C; /* Deep Green */
}

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

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

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

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-blog__hero-image {
        height: 600px;
    }
}

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

    .page-blog__container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-blog__hero-section {
        padding-bottom: 40px;
    }

    .page-blog__hero-image {
        height: 400px;
    }

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

    .page-blog__hero-description {
        font-size: clamp(0.9rem, 3vw, 1.1rem);
    }

    .page-blog__btn-primary,
    .page-blog__btn-secondary {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 10px 0 !important;
        padding: 12px 20px !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    
    .page-blog__cta-download .page-blog__container .page-blog__cta-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .page-blog__articles-grid,
    .page-blog__news-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .page-blog__article-card,
    .page-blog__news-card {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }

    .page-blog__article-image,
    .page-blog__news-image {
        height: 180px;
    }

    .page-blog__article-content,
    .page-blog__news-content {
        padding: 20px;
    }

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

    .page-blog__section-title {
        font-size: clamp(1.5rem, 6vw, 2.2rem);
        margin-bottom: 30px;
    }

    .page-blog__about-pg88,
    .page-blog__cta-download,
    .page-blog__faq-section {
        padding: 40px 0;
    }

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

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

    /* Mobile image rules */
    .page-blog img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    
    .page-blog__section,
    .page-blog__card,
    .page-blog__container {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
    }
    
    .page-blog__hero-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }

    .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;
    }
}

@media (max-width: 480px) {
    .page-blog__hero-image {
        height: 300px;
    }
    .page-blog__hero-section {
        padding-top: 10px !important;
        padding-bottom: 30px;
    }
    .page-blog__article-image,
    .page-blog__news-image {
        height: 150px;
    }
    .page-blog__article-title,
    .page-blog__news-title {
        font-size: 1.1rem;
    }
    .page-blog__faq-item summary {
        font-size: 0.95rem;
    }
}