/* General Body and Typography */
body {
    font-family: 'Sarabun', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.7;
    background-color: #f0f2f5;
    color: #333;
    font-size: 16px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header and Navigation */
.main-header {
    background-color: #ffffff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: right;
}

.logo h1 {
    margin: 0;
    color: #00796B;
    font-size: 10px;
    font-weight: 10;
    letter-spacing: -1px;
}

.main-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.main-nav li {
    margin-left: 25px;
}

.main-nav a {
    text-decoration: none;
    color: #555;
    font-weight: 600;
    font-size: 17px;
    padding: 10px 15px;
    transition: color 0.3s, background-color 0.3s, border-bottom 0.3s;
    border-bottom: 3px solid transparent;
}

.main-nav a:hover,
.main-nav a.active {
    color: #004D40;
    border-bottom: 3px solid #004D40;
}

/* Hero Section (Home Page) */
.hero-section {
    /* Replace 'hero-bg.jpg' with your own image */
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('hero-bg.jpg') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 120px 20px;
    border-radius: 12px;
    margin-bottom: 40px;
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-section h2 {
    font-size: 52px;
    margin-bottom: 20px;
    font-weight: 700;
    color: #fff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
}

.hero-section p {
    font-size: 20px;
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.5;
}

.cta-button {
    display: inline-block;
    background-color: #00BCD4;
    color: #fff;
    padding: 15px 35px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 50px;
    transition: background-color 0.3s, transform 0.3s;
    box-shadow: 0 4px 15px rgba(0, 188, 212, 0.4);
}

.cta-button:hover {
    background-color: #00796B;
    transform: translateY(-3px);
}

/* Main Content Section */
.main-content {
    padding: 40px 0;
    min-height: 70vh;
}

.content-section {
    background-color: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
}

.content-section h2 {
    color: #004D40;
    border-bottom: 4px solid #ECEFF1;
    padding-bottom: 15px;
    margin-top: 0;
    font-size: 32px;
    font-weight: 600;
}

/* Card Grid for content */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.card {
    background-color: #fdfdfd;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 25px;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.card h3 {
    color: #00796B;
    margin-top: 0;
    font-size: 22px;
}

.card p {
    font-size: 16px;
    color: #666;
}

/* Footer */
.main-footer {
    background-color: #263238;
    color: #CFD8DC;
    text-align: center;
    padding: 25px 0;
    font-size: 15px;
}

/* Responsive Menu Toggle (Hamburger) */
.menu-toggle {
    display: none;
    /* Hidden by default on desktop */
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    height: 3px;
    width: 28px;
    background-color: #004D40;
    margin: 4px 0;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

/* Media Queries for Responsiveness */
@media (max-width: 992px) {
    .main-nav {
        display: none;
        /* Hide nav on mobile by default */
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 80px;
        /* Adjust based on header height */
        left: 0;
        background-color: #ffffff;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
        text-align: center;
    }

    .main-nav.active {
        display: flex;
        /* Show nav when active */
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
    }

    .main-nav li {
        margin: 15px 0;
    }

    .menu-toggle {
        display: flex;
        /* Show hamburger button on mobile */
    }

    /* Hamburger animation */
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    .hero-section h2 {
        font-size: 40px;
    }

    .hero-section p {
        font-size: 18px;
    }
}

@media (max-width: 576px) {
    .logo h1 {
        font-size: 24px;
    }

    .hero-section h2 {
        font-size: 32px;
    }

    .content-section {
        padding: 25px;
    }

    .content-section h2 {
        font-size: 26px;
    }

    .card {
        padding: 20px;
    }
    .my-massager-icon {
        font-size: 2em;
         /* ทำให้ไอคอนใหญ่ขึ้น 2 เท่า */
        color: #007bff;
        /* เปลี่ยนสีเป็นสีน้ำเงิน */     }
}