@font-face {
    font-family: 'Cabin';
    src: url('../fonts/Cabin-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Kanit';
    src: url('../fonts/Kanit-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Kanit';
    src: url('../fonts/Kanit-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Kanit';
    src: url('../fonts/Kanit-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Kanit';
    src: url('../fonts/Kanit-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

body {
    font-family: 'Kanit', sans-serif;
    margin: 0;
    background: #FFF;
}


.container {
    max-width: 1300px;
    margin: auto;
    padding: 0 15px;
    width: 100%;
}

.row {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 0;
    display: flex;
    flex-wrap: wrap;
    margin-top: calc(-1 * var(--bs-gutter-y));
    margin-right: calc(-.5 * var(--bs-gutter-x));
    margin-left: calc(-.5 * var(--bs-gutter-x))
}

.row>* {
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    padding-right: calc(var(--bs-gutter-x) * .5);
    padding-left: calc(var(--bs-gutter-x) * .5);
    margin-top: var(--bs-gutter-y)
}

*,
::after,
::before {
    box-sizing: border-box;
}

a {
    color: #000;
    text-decoration: none;
    margin: 0;
    padding: 0;
}

a,
p,
span,
h1,
h2,
h3,
h4,
h5,
h6 {
    color: #000;
    font-family: 'Kanit', sans-serif;
    font-style: normal;
    margin: 0;
    padding: 0;
}

h2,
h3,
h4,
h5,
h6 {
    font-weight: 400;
}

a:hover h2{
color:#008299;
text-decoration: underline;
}

p,
span {
    font-weight: 300;
    color: #333;
}

p.time {
    font-style: italic;
    color: #666;
    font-size: 16px;
    line-height: 22px;
}

.t_1l {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}

.t_12 {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.t_13 {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.t_14 {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}


#copy-message {
    position: fixed;
    z-index: 999;
    bottom: 30%;
    width: 60px;
    height: 28px;
    left: 50%;
    transform: translate(-50%, 0);
    background: #fff;
    border: 1px solid #d9d9d9;
    color: #333;
    font-size: 12px;
    text-align: center;
    line-height: 28px;
    border-radius: 20px;
    font-family: 'Open Sans';
}

section {
    padding-top: 48px;
}

.flex {
    display: flex;
    flex-wrap: wrap;
}

.gap-24 {
    gap: 24px;
}

.gap-48 {
    gap: 48px;
}

.gap-12 {
    gap: 12px;
}

.mb-24 {
    margin-bottom: 24px;
}

.mb-12 {
    margin-bottom: 12px;
}

.mb-8 {
    margin-bottom: 8px;
}

.mb-4 {
    margin-bottom: 4px;
}

.p-12 {
    padding: 12px;
}

.pt-12 {
    padding-top: 12px;
}

.pb-12 {
    padding-bottom: 12px;
}

.pr-12 {
    padding-right: 12px;
}

.pl-12 {
    padding-left: 12px;
}

.p-24 {
    padding: 24px;
}

.pt-24 {
    padding-top: 24px;
}

.pb-24 {
    padding-bottom: 24px;
}

.pr-24 {
    padding-right: 24px;
}

.pl-24 {
    padding-left: 24px;
}

.pr-48 {
    padding-right: 48px;
}

.justify-content-center {
    justify-content: center;
}


.m1 img,
.m2 img,
.m3 img,
.m4 img,
.m5 img,
.category img,
.search-result .search-list img,
.search-result .right-list img {
    display: block;
    width: 100%;
    background-color: #d9d9d9;
    object-fit: cover;
}

.f-size-24 {
    font-size: 24px;
    line-height: 32px;
}

.f-size-20 {
    font-size: 20px;
    line-height: 26px;
}

.f-size-18 {
    font-size: 18px;
    line-height: 24px;
}

.f-size-16 {
    font-size: 16px;
    line-height: 22px;
}

.heading {
    color: #005969;
    font-family: Kanit;
    font-size: 28px;
    font-style: normal;
    font-weight: 500;
    line-height: 36px;
    position: relative;
text-transform: capitalize;
}

.heading span {
    font-size: 92px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    letter-spacing: -1.84px;
    color: #F3F3F3;
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    line-height: 100px;
}


.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #000;
    padding: 10px 15px;
    max-width: 1300px;
    margin: auto;
    position: relative;
    flex-wrap: wrap;
}


.nav-links {
    display: flex;
    list-style-type: none;
    margin: 0;
    margin-left: auto;
    padding: 0;
}


.nav-links li.mob {
    display: none;
}

.nav-links li a {
    color: #000;
    font-size: 20px;
    line-height: 26px;
    font-weight: 400;
    text-transform: capitalize;
    padding: 0 20px;
}
.nav-links li:hover a,
footer .grid .py:hover a,
footer .grid .ty:hover a,
footer .category-list a:hover{
color: #008299;
}
.burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.logo a {
    font-family: Cabin;
    font-size: 26px;
    font-weight: 700;
    line-height: 40px;
}

/* .head-search-btn {
    padding: 0 20px;
} */

@media screen and (max-width: 768px) {
    .navbar {
        flex-wrap: wrap;
    }

    .nav-links {
        width: 100%;
        box-sizing: border-box;
        z-index: 9999;
    }

    .navbar {
        padding: 6px 20px;
    }


    .nav-links li.mob {
        display: block;
    }

    .nav-links li.pcsearch {
        display: none;
    }

    .logo a {
        line-height: 32px;
        font-size: 24px;
    }

    .navbar .head-search-btn {
        display: block;
    }

    .burger {
        display: flex;
        justify-content: center;
        flex: 0 0 25%;
    }

    .burger img {
        width: 20px;
    }

    .logo {
        flex: 0 0 50%;
width:50%;
        text-align: center;
    }
.logo img{
width:100%}
    .toggle {
        font-size: 24px;
        width: 20px;
        height: 20px;
        justify-content: center;
    }

    .head-search-btn {
        flex: 0 0 25%;
        text-align: end;
    }

    .nav-links {
        background: white;
        max-height: 0;
        /* 初始状态不可见 */
        overflow: hidden;
        transition: max-height 0.5s ease-in-out;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        order: 4;
    }

    .nav-links.nav-active {
        display: flex;
        flex: 0 0 100%;
        order: 4;
        max-height: fit-content;
    }

    /* 菜单项动画 */
    .nav-links li {
        margin: 10px 0;
        opacity: 0;
        transform: translateY(-10px);
        transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    }

    /* 依次跳出的动画 */
    .nav-links.nav-active li {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-links.nav-active li:nth-child(1) {
        transition-delay: 0.1s;
    }

    .nav-links.nav-active li:nth-child(2) {
        transition-delay: 0.2s;
    }

    .nav-links.nav-active li:nth-child(3) {
        transition-delay: 0.3s;
    }

    .nav-links.nav-active li:nth-child(4) {
        transition-delay: 0.4s;
    }

    .nav-links.nav-active li:nth-child(5) {
        transition-delay: 0.5s;
    }

    .nav-links.nav-active li:nth-child(6) {
        transition-delay: 0.6s;
    }

    .nav-links.nav-active li:nth-child(7) {
        transition-delay: 0.7s;
    }

    .nav-links.nav-active li:nth-child(8) {
        transition-delay: 0.8s;
    }


}


.search-main {
    max-width: 1290px;
    flex: 0 0 100%;
    padding-top: 16px;
    padding-bottom: 16px;
}

.search {
    width: 300px;
    margin-left: auto;
    position: relative;
    display: flex;
    background: #F7F8F8;
}


.search input {
    width: 100%;
    border: none;
    background: #F7F8F8;
    font-weight: 400;
    padding-left: 16px;
    color: #999;
    font-family: "Kanit";
    outline: none;
}

.search input::placeholder {
    width: 100%;
    height: 19px;
    font-family: "Kanit";
    font-weight: 400;
    font-size: 16px;
    color: #999;
    line-height: 24px;
    text-align: left;
    font-style: normal;
    text-transform: none;
}

.search_btn {
    background: #EFEFEF;
}

.search_btn a {
    color: #666666;
    font-family: "Kanit";
    font-size: 16px;
    font-weight: 400;
    line-height: 22px;
}

.search-main .search_btn {
    padding: 8px 20px;
}

.search-main .search_btn img {
    padding: auto;
}

@media (max-width:769px) {
    .search {
        width: 100%;
    }
}

.m1 .flex .b-1 {
    flex: 0 0 40%;
}

.m1 .flex .b-2,
.m1 .flex .b-3 {
    flex: 0 0 30%;
}

.m1 .flex .b-4 {
    flex: 0 0 calc(100% - 24px);
    margin: auto;
}

.m1 .flex .b-1 img {
    aspect-ratio: 1/0.7;
}

.m1 .flex .b-2 img {
    aspect-ratio: 1/0.5;
}

.m1 .flex .b-3 .text {
    flex: 0 0 calc(100% - 82px);
}


.m1 .flex .b-3 .images {
    flex: 0 0 82px;
}


.m1 .flex .b-3 .images img,
.m1 .flex .b-4 .item .images img,
.m3 .flex .item .images img {
    aspect-ratio: 1/1;
    border-radius: 50%;
}

.m1 .flex .b-4 .item,
.m3 .flex .item {
    flex: 0 0 calc(50% - 24px);
    width: 100%;
    background: #F1F1F1;
}

.m1 .flex .b-4 .item .images,
.m3 .flex .item .images {
    flex: 0 0 120px;
}

.m1 .flex .b-4 .item .text,
.m3 .flex .item .text {
    width: calc(100% - 120px);
}

.m2 .latest {
    flex: 0 0 60%;
}

.m2 .popular {
    flex: 0 0 calc(40% - 12px);
    border: 1px solid #EAEAEA;
}

.m2 .latest .heading {
    padding-top: 56px;
    padding-left: 8px;
}

.m2 .latest .item {
    flex: 0 0 100%;
    width: 100%;
}

.m2 .latest .item .images {
    flex: 0 0 40%;
}

.m2 .latest .item .text {
    flex: 0 0 60%;
}

.m2 .latest .item .images img {
    aspect-ratio: 1/0.65;
}

.m2 .popular .item .images {
    flex: 0 0 100px;
    width: 100%;
}

.m2 .popular .item .images img {
    aspect-ratio: 1/1;
}

.m2 .popular .item .text {
    flex: 0 0 calc(100% - 100px);
}

.m3 .heading {
    width: calc(100% - 24px);
    background-color: #008299;
    padding: 24px 48px;
    color: #fff;
    margin: auto;
}

.m3 .grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.m3 .grid .item img {
    aspect-ratio: 1/0.66;
}

.m3 .grid .item:nth-child(1) img,
.m3 .grid .item:nth-child(2) img {
    aspect-ratio: 1/0.7;
}

.m3 .grid .item {
    grid-column: span 2;
    grid-row: span 2;
}

.m3 .grid .item:nth-child(1) {
    grid-column: 1/4;
    grid-row: 1/4;
}

.m3 .grid .item:nth-child(2) {
    grid-column: 1/4;
    grid-row: 4/7;
}

/* .m3 .flex{
    width: calc(100% - 24px);
    margin: auto;
} */

.m4 .flex.list {
    width: calc(100% - 24px);
    margin: auto;
}

.m4 .recently,
.m4 .trending {
    flex: 0 0 30%;
    border: 1px solid #EAEAEA;
    /* padding: 12px 24px; */
}

.m4 .editor {
    flex: 0 0 40%;
}

.m4 .editor .heading {
    padding-top: 56px;
    padding-left: 24px;
}

.m4 .editor .heading span {
    padding-left: 24px;
}

.m4 .recently img,
.m4 .editor img {
    aspect-ratio: 1/0.65;
}

.m4 .editor .item:nth-child(1) img {
    aspect-ratio: 1/0.8;
}

.m4 .editor .item.flex .images,
.m4 .editor .item.flex .text {
    flex: 0 0 50%;
}

.m4 .editor .item.flex .images img {
    aspect-ratio: 1/0.6;
}

.m4 .trending .item {
    border-bottom: 1px solid #EAEAEA;
}

.m4 .trending .item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}


footer {
    padding-top: 100px;
    padding-bottom: 24px;
    max-width: 900px;
    margin: auto;
    padding-left: 15px;
    padding-right: 15px;
}

footer .grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

footer .grid .logo {
    grid-column: 1/2;
    grid-row: 1/2;
}

footer .grid .py {
    grid-column: 1/2;
    grid-row: 2/3;
}

footer .grid .ty {
    grid-column: 1/2;
    grid-row: 3/4;
}

footer .grid .py a,
footer .grid .ty a,
footer .copyright p,
footer span{
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: #000;
}


footer .grid .share {
    grid-column: 1/2;
    grid-row: 4/5;
    display: flex;
}

footer .grid .share a {
    background: #F3FAFB;
    padding: 8px;
    display: flex;
}

footer .copyright {
    grid-column: 1/2;
    grid-row: 5/6;
}

footer .category-list {
    grid-column: 2/3;
    grid-row: 1/6;
    display: flex;
    flex-wrap: wrap;
}


footer .category-list .heading {
    flex: 0 0 100%;
    color: #000;
    font-size: 20px;
    line-height: 24px;
    text-transform: uppercase;
    font-weight: 400;
}

footer .category-list a {
    flex: 0 0 calc(50% - 12px);
    font-size: 18px;
    line-height: 24px;
    font-weight: 400;
text-transform: capitalize;
}

.m4 .recently .item:nth-child(1) .t_14,
.m4 .editor .item:nth-child(1) .t_14 {
    display: none;
}

.back-to-top {
    border: none;
    position: fixed;
    bottom: 160px;
    right: 65px;
    z-index: 99;
    cursor: pointer;
    display: none;
    border-radius: 50%;
    background-color: transparent;
}

.back-to-top img {
    width: 35px;
    vertical-align: bottom;
}

.category .heading,
.search-list .heading {
    padding-top: 56px;
    padding-left: 8px;
}

.category .item {
    flex: 0 0 calc(33.33% - 16px);
   /* background: #F8FBFB;*/
}

.category .item img {
    aspect-ratio: 1/0.65;
}

.category .item .text {
    padding: 16px 16px 32px;
    display: block;
}

.dt-left,
.dt-right {
    flex: 0 0 20%;
    padding-top: 200px;
}

.dt-main {
    flex: 0 0 calc(60% - 96px);
  width:calc(60% - 96px);
    margin: auto;
    position: relative;
}


.dt-content h1,
.dt-content h2,
.dt-content h2 span,
.dt-content h1 span{
    font-size: 16px !important;
    line-height: 1.5 !important;
    text-indent: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 15px !important;
    font-style: normal !important;
    font-weight: 400 !important;
    color: #000 !important;
    font-family: 'Kanit', sans-serif !important;
    ;
}

.dt-content .dt-title {
    font-size: 22px !important;
    line-height: 1.5 !important;
    color: #000 !important;
    margin-bottom: 15px !important;
    font-style: normal;
    font-weight: 400 !important;
    font-family: 'Kanit', sans-serif !important;
    margin-top: 15px !important;
}

.dt-content h3,
.dt-content h4,
.dt-content h3 span,
.dt-content h4 span{
    font-size: 16px !important;
    line-height: 1.5 !important;
    text-indent: 0px !important;
    margin-top: 0 !important;
    margin-bottom: 15px !important;
    font-style: normal;
    color: #000;
    font-weight: 400 !important;
    font-family: 'Kanit', sans-serif !important;
    margin-left: 0 !important;
}

.dt-content p,
.dt-content span {
    color: #000 !important;
    font-size: 16px !important;
    line-height: 1.5 !important;
    text-indent: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 15px !important;
    font-style: normal !important;
    font-family: 'Kanit', sans-serif !important;
    font-weight: 300 !important;
    text-align: left !important;
    margin-left: 0 !important;
}

.dt-content ul,
.dt-content ol {
    margin-bottom: 15px;
    margin-left: 0;
    padding-left: 30px !important;
    font-family: 'Kanit', sans-serif !important;
}

.dt-content ul {
    list-style: disc;
}

.dt-content ol {
    list-style: decimal;

}

.dt-content ul li,
.dt-content ol li {
    color: #000 !important;
    font-size: 16px !important;
    line-height: 1.5 !important;
    text-indent: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 8px !important;
    font-style: normal;
    font-family: 'Kanit', sans-serif !important;
    font-weight: 300;
}

.dt-content img {
    display: block;
    cursor: auto;
    width: 100% !important;
    height: auto !important;
    margin:0 auto 15px;
    max-width: 360px;
}

.dt-content .share a {
    display: inline-flex;
    width: max-content;
    padding: 4px;
    margin-right: 12px;
}

.dt-content .share a:nth-child(1) {
    background: #516EAB;
}

.dt-content .share a:nth-child(2) {
    background: #29C5F6;
}

.dt-content .share a:nth-child(3) {
    background: #7BBF6A;
}

.dt-content .share a:nth-child(4) {
    background: #B15B3A;
}

.dt-content .share a:nth-child(5) {
    background: #008299;
    margin-right: 0;
}

.dt-content .categoryname {
    color: #FFF !important;
    font-size: 16px;
    font-style: normal;
    font-weight: 400 !important;
    line-height: 22px;
    background: #008299;
    width: max-content;
    padding: 0 8px;
    text-transform: uppercase;
}

.dt-content .time {
    color: #98A4A6 !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 22px !important;
    margin-bottom: 15px !important;
}

.dt-content .share {
    margin-bottom: 15px !important;
}


.text-bottom {
    padding-top: 48px;
}

.text-bottom .like-p p {
    color: #000;
    font-size: 24px;
    font-style: normal;
    font-weight: 500;
    line-height: 28px;
    /* 116.667% */
}

.text-bottom .like-p span {
    color: #666;
    font-size: 16px;
    font-weight: 400;
    line-height: 22px;
    margin-bottom: 8px;
}

.bg-1 {
    background-color: #FFC3C7;
}

.bg-1.active {
    background-color: #FF6874
}

.bg-2 {
    background-color: #FFE5B2;
}

.bg-2.active {
    background-color: #FFB526
}

.bg-3 {
    background-color: #B2F2FF;
}

.bg-3.active {
    background-color: #008299;
}

.like-list {
    display: flex;
    align-items: flex-end;
align-items: center;
}

.like-a {
    display: flex;
    gap: 8px;
    padding-right: 28px;
    flex: 0 0 calc(100% - 60px);
}

.like-a a {
    display: block;
    flex: 0 0 calc(10% - 8px);
    height: 10px;
}

.like-a a:first-child {
    border-radius: 10px 0px 0px 10px;
}

.like-a a:last-child {
    border-radius: 0px 10px 10px 0px;
}

.like-grade {
    flex: 0 0 60px;
}

.like-grade p {
    display: block;
    width: 60px;
    height: 60px;
    border: 2px solid #000;
    border-radius: 50%;
}

.like-grade p.active {
    border: 2px solid transparent;
    color: #fff;
    font-size: 32px;
    line-height: 60px;
    text-align: center;
}

.dt-left .heading,
.dt-right .heading {
    font-size: 24px;
    font-weight: 400;
    line-height: 32px;
    margin-bottom: 20px;
}

.dt-left .item {
    width: 100%;
    padding-bottom: 16px;
    border-bottom: 1px solid #EAEAEA;
}

.dt-right .item {
    width: 100%;
}

.dt-right .item img {
    width: 100%;
    background-color: #d9d9d9;
    margin-bottom: 8px;
    aspect-ratio: 1/0.6;
    display: block;
    object-fit: cover;
}

.search-list {
    max-width: 1000px;
    width: 100%;
   margin: auto;
}

.right-list {
    flex: 0 0 calc(40% - 24px);
    border: 1px solid #EAEAEA;
    margin-top: 100px;
    height: max-content;
    padding-bottom: 20px;
}

.right-list .heading {
    padding: 24px 24px 0;
}

.search-list .heading,
.search-list .item {
    flex: 0 0 100%;
}

.search-list .item .images {
    flex: 0 0 40%;
}

.search-list .item .images img {
    aspect-ratio: 1/0.6;
}

.search-list .item {
    border-bottom: 1px solid #EAEAEA;
    ;
}

.search-list .item a {
    padding-bottom: 12px;
    padding-top: 16px;
}

.right-list .item {
    width: 100%;
}

.right-list .item .text {
    flex: 0 0 calc(100% - 100px);
    padding: 24px 24px 0;
}

.right-list .item .images {
    flex: 0 0 100px;
    padding-top: 24px;
    padding-right: 24px;
}

.right-list .item .images img {
    aspect-ratio: 1/1;
}

@media (max-width:1024px) {
    .nav-links li a {
        font-size: 16px;
    }

    .heading {
        font-size: 24px;
        line-height: 32px;
    }

    .f-size-24 {
        font-size: 20px;
        line-height: 28px;
    }

    .f-size-20 {
        font-size: 18px;
        line-height: 24px;
    }

    .m3 .heading {
        padding: 20px 34px;
    }

    .gap-24 {
        gap: 18px;
    }

    .gap-48 {
        gap: 32px;
    }



    .m4 .recently,
    .m4 .trending {
        flex: 0 0 calc(30% - 12px);
    }

    .m4 .editor {
        flex: 0 0 calc(40% - 12px);
    }
}

@media (max-width:992px) {
.right-list {    margin-top: 0;}
    .container {
        padding: 0 10px;
    }

    section {
        padding-top: 40px;
    }

    .m1 .flex .b-3 .images {
        flex: 0 0 65px;
    }

    .m1 .flex .b-3 .text {
        flex: 0 0 calc(100% - 65px);
        padding-right: 8px;
    }

    .m1 .flex .b-1,
    .m1 .flex .b-2 {
        flex: 0 0 50%;
    }

    .m1 .flex .b-3 {
        order: 4;
        flex: 0 0 100%;
    }

    .m1 .flex .b-3 .heading,
    .m2 .latest,
    .m2 .popular .item,
    .m1 .flex .b-4 .item,
    .m4 .editor,
    .m4 .trending .item,
    .m4 .trending .item a {
        flex: 0 0 100%;
    }

    .m2 .popular,
    .m3 .flex .item,
    .m4 .recently,
    .m4 .trending {
        flex: 0 0 calc(100% - 24px);
        margin: auto;
    }

    .m4 .recently {
        margin-bottom: 24px;
    }

    .m1 .flex .b-3 .item {
        flex: 0 0 50%;
    }

    .m3 .grid .item:nth-child(1),
    .m3 .grid .item:nth-child(2),
    .m3 .grid .item {
        grid-column: span 1;
        grid-row: span 1;
    }

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

    .m3 .grid .item:nth-child(1) img,
    .m3 .grid .item:nth-child(2) img,
    .m3 .grid .item img,
    .m4 .recently .item:nth-child(2) img,
    .m4 .recently .item:nth-child(3) img {
        aspect-ratio: 1 / 0.6;
    }

    .m4 .recently .flex,
    .m4 .editor .flex.gap-24 {
        /* display: grid;
        grid-template-columns: repeat(5, 1fr); */
    }

    .m4 .recently .item:nth-child(1),
    .m4 .editor .item:nth-child(1) {
        grid-column: 1/4;
        grid-row: 1/3;
    }

    /* .m4 .recently .item:nth-child(1) .t_14,
    .m4 .editor .item:nth-child(1) .t_14 {
        display: block;
    } */
    .m4 .editor .item {
        width: 50%;
    }

    .m4 .recently .item:nth-child(2),
    .m4 .editor .item:nth-child(2) {
        grid-column: 4/6;
        grid-row: 1/2;
        width: 50%;
    }

    .m4 .editor .item:nth-child(1) img {
        aspect-ratio: 1 / 0.6;
    }

    .m4 .recently .item:nth-child(2) .images,
    .m4 .editor .item:nth-child(2) .images {
        padding: 12px 12px 0;
    }

    .m4 .recently .item:nth-child(2) .text,
    .m4 .editor .item:nth-child(2) .text {
        padding: 0 12px 12px;
    }

    .m4 .recently .item:nth-child(2) .images,
    .m4 .editor .item:nth-child(2) .images,
    .m4 .recently .item:nth-child(2) .text,
    .m4 .editor .item:nth-child(2) .text {
        flex: 0 0 100%;
    }


    .m4 .recently .item:nth-child(3),
    .m4 .editor .item:nth-child(3) {
        grid-column: 4/6;
        grid-row: 2/3;
        width: 50%;
    }

    .m4 .recently .item {
        flex: 0 0 33.33%;

    }
    .m4 .recently img{
        aspect-ratio: 1 / 0.6;
    }
    .m4 .recently .item:nth-child(1) .t_14{
        display: -webkit-box;
        -webkit-line-clamp: 4;
    }

    .m4 .recently .item a {
        padding-left: 12px;
        padding-right: 12px;
    }
    .m4 .trending .item{
        flex: 0 0 50%;
    }

    .m4 .editor {
        order: -1;
    }

    footer .grid .logo {
        grid-column: 1 / 3;
        grid-row: 1 / 2;
    }

    footer .category-list {
        grid-column: 1 / 3;
        grid-row: 2 / 7;
    }

    footer .grid .py {
        grid-column: 1 / 2;
        grid-row: 7 / 8;
    }

    footer .grid .ty {
        grid-column: 2 / 3;
        grid-row: 7 / 8;
    }

    footer .grid .share {
        grid-column: 1 / 3;
        grid-row: 8/9;
        display: flex;
    }

    footer .copyright {
        grid-column: 1 / 3;
        grid-row: 9 / 10;
        text-align: center;
    }

    footer .logo {
        text-align: left;
    }

    .m3 .heading {
        padding: 12px;
    }

    .search-list,
    .right-list {
        flex: 0 0 100%
    }

    .m2 .latest .item .text {
        padding-right: 12px;
    }

    .m4 .flex.list {
        width: 100%;
    }

    .m4 .editor .item .p-24 {
        padding: 12px;
    }

    .m4 .editor .item .pl-24 {
        padding-left: 12px;
    }
}

@media (max-width:768px) {
    .category .item {
        flex: 0 0 calc(50% - 9px);
    }

    .category .item .text {
        padding: 12px 12px 20px;
    }

    .dt-main,
    .dt-left,
    .dt-right {
        flex: 0 0 100%;
width:100%;
        padding-top: 0px;
    }

    .dt-main {
        order: -1;
    }

    .dt-left {
        order: 2;
    }

    .text-bottom {
        padding-top: 40px;
    }

    .dt-right .item a {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .dt-right .item a img {
        grid-column: 1/2;
        grid-row: 1/4;
        margin-bottom: 0px;
    }

    .dt-right .item a h2 {
        grid-column: 2/4;
        grid-row: 1/4;
        -webkit-line-clamp: 5;
    }

    .dt-right .item a p {
        display: none;
    }

    .dt-left .heading,
    .dt-right .heading {
        margin-bottom: 0px;
    }

    .m4 .recently .heading.pl-24,
    .m4 .trending .heading.pl-24 {
        padding-left: 12px;
    }

    .m4 .recently .item .pl-24 {
        padding-left: 12px;
    }

    .m4 .recently .item .pr-24 {
        padding-right: 12px;
    }

    .m4 .trending .item a.p-24 {
        padding: 12px;
    }

    .navbar .head-search-btn a {
        padding: 0 20px;
    }



}

@media (max-width:550px) {
    .container {
        padding: 0 0px;
    }

    section {
        padding-top: 12px;
    }

    .f-size-24 {
        font-size: 18px;
        line-height: 26px;
    }

    p.time,
    .f-size-16 {
        font-size: 14px;
        line-height: 20px;
    }

    .f-size-20 {
        font-size: 16px;
        line-height: 22px;
    }

    .heading {
        font-size: 20px;
        line-height: 26px;
    }

    .heading span {
        font-size: 64px;
        line-height: 72px;
    }

    .gap-48 {
        gap: 12px;
    }

    .mb-24 {
        margin-bottom: 18px;
    }

    .m2 .latest .heading,
    .m4 .editor .heading,
    .category .heading,
    .search-list .heading {
        padding-top: 24px;
        padding-left: 16px;
    }
    .heading span {
        font-size: 50px;
        line-height: 60px;
        padding-left: 12px;
    }
    .m2 .popular .heading.p-24 {
        margin-bottom:0
    }
    .m1 .flex .b-1,
    .m1 .flex .b-2,
    .m1 .flex .b-3 .item {
        flex: 0 0 100%;
    }

    .m1 .flex .b-2 .item {
        flex: 0 0 50%;
    }

    .m1 .flex .b-1 img,
    .m1 .flex .b-2 img {
        aspect-ratio: 1 / 0.6;
    }

    /* .m1 .flex .b-4 .item,
    .m3 .flex .item {
        padding: 18px;
    } */
    .m1 .flex .b-4 .item .text.p-24,
    .m3 .flex .item .text.p-24 {
        padding: 12px;
    }

    .m1 .flex .b-4 .item .images,
    .m3 .flex .item .images {
        padding-right: 12px !important;
        padding-bottom: 12px !important;
        padding-top: 12px !important;
    }

    /* .m4 .recently,
    .m4 .trending {
        padding: 12px 12px;
    } */

    footer {
        padding-top: 80px;
    }

    .text-bottom {
        padding-top: 24px;
    }

    .text-bottom .like-p p {
        font-size: 16px;
        line-height: 22px;
    }

    .like-list {
        align-items: center;
    }

    .dt-right .item a {
        grid-template-columns: repeat(2, 1fr);
    }

    .dt-left .heading,
    .dt-right .heading {
        margin-bottom: 10px;
        font-size: 16px;
        line-height: 22px;
    }

    .navbar {
        padding: 6px 12px;
    }

    .f-size-18 {
        font-size: 14px;
        line-height: 18px;
    }

    .like-grade p {
        width: 40px;
        height: 40px;
    }

    .like-grade p.active {
        font-size: 20px;
        line-height: 40px;
    }

    .like-grade {
        flex: 0 0 40px;
    }

    .like-a {
        gap: 4px;
        padding-right: 12px;
        flex: 0 0 calc(100% - 40px);
    }

    .like-a a {
        flex: 0 0 calc(10% - 4px);
    }

    .text-bottom {
        padding-top: 12px;
    }

    .dt-content .categoryname {
        font-size: 12px !important;
        line-height: 16px !important;
    }

    .dt-content .dt-title {
        font-size: 20px !important;
        line-height: 24px !important;
        margin-top: 12px !important;
    }

    .right-list .heading {
        padding: 12px 12px 0;
    }

    .right-list .item .text {
        flex: 0 0 calc(100% - 80px);
        padding: 12px 12px;
    }

    .right-list .item .images {
        flex: 0 0 80px;
        padding-top: 12px;
        padding-right: 12px;
        padding-bottom: 12px;
    }

    .m2 .popular .heading.p-24 {
        padding: 12px;
    }

    .m2 .popular .item .text {
        padding-left: 12px;
        padding-bottom: 12px;
    }

    .m2 .popular .item .images {
        padding-right: 12px;
        padding-bottom: 12px;
    }

    .m1 .flex .b-2 .item:nth-child(1) a {
        padding-right: 6px;
        padding-top: 0;
    }

    .m1 .flex .b-2 .item:nth-child(2) a {
        padding-left: 6px;
        padding-top: 0;
    }

    .mb-8,
    .mb-12 {
        margin-bottom: 4px;
    }

    .m2 .latest .item .images img {
        height: 100%;
    }

    .m1 .flex .b-3 .text {
        padding-bottom: 0;
    }

    .m1 .flex .b-3 .heading {
        padding-bottom: 0;
    }

    .m2 .latest .item .images,
    .m2 .latest .item .text {
        padding-bottom: 0;
    }

    .m3 .grid .item:nth-child(2n+1) a {
        padding-right: 6px;
        padding-bottom: 0;
    }

    .m3 .grid .item:nth-child(2n+2) a {
        padding-left: 6px;
        padding-bottom: 0;
    }

    .m4 .editor .item .pb-24 {
        padding-bottom: 12px;
    }

    .m4 .editor .item .text.pr-24 {
        padding-right: 12px;
    }

    .m4 .recently .item .pb-12 {
        padding-bottom: 0;
    }

    .m4 .recently .item:last-child .pb-12 {
        padding-bottom: 12px;
    }

    .m4 .recently {
        margin-bottom: 12px;
    }

    .m4 .trending .item a.p-24 {
        padding: 12px;
    }

    .m2 .latest .item:last-child .images,
    .m2 .latest .item:last-child .text {
        padding-bottom: 12px;
    }

    .m4 .editor .item:nth-child(1) a{
        padding-right: 6px;
    }
    .m4 .editor .item:nth-child(2) a{
        padding-left: 6px !important;
    }
    .m4 .editor .item:nth-child(3),
    .m4 .editor .item:nth-child(4),
    .m4 .editor .item:nth-child(5){
        width: 100%;
    }
    .m4 .recently .item,
    .m4 .trending .item {
        flex: 0 0 100%;
    }
}

@media (max-width:450px) {
    .back-to-top img {
        width: 30px;
    }

    .back-to-top {
        bottom: 140px;
        right: 40px;
    }

    .f-size-24 {
        font-size: 16px;
        line-height: 22px;
    }

    p.time,
    .f-size-16 {
        font-size: 12px;
        line-height: 16px;
    }

    .mb-8 {
        margin-bottom: 4px;
    }

    .gap-24 {
        gap: 12px;
    }

    /* .m1 .flex .b-2 .item {
        flex: 0 0 calc(50% - 6px);
    } */

    .f-size-20 {
        font-size: 14px;
        line-height: 18px;
    }

    /* .m1 .flex .b-4 .item,
    .m3 .flex .item {
        padding: 12px;
    } */

    .m1 .flex .b-4 .item .images,
    .m3 .flex .item .images {
        flex: 0 0 75px;
    }

    .m1 .flex .b-4 .item .text,
    .m3 .flex .item .text {
        width: calc(100% - 75px);
        padding-right: 12px;
    }

    .m1 .flex .b-3 .text {
        flex: 0 0 calc(100% - 65px);
        padding-right: 12px;
    }

    .m2 .latest .item .f-size-16 {
        display: none;
    }

    .m2 .latest .item .t_12 {
        -webkit-line-clamp: 3;
    }

    .mb-12 {
        margin-bottom: 8px;
    }

    .m3 .grid .item:nth-child(1),
    .m3 .grid .item:nth-child(2) {
        grid-column: span 2;
        grid-row: span 1;
    }

    .m4 .recently .flex {
        grid-template-columns: repeat(2, 1fr);
    }

    .m4 .editor .flex.gap-24 {
        grid-template-columns: repeat(1, 1fr);
    }

    .m4 .editor .item:nth-child(1),
    .m4 .editor .flex.item {
        grid-column: span 1;
        grid-row: span 1;
    }

    .m4 .recently .item:nth-child(1) {
        grid-column: span 2;
        grid-row: span 1;
    }

    .m4 .recently .item:nth-child(2),
    .m4 .recently .item:nth-child(3) {
        grid-column: span 1;
        grid-row: span 1;
    }

    .m4 .editor .flex.item {
        display: flex;
    }

    .pb-12 {
        padding-bottom: 8px;
    }

    footer .category-list .heading {
        font-size: 16px;
        line-height: 20px;
    }

    footer .category-list a,
    footer .grid .py a,
    footer .grid .ty a,
    footer .copyright p {
        font-size: 14px;
        line-height: 18px;
    }

    footer .grid .share a {
        padding: 4px;
    }

    .category .item {
        flex: 0 0 100%;
    }
    .m4 .recently .heading.pl-24, .m4 .trending .heading.pl-24 {
padding-bottom:0px;
        padding-left: 12px;
    }
    .category .item .text {
        padding: 4px 12px 12px;
    }

    .m3 .grid .item:nth-child(1) a {
        padding-right: 12px;
    }

    .m3 .grid .item:nth-child(2) a {
        padding-left: 12px;
    }
}