/* General Styles */
body {
    margin: 0;
    font-family: 'Kanit', sans-serif;
    background-color: #f0f4f8; /* สีพื้นหลังอ่อนๆ */
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* ทำให้ footer อยู่ด้านล่างเสมอ */
}

h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
}

a {
    text-decoration: none;
    color: #ff69b4; /* สีชมพูสำหรับลิงก์ */
}

a:hover {
    text-decoration: underline;
}

/* Header */
.main-header {
    background-color: #007bff; /* สีน้ำเงินหลัก */
    color: white;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo-container h1 {
    margin: 0;
    font-size: 1.8em;
    font-weight: 500;
}

/* .logo {
    height: 50px;
    margin-right: 15px;
} */

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.main-nav li {
    margin-left: 25px;
}

.main-nav a {
    color: white;
    font-size: 1.1em;
    font-weight: 400;
    padding: 8px 12px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.main-nav a:hover {
    background-color: #ff69b4; /* สีชมพูเมื่อ hover */
    text-decoration: none;
}

/* Content Area & Hero Image */
.content-area {
    flex: 1; /* ทำให้ content area ขยายเต็มพื้นที่ที่เหลือ */
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 0; /* ลบ padding เพื่อให้รูปภาพเต็มหน้าจอ */
}

.hero-image {
    width: 100%;
    height: calc(100vh - 100px - 60px); /* คำนวณความสูงของ hero image โดยลบความสูงของ header และ footer (ปรับค่าตามความสูงจริง) */
    /* คุณต้องใส่ URL ของรูปภาพที่นี่ */
    background-image: url('index.png?text=ภาพกิจกรรมโรงเรียน'); /* ตัวอย่าง Placeholder Image */
    background-size: cover; /* ปรับขนาดรูปภาพให้เต็มพื้นที่และตัดส่วนเกิน */
    background-position: center; /* จัดตำแหน่งรูปภาพให้อยู่กึ่งกลาง */
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative; /* สำหรับจัดตำแหน่ง hero-text */
}

.hero-image::before { /* Overlay เพื่อให้ตัวอักษรอ่านง่ายขึ้น */
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3); /* สีดำโปร่งแสง */
}

.hero-text {
    position: relative; /* ให้อยู่เหนือ overlay */
    color: white;
    padding: 20px;
    background-color: rgba(0, 123, 255, 0.7); /* พื้นหลังข้อความสีน้ำเงินโปร่งแสง */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.hero-text h2 {
    font-size: 3em;
    margin-bottom: 10px;
    font-weight: 500;
    color: #ffffff;
}

.hero-text p {
    font-size: 1.5em;
    color: #f0f0f0;
}

/* Footer */
footer {
    background-color: #0056b3; /* สีน้ำเงินเข้มขึ้น */
    color: white;
    text-align: center;
    padding: 20px;
    font-size: 0.9em;
}

/* Responsive adjustments (ตัวอย่างเบื้องต้น) */
@media (max-width: 768px) {
    .main-header {
        flex-direction: column;
        padding: 15px;
    }

    .logo-container {
        margin-bottom: 15px;
        text-align: center;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
    }

    .main-nav li {
        margin-left: 0;
        margin-bottom: 10px;
    }

    .hero-text h2 {
        font-size: 2em;
    }

    .hero-text p {
        font-size: 1.2em;
    }

    .hero-image {
        height: calc(100vh - 150px - 60px); /* ปรับความสูงสำหรับ mobile */
    }
}

@media (max-width: 480px) {
    .logo-container h1 {
        font-size: 1.5em;
    }
    .main-nav a {
        font-size: 1em;
    }
}