@charset "UTF-8";

.page-blog {
    font-family: Arial, sans-serif;
    color: #333333; /* Dark text for light background */
    line-height: 1.6;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    background-color: #FFFFFF; /* Body background color */
}

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

.page-blog__hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 0;
    background-color: #000000; /* Dark background for hero section */
    color: #FFFFFF;
}

.page-blog__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    opacity: 0.6; /* Slightly dim the image for text readability */
}

.page-blog__hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
    max-width: 900px;
    padding: 20px;
}

.page-blog__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #FCBC45; /* Login button color for emphasis */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-blog__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #FFFFFF;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

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

.page-blog__hero-button--primary {
    background-color: #FCBC45; /* Login button color */
    color: #000000;
    border: 2px solid #FCBC45;
}

.page-blog__hero-button--primary:hover {
    background-color: #e0a53a;
    transform: translateY(-3px);
}

.page-blog__hero-button--secondary {
    background-color: transparent;
    color: #FFFFFF;
    border: 2px solid #FFFFFF;
}

.page-blog__hero-button--secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.page-blog__section-title {
    font-size: 2.5em;
    color: #000000;
    text-align: center;
    margin-bottom: 40px;
    padding-top: 40px;
}

.page-blog__sub-title {
    font-size: 1.8em;
    color: #000000;
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-blog__latest-articles-section,
.page-blog__deep-content-section,
.page-blog__newsletter-section {
    padding: 60px 0;
    background-color: #FFFFFF;
}

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

.page-blog__article-card {
    background-color: #f8f8f8;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px 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(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

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

.page-blog__article-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    line-height: 1.3;
}

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

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

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

.page-blog__read-more-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #000000;
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.3s ease;
    align-self: flex-start;
}

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

.page-blog__deep-content-text {
    font-size: 1.1em;
    margin-bottom: 25px;
    color: #333333;
}

.page-blog__deep-content-image {
    width: 100%;
    height: auto;
    min-width: 200px; /* Ensure min width for content images */
    min-height: 200px; /* Ensure min height for content images */
    object-fit: cover;
    border-radius: 12px;
    margin: 30px 0;
    display: block;
}

.page-blog__cta-buttons-inline {
    text-align: center;
    margin-top: 40px;
}

.page-blog__cta-button {
    display: inline-block;
    padding: 15px 35px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    margin: 0 15px;
}

.page-blog__cta-button--primary {
    background-color: #FCBC45;
    color: #000000;
    border: 2px solid #FCBC45;
}

.page-blog__cta-button--primary:hover {
    background-color: #e0a53a;
    transform: translateY(-3px);
}

.page-blog__cta-button--secondary {
    background-color: #000000;
    color: #FFFFFF;
    border: 2px solid #000000;
}

.page-blog__cta-button--secondary:hover {
    background-color: #333333;
    transform: translateY(-3px);
}

.page-blog__newsletter-section {
    background-color: #F0F0F0;
    text-align: center;
    padding: 80px 0;
}

.page-blog__newsletter-description {
    font-size: 1.1em;
    color: #555555;
    margin-bottom: 30px;
}

.page-blog__newsletter-form {
    display: flex;
    justify-content: center;
    max-width: 500px;
    margin: 0 auto;
}

.page-blog__newsletter-input {
    flex-grow: 1;
    padding: 15px 20px;
    border: 1px solid #CCCCCC;
    border-radius: 8px 0 0 8px;
    font-size: 1em;
    outline: none;
}

.page-blog__newsletter-input:focus {
    border-color: #FCBC45;
}

.page-blog__newsletter-button {
    padding: 15px 25px;
    background-color: #FCBC45;
    color: #000000;
    border: none;
    border-radius: 0 8px 8px 0;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.page-blog__newsletter-button:hover {
    background-color: #e0a53a;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-blog__hero-title {
        font-size: 2.8em;
    }
    .page-blog__hero-description {
        font-size: 1.1em;
    }
    .page-blog__section-title {
        font-size: 2em;
    }
    .page-blog__sub-title {
        font-size: 1.6em;
    }
    .page-blog__article-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-blog {
        padding-top: var(--header-offset, 80px); /* Adjust for smaller header on mobile */
    }
    .page-blog__hero-content {
        max-width: 90%;
    }
    .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;
        margin: 5px;
    }
    .page-blog__hero-button--primary,
    .page-blog__hero-button--secondary {
        display: block;
        width: fit-content;
        margin: 15px auto;
    }
    .page-blog__article-grid {
        grid-template-columns: 1fr;
    }
    .page-blog__deep-content-text {
        font-size: 1em;
    }
    .page-blog__cta-buttons-inline {
        flex-direction: column;
        align-items: center;
    }
    .page-blog__cta-button {
        display: block;
        width: 80%;
        margin: 10px auto;
    }
    .page-blog__newsletter-form {
        flex-direction: column;
        padding: 0 20px;
    }
    .page-blog__newsletter-input {
        border-radius: 8px;
        margin-bottom: 10px;
    }
    .page-blog__newsletter-button {
        border-radius: 8px;
        width: 100%;
    }
    /* Ensure content images are responsive and do not overflow */
    .page-blog__hero-image,
    .page-blog__article-image,
    .page-blog__deep-content-image {
        max-width: 100%;
        height: auto;
        min-width: 200px; /* Enforce minimum size even on mobile */
        min-height: 200px; /* Enforce minimum size even on mobile */
    }
    /* Global image rule for content area to prevent 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__hero-description {
        font-size: 0.9em;
    }
    .page-blog__hero-button {
        padding: 10px 20px;
        font-size: 0.9em;
    }
}