/* ==============================================
   mycarrer Blog Page Styles (Unified Grid Layout)
   ============================================== */

#mycarrer-blog-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 16px;
}

    /* ---------------------------
   Page Title
   --------------------------- */
    #mycarrer-blog-page .BlogPost-title-container {
        margin: 0 0 24px 0;
    }

#mycarrer-blog-page .BlogPost-title {
    font-size: 2rem;
    font-weight: 700;
    color: #222;
    line-height: 1.4;
    margin: 0;
}
@media (max-width: 700px) {
    #mycarrer-blog-page .BlogPost-title {
        margin-top: 40px;
    }
}

    /* ---------------------------
   Cards Grid Layout
   --------------------------- */
    #mycarrer-blog-page .BlogPost-all-cards {
        display: grid;
        grid-template-columns: repeat(3, 1fr); /* 3 equal columns */
        gap: 32px;
    }

    /* ---------------------------
   Large Cards Row (first two)
   --------------------------- */
    #mycarrer-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 */
    #mycarrer-blog-page .BlogPost-card-large {
        background: #fff;
        border-radius: 0px;
        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;
    }

        #mycarrer-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)
   --------------------------- */
    #mycarrer-blog-page .BlogPost-card-small {
        background: #fff;
        border-radius: 0px;
        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;
    }

        #mycarrer-blog-page .BlogPost-card-small:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 10px rgba(0,0,0,0.10);
        }

    /* ---------------------------
   Card Image
   --------------------------- */
    #mycarrer-blog-page .BlogPost-card-img {
        width: 100%;
        aspect-ratio: 16/9;
        object-fit: cover;
        border-bottom: 1px solid #eee;
    }

    /* ---------------------------
   Card Content (shared)
   --------------------------- */
    #mycarrer-blog-page .BlogPost-card-content {
        padding: 20px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    /* ---------------------------
   Card Title & Link
   --------------------------- */
    #mycarrer-blog-page .BlogPost-card-title {
        font-size: 1.1rem;
        font-weight: 600;
        margin-bottom: 8px;
        color: #222;
    }

    #mycarrer-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;
    }

        #mycarrer-blog-page .BlogPost-card-link:hover {
            color: #a020f0;
        }

    /* ---------------------------
   Pagination
   --------------------------- */
    #mycarrer-blog-page .BlogPost-pagination {
        display: flex;
        align-items: center;
        gap: 8px;
        margin: 24px auto 64px auto;
        font-size: 1.1rem;
        justify-content: flex-end;
        max-width: 1168px;
        padding: 0 0rem;
        margin-top: 24px;
    }

    .BlogPost-page {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 28px;
        height: 28px;
        border-radius: 8px;
        background: transparent;
        color: #222;
        font-weight: 500;
        cursor: pointer;
        transition: background 0.2s, color 0.2s;
        border: none;
        outline: none;
        text-decoration: none;
    }

        .BlogPost-page.active {
            background: #a020f0;
            color: #fff;
            font-weight: 700;
        }

        .BlogPost-page:hover:not(.active) {
            background: #f3e6fb;
            color: #a020f0;
        }

    .BlogPost-next {
        background: transparent;
        color: #222;
        font-weight: 500;
        padding: 0 6px;
        border-radius: 8px;
        text-decoration: none;
        transition: color 0.2s, background 0.2s;
    }

        .BlogPost-next:hover {
            background: #f3e6fb;
            color: #a020f0;
        }

    @media (min-width: 1400px) {
        #mycarrer-blog-page .BlogPost-pagination {
            display: flex;
            align-items: center;
            gap: 8px;
            margin: 24px auto 64px auto;
            font-size: 1.1rem;
            justify-content: flex-end;
            max-width: 1594px;
            padding: 0 0rem;
            margin-top: 24px;
        }
    }

    /* ---------------------------
   Back Link at Bottom
   --------------------------- */
    #mycarrer-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 */
    #mycarrer-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 */
        #mycarrer-blog-page .back-link:hover {
            color: #7c1bb3;
        }

        /* Optional: subtle arrow slide animation on hover */
        #mycarrer-blog-page .back-link svg {
            transition: transform 0.2s;
        }

        #mycarrer-blog-page .back-link:hover svg {
            transform: translateX(-4px);
        }

    /* ---------------------------
   Responsive Styles
   --------------------------- */
    @media (max-width: 900px) {
        #mycarrer-blog-page {
            padding: 20px 16px;
        }

            #mycarrer-blog-page .BlogPost-all-cards {
                grid-template-columns: 1fr; /* stack */
                gap: 24px;
            }

            #mycarrer-blog-page .BlogPost-row-large {
                grid-template-columns: 1fr;
            }

            #mycarrer-blog-page .BlogPost-card-content {
                padding: 16px;
            }
            #mycarrer-blog-page .back-link-wrapper {
                max-width: 1000px;
                box-sizing: border-box;
                text-align: center;
                margin-bottom: 38px;
            }
    }

    @media (min-width: 1400px) {
        #mycarrer-blog-page {
            max-width: 1640px;
            margin: 0 auto;
            padding: 40px 16px;
        }
    }