* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.header {
    width: 100%;
    height: 120px;
    /* แนะนำให้สูงขึ้นนิดนึง */

    background-image: url("assets/background/background.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.menu-btn {
    position: absolute;
    left: 20px;
    font-size: 26px;
    cursor: pointer;
}

.sidebar {
    position: fixed;
    top: 0;
    left: -260px;
    width: 260px;
    height: 100%;
    background: linear-gradient(180deg, #0077b6, #023e8a);
    padding-top: 80px;
    transition: 0.3s;
    z-index: 1000;
}

.sidebar.active {
    left: 0;
}

.sidebar ul {
    list-style: none;
}

.sidebar ul li {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar ul li:hover {
    background: rgba(255, 255, 255, 0.1);
}

.sidebar ul li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    display: block;
    transition: 0.2s;
}

.sidebar ul li a:hover {
    padding-left: 10px;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 22px;
    cursor: pointer;
    color: white;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: none;
}

.overlay.active {
    display: block;
}

/* ===== Buttons ===== */
.container {
    padding: 40px 20px;
    display: flex;
    gap: 20px;
}

.btn {
    flex: 1;
    text-align: center;
    padding: 25px;
    font-size: 20px;
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: bold;
}

.before {
    background: skyblue;
}

.during {
    background: orange;
}

.after {
    background: #006994;
}

.section {
    padding: 40px 20px;
}

.section h2 {
    margin-bottom: 20px;
}

.card-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.card {
    background: white;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
}

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

.card .img {
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 10px;
}

.card .img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card h3 {
    margin-bottom: 8px;
}

.card p {
    font-size: 14px;
    color: #555;
}

html {
    scroll-behavior: smooth;
}

/* ===== Footer ===== */
.footer {
    margin-top: 40px;
    padding: 20px;
    background: orange;
    color: white;
    text-align: center;
    font-size: 14px;
    line-height: 1.6;
}

.footer strong {
    font-weight: bold;
}

@media (max-width: 600px) {
    .container {
        flex-direction: column;
    }

    .card-container {
        grid-template-columns: 1fr;
    }
}