/* --- Main Wrapper --- */
.business-solutions-wrapper {
    padding: 0px;
    position: relative;
    overflow: hidden;
}

/* Container for content */
.business-solutions-container {
    max-width: 1195px;
    margin: 0 auto;
    padding: 0 30px;
    box-sizing: border-box;
    position: relative;
}

/* --- Header Section --- */
.business-solutions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 60px;
	padding-right:83px;
}

.main-title {
    color: var(--e-global-color-primary);
    font-size: var( --e-global-typography-08dbd2e-font-size );
    line-height: var(--e-global-typography-08dbd2e-line-height);
    font-weight: 300;
    margin: 0;
}
.main-title b {
	font-weight: bold;
}

.header-button {
    display: inline-block;
    transition: all 0.3s ease;
}
.header-button:hover {

}

/* --- Top Navigation --- */
.business-solutions-navigation {	
	display: flex;	
	gap: 15px;
	margin-right: 83px;
}

.business-solutions-prev{content: url(https://aihm1.wpenginepowered.com/wp-content/uploads/2025/09/ar-prve-sty.svg);}
.business-solutions-next{content: url(https://aihm1.wpenginepowered.com/wp-content/uploads/2025/09/ar-next-sty.svg);}

.business-solutions-prev, .business-solutions-next {	
    position: static;	
    width: 44px;	
    height: 44px;	
    margin: 0;	
    background-color: rgba(255, 255, 255, 0.1);	
    border-radius: 50%;	
    color: #fff;	
    transition: background-color 0.3s ease;	
}
/* .business-solutions-prev:hover, .business-solutions-next:hover {	
    background-color: rgba(255, 255, 255, 0.2);	
} */
.business-solutions-prev::after, .business-solutions-next::after {	
    font-size: 18px;	
}

/* --- Swiper Container --- */
.business-solutions-swiper {
    overflow: visible;
}

/* --- Individual Slide & Card --- */
.business-solutions-swiper .swiper-slide {
    height: auto;
    transition: transform 0.4s ease, opacity 0.4s ease, width 0.4s ease;
}

.business-solutions-swiper .swiper-slide-active {
	min-width: 791px;
    opacity: 1;
    z-index: 10;
}

/* --- Card Styling --- */
.solution-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 590px;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.4);
    transition: all 0.4s ease;
	
	background-color: #F5F5F580;
	border-radius:20px;
}

.business-solutions-swiper .swiper-slide-active .solution-card {
    flex-direction: row;
    justify-content: flex-start;
	
	min-width:791px;
}

/* --- Image Styling --- */
.solution-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    transition: width 0.4s ease;
}

.business-solutions-swiper .swiper-slide-active .solution-image {
    position: relative;
    width: 389px;
	min-width: 389px;
    height: 100%;
    box-sizing: border-box;
}

.solution-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

/* --- Content Styling --- */
.solution-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 30px;
    box-sizing: border-box;
    background: linear-gradient(to top, #003665 0%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    flex-grow: 1;
    transition: background 0.4s ease;
}

.business-solutions-swiper .swiper-slide-active .solution-content {
    background: none;
    justify-content: center;
    flex-grow: 1;
    width: auto;
    padding: 30px 30px 30px 70px;
    border-right: 1px solid #8DC8E8;
}


/* --- Content Text Styles --- */
.solution-description, .client-name, .client-subtitle, .solution-title {	
    z-index: 2;	
    position: relative;	
    color: #fff;
}

.solution-description {	
	font-size: 18px;	
	line-height: 28px;	
	font-family: var(--e-global-typography-text-font-family), Sans-serif;
    font-weight: var(--e-global-typography-text-font-weight);
}
.client-name {	
	font-size: 22px;	
	font-weight: 600;	
	font-family: var(--e-global-typography-text-font-family), Sans-serif;
	margin-block-end:0;
}
.client-subtitle {	
	font-size: 12px;
	font-family: var(--e-global-typography-text-font-family), Sans-serif;
	margin: 5px 0 0 0;	
}
.solution-title {
	font-size: 23px;
    line-height: 28px;
	font-family: var(--e-global-typography-text-font-family), Sans-serif;
    font-weight: var(--e-global-typography-text-font-weight);
}

.business-solutions-swiper .swiper-slide-active .solution-title,
.business-solutions-swiper .swiper-slide-active .client-name {
    color: var(--e-global-color-primary);
}

.business-solutions-swiper .swiper-slide-active .solution-description,
.business-solutions-swiper .swiper-slide-active .client-subtitle {
    color: var(--e-global-color-text);
}

.solution-number{
	font-family: "Albert Sans", Sans-serif;
    font-size: 80px;
    font-weight: 300;
	color: #8DC8E8;
	margin: 0;
    line-height: 100px;
}

.business-solutions-slide-button {
    display: inline-block;
    transition: background-color 0.3s ease;
	
	margin-top: auto;
	width: 194px;
	
	background-color: #8DC8E833;
    font-family: "Albert Sans", Sans-serif;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 16px;
    letter-spacing: 2.4px;
    fill: var(--e-global-color-secondary);
    color: var(--e-global-color-secondary);
    border-radius: 35px 35px 35px 35px;
    padding: 18px 33px 18px 33px;
}

.business-solutions-swiper .swiper-slide:not(.swiper-slide-active) .business-solutions-slide-button{
	display:none;
}
.business-solutions-swiper .swiper-slide:not(.swiper-slide-active) .solution-number{
	color: #FFFFFF;
}

/* --- Bottom Pagination --- */
.bottom-controls {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-top: 40px;
}

.business-solutions-navigation {
    display: flex;
    gap: 10px;
}


.business-solutions-pagination {
    position: static;
    width: auto;
	display: none;
}

.business-solutions-pagination .swiper-pagination-bullet {
    width: 20px;
    height: 4px;
    background-color: #d8d8d8;
    border-radius: 2px;
    opacity: 1;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.business-solutions-pagination .swiper-pagination-bullet-active {
    width: 40px;
    background-color: var(--e-global-color-primary);
}

/* --- Responsive Adjustments --- */
@media (max-width: 1220px) {
    /* ซ่อนปุ่ม Navigation และ Pagination */
    .business-solutions-wrapper .bottom-controls {
        display: none;
    }

    /* ทำให้ swiper-wrapper แสดงผลเป็น block ปกติ */
    .business-solutions-swiper .swiper-wrapper {
        display: block;
    }

    /* ทำให้แต่ละ slide กว้างเต็ม 100% และมีระยะห่างด้านล่าง */
    .business-solutions-swiper .swiper-slide {
        width: 100%;
        margin-bottom: 30px; /* เพิ่มระยะห่างระหว่างรายการ */
    }
}

@media (max-width: 768px) {
    .business-solutions-wrapper {
        padding: 30px;
    }
    .business-solutions-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    h2.main-title {
        font-size: 54px;
		line-height: 50px;
    }
    .business-solutions-swiper .swiper-slide,
    .business-solutions-swiper .swiper-slide-active {
        width: 100% !important;
        min-width: unset;
    }
    .solution-card,
    .business-solutions-swiper .swiper-slide-active .solution-card {
        flex-direction: column;
        height: 480px;
    }

    .solution-image,
    .business-solutions-swiper .swiper-slide-active .solution-image {
        position: absolute;
        width: 100%;
        height: 100%;
        padding: 0;
    }

/*     .solution-image img {
        border-radius: 0;
    } */

/*     .solution-content,
    .business-solutions-swiper .swiper-slide-active .solution-content {
        background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
        justify-content: flex-end;
    } */
    
    .business-solutions-swiper .swiper-slide-active .solution-title,
    .business-solutions-swiper .swiper-slide-active .client-name,
    .business-solutions-swiper .swiper-slide-active .solution-description,
    .business-solutions-swiper .swiper-slide-active .client-subtitle {
        color: #fff; /* ทำให้ข้อความใน Active slide เป็นสีขาวเหมือนกันบนมือถือ */
    }

    .business-solutions-pagination {
        left: 30px;
        bottom: 20px;
    }
	.solution-number {font-size: 54px;}
	.elementor-widget-business-solutions .solution-card:hover .solution-number{
		color:var(--e-global-color-secondary);;
	}
	.elementor-widget-business-solutions .solution-card:hover .solution-title{
		color: var(--e-global-color-primary);
	}
	.business-solutions-swiper .swiper-slide .solution-card:hover .business-solutions-slide-button{
		display:block;
	}
    .business-solutions-swiper .solution-card:hover .solution-card {
        flex-direction: column;
		height: auto;
    }

    .business-solutions-swiper .solution-card:hover .solution-image {
		position: relative;
		height: 546px;
    }
	.solution-card:hover{height: auto;}
	.solution-card:hover .solution-content{background: unset;}
	.solution-card:hover .solution-description{color:rgba(103, 120, 127, 1);}
}
