/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/


@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/


}
/* Mới */ 
/* =========================================================
   ĐÓNG GÓP
========================================================= */

.tn-contribution-title {
    border: 1px solid #ddd;
    padding: 8px 12px;
    margin: 0 0 20px;
    color: #666;
    font-size: 20px;
    font-weight: 600;
}


/* =========================================================
   UPLOAD ẢNH BÌNH LUẬN
========================================================= */

.tn-comment-image-upload {
    margin: 15px 0;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.tn-comment-image-upload label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.tn-comment-image-upload small,
.tn-comment-image-help {
    display: block;
    margin-top: 5px;
    color: #777;
    font-size: 12px;
}


/* =========================================================
   PREVIEW ẢNH KHI UPLOAD
========================================================= */

.tn-comment-image-preview,
#tn-comment-image-preview {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.tn-comment-preview-item img,
#tn-comment-image-preview img {
    display: block;
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}


/* =========================================================
   ẢNH TRONG BÌNH LUẬN
========================================================= */

.tn-comment-full-images {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 600px !important;
    margin: 15px 0 !important;
    padding: 0 !important;
}

.tn-comment-image-item {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
}

.tn-comment-image-item a {
    display: block !important;
    width: 100% !important;
    height: 160px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    line-height: 0 !important;
}

.tn-comment-image-item img {
    display: block !important;
    width: 100% !important;
    height: 160px !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: cover !important;
    border: 0 !important;
    border-radius: 5px !important;
    cursor: pointer !important;
}

.tn-comment-image-item img:hover {
    opacity: 0.85;
}


/* =========================================================
   MỤC ĐÓNG GÓP - GALLERY
========================================================= */

.tn-contribution-images {
    width: 100%;
    margin: 30px 0;
}

.tn-contribution-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
}

.tn-contribution-gallery a {
    display: block;
    width: 100%;
    margin: 0;
}

.tn-contribution-gallery img {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: 180px !important;
    margin: 0;
    object-fit: cover;
    border-radius: 5px;
}

.tn-contribution-gallery figcaption {
    margin-top: 6px;
    color: #666;
    font-size: 14px;
}


/* =========================================================
   ẨN WEBSITE TRONG FORM BÌNH LUẬN
========================================================= */

.comment-form-url {
    display: none !important;
}


/* =========================================================
   KHOẢNG CÁCH ĐOẠN VĂN
========================================================= */

.entry-content p {
    margin-top: 0 !important;
    margin-bottom: 8px !important;
    line-height: 1.6 !important;
}


/* =========================================================
   ARCHIVE PAGE HEADER
========================================================= */

.archive-page-header {
    margin: 5px;
}

@media (min-width: 1024px) {
    .archive-page-header {
        margin: 20px;
    }
}


/* =========================================================
   PHONE CODE
========================================================= */

.phonecode {
    position: fixed;
    left: 52%;
    bottom: 5px;
    width: 46%;
    height: 50px;
    padding: 5px 0;
    box-sizing: border-box;
    background: linear-gradient(#ff0000, #880000);
    color: #fff;
    border-radius: 15px;
    font-family: Arial, sans-serif;
    font-size: 13px;
    text-align: center;
    text-transform: uppercase;
    z-index: 8;
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.3);
}

@media (min-width: 1024px) {
    .phonecode {
        left: 5%;
        width: 15%;
        bottom: 140px;
    }
}


/* =========================================================
   ZALO CODE
========================================================= */

.zalocode {
    position: fixed;
    right: 52%;
    bottom: 5px;
    width: 46%;
    height: 50px;
    padding-top: 15px;
    box-sizing: border-box;
    background: linear-gradient(#7be2ff, #00a9d8);
    color: #fff;
    border-radius: 15px;
    font-size: 13px;
    text-align: center;
    text-transform: uppercase;
    z-index: 8;
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.3);
}

@media (min-width: 1024px) {
    .zalocode {
        left: 5%;
        right: auto;
        width: 15%;
        bottom: 200px;
    }
}


/* =========================================================
   NỀN MOBILE
========================================================= */

.vien-nen {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 65px;
    padding-top: 15px;
    box-sizing: border-box;
    background-color: #fff;
    border-top: 3px solid #e6e6e6;
    border-radius: 0;
    z-index: 7;
}

@media (min-width: 1024px) {
    .vien-nen {
        width: 0;
        height: 0;
        padding: 0;
        border: 0;
    }
}


/* =========================================================
   PHONE CODE C
========================================================= */

.phonecodec {
    position: fixed;
    left: 52%;
    bottom: 5px;
    width: 46%;
    height: 50px;
    padding: 5px 0;
    box-sizing: border-box;
    background: linear-gradient(#ff0000, #8b0000);
    color: #fff;
    border-radius: 15px;
    font-family: Arial, sans-serif;
    font-size: 13px;
    text-align: center;
    text-transform: uppercase;
    z-index: 8;
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.3);
}

@media (min-width: 1024px) {
    .phonecodec {
        left: 5%;
        width: 15%;
        bottom: 140px;
    }
}


/* =========================================================
   ZALO CODE C
========================================================= */

.zalocodec {
    position: fixed;
    right: 52%;
    bottom: 5px;
    width: 46%;
    height: 50px;
    padding-top: 15px;
    box-sizing: border-box;
    background: linear-gradient(#53eafd, #3bb8db);
    color: #fff;
    border-radius: 15px;
    font-size: 13px;
    text-align: center;
    text-transform: none;
    z-index: 8;
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.3);
}

@media (min-width: 1024px) {
    .zalocodec {
        left: 5%;
        right: auto;
        width: 15%;
        bottom: 200px;
    }
}


/* =========================================================
   NỀN MOBILE CODE C
========================================================= */

.vien-nenc {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 65px;
    padding-top: 15px;
    box-sizing: border-box;
    background-color: #fff;
    border-top: 3px solid #e6e6e6;
    border-radius: 5px;
    z-index: 5;
}

@media (min-width: 1024px) {
    .vien-nenc {
        width: 0;
        height: 0;
        padding: 0;
        border: 0;
    }
}


/* =========================================================
   TABLET / MOBILE
========================================================= */

@media (max-width: 768px) {

    .tn-comment-full-images {
        max-width: 100% !important;
        gap: 8px !important;
    }

    .tn-comment-image-item a,
    .tn-comment-image-item img {
        height: 130px !important;
    }
}


/* =========================================================
   ĐIỆN THOẠI NHỎ
========================================================= */

@media (max-width: 480px) {

    .tn-comment-full-images,
    .tn-contribution-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 6px !important;
    }

    .tn-comment-image-item a,
    .tn-comment-image-item img {
        height: 120px !important;
    }

    .tn-contribution-gallery img {
        height: 140px !important;
    }

    .tn-comment-image-preview,
    #tn-comment-image-preview {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}



/* Mới */ 



/* Mới */ 



/* Mới */ 



/* Mới */ 



/* Mới */ 



/* Mới */ 



/* Mới */ 



/* Mới */ 



/* Mới */ 



/* Mới */ 



/* Mới */ 



/* Mới */ 



/* Mới */ 



/* Mới */ 



/* Mới */ 



/* Mới */ 



/* Mới */ 



/* Mới */ 



/* Mới */ 



/* Mới */ 



/* Mới */ 



/* Mới */ 



/* Mới */ 



/* Mới */ 



/* Mới */ 



/* Mới */ 



/* Mới */ 



/* Mới */ 



/* Mới */ 



/* Mới */ 



/* Mới */ 



/* Mới */ 



/* Mới */ 



/* Mới */ 



/* Mới */ 



/* Mới */ 



/* Mới */ 



/* Mới */ 



/* Mới */ 



/* Mới */ 



/* Mới */ 



/* Mới */ 



/* Mới */ 



/* Mới */ 



/* Mới */ 



/* Mới */ 



/* Mới */ 



/* Mới */ 



/* Mới */ 



/* Mới */ 



/* Mới */ 



/* Mới */ 



/* Mới */ 



/* Mới */ 



