@font-face {
    font-family: BeVietnamPro-SemiBold;
    src: url("BeVietnamPro-SemiBold.ttf") format("truetype");
}

@font-face {
    font-family: Poppins;
    src: url("Poppins-Regular.ttf") format("truetype");
}

* {
    font-family: "Poppins", sans-serif;
    font-weight: bold;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.container{
    width:100%;
    margin: 0;
    padding: 0;
}

body{
    margin: 0;
    color: #032854;
    cursor: url('img/custom-cursor.cur'), auto;
    font-size: 12px;
}

section{
    width: 100%;
    background-image: url("img/background.jpg");
    background-color: rgba(255, 255, 255, 0.7);
    background-size: cover;
    background-blend-mode: soft-light;
    min-height: 100vh;

}
header{
    position: fixed;
    top: 0;
    width: 100%;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #02468d;
    color: floralwhite;
}

.logo-image {
    width: 20%;
    max-height: 50px;
    height: auto;
    min-width: 4rem;
}

ul{
    list-style: none;
    display: flex;
    gap: 1rem;
}

.nav_list a{
    color: white;
    font-weight: bold;
    padding: 0.5rem 1rem;
    transition: background-color 0.3s ease;
    text-decoration: none;
}

.nav_list a:hover{
    background-color: #1d72b8;
    color: #02468d;
    border-radius: 5px;
}

.nav_list a {
    position: relative;
    color: white;
    font-weight: bold;
    padding: 0.5rem 1rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav_list a::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: white;
    transition: width 0.3s ease-in-out;
}

.nav_list a:hover::after {
    width: 100%;
}

.introduction-section {
    padding: 50px 20px 10px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    text-align: center;
}

.introduction-section p {
    padding-top: 1rem;
}



h1{
    font-family: "BeVietnamPro-SemiBold", sans-serif;
    font-size: 60px;
    color: #1d72b8;
    font-style: normal;
    padding-top: 60px;
    padding-bottom: 0.5rem;
    font-weight: bold;
}

h2{
    font-family: "BeVietnamPro-SemiBold", sans-serif;
    font-size: 40px;
}

h3{
    font-family: "BeVietnamPro-SemiBold", sans-serif;
    font-size: 30px;
}

p{
    font-size: 16px;
    color: #0070b3;
    line-height: 1.7; 
    letter-spacing: 0.4px; 
}

#profilepic2 {
  width: 90%;
  height: auto;
  display: block;
  margin: 20px auto;
}

.services-section {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    flex-direction: column;
}

.services-page-title{
    text-align: center;
}

.services-section p {
    padding-left: 1rem;
    padding-right: 1rem;
}

.services-area article p {
    color: #566573; 
}


.services-area article {
    flex: 1;
    width: 100%;  /* Article chiếm toàn bộ chiều rộng trên mobile */
    padding: 1rem;
    background-color: #aeb6bf;
    border-radius: 8px;
    color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.services-area{
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
    flex-wrap: wrap;
}


article {
    width:100%;
    padding: 1rem;
    margin-bottom: 1.5rem;
    background-color: #02468d;
    border-radius: 8px;
    color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

article:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

figure {
    margin: 0 1rem 1rem 0;
    border-radius: 8px;
    overflow: hidden;
}

img {
    border-radius: 8px;
    width: 100%;
    height: auto;
}

figcaption{
    font-weight: bold;
    padding: 0.5rem;
    text-align: center;
}

.partners {
    display: flex;
    flex-direction: column; 
    align-items: center;
    max-width: 100%;
    margin: 20px auto;
    padding: 20px;
    border-radius: 10px;
}

.partners-content {
    width: 100%;
    text-align: center;
}    

.partners-content h2 {
    font-size: 32px;
    margin-bottom: 10px;
    color: #02468d;
}

.partners-content h3 {
    font-size: 28px;
    margin-bottom: 10px;
    color: #02468d;
}

.partners-content p {
    font-size: 16px;
    color: #000;
    line-height: 1.8; 
    letter-spacing: 0.4px;
    text-align: justify;
}

.partners-image {
    width: 100%;
    text-align: center;
    margin-top: 20px;
}

.partners-image img {
    max-width: 100%;
    height: auto;
}

.contact-section {
    display: flex;
    flex-wrap: wrap; /* Đảm bảo hiển thị tốt trên các thiết bị nhỏ */
    justify-content: space-between;
    align-items: stretch;
    gap: 20px;
    margin-top: 40px;
    background-color: #99c6e1;
    min-height: calc(100vh - 100px);
    padding: 20px;
}

.contact-info {
    flex: 1;         /* Chiếm không gian tương đương */
    order: 2;        /* Đặt thứ tự hiển thị thứ 2 (về bên phải) */
    text-align: center;
}

.map-container {
    flex: 1;         /* Chiếm không gian tương đương */
    order: 1;        /* Đặt thứ tự hiển thị thứ nhất (về bên trái) */
    height: 700px;
    width: 70%;
}


footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 0.5rem 1rem;
    background: floralwhite;
    border-top: 4px solid #1d72b8;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.language-selector a {
    color: #02468d; /* Màu mặc định */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease, transform 0.3s ease;
}

.language-selector a:hover {
    color: #99c6e1; /* Màu khi hover */
    transform: scale(1.1);
}

.language-selector a.active {
    color: gray; /* Màu cho liên kết đang hoạt động */
}

.language-selector span {
    color: #02468d; /* Màu cho dấu phân cách */
}

.chat-icon {
    position: fixed;
    bottom: 60px;
    right: 20px;
    cursor: pointer;
    z-index: 1000;
}

.chat-icon img {
    width: 60px;
    height: auto;
}

.chat-form {
    position: fixed;
    bottom: 80px;
    right: 20px;
    background: white;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display:none;
}

.chat-form h3 {
    margin-bottom: 10px;
}

.chat-form label {
    display: block;
    margin: 5px 0;
}

.chat-form input, .chat-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

@media screen and (min-width: 768px) {
    body {
        font-size: 18px;  /* Tăng font cho desktop */
    }

    p{
        font-size: 18px;
    }
    .services-area {
        flex-direction: row; /* Sắp xếp các article theo hàng ngang */
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
    
    .services-area article {
        width: calc(20% - 16px);
        min-height: 930px;
    }

    .services-area article p{
        font-size: 15px !important;
    }

    .partners {
        flex-direction: row; /* Hiển thị theo hàng ngang */
        align-items: center;
        justify-content: space-between;
        gap: 20px;
    }
    .partners-content {
        width: 50%;
        text-align: left;
    }
    .partners-image {
        width: 50%;
        text-align: right;
        margin-top: 0;
    }
    
    .contact-section {
        flex-direction: column;
    }
}