@font-face {
    font-family: "roboto";
    src: url(./fonts/Roboto-Regular.ttf);
    font-weight: 400;
}

@font-face {
    font-family: "roboto";
    src: url(./fonts/Roboto-Medium.ttf);
    font-weight: 500;
}

@font-face {
    font-family: "roboto";
    src: url(./fonts/Roboto-Bold.ttf);
    font-weight: 700;
}

@font-face {
    font-family: "nunito";
    src: url(./fonts/Nunito-Regular.ttf);
    font-weight: 400;
}

@font-face {
    font-family: "nunito";
    src: url(./fonts/Nunito-Medium.ttf);
    font-weight: 500;
}

@font-face {
    font-family: "nunito";
    src: url(./fonts/Nunito-Bold.ttf);
    font-weight: 700;
}

:root {
    --font-main: "roboto";
    --text-title: #101010;
    --text-describe: #646764;
    --color-button: #962428;
    --color-hover: #ff551d;
    --mauchinh: #171f32;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-style: normal;
    font-size: 16px;
    font-family: var(--font-main);
    font-weight: 400;
    color: var(--text-title);
}


.sct-write {
    display: flex;
    /* flex-wrap: wrap; */
    gap: 20px;
    flex-direction: column;
    margin: 20px auto;
    max-width: 1200px;
    padding: 20px;
    box-sizing: border-box;
}

.write-left {
    width: 100%;
}


.write-right {
    width: 100%;
}

.bai-dang {
    background: #fff;
    padding: 20px;
    box-shadow: 0 4px 12px rgb(180 177 177 / 10%);
}

.write-left .bai-viet {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.title-baidang {
    font-size: 1.1em;
    font-weight: bold;
    color: var(--text-title);
    text-decoration: none;
    line-height: 1.28;
    display: block;
    margin-bottom: 10px;
    padding-top: 20px;
    font-family: 'nunito';
}

.title-baidang:hover {
    color: #972428;
}

.tag-line {
    font-size: 1em;
    color: #666;
    margin-top: 20px;
    margin-bottom: 20px;
}

.part-link {
    color: #555555;
    text-decoration: none;
    margin: 0 5px;
    font-family: 'Tahoma', Geneva, Verdana, sans-serif;
}

.part-link:hover {
    color: #972428;
}


.blog-desc {
    font-size: 1em;
    color: #555;
    line-height: 1.6;
    margin-bottom: 25px;
    font-family: 'Tahoma', Geneva, Verdana, sans-serif;
}


.blog-button {
    color: var(--text-title);
    text-decoration: none;
    transition: background 0.3s;
    padding-bottom: 40px;
    display: flex;
    flex-direction: row;
}

.phan-trang {
    text-align: center;
    margin-top: 20px;
}

.blog-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #444;
    text-decoration: none;
    transition: color 0.3s ease;
    font-family: 'Tahoma', Geneva, Verdana, sans-serif;
}

.blog-btn i {
    color: #444;
    margin-top: 3px;
}

.blog-btn:hover {
    color: #972428;
}

.blog-btn:hover i {
    color: #972428;
}

.pagination {
    display: flex;
    background-color: white;
    box-shadow: 0 4px 12px rgb(180 177 177 / 10%);
    overflow: hidden;
    width: fit-content;
    margin-top: 50px;
}

.pagination button {
    color: var(--text-title);
    padding: 14px 0;
    margin: 0;
    text-decoration: none;
    border: none;
    background-color: #fff;
}

.pagination button a {
    color: #444;
    text-decoration: none;
    font-size: 1.2em;
    border-right: 1px solid #999;
    display: block;
    padding: 0 20px;
}

.pagination button:last-child a {
    border: none;
}

.pagination a.active,
.pagination a:hover {
    color: #972428;
}


.write-right .categogies {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 10px;
}

.write-right .search-right {
    padding: 0 15px 15px 15px;
}

.title-searchcat {
    position: relative;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 40px;
}

.title-searchcat::after {
    content: "";
    position: absolute;
    background: #ff5421;
    height: 2px;
    width: 50px;
    left: 0;
    bottom: -20px;
    /* tách khỏi chữ */
    display: block;
    z-index: 1;
}

.search-for {
    display: flex;
}

.inp-gro input[type="text"] {
    width: 100%;
    padding: 13px 12px;
    border: 1px solid #ccc;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    width: 230px;
}

.kinh-search .img-kinh {
    background: #ff5421;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}

.img-kinh img {
    height: 20px;
}

.catagogies-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #333;
    padding: 10px;
    border-radius: 6px;
    transition: background 0.3s;
}

.catagogies-link:hover {
    background: #e6f0ff;
}

.text-cat {
    margin: 0;
    font-size: 15px;
}

@media screen and (min-width: 768px) {
    .sct-write {
        flex-direction: row;
    }

    .write-left {
        width: 65%;
    }


    .write-right {
        width: 30%;
    }

}

@media screen and (min-width: 1200px) {
    .sct-write {
        gap: 40px;
    }

    .title-baidang {
        font-size: 1.4em;
    }
}