:root {
    --primary-color: #FF8C1A;
    --secondary-color: #FFA53A;
    --bg-card: #17191F;
    --bg-main: #0D0E12;
    --text-main: #FFF3E6;
    --border-color: #A84F0C;
    --glow-color: #FFB04D;
    --deep-orange: #D96800;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: var(--bg-main);
    color: var(--text-main);
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

.page-blog h1,
.page-blog h2,
.page-blog h3 {
    color: var(--text-main);
    text-align: center;
    margin-bottom: 25px;
}

.page-blog h1 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-blog h2 {
    font-size: 2.5em;
    font-weight: 600;
    color: var(--secondary-color);
}

.page-blog h3 {
    font-size: 1.8em;
    font-weight: 500;
}

.page-blog p {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 1em;
    text-align: justify;
}

/* 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: var(--bg-card);
    border-radius: 10px;
    margin-bottom: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

.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;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

.page-blog__hero-content h1 {
    color: var(--text-main);
    margin-top: 0;
    margin-bottom: 20px;
    font-size: clamp(2em, 4vw, 3.5em);
}

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

.page-blog__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(180deg, var(--secondary-color) 0%, var(--deep-orange) 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 30px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-blog__cta-button:hover {
    background: linear-gradient(180deg, var(--deep-orange) 0%, var(--secondary-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

/* Introduction Section */
.page-blog__introduction-section {
    background-color: var(--bg-card);
    padding: 40px 20px;
    margin-bottom: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-blog__introduction-section h2 {
    color: var(--primary-color);
    font-size: 2.2em;
    margin-bottom: 20px;
}

.page-blog__introduction-section p {
    font-size: 1.05em;
    color: var(--text-main);
}

/* Recent Posts Section */
.page-blog__recent-posts {
    margin-bottom: 40px;
}

.page-blog__recent-posts h2 {
    color: var(--primary-color);
    font-size: 2.2em;
    margin-bottom: 30px;
}

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

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

.page-blog__blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-blog__blog-card-image {
    width: 100%;
    height: 220px; /* Fixed height for consistent card appearance */
    overflow: hidden;
}

.page-blog__blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.page-blog__blog-card:hover .page-blog__blog-card-image img {
    transform: scale(1.05);
}

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

.page-blog__blog-card-date {
    font-size: 0.9em;
    color: var(--secondary-color);
    margin-bottom: 10px;
    display: block;
}

.page-blog__blog-card-title {
    font-size: 1.4em;
    margin-top: 0;
    margin-bottom: 15px;
    line-height: 1.4;
}

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

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

.page-blog__blog-card-summary {
    font-size: 1em;
    color: var(--text-main);
    margin-bottom: 20px;
    flex-grow: 1;
    text-align: left;
}

.page-blog__blog-card-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    align-self: flex-start;
}

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

.page-blog__all-posts-cta {
    text-align: center;
    margin-top: 40px;
}

/* Categories Section */
.page-blog__categories-section {
    background-color: var(--bg-card);
    padding: 40px 20px;
    margin-bottom: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-blog__categories-section h2 {
    color: var(--primary-color);
    font-size: 2.2em;
    margin-bottom: 20px;
}

.page-blog__categories-section p {
    text-align: center;
    margin-bottom: 30px;
    color: var(--text-main);
}

.page-blog__category-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.page-blog__category-item a {
    display: block;
    padding: 12px 25px;
    background-color: var(--primary-color);
    color: #ffffff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    white-space: nowrap;
}

.page-blog__category-item a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

/* FAQ Section */
.page-blog__faq-section {
    margin-bottom: 40px;
}

.page-blog__faq-section h2 {
    color: var(--primary-color);
    font-size: 2.2em;
    margin-bottom: 30px;
}

details.page-blog__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    background: var(--bg-card);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

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

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(var(--primary-color), 0.1);
}

.page-blog__faq-qtext {
    flex: 1;
    font-size: 1.1em;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: var(--text-main);
}

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

details.page-blog__faq-item[open] .page-blog__faq-toggle {
    transform: rotate(45deg);
}

details.page-blog__faq-item .page-blog__faq-answer {
    padding: 0 20px 20px;
    background: rgba(var(--primary-color), 0.05);
    border-radius: 0 0 5px 5px;
    color: var(--text-main);
}

.page-blog__faq-answer p {
    margin-top: 0;
    margin-bottom: 0;
    text-align: left;
}

/* Final CTA Section */
.page-blog__cta-final-section {
    background-color: var(--bg-card);
    padding: 50px 20px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    margin-bottom: 40px;
}

.page-blog__cta-final-section h2 {
    color: var(--glow-color);
    font-size: 2.5em;
    margin-bottom: 20px;
}

.page-blog__cta-final-section p {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: var(--text-main);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-blog__posts-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-blog {
        padding: 10px;
    }

    .page-blog__container {
        padding: 10px;
    }

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

    .page-blog h2 {
        font-size: 2em;
        margin-bottom: 20px;
    }

    .page-blog h3 {
        font-size: 1.5em;
    }

    .page-blog p {
        font-size: 1em;
    }

    .page-blog__hero-section {
        padding-top: 10px !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
        margin-bottom: 30px;
    }

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

    .page-blog__cta-button {
        padding: 12px 30px;
        font-size: 16px;
        margin-top: 20px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-blog__blog-card-image {
        height: 180px;
    }

    .page-blog__blog-card-title {
        font-size: 1.2em;
    }

    .page-blog__category-list {
        flex-direction: column;
        align-items: center;
    }

    .page-blog__category-item a {
        width: 100%;
        text-align: center;
        padding: 10px 15px;
    }

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

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

    .page-blog__cta-final-section {
        padding: 30px 15px;
    }

    .page-blog__cta-final-section h2 {
        font-size: 2em;
    }

    .page-blog__cta-final-section p {
        font-size: 1em;
    }

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

    .page-blog__section,
    .page-blog__card,
    .page-blog__container,
    .page-blog__hero-container,
    .page-blog__introduction-section,
    .page-blog__recent-posts,
    .page-blog__categories-section,
    .page-blog__faq-section,
    .page-blog__cta-final-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-blog__all-posts-cta .page-blog__cta-button {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 480px) {
    .page-blog__posts-grid {
        grid-template-columns: 1fr;
    }
}