* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    font-family:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Oxygen,
        Ubuntu,
        Cantarell,
        "Open Sans",
        "Helvetica Neue",
        sans-serif;
    /* background-color: darksalmon; */
}

/* -------------------- CV -------------------- */
.container-cv {
    background-color: #c3a39f;
    padding-top: 20px;
    padding-bottom: 20px;
    font-weight: 500;
    line-height: 1.6;
    text-align: justify;
    /* word-spacing: 1px; */
}

.container-cv-content {
    background-color: white;
    width: 532px;
    margin: 0 auto;
    padding-left: 48px;
    padding-right: 48px;
    padding-top: 28px;
    padding-bottom: 28px;
}

.container-cv-content h1 {
    font-size: 13px;
    font-weight: 700;
}

.container-cv-content h2,
.container-cv-content h3 {
    font-size: 8px;
    font-weight: 700;
}

.container-cv-content p {
    font-size: 8px;
}

.container-cv-content li {
    font-size: 7px;
}

/* ul */
.container-cv-content ul {
    list-style: disc;
}

/* CONTENT */
.header-cv {
    padding-left: 100px;
    padding-right: 100px;
}

.header-cv h1 {
    padding-left: 36px;
    padding-right: 36px;
}

.title {
    padding-top: 16px;
    padding-bottom: 6px;
    border-bottom: 1px solid black;
}

.job-title {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding-top: 12px;
    padding-bottom: 12px;
}

.job-title-content {
    padding-left: 15px;
}
.job-title-content li {
    padding-left: 4px;
}

.education-degree {
    padding-top: 12px;
    padding-bottom: 4px;
}

.education-degree b {
    font-weight: 700;
}

/* -------------------- MENU -------------------- */
.container-menu {
    background-color: #3e5cca;
    padding: 0 56px;
    font-size: 0;
}

.container-menu li {
    display: inline-block;
}

.container-menu li a {
    display: inline-block;
    padding: 32px;
    background-color: #3e5cca;
    color: #e7edf3;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
}

.container-menu .active a {
    background-color: #eeeeee;
    color: #111111;
}

/* -------------------- FORM -------------------- */
.form {
    width: 400px;
    background-color: #c3a39f;
    margin: 0 auto;
    padding: 12px 80px;
}

.form h1 {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
}

.form-group .form-label {
    display: block;
    margin: 12px 0 4px;
    font-weight: 400;
}

.form-group .form-label img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-top: 8px;
}

.form-group input {
    width: 240px;
    outline: none;
    padding: 4px 8px;
    border: 1px solid #111111;
    border-radius: 4px;
}

.form-group .form-gender input {
    width: 10px;
}

.form-references label {
    display: block;
    padding: 4px 0;
}
.form-references input {
    width: 10px;
}

#submit {
    margin-top: 8px;
    padding: 8px 4px;
    cursor: pointer;
}

/* -------------------- Menu Enhanced -------------------- */

.container-menu-enhanced {
    background-color: #3e5cca;
    padding: 0 56px;
    font-size: 0;
}

/* active */
.container-menu-enhanced:active {
    border-top: 3px solid #c3a39f;
    border-bottom: 3px solid #c3a39f;
}

.container-menu-enhanced li {
    color: #e7edf3;
    display: inline-block;
    height: 72px;
    border-left: 1px solid red;
}

.container-menu-enhanced li:last-child {
    border-right: 1px solid red;
}

.container-menu-enhanced li a {
    display: inline-block;
    padding: 28px;
    background-color: #3e5cca;
    color: #e7edf3;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
}

.container-menu-enhanced li a::before {
    content: "❤️";
}

.container-menu-enhanced li:hover,
.container-menu-enhanced li a:hover {
    background-color: #eeeeee;
    color: #111111;
}

/* -------------------- form-interactive -------------------- */

.form-interactive {
    width: 400px;
    background-color: #c3a39f;
    margin: 0 auto;
    padding: 12px 80px;
}

/* Thêm style cho container/form khi có phần tử trong form được focus */
.form-interactive:focus-within {
    border: 1px solid #111;
}

.form-interactive h1 {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
}

.form-interactive .form-group .form-label {
    display: block;
    margin: 12px 0 4px;
    font-weight: 400;
}

.form-interactive .form-group .form-label img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-top: 8px;
}

.form-interactive .form-group input {
    width: 240px;
    outline: none;
    padding: 4px 8px;
    border: 1px solid #111111;
    border-radius: 4px;
}

/* Xử lý để cho tất cả input đổi màu viền khi focus */
.form-interactive .form-group input:focus {
    border: 1px solid #92c5ce;
}

/* Khi nhập text vào các input, nếu có lỗi (invalid) thì đổi màu viền input sang đỏ */
.form-interactive .form-group input:invalid {
    border: 1px solid red;
}

/* Sử dụng ::after để thêm dấu sao đỏ (*) cho các trường bắt buộc */
.form-interactive .requied::after {
    content: " (*)";
}

.form-interactive .form-group .form-gender input {
    width: 10px;
}

.form-interactive .form-references label {
    display: block;
    padding: 4px 0;
}
.form-interactive .form-references input {
    width: 10px;
}

.form-interactive #submit {
    margin-top: 8px;
    padding: 8px 4px;
    opacity: 0.5;
    cursor: pointer;
}

/* Tạo hiệu ứng hover và active cho nút submit */
.form-interactive #submit:hover {
    color: violet;
    background-color: antiquewhite;
    opacity: 1;
}

.form-interactive #submit:active {
    background-color: #3e5cca;
    opacity: 1;
}

/* -------------------- pricing-table -------------------- */

.container-wrapper {
    background-color: #5176e6;
    padding: 44px;
}

.container-pricing-table {
    width: 504px;
    background-color: #f5f9fd;
    font-size: 0;
    padding: 28px 52px;
}

.pricing {
    display: inline-block;
    vertical-align: top;
    width: 124px;
    height: 184px;
    padding: 18px 8px 16px 12px;
    background-color: #fff;
    border: 1px solid inherit;
    border-radius: 4px;
}

/* Sử dụng :hover để tạo hiệu ứng nổi lên khi di chuột qua mỗi gói */
.pricing:hover {
    box-shadow: 1px 2px 16px;
}

.pricing-content {
    height: 104px;
    margin-bottom: 32px;
}

.pricing ul {
    /* list-style: disc;
    margin-left: 9px; */
    line-height: 12px;
}
/* Dùng :nth-child(2) để làm nổi bật gói ở giữa (gói Pro) */
.container-wrapper .pricing:nth-child(2) {
    margin: 0 12px;
    background: linear-gradient(to bottom, #71a1ef, #025ff6);
}
.container-wrapper .pricing:nth-child(2) input {
    background-color: #fff;
}

.pricing p,
.pricing li {
    font-size: 0.3125rem;
}

/* Sử dụng ::before để thêm icon ✓ trước mỗi tính năng có sẵn */
.pricing p {
    display: inline-block;
}
.pricing ul li p::before {
    display: inline-block;
    content: "✓";
    color: #22c55e;
    font-weight: 700;
}
.pricing .type-price,
.pricing .price {
    display: block;
    text-align: center;
    font-weight: 700;
}

.pricing .type-price {
    font-size: 0.3125rem;
}

.pricing .price {
    font-size: 0.75rem;
    /* font-weight: 700; */
    margin: 8px 0;
}

.pricing input {
    display: block;
    width: 60px;
    height: 14px;
    margin: 0 auto;
    font-size: 0.3125rem;
    background-color: #eaeaf2;
    border: 1px solid #eaeaf2;
    border-radius: 2px;
    cursor: pointer;
}

/* -------------------- Blog Post -------------------- */

.blog-container {
    max-width: 800px;
    margin: 10px auto;
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Tùy chỉnh ::selection để thay đổi màu khi người dùng bôi đen văn bản */
.blog-container::selection {
    background-color: #92c5ce;
}

/* Dùng :not() để áp dụng style cho tất cả heading ngoại trừ h1 */
.blog-container .heading:not(h1) {
    text-decoration: underline;
}

.blog-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.blog-meta {
    color: #777;
    font-size: 0.875rem;
    margin-bottom: 16px;
}

.blog-image {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 20px;
}

.blog-content {
    line-height: 1.7;
    margin-bottom: 30px;
}

.blog-content h2 {
    font-weight: 700;
}

/* Sử dụng ::first-letter để tạo kiểu drop cap (chữ cái đầu lớn) cho đoạn văn đầu tiên */
.blog-content p:first-child::first-letter {
    font-size: 2rem;
    font-weight: 700;
    color: #c3a39f;
}

/* Sử dụng ::first-line để làm nổi bật dòng đầu tiên của mỗi đoạn */
.blog-content p::first-line {
    text-decoration: underline;
    background-color: #40ed7f;
}

/* Sử dụng :nth-of-type() để tạo kiểu khác nhau cho các phần tử cùng loại */
.blog-content p:nth-of-type(odd) {
    background: #fafafa;
    padding: 10px;
    border-radius: 6px;
}

.blog-content p:nth-of-type(even) {
    background: #f1f7ff;
    padding: 10px;
    border-radius: 6px;
}

.blog-quote {
    border-left: 4px solid #0984e3;
    background: #f1f7ff;
    padding: 12px 16px;
    margin: 20px 0;
    font-style: italic;
    color: #2d3436;
    border-radius: 6px;
}

/* Sử dụng ::before để thêm dấu ngoặc kép trang trí cho các đoạn trích dẫn (nội dung cần bổ sung đoạn trích dẫn blockquote) */
.blog-quote::before {
    content: '"';
}

.blog-quote::after {
    content: '"';
}

/* comments */

.comments-title {
    font-size: 1.5rem;
    margin-bottom: 16px;
    border-top: 1px solid #eee;
    padding-top: 16px;
}

.comment {
    margin-bottom: 16px;
    font-size: 0;
}

/* Tạo phần comment với hiệu ứng hover cho từng comment */
.comment:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ddd;
    display: inline-block;
    vertical-align: middle;
}

.comment-body {
    display: inline-block;
    vertical-align: middle;
    width: calc(100% - 52px);
    margin-left: 12px;
    background: #f1f2f6;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.875rem;
}

.comment-name {
    font-weight: bold;
    margin-bottom: 4px;
}

/* form */

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    resize: none;
}

.comment-form button {
    background: #0984e3;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
}

.comment-form button:hover {
    background: #0873c4;
}
