/* Fix Horizontal Scroll - Quick Fix */
html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    width: 100% !important;
}

* {
    box-sizing: border-box;
}

.custom-input-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: 423px;
    height: 49px;
    border-radius: 100px;
    border: 1px solid #e0e0e0; /* Màu border tùy chỉnh */
    background-color: #ffffff;
    padding: 8px 8px 8px 18px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Shadow nhẹ như trong hình */
    font-family: 'Inter', sans-serif;
  }
  
  .custom-input {
    flex: 1;
    border: none !important;
    outline: none !important;
    background: transparent;
    font-size: 14px; /* Tùy chỉnh theo font của bạn */
    font-weight: 500;
    line-height: 20px;
    color: #333;
    padding: 0;
    height: 100%;
    box-shadow: none !important; /* Bỏ shadow nếu có */
  }
  
  .custom-input:focus {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
  }
  
  .custom-input::placeholder {
    color: #999;
  }
  
  .custom-submit-btn {
    width: 59px;
    height: 33px;
    border-radius: 100px;
    border: none;
    background-color: #FFC107; /* Màu vàng/golden như trong hình */
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    padding: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    transition: background-color 0.3s ease;
  }
  
  .custom-submit-btn:hover {
    background-color: #FFB300; /* Màu đậm hơn khi hover */
  }
  
  .custom-submit-btn:active {
    transform: scale(0.98);
  }

  .watermark-number {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-style: SemiBold;
    font-size: 300px;
    line-height: 53px;
    letter-spacing: 0%;
    position: absolute;
    color: linear-gradient(180deg, #F3F4F6 0%, #FFFFFF 104.67%);
    opacity: 0.3;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
  }

  .text-gradient {
    background: linear-gradient(to bottom, #F3F4F6 0%, rgba(0,0,0,0.05) 50%, rgba(0,0,0,0) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* Heritage Pagination Styles */
.heritage-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.heritage-pagination-prev,
.heritage-pagination-next {
    cursor: pointer;
    background: none !important;
    border: none !important;
    font-size: 24px;
    font-weight: 400;
    padding: 0;
    margin: 0;
    transition: all 0.3s ease;
    position: relative;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Ngăn scroll jump khi click */
    scroll-behavior: auto;
    -webkit-overflow-scrolling: touch;
}

.heritage-pagination-prev,
.heritage-pagination-next {
    color: #999;
}

.heritage-pagination-prev:hover,
.heritage-pagination-next:hover {
    color: #2C5F5F;
}

.heritage-pagination-prev:active,
.heritage-pagination-next:active {
    transform: scale(0.95);
}

.heritage-pagination-prev.disabled,
.heritage-pagination-next.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.heritage-pagination-numbers {
    display: flex;
    align-items: center;
    gap: 15px;
}

.heritage-pagination-number {
    cursor: pointer;
    font-size: 18px;
    font-weight: 400;
    color: #999;
    transition: all 0.3s ease;
    padding: 5px 10px;
    border: none;
    background: none;
    position: relative;
    z-index: 11;
    pointer-events: auto;
    /* Ngăn scroll jump khi click */
    scroll-behavior: auto;
    -webkit-overflow-scrolling: touch;
}

.heritage-pagination-number:hover {
    color: #ffffff;
    background-color: #166987;
}

.heritage-pagination-number.active {
    font-weight: 700;
    color: #2C5F5F;
    font-size: 24px;
}

/* Đảm bảo pagination không bị che bởi slider slides */
.heritage-pagination,
.heritage-pagination * {
    pointer-events: auto !important;
}

/* Đảm bảo các slide không che mất pagination */
.slick-slide,
.slingle-slider {
    pointer-events: auto;
}

/* Slide Effect (Trượt từ phải sang trái) cho Heritage Slider */
.heritage-slide-slider.slick-slider {
    overflow: hidden;
}

.heritage-slide-slider.slick-slider .slick-list {
    overflow: hidden;
    position: relative;
}

.heritage-slide-slider.slick-slider .slick-track {
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1) !important;
    will-change: transform;
    display: flex;
    align-items: center;
}

/* Override tốc độ mặc định của Slick - Chỉ áp dụng cho heritage-slide-slider */
.heritage-slide-slider.slick-slider .slick-track {
    -webkit-transition: -webkit-transform 0.8s cubic-bezier(0.4, 0, 0.2, 1) !important;
    -moz-transition: -moz-transform 0.8s cubic-bezier(0.4, 0, 0.2, 1) !important;
    -o-transition: -o-transform 0.8s cubic-bezier(0.4, 0, 0.2, 1) !important;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Chỉ áp dụng cho các slide trong heritage-slide-slider */
.heritage-slide-slider.slick-slider .slick-track .slick-slide {
    -webkit-transition: -webkit-transform 0.8s cubic-bezier(0.4, 0, 0.2, 1) !important;
    -moz-transition: -moz-transform 0.8s cubic-bezier(0.4, 0, 0.2, 1) !important;
    -o-transition: -o-transform 0.8s cubic-bezier(0.4, 0, 0.2, 1) !important;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.heritage-slide-slider.slick-slider .slick-slide,
.heritage-slide-slider .slingle-slider {
    display: block;
    height: 100%;
    min-height: 1px;
}

/* Đảm bảo không có fade effect */
.heritage-slide-slider.slick-slider .slick-slide {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Đảm bảo pagination luôn ở trên cùng */
.heritage-pagination-numbers {
    position: relative;
    z-index: 100;
}

/* Ẩn hero-slider-controls */
.hero-slider-controls {
    display: none !important;
}

@media (max-width: 768px) {
    .heritage-pagination {
        gap: 15px;
        margin-top: 30px;
    }
    
    .heritage-pagination-number {
        font-size: 16px;
    }
    
    .heritage-pagination-number.active {
        font-size: 18px;
    }
    
    .heritage-pagination-prev,
    .heritage-pagination-next {
        font-size: 20px;
    }
}

.w-100 {
    width: 100%;
    max-width: 100%;
}

/* Heritage Custom Slider Arrows */
.heritage-slider-arrows {
    display: flex;
    align-items: center;
    gap: 15px;
}

.heritage-slider-prev,
.heritage-slider-next {
    cursor: pointer;
    background: transparent;
    border: 1.5px solid #166987;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    transition: all 0.3s ease;
    color: #166987;
    position: relative;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.heritage-slider-prev:hover,
.heritage-slider-next:hover {
    background-color: #166987;
    color: #ffffff;
}

.heritage-slider-prev:active,
.heritage-slider-next:active {
    transform: scale(0.95);
}

.heritage-slider-prev.disabled,
.heritage-slider-next.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.heritage-slider-prev svg,
.heritage-slider-next svg {
    width: 12px;
    height: 12px;
    display: block;
}

/* Arrow icon styles - chevron đơn giản */
.heritage-slider-prev svg path,
.heritage-slider-next svg path {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: square;
    stroke-linejoin: miter;
}

@media (max-width: 768px) {
    .heritage-slider-prev,
    .heritage-slider-next {
        width: 35px;
        height: 35px;
        min-width: 35px;
        min-height: 35px;
    }
    
    .heritage-slider-prev svg,
    .heritage-slider-next svg {
        width: 10px;
        height: 10px;
    }
}


.grid-container {
	width: 100%;
	margin-right: auto;
	margin-left: auto;
	max-width: 1140px;
	/* Adjust for screen size */
}

/* ============================================
   Page Container - Căn đều 2 bên
   ============================================ */

/* Container chính cho toàn bộ trang */
body.elementor-page .elementor-page {
    margin: 0 auto;
    max-width: 100%;
}

/* Container wrapper với margin đều 2 bên */
.elementor-section.elementor-section-boxed > .elementor-container,
.elementor-section > .elementor-container {
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
    box-sizing: border-box;
}

/* Đảm bảo các section full-width vẫn hoạt động đúng */
.elementor-section.elementor-section-stretched > .elementor-container {
    padding-left: 24px !important;
    padding-right: 24px !important;
}

/* Section không boxed nhưng vẫn cần padding đều */
.elementor-section:not(.elementor-section-boxed):not(.elementor-section-stretched) > .elementor-container {
    padding-left: 24px !important;
    padding-right: 24px !important;
}

/* Container mới của Elementor (Flexbox Container) */
.e-con:not(.e-con-full-width) {
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
    box-sizing: border-box;
}

.e-con-full-width {
    padding-left: 24px !important;
    padding-right: 24px !important;
}

/* Responsive - Điều chỉnh padding cho mobile */
@media (max-width: 768px) {
    .elementor-section > .elementor-container,
    .e-con {
        padding-left: 16px;
        padding-right: 16px;
    }
    
    .elementor-section.elementor-section-stretched > .elementor-container,
    .e-con-full-width {
        padding-left: 16px;
        padding-right: 16px;
    }
}

@media (max-width: 480px) {
    .elementor-section > .elementor-container,
    .e-con,
    .elementor-section.elementor-section-stretched > .elementor-container,
    .e-con-full-width {
        padding-left: 12px;
        padding-right: 12px;
    }
}

/* ============================================
   Contact Form 7 Custom Styling - Updated
   ============================================ */

/* Container cho form */
.wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

/* Form row container - 2 cột */
.wpcf7-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 100%;
}

/* Form field wrapper */
.wpcf7-form-control-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Labels/Titles cho các field */
.wpcf7-form label,
.wpcf7-form .wpcf7-form-control-wrap label {
    font-size: 14px;
    font-weight: 600;
    color: #166987;
    margin-bottom: 0;
    display: block;
}

/* Input fields (Name, Email, Phone, Company) */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="url"],
.wpcf7-form input[type="number"] {
    width: 100%;
    height: 46px;
    border-radius: 6px;
    border: 1px solid #DADADA;
    background: #F9F9F9;
    padding: 18px 16px;
    box-shadow: 0px 1px 4px 0px rgba(25, 33, 61, 0.08);
    font-size: 14px;
    font-family: inherit;
    color: #333;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

/* Textarea (Message field) - Full width */
.wpcf7-form textarea {
    width: 100%;
    height: 92px;
    min-height: 92px;
    resize: vertical;
    border-radius: 6px;
    border: 1px solid #DADADA;
    background: #F9F9F9;
    padding: 18px 16px;
    box-shadow: 0px 1px 4px 0px rgba(25, 33, 61, 0.08);
    font-size: 14px;
    font-family: inherit;
    color: #333;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

/* Message field wrapper - Full width */
.wpcf7-form-control-wrap textarea {
    width: 100% !important;
}

/* Focus state */
.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
    outline: none;
    border-color: #166987;
    background: #FFFFFF;
    box-shadow: 0px 1px 4px 0px rgba(25, 33, 61, 0.12);
}

/* Placeholder styling */
.wpcf7-form input::placeholder,
.wpcf7-form textarea::placeholder {
    color: #999;
    opacity: 1;
}

/* Submit Button Container */
.wpcf7-form p.submit-wrapper,
.wpcf7-form .wpcf7-submit-wrapper {
    margin-top: 10px;
    display: flex;
    align-items: flex-start;
}

/* Submit Button với HTML structure */
.wpcf7-form button[type="submit"],
.wpcf7-form .wpcf7-submit {
    width: 145px;
    height: 38px;
    border-radius: 46px;
    padding: 14px 18px;
    background: #166987;
    color: #FFFFFF;
    border: none;
    box-shadow: 0px 1px 4px 0px rgba(25, 33, 61, 0.08);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    letter-spacing: 0%;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    transition: all 0.35s ease;
    box-sizing: border-box;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.wpcf7-form button[type="submit"] .button-text,
.wpcf7-form .wpcf7-submit .button-text {
    display: inline-block;
    line-height: 20px;
    position: relative;
    z-index: 2;
}

.wpcf7-form button[type="submit"] .button-icon,
.wpcf7-form .wpcf7-submit .button-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
    color: #ffffff;
    position: relative;
    z-index: 2;
}

.wpcf7-form button[type="submit"]:after,
.wpcf7-form .wpcf7-submit:after {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: #ffffff;
    transition: all 0.35s ease;
    z-index: 1;
    border-radius: 46px;
}

.wpcf7-form button[type="submit"]:hover,
.wpcf7-form .wpcf7-submit:hover {
    background: #166987;
    box-shadow: 0px 2px 6px 0px rgba(25, 33, 61, 0.15);
    transform: translateY(-1px);
    color: #166987;
    border: 1px solid #166987;
}

.wpcf7-form button[type="submit"]:hover .button-icon,
.wpcf7-form .wpcf7-submit:hover .button-icon {
    color: #166987;
}

.wpcf7-form button[type="submit"]:hover:after,
.wpcf7-form .wpcf7-submit:hover:after {
    width: 100%;
}

.wpcf7-form button[type="submit"]:active,
.wpcf7-form .wpcf7-submit:active {
    transform: translateY(0);
    box-shadow: 0px 1px 4px 0px rgba(25, 33, 61, 0.08);
}

/* Error messages */
.wpcf7-not-valid-tip {
    color: #d63638;
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

/* Validation error styling */
.wpcf7-form-control-wrap input.wpcf7-not-valid,
.wpcf7-form-control-wrap textarea.wpcf7-not-valid {
    border-color: #d63638;
    background: #fff5f5;
}

/* Success message */
.wpcf7-mail-sent-ok {
    background: #00a32a;
    color: #fff;
    padding: 12px 16px;
    border-radius: 6px;
    margin-top: 10px;
}

/* Spinner/Ajax loading */
.wpcf7-spinner {
    margin-left: 8px;
}

/* Contact Form 7 Loading State */
.wpcf7-submit.wpcf7-submitting {
    cursor: wait;
    opacity: 0.9;
    pointer-events: none;
}

.wpcf7-submit.wpcf7-submitting .button-text {
    opacity: 1;
}

/* Disable form khi đang submit */
.wpcf7-form.wpcf7-form-disabled {
    pointer-events: none;
    opacity: 0.7;
}

.wpcf7-form.wpcf7-form-disabled input,
.wpcf7-form.wpcf7-form-disabled textarea,
.wpcf7-form.wpcf7-form-disabled select,
.wpcf7-form.wpcf7-form-disabled button {
    cursor: not-allowed;
    opacity: 0.6;
}

/* Loading Spinner - Circular spinner on the right side of text */
.wpcf7-loading-spinner {
    display: none !important;
    width: 14px;
    height: 14px;
    min-width: 14px;
    min-height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-right-color: #ffffff;
    border-radius: 50%;
    animation: wpcf7-spin 0.6s linear infinite;
    margin-left: 8px;
    vertical-align: middle;
    position: relative;
    z-index: 3;
    flex-shrink: 0;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

@keyframes wpcf7-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Show spinner when submitting - placed after button text */
.wpcf7-submit.wpcf7-submitting .wpcf7-loading-spinner,
button.wpcf7-submit.wpcf7-submitting .wpcf7-loading-spinner,
.wpcf7-submitting .wpcf7-loading-spinner,
.wpcf7-loading-spinner.wpcf7-spinner-visible {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Ẩn icon mũi tên khi đang submit */
.wpcf7-submit.wpcf7-submitting .button-icon,
button.wpcf7-submit.wpcf7-submitting .button-icon,
.button-icon.wpcf7-icon-hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* Spinner color on hover */
.wpcf7-submit:hover .wpcf7-loading-spinner,
button.wpcf7-submit:hover .wpcf7-loading-spinner {
    border-color: rgba(22, 105, 135, 0.3);
    border-top-color: #166987;
    border-right-color: #166987;
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .wpcf7-form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .wpcf7-form input[type="text"],
    .wpcf7-form input[type="email"],
    .wpcf7-form input[type="tel"],
    .wpcf7-form input[type="url"],
    .wpcf7-form input[type="number"],
    .wpcf7-form textarea {
        width: 100%;
        max-width: 100%;
    }
    
    .wpcf7-form input[type="submit"],
    .wpcf7-submit {
        width: 100%;
    }
}

/* Auto layout cho Contact Form 7 - Không cần HTML wrapper */
.wpcf7-form > p:not(:last-child):not(.submit-wrapper) {
    display: inline-block;
    width: calc(50% - 10px);
    vertical-align: top;
    margin-right: 20px;
}

.wpcf7-form > p:not(:last-child):not(.submit-wrapper):nth-child(even) {
    margin-right: 0;
}

/* Labels tự động */
.wpcf7-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #166987;
    margin-bottom: 8px;
}



/* ============================================
   Interactive Content Banner Component
   ============================================ */

/* Container cho 2 button ban đầu */
.heritage-content-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 40px 0;
    position: relative;
    width: 100%;
    align-items: stretch; /* Đảm bảo các button có cùng chiều cao */
}

/* Khi banner active, điều chỉnh margin của button container */
.heritage-content-buttons.banner-active {
    margin-bottom: 0;
}

/* Button style */
.heritage-content-button {
    background: #DCA513; /* Màu vàng mustard */
    color: #ffffff;
    border: none;
    border-radius: 20px;
    padding: 20px 30px;
    font-size: 24px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
    justify-content: space-between;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-height: 100px; /* Đảm bảo độ cao tối thiểu */
    box-sizing: border-box;
}

/* Text container trong button */
.heritage-content-button-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.3;
    justify-content: start;
}

.heritage-content-button-text span {
    display: flex;
    line-height: 1.3;
    white-space: nowrap;
}

.heritage-content-button:focus,
.heritage-content-button:hover {
    background: #C5940F;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.heritage-content-button:active {
    transform: translateY(0);
}

.heritage-content-button .button-arrow {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #ffffff;
    transition: all 0.3s ease;
    flex-shrink: 0;
    position: relative;
    line-height: 1;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    align-self: center; /* Căn giữa theo chiều dọc với text */
}

.heritage-content-button .button-arrow svg {
    width: 40px;
    height: 40px;
    display: block;
    margin: 0 auto;
}

.heritage-content-button:hover .button-arrow {
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
}

/* Banner container - ẩn ban đầu */
.heritage-content-banner {
    display: block;
    background: #DCA513;
    border-radius: 16px;
    padding: 0;
    margin: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-30px);
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.5s ease-out,
                transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.5s ease-out,
                margin 0.5s ease-out;
    margin-top: 0;
    margin-bottom: 0;
}

/* Banner hiển thị - slide down */
.heritage-content-banner.active {
    max-height: 2000px;
    opacity: 1;
    transform: translateY(0);
    padding: 40px;
    margin-top: 0; /* Bắt đầu từ vị trí button (không có khoảng trống) */
    margin-bottom: 40px;
}

/* Khi button container có class banner-active, điều chỉnh để banner bắt đầu từ đúng vị trí */
.heritage-content-buttons.banner-active + .heritage-content-banner.active {
    margin-top: -40px; /* Negative margin bằng với margin-bottom của button container */
}

/* Banner đang ẩn - slide up */
.heritage-content-banner.sliding-up {
    max-height: 0;
    opacity: 0;
    transform: translateY(-30px);
    padding: 0;
    margin-top: 0;
    margin-bottom: 0;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.4s ease-in,
                transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.4s ease-in;
}

/* Slider container trong banner */
.heritage-banner-slider {
    position: relative;
    margin-bottom: 40px;
}

.heritage-banner-slide {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.heritage-banner-slide.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Nội dung trong slide */
.heritage-banner-content {
    color: #ffffff;
}

/* Layout 3 cột */
.heritage-banner-columns {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    width: 100%;
}

.heritage-banner-col {
    display: flex;
    flex-direction: column;
}

.heritage-banner-content h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #ffffff;
}

.heritage-banner-content h4 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #ffffff;
}

.heritage-banner-content p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.95);
}

.heritage-banner-award-note {
    font-size: 14px;
    font-style: italic;
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.8);
}

.heritage-banner-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.heritage-banner-content ul li {
    font-size: 16px;
    line-height: 1.8;
    padding-left: 25px;
    position: relative;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.95);
}

.heritage-banner-content ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #ffffff;
    font-weight: bold;
    font-size: 18px;
}

/* Responsive cho banner 3 cột */
@media (max-width: 1024px) {
    .heritage-banner-columns {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .heritage-banner-col:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .heritage-banner-columns {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .heritage-banner-col:last-child {
        grid-column: 1;
    }
}

/* Slider navigation dots */
.heritage-slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 30px 0;
}

.heritage-slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.heritage-slider-dot.active {
    background: #ffffff;
    transform: scale(1.2);
}

.heritage-slider-dot:hover {
    background: rgba(255, 255, 255, 0.7);
}

/* Button arrow up */
.heritage-banner-arrow-up {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: transparent;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    border: none;
    padding: 0;
}

.heritage-banner-arrow-up:focus,
.heritage-banner-arrow-up:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

.heritage-banner-arrow-up:active {
    transform: translateY(-3px);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .heritage-content-buttons {
        grid-template-columns: 1fr;
        gap: 15px;
        margin: 30px 0;
    }
    
    .heritage-content-button {
        width: 100%;
        padding: 16px 20px;
        font-size: 18px;
        min-height: 80px;
        gap: 15px;
    }
    
    .heritage-content-button-text span {
        white-space: normal;
        line-height: 1.4;
    }
    
    .heritage-content-button .button-arrow {
        width: 35px;
        height: 35px;
        min-width: 35px;
        min-height: 35px;
    }
    
    .heritage-content-button .button-arrow svg {
        width: 35px;
        height: 35px;
    }
    
    .heritage-content-banner {
        padding: 25px 16px;
    }
    
    .heritage-content-banner.active {
        padding: 25px 16px;
        margin-bottom: 30px;
    }
    
    .heritage-banner-content h3 {
        font-size: 20px;
        margin-bottom: 8px;
    }
    
    .heritage-banner-content h4 {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .heritage-banner-content p {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 12px;
    }
    
    .heritage-banner-slider {
        margin-bottom: 25px;
    }
    
    .heritage-banner-arrow-up {
        width: 45px;
        height: 45px;
        font-size: 20px;
        bottom: 15px;
        right: 15px;
    }
    
    .heritage-slider-dots {
        margin: 20px 0;
    }
}

/* Animation cho button ẩn */
.heritage-content-button.hidden {
    display: none !important;
    opacity: 0;
    transform: scale(0.8) translateY(-20px);
    transition: all 0.3s ease;
}

/* Animation cho button hiển thị lại - slide down */
.heritage-content-button.showing {
    display: flex !important;
    opacity: 0;
    transform: translateY(-30px) scale(0.95);
    animation: buttonSlideDown 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes buttonSlideDown {
    0% {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Đảm bảo button container có position relative cho animation */
.heritage-content-buttons {
    position: relative;
    min-height: 100px; /* Đảm bảo có không gian cho animation */
    transition: min-height 0.3s ease;
}

/* Khi có button showing, đảm bảo container có đủ không gian */
.heritage-content-buttons.has-showing {
    min-height: 120px;
}


/* ============================================
   Common Styles
   ============================================ */

.heritage-link {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 16px;
    line-height: 29px;
    letter-spacing: 0;
    
    display: inline-block;
    padding: 8px 16px;
    text-decoration: none !important;

    color: #868A99;
    border-radius: 4px;

    transition: background-color 0.2s ease;
}

/* trạng thái active */
.heritage-link.active,
.heritage-link:active,
.heritage-link:hover {
    color: #166987;
}

.circle-button {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #166987;
    border-radius: 50%;
    background: transparent;

    font-size: 18px;
    color: #166987;
    cursor: pointer;

    opacity: 1;
    transform: rotate(180deg); /* angle: 180deg */

    padding: 0;
    text-decoration: none !important;
}
.circle-button:hover {
    background: #166987;
    color: #fff;
}

.pd-0 {
    padding: 0 !important;
}

.pd-0.e-con {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* ============================================
   Donut Charts Styles
   ============================================ */

.heritage-donut-charts-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center; /* Căn giữa các biểu đồ */
    align-items: center; /* Căn giữa theo chiều dọc */
    padding: 20px;
}

.heritage-donut-chart {
    width: 218.5747063838953px;
    height: 218.5747063838953px;
    position: relative;
    opacity: 1;
    transform-origin: center center;
}

.heritage-donut-svg {
    width: 100%;
    height: 100%;
    /* Bắt đầu từ vị trí 0, không rotate */
}

.heritage-donut-chart-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    font-weight: 600;
    color: #166987; /* Màu text trong biểu đồ */
    text-align: center;
    z-index: 10;
    pointer-events: none;
    font-family: 'Open Sans', sans-serif;
    transform-origin: center center;
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.heritage-donut-segment {
    opacity: 1;
    transform-origin: center center;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.heritage-donut-percentage {
    font-size: 5px;
    font-weight: 600;
    fill: #EFFAFE; /* Màu text phần trăm */
    font-family: 'Open Sans', sans-serif;
    pointer-events: none;
    transform-origin: center center;
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Chart Legend Styles - Căn giữa cho cả desktop và mobile */
.heritage-chart-legend {
    margin: 0 auto;
    text-align: center;
}

.heritage-chart-legend-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

.heritage-chart-legend-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0;
}

.heritage-chart-legend-percentage {
    flex-shrink: 0;
    color: #dca513;
    font-weight: 600;
    white-space: nowrap;
}

.heritage-chart-legend-text {
    color: #0b3746;
    margin-left: 4px;
}

/* Responsive */
@media (max-width: 768px) {
    .heritage-donut-charts-container {
        justify-content: center;
        gap: 30px;
    }
    
    .heritage-donut-chart {
        width: 180px;
        height: 180px;
    }
    
    .heritage-donut-chart-title {
        font-size: 14px;
    }
    
    /* Fix text chú thích chart trên mobile - chỉ áp dụng cho class cụ thể */
    .heritage-chart-legend {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }
    
    .heritage-chart-legend-item {
        display: flex;
        flex-wrap: nowrap;
        align-items: start;
        margin-bottom: 10px;
        gap: 4px;
    }
    
    .heritage-chart-legend-percentage {
        flex-shrink: 0;
        font-size: 14px;
        font-weight: 600;
        white-space: nowrap;
    }
    
    .heritage-chart-legend-text {
        flex: 1;
        min-width: 0;
        font-size: 14px;
        line-height: 1.4;
        white-space: nowrap;
        margin-left: 4px;
    }
}

/* ============================================
   Animation
   ============================================ */
.animation-swipe-primary-btn .elementor-button {
    color: #ffffff !important;
    background: #166987 !important;
    border: 1px solid #166987 !important;
    position: relative;
    transition: all .35s;
    overflow: hidden;
}

.animation-swipe-primary-btn .elementor-button span,
.animation-swipe-primary-btn .elementor-button .elementor-button-content-wrapper,
.animation-swipe-primary-btn .elementor-button .elementor-button-text {
    position: relative;
    z-index: 2;
}

.animation-swipe-primary-btn .elementor-button:after {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: #ffffff;
    transition: all .35s;
    z-index: 1;
    border-radius: inherit;
}

.animation-swipe-primary-btn:hover .elementor-button {
    color: #166987 !important;
    border: 1px solid #166987 !important;
}

.animation-swipe-primary-btn:hover .elementor-button:after {
    height: 100%;
}

/* ============================================
   Animation Swipe Secondary Button
   ============================================ */
.animation-swipe-reverse-primary-btn .elementor-button {
    color: #166987 !important;
    background: #ffffff !important;
    border: 1px solid #166987 !important;
    position: relative;
    transition: all .35s;
    overflow: hidden;
}

.animation-swipe-reverse-primary-btn .elementor-button span,
.animation-swipe-reverse-primary-btn .elementor-button .elementor-button-content-wrapper,
.animation-swipe-reverse-primary-btn .elementor-button .elementor-button-text {
    position: relative;
    z-index: 2;
}

.animation-swipe-reverse-primary-btn .elementor-button:after {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: #166987;
    transition: all .35s;
    z-index: 1;
    border-radius: inherit;
}

.animation-swipe-reverse-primary-btn:hover .elementor-button {
    color: #ffffff !important;
    border: 1px solid #166987 !important;
}

.animation-swipe-reverse-primary-btn:hover .elementor-button:after {
    height: 100%;
}
   /* ============================================
   Animation Swipe Primary Button
   ============================================ */

.animation-swipe-secondary-btn .elementor-button {
    color: #ffffff !important;
    background: #EEBB35 !important;
    border: 1px solid #EEBB35 !important;
    position: relative;
    transition: all .35s;
    overflow: hidden;
}

.animation-swipe-secondary-btn .elementor-button span,
.animation-swipe-secondary-btn .elementor-button .elementor-button-content-wrapper,
.animation-swipe-secondary-btn .elementor-button .elementor-button-text,
.animation-swipe-secondary-btn .elementor-button .elementor-button-icon {
    position: relative;
    z-index: 2;
}

.animation-swipe-secondary-btn .elementor-button:after {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: #ffffff;
    transition: all .35s;
    z-index: 1;
    border-radius: inherit;
}

.animation-swipe-secondary-btn:hover .elementor-button {
    color: #EEBB35 !important;
    border: 1px solid #EEBB35 !important;
}

.animation-swipe-secondary-btn:hover .elementor-button:after {
    height: 100%;
}

.animation-expand-primary-btn .elementor-button {
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
    color: #ffffff !important;
    background: #166987 !important;
    border: 1px solid #166987 !important;
    border-radius: 50%;
    width: 40px;
}

.animation-expand-primary-btn .elementor-button::before,
.animation-expand-primary-btn .elementor-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    transition: all 0.5s ease;
    border-radius: 50%;
}

.animation-expand-primary-btn .elementor-button::after {
    box-shadow: none;
    z-index: 1;
}

.animation-expand-primary-btn .elementor-button:hover::after {
    box-shadow: inset 0 0 0 1px #166987;
}

.animation-expand-primary-btn .elementor-button::before {
    background: #166987;
    box-shadow: inset 0 0 0 40px #ffffff;
    z-index: 2;
}

.animation-expand-primary-btn .elementor-button:hover::before {
    box-shadow: inset 0 0 0 1px #ffffff;
}

.animation-expand-primary-btn .elementor-button i,
.animation-expand-primary-btn .elementor-button .elementor-icon {
    position: relative;
    color: #ffffff;
    transition: all 0.5s ease;
    z-index: 3;
}

.animation-expand-primary-btn .elementor-button .elementor-button-content-wrapper,
.animation-expand-primary-btn .elementor-button .elementor-button-text {
    position: relative;
    z-index: 3;
    transition: color 0.5s ease;
}

/* ============================================
   Scroll to Top Button
   ============================================ */
.scroll-to-top-btn {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    left: auto !important;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #166987;
    color: #FFFFFF;
    border: 1px solid #166987;
    cursor: pointer;
    display: none !important;
    align-items: center;
    justify-content: center;
    z-index: 99999 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    padding: 0;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    margin: 0;
}

.scroll-to-top-btn.show {
    display: flex !important;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top-btn svg {
    width: 24px;
    height: 24px;
    display: block;
}

.scroll-to-top-btn svg path {
    stroke: #166987;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    transition: all 0.5s ease;
}

/* Hiệu ứng hover tương tự animation-expand-primary-btn nhưng riêng biệt */
.scroll-to-top-btn {
    position: relative;
    overflow: hidden;
}

.scroll-to-top-btn::before,
.scroll-to-top-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    transition: all 0.5s ease;
    border-radius: 50%;
}

.scroll-to-top-btn::after {
    box-shadow: none;
    z-index: 1;
}

.scroll-to-top-btn:hover::after {
    box-shadow: inset 0 0 0 1px #166987;
}

.scroll-to-top-btn::before {
    background: #166987;
    box-shadow: inset 0 0 0 50px #ffffff;
    z-index: 2;
}

.scroll-to-top-btn:hover::before {
    box-shadow: inset 0 0 0 1px #ffffff;
}

.scroll-to-top-btn svg {
    position: relative;
    z-index: 3;
}

.scroll-to-top-btn:hover svg path {
    stroke: #ffffff;
}

.scroll-to-top-btn:active {
    transform: scale(0.95);
}

/* Responsive */
@media (max-width: 768px) {
    .scroll-to-top-btn {
        width: 45px !important;
        height: 45px !important;
        bottom: 20px !important;
        right: 20px !important;
        left: auto !important;
    }
    
    .scroll-to-top-btn svg {
        width: 20px;
        height: 20px;
    }
}

/* ============================================
   Fix Elementor Grow Animation Overflow
   ============================================ */

/* Chỉ áp dụng khi có animation grow - sử dụng class selector */
.elementor-widget-image .elementor-animation-grow,
.elementor-image-box-img .elementor-animation-grow {
    transition-duration: 0.3s;
    transition-property: transform;
    transform-origin: center center;
}

.elementor-widget-image .elementor-animation-grow:active,
.elementor-widget-image .elementor-animation-grow:focus,
.elementor-widget-image .elementor-animation-grow:hover,
.elementor-image-box-img .elementor-animation-grow:active,
.elementor-image-box-img .elementor-animation-grow:focus,
.elementor-image-box-img .elementor-animation-grow:hover {
    transform: scale(1.025);
}

/* Chỉ áp dụng overflow cho parent khi có animation grow */
.elementor-widget-image:has(img.elementor-animation-grow),
.elementor-widget-image:has(a .elementor-animation-grow),
.elementor-image-box-img:has(.elementor-animation-grow) {
    overflow: hidden !important;
    position: relative;
}

.elementor-widget-image:has(img.elementor-animation-grow) .elementor-widget-container,
.elementor-widget-image:has(img.elementor-animation-grow) a,
.elementor-widget-image:has(img.elementor-animation-grow) figure,
.elementor-image-box-img:has(.elementor-animation-grow) {
    overflow: hidden !important;
    display: inline-block;
    max-width: 100%;
    position: relative;
}

.elementor-widget-image img.elementor-animation-grow,
.elementor-image-box-img img.elementor-animation-grow {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    transition: transform 0.3s ease !important;
    transform-origin: center center !important;
    opacity: 1 !important;
    visibility: visible !important;
    object-fit: contain !important;
    min-height: 1px !important;
}

/* Fix for external images not displaying - ensure images are visible */
.elementor-widget-image img[src*="http"]:not([src*="wp-content"]),
.elementor-image-box-img img[src*="http"]:not([src*="wp-content"]) {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    max-width: 100% !important;
    height: auto !important;
}

/* Ensure parent containers don't hide images - using more compatible selectors */
.elementor-widget-image img[src*="http"]:not([src*="wp-content"]),
.elementor-image-box-img img[src*="http"]:not([src*="wp-content"]) {
    position: relative !important;
    z-index: 1 !important;
}

/* Fix parent overflow for external images - more compatible approach */
.elementor-widget-image .elementor-widget-container,
.elementor-widget-image a,
.elementor-widget-image figure {
    min-height: 50px !important;
}

/* Specific fix for partner logo section - ensure images are always visible */
.elementor-widget-image img[src],
.elementor-image-box-img img[src] {
    min-width: 1px !important;
    min-height: 1px !important;
}

/* Ensure images with lazy loading still display */
.elementor-widget-image img[loading="lazy"],
.elementor-image-box-img img[loading="lazy"] {
    display: block !important;
    opacity: 1 !important;
}
