@charset "UTF-8";

/* ==========================================================================
   Modern Blog Styles (Card Design)
   ========================================================================== */

/* -----------------------------------------------------------------
   Blog List (Cards)
   ----------------------------------------------------------------- */
@media screen and (min-width: 768px) {
    .blog_list_modern {
        display: flex;
        flex-wrap: wrap;
        margin: 0 -15px;
        /* Neuter outer padding */
    }

    .blog_list_modern>li {
        width: 33.333%;
        margin-bottom: 30px;
        padding: 0 15px;
        display: flex;
        /* Reset existing borders/backgrounds if needed via overrides, 
           but we'll apply styles to an inner wrapper or the li itself depending on structure */
        border: none !important;
        background: transparent !important;
    }

    /* Inner Card Wrapper */
    .blog_card_inner {
        background: #fff;
        border: 1px solid #e2e2e2;
        border-radius: 10px;
        overflow: hidden;
        width: 100%;
        display: flex;
        flex-direction: column;
        transition: all 0.3s ease;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
        cursor: pointer;
        position: relative;
    }

    /* Hover Effect */
    .blog_card_inner:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        border-color: #d1d1d1;
    }

    /* Make whole card clickable link */
    .blog_card_link {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
        /* Empty content for link */
    }

    /* Card Image */
    .blog_list_modern .blog_list_image {
        width: 100% !important;
        margin: 0 !important;
        height: 200px;
        /* Fixed height for consistency */
        overflow: hidden;
    }

    .blog_list_modern .blog_list_image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

    .blog_card_inner:hover .blog_list_image img {
        transform: scale(1.05);
    }

    /* Card Content */
    .blog_list_modern .blog_list_right {
        width: 100% !important;
        padding: 20px !important;
        flex-grow: 1;
        display: flex;
        flex-direction: column;
    }

    .blog_list_modern .blog_list_right h3 {
        font-size: 16px;
        font-weight: bold;
        line-height: 1.5;
        margin-bottom: 10px;
        flex-grow: 1;
        /* Push date to bottom if needed */
    }

    .blog_list_modern .blog_list_right h3 a {
        color: #333;
        text-decoration: none;
    }

    .blog_list_modern .blog_list_right p {
        font-size: 13px;
        color: #666;
        line-height: 1.6;
        margin-bottom: 15px;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        /* Limit text lines */
        overflow: hidden;
    }

    .blog_list_modern .blog_list_right .date {
        font-size: 12px;
        color: #999;
        text-align: right;
        display: block;
        margin-top: auto;
    }
}

/* SP View Adjustments (keep simple list or use single column cards) */
@media screen and (max-width: 767px) {
    .blog_list_modern>li {
        width: 100%;
        margin-bottom: 20px;
        padding: 0;
        border: none !important;
        background: transparent !important;
        display: block !important;
        /* Reset flex */
    }

    .blog_card_inner {
        background: #fff;
        border: 1px solid #e2e2e2;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
        position: relative;
    }

    .blog_card_link {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
    }

    .blog_list_modern .blog_list_image {
        width: 100% !important;
        height: auto;
        aspect-ratio: 16/9;
    }

    .blog_list_modern .blog_list_image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .blog_list_modern .blog_list_right {
        width: 100% !important;
        padding: 15px !important;
    }

    .blog_list_modern .blog_list_right h3 {
        font-size: 16px;
    }
}


/* -----------------------------------------------------------------
   Blog Detail (Rounded Images)
   ----------------------------------------------------------------- */

.blog_detail_rounded img,
.blog_detail_body img {
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    /* Optional styling upgrade */
}

/* Ensure links in detail still work and look normal */
.blog_detail_body a {
    text-decoration: underline;
}

.blog_detail_body a:hover {
    text-decoration: none;
}


.blog_page_head01 {
    color: #f8a1a6;
    border: 1px solid #f8a1a6;
    background-color: #fff;
    padding: 10px 10px 10px 15px;
    margin-bottom: 20px;
}