/*---------- Header---------- */
:root {
    --primary-color: #4a9e0f;
    --secondary-color: #004c39;
    --desc-primary-color: #606771;
    --highlight-color: #e64a19;
    --white-color: #ffffff;
    --black-color: #000000;
}

/* Mobile Menu Styles */
header .main-mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    height: 100vh;
    background: white;
    z-index: 9999;
    transition: left 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

/* Mobile Navigation Styles */
header .mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

header .mobile-nav ul li {
    border-bottom: 1px solid #eee;
}

header .mobile-nav ul li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

header .mobile-nav .menu-item-has-children::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
}

header .mobile-nav .menu-item-has-children > a {
    position: relative;
    transition: transform 0.3s ease;
}

header .mobile-nav .menu-item-has-children > a i {
    font-size: 12px;
}

header .mobile-paradise-menu,
header .mobile-submenu {
    display: none;
    background: #f8f9fa;
    padding: 10px;
}

header .menu-item-has-children.active > .mobile-paradise-menu,
header .menu-item-has-children.active > .mobile-submenu {
    display: block;
}

header .mobile-submenu {
    padding-left: 15px !important;
}

header .mobile-submenu li {
    border-bottom: none;
}

header .mobile-submenu li a {
    padding: 10px 15px;
    font-size: 13px;
}

header .main-mobile-menu.active {
    left: 0;
}

header .toggle-mobile-menu {
    display: none;
    padding: 10px;
    font-size: 24px;
    color: var(--primary-color);
    cursor: pointer;
}

/* CSS-only toggle: when #mobile-menu-toggle is checked, show the mobile menu */
#mobile-menu-toggle:checked ~ .main-mobile-menu,
#mobile-menu-toggle:checked + .toggle-mobile-menu + .main-mobile-menu {
    left: 0;
}

/* Accessibility focus outlines */
#mobile-menu-toggle:focus + .toggle-mobile-menu,
header .close_main_menu:focus {
    outline: 2px solid rgba(0, 0, 0, 0.1);
    outline-offset: 2px;
}

/* Main Navigation Styles */
header .main-nav {
    height: 100%;
}
header .main-nav ul,
header .main-nav ul li,
header .sub-menu {
    margin: 0;
    padding: 0;
    list-style-type: none;
}
header .main-nav ul li,
header .sub-menu li {
    list-style: none;
}
header .main-nav > ul {
    display: flex;
    height: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}
header .main-nav > ul > li {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

header .main-nav ul li > a {
    padding: 12px 8px;
    color: var(--secondary-color);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
    height: 100%;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

header .menu-header {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

header .main-nav ul li {
    position: relative;
}

/* Hiệu ứng khi bỏ hover */
header .main-nav ul li:not(:hover)::after {
    width: 0;
    transition: width 0.3s ease-in-out;
    left: auto;
    right: 0;
}

header .mobile-submenu.active {
    display: block;
}

header .main-nav ul li:focus > a,
header .main-nav ul li:active > a {
    color: var(--primary-color);
}

header .paradise-menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    margin: 0 auto;
    max-width: 1000px;
    width: 80vw;
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    gap: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

header .attendance-menu-id {
    position: absolute;
    padding: 10px 30px 20px;
    background: var(--white-color);
    z-index: 99;
    left: 0;
    right: 0;
    top: 0;
    height: 100vh;
    display: none;
}
header .attendance-menu-id.active {
    display: block;
}

header .attendance-menu-id.active .paradise-menu.maychamcong-menu {
    left: 0;
    transform: none;
    visibility: visible;
    flex-direction: column;
    opacity: 1;
    height: 100%;
}

header .close-attendance-menu {
    display: flex;
    align-items: center;
    justify-content: center;
}

header .main-nav ul li:hover > .paradise-menu {
    opacity: 1;
    visibility: visible;
    min-height: 350px;
    pointer-events: auto;
}

header .main-nav ul li > .paradise-menu:hover {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Cột 1 */
header .menu-title,
header .menu-title-view-more {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    height: auto !important;
    cursor: pointer;
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--secondary-color);
    white-space: nowrap;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    margin-left: 4px;
}

header .menu-title::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 50%;
    width: 4px;
    height: 0;
    background: var(--highlight-color);
    transform: translateY(-50%);
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0 2px 2px 0;
}

header .menu-title:hover,
header .menu-title.active {
    color: var(--highlight-color);
    background: rgba(115, 196, 29, 0.08);
}

header .menu-title:hover::before,
header .menu-title.active::before {
    height: 70%;
}

/* Cột 2 */
header .paradise-menu-sections {
    position: relative;
    width: 40%;
}
header .paradise-menu-section {
    position: absolute;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

header .paradise-menu-section.active {
    color: var(--secondary-color);
    opacity: 1;
    z-index: 1;
    transform: translateX(0);
}

header .paradise-menu-item.active .description,
header .paradise-menu-item.active .title,
header .paradise-menu-item.active h4 {
    display: flex;
    color: var(--highlight-color);
    margin: 0;
}

header .paradise-menu-item {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    padding: 6px 15px;
    border-bottom: 1px solid #eee;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    height: fit-content;
    cursor: pointer;
}

header .paradise-menu-item:last-child {
    border: none;
}

header .paradise-menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(115, 196, 29, 0.1);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

header .paradise-menu-item:hover::before,
header .paradise-menu-item.active::before {
    opacity: 1;
    transform: translateY(0);
}

header .paradise-menu-item .title {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 1.6rem;
    color: var(--secondary-color);
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateZ(0);
    backface-visibility: hidden;
}

header .paradise-menu-item i {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    width: 20px;
    height: 20px;
    border-radius: 8px;
    color: var(--white-color);
}

header .paradise-menu-item:hover .title,
header .paradise-menu-item.active .title {
    color: var(--highlight-color);
}

header .paradise-menu-item .description {
    position: relative;
    transform: translateY(-12px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 13px;
    color: var(--desc-primary-color);
    z-index: 1;
    overflow: hidden;
    height: auto;
    opacity: 1;
    transform: translateY(0);
}

header .paradise-menu-item .description p {
    margin-bottom: 0;
}

header .maychamcong-menu .paradise-menu-sections {
    width: 70%;
    padding: 0 0 0 30px;
    min-height: 400px;
    height: 100%;
    display: flex;
    align-items: flex-start;
}

header .maychamcong-menu .mcc-section {
    display: flex;
    flex-wrap: wrap;
}

header .maychamcong-menu .mcc-section a {
    width: 33.333%;
    height: fit-content;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

header .maychamcong-menu .mcc-section > a:hover {
    transform: translateY(-5px);
}

header .maychamcong-menu .mcc-section .view-more-wrapper {
    position: relative;
    width: 33.333%;
    border-radius: 8px;
    overflow: hidden;
}

header .maychamcong-menu .mcc-section .view-more-wrapper a:first-child {
    width: 100%;
    height: fit-content;
    filter: grayscale(80%) brightness(0.7);
    margin: 0;
}

header .maychamcong-menu .mcc-section .view-more-wrapper a:first-child:hover {
    transform: none;
}

header .maychamcong-menu .mcc-section .view-more-text {
    position: absolute;
    top: 50%;
    cursor: pointer;
    width: fit-content;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 16px;
    white-space: nowrap;
    font-weight: 500;
    text-align: center;
    z-index: 1;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    transition: all 0.3s ease;
}

header .maychamcong-menu .mcc-section .view-more-wrapper:hover .view-more-text {
    background: var(--highlight-color);
}

/* Cột 3 */
header .paradise-menu-image {
    position: relative;
    width: 30%;
}

header .paradise-menu-image img {
    position: absolute;
    max-width: 100%;
    border-radius: 8px;
    border-left: 1px solid #eee;
    opacity: 0;
    visibility: hidden;
    top: 0;
    left: 0;
    transition: all 0.3s ease;
}

/* Show the currently active image */
header .paradise-menu-image img.visible {
    opacity: 1;
    visibility: visible;
}

/* Dropdown Styles */
header .menu-item-has-children > a {
    display: flex !important;
    align-items: center;
}

header .menu-item-has-children > a i {
    transition: transform 0.3s ease;
}

header .menu-item-has-children.active > a i {
    transform: rotate(180deg);
}

header .sub-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    border-radius: 8px;
    padding: 8px 0;
    z-index: 1000;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
}

/* Tạo vùng đệm để tránh mất hover */
header .menu-item-has-children {
    position: relative;
}

header .menu-item-has-children::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 0;
    width: 100%;
    height: 20px;
}

header .sub-menu li {
    height: auto;
    width: auto;
    display: block;
    margin: 2px 0;
    padding: 5px;
}

header .sub-menu li a {
    padding: 12px 20px;
    width: 100%;
    color: #555;
    font-size: 14px;
    white-space: nowrap;
    align-items: center;
    position: relative;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

header .sub-menu li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 4px;
    height: 0;
    background: var(--highlight-color);
    transform: translateY(-50%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0 2px 2px 0;
}

header .sub-menu li:hover > a {
    background-color: #f8f9fa;
    color: var(--secondary-color);
    padding-left: 24px;
}

header .sub-menu li:hover > a::before {
    height: 70%;
}

header .sub-menu li:last-child a {
    border-bottom: none;
}

/* Active State */
header .main-nav ul li.current-menu-item > a {
    position: relative;
    color: var(--primary-color);
}

/* Also keep hover state */
header .main-nav ul li.active > a {
    text-decoration: none;
}

header .logo-header {
    padding: 0;
    margin-right: 25px;
}

header .logo.logo1 {
    margin-right: 0;
}

header .main-nav > ul > li.current-menu-item > a {
    background: transparent;
    color: var(--primary-color);
    font-weight: 600;
}

/* New */
header .header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: 70px;
}
header .logo {
    font-size: 22px;
    font-weight: 700;
    color: #2d7d3a;
    display: flex;
    align-items: center;
    gap: 10px;
}
header .logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #2d7d3a, #4caf50);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

header .paradisehrm-menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 1000px;
    background: white;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 1000;
    overflow: hidden;
    pointer-events: none;
}
header .menu-item-has-children:hover > .paradisehrm-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

header .paradisehrm-menu .menu-content {
    display: flex;
    width: 100%;
    min-height: 420px;
}

header .paradisehrm-menu .products-sidebar {
    width: 280px;
    background: #f8fafc;
    border-right: 1px solid #edf2f7;
    padding: 20px 0;
}
header .paradisehrm-menu .product-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 22px;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-left: 3px solid transparent;
}
header .paradisehrm-menu .product-item:hover,
header .paradisehrm-menu .product-item.active {
    background: white;
    border-left-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.12);
    transform: translateX(4px);
}
header .product-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: white;
    flex-shrink: 0;
}
header .product-item-icon.hrm,
header .detail-icon.hrm {
    background: linear-gradient(135deg, #667eea, #764ba2);
}
header .product-item-icon.hrm-advanced,
header .detail-icon.hrm-advanced {
    background: linear-gradient(135deg, #fa709a, #fee140);
}
header .product-item-icon.gym,
header .detail-icon.gym {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}
header .product-item-icon.meal,
header .detail-icon.meal {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
}
header .product-item-icon.school,
header .detail-icon.school {
    background: linear-gradient(135deg, #43e97b, #38f9d7);
}
header .product-item-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 2px;
}
header .product-item-info p {
    font-size: 11px;
    color: #718096;
}

header .paradisehrm-menu .product-details {
    flex: 1;
    padding: 28px;
}
header .paradisehrm-menu .product-detail {
    display: none;
    animation: fadeInUp 0.5s ease forwards;
}
header .paradisehrm-menu .product-detail.active {
    display: block;
}

header .detail-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}
header .detail-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
header .detail-info h3 {
    font-size: 22px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 5px;
}
header .detail-info p {
    font-size: 14px;
    color: #718096;
}

header .features-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}
header .feature-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
}

header .feature-item:hover .view-more-link {
    display: inline-block;
    opacity: 1;
}

header .feature-icon {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: white;
    flex-shrink: 0;
    margin-top: 2px;
}

header .feature-text {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header .feature-text .view-more-link {
    /* display: none; */
    opacity: 0;
    font-size: 11px;
    color: var(--highlight-color);
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.3s ease;
}

header .feature-text h5 {
    font-size: 13px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 3px;
}
header .feature-text p {
    font-size: 11px;
    color: #718096;
    line-height: 1.3;
}

header .detail-actions {
    display: flex;
    gap: 10px;
}

header .detail-actions .btn {
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 20px;
    text-decoration: none;
    border: none;
    transition: all 0.3s ease;
    display: inline-block;
}

header .detail-actions .btn a {
    color: var(--white-color);
}

header .detail-actions .btn-primary {
    background: var(--highlight-color);
    color: var(--white-color);
}

header .detail-actions .btn-primary:hover {
    opacity: 0.8;
}

header .detail-actions .btn-secondary {
    background: var(--secondary-color);
    color: var(--white-color);
}

header .detail-actions .btn-secondary:hover {
    opacity: 0.8;
}

header#header {
    position: fixed;
    z-index: 1000;
    top: 0;
    right: 0;
    left: 0;
}

header .product-menu-id {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: white;
    z-index: 9998;
    overflow-y: auto;
    display: none;
    padding: 10px 30px 20px;
}

header .product-menu-id.active {
    display: block;
}

header .product-menu-id .close-product-menu,
header .close-attendance-menu {
    position: absolute;
    top: 25px;
    right: 25px;
}

header .close_main_menu {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

header .close_main_menu,
header .close-product-menu,
header .close-attendance-menu {
    font-size: 24px;
    color: var(--primary-color);
    z-index: 9999;
    border: none;
    background-color: transparent;
}

header .paradise-title {
    text-align: start;
    margin: 10px 0 20px;
    font-size: 24px;
    font-weight: 700;
    color: var(--secondary-color);
}

header .paradise-title img {
    width: 160px;
}

header .product-menu-id .product-menu-accordion {
    margin-top: 20px;
}

header .product-menu-id .accordion-item {
    border-bottom: 1px solid #eee;
}

header .product-menu-id .accordion-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 20px;
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--secondary-color);
    cursor: pointer;
    background: white;
    transition: all 0.3s ease;
}

header .product-menu-id .accordion-title .title {
    display: flex;
    gap: 10px;
    align-items: center;
}

header .product-menu-id .accordion-item.active .accordion-title {
    color: var(--highlight-color);
    font-weight: bold;
    background: rgba(115, 196, 29, 0.05);
}

header .accordion-item .icon {
    transform: rotate(0);
    transition: transform 0.3s ease;
}

header .accordion-item.active .icon {
    transform: rotate(180deg);
}

header .product-menu-id .accordion-content {
    display: none;
    padding: 0 40px 20px;
    animation: fadeIn 0.3s ease forwards;
}

header .product-menu-id .accordion-item.active .accordion-content {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Reuse & scope existing styles */
header .product-menu-id .features-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 15px 0;
}

header .product-menu-id .feature-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
}

header .product-menu-id .feature-icon {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: white;
    flex-shrink: 0;
}

header .product-menu-id .feature-text h5 {
    font-size: 13px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 3px;
}

header .product-menu-id .feature-text p {
    font-size: 11px;
    color: #718096;
    line-height: 1.3;
    margin: 0;
}

header .product-menu-id .detail-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

header .product-menu-id .detail-actions .btn {
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 20px;
    text-decoration: none;
    border: none;
    transition: all 0.3s ease;
    display: inline-block;
}

header .product-menu-id .btn-primary {
    background: var(--highlight-color);
    color: white;
}

header .product-menu-id .btn-secondary {
    background: var(--secondary-color);
    color: white;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Reuse existing styles */
header .features-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 15px 0;
}

header .feature-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
}

header .feature-icon {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: white;
    flex-shrink: 0;
}

header .feature-text h5 {
    font-size: 13px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 3px;
}

header .feature-text p {
    font-size: 11px;
    color: #718096;
    line-height: 1.3;
    margin: 0;
}

header .detail-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

header .detail-actions .btn {
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 20px;
    text-decoration: none;
    border: none;
    transition: all 0.3s ease;
    display: inline-block;
}

header .btn-primary {
    background: var(--highlight-color);
    color: white;
}

header .btn-secondary {
    background: var(--secondary-color);
    color: white;
}

header .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

header .search-mobile {
    margin: 15px 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1200px) {
    header .paradise-title {
        font-weight: bold;
        font-size: 2.4rem;
        margin-bottom: 10px;
        color: var(--primary-color);
    }

    header .header-nav2 .menu-header {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    header .header-nav2 .logo-header {
        margin: 0;
    }

    header .paradise-menu,
    header .paradise-menu.maychamcong-menu {
        position: fixed;
        width: 80%;
    }
}

@media (min-width: 992px) {
    /* Reset cho submenu */
    header .main-nav ul li:hover > a {
        color: var(--highlight-color);
    }

    header .main-nav ul li:hover > a i {
        transform: rotate(180deg);
    }

    header .main-nav ul li:focus > a,
    header .main-nav ul li:active > a {
        color: var(--primary-color);
    }

    header .product-menu-id .accordion-title:hover {
        color: var(--highlight-color);
        font-weight: bold;
        background: rgba(115, 196, 29, 0.05);
    }
}

@media (max-width: 991px) {
    header .icon {
        transform: rotate(0);
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--primary-color);
        color: white;
        border-radius: 6px;
        font-size: 14px;
    }

    header .paradisehrm-menu {
        width: 90vw;
        left: 5vw;
        visibility: visible;
        opacity: 1;
        transform: none;
    }
    header .menu-item-has-children:hover > .paradisehrm-menu {
        transform: none;
    }
    header .paradisehrm-menu .menu-content {
        flex-direction: column;
        min-height: auto;
    }
    header .paradisehrm-menu .products-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
        padding: 15px 0;
    }
    header .features-list {
        grid-template-columns: 1fr;
    }

    header .toggle-mobile-menu {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin: 0;
    }

    header .product-menu-id .products-sidebar {
        grid-template-columns: 1fr;
    }

    header .product-menu-id .features-list {
        grid-template-columns: 1fr;
    }

    header .product-menu-id .detail-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    header .product-menu-id .detail-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    header .product-menu-id .detail-info h3 {
        font-size: 20px;
    }

    header .product-menu-id .detail-info p {
        font-size: 13px;
    }

    header .attendance-menu-id.active .paradise-menu-mobile {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        flex-direction: column;
        gap: 20px;
        height: 100%;
        justify-content: flex-start;
        padding: 30px;
    }

    header .attendance-menu-id .maychamcong-menu {
        width: 100%;
        overflow: hidden;
    }

    header .attendance-menu-id .maychamcong-menu .paradise-menu-sections {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 20px;
        min-width: min-content;
        width: auto;
        padding: 40px 20px 20px;
        align-items: center;
        height: fit-content;
        overflow-y: hidden;
        overflow-x: scroll;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: none;
        scroll-behavior: auto;
        overscroll-behavior-x: auto;
        position: relative;
        will-change: transform;
    }

    header .attendance-menu-id.active .paradise-menu.maychamcong-menu {
        position: relative;
        padding: 0;
        justify-content: flex-start;
        z-index: 9999;
        top: 0;
        box-shadow: none;
    }

    header .maychamcong-menu .mcc-section a,
    header .maychamcong-menu .mcc-section .view-more-wrapper {
        width: calc(50% - 10px);
        min-width: calc(50% - 10px);
        height: fit-content;
        box-sizing: border-box;
    }

    header .maychamcong-menu .paradise-menu-sections {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        max-height: 100%;
        padding-bottom: 10px;
    }

    /* Tùy chỉnh style cho thanh scroll */
    header .maychamcong-menu .paradise-menu-sections::-webkit-scrollbar {
        height: 4px;
    }

    header .maychamcong-menu .paradise-menu-sections::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 4px;
    }

    header .maychamcong-menu .paradise-menu-sections::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 4px;
    }

    header .maychamcong-menu .paradise-menu-sections::-webkit-scrollbar-thumb:hover {
        background: #555;
    }

    header .attendance-menu-id .maychamcong-menu .mcc-section {
        display: flex;
        flex-direction: row;
        height: 100%;
        padding-bottom: 10px;
        flex-wrap: nowrap;
        gap: 20px;
        justify-content: flex-start;
    }

    header .attendance-menu-id .maychamcong-menu .mcc-section img {
        border: 1px solid #ccc;
        border-radius: 20px;
    }

    header .close-product {
        top: 55px;
        right: 29%;
    }

    header .main-mobile-menu {
        display: block;
    }
    header .main-pc-menu {
        display: none;
    }

    header .main-nav.main-nav1 {
        width: 100%;
        background: #fff;
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        z-index: 9999;
        will-change: transform;
        -webkit-transition: 0.4s;
        transition: 0.4s;
        -webkit-transform: translate(100%);
        transform: translate(100%);
    }

    header .main-nav.main-nav1.active {
        -webkit-transform: translate(0);
        transform: translate(0);
    }
    header .width_common {
        width: 100%;
        float: left;
    }

    header .header_menu {
        padding: 25px;
        position: relative;
        -webkit-box-shadow: inset 0px -1px 0px #e5e5e5;
        box-shadow: inset 0px -1px 0px #e5e5e5;
    }

    header .header_menu .close_main_menu {
        float: right;
    }

    header .header_menu .custom-logo-link {
        display: none;
        position: absolute;
        top: 50%;
        left: 100px;
        -webkit-transform: translate(-50%, -50%);
        transform: translate(-50%, -50%);
    }

    header .header_menu .custom-logo-link.active {
        display: block;
    }

    header .header_menu .custom-logo-link img {
        height: 40px;
        object-fit: scale-down;
    }

    header .toggle-mobile-menu {
        display: block;
        font-size: 2.8rem;
    }

    header .header-nav2 > .container > .row {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    header .header-nav2 .logo-header {
        width: 100%;
        display: flex;
        justify-content: flex-start;
    }

    header .button-register {
        order: 2;
    }

    header .menu-header {
        order: 3;
    }

    header .logo-header {
        order: 1;
        margin-right: 0;
    }

    header .logo.logo1 {
        margin-right: 0;
    }

    header .header-nav2 .menu-header {
        justify-content: flex-start;
    }

    header .header-nav2 .row::before,
    header .header-nav2 .row::after {
        content: none;
    }

    header .block_scoll_menu {
        scroll-behavior: smooth;
        -ms-overflow-style: -ms-autohiding-scrollbar;
        overflow: scroll;
        -webkit-overflow-scrolling: touch;
        padding: 10px 20px;
        z-index: 9999;
        height: 100%;
    }

    header .block_search {
        border-bottom: none;
        border-top: none;
        position: relative;
    }

    header .block_scoll_menu .block_search {
        padding: 23px 0px 0;
    }

    header .block_search .input_form {
        color: #222222;
        font-size: 16px !important;
        background: #efefef;
        border-radius: 4px;
        height: 44px;
        padding-right: 35px;
        padding-left: 44px;
        width: 100%;
        outline: none;
        border: 1px solid #eee;
        font: 400 1rem arial;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        float: left;
    }

    header .block_search .btn_search {
        width: 32px;
        height: 32px;
        text-align: center;
        position: absolute;
        cursor: pointer;
        -webkit-transition-duration: 350ms;
        transition-duration: 350ms;
        -webkit-transition-property: all;
        transition-property: all;
        -webkit-transition-timing-function: cubic-bezier(0.7, 1, 0.7, 1);
        transition-timing-function: cubic-bezier(0.7, 1, 0.7, 1);
        visibility: visible;
        opacity: 1;
        outline: none;
        background: none;
        right: auto;
        left: 5px;
        top: 25px;
        line-height: 40px;
        border: none;
        font-size: 1.8rem;
    }

    button.btn_reset,
    header .cancel {
        display: none;
    }

    header .block_scoll_menu #menu-menu-main-pc-2 {
        padding: 0;
        clear: both;
    }

    header .block_scoll_menu #menu-menu-main-pc-2 li {
        border-bottom: 1px solid #e5e5e5;
        padding: 0;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        position: relative;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        width: 100%;
        padding-left: 12px;
        padding-top: 15px;
        padding-bottom: 15px;
        align-content: center;
    }

    header .main-nav .block_scoll_menu .sub-menu {
        position: absolute !important;
        top: 65px;
        width: 100%;
        border: none;
        padding: 0 !important;
        margin: 0 !important;
    }

    header .main-nav .block_scoll_menu .sub-menu li {
        border-top: none !important;
        padding: 14px !important;
        margin: 0;
    }

    header .block_scoll_menu #menu-menu-main-pc-2 > li > a {
        font-weight: 600;
    }

    header .paradise-menu-image {
        display: flex;
        justify-content: flex-start;
        gap: 10px;
        width: 100%;
        margin: 10px 0;
    }

    header .paradise-menu-image img {
        border: none;
        width: 60px;
    }

    header .paradise-menu-image .title {
        font-size: 2rem;
        font-weight: 500;
        color: var(--highlight-color);
    }

    header .paradise-menu-titles {
        width: 100%;
        border: none;
    }

    header .paradise-menu-sections {
        padding: 0;
        width: 100%;
        height: 100%;
    }

    header .close-product-menu {
        position: absolute;
        top: 30px;
        right: 25px;
        font-size: 2.4rem;
        color: var(--primary-color);
        display: block;
        z-index: 999;
    }

    header .product-menu-id.active .close-product-content {
        display: block !important;
        position: absolute;
        right: 20px;
        font-size: 2.6rem;
    }

    header .product-menu-id.active .paradise-menu-mobile {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        left: 0;
        transform: none;
        flex-direction: column;
        gap: 20px;
        box-shadow: none;
        height: 100%;
        justify-content: flex-start;
        padding: 30px;
    }

    header .maychamcong-menu .mcc-section a {
        min-width: 50% !important;
    }
    header .product-menu-id .accordion-content {
        padding: 0 0 20px;
    }
}

@media (max-width: 767px) {
    header .main-pc-menu {
        display: none !important;
    }

    header .toggle-mobile-menu {
        display: block;
    }
}

@media (max-width: 576px) {
    header .maychamcong-menu .mcc-section a,
    header .maychamcong-menu .mcc-section .view-more-wrapper {
        width: 100%;
        min-width: 100%;
    }

    header .maychamcong-menu .mcc-section {
        flex-direction: column;
    }

    header .button-register {
        display: none;
    }
}

@media (max-width: 450px) {
    header .menu-title,
    header .menu-title-view-more {
        font-size: 1.4rem;
        padding: 10px 20px;
    }

    header .attendance-menu-id .maychamcong-menu .paradise-menu-sections {
        padding: 0;
        min-height: 230px;
    }

    header .attendance-menu-id .maychamcong-menu .mcc-section {
        height: 100%;
    }

    header .maychamcong-menu .mcc-section a,
    header .maychamcong-menu .mcc-section .view-more-wrapper {
        min-width: fit-content;
        height: fit-content;
    }

    header .attendance-menu-id .maychamcong-menu .mcc-section img {
        height: 200px;
    }
}
