/* =================================================================
   BLOG STYLES
   =================================================================
   - Contains all styles related to the blog and blog posts.
   ================================================================= */

/* ------------------ 0.0 - Blog Categories (Hub Gateway) ------------------ */

.category-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

@media (min-width: 992px) {
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.category-card {
    background: #fff;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--gray-200);
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--turquoise);
}

.category-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-card:hover .category-image img {
    transform: scale(1.05);
}

.category-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.category-content h2 {
    color: var(--blue);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.category-content p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.category-link {
    color: var(--turquoise);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
}

.category-link svg {
    transition: transform 0.3s ease;
}

.category-card:hover .category-link svg {
    transform: translateX(5px);
}

/* ------------------ 0.5 - Hub Headers (Topic Clusters) ------------------ */

.hub-header {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--gray-200);
}

@media (min-width: 768px) {
    .hub-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    
    .hub-text {
        max-width: 65%;
    }
}

.hub-text h1 {
    color: var(--blue);
    font-size: 2rem; /* H1 size for Hub pages */
    margin-bottom: 1rem;
}

.hub-text p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 1.1rem;
}

.hub-cta {
    flex-shrink: 0;
}

/* ------------------ 1.0 - Blog Grid & Cards ------------------ */

.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.blog-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.blog-image {
    display: none; /* Hide images in article grid as requested */
}

.blog-content {
    display: flex;
    flex-direction: column;
    padding: 2rem;
    height: 100%;
}

.blog-content h3 {
    margin-bottom: 1rem;
    color: var(--blue);
    font-size: 1.25rem;
    line-height: 1.4;
    font-weight: 600;
}

.blog-excerpt {
    margin-bottom: 1.5rem;
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1;
}

/* ------------------ 2.0 - Blog Post Content Styles (unchanged) ------------------ */
/* ... (Keep existing detailed post styles for individual articles if needed) ... */
.blog-content article { background-color: white; padding: 2.5rem; border-radius: var(--border-radius-lg); box-shadow: var(--shadow-md); line-height: 1.8; }
.blog-content h2 { color: var(--blue); margin-top: 2.5rem; margin-bottom: 1.2rem; font-size: 1.8rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--light-gray); }
.blog-content p { margin-bottom: 1.2rem; color: var(--text-dark); font-size: 1.05rem; line-height: 1.8; }
.blog-content ul, .blog-content ol { margin: 1.2rem 0; padding-left: 2rem; }
.blog-content li { margin-bottom: 0.6rem; color: var(--text-dark); }
.blog-content a { color: var(--cyan); text-decoration: underline; font-weight: 500; }
.blog-content img { max-width: 100%; height: auto; border-radius: var(--border-radius); margin: 1.5rem 0; display: block; }