.page-blog {
    color: #333333; /* Dark text for light body background */
}

.page-blog__hero-section {
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
    background-color: #FFFFFF;
    text-align: center;
    padding-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.page-blog__hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-blog__hero-title {
    font-size: 3.2em;
    color: #000000;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 700;
}

.page-blog__hero-description {
    font-size: 1.2em;
    color: #333333;
    margin-bottom: 30px;
    line-height: 1.6;
}

.page-blog__hero-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.2s ease;
    white-space: nowrap;
}

.page-blog__hero-button--register {
    background-color: #FCBC45; /* Login color */
    color: #000000; /* Dark text for contrast */
    border: 2px solid #FCBC45;
}

.page-blog__hero-button--register:hover {
    background-color: #e0a53b;
    transform: translateY(-2px);
}

.page-blog__hero-image-wrapper {
    width: 100%;
    max-width: 1000px; /* Adjust as needed */
    margin-top: 30px;
}

.page-blog__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.page-blog__articles-overview,
.page-blog__why-yy77,
.page-blog__cta-section,
.page-blog__more-resources {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    background-color: #FFFFFF;
}

.page-blog__section-title {
    font-size: 2.5em;
    color: #000000;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
}

.page-blog__section-intro {
    font-size: 1.1em;
    color: #555555;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px auto;
    line-height: 1.7;
}

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

.page-blog__article-card {
    background-color: #f8f8f8;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.page-blog__article-image-wrapper {
    width: 100%;
    height: 225px; /* Fixed height for consistency */
    overflow: hidden;
}

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

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

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

.page-blog__article-title {
    font-size: 1.6em;
    color: #000000;
    margin-bottom: 15px;
    line-height: 1.3;
    font-weight: 600;
}

.page-blog__article-title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.page-blog__article-title a:hover {
    color: #FCBC45;
}

.page-blog__article-description {
    font-size: 1em;
    color: #666666;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-blog__article-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #000000; /* Main color */
    color: #FFFFFF; /* White text */
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95em;
    transition: background-color 0.3s ease;
    align-self: flex-start;
}

.page-blog__article-button:hover {
    background-color: #333333;
}

.page-blog__why-yy77 {
    background-color: #f0f0f0;
    padding: 60px 20px;
    border-radius: 10px;
    margin-top: 60px;
}

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

.page-blog__feature-item {
    background-color: #FFFFFF;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-blog__feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
}

.page-blog__feature-icon {
    width: 100%;
    max-width: 200px; /* Ensure images are not too small but fit the card */
    height: auto;
    margin-bottom: 20px;
    border-radius: 5px;
}

.page-blog__feature-title {
    font-size: 1.8em;
    color: #000000;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-blog__feature-description {
    font-size: 1em;
    color: #555555;
    line-height: 1.6;
}

.page-blog__cta-section {
    background-color: #000000; /* Main color */
    padding: 60px 20px;
    text-align: center;
    border-radius: 10px;
    margin-top: 60px;
}

.page-blog__cta-title {
    font-size: 2.8em;
    color: #FFFFFF;
    margin-bottom: 20px;
    font-weight: 700;
}

.page-blog__cta-description {
    font-size: 1.2em;
    color: #f0f0f0;
    max-width: 800px;
    margin: 0 auto 40px auto;
    line-height: 1.6;
}

.page-blog__cta-button {
    display: inline-block;
    padding: 18px 35px;
    background-color: #FCBC45; /* Login color */
    color: #000000; /* Dark text for contrast */
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2em;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: 2px solid #FCBC45;
}

.page-blog__cta-button:hover {
    background-color: #e0a53b;
    transform: translateY(-2px);
}

.page-blog__more-resources {
    padding: 40px 20px;
    text-align: center;
}

.page-blog__resource-links {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.page-blog__resource-link {
    display: inline-block;
    padding: 12px 25px;
    background-color: #f0f0f0;
    color: #000000;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.page-blog__resource-link:hover {
    background-color: #e0e0e0;
    color: #FCBC45;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-blog__hero-title {
        font-size: 2.8em;
    }
    .page-blog__cta-title {
        font-size: 2.4em;
    }
    .page-blog__hero-image-wrapper {
        max-width: 800px;
    }
}

@media (max-width: 768px) {
    .page-blog__hero-section {
        padding-top: var(--header-offset, 80px); /* Adjust for mobile header */
        padding-bottom: 40px;
    }
    .page-blog__hero-title {
        font-size: 2.2em;
    }
    .page-blog__hero-description {
        font-size: 1em;
    }
    .page-blog__hero-button {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-blog__article-grid {
        grid-template-columns: 1fr;
    }
    .page-blog__article-image-wrapper {
        height: 200px;
    }
    .page-blog__section-title {
        font-size: 2em;
    }
    .page-blog__section-intro {
        font-size: 0.95em;
    }
    .page-blog__feature-list {
        grid-template-columns: 1fr;
    }
    .page-blog__feature-icon {
        max-width: 200px;
    }
    .page-blog__feature-title {
        font-size: 1.6em;
    }
    .page-blog__cta-title {
        font-size: 2em;
    }
    .page-blog__cta-description {
        font-size: 1em;
    }
    .page-blog__cta-button {
        padding: 15px 30px;
        font-size: 1.1em;
    }

    /* Ensure content images do not overflow */
    .page-blog img {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .page-blog__hero-title {
        font-size: 1.8em;
    }
    .page-blog__section-title {
        font-size: 1.8em;
    }
    .page-blog__cta-title {
        font-size: 1.8em;
    }
    .page-blog__article-content {
        padding: 20px;
    }
    .page-blog__article-title {
        font-size: 1.4em;
    }
    .page-blog__feature-item {
        padding: 25px;
    }
}