body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
}

.container {
    margin: 40px auto;
    padding: 20px;
    background: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.logo {
    display: block;
    margin: 0 auto 30px auto;
    width: 200px;
}

.dialog {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #eef4ff;
    border-left: 5px solid #ff0000;
    border-radius: 8px;
}

.dialog strong {
    display: block;
    margin: 10px 0;
    font-size: 1.1em;
}

h2 {
    margin-top: 40px;
    color: #6b0a0a;
}

p {
    margin-bottom: 20px;
}

ul {
    margin-left: 20px;
}

/* Logo hình ảnh */
.logo-container {
    margin: 10px 10px;
}

.logo-container img {
    width: 200px;
    cursor: pointer;
    transition: transform 0.2s;
}

.logo-container img:hover {
    transform: scale(1.05);
}

.product-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.product-container h3 {
    color: #ff0000;
}

.product {
    flex: 1;
    border: none;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    background-color: #f9f9f9;
}

.product img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

.product h3 {
    margin: 10px 0 5px;
}

.product .price {
    color: red;
    font-weight: bold;
    margin-bottom: 10px;
}

.product .description {
    font-size: 14px;
    color: #555;
}

.product-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-link * {
    text-decoration: none !important;
}

.special {
    margin: 90px 3%;
}

.special h1 {
    margin: 10px 0;
}

.special-images {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.special-images img {
    max-width: 100%;
    width: 45%;
    border-radius: 8px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}

.certificates-section {
    margin-left: 2%;
}

.certificate h4 {
    padding: 3px;
    background-color: gray;
}

.certificates-section h1 {
    text-align: center;
    color: #ff0000;
    margin-bottom: 30px;
    border-bottom: 2px solid #ff0000;
}

.certificates-section h2 {
    text-align: center;
    color: #ff0000;
    margin-bottom: 30px;
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.certificate {
    text-align: center;
    background-color: #f2f2f2;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.certificate img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

.certificate h4 {
    margin: 10px 0 5px;
    font-size: 16px;
    color: #333;
}

.certificate p {
    font-size: 14px;
    color: #666;
}

.contact {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 10px;
    flex-wrap: wrap;
    background-color: #ff0000;
    ;
}

.office {
    flex: 1;
    min-width: 220px;
    border-radius: 8px;
    padding: 15px;
}

.office h3 {
    color: white;
    margin-bottom: 10px;
}

.office p {
    margin: 4px 0;
    font-size: 14px;
    color: white;
}

.message-section {
    background-color: #c40e0e;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px;
    font-family: Arial, sans-serif;
    flex-wrap: wrap;
}

.message-text {
    flex: 1;
    min-width: 300px;
    padding-right: 30px;
}

.message-text h2 {
    font-size: 24px;
    margin-bottom: 20px;
    text-transform: uppercase;
    color: #fff;
}

.message-text p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 10px;
}

.message-image {
    flex: 1;
    min-width: 280px;
    text-align: center;
}

.message-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.logo {
    width: 20%;
    margin: 0 auto 30px;
    display: block;
}

.dialog {
    max-width: 800px;
    margin: 0 auto;
    background-color: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.dialog strong {
    display: block;
    font-size: 18px;
    margin-bottom: 15px;
    padding: 12px 20px;
    background-color: #e6f3f5;
    border-left: 5px solid #ff0000;
    border-radius: 8px;
}

.hoptac h3 {
    margin-left: 3%;
    color: #ff0000;
}

.hoptac h1 {
    border-bottom: 2px solid #ff0000;
    text-align: center;
}

.tochuc {
    margin: 40px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.tochuc h1 {
    color: #ff0000;
    text-align: center;
    margin-bottom: 30px;
    font-size: 2em;
    border-bottom: 2px solid #ff0000;
    padding-bottom: 10px;
}

.tochuc h2 {
    color: #ff0000;
    margin-top: 30px;
    font-size: 1.4em;
}

.tochuc ul {
    padding-left: 20px;
}

.tochuc li {
    margin-bottom: 8px;
}

.tochuc .section {
    margin-bottom: 30px;
}

.tochuc img {
    display: block;
    margin: 30px auto 0 auto;
    max-width: 90%;
}

.highlight {
    font-weight: bold;
    /* color: #0082C6; */
}

.quote {
    font-style: italic;
    color: #666;
    margin-top: 10px;
}

#backToTopBtn {
    display: none;
    /* Ẩn ban đầu */
    position: fixed;
    bottom: 40px;
    right: 30px;
    z-index: 999;
    font-size: 18px;
    border: none;
    outline: none;
    background-color: #ff0000;
    color: white;
    cursor: pointer;
    padding: 12px 16px;
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: opacity 0.3s ease;
}

#backToTopBtn:hover {
    background-color: #ff0000;
}

@media (max-width: 1024px) {

    html,
    body {
        overflow-x: hidden;
        max-width: 100%;
    }

    .logo {
        width: 50%;
    }

    .dialog strong {
        font-size: 16px;
        padding: 10px 16px;
    }

    .message-section {
        flex-direction: column;
        text-align: center;
    }

    .message-text {
        padding-right: 0;
    }

    .message-text h2 {
        font-size: 20px;
    }

    .certificates-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 12px;
        padding-bottom: 10px;
    }

    .certificate {
        flex: 0 0 auto;
        width: 80%;
        max-width: 250px;
        scroll-snap-align: start;
    }

    /* Ẩn thanh cuộn nhưng vẫn có thể gạt */
    .certificates-grid::-webkit-scrollbar {
        display: none;
    }

    .certificates-section {
        margin-left: 0;
        padding: 0 12px;
    }

    #backToTopBtn {
        display: none !important;
    }
}