/* -----------------------------------------
	Blog CSS
----------------------------------------- */
.blog-area {
    position: relative;
    overflow: hidden;
}

.blog-area .card {
    transition: all 0.3s;
}

.blog-area .card_top {
    position: relative;
}

.blog-area .card_img {
    position: relative;
    overflow: hidden;
    border-radius: 0;
}

.blog-area .card img {
    transition: transform 0.3s ease-out;
    height: 150px;
    width: 100%;
    object-fit: cover;
    display: block;
}

.blog-area .card p {
    margin-bottom: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.blog-area .card_list {
    display: inline-flex;
    align-items: center;
    gap: 0px;
}

.blog-area .card_list a {
    color: var(--text-medium);
}

.blog-area .card_list.blog-badges i {
    color: white;
}

.blog-area .card:hover img {
    transform: scale3d(1.05, 1.05, 1.05);
}

.blog-area .card:hover .btn-text {
    letter-spacing: 0.1em;
}

.blog-area_v1 .card {
    background-color: transparent;
}

.blog-area_v1 .card_list {
    bottom: 0;
    left: 0;
    right: 0;
    margin-inline-start: 0;
    margin-inline-end: auto;
    padding: 10px 0px;
    width: 100%;
    max-width: 100%;
    background-color: var(--bg-white);
    z-index: 4;
}

.blog-area_v1 .card_content {
    position: relative;
    z-index: 3;
    max-width: 100%;
    background-color: var(--bg-white);
}

@media (min-width: 576px) {

    .blog-area_v1 .card_content,
    .blog-area_v1 .card_list {
        /*max-width: calc(100% - 25px);*/
    }
}

.blog-area_v2 .card {
    overflow: hidden;
}

.blog-area_v3 .card {
    overflow: hidden;
}

.blog-area_v3 .card_list {
    padding: 10px 25px;
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    justify-content: center;
}

/* === Base styles: mobile-first === */

.card {
    border: 1px solid #131F3B;
    border-radius: 20px;
    padding: 15px;
    text-align: center;
    margin: 10px 0;
}

.card .icon i {
    font-size: 50px;
    color: #707070;
}

.card .subtitle-flex {
    color: #707070;
}

.card .middle-text {
    font-size: 24px;
    font-weight: 700;
    margin: 20px 0;
    color: #131F3B;
}

.card .footer-text {
    color: #949494;
}

/* Base arrow - default for mobile */
.base-wrap {
    position: absolute;
    bottom: -24px;
    left: -18%;
}

.base {
    background: white;
    display: inline-block;
    height: 20px;
    width: 60px;
    margin-left: 20px;
    margin-top: 5px;
    position: relative;
    transform: rotate(180deg);
    border: 1px solid #131F3B;
    border-bottom: 1px solid transparent;
    z-index: 1;
}

.base:before {
    content: "";
    position: absolute;
    top: -35px;
    left: -1px;
    border-bottom: 34px solid #131F3B;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    width: 0;
    height: 0;
}

.base:after {
    content: "";
    position: absolute;
    top: -34px;
    left: 0;
    border-bottom: 34px solid #fff;
    border-left: 29px solid transparent;
    border-right: 29px solid transparent;
    width: 0;
    height: 0.5px;
}

/* Navigation hover */
.navmenu:hover {
    color: white !important;
}

/* CKEditor field */
.ck-editor__editable {
    border-color: azure !important;
}

/* === Responsive for desktop === */
@media (min-width: 769px) {
    .base-wrap {
        top: 47%;
        bottom: auto;
        left: auto;
        right: 0;
        margin-right: -10.5%;
    }

    .base {
        transform: rotate(90deg);
    }
}

/* Conteneur général en grille fluide */
.card-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
}

/* Chaque carte prend 32% en desktop (3 par ligne), 100% en mobile */
.post-card {
    flex: 0 0 100%;
    border: 1px solid #e0e0e0;
    border-radius: 0.5rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* Layout horizontal */
.horizontal-card {
    display: flex;
    flex-direction: row;
    height: 100%;
}

/* Image à gauche */
.img-wrapper {
    width: 40%;
    max-height: 200px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Layout horizontal */
.horizontal-card {
    border: 1px solid #ddd;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background: #fff;
    min-height: 200px;
}

.horizontal-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Image wrapper */
.img-wrapper {
    width: 35%;
    max-height: 220px;
    overflow: hidden;
    border-right: 1px solid #eee;
}

.img-wrapper img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

/* Ombre douce pour les cartes */
.post-card {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Troncature du titre (2 lignes max) */
.card_title a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Troncature du contenu (4 lignes max) */
.card_text,
.card_content p.align_left {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 12px;
}

/* Style badge catégorie */
.card_list .badge-category {
    display: inline-block;
    background-color: #131F3B;
    color: #fff !important;
    font-size: 0.65rem;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 12px;
    margin: 0 5px 5px 0;
    white-space: nowrap;
    text-decoration: none;
}

.card_list .badge-category i {
    margin-right: 5px;
    font-size: 0.8rem;
    color: #fff !important;
}


