/* ==============================================
   MyCareer Blog Page Styles (Unified Grid Layout)
   ============================================== */

#mycareer-blog-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 16px;
}

    /* ---------------------------
   Page Title
   --------------------------- */
    #myhustle-blog-page .BlogPost-title-container {
        margin: 0 0 24px 0;
    }

#myhustle-blog-page .BlogPost-title {
    font-size: 2rem;
    font-weight: 700;
    color: #222;
    line-height: 1.4;
    margin: 0;
}

    /* ---------------------------
   Cards Grid Layout
   --------------------------- */
#myhustle-blog-page .BlogPost-all-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 equal columns */
    gap: 32px;
}

    /* ---------------------------
   Large Cards Row (first two)
   --------------------------- */
#myhustle-blog-page .BlogPost-row-large {
    grid-column: 1 / -1; /* span all 3 columns */
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* split into 2 equal big cards */
    gap: 32px;
}

    /* Large card style */
#myhustle-blog-page .BlogPost-card-large {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
}

    #myhustle-blog-page .BlogPost-card-large:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 12px rgba(0,0,0,0.12);
    }

    /* ---------------------------
   Small Cards (grid auto-fill)
   --------------------------- */
#myhustle-blog-page .BlogPost-card-small {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
}

    #myhustle-blog-page .BlogPost-card-small:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 10px rgba(0,0,0,0.10);
    }

    /* ---------------------------
   Card Image
   --------------------------- */
#myhustle-blog-page .BlogPost-card-img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-bottom: 1px solid #eee;
}

    /* ---------------------------
   Card Content (shared)
   --------------------------- */
#myhustle-blog-page .BlogPost-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

    /* ---------------------------
   Card Title & Link
   --------------------------- */
#myhustle-blog-page .BlogPost-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #222;
}

#myhustle-blog-page .BlogPost-card-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: #000;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

    #myhustle-blog-page .BlogPost-card-link:hover {
        color: #a020f0;
    }

    /* ---------------------------
   Pagination
   --------------------------- */
#myhustle-blog-page .BlogPost-pagination {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 40px 0 0 0;
    font-size: 1.1rem;
    justify-content: center;
}

    /* ---------------------------
   Back Link at Bottom
   --------------------------- */
#myhustle-blog-page .back-link-wrapper {
    max-width: 1000px; /* same as before */
    box-sizing: border-box;
    text-align: left; /* left align inside wrapper */
}

    /* Anchor itself shrinks to content so only icon+text clickable */
#myhustle-blog-page .back-link {
    display: inline-flex; /* width = content only */
    align-items: center;
    gap: 8px; /* space between icon & text */
    color: #940EAF;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

        /* Hover state for link + icon stroke */
    #myhustle-blog-page .back-link:hover {
        color: #7c1bb3;
    }

        /* Optional: subtle arrow slide animation on hover */
    #myhustle-blog-page .back-link svg {
        transition: transform 0.2s;
    }

    #myhustle-blog-page .back-link:hover svg {
        transform: translateX(-4px);
    }

/* ---------------------------
   Responsive Styles
   --------------------------- */
@media (max-width: 900px) {
    #myhustle-blog-page {
        padding: 20px 16px;
    }

        #myhustle-blog-page .BlogPost-all-cards {
            grid-template-columns: 1fr; /* stack */
            gap: 24px;
        }

        #myhustle-blog-page .BlogPost-row-large {
            grid-template-columns: 1fr;
        }

        #myhustle-blog-page .BlogPost-card-content {
            padding: 16px;
        }
}
