/* style/blog.css */

.page-blog {
    color: #ffffff; /* Light text for dark body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px); /* Ensure space below fixed header */
    background-color: #1a1a1a; /* Matching body background from shared.css */
}

.page-blog__hero-section {
    position: relative;
    overflow: hidden;
    padding: 80px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    background-color: #000000; /* Main color */
}

.page-blog__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.3; /* Subtle background effect */
}

.page-blog__hero-container {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

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

.page-blog__hero-description {
    font-size: 1.2em;
    color: #f0f0f0;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-blog__button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-align: center;
    white-space: nowrap;
}

.page-blog__button--primary {
    background-color: #FFD700; /* Gold */
    color: #000000; /* Black text on gold */
    border: 2px solid #FFD700;
}

.page-blog__button--primary:hover {
    background-color: #e6c200;
    transform: translateY(-2px);
}

.page-blog__button--secondary {
    background-color: transparent;
    color: #FFD700;
    border: 2px solid #FFD700;
}

.page-blog__button--secondary:hover {
    background-color: #FFD700;
    color: #000000;
    transform: translateY(-2px);
}

.page-blog__section-title {
    font-size: 2.5em;
    color: #FFD700;
    text-align: center;
    margin: 60px 0 40px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-blog__latest-articles,
.page-blog__featured-article,
.page-blog__categories,
.page-blog__newsletter-cta,
.page-blog__cta-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

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

.page-blog__article-card {
    background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    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.5);
}

.page-blog__article-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    border-bottom: 2px solid #FFD700;
}

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

.page-blog__article-title {
    font-size: 1.5em;
    color: #FFD700;
    margin-bottom: 10px;
    line-height: 1.3;
}

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

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

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

.page-blog__read-more {
    display: inline-block;
    color: #FFD700;
    text-decoration: none;
    font-weight: bold;
    border: 1px solid #FFD700;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
    align-self: flex-start;
}

.page-blog__read-more:hover {
    background-color: #FFD700;
    color: #000000;
}

.page-blog__featured-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    padding: 30px;
}

.page-blog__featured-image {
    width: 50%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    border: 3px solid #FFD700;
    display: block;
}

.page-blog__featured-text {
    width: 50%;
}

.page-blog__featured-title {
    font-size: 2em;
    color: #FFD700;
    margin-bottom: 20px;
    line-height: 1.2;
}

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

.page-blog__featured-title a:hover {
    color: #e6c200;
}

.page-blog__featured-excerpt {
    font-size: 1.1em;
    color: #f0f0f0;
    margin-bottom: 25px;
    font-weight: bold;
}

.page-blog__featured-body {
    font-size: 1em;
    color: #cccccc;
    margin-bottom: 15px;
}

.page-blog__category-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.page-blog__category-item {
    background-color: #000000;
    color: #FFD700;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    border: 1px solid #FFD700;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    white-space: nowrap;
}

.page-blog__category-item:hover {
    background-color: #FFD700;
    color: #000000;
    transform: translateY(-2px);
}

.page-blog__newsletter-cta {
    display: flex;
    align-items: center;
    gap: 40px;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    padding: 40px;
    margin-top: 60px;
}

.page-blog__newsletter-content {
    flex: 1;
}

.page-blog__newsletter-title {
    font-size: 2em;
    color: #FFD700;
    margin-bottom: 15px;
}

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

.page-blog__newsletter-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.page-blog__newsletter-input {
    flex: 1;
    padding: 12px 20px;
    border: 1px solid #FFD700;
    border-radius: 5px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    font-size: 1em;
    min-width: 200px;
}

.page-blog__newsletter-input::placeholder {
    color: #999999;
}

.page-blog__button--submit {
    background-color: #DC143C; /* Deep Red for action */
    color: #ffffff;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.page-blog__button--submit:hover {
    background-color: #b00f2e;
    transform: translateY(-2px);
}

.page-blog__newsletter-image {
    width: 40%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    border: 3px solid #000000;
    display: block;
}

.page-blog__cta-section {
    text-align: center;
    background-color: #000000;
    padding: 80px 20px;
    margin-top: 60px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.page-blog__cta-title {
    font-size: 3em;
    color: #FFD700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-blog__cta-description {
    font-size: 1.3em;
    color: #f0f0f0;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-blog__cta-actions {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
}

.page-blog__floating-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.page-blog__floating-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #DC143C; /* Deep Red */
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9em;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.page-blog__floating-button--login {
    background-color: #FFD700; /* Gold */
    color: #000000; /* Black text on gold */
}

.page-blog__floating-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.6);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-blog__hero-title {
        font-size: 3em;
    }
    .page-blog__featured-content {
        flex-direction: column;
        align-items: center;
    }
    .page-blog__featured-image,
    .page-blog__featured-text {
        width: 100%;
    }
    .page-blog__newsletter-cta {
        flex-direction: column;
    }
    .page-blog__newsletter-image {
        width: 80%;
    }
}

@media (max-width: 768px) {
    .page-blog__hero-title {
        font-size: 2.5em;
    }
    .page-blog__hero-description {
        font-size: 1em;
    }
    .page-blog__section-title {
        font-size: 2em;
        margin: 40px 0 30px;
    }
    .page-blog__articles-grid {
        grid-template-columns: 1fr;
    }
    .page-blog__article-image {
        height: 200px; /* Adjust height for smaller screens */
    }
    .page-blog__cta-title {
        font-size: 2.5em;
    }
    .page-blog__cta-description {
        font-size: 1.1em;
    }
    .page-blog__hero-actions,
    .page-blog__cta-actions {
        flex-direction: column;
        gap: 15px;
    }
    .page-blog__button {
        width: 100%;
        max-width: 300px;
    }
    .page-blog__newsletter-form {
        flex-direction: column;
    }
    .page-blog__newsletter-input,
    .page-blog__button--submit {
        width: 100%;
        max-width: unset;
    }
    .page-blog__floating-buttons {
        bottom: 15px;
        right: 15px;
    }
    /* Ensure content area images are responsive */
    .page-blog img {
        max-width: 100%;
        height: auto;
    }
    /* Enforce min-width for all images in content area */
    .page-blog__latest-articles img,
    .page-blog__featured-article img,
    .page-blog__newsletter-cta img {
        min-width: 200px;
        min-height: 200px;
    }
}

@media (max-width: 480px) {
    .page-blog__hero-title {
        font-size: 2em;
    }
    .page-blog__cta-title {
        font-size: 2em;
    }
    .page-blog__floating-buttons {
        right: 10px;
        bottom: 10px;
    }
    .page-blog__floating-button {
        width: 50px;
        height: 50px;
        font-size: 0.8em;
    }
}