/* Global Safe Horizontal Bounds (Zero Side-Effects on Sticky Header & Momentum Scroll) */
html {
    overflow-x: hidden;
    width: 100%;
}

body {
    width: 100%;
    min-height: 100vh;
    position: relative;
    overflow-x: clip;
}

@supports not (overflow-x: clip) {
    body {
        overflow-x: hidden;
    }
}

/* Sections horizontal clipping without breaking vertical overflow elements (like popping images) */
section, footer {
    width: 100%;
    max-width: 100vw;
    overflow-x: clip;
}

@supports not (overflow-x: clip) {
    section, footer {
        overflow-x: hidden;
    }
}

/* Sections horizontal clipping without breaking vertical overflow elements (like popping images) */
.btn-pair-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

@media (max-width: 639px) {
    .btn-pair-container .btn-lavo,
    .btn-pair-container .btn-lavo-solid-white,
    .btn-pair-container .btn-lavo-outline-white {
        width: 100% !important;
        max-width: 320px !important;
        text-align: center !important;
        justify-content: center !important;
    }
}
a, button {
    font-family: 'Montserrat', sans-serif !important;
}

/* ==========================================================================
   BUTTON ANIMATIONS - EXACT PDF SPEC (BOLD FONT, COMPACT PADDING, PILL SHAPE)
   ========================================================================== */

/* 1. Standard Button: Black BG, White Text, Bold, Compact Padding */
.btn-lavo {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #000000;
    color: #ffffff !important;
    border-radius: 9999px;
    overflow: hidden;
    z-index: 1;
    border: 1px solid #000000;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 700 !important;
    font-size: 14.5px;
    line-height: 1.2;
    padding: 11px 26px;
    text-align: center;
    white-space: nowrap;
    transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.4s ease;
}

.btn-lavo span {
    position: relative;
    z-index: 2;
    font-weight: 700 !important;
    transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-lavo::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 650px;
    height: 650px;
    background-color: #ffffff;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    pointer-events: none;
}

.btn-lavo:hover::before {
    transform: translate(-50%, -50%) scale(1);
}

.btn-lavo:hover span {
    color: #000000 !important;
}


/* 2. Transparent Button (#thuong-hieu): No BG, White Text, White Border, Bold */
.btn-lavo-outline-white {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    color: #ffffff !important;
    border-radius: 9999px;
    overflow: hidden;
    z-index: 1;
    border: 1px solid #ffffff;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 700 !important;
    font-size: 14.5px;
    line-height: 1.2;
    padding: 11px 26px;
    text-align: center;
    white-space: nowrap;
    transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.4s ease;
}

.btn-lavo-outline-white span {
    position: relative;
    z-index: 2;
    font-weight: 700 !important;
    transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-lavo-outline-white::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 650px;
    height: 650px;
    background-color: #ffffff;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    pointer-events: none;
}

.btn-lavo-outline-white:hover::before {
    transform: translate(-50%, -50%) scale(1);
}

.btn-lavo-outline-white:hover span {
    color: #000000 !important;
}


/* 3. Solid White Button (#quoc-te): White BG, Black Text, No Border, Bold */
.btn-lavo-solid-white {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    color: #000000 !important;
    border-radius: 9999px;
    overflow: hidden;
    z-index: 1;
    border: none;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 700 !important;
    font-size: 14.5px;
    line-height: 1.2;
    padding: 11px 26px;
    text-align: center;
    white-space: nowrap;
    transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-lavo-solid-white span {
    position: relative;
    z-index: 2;
    font-weight: 700 !important;
    transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-lavo-solid-white::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 650px;
    height: 650px;
    background-color: #000000;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    pointer-events: none;
}

.btn-lavo-solid-white:hover::before {
    transform: translate(-50%, -50%) scale(1);
}

.btn-lavo-solid-white:hover span {
    color: #ffffff !important;
}

/* 4. Hero Button: Off-White/Light Gray BG, Black Text, Drop Shadow */
.btn-lavo-hero {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0;
    color: #111111 !important;
    border-radius: 9999px;
    overflow: hidden;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 14px 0 rgba(0, 0, 0, 0.25);
    cursor: pointer;
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 700 !important;
    font-size: 14.5px;
    line-height: 1.2;
    padding: 11px 26px;
    text-align: center;
    white-space: nowrap;
    transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.4s ease, box-shadow 0.3s ease;
}

.btn-lavo-hero span {
    position: relative;
    z-index: 2;
    font-weight: 700 !important;
    color: #111111 !important;
    transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-lavo-hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 650px;
    height: 650px;
    background-color: #000000;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    pointer-events: none;
}

.btn-lavo-hero:hover::before {
    transform: translate(-50%, -50%) scale(1);
}

.btn-lavo-hero:hover span {
    color: #ffffff !important;
}

/* Image Zoom on Card Hover for #chuyen-nghiep and #kien-thuc */
#chuyen-nghiep .card-hover-zoom,
#kien-thuc .card-hover-zoom {
    cursor: pointer;
}

#chuyen-nghiep .card-hover-zoom .img-zoom-container img,
#kien-thuc .card-hover-zoom .img-zoom-container img {
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

#chuyen-nghiep .card-hover-zoom:hover .img-zoom-container img,
#kien-thuc .card-hover-zoom:hover .img-zoom-container img {
    transform: scale(1.08);
}

/* Exception: Header Navigation strictly uses Playfair Display */
#main-header nav a,
#mobile-menu a {
    font-family: 'Playfair Display', Georgia, serif !important;
}
