/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Kanit', Arial, sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
    font-size: 16px;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background-color: rgba(33, 33, 33, 0.9);
    padding: 15px 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: white;
    text-decoration: none;
}

.logo-main {
    font-size: 24px;
    font-weight: 300;
    letter-spacing: 2px;
}

.logo-sub {
    font-size: 12px;
    letter-spacing: 1px;
    margin-top: 2px;
}

.nav-menu {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #ff4444;
}

.nav-link.active {
    color: #ff4444;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #ff4444;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.register-btn {
    background-color: #ff4444;
    color: white;
    padding: 10px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.register-btn:hover {
    background-color: #ff2222;
}

.lang-select {
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.lang {
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.lang:hover, .lang.active {
    opacity: 1;
}

/* Hero Section */
.hero {
    height: 60vh;
    position: relative;
    background-color: #000000; /* พื้นหลังสีดำสำหรับทุกหน้า */
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: 48px;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 20px;
    color: #ffffff; /* ตัวหนังสือขาวสำหรับทุกหน้า */
}

.hero-subtitle {
    font-size: 20px;
    font-weight: 300;
    margin-bottom: 10px;
    color: #ffffff; /* ตัวหนังสือขาวสำหรับทุกหน้า */
}

.hero-description {
    font-size: 18px;
    font-weight: 300;
    margin-bottom: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: #ffffff; /* ตัวหนังสือขาวสำหรับทุกหน้า */
}

.hero-location {
    font-size: 18px;
    font-weight: 300;
    margin-bottom: 10px;
    color: #ffffff;
}

.hero-logo {
    width: 150px;
    margin-top: 30px;
}

/* Contact Section */
.contact-section {
    background: #f5f5f5;
    padding: 60px 0;
    text-align: center;
}

.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.contact-btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.contact-btn.primary {
    background: #ff4444;
    color: white;
}

.contact-btn.secondary {
    background: #333;
    color: white;
}

.contact-btn:hover {
    opacity: 0.9;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Bottom Navigation for Mobile */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 12px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.bottom-nav-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.bottom-nav-item:last-child {
    margin-bottom: 0;
}

.bottom-nav-item svg {
    width: 24px;
    height: 24px;
}

.bottom-nav-item span {
    font-size: 14px;
    font-weight: 500;
}

.bottom-nav-item.register {
    background-color: #ff4444;
    color: white;
}

.bottom-nav-item.register:hover {
    background-color: #ff2222;
}

.bottom-nav-item.call {
    background-color: #f5f5f5;
    color: #333;
}

.bottom-nav-item.call:hover {
    background-color: #e5e5e5;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn svg {
    width: 24px;
    height: 24px;
}

/* Section Styles */
.section-title {
    font-size: 32px;
    font-weight: 300;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
}

.section-subtitle {
    font-size: 18px;
    color: #666;
    margin-bottom: 40px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Card Styles */
.card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 20px;
}

.card-title {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
}

.card-text {
    color: #666;
    margin-bottom: 15px;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: #ff4444;
    color: white;
}

.btn-secondary {
    background: #333;
    color: white;
}

.btn-outline {
    background: transparent;
    border: 1px solid #ff4444;
    color: #ff4444;
}

.btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Kanit', Arial, sans-serif;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-input:focus,
.form-textarea:focus {
    border-color: #ff4444;
    outline: none;
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

/* Animation Styles */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.animate-fade {
    animation: fadeIn 1s ease-out;
}

.animate-slide {
    animation: slideUp 1s ease-out;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mt-4 { margin-top: 40px; }
.mt-5 { margin-top: 50px; }

.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mb-4 { margin-bottom: 40px; }
.mb-5 { margin-bottom: 50px; }

.p-1 { padding: 10px; }
.p-2 { padding: 20px; }
.p-3 { padding: 30px; }
.p-4 { padding: 40px; }
.p-5 { padding: 50px; }

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .nav-menu {
        gap: 20px;
    }

    .hero-title {
        font-size: 40px;
    }
    
    .section-title {
        font-size: 28px;
    }
}

@media screen and (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(33, 33, 33, 0.95);
        padding: 20px;
        flex-direction: column;
        gap: 20px;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-link.active::after {
        bottom: -5px;
    }

    .nav-right {
        display: none;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-description {
        font-size: 16px;
    }

    .contact-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .contact-btn {
        width: 100%;
    }

    .bottom-nav {
        display: flex;
        flex-direction: column;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .section-subtitle {
        font-size: 16px;
    }
}

@media screen and (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-description {
        font-size: 14px;
    }
    
    .section-title {
        font-size: 22px;
    }
    
    .contact-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}