/* index-home.css */

/* Section Mental Kids Content */
.mental-kids-content {
    display: flex;
    flex-wrap: wrap; /* ให้บรรทัดที่สองจัดวางอัตโนมัติเมื่อหน้าจอแคบลง */
    justify-content: center;
    align-items: flex-start;
    padding: 40px;
    background-color: #f9f9f9; /* สีพื้นหลังของส่วนนี้ */
}

/* Content Text Section */
.content-text {
    flex: 1;
    max-width: 500px;
    padding: 20px;
    text-align: center;
    margin-top: 160px; /* ปรับระยะห่างจากด้านบน */
	
}

/* สำหรับหัวข้อหลัก */
.content-text h2 {
    font-size: 36px;
    font-weight: bold;
    color: #00c2b2;
    line-height: 1.2; /* ลดระยะห่างระหว่างบรรทัดของ h2 */
    margin-bottom: 0; /* ลดระยะห่างด้านล่างของ h2 */
    text-align: center; /* จัดข้อความให้อยู่ตรงกลาง */
}

.content-text h2 span {
    color: #ffd700;
}

/* สำหรับข้อความใต้หัวข้อ */
.content-text h3 {
    font-size: 26px;
    color: #00c2b2;
    position: relative; /* ทำให้สามารถใช้ ::after ได้ */
    margin-top: 5px; /* ลดระยะห่างด้านบนของ h3 */
    margin-bottom: 10px; /* ระยะห่างระหว่างข้อความและเส้น */
    line-height: 1.2; /* ลดระยะห่างระหว่างบรรทัดของ h3 */
    text-align: center; /* จัดข้อความให้อยู่ตรงกลาง */
}

.content-text h3::after {
    content: ''; /* ไม่มีเนื้อหาใน ::after */
    display: block;
    width: 50%; /* กำหนดความยาวของเส้นขีด */
    margin: 10px auto 0; /* จัดตำแหน่งเส้นให้กึ่งกลาง */
    border-bottom: 1px solid #00c2b2; /* สร้างเส้นขีด */
}

.content-text p {
    font-size: 18px;
    line-height: 1.4; /* ลดระยะห่างระหว่างบรรทัด */
    margin-bottom: 20px;
}

/* Content Images Section */
.content-images {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    max-width: 600px;
    padding: 20px;
}

.content-images img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* เพิ่มคลาสใหม่สำหรับข้อความที่ต้องการ */
.highlight-text {
    font-weight: bold; /* ทำให้ตัวอักษรหนาขึ้น */
    color: #01B0A9; /* เปลี่ยนสีของข้อความ */
}

/* จัดการตำแหน่งของส่วนหัวข้อและรูปภาพ */
/* ปรับสไตล์ของส่วนหัวข้อ */
.about-mental-kids {
	overflow-x: visible; /* ให้การเลื่อนในแนวนอนสามารถทำได้ */
    display: grid;
    grid-template-columns: 1fr; /* หนึ่งคอลัมน์ */
    gap: 20px; /* ระยะห่างระหว่างกริด */
    padding: 20px; /* เว้นระยะห่างจากขอบคอนเทนเนอร์ */
    max-width: 1000px; /* จำกัดความกว้างของคอนเทนเนอร์ */
    margin: 0 auto; /* จัดกึ่งกลางคอนเทนเนอร์ */
}

.about-mental-kids h2,
.about-mental-kids h3 {
    text-align: left; /* จัดตำแหน่งข้อความให้อยู่ทางซ้าย */
    margin: 0; /* เอา margin ออกเพื่อปรับระยะห่าง */
}

.about-mental-kids h2 {
    font-size: 30px;
    color: #00c2b2;
    font-weight: bold;
    margin-bottom: -20px; /* เพิ่มระยะห่างระหว่างหัวข้อ h2 กับ h3 */
    border-bottom: 1px solid #ddd; /* เพิ่มเส้นใต้บาง ๆ */
    padding-bottom: 5px; /* เว้นระยะห่างจากข้อความ */
}

/* สไตล์สำหรับเส้นใต้ */
.underline {
    border: none;
    border-top: 1px solid #ddd; /* กำหนดความหนาและสีของเส้น */
    margin: 10px 0; /* ระยะห่างจากเนื้อหาด้านบนและด้านล่าง */
}

.about-mental-kids h3 {
    font-size: 26px;
    color: #FCD12A;
    margin-top: 0; /* ลดระยะห่างด้านบนของ h3 */
    padding-left: 5px; /* เพิ่มระยะห่างด้านซ้าย */
}

.about-mental-kids h3 span {
    color: #FCD12A;
}

/* จัดการตำแหน่งของรูปภาพในส่วน about-mental-kids */
.about-mental-kids-image {
    text-align: center;
    margin-top: 20px;
}


.about-mental-kids-image img {
    max-width: 70%; /* ปรับขนาดภาพให้เล็กลงด้วยการลดเปอร์เซ็นต์ */
    height: auto;
    margin: 0 auto; /* จัดให้ภาพอยู่กึ่งกลาง */
}

        /* ส่วนหัวเรื่อง 3D */
        .triangle-section {
            text-align: center;
            margin: 20px 0;
            font-family: 'Prompt', sans-serif;
        }

        .triangle-title {
            font-size: 30px;
            font-weight: bold;
            color: #01B0A9;
        }

        .triangle-subtitle {
            font-size: 24px;
			font-weight: bold;
            color: #FDD32F;
            margin-top: 5px;
        }

        /* ส่วนภาพ */
        .triangle-image-container {
            text-align: center;
            margin: 20px 0;
        }

        .triangle-image-container img {
            width: 80%;
            max-width: 700px;
            border-radius: 20px;
        }

        /* ส่วนคำบรรยาย */
        .triangle-description {
            font-family: 'Prompt', sans-serif;
            text-align: center;
            color: #333;
            font-size: 18px;
            margin: 20px auto;
            width: 80%;
            max-width: 800px;
            line-height: 1.6;
        }

        /* ปุ่มดูเพิ่มเติม */
        .triangle-button-container {
            text-align: center;
            margin: 20px 0;
        }

        .triangle-button {
            background-color: #01B0A9;
            color: white;
            padding: 15px 30px;
            border: none;
            border-radius: 50px;
            font-size: 18px;
            cursor: pointer;
            transition: background-color 0.3s ease, transform 0.3s ease;
            font-family: 'Prompt', sans-serif;
        }

        .triangle-button:hover {
            background-color: #018a84;
            transform: scale(1.05);
        }