/*

Theme Name: Coloring theme

Description: Tô màu online

Author: Bạn

Version: 1.0

*/



    /* Import font Be Vietnam Pro */

    @import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@100;400;700&display=swap');




    .headerp {
        display: block;
        margin: 10px;
    }

    .searchForm h1 {
        display: block
    }

    border-top: 1px solid #eee;
    padding: 10px 0;
    }

    .searchForm {
        background: #fff;
        padding: 10px 0;
        border-top: 1px solid #eee;
    }

    .header-inner button.toggle {
        top: 10px;
        bottom: unset
    }

    .colorBox {
        background: #fff;
        border: 1px solid #dfdcdc
    }

    .articleHome .textBox {
        line-height: 20px;
        height: 70px
    }

    body,
    #site-content {
        background-color: #f9f9f9;
    }

    .footerHome {
        padding: 0
    }

    .footerHome p {
        line-height: 25px;
        margin-bottom: 10px;
        color: #2b2b2b;
    }

    #trendSection .ipr-container {
        background: transparent !important;
        border-color: transparent !important
    }

    @media screen and (min-width: 1000px) {
        .headerp {
            display: none
        }

        .trendingSearch,
        .searchForm p,
        .searchForm {
            display: block !important
        }
    }

    .col .colBox .imgBox img {
        height: auto;
    }

    section {
        background: #f9f9f9;
    }

    /* Desktop giữ nguyên */
    .wmu-preview-img {
        width: 248px !important;
        height: 248px !important;
        object-fit: contain;
        /* hoặc cover tùy bạn */
        object-position: center;
        display: block;
        margin: 0 auto;
    }

    /* Mobile: ô vuông tự động theo chiều rộng */
    @media (max-width: 768px) {
        .imgBox {
            width: 100%;
            aspect-ratio: 1/1;
            /* luôn hình vuông */
            display: flex;
            justify-content: center;
            align-items: center;
            overflow: hidden;
        }

        .wmu-preview-img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            /* đảm bảo không méo */
            object-position: center;
        }
    }

    /* Mobile: chỉ áp dụng cho màn hình nhỏ */
    @media (max-width: 768px) {
        .listItems {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 15px;
        }

        /* Ẩn từ item thứ 5 trở đi */
        .listItems .child-item:nth-child(n+5) {
            display: none;
        }
        canvas#canvas {
            width: 100%;
            max-height: 710px;
        }
    }

    canvas#canvas {
        border: 2px solid #24b4b9;
    }
    section>a.category-button {
        display: inline-flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 20px;
        min-width: 120px;
        margin: 6px;
        border-radius: 30px;
        background: linear-gradient(90deg, #c471f5, #0072ff);
        color: #fff;
        font-size: 16px;
        text-decoration: none;
        font-weight: 500;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    section>a.category-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    }

    section>a.category-button .arrow {
        margin-left: 10px;
        font-size: 18px;
        font-weight: bold;
    }

    section {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;

    }
    .first_author.main_author {
        height: 40px;
    }

      #view-all-btn {
    display: none
  }

  .button-bottom-image {
    height: 40px !important
  }

  .button-bottom-image>div {
    height: 100%
  }

  .button-bottom-image>div a {
    line-height: 36px;
    font-weight: 600 !important
  }

  #load-more {
    display: block;
    /* để áp dụng margin auto */
    margin: 30px auto;
    /* căn giữa ngang và tạo khoảng cách trên/dưới */
    padding: 12px 30px;
    /* padding giống nút màu cam */
    background: #ff9800;
    /* màu nền giống nút vẽ */
    color: #fff;
    /* chữ màu trắng */
    font-weight: 600;
    /* in đậm */
    font-size: 16px;
    /* cỡ chữ */
    border: none;
    /* bỏ viền */
    border-radius: 20px;
    /* bo tròn góc */
    cursor: pointer;
    /* con trỏ chuột */
    text-transform: none;
    /* giữ chữ bình thường */
    transition: background 0.3s;
    /* hiệu ứng hover */
    border-top: 3px solid #e1730d;
    border-bottom: 3px solid #e1730d;
  }

  #load-more:hover {
    background: #e68900;
    /* đổi màu khi hover */
  }
  
  	.tin-tuc-lien-quan {
		margin: 20px 0;
	}

	.tin-tuc-lien-quan .grid-5cols {
		display: grid;
		grid-template-columns: repeat(5, 1fr);
		gap: 15px;
	}

	.tin-tuc-lien-quan .item {
		border: 1px solid #eee;
		border-radius: 6px;
		overflow: hidden;
		background: #fff;
		transition: all 0.3s ease;
	}

	.tin-tuc-lien-quan .item:hover {
		box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
	}

	.tin-tuc-lien-quan .thumb img {
		width: 100%;
		height: 140px;
		object-fit: cover;
		display: block;
	}

	.tin-tuc-lien-quan .title {
		font-size: 14px;
		padding: 10px;
		color: #333;
		line-height: 1.4;
	}
