/* style/blog.css */
/* Page-specific styles for the blog page */

/* Ensure main content starts below the fixed header */
.page-blog {
    padding-top: var(--header-offset, 120px); /* Default for desktop, adjusted by JS */
    background-color: #FFFFFF; /* Light background as per shared.css body */
    color: #000000; /* Dark text for contrast on light background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.page-blog__hero-section {
    position: relative;
    padding: 80px 20px;
    text-align: center;
    background-color: #000000; /* Dark background for hero to make text pop */
    color: #FFFFFF; /* Light text on dark hero background */
}

.page-blog__hero-container {
    max-width: 900px;
    margin: 0 auto;
}

.page-blog__hero-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #FFFFFF; /* White text for main title */
}

.page-blog__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #F0F0F0; /* Slightly off-white for description */
}

.page-blog__hero-cta-button {
    display: inline-block;
    background-color: #FCBC45; /* Login button color for CTA */
    color: #000000; /* Dark text on bright button */
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-blog__hero-cta-button:hover {
    background-color: #FFD700; /* Lighter gold on hover */
}

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

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

.page-blog__article-card {
    background-color: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-blog__article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.page-blog__article-image {
    width: 100%;
    height: 250px; /* Fixed height for consistent card appearance */
    object-fit: cover;
    display: block;
}

.page-blog__article-content {
    padding: 20px;
}

.page-blog__article-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #000000; /* Dark text for title */
}

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

.page-blog__article-title a:hover {
    color: #FCBC45; /* Gold on hover */
}

.page-blog__article-excerpt {
    font-size: 0.95em;
    color: #333333; /* Slightly lighter dark text for body */
    margin-bottom: 15px;
}

.page-blog__read-more-button {
    display: inline-block;
    background-color: #000000; /* Dark button */
    color: #FFFFFF; /* White text */
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
}

.page-blog__read-more-button:hover {
    background-color: #333333; /* Slightly lighter dark on hover */
}

.page-blog__cta-section {
    background-color: #000000; /* Dark background for CTA */
    color: #FFFFFF;
    padding: 60px 20px;
    text-align: center;
    margin-top: 50px;
}

.page-blog__cta-container {
    max-width: 800px;
    margin: 0 auto;
}

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

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

.page-blog__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.page-blog__register-button,
.page-blog__login-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.page-blog__register-button {
    background-color: #FFFFFF; /* White for Register */
    color: #000000; /* Dark text on white */
}

.page-blog__register-button:hover {
    background-color: #E0E0E0;
}

.page-blog__login-button {
    background-color: #FCBC45; /* Gold for Login */
    color: #000000; /* Dark text on gold */
}

.page-blog__login-button:hover {
    background-color: #FFD700;
}

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

.page-blog__floating-register-btn,
.page-blog__floating-login-btn {
    display: block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1em;
    font-weight: bold;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.page-blog__floating-register-btn {
    background-color: #FFFFFF;
    color: #000000;
}

.page-blog__floating-register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.page-blog__floating-login-btn {
    background-color: #FCBC45;
    color: #000000;
}

.page-blog__floating-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-blog__hero-title {
        font-size: 2em;
    }

    .page-blog__hero-description {
        font-size: 1em;
    }

    .page-blog__articles-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
    }

    .page-blog__article-image {
        height: 200px; /* Adjust image height for mobile cards */
    }

    .page-blog__article-title {
        font-size: 1.3em;
    }

    .page-blog__cta-title {
        font-size: 2em;
    }

    .page-blog__cta-buttons {
        flex-direction: column;
    }

    .page-blog__register-button,
    .page-blog__login-button {
        width: 100%;
    }

    .page-blog__floating-buttons {
        right: 10px;
        bottom: 10px;
    }

    .page-blog__articles-section,
    .page-blog__cta-section {
        padding: 20px 15px;
    }

    .page-blog__hero-section {
        padding: 60px 15px;
    }
}

/* General image rules for content area (desktop) */
.page-blog img {
    min-width: 200px;
    min-height: 200px;
    max-width: 100%; /* Ensure responsiveness */
    height: auto; /* Maintain aspect ratio */
    display: block; /* Prevent extra space below images */
}

/* Override for mobile to ensure responsiveness without small fixed sizes */
@media (max-width: 768px) {
    .page-blog img {
        min-width: unset; /* Remove min-width for mobile responsiveness */
        min-height: unset; /* Remove min-height for mobile responsiveness */
    }
    /* Specific adjustment for article images on mobile if needed */
    .page-blog__article-image {
        height: 200px; /* Keep a reasonable height for mobile cards */
    }
}