/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background: #f4faff;
    color: #333;
}

/* Header Navigation */
header {
    background-color: #0066cc;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 30px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.logo-title {
    font-size: 1.2rem;
    font-weight: bold;
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 20px;
}

nav ul li {
    position: relative;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

nav a:hover {
    color: #ffcc00;
}

/* Dropdown Menu */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    color: black;
    top: 100%;
    min-width: 180px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.15);
    z-index: 999;
}

.dropdown-content a {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

nav li:hover .dropdown-content {
    display: block;
}

/* Hero Section */
.hero {
    padding: 60px 20px;
    text-align: center;
    background: linear-gradient(to right, #e6f0ff, #ffffff);
}

.hero h1 {
    font-size: 2.5rem;
    color: #004080;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.2rem;
    color: #333;
}

/* Services Section */
.services {
    max-width: 960px;
    margin: 40px auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    padding: 0 20px;
}

.service-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.2s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card h3 {
    color: #004d99;
    margin-bottom: 10px;
}

/* Footer */
footer {
    background-color: #003366;
    color: white;
    text-align: center;
    padding: 30px 20px;
    font-size: 0.9em;
    margin-top: 60px;
}

footer a {
    color: #ffcc00;
    text-decoration: none;
}

/* Responsive */
@media screen and (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

html,
body {
    height: 100%;
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
    /* ดัน footer ลงล่าง */
}
@media screen and (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    footer {
        font-size: 0.85em;
        padding: 20px 10px;
    }
}