:root {
    --primary-color: #E53935;
    --secondary-color: #FF5A4F;
    --text-main-color: #333333;
    --card-bg-color: #FFFFFF;
    --background-color: #F5F7FA;
    --border-color: #E0E0E0;
    --button-gradient: linear-gradient(180deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    --header-offset: 122px; /* Default value, assumed to be handled by shared.css body padding-top */
}

.page-blog {
    font-family: 'Arial', sans-serif;
    color: var(--text-main-color); /* Default text color on light background */
    background-color: var(--background-color);
}

/* Hero Section */
.page-blog__hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: var(--primary-color); /* Use primary color for background */
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.page-blog__hero-image-wrapper {
    width: 100%;
    max-height: 600px;
    overflow: hidden;
}

.page-blog__hero-image {
    width: 100%;
    height: 600px; /* Adjust height for desktop */
    object-fit: cover; /* Cover for desktop to fill width */
    display: block;
}

.page-blog__hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin-top: 20px; /* Space below image */
    padding: 0 20px;
    color: var(--card-bg-color); /* White text on primary color background */
}

.page-blog__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: var(--card-bg-color); /* White text */
}

.page-blog__hero-description {
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: var(--card-bg-color); /* White text */
}

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

/* General Section Styling */
.page-blog__section {
    padding: 50px 0;
    margin-bottom: 20px;
}

.page-blog__section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color); /* Primary color for titles */
}

.page-blog__section-description {
    font-size: 1.1rem;
    line-height: 1.6;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px auto;
}

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

/* Buttons */
.page-blog__btn-primary,
.page-blog__btn-secondary,
.page-blog a[class*="button"],
.page-blog a[class*="btn"] {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-align: center;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    box-sizing: border-box;
}

.page-blog__btn-primary {
    background: var(--button-gradient);
    color: var(--card-bg-color);
    border: none;
    box-shadow: 0 4px 15px rgba(229, 57, 53, 0.3);
}

.page-blog__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.page-blog__btn-secondary {
    background: var(--card-bg-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-blog__btn-secondary:hover {
    background: var(--primary-color);
    color: var(--card-bg-color);
    transform: translateY(-2px);
}

/* Latest Articles Grid */
.page-blog__latest-articles {
    background-color: var(--card-bg-color); /* White background for article cards */
}

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

.page-blog__article-card {
    background-color: var(--card-bg-color);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%; /* Ensure cards are same height */
    display: flex;
    flex-direction: column;
}

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

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

.page-blog__article-thumbnail {
    width: 100%;
    height: 200px; /* Fixed height for thumbnails */
    object-fit: cover;
    display: block;
}

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

.page-blog__article-title {
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 10px;
    color: var(--primary-color); /* Primary color for article titles */
    flex-grow: 1;
}

.page-blog__article-excerpt {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-main-color);
    margin-bottom: 15px;
}

.page-blog__article-date {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 15px;
}

.page-blog__read-more-btn {
    display: inline-block;
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-blog__read-more-btn:hover {
    color: var(--primary-color);
}

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

/* Categories Section */
.page-blog__categories {
    background-color: var(--background-color);
}

.page-blog__category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 25px;
    text-align: center;
}

.page-blog__category-card {
    background-color: var(--card-bg-color);
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    padding: 25px;
    text-decoration: none;
    color: var(--text-main-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

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

.page-blog__category-icon {
    width: 100px; /* Specific size for category icons */
    height: 100px;
    object-fit: contain;
    margin-bottom: 15px;
    display: block; /* Ensure it behaves as a block element */
}

.page-blog__category-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 10px;
}

/* Call to Action Section */
.page-blog__cta-section {
    background-color: var(--primary-color);
    color: var(--card-bg-color);
    padding: 60px 0;
    text-align: center;
}

.page-blog__cta-section .page-blog__section-title,
.page-blog__cta-section .page-blog__section-description {
    color: var(--card-bg-color); /* White text on primary background */
}

.page-blog__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
    width: 100%; /* Ensure container fills width for mobile */
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* FAQ Section */
.page-blog__faq-section {
    background-color: var(--card-bg-color);
}

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

.page-blog__faq-item {
    background-color: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--text-main-color);
}

.page-blog__faq-item summary {
    list-style: none; /* Hide default marker */
    cursor: pointer;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary-color);
    transition: background-color 0.3s ease;
}

.page-blog__faq-item summary:hover {
    background-color: #f9f9f9;
}

.page-blog__faq-item summary::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}

.page-blog__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}