@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);
}

section.content {
    padding: 100px 30px 30px;
    background-color: #ebebeb;
    font-family: var(--font-main);
}

.container-wrap {
    max-width: 1200px;
    margin: 0 auto;
}

.container-wrap .total-wrap {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px
}

.container-wrap .total-wrap.active {
    grid-template-columns: repeat(1, 1fr) !important;
}

.container-wrap .total-wrap.active .card-ielts {
    display: flex;
    align-items: center;
    gap: 20px;
}

.container-wrap .total-wrap.active .card-ielts .img-card {
    width: 40%;
}

.container-wrap .total-wrap.active .card-ielts .body-cardielts {
    width: 60%;
}

.container-wrap .total-wrap.active .card-ielts .body-cardielts .bottom-card {
    padding-bottom: 0;
    width: 54%;
}

.wrap-tong {
    display: flex;
    gap: 20px;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

/* Phần bên trái gồm icon và text */
.content-tong {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    background-color: #ffffff;
    padding: 8px;
    border-radius: 5px 0 0 5px;
    width: 300px;
}

.tongquan {
    display: flex;
    gap: 10px;
    font-size: 1em;
}

.icon-sachlist {
    background-color: #fff;
    padding: 8px 16px;
    font-size: 18px;
    color: #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.icon-sachlist i {
    color: #616161;
}

.icon-sachlist.active {
    background-color: var(--color-button);
}

.icon-sachlist.active i {
    color: #fff;
}


.text-show {
    color: #666;
}

/* Form tìm kiếm */
.search-form {
    display: flex;
    align-items: center;
    background-color: white;
    width: 300px;
    border-radius: 5px;
}

.search-form input[type="search-ip"] {
    border: none;
    outline: none;
    padding: 20px;
    font-size: 14px;
    flex: 1;
}

.search-form input[type="search-ip"]::placeholder {
    color: rgb(212, 212, 212);
}

.search-form .icon-search {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 70px;
    height: 55px;
    background-color: var(--color-button);
    border-radius: 0 5px 5px 0;
    cursor: pointer;
}

.icon-search::before {
    color: #fff;
    font-size: 20px;
}

.search-form .icon-search img {
    width: 18px;
    height: 18px;
    object-fit: cover;
}

input:placeholder-shown {
    text-align: center;
}

/* Card nội dung IELTS */
.card-ielts {
    border-radius: 5px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    font-family: var(--font-main);
    padding: 12px;
}

.img-card a {
    display: block;
    padding: 10px;
}

.img-cardielts {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 5px;
}

.body-cardielts {
    padding: 16px;
}

.price-span {
    background-color: #7c0a0a;
    display: inline-block;
    padding: 5px 10px;
    border-radius: 4px;
    margin-bottom: 6px;
}

.price {
    color: white;
    font-size: 0.875em;
}

.link-card .cat {
    display: block;
    font-size: 0.875em;
    color: #444;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
    padding-top: 10px;
}

.title-card {
    font-size: 1.1em;
    font-weight: bold;
    margin: 25px 0;
    font-family: 'nunito';
}

.title-card a {
    color: #000;
    text-decoration: none;
}

.title-card a:hover {
    text-decoration: underline;
}

.bottom-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding-bottom: 40px;
    font-size: 0.875em;
    gap: 8px;
}

.info-meta {
    display: flex;
    flex-direction: row;
    gap: 8px;
}

.container-wrap .total-wrap.active .card-ielts .body-cardielts .info-meta {
    flex-direction: column;
}

.user-icon {
    color: #444;
}

.user-icon i {
    margin-right: 4px;
}

.rating {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #FFB606;
}

.rating .star {
    margin-right: 2px;
}

.stt {
    margin-left: 4px;
    color: #444;
}

.btn-part {
    background-color: #ffffff;
    color: #000000;
    padding: 10px 15px;
    border: 1px solid #f2f2f2;
    text-align: center;
    transition: background 0.3s ease;
}

.btn-part i::before {
    color: #6b6969;
    font-size: 20px;
}

.btn-part:hover {
    background-color: #5a0808;
}

.btn-part:hover i::before {
    color: #fff;
}

.footer-block .copyright {
    margin-top: unset;
}

@media(min-width:480px) {
    .content-tong {
        width: 420px;
    }

    .tongquan {
        display: flex;
        flex-direction: row;
    }

    .search-form {
        width: 450px;
    }

    input:placeholder-shown {
        text-align: left;
    }


    .title-card {
        font-size: 1.2em;
    }
}

@media (min-width:576px) {
    .content-tong {
        width: 500px;
    }

    .search-form {
        width: 500px;
    }

}

@media(min-width:768px) {
    .container-wrap .total-wrap.active .card-ielts .body-cardielts .info-meta {
        flex-direction: row;
    }

    .container-wrap .total-wrap {
        grid-template-columns: repeat(2, 1fr);
    }

    .content-tong {
        width: 700px;
    }

    .search-form {
        width: 700px;
    }


}

@media(min-width:996px) {
    .container-wrap .total-wrap {
        grid-template-columns: repeat(3, 1fr);
    }

    .wrap-tong {
        display: flex;
        gap: 30px;
    }

    .content-tong {
        width: 48%;
    }

    .search-form {
        width: 48%;
    }
}

