/* style/blog.css */

.page-blog {
    color: #333333; /* Dark text for light body background */
    line-height: 1.6;
    font-family: Arial, sans-serif;
}

.page-blog__hero-section {
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    background-color: #f5f5f5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-bottom: 40px;
}

.page-blog__hero-content {
    max-width: 900px;
    padding: 20px;
}

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

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

.page-blog__hero-image-container {
    width: 100%;
    max-width: 1200px;
    overflow: hidden;
    margin-top: 20px;
}

.page-blog__hero-image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
}

.page-blog__cta-button {
    display: inline-block;
    padding: 12px 25px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
    margin: 10px;
}

.page-blog__cta-button--register {
    background-color: #000000; /* Main color for register */
    color: #FFFFFF;
    border: 2px solid #000000;
}

.page-blog__cta-button--register:hover {
    background-color: #333333;
    border-color: #333333;
}

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

.page-blog__cta-button--login:hover {
    background-color: #e0a53b;
    border-color: #e0a53b;
}

.page-blog__latest-posts {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

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

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

.page-blog__post-card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.page-blog__post-card:hover {
    transform: translateY(-5px);
}

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

.page-blog__post-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

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

.page-blog__post-title {
    font-size: 1.5em;
    margin-top: 0;
    margin-bottom: 10px;
    color: #000000;
}

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

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

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

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

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

.page-blog__category-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 20px;
    text-align: center;
}

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

.page-blog__category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    padding: 25px;
    text-decoration: none;
    color: #000000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-blog__category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.page-blog__category-icon {
    width: 280px; /* Min size 200x200, but using larger for better visual */
    height: 187px;
    object-fit: contain;
    margin-bottom: 15px;
}

.page-blog__category-name {
    font-size: 1.2em;
    font-weight: bold;
}

.page-blog__cta-section {
    background-color: #000000;
    color: #FFFFFF;
    padding: 60px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.page-blog__cta-content {
    max-width: 800px;
}

.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;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

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

.page-blog__cta-button--learn-more:hover {
    background-color: #e0a53b;
    border-color: #e0a53b;
}

.page-blog__cta-image-container {
    width: 100%;
    max-width: 600px;
    overflow: hidden;
}

.page-blog__cta-image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
}

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

@media (max-width: 768px) {
    .page-blog__hero-title {
        font-size: 2em;
    }
    .page-blog__hero-description {
        font-size: 1em;
    }
    .page-blog__cta-button {
        width: 100%;
        text-align: center;
    }
    .page-blog__posts-grid {
        grid-template-columns: 1fr;
    }
    .page-blog__cta-title {
        font-size: 1.8em;
    }
    .page-blog__categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
    .page-blog__hero-section,
    .page-blog__latest-posts,
    .page-blog__category-section,
    .page-blog__cta-section {
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-blog__hero-image,
    .page-blog__post-thumbnail,
    .page-blog__category-icon,
    .page-blog__cta-image {
        max-width: 100%;
        height: auto; /* Ensures images scale down properly */
    }
    .page-blog__post-thumbnail-wrapper {
        height: auto; /* Allow height to adjust for mobile */
    }
    .page-blog__post-thumbnail {
        min-height: 200px; /* Ensure mobile images meet min height */
    }
    .page-blog__category-icon {
        width: 100%;
        height: auto;
        max-width: 200px; /* Keep categories from becoming too large */
        min-height: 120px; /* Adjust min height for category icons on mobile */
    }
}

@media (max-width: 480px) {
    .page-blog__hero-title {
        font-size: 1.8em;
    }
    .page-blog__section-title {
        font-size: 1.6em;
    }
    .page-blog__cta-title {
        font-size: 1.6em;
    }
    .page-blog__cta-buttons {
        flex-direction: column;
        gap: 10px;
    }
}