@charset "utf-8";

/* News List Custom Styles */

/* 
 * Force Reset and Layout for News Link 
 * Using simplified selector to ensure application
 */
.custom-news-link {
    display: flex !important;
    flex-direction: row !important;
    /* Force row layout for desktop */
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 20px !important;
    padding: 15px !important;
    padding-right: 15px !important;
    position: relative !important;
    text-decoration: none !important;
    background-image: none !important;
    border-bottom: 1px solid #eee;
    height: auto !important;
    min-height: 80px;
    background-color: #fff !important;
    /* Ensure background to verify */
}

/* Hide default theme arrows - Specific overrides based on user feedback */
.custom-news-link::after,
.custom-news-link::before,
.news-item a::after,
.news-item a::before,
.news_area-article .news-link::after,
.news_area-article .news-link::before,
.news_area-article .custom-news-link::after,
.news_area-article .custom-news-link::before {
    display: none !important;
    content: none !important;
    opacity: 0 !important;
    border: none !important;
    background: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* 
 * Layout Ordering (Desktop: Left Image, Center Body, Right Icon)
 */

/* 1. Image (Left) */
.custom-news-link .news-img {
    order: 1 !important;
    width: 120px !important;
    min-width: 120px !important;
    max-width: 120px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
    line-height: 0 !important;
}

/* 2. Body (Center) */
.custom-news-link .news-body {
    order: 2 !important;
    flex-grow: 1 !important;
    width: auto !important;
    padding: 0 15px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
}

/* 3. Icon (Right) */
.custom-news-link .news-icon {
    order: 3 !important;
    width: 25px !important;
    min-width: 25px !important;
    height: 25px !important;
    max-width: 25px !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    position: static !important;
    transform: none !important;
    flex-shrink: 0 !important;
}

.custom-news-link .news-icon img.icon-r {
    width: 100% !important;
    height: 100% !important;
    min-width: 25px !important;
    min-height: 25px !important;
    display: block !important;
    max-width: 100% !important;
}

.custom-news-link .news-img img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9 !important;
    object-fit: cover !important;
    border-radius: 4px !important;
    vertical-align: bottom !important;
    margin: 0 !important;
}

/* Internal Text Styles */
.custom-news-link .news-data {
    margin-bottom: 5px !important;
    font-size: 0.9em !important;
    line-height: 1.5 !important;
    color: #333;
    display: flex !important;
    align-items: center;
    gap: 10px;
}

.custom-news-link .news-txtbox {
    width: 100% !important;
}

.custom-news-link .news-ttl {
    display: block !important;
    font-weight: bold !important;
    font-size: 1em !important;
    line-height: 1.5 !important;
    margin: 0 !important;
    text-align: left !important;
    color: #000 !important;
    /* Ensure visibility against light background */
}


/* Mobile Responsiveness */
@media screen and (max-width: 767px) {
    .custom-news-link {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 15px !important;
        padding-bottom: 15px !important;
    }

    /* Mobile Order: Image Top, Text Below */

    /* 1. Image Top */
    .custom-news-link .news-img {
        order: 1 !important;
        width: 100% !important;
        max-width: 300px !important;
        /* Slightly larger on mobile if desired, or keep 100% */
        margin-bottom: 10px !important;
        align-self: flex-start !important;
    }

    .custom-news-link .news-img img {
        max-width: 100% !important;
    }

    /* 2. Body Middle */
    .custom-news-link .news-body {
        order: 2 !important;
        width: 100% !important;
        padding: 0 !important;
    }

    /* 3. Icon Bottom Right */
    .custom-news-link .news-icon {
        order: 3 !important;
        align-self: flex-end !important;
        margin-top: 5px !important;
        width: 20px !important;
    }
}