:root {
    --primary-color: #FF8C1A;
    --secondary-color: #FFA53A;
    --button-gradient: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
    --card-bg-color: #17191F;
    --background-color: #0D0E12;
    --text-main-color: #FFF3E6;
    --border-color: #A84F0C;
    --glow-color: #FFB04D;
    --deep-orange-color: #D96800;
}

.page-blog {
    font-family: 'Roboto', sans-serif;
    color: var(--text-main-color);
    background-color: var(--background-color);
    line-height: 1.6;
}

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

.page-blog__hero-section {
    position: relative;
    width: 100%;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    padding-top: 10px; /* Small top padding to allow for header offset */
}

.page-blog__hero-image {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    display: block;
}

.page-blog__hero-content {
    position: absolute;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
    margin-top: 100px; /* Adjust to be below the image, not overlapping it */
    transform: translateY(50%); /* Visually push content down */
    top: 0; /* Position from top */
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    width: calc(100% - 40px);
    box-sizing: border-box;
}

.page-blog__hero-title {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 15px;
    color: var(--text-main-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    max-width: 100%; /* Ensure H1 doesn't overflow */
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size for H1 */
}

.page-blog__hero-description {
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: var(--text-main-color);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.page-blog__hero-cta {
    display: inline-block;
    background: var(--button-gradient);
    color: var(--text-main-color);
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-blog__hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.page-blog__articles-section {
    padding: 60px 0;
}

.page-blog__section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-main-color);
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.page-blog__article-card {
    background-color: var(--card-bg-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px 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__article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

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

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

.page-blog__article-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.3;
}

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

.page-blog__article-title a:hover {
    color: var(--secondary-color);
}

.page-blog__article-date {
    font-size: 0.9rem;
    color: rgba(255, 243, 230, 0.7);
    margin-bottom: 15px;
}

.page-blog__article-excerpt {
    font-size: 1rem;
    color: rgba(255, 243, 230, 0.9);
    margin-bottom: 20px;
    flex-grow: 1;
}

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

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

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

.page-blog__view-all-button {
    display: inline-block;
    background: var(--button-gradient);
    color: var(--text-main-color);
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-blog__view-all-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.page-blog__cta-section {
    background-color: var(--card-bg-color);
    padding: 80px 20px;
    text-align: center;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-top: 60px;
}

.page-blog__cta-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-main-color);
}

.page-blog__cta-description {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 30px auto;
    color: rgba(255, 243, 230, 0.9);
}

.page-blog__cta-button {
    display: inline-block;
    background: var(--button-gradient);
    color: var(--text-main-color);
    padding: 15px 40px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-blog__cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-blog__hero-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }
    .page-blog__hero-description {
        font-size: 1rem;
    }
    .page-blog__section-title {
        font-size: 2.2rem;
    }
    .page-blog__article-title {
        font-size: 1.3rem;
    }
    .page-blog__cta-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .page-blog__hero-content {
        transform: translateX(-50%) translateY(70%); /* Adjust for smaller screens */
    }
    .page-blog__hero-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }
    .page-blog__hero-description {
        font-size: 0.95rem;
    }
    .page-blog__articles-grid {
        grid-template-columns: 1fr;
    }
    .page-blog__section-title {
        font-size: 2rem;
    }
    .page-blog__article-title {
        font-size: 1.2rem;
    }
    .page-blog__cta-title {
        font-size: 1.8rem;
    }
    .page-blog__article-image,
    .page-blog__articles-section img, 
    .page-blog__cta-section img { /* Ensure all content images are responsive */
        max-width: 100%;
        height: auto;
    }
    .page-blog__article-image { /* Specific height for card images on mobile */
        height: 180px;
    }
    /* Ensure all content area images are at least 200px wide/tall */
    .page-blog__articles-section img {
        min-width: 200px;
        min-height: 200px;
    }
}

@media (max-width: 480px) {
    .page-blog__hero-content {
        transform: translateX(-50%) translateY(50%); /* Further adjust for very small screens */
        padding: 15px;
    }
    .page-blog__hero-title {
        font-size: clamp(1.5rem, 7vw, 2rem);
    }
    .page-blog__hero-cta {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
    .page-blog__section-title {
        font-size: 1.8rem;
    }
    .page-blog__article-content {
        padding: 15px;
    }
    .page-blog__article-title {
        font-size: 1.1rem;
    }
    .page-blog__article-date {
        font-size: 0.85rem;
    }
    .page-blog__article-excerpt {
        font-size: 0.9rem;
    }
    .page-blog__cta-title {
        font-size: 1.6rem;
    }
    .page-blog__cta-button {
        padding: 12px 25px;
        font-size: 1rem;
    }
}