/* การตั้งค่าพื้นฐาน */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
}

a {
    text-decoration: none;
    color: #333;
}

ul {
    list-style: none;
}

/* Header และ Navigation Bar */
.main-header {
    background: #ffffff;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #007bff; /* สีน้ำเงินสดใส */
}

.main-nav ul {
    display: flex;
    gap: 20px;
}

.main-nav a {
    padding: 5px 10px;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: #0056b3;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://png.pngtree.com/background/20211216/original/pngtree-school-building-afternoon-school-campus-photography-map-with-map-picture-image_1514406.jpg') no-repeat center center/cover; /* แทนที่ URL ด้วยภาพพื้นหลังของคุณ */
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* ปุ่ม (Buttons) */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.primary-btn {
    background-color: #007bff;
    color: white;
    border: 2px solid #007bff;
}

.primary-btn:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

/* Features Section */
.features {
    display: flex;
    justify-content: space-around;
    padding: 40px 20px;
    gap: 20px;
    max-width: 1200px;
    margin: 30px auto;
}

.feature-card {
    flex: 1;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    min-width: 250px;
}

.feature-card h3 {
    color: #007bff;
    margin-bottom: 10px;
}

/* Footer */
.main-footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 30px;
}

/* Responsive Design (สำหรับหน้าจอมือถือ) */
@media (max-width: 768px) {
    .main-header {
        flex-direction: column;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 10px;
        padding: 10px 0;
        text-align: center;
    }
    
    .features {
        flex-direction: column;
        align-items: center;
    }

    .feature-card {
        margin-bottom: 20px;
        width: 90%;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
}