/* Class: .custom-tab */
.custom-tab .e-n-tab-title[aria-selected="true"] .e-n-tab-title-text{
	text-decoration: underline !important;
    text-decoration-thickness: 2px !important;
    text-underline-offset: 7px !important;
	line-height: 2em !important;
}

.custom-tab .e-n-tab-title[aria-selected="true"] .e-n-tab-icon{
	color: #ffffff !important;
}

.e-n-tab-title{
	 background-color: unset !important;
}

/* Class: .service-details-link */
.service-details-link{
		text-decoration: underline !important;
    text-decoration-thickness: 1px !important;
    text-underline-offset: 7px !important;
	color: #C7AE69 !important;
}

/* Class: .custom-form */
.custom-form ::placeholder{
	opacity: 1 !important;
}

.custom-form .elementor-field-group .elementor-field, .custom-form .elementor-field-group .elementor-field-textual{
	padding: 10px 0 !important;
}

.custom-form .elementor-field-label[for="form-field-file_upload"]{
	display: contents !important;
	font-size: var(--e-global-typography-text-font-size) !important;
    font-weight: 700 !important;
    text-transform: unset !important;
}

.elementor-widget-icon-box .elementor-icon-box-title u{
    text-underline-offset: 5px !important;
}

.custom-form .elementor-field-type-select select option{
	color: #292A2F !important;
}

/* Class ID: .sidebar-cta */

.e-n-tabs-heading #sidebar-cta {
    display: block !important;
    margin-top: 20px !important;
    width: 100% !important;
    padding-top: 20px !important;
    padding-bottom: 20px !important;
    animation: fadeIn 0.3s ease-in !important;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Class: .custom-pagination */
.custom-pagination .swiper-pagination {
    position: relative !important;
    width: fit-content !important;
    min-width: unset !important;
    padding-right: 20px !important;
    max-width: 100% !important;
    
	right: auto !important;
    left: 0 !important;
    bottom: 0 !important;
    transform: none !important;
    margin-top: 30px !important;
    margin-right: auto !important;
    display: flex !important;
    align-items: flex-end !important;
    justify-content: flex-start !important;
    
    overflow-x: auto !important; 
    overflow-y: hidden !important;
    white-space: nowrap !important;
    padding-bottom: 0 !important;
    padding-top: 25px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
    counter-reset: elementor-slide-counter;
    scrollbar-width: none; 
    -ms-overflow-style: none;
}

.custom-pagination .swiper-pagination::-webkit-scrollbar {
    display: none;
}

.custom-pagination .swiper-pagination .swiper-pagination-bullet {
    flex-shrink: 0 !important;
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    opacity: 1 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin: 0 30px 0 0 !important; 
    padding-bottom: 18px !important;
	font-family: var(--e-global-typography-text-font-family), Sans-serif !important;
    font-size: 14px !important; 
    font-weight: 300 !important;
    color: rgba(255, 255, 255, 0.6) !important; 
    
    border-bottom: 2px solid transparent !important;
    margin-bottom: -1px !important; 
    
    transition: all 0.3s ease;
}

.custom-pagination .swiper-pagination .swiper-pagination-bullet::before {
    counter-increment: elementor-slide-counter;
    content: counter(elementor-slide-counter, decimal-leading-zero);
}

.custom-pagination .swiper-pagination .swiper-pagination-bullet-active {
    flex-shrink: 0 !important;
	font-family: var(--e-global-typography-text-font-family), Sans-serif !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #FFFFFF !important; 
    padding-bottom: 10px !important;
    padding-right: 50px !important; 
    margin-right: 0 !important; 
    border-bottom: 2px solid #FFFFFF !important;
}

/* Class: .custom-gallery-pagination */
.custom-gallery-pagination .swiper-slide {
	height: 438px !important;
    z-index: 1;
}

.custom-gallery-pagination .swiper-slide.swiper-slide-next {
    /* transform: scale(1.15) !important;
    opacity: 1 !important; */
    z-index: 10;
}

.custom-gallery-pagination .swiper-slide figure,
.custom-gallery-pagination .swiper-slide img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* =========================================
   PART 2: จัด Pagination (ชิดขวา + เส้นสวย)
   ========================================= */

.custom-gallery-pagination .swiper-pagination {
    position: relative !important;
    width: fit-content !important;
    min-width: unset !important;
    max-width: 100% !important;

    margin-left: auto !important;
    margin-right: 0 !important;
    left: auto !important;
    right: 0 !important;
    bottom: 0 !important;
    margin-top: 40px !important;
    overflow-x: auto !important; 
    overflow-y: hidden !important;
    display: flex !important;
    align-items: flex-end !important;
    justify-content: flex-end !important;

    padding-bottom: 0 !important;
    padding-right: 20px !important; 
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
    counter-reset: elementor-slide-counter;
}

.custom-gallery-pagination .swiper-pagination .swiper-pagination-bullet {
    background: transparent !important;
    opacity: 1 !important;
    border-radius: 0 !important;
    width: auto !important;
    height: auto !important;
    
    margin: 0 !important;
    margin-left: 30px !important; 
    
    padding-bottom: 5px !important;
    
    font-family: var(--e-global-typography-text-font-family), Sans-serif !important;
    font-size: 14px !important;
    font-weight: 300 !important;
    color: rgba(255, 255, 255, 0.6) !important;
    
    border-bottom: 2px solid transparent !important;
    margin-bottom: -1px !important; 
    transition: all 0.3s ease;
}

.custom-gallery-pagination .swiper-pagination .swiper-pagination-bullet:first-child {
    margin-left: 0 !important;
}

.custom-gallery-pagination .swiper-pagination .swiper-pagination-bullet-active {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #FFFFFF !important;
    border-bottom: 2px solid #FFFFFF !important;
    padding-right: 50px !important; 
    padding-bottom: 0 !important;
    margin-right: 0 !important;
}
.custom-gallery-pagination .swiper-pagination .swiper-pagination-bullet::before {
    counter-increment: elementor-slide-counter;
    content: counter(elementor-slide-counter, decimal-leading-zero);
}

.custom-gallery-pagination {
    position: relative !important;
}

.custom-gallery-pagination::before {
    content: "GALLERY";
    position: absolute;
    left: 0;
    bottom: 20px;
    font-family: var(--e-global-typography-text-font-family), Sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 8px;
    text-transform: uppercase;
    color: #FFFFFF;
    pointer-events: none;
    z-index: 10;
}

/* ตัวคอนเทนเนอร์ Pagination */
.custom-gallery-pagination .swiper-pagination {
    position: relative !important;
    width: fit-content !important; /* ให้กว้างเท่าเนื้อหา เพื่อเส้น Border สวยๆ */
    min-width: unset !important;
    max-width: 100% !important;
    
    /* จัดตำแหน่งชิดขวา */
    margin-left: auto !important;
    margin-right: 0 !important;
    left: auto !important;
    right: 0 !important;
    bottom: 0 !important;
    margin-top: 40px !important;

    display: flex !important;
    align-items: flex-end !important;
    justify-content: flex-end !important; /* Desktop ให้ชิดขวา */

    padding-bottom: 0 !important;
    padding-right: 20px !important; 
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
    counter-reset: elementor-slide-counter;
}

/* ตัวเลข Bullet */
.custom-gallery-pagination .swiper-pagination .swiper-pagination-bullet {
    background: transparent !important;
    opacity: 1 !important;
    border-radius: 0 !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    margin-left: 30px !important; 
    padding-bottom: 5px !important;
    font-family: var(--e-global-typography-text-font-family), Sans-serif !important;
    font-size: 14px !important;
    font-weight: 300 !important;
    color: rgba(255, 255, 255, 0.6) !important;
    border-bottom: 2px solid transparent !important;
    margin-bottom: -1px !important; 
    transition: all 0.3s ease;
    flex-shrink: 0 !important; /* ห้ามบีบตัวเลข */
}

/* Bullet ตัวแรก */
.custom-gallery-pagination .swiper-pagination .swiper-pagination-bullet:first-child {
    margin-left: 0 !important;
}

/* Bullet ตัวที่ Active */
.custom-gallery-pagination .swiper-pagination .swiper-pagination-bullet-active {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #FFFFFF !important;
    border-bottom: 2px solid #FFFFFF !important;
    padding-right: 50px !important; 
    padding-bottom: 0 !important;
    margin-right: 0 !important;
}

/* ใส่เลข 01, 02 */
.custom-gallery-pagination .swiper-pagination .swiper-pagination-bullet::before {
    counter-increment: elementor-slide-counter;
    content: counter(elementor-slide-counter, decimal-leading-zero);
}

/* ปิดตัว before เดิมที่ติดมากับ pagination (ถ้ามี) */
.custom-gallery-pagination .swiper-pagination::before {
    content: none !important;
    display: none !important;
}

/* Style ของ Slide รูปภาพ */
.custom-gallery-pagination .swiper-slide {
    height: 438px !important;
    z-index: 1;
}
.custom-gallery-pagination .swiper-slide figure,
.custom-gallery-pagination .swiper-slide img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* =========================================
   PART 2: RESPONSIVE (แก้ปัญหา Scroll + Layout)
   ========================================= */

@media (max-width: 1024px) {
    .custom-gallery-pagination .swiper-slide {
        height: 338px !important;
    }
}

@media (max-width: 767px) {
    .custom-gallery-pagination .swiper-slide {
        height: 238px !important;
    }

    .custom-gallery-pagination::before {
        position: relative !important;
    }

    .custom-gallery-pagination .swiper-pagination {
        justify-content: flex-start !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        padding-right: 20px !important;
        margin-left: 0 !important;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    
    .custom-gallery-pagination .swiper-pagination::-webkit-scrollbar {
        display: none;
    }

    .custom-gallery-pagination .swiper-pagination .swiper-pagination-bullet {
        margin-left: 20px !important;
    }
}

.custom-tab .elementor-widget-icon-box .elementor-icon-box-icon .elementor-icon{
	padding-top: 5px !important;
}