.main-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}


.blog-flex-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;          
    max-width: 65vw;      
    margin-left: auto;     
    margin-right: auto;   
}


.blog-image {
    width: 90%; 
    overflow: hidden;
    z-index: 1;
}

.blog-image img {
    width: 100%;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}


.blog-hero-content-box {
    width: 80%; 
    background-color: #F2F5F6;
    text-align: center;
    padding: 20px 10px;
    z-index: 5;
    
   
    transform: translateY(-80px); 
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.6s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}


.blog-flex-container:hover .blog-image img {
    transform: scale(1.08);
}

.blog-flex-container:hover .blog-hero-content-box {
   
    transform: translateY(-95px) scale(1.02); 
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}


.blog-stretched-link a::after {
    content: "";
    position: absolute;
    top: 0; 
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 20;
}


/*Blog Small Cards*/

/* Behållaren för hela rutnätet (om du lägger flera i samma HTML-block) */
.blog-grid-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    padding: 20px;
}

/* Själva kortet */
.blog-card-small {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.5s ease;
}

/* Bilden med zoom-fönster */
.blog-card-image {
    width: 100%;
    aspect-ratio: 1 / 1; /* Gör bilden kvadratisk som i din bild */
    overflow: hidden;
    z-index: 1;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Textboxen som överlappar */
.blog-card-content {
    width: 85%;
    background-color: #F2F5F6;
    padding: 30px 20px;
    text-align: center;
    z-index: 5;
    transform: translateY(-40px); /* Överlappet */
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), background-color 0.3s ease;
}

.blog-card-text h3 {
    font-family: serif;
    font-size: 1.1rem;
    line-height: 1.4;
    margin-bottom: 15px;
    color: #333;
}

.blog-card-date {
    font-size: 0.75rem;
    letter-spacing: 1px;
    color: #999;
    text-transform: uppercase;
}

/* --- HOVER EFFEKTER --- */
.blog-card-small:hover .blog-card-image img {
    transform: scale(1.1); /* Bilden zoomar in */
}

.blog-card-small:hover .blog-card-content {
    transform: translateY(-55px) scale(1.03); /* Boxen lyfter och växer lite */
    background-color: #ffffff; /* Valfritt: boxen blir vitare vid hover */
}

/* STRETCHED LINK */
.blog-card-link a::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 10;
}