:root {
    --primary-color: #F2C14E; /* Main color */
    --secondary-color: #FFD36B; /* Accent color / Glow */
    --card-bg: #111111; /* Card Background */
    --body-bg: #0A0A0A; /* Background */
    --text-main: #FFF6D6; /* Main text color */
    --border-color: #3A2A12; /* Border color */
    --button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
}

.page-blog {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main); /* Default text color for the page, assuming dark body background */
    background-color: var(--body-bg); /* Explicitly set body-like background */
}

/* 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 */
    color: #ffffff; /* Ensure hero text is white for contrast against potential dark image/overlay */
}

.page-blog__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%; /* Ensure full width on desktop for flex */
}

.page-blog__hero-image {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

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

.page-blog__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 800px;
    margin-top: -80px; /* Overlap slightly for visual interest, but not text on image */
    background: rgba(17, 17, 17, 0.8); /* Card BG with transparency */
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
}

.page-blog__main-title {
    font-size: clamp(28px, 4vw, 48px); /* H1 font-size with clamp */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: var(--secondary-color); /* Use accent color for H1 */
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.page-blog__subtitle {
    font-size: clamp(16px, 2vw, 20px);
    margin-bottom: 30px;
    color: var(--text-main);
}

.page-blog__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--button-gradient);
    color: #ffffff;
    text-decoration: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: none;
    cursor: pointer;
    white-space: normal; /* Ensure text wraps */
    word-wrap: break-word; /* Ensure text wraps */
}

.page-blog__cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    opacity: 0.9;
}

.page-blog__cta-button--secondary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    box-shadow: none;
}

.page-blog__cta-button--secondary:hover {
    background: rgba(242, 193, 78, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* General Content Section */
.page-blog__content-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 40px 20px;
    background-color: var(--body-bg); /* Explicitly set content section background */
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

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

.page-blog__section-title {
    font-size: clamp(24px, 3vw, 36px);
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.page-blog__text-block {
    margin-bottom: 30px;
    font-size: 17px;
    color: var(--text-main);
}

.page-blog__text-block p {
    margin-bottom: 15px;
    line-height: 1.8;
}

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

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

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

.page-blog__post-thumbnail {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    overflow: hidden;
}

.page-blog__post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.page-blog__post-card:hover .page-blog__post-thumbnail img {
    transform: scale(1.05);
}

.page-blog__post-info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    color: var(--text-main);
}

.page-blog__post-title {
    font-size: 22px;
    margin-top: 0;
    margin-bottom: 10px;
    line-height: 1.4;
    font-weight: 600;
}

.page-blog__post-title a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-blog__post-title a:hover {
    color: var(--primary-color);
}

.page-blog__post-meta {
    font-size: 14px;
    color: #a0a0a0;
    margin-bottom: 15px;
}

.page-blog__post-excerpt {
    font-size: 16px;
    color: #cccccc;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-blog__read-more-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-blog__read-more-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

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

/* Why Read Section */
.page-blog__why-read-section {
    background-color: var(--card-bg);
    margin: 40px auto;
    padding: 40px 20px;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

.page-blog__why-read-section .page-blog__section-title {
    color: var(--secondary-color);
}

.page-blog__why-read-section ul {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-blog__why-read-section ul li {
    background: rgba(255, 255, 255, 0.05);
    border-left: 4px solid var(--primary-color);
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    font-size: 17px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.page-blog__why-read-section ul li::before {
    content: '\2705'; /* Checkmark emoji */
    margin-right: 15px;
    font-size: 20px;
    color: var(--primary-color);
}

.page-blog__why-read-section ul li strong {
    color: var(--secondary-color);
}

/* FAQ Section */
.page-blog__faq-section {
    margin: 40px auto;
    padding: 40px 20px;
    background-color: var(--body-bg);
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

.page-blog__faq-section .page-blog__section-title {
    color: var(--primary-color);
}

details.page-blog__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    background: var(--card-bg);
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    color: var(--text-main);
}
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(--secondary-color);
    font-weight: 600;
}
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: rgba(255, 255, 255, 0.05);
}
.page-blog__faq-qtext {
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: var(--secondary-color);
}
.page-blog__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    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: rgba(255, 255, 255, 0.03);
    border-radius: 0 0 8px 8px;
    color: var(--text-main);
    font-size: 16px;
}
.page-blog__faq-answer p {
    margin: 0;
    padding-top: 10px;
}


/* CTA Section */
.page-blog__cta-section {
    background: var(--primary-color); /* Use primary color as background for high contrast */
    padding: 60px 20px;
    text-align: center;
    border-radius: 12px;
    margin: 40px auto 60px auto;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
}

.page-blog__dark-section {
    background: var(--primary-color);
    color: #ffffff; /* Forced white text for contrast */
}

.page-blog__cta-section .page-blog__section-title {
    color: #ffffff; /* White text for title */
    margin-bottom: 20px;
}

.page-blog__cta-section .page-blog__description {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: #ffffff;
}

.page-blog__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    width: 100%; /* Ensure full width on desktop for flex */
}

.page-blog__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: none;
    white-space: normal;
    word-wrap: break-word;
}

.page-blog__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    opacity: 0.9;
}

.page-blog__btn-secondary {
    background: #ffffff;
    color: var(--primary-color);
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid #ffffff; /* White border for contrast */
    white-space: normal;
    word-wrap: break-word;
}

.page-blog__btn-secondary:hover {
    background: #f0f0f0;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-blog__grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    .page-blog__hero-content {
        margin-top: -60px;
        padding: 25px;
    }
}

@media (max-width: 768px) {
    .page-blog__hero-section {
        padding-top: 10px !important; /* Keep small top padding */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-blog__hero-image {
        border-radius: 8px;
        margin-bottom: 20px;
    }
    .page-blog__hero-content {
        margin-top: -40px;
        padding: 20px;
        border-radius: 8px;
    }
    .page-blog__main-title {
        font-size: 28px;
    }
    .page-blog__subtitle {
        font-size: 16px;
    }
    .page-blog__cta-button {
        padding: 12px 30px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

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

    .page-blog__section-title {
        font-size: 24px;
        margin-bottom: 30px;
    }
    
    .page-blog__text-block {
        font-size: 15px;
    }

    .page-blog__post-card {
        margin-bottom: 20px;
    }
    .page-blog__post-thumbnail {
        height: 180px;
    }
    .page-blog__post-info {
        padding: 20px;
    }
    .page-blog__post-title {
        font-size: 18px;
    }
    .page-blog__post-excerpt {
        font-size: 15px;
    }

    .page-blog__why-read-section ul li {
        font-size: 15px;
        padding: 12px 15px;
    }
    .page-blog__why-read-section ul li::before {
        font-size: 18px;
        margin-right: 10px;
    }

    details.page-blog__faq-item summary.page-blog__faq-question {
        padding: 15px;
    }
    .page-blog__faq-qtext {
        font-size: 16px;
    }
    .page-blog__faq-toggle {
        font-size: 20px;
        width: 24px;
        height: 24px;
    }
    details.page-blog__faq-item .page-blog__faq-answer {
        padding: 0 15px 15px;
        font-size: 15px;
    }

    .page-blog__cta-section {
        padding: 40px 15px;
        margin: 30px auto 40px auto;
    }
    .page-blog__cta-section .page-blog__description {
        font-size: 16px;
    }
    .page-blog__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px; /* Add padding to container for buttons */
    }
    .page-blog__btn-primary,
    .page-blog__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 12px 20px;
        font-size: 16px;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Global image responsiveness for content area */
    .page-blog img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !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;
    }
}

/* Ensure no filter on images */
.page-blog img {
    filter: none !important;
}

/* Contrast fix if needed, though primary/secondary colors are chosen for this */
.page-blog__text-contrast-fix {
    color: #ffffff !important; /* For dark backgrounds */
    text-shadow: none !important;
}