/* ฟอนต์ที่ใช้งาน */
@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;600&display=swap');

/* กำหนดการแสดงผลของเนื้อหาและการจัดการของหน้า */
body {
    font-family: 'Kanit', sans-serif;
    background-color: #f2f4f9; /* สีพื้นหลังเบา ๆ ที่ทำให้ดูสะอาดตา */
    margin: 0;
    padding: 0;
    color: #333; /* สีตัวหนังสือหลัก */
}

/* Breadcrumb */
.breadcrumb-area {
    background-size: cover;
    background-position: center;
    padding: 80px 0;
    background-color: #0066cc; /* โทนสีฟ้า */
    height: 50vh; /* ความสูงของ breadcrumb */
}

.breadcrumb-content h4 {
    color: #fff;
    font-size: 60px;
    font-weight: 600;
    margin-bottom: 10px;
}

.breadcrumb-content ul {
    list-style: none;
    padding: 0;
}

.breadcrumb-content ul li {
    display: inline-block;
    margin-right: 10px;
    color: #fff;
    font-size: 28px;
}

.breadcrumb-content ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 28px;
}

.breadcrumb-content ul li a:hover {
    color: #ffcc00; /* สีทองสำหรับ hover */
}

/* กำหนดการแสดงผลของเนื้อหาหลัก */
.policy-content {
    padding: 60px 0;
}

/* ปรับขนาดของ container ให้อยู่ในขนาดที่กำหนด */
.container {
    max-width: 1200px; /* กำหนดความกว้างสูงสุด */
    margin: 0 auto; /* จัดให้อยู่ตรงกลาง */
    padding-left: 15px; /* ระยะห่างด้านซ้าย */
    padding-right: 15px; /* ระยะห่างด้านขวา */
}

.row-mid {
    justify-items: center;
}

/* แผนประจำปี */
.policy-title {
    font-size: 36px;
    font-weight: 600;
    background: linear-gradient(to right,rgb(32, 192, 26),rgb(255, 208, 0));
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
}

.policy-description {
    font-size: 18px;
    color: #555; /* สีเทาเข้มสำหรับข้อความ */
    text-align: center;
    margin-bottom: 10px;
}

.policy-line::before {
  content: '';
  display: block;
  width: 50%; /* ความกว้างเต็ม */
  height: 5px; /* ความหนา */
  background-color: rgb(25, 170, 6); /* สี */
  margin: 10px 0; /* ระยะห่าง */
  justify-self: center;
}

.policy-plans {
    margin-top: 30px;
}

/* Grid Container สำหรับการจัดวางแผน */
.grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.plan-wrapper {
  width: 100%;
  max-width: 700px;
}

.plan-item {
    background-color: #ffffff; /* โทนสีน้ำเงินเข้ม */
    color: #000000;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    width: 320px;
    padding-block-end: 80px;
    padding: 10px;
    margin: 0 auto; /* จัดให้อยู่ตรงกลาง */
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden; /* ทำให้ไอคอนและข้อความไม่หลุดออกจากกรอบ */
    height: 100%; /* ทำให้กล่องมีความสูงเต็ม */
    display: flex;
    flex-direction: column; /* จัดเรียงเนื้อหาภายในกล่อง */
}

.plan-item:hover {
    transform: translateY(-10px); /* ยกกล่องขึ้นเมื่อ hover */
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2);
}

.plan-item h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
}

.plan-item img {
    width: 100%; /* กำหนดขนาดของไอคอน */
    height: auto; /* กำหนดขนาดของไอคอน */
    display: block;
    transition: transform 0.3s ease;
    margin: 0 auto; /* จัดให้อยู่ตรงกลาง */
}

.plan-item img:hover {
  transform: scale(1.05); /* ขยายภาพเมื่อ hover */
}

.plan-item p {
    font-size: 18px;
    text-align: left;
    padding: 20px;
}

.download-link {
    font-size: 16px;
    color: #000000; /* โทนสีทอง */
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.download-link:hover {
    color: #ffcc00; /* เปลี่ยนเป็นสีขาวเมื่อ hover */
    text-decoration: none;
}

/* ทำให้การแสดงผลเหมาะสมบนมือถือ */
@media (max-width: 1024px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: 1fr;
    }
}
