/* ==========================================================================
   LUẬT GIANG SƠN - Floating Contact Widgets & Theme Utilities
   ========================================================================== */

/* --------------------------------------------------------------------------
   Floating Contact Widgets (Messenger + Zalo + Call Hotline)
   -------------------------------------------------------------------------- */
.luat-floating-widgets {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.luat-float-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    text-decoration: none !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    transition: transform 0.3s ease;
}

.luat-float-btn:hover {
    transform: scale(1.1);
}

.luat-float-messenger {
    background: linear-gradient(135deg, #00B2FF 0%, #006AFF 50%, #9900FF 100%);
    color: #ffffff !important;
}

.luat-float-zalo {
    background-color: #0084ff;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: -0.5px;
}

.luat-float-call {
    background-color: #25d366;
    animation: luatPulse 2s infinite;
}

@keyframes luatPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 16px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* ==========================================================================
   BÀI VIẾT MỚI Section (.luat-home-articles-wrapper)
   Max width matching website container, non-wrapping "Xem tất cả",
   Top Large Image + Vertical Subposts with Thumbnail & Excerpt
   ========================================================================== */

.luat-home-articles-wrapper {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px 5px 20px;
    background-color: transparent;
}

.luat-section-header {
    text-align: center;
    margin-bottom: 40px;
}

.luat-section-title {
    font-size: 24px;
    font-weight: 800;
    color: #11392c;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    margin: 0;
    letter-spacing: 0.5px;
}

.luat-section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: #11392c;
    margin: 8px auto 0 auto;
    border-radius: 2px;
}

.luat-articles-grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.luat-cat-column {
    display: flex;
    flex-direction: column;
}

.luat-cat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid #11392c;
    margin-bottom: 18px;
}

.luat-cat-title {
    font-size: 16px;
    font-weight: 800;
    color: #11392c;
    text-transform: uppercase;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.luat-cat-see-all {
    font-size: 13px;
    color: #555555;
    text-decoration: none;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    margin-left: auto;
    transition: color 0.2s ease;
}

.luat-cat-see-all:hover {
    color: #11392c;
}

/* Top Large Featured Banner Image */
.luat-first-post-wrap {
    width: 100%;
    height: 200px;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 20px;
    background-color: #f4f6f5;
}

.luat-first-post-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.luat-first-post-wrap:hover .luat-first-post-img {
    transform: scale(1.04);
}

/* Vertical Subposts List */
.luat-subposts-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.luat-subpost-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding-bottom: 14px;
    border-bottom: 1px dashed #e5e5e5;
}

.luat-subpost-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.luat-subpost-thumb-link {
    flex-shrink: 0;
    width: 85px;
    height: 65px;
    border-radius: 4px;
    overflow: hidden;
    background-color: #f4f6f5;
}

.luat-subpost-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.luat-subpost-thumb-link:hover .luat-subpost-thumb {
    transform: scale(1.06);
}

.luat-subpost-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.luat-subpost-title {
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
}

.luat-subpost-title a {
    color: #11392c;
    text-decoration: none;
    transition: color 0.2s ease;
}

.luat-subpost-title a:hover {
    color: #26a69a;
}

.luat-subpost-excerpt {
    font-size: 12px;
    color: #666666;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==========================================================================
   Bottom-most Footer Background Color (#081e1a) & White Text Styling
   ========================================================================== */
.luat-copyright-bar,
.absolute-footer,
#footer .absolute-footer,
.footer-wrapper .absolute-footer,
.footer-bottom,
footer .absolute-footer,
.socket {
    background-color: #081e1a !important;
}

.luat-footer,
#footer,
.footer-wrapper {
    background-color: #11392c;
    color: #ffffff !important;
}

.footer-wrapper *,
#footer *,
footer * {
    color: #ffffff !important;
}

.footer-wrapper a,
#footer a,
footer a {
    color: #ffffff !important;
    opacity: 0.95;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.footer-wrapper a:hover,
#footer a:hover,
footer a:hover {
    color: #26a69a !important;
    opacity: 1;
}

.footer-wrapper .widget-title,
.footer-wrapper h1,
.footer-wrapper h2,
.footer-wrapper h3,
.footer-wrapper h4,
.footer-wrapper h5,
.footer-wrapper h6 {
    color: #ffffff !important;
}

@media (max-width: 991px) {
    .luat-articles-grid-container {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .luat-home-articles-wrapper {
        padding: 30px 15px 40px 15px;
    }
}
