/**
 * Home New Styles
 * Class: home-new
 */

.home-new {
    width: 100%;
    padding: 40px 0 30px;
    background-color: #ffffff;
    box-sizing: border-box;
    position: relative;
}

.home-new * {
    box-sizing: border-box;
}

.home-new .home-new-container {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.home-new .home-new-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 35px;
}

.home-new .home-new-subtitle {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.home-new .home-new-subline {
    display: inline-block;
    width: 24px;
    height: 3px;
    border-radius: 2px;
    background-color: var(--ltc-primary, #056941);
}

.home-new .home-new-subtext {
    font-size: 13.5px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--ltc-primary, #056941);
}

.home-new .home-new-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--ltc-heading, #0b2e1f);
    line-height: 1.3;
    margin: 0 !important;
    padding: 0 !important;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.home-new .home-new-view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14.5px;
    font-weight: 700;
    color: var(--ltc-primary, #056941);
    text-decoration: none !important;
    transition: transform 0.25s ease, opacity 0.25s ease;
    white-space: nowrap;
}

.home-new .home-new-view-all:hover {
    transform: translateX(4px);
    opacity: 0.88;
}

.home-new .home-new-view-all svg {
    transition: transform 0.25s ease;
}

.home-new .home-new-view-all:hover svg {
    transform: translateX(3px);
}

/* Grid */
.home-new .home-new-grid {
    display: grid;
    gap: 24px;
}

.home-new .home-new-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.home-new .home-new-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.home-new .home-new-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

/* Card */
.home-new .home-new-card {
    background-color: #f7faf8;
    border: 1px solid #e5eee8;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.home-new .home-new-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(5, 105, 65, 0.08);
    border-color: #a3d9bc;
}

/* Media */
.home-new .home-new-card-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: #e6ede8;
    display: block;
}

.home-new .home-new-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.home-new .home-new-card:hover .home-new-card-img {
    transform: scale(1.06);
}

.home-new .home-new-card-no-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eaf4ee 0%, #d8ebd0 100%);
}

/* Body */
.home-new .home-new-card-body {
    padding: 20px 18px 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.home-new .home-new-card-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--ltc-primary, #056941);
    margin-bottom: 10px;
    letter-spacing: 0.3px;
}

.home-new .home-new-card-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.42;
    margin: 0 0 10px 0 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-new .home-new-card-title a {
    color: var(--ltc-heading, #0b2e1f) !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.home-new .home-new-card-title a:hover {
    color: var(--ltc-primary, #056941) !important;
}

.home-new .home-new-card-excerpt {
    font-size: 13px;
    color: var(--ltc-text-muted, #556059);
    line-height: 1.55;
    margin: 0 0 16px 0 !important;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.home-new .home-new-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--ltc-primary, #056941);
    text-decoration: none !important;
    margin-top: auto;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.home-new .home-new-card-link:hover {
    transform: translateX(4px);
    opacity: 0.85;
}

.home-new .home-new-card-link svg {
    transition: transform 0.2s ease;
}

.home-new .home-new-card-link:hover svg {
    transform: translateX(3px);
}

/* Responsive */
@media (max-width: 1024px) {
    .home-new .home-new-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .home-new {
        padding: 35px 0 45px;
    }
    .home-new .home-new-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .home-new .home-new-title {
        font-size: 21px;
    }
    .home-new .home-new-cols-4,
    .home-new .home-new-cols-3,
    .home-new .home-new-cols-2 {
        grid-template-columns: 1fr;
    }
}
