/* Reset mặc định */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    font-family: Arial, sans-serif;
}

/* Header với hình nền */
.header {
    background-image: url('../images/banner2.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 80vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Tiêu đề cố định khi scroll */
.title {
    position: fixed;
    top: 0;
 
    width: 100%;
    height: 10%;
    background-color: transparent;
    transition: background-color 0.3s ease;
    z-index: 1000;
}
.title.scrolled {
    background-color: black;
}
.title h1 a {
    text-decoration: none;
    color: white;
    margin-left: 1%;
    font-size: clamp(16px, 3vw, 20px); /* 👈 tự co nhỏ nếu không đủ chỗ */
    text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
    white-space: nowrap;              /* 👈 không xuống dòng */
    overflow: hidden;
    text-overflow: ellipsis;
}


/* Phần nội dung giữa banner */
.content {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    text-align: center;
    margin-top: 10%;
    margin-left: 5%;
    white-space: nowrap;               /* Không xuống dòng */
    overflow: hidden;                  /* Ẩn phần tràn */
    text-overflow: ellipsis;           /* Hiện "..." nếu bị tràn */
    font-size: clamp(12px, 2.5vw, 18px); /* Co giãn chữ tùy theo màn hình */
    display: inline-block;             /* Đảm bảo áp dụng đúng các thuộc tính */
    max-width: 90vw;   
}
.equal-height {
    text-align: center;
}

/* Ảnh nhỏ còn 50% chiều rộng container */
.equal-height img {
    width: 50%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
  
    margin: 0 auto;
}

/* Giữ nút bằng đúng chiều rộng ảnh */
.equal-height a {
    display: inline-block; /* 👈 Để nút chỉ rộng bằng ảnh */
    width: 50%;            /* 👈 Cùng độ rộng với ảnh */
    align-items: center;
}

.equal-height .button {
    width: 100%;
    background-color: #1e6c93;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;

}


.equal-height .button:hover {
    border: 1px solid black;
    background-color: #15506e;
}


.content p a {
    text-decoration: none;
    background-color: white;
    border-radius: 5px;
    padding: 8px;
    border: 1px solid blue;
    font-weight: bold;

    white-space: nowrap;               /* Không xuống dòng */
    overflow: hidden;                  /* Ẩn phần tràn */
    text-overflow: ellipsis;           /* Hiện "..." nếu bị tràn */
    font-size: clamp(12px, 2.5vw, 18px); /* Co giãn chữ tùy theo màn hình */
    display: inline-block;             /* Đảm bảo áp dụng đúng các thuộc tính */
    max-width: 90vw;                   /* Tùy chọn: giới hạn chiều rộng theo viewport */
}


/* Hiệu ứng hover phần whatsapp */
.whatsapp-wrapper {
    position: relative;
    display: inline-block;
}
.note {
    display: none;
    position: absolute;
    top: 80%;
    left: 15%;
    font-size: 13px;
    transform: translateX(-50%);
    background-color: rgb(119, 112, 112);
    padding: 8px;
    border-radius: 8px;
    font-weight: bold;
    color: white;
    white-space: nowrap;
    z-index: 999;
}
.whatsapp-wrapper:hover .note {
    display: block;
    animation: move 0.5s ease forwards;
}



/* Animation nổi */
@keyframes move {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(5px);
    }
}

/* Responsive cho điện thoại */
@media (max-width: 768px) {
    .title h1 a {
        font-size: 1.2rem;
    }

    .header {
        height: 60vh;
        background-position: center;
    }

    .content {
        margin-top: 40%;
        padding: 1rem;
    }

    .button {
        padding: 8px;
        font-size: 0.9rem;
    }

    .note, .note-bh {
        font-size: 11px;
        padding: 6px 10px;
    }
}
