:root {
    /*--primary-blue: #03a9f4;*/
    --primary-blue: #254E76;
    --dark-navy: #17252a;
    --light-gray: #f5fafd;
    --white: #ffffff;

    --light-bg: #f5fafd; /* สีฟ้าอ่อนสำหรับ Section 2 */
    --text-dark: #333;
}

body {
    font-family: 'Kanit', sans-serif;
    background-color: var(--white);
    color: var(--dark-navy);
    margin: 0;

}

.container { max-width: 1400px; margin: 0 auto; padding: 0 20px; }

/* Banner */
.page-banner {
    background: linear-gradient(rgba(0,51,102,0.8), rgba(0,51,102,0.8)), 
                url('../image/mainpage/hero.jpg');
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    text-align: center;
    color: white;
}

.page-banner h1 { font-size: 2.5rem; margin-top: 10px; }


/* ตั้งค่า Section */
.service-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

/* Section ที่ 2 พื้นหลังสีฟ้าอ่อน */
.bg-light-blue {
    background-color: var(--light-bg);
}

.overlap-container {
    display: flex;
    align-items: center;
    position: relative;
}

/* การสลับด้านสำหรับ Section เลขคู่ */
.overlap-container.reverse {
    flex-direction: row-reverse;
}

/* ส่วนรูปภาพและกรอบฟ้า */
.image-wrapper {
    flex: 1;
    position: relative;
    padding: 20px;
}

.image-wrapper img {
    width: 100%;
    display: block;
    position: relative;
    z-index: 1;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* กรอบสีฟ้าที่เฉียงและเยื้อง (Blue Frame) */
.blue-frame-skew-left {
    position: absolute;
    top: 40px; 
    left: 0;
    width: 105%;
    height: 90%;
    background-color: var(--primary-blue);
    z-index: 0;
    /* ถ้าต้องการให้เฉียงเล็กน้อยแบบต้นฉบับ */
    transform: skewY(-2deg); 
}

.blue-frame-skew-right {
    position: absolute;
    top: 40px; 
    left: -30px;
    width: 105%;
    height: 90%;
    background-color: var(--primary-blue);
    z-index: 0;
    /* ถ้าต้องการให้เฉียงเล็กน้อยแบบต้นฉบับ */
    transform: skewY(2deg); 
}

.reverse .blue-frame-skew {
    left: auto;
    right: 0;
}

/* แผ่นข้อความสีขาว (ที่ลอยทับ) */
.content-card {
    flex: 1.2;
    background-color: var(--white);
    /*padding: 60px;*/
    padding: 60px 60px 60px 60px; /* ปรับให้มี padding ด้านซ้ายมากขึ้น */
    position: relative;
    z-index: 5; /* อยู่บนสุดทับทั้งรูปและกรอบฟ้า */
    box-shadow: 0 15px 45px rgba(0,0,0,0.1);
    margin-left: -100px; /* ดันให้ไปทับรูปภาพ */
    border-radius: 4px;
}
.content-card.extraPadingTopButtom{
    padding: 60px 60px 160px 160px; /* ปรับให้มี padding ด้านซ้ายมากขึ้น */
}

.reverse .content-card {
    margin-left: 0;
    margin-right: -100px; /* สลับด้านการทับ */
}

/* รายละเอียดภายในป้ายขาว */
.icon-box {
    width: 50px;
    height: 50px;
    background-color: var(--primary-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.content-card h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.content-card .desc {
    color: var(--primary-blue);
    font-weight: 400;
    margin-bottom: 20px;
}

.check-list {
    list-style: none;
    padding: 0;
}

.check-list li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.check-list li::before {
    content: "\f00c"; /* Font Awesome Check */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--primary-blue);
    margin-right: 10px;
}

/* --- Mobile Responsive --- */
@media (max-width: 991px) {
    .overlap-container, .overlap-container.reverse {
        flex-direction: column;
    }

    .content-card, .reverse .content-card {
        margin: -50px 0 0 0; /* ดันแผ่นขาวขึ้นไปทับรูปในแนวตั้ง */
        width: 100%;
        padding: 40px 20px;
    }

    .image-wrapper {
        width: 90%;
    }

    .blue-frame-skew {
        width: 100%;
        left: 5px;
    }
	
    .blue-frame-skew-left {
       /*background-color: transparent;*/ /* หรือจะใช้ none ก็ได้ */
	    /*position: absolute;
		top: 40px; 
		left: -30px;
		width: 105%;
		height: 90%;
		background-color: var(--primary-blue);
		z-index: 0;*/
		/* ถ้าต้องการให้เฉียงเล็กน้อยแบบต้นฉบับ */
		top: 40px;
		border-radius: 10px 10px; 
		width: 100%;
		left: 1px;
		transform: skewY(0deg);   
		box-shadow: 0 15px 45px rgba(0,0,0,0.1);
    }
	.blue-frame-skew-right {
       /*background-color: transparent;*/ /* หรือจะใช้ none ก็ได้ */
	    /*position: absolute;
		top: 40px; 
		left: -30px;
		width: 105%;
		height: 90%;
		background-color: var(--primary-blue);
		z-index: 0;*/
		/* ถ้าต้องการให้เฉียงเล็กน้อยแบบต้นฉบับ */
		top: 40px;
		border-radius: 10px 10px; 
		width: 100%;
		left: 1px;
		transform: skewY(0deg);   
		box-shadow: 0 15px 45px rgba(0,0,0,0.1);
    }
	.image-wrapper img{
		border-radius: 10px 10px; 
	}

}