/* style/blog.css */

:root {
    --primary-color: #26A9E0;
    --secondary-color: #EA7C07;
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #ffffff;
    --bg-dark: #26A9E0;
    --border-color: #e0e0e0;
}

.page-blog {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

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

.page-blog__section-title {
    font-size: 2.5em;
    color: var(--primary-color);
    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: var(--secondary-color);
    border-radius: 2px;
}

/* Hero Section */
.page-blog__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: var(--bg-light);
}

.page-blog__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-blog__hero-image {
    width: 100%;
    margin-bottom: 30px;
}

.page-blog__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

.page-blog__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.page-blog__hero-content h1 {
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--primary-color);
    margin-bottom: 20px;
    /* Using clamp for responsive font-size, avoiding fixed large values */
    font-size: clamp(2.2em, 5vw, 3.2em);
}

.page-blog__hero-content p {
    font-size: 1.1em;
    color: var(--text-dark);
    max-width: 800px;
    margin: 0 auto 30px auto;
}

.page-blog__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--primary-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    margin-top: 15px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-blog__cta-button:hover {
    background: #1e87c0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-blog__cta-button--secondary {
    background: var(--secondary-color);
}

.page-blog__cta-button--secondary:hover {
    background: #c26505;
}

/* Intro Section */
.page-blog__intro-section {
    padding: 60px 0;
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.page-blog__intro-section p {
    font-size: 1.05em;
    margin-bottom: 1.5em;
    text-align: justify;
}

.page-blog__intro-section strong {
    color: var(--primary-color);
}

/* Blog Posts Section */
.page-blog__posts-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

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

.page-blog__post-card {
    background: var(--bg-light);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-blog__post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-blog__post-card img {
    width: 100%;
    height: 220px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-blog__post-card .page-blog__post-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-blog__post-card h3 {
    font-size: 1.4em;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 10px;
    line-height: 1.3;
}

.page-blog__post-card p {
    font-size: 0.95em;
    color: #555;
    margin-bottom: 15px;
    flex-grow: 1;
}

.page-blog__post-card .page-blog__post-date {
    font-size: 0.85em;
    color: #888;
    text-align: right;
}

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

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

/* CTA Section */
.page-blog__cta-section {
    padding: 80px 0;
    background-color: var(--bg-dark);
    color: var(--text-light);
    text-align: center;
}

.page-blog__cta-section .page-blog__section-title {
    color: var(--text-light);
}

.page-blog__cta-section .page-blog__section-title::after {
    background-color: var(--secondary-color);
}

.page-blog__cta-section p {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

/* FAQ Section */
.page-blog__faq-section {
    padding: 60px 0;
    background-color: var(--bg-light);
}

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

details.page-blog__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    background: var(--bg-light);
}

details.page-blog__faq-item summary.page-blog__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease;
    color: var(--text-dark);
}

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.1em;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: var(--primary-color);
}

.page-blog__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: #666;
    flex-shrink: 0;
    margin-left: 15px;
    width: 28px;
    text-align: center;
}

details.page-blog__faq-item .page-blog__faq-answer {
    padding: 0 20px 20px;
    background: #f9f9f9;
    border-radius: 0 0 5px 5px;
    color: var(--text-dark);
}

.page-blog__faq-answer p {
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-blog__section-title {
        font-size: 2em;
    }
    .page-blog__hero-content h1 {
        font-size: clamp(2em, 4.5vw, 2.8em);
    }
}

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

    .page-blog__hero-section {
        padding-top: 10px !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-blog__hero-image img {
        border-radius: 4px;
    }

    .page-blog__hero-content h1 {
        font-size: clamp(1.8em, 7vw, 2.5em);
        margin-bottom: 15px;
    }

    .page-blog__hero-content p {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-blog__cta-button {
        padding: 12px 30px;
        font-size: 1em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    
    .page-blog__cta-section .page-blog__cta-button {
        padding-left: 15px;
        padding-right: 15px;
    }

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

    .page-blog__intro-section, .page-blog__posts-section, .page-blog__cta-section, .page-blog__faq-section {
        padding: 40px 0;
    }

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

    .page-blog__post-card h3 {
        font-size: 1.2em;
    }

    .page-blog__faq-item summary.page-blog__faq-question {
        padding: 15px;
    }

    .page-blog__faq-qtext {
        font-size: 1em;
    }

    .page-blog__faq-toggle {
        font-size: 20px;
    }

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

    /* Mobile image responsiveness */
    .page-blog img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }

    .page-blog__post-card img {
         /* Adjust height for mobile */
    }

    .page-blog__hero-image, .page-blog__post-card, .page-blog__cta-section, .page-blog__faq-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

@media (max-width: 480px) {
    .page-blog__section-title {
        font-size: 1.5em;
    }
    .page-blog__hero-content h1 {
        font-size: clamp(1.5em, 8vw, 2em);
    }
    .page-blog__cta-button {
        font-size: 0.95em;
        padding: 10px 25px;
    }
}