/* Font chữ trong thư mục /font */
@font-face {
    font-family: headingbold;
    src: url("../font/Montserrat-Bold.woff2") format("woff2");
    font-display: swap;
}

@font-face {
    font-family: headingsemibold;
    src: url("../font/Montserrat-SemiBold.woff2") format("woff2");
    font-display: swap;
}

@font-face {
    font-family: body;
    src: url("../font/Montserrat-Regular.woff2") format("woff2");
    font-display: swap;
}

@font-face {
    font-family: captionlight;
    src: url("../font/Montserrat-Light.woff2") format("woff2");
    font-display: swap;
}

/* Màu chủ đạo: đổi các giá trị này để cập nhật màu toàn trang */
:root {
    --brand-black: #080808;
    --brand-gold: #ffd000;
    --brand-olive: #806a16;
    --text-color: #171717;
}

/* Font chữ */
body {
    color: var(--text-color);
    font-family: body, sans-serif;
    font-size: 16px;
    line-height: 1.55;
}

h1, h2 { font-family: headingbold, sans-serif; }
h3, h4, h5, h6 { font-family: headingsemibold, sans-serif; }
p { font-family: body, sans-serif; }
.caption { font-family: captionlight, sans-serif; }

/* Cỡ chữ mặc định trên desktop */
h1 { font-size: 48px; }
h2 { font-size: 40px; }
h3 { font-size: 33px; }
h4 { font-size: 28px; }
h5 { font-size: 23px; }
h6 { font-size: 19px; }

/* Nút Xem thêm và nút Gửi dùng chung một kiểu */
.primarybutton,
.secondarybutton {
    display: inline-flex;
    width: 140px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border: 1px solid var(--brand-gold);
    border-radius: 4px;
    background-color: var(--brand-gold);
    color: var(--brand-black);
    font-family: body, sans-serif;
    font-size: 14px;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: 0.2s;
}

.primarybutton:hover,
.secondarybutton:hover {
    border-color: var(--brand-black);
    background-color: var(--brand-black);
    color: var(--brand-gold);
    text-decoration: none;
}

.primarybutton:focus-visible,
.secondarybutton:focus-visible,
.tetiarybutton:focus-visible,
.iconbutton:focus-visible {
    outline: 2px solid var(--brand-olive);
    outline-offset: 3px;
}

/* Nút dạng chữ và nút biểu tượng */
.tetiarybutton {
    color: var(--brand-olive);
    font-family: body, sans-serif;
    text-decoration: none;
}

.tetiarybutton:hover { color: var(--brand-black); }

.iconbutton {
    display: inline-flex;
    width: 36px;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    color: var(--brand-black);
}

.iconbutton:hover { color: var(--brand-olive); }

/* Thanh điều hướng */
#nav-toggle { display: none; }

#bgnav {
    position: relative;
    z-index: 30;
    min-height: 84px;
    border-bottom: 2px solid var(--brand-gold);
    background-color: #fff;
}

#bgnav > .container > .row {
    min-height: 82px;
    align-items: center;
}

#logo { display: flex; align-items: center; }
#logo a { display: block; line-height: 0; }
#logo img { display: block; width: 92px; max-width: 100%; height: auto; }

#nav { display: flex; align-items: center; }

#nav ul {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(14px, 1.7vw, 26px);
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

#nav ul li { display: flex; align-items: center; }

#nav ul li a {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    color: var(--brand-black);
    font-size: 18px;
    line-height: 1.2;
    text-decoration: none;
    transition: 0.2s;
    white-space: nowrap;
}

#nav ul li a:hover { color: var(--brand-gold); }
#nav ul li a:focus-visible,
#nav button:focus-visible { outline: 2px solid var(--brand-olive); outline-offset: 3px; }

#nav button { font: inherit; }
#nav .iconbutton {
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    text-decoration: none;
}
#nav .iconbutton:hover { color: var(--brand-olive); }
#nav .dropbtn {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    gap: 5px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--brand-black);
    font-size: 18px;
    line-height: 1.2;
    cursor: pointer;
    transition: 0.2s;
    white-space: nowrap;
}
#nav .dropbtn:hover,
#nav .dropbtn:focus-visible { color: var(--brand-gold); }

/* Dropdown: desktop mở bằng hover, tablet/mobile mở bằng click */
.dropdown { position: relative; }
.dropdown .dropbtn i { transition: transform 0.2s ease; }
.dropdown:hover .dropbtn i,
.dropdown.is-open .dropbtn i { transform: rotate(180deg); }

.dropcontent {
    position: absolute;
    z-index: 30;
    top: calc(100% - 1px);
    left: -18px;
    display: none;
    width: 220px;
    padding: 8px;
    border-top: 2px solid var(--brand-gold);
    background-color: #fff;
    box-shadow: 0 10px 24px #0002;
}

@media (min-width: 992px) {
    .dropdown:hover .dropcontent,
    .dropdown:focus-within .dropcontent { display: block; }
}

@media (max-width: 991px) {
    .dropcontent { top: calc(100% + 8px); left: 0; }
}

#nav ul li .dropcontent a {
    display: block;
    min-height: 0;
    padding: 10px;
    border-radius: 3px;
    font-size: 17px;
}

#nav ul li .dropcontent a:hover,
#nav ul li .dropcontent a:focus-visible {
    background: #fff8d6;
    color: var(--brand-olive);
}

.dropdown.is-open .dropcontent { display: block; }

/* Tiêu đề các khu vực */
.tieude {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 60px 0 20px;
    text-align: center;
}

.tieude h2 {
    display: inline-block;
    margin-bottom: 8px;
    background: linear-gradient(90deg, var(--brand-olive), var(--brand-gold));
    background-clip: text;
    color: transparent;
    -webkit-background-clip: text;
}

.line {
    width: 100%;
    height: 2px;
    margin-bottom: 32px;
    background: linear-gradient(90deg, var(--brand-black), var(--brand-gold));
}

/* Tablet và điện thoại */
@media (max-width: 767px) {
    body { font-size: 15px; }

    h1 { font-size: 36px; }
    h2 { font-size: 28px; }
    h3 { font-size: 24px; }
    h4 { font-size: 21px; }
    h5 { font-size: 19px; }
    h6 { font-size: 17px; }

    #bgnav { min-height: 72px; }
    #bgnav > .container > .row { min-height: 70px; }
    #logo img { width: 76px; height: auto; }
    .tieude { margin-top: 32px; }
    .line { margin-bottom: 24px; }
}
@media (max-width: 575px) {
    h1 { font-size: 32px; }
    h2 { font-size: 25px; }
}
