/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Kanit', sans-serif;
    line-height: 1.6;
    background-color: #f9f9f9;
    color: #333;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* Header */
header {
    background-color: #0077b6;
    color: white;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .logo {
    display: inline-block;
    font-size: 1.5rem;
    font-weight: bold;
    margin-left: 20px;
}

header nav {
    display: inline-block;
    float: right;
    margin-right: 20px;
}

header nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

header nav ul li a {
    color: white;
    text-decoration: none;
    padding: 5px 10px;
    transition: background 0.3s, color 0.3s;
}

header nav ul li a:hover {
    background-color: #023e8a;
    border-radius: 5px;
}

/* Hero Section */
.hero {
    background: url('uploads/bg-main.png') no-repeat center center/cover;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    background-color: rgba(0,0,0,0.5);
    padding: 20px;
    border-radius: 10px;
}

/* Sections */
section {
    padding: 50px 0;
}

section h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
    color: #0077b6;
}

section p, section ul {
    text-align: center;
    max-width: 800px;
    margin: auto;
    margin-bottom: 20px;
}

ul li {
    margin-bottom: 10px;
}

/* Team */
.team-members {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.team-members .member {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    width: 200px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.team-members .member img {
    width: 150px;
    border-radius: 50%;
    margin-bottom: 10px;
}

/* Services / Portfolio */
.cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    width: 250px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s;
}

.card img {
    width: 100%;
}

.card:hover {
    transform: translateY(-10px);
}

.card h3 {
    padding: 15px 0;
    color: #0077b6;
}

/* Table */
table {
    width: 80%;
    margin: auto;
    border-collapse: collapse;
    margin-bottom: 50px;
}

table th, table td {
    padding: 15px;
    border: 1px solid #ddd;
    text-align: center;
}

table th {
    background-color: #0077b6;
    color: white;
}

/* Footer */
footer {
    background-color: #023e8a;
    color: white;
    padding: 20px 0;
    text-align: center;
    margin-top: 50px;
}
.contact-form {
    max-width: 600px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    width: 100%;
}

.contact-form button {
    padding: 10px;
    background-color: #0077b6;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.contact-form button:hover {
    background-color: #023e8a;
}





















.navbar {
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #0077b6;
    z-index: 100;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}
.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}
.employee-btn {
    background-color: #007bff;
    color: white !important;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}
/* ทำให้ body เป็น flex column */
body, html {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* เนื้อหาหลัก ขยายเต็มที่ ดัน footer ลงล่าง */
main {
    flex: 1;
}

/* เมนู container และ item */
.menu-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin: 30px 0; /* margin ไม่กระทบ footer เพราะ main มี flex:1 */
}

.menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #0077b6;
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-decoration: none;
    width: 150px;
    transition: transform 0.3s, background-color 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.menu-item .icon-box {
    margin-bottom: 10px;
    font-size: 2rem;
}

.menu-item .menu-text {
    font-size: 1rem;
    text-align: center;
}

.menu-item:hover {
    transform: scale(1.1);
    background-color: #023e8a;
    cursor: pointer;
}

/* Footer */
footer {
    background-color: #0077b6;
    color: white;
    text-align: center;
    padding: 28px 0;
}


