/**
 * Page Header Navigation KM - Styles
 * Sticky navigation with dropdown submenu support
 */

/* ========================================
   Page Header Container
   ======================================== */
.phn-navigation.page-header {
    background: #ffffff;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000; /* Higher than slider to ensure it's always on top */
    /* Simple isolation - only create stacking context, don't affect layout */
    isolation: isolate;
    /* Minimal containment - only style, not layout */
    contain: style;
}
.page-header .col.small-12.large-12 {
    padding: 0;
}
/* Container */
.phn-navigation .container-tab-menu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 100%;
    /* Allow submenu to overflow */
    overflow: visible;
    position: relative;
    z-index: 1;
    margin: 0 15px;
}

/* ========================================
   Tabs Navigation
   ======================================== */
.phn-navigation .tabs {
    flex: 1;
    overflow-x: auto;
    overflow-y: visible; /* Allow submenu to overflow vertically */
    -webkit-overflow-scrolling: touch;
    position: relative;
    z-index: 1;
}

.phn-navigation .tabs::-webkit-scrollbar {
    display: none;
}

.phn-navigation .tabs {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.phn-menu-list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 8px 0px;
    gap: 0;
    flex-wrap: nowrap;
    /* Allow submenu to overflow */
    overflow: visible;
    position: relative;
    z-index: 1;
}

.phn-menu-list .tab-item {
    margin: 0;
    padding: 10px 16px;

    list-style: none;
    position: relative;
}
li.tab-item.is-active:first-child {
    padding-left: 0;
}
.page-header:not(.is-sticky) .container-tab-menu:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 1px;
    max-width: 1200px;
    margin: 0 auto;
    background: #e2e8f0;
}
/* Menu Link */
.phn-menu-list .tab-link {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #334155;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: color 0.3s ease, border-color 0.3s ease;
    border-bottom: 2px solid transparent;
    position: relative;
    cursor: pointer;
}

.phn-menu-list .tab-link:hover {
    color: #334155;
}

.phn-menu-list .tab-item.is-active .tab-link,
.phn-menu-list .tab-link.is-active {
    color: #2e438f;
}

/* Icons */
.phn-menu-list .tab-link i {
    font-size: 18px;
    line-height: 1;
    color: inherit;
}

.phn-menu-list .tab-link .dropdown-icon {
    font-size: 12px;
    margin-left: 4px;
    transition: transform 0.3s ease;
}

.phn-menu-list .tab-item.has-submenu.is-open .dropdown-icon {
    transform: rotate(180deg);
}

/* ========================================
   Submenu Dropdown
   ======================================== */
.phn-menu-list .tab-item.has-submenu {
    position: relative;
}

.phn-submenu {
    position: fixed;
    inset: 0px auto auto 0px;
    width: auto;
    min-width: 0px;
    margin: 0px;
    min-width: 200px;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    list-style: none;
    padding: 8px 10px;
    opacity: 0;
    visibility: hidden;
    transform: translate(0, -10px);
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 100000; /* Higher than navigation z-index (99999) to ensure it's visible */
}

.phn-menu-list .tab-item.has-submenu.is-open .phn-submenu {
    opacity: 1;
    visibility: visible;
}

.phn-submenu-item {
    margin: 0 !important;
    padding: 0;
    list-style: none;
}

.phn-submenu-link {
    border-radius: 4px;
    padding: 5px 10px;
    display: block;
    color: #334155;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.phn-submenu-link:hover {
    background-color: #3341554b;
    color: #334155;
}

/* ========================================
   Buttons Section (Right Side)
   ======================================== */
.phn-navigation .buttons.block-share {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 20px;
    flex-shrink: 0;
}

.phn-navigation .buttons.block-share .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    background: transparent;
    color: #334155;
    cursor: pointer;
    transition: none;
    border-radius: 0;
    margin: 0;
    font-size: 14px;
}



/* Favorite Button (Heart Icon) */
.phn-navigation .buttons.block-share .button-favorite {
    color: #dc3545;
    border: none;
}



/* Share Button */
.phn-navigation .buttons.block-share .button.is-static {
    cursor: pointer;
    border: none;
}



.phn-navigation .button i {
    font-size: 16px;
}

/* Bỏ hiệu ứng hover cho buttons block-share is-hidden-mobile */
.phn-navigation .buttons.block-share.is-hidden-mobile .button:hover,
.phn-navigation .buttons.block-share.is-hidden-mobile .button:focus,
.phn-navigation .buttons.block-share.is-hidden-mobile .button:active {
    background: transparent !important;
    color: inherit !important;
    border: none !important;
    transform: none !important;
    box-shadow: none !important;
    opacity: 1 !important;
}

.phn-navigation .buttons.block-share.is-hidden-mobile .button-favorite:hover,
.phn-navigation .buttons.block-share.is-hidden-mobile .button-favorite:focus,
.phn-navigation .buttons.block-share.is-hidden-mobile .button-favorite:active {
    background: transparent !important;
    color: #dc3545 !important;
    border: none !important;
    transform: none !important;
    box-shadow: none !important;
    opacity: 1 !important;
}

/* ========================================
   Responsive - Mobile
   ======================================== */
@media (max-width: 768px) {

    a.tab-link.is-active:first-child {
        padding: 0;
    }
    .phn-menu-list .tab-link {
        padding: 5px;
        font-size: 12px;
    }
    
    .phn-menu-list .tab-link i {
        font-size: 16px;
    }
    
    .phn-navigation .buttons.block-share.is-hidden-mobile {
        display: none !important;
    }
    .phn-menu-list .tab-item {
        margin: 0;
        padding:  5px;
        list-style: none;
        position: relative;
    }
    
    .phn-submenu {
        min-width: 180px;
    }
}

/* ========================================
   Promotional Section - Ticket Style
   ======================================== */
.phn-promotional-section {
    padding: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Match Flatsome row container width */
.phn-promotional-section .phn-promo-wrapper {
    margin: 0 auto;
    box-sizing: border-box;
    width: 100%;
}


.phn-promo-title {
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 20px 0;
    font-size: 1.5rem;
    line-height: 1.875rem;
    letter-spacing: -.54px;
}

/* Ticket-style box */
.phn-promo-box {
    position: relative;
    background: #ffffff;
    border: 1px solid #c7b495;
    border-radius: 8px;
    /* padding: 10px; */
    margin: 24px 0 26px;
    box-sizing: border-box;
}

/* Badge pill đè lên border trên-left */
.phn-promo-tab {
    position: absolute;
    top: 30px;
    left: -9px;
    background: linear-gradient(289.36deg,#8d7b62 1.23%,#d1be9e 97.63%);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 6px 6px 6px 0;
    font-size: 13px;
    font-weight: 600;
    z-index: 2;
    line-height: 1.4;
    margin-bottom: 0;
}

/* Content wrapper với divider */
.phn-promo-content {
    display: flex;
    align-items: flex-start;
    position: relative;
    gap: 0;
}

/* Left column */
.phn-promo-left {
    flex: 0 0 260px;
    padding: 20px;
    box-sizing: border-box;
    position: relative;
}

/* Wrapper for text elements */
.phn-promo-left-texts {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 50px;
    align-items: flex-start;
}

.phn-promo-tab:after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 0;
    display: block;
    width: 9px;
    height: 8px;
    background: url(/wp-content/uploads/2026/01/svgexport-1.svg) no-repeat 50% / contain;
}
.phn-promo-left-text {
    font-size: 14px;
    color: #334155;
    line-height: 1.5;
    margin-top: 0;
    display: block;
}

/* Text 1 và Text 2 - text thường */
.phn-promo-left-text:not(.phn-promo-left-text-green):not(.phn-promo-left-text-beige) {
    color: #334155;
    font-weight: 400;
}

/* Text 3 - Green pill */
.phn-promo-left-text-green {
    background: #16a34a;
    color: #ffffff;
    padding: 3px 4px;
    border-radius: 6px;
    display: inline-block;
    font-weight: 600;
    font-size: 13px;
    margin-top: 4px;
    line-height: 1.4;
}

/* Text 4 - Beige/Gray pill */
.phn-promo-left-text-beige {
    background: #f5f5f0;
    color: #334155;
    padding: 3px 4px;
    border-radius: 6px;
    display: inline-block;
    font-weight: 400;
    font-size: 13px;
    margin-top: 4px;
    margin-bottom: 0;
    line-height: 1.4;
}

/* Divider với notch tròn */
.phn-promo-divider {
    position: relative;
    width: 1px;
    background: transparent;
    margin: 0 20px;
    flex-shrink: 0;
    align-self: stretch;
}

/* Notch circles - hidden when images are present, shown as fallback */


/* Divider line dashed - vertical line */
.phn-promo-divider {
    border-left: 1px dashed #e6d7c8;
}

/* Right column */
.phn-promo-right {
    flex: 1;
    padding: 20px 10px;
    box-sizing: border-box;
}

/* Benefits wrapper */
.phn-promo-benefits-wrapper {
    position: relative;
}

.phn-promo-benefits {
    list-style: none;
    margin: 0;
    padding: 0;
    padding-bottom: 0;
    position: relative;
    min-height: 0;
}

/* Hidden benefits (after 5th item) */
.phn-promo-benefit-item.phn-benefit-hidden {
    display: none;
}

/* Divider với notch tròn */
.phn-promo-divider {
    position: relative;
    width: 1px;
    background: transparent;
    margin: 0 20px;
    flex-shrink: 0;
    align-self: stretch;
}

/* Divider line dashed - vertical line */
.phn-promo-divider {
    border-left: 1px dashed #e6d7c8;
}

/* Divider Images using ::before and ::after */
.phn-promo-divider[data-image-top]::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 7px;
    transform: translateX(-50%) translateY(-50%);
    width: 30px;
    height: 16px;
    background-image: var(--divider-image-top);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 3;
}
button.phn-promo-see-more {
    margin: 0;
}
.phn-promo-divider[data-image-bottom]::after {
    content: '';
    position: absolute;
    right: 50%;
    bottom: 7px;
    transform: translateX(45%) translateY(50%);
    width: 30px;
    height: 16px;
    background-image: var(--divider-image-bottom);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 3;
}

/* Fade-out gradient effect - at the end of benefits list */
.phn-promo-benefits-wrapper:not(.expanded):not([data-expanded="true"]) .phn-promo-benefits::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
    pointer-events: none;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1;
}

.phn-promo-benefits-wrapper.expanded .phn-promo-benefits::after,
.phn-promo-benefits-wrapper[data-expanded="true"] .phn-promo-benefits::after {
    opacity: 0;
    visibility: hidden;
}

.phn-promo-benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 5px;
    margin-bottom: 8px;
    font-size: 14px;
}

.phn-promo-benefit-item.is-active {
    color: #5a6b7a;
}

.phn-promo-benefit-item.is-inactive {
    color: #c0c9d2;
}

.phn-promo-benefit-item span {
    flex: 1;
}

.phn-promo-benefit-item span strong {
    font-weight: 700;
}

/* SVG Check icon */
.phn-promo-check-icon {
    flex-shrink: 0;
    margin-top: 2px;
    width: 16px;
    height: 16px;
}

.phn-promo-benefit-item.is-active .phn-promo-check-icon {
    color: #16a34a;
}

.phn-promo-benefit-item.is-inactive .phn-promo-check-icon {
    color: #bfe7c9;
}

/* See more button */
.phn-promo-see-more {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: #182a73;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    text-transform: math-auto;
    letter-spacing: 0;
    margin-top: 0;
    padding-top: 12px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: color 0.2s ease;
    position: relative;
    z-index: 2;
}

.phn-promo-see-more:hover {
    color: #182a73;
}
span.phn-promo-see-more-text {
    text-decoration: underline;
    text-underline-offset: 4px;
}
.phn-promo-chevron {
    font-size: 16px;
    line-height: 1;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    display: inline-block;
}

/* Responsive - Promotional Section */
@media (max-width: 640px) {

    
    .phn-promo-title {
        font-size: 22px;
    }
    
    .phn-promo-box {
        padding: 0 20px;
    }
    
    .phn-promo-tab {
        left: -30px;
        top: 15px;
        font-size: .8125rem;
    }
    
    .phn-promo-content {
        flex-direction: column;
        gap: 0;
    }
    
    .phn-promo-left {
        flex: 1;
        width: 100%;
        padding: 35px 0px 24px;
    }
    
    .phn-promo-left-texts {
        display: flex;
        flex-direction: column;
        gap: 0;
        margin-top: 20px;
        align-items: flex-start;
    }
    
    .phn-promo-divider {
        display: block;
        width: 100%;
        height: 1px;
        margin: 0 0 20px 0;
        border-left: none;
        border-top: 1px dashed #e6d7c8;
        position: relative;
    }
    
    /* Horizontal divider với notch - Mobile */
    .phn-promo-divider[data-image-top]::before {
        content: '';
        position: absolute;
        left: -9%;
        top: -8px;
        width: 30px;
        height: 16px;
        background-image: var(--divider-image-top);
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        z-index: 3;
        transform: rotate(270deg);
    }
    
    .phn-promo-divider[data-image-bottom]::after {
        content: '';
        position: absolute;
        right: -9% !important;
        top: -9px;
        width: 30px;
        height: 16px;
        background-image: var(--divider-image-bottom);
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        z-index: 3;
        transform: rotate(270deg);
    }
    
    .phn-promo-right {
        padding-left: 0;
        padding-top: 0px;
    }
    
    .phn-promo-pill {
        display: block;
        width: 100%;
        text-align: center;
    }
}

/* ========================================
   No Data Message
   ======================================== */
.phn-no-data {
    padding: 20px;
    background: #f5f5f5;
    border: 1px dashed #ccc;
    border-radius: 4px;
    color: #666;
    text-align: center;
    margin: 20px 0;
}


