/* ฟอนต์และพื้นหลัง */
body {
    font-family: 'Kanit', sans-serif;
    background-color: #f2f4f9;
    margin: 0;
    padding: 0;
    color: #333;
    min-width: 320px; /* รองรับมือถือจอเล็ก */
    min-height: 100vh; /* เต็มความสูงหน้าจอ */
}

/* Breadcrumb */
.breadcrumb-area {
    background-size: cover;
    background-position: center;
    padding: 80px 0;
    background-color: #0066cc;
    min-height: 150px; /* กำหนดขั้นต่ำ */
    display: flex;
    align-items: center;
    height: 50vh; /* ความสูงของ breadcrumb */
}

.breadcrumb-content h4 {
    color: #fff;
    font-size: clamp(28px, 5vw, 60px); /* ขนาดฟอนต์ตอบสนอง */
    font-weight: 600;
    margin-bottom: 10px;
}

/* Container หลัก */
.history-content {
    padding: 40px 15px;
    max-width: 1500px;
    margin: 0 auto;
}

/* กล่องเนื้อหาแบ่ง 2 ฝั่ง ซ้าย-ขวา */
.history-container {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 30px; /* เพิ่มช่องว่างระหว่างคอลัมน์ */
    flex-wrap: wrap; /* รองรับมือถือ */
    min-height: 400px; /* กำหนดขั้นต่ำ */
}

/* คอลัมน์ซ้าย */
.history-left {
    flex: 1 1 550px; /* ยืดหยุ่น กินพื้นที่ขั้นต่ำ 350px */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.history-left-img {
    width: 100%;
    max-width: 500px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.history-left-img:hover {
    transform: scale(1.05);
}

.history-left h3 {
    font-size: clamp(22px, 4vw, 30px);
    font-weight: 700;
    color: black;
}

/* คอลัมน์ขวา */
.history-right {
    flex: 2 1 600px;
    text-align: left;
    min-width: 300px;
}

.history-right-description {
    font-size: clamp(16px, 1.2vw, 20px);
    color: #2b2929;
    line-height: 1.65;
    margin-bottom: 1.3rem;
    text-justify: inter-word;
    
}

/* ไฮไลต์ */
.highlight {
    background: rgba(35, 234, 71, 0.2);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 8px;
    padding: 3px 8px;
    font-weight: 700;
    color: #238a00;
    box-shadow: 0 4px 12px rgba(35, 234, 71, 0.3);
    transition: all 0.3s ease;
    display: inline-block;
    cursor: default;
}

.highlight:hover {
    background: rgba(35, 234, 71, 0.6);
    box-shadow: 0 8px 24px rgba(15, 236, 107, 0.7);
    color: #0d3d00;
    transform: scale(1.05);
}

/* หัวข้อกลาง */
.history-mid-title {
    font-size: clamp(32px, 6vw, 80px);
    font-weight: 600;
    margin-bottom: 60px;
    text-align: center;
    background: rgb(21, 168, 21);
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.history-mid-title i {
    font-size: 20px;
    margin: 0 10px;
    color: purple;
    vertical-align: middle;
    height: 7vh;
}

/* Responsive สำหรับจอเล็ก */
@media (max-width: 1024px) {
    .history-container {
        flex-direction: column;
        gap: 40px;
        min-height: auto;
    }

    .history-left,
    .history-right {
        flex: 1 1 100%;
        min-width: auto;
    }

    .history-left-img {
        max-width: 100%;
    }

    .history-mid-title {
        margin-bottom: 40px;
    }
}
