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

body {
    font-family: 'Sarabun', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.nav-logo span {
    font-weight: 600;
    font-size: 1.2rem;
    color: #2c5530;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #2c5530;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #2c5530;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    z-index: 2;
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #2c5530;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-text p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: #2c5530;
    color: white;
}

.btn-primary:hover {
    background: #1e3a21;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(44, 85, 48, 0.3);
}

.btn-secondary {
    background: #00c300;
    color: white;
}

.btn-secondary:hover {
    background: #00a000;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 195, 0, 0.3);
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    height: auto;
    max-height: 600px;
    width: 100%;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.1;
}

.hero-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 600;
    color: #2c5530;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about {
    padding: 5rem 0;
    background: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-image img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.about-text h3 {
    font-size: 2rem;
    color: #2c5530;
    margin-bottom: 1rem;
}

.about-text p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.certificates h4 {
    font-size: 1.3rem;
    color: #2c5530;
    margin-bottom: 1rem;
}

.cert-images {
    display: flex;
    gap: 1rem;
}

.cert-images img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Classes Section */
.classes {
    padding: 5rem 0;
    background: #f8f9fa;
}

.classes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.class-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.class-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.class-card.featured {
    border: 3px solid #2c5530;
    position: relative;
}

.class-card.featured::before {
    content: 'แนะนำ';
    position: absolute;
    top: 20px;
    right: 20px;
    background: #2c5530;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 2;
}

.class-image {
    height: 200px;
    overflow: hidden;
}

.class-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.class-card:hover .class-image img {
    transform: scale(1.1);
}

.class-content {
    padding: 1.5rem;
}

.class-content h3 {
    font-size: 1.5rem;
    color: #2c5530;
    margin-bottom: 1rem;
}

.class-content p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.class-details {
    margin-bottom: 1.5rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: #666;
}

.detail-item i {
    color: #2c5530;
    width: 16px;
}

.pricing {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.price-item {
    display: flex;
    align-items: baseline;
    gap: 0.3rem;
}

.price {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c5530;
}

.period {
    color: #666;
    font-size: 0.9rem;
}

/* Schedule Section */
.schedule {
    padding: 5rem 0;
    background: white;
}

.schedule-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.schedule-image img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.schedule-details h3 {
    font-size: 2rem;
    color: #2c5530;
    margin-bottom: 2rem;
}

.time-slots {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.time-slot {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 15px;
    flex: 1;
}

.time-slot i {
    font-size: 2rem;
    color: #2c5530;
}

.time-slot h4 {
    color: #2c5530;
    margin-bottom: 0.5rem;
}

.time-slot p {
    color: #666;
    font-weight: 500;
}

.schedule-info h4 {
    font-size: 1.3rem;
    color: #2c5530;
    margin-bottom: 1rem;
}

.schedule-info ul {
    list-style: none;
}

.schedule-info li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: #666;
}

.schedule-info i {
    color: #2c5530;
}

/* Gallery Section */
.gallery {
    padding: 5rem 0;
    background: #f8f9fa;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.gallery-item {
    height: 250px;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

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

/* Contact Section */
.contact {
    padding: 5rem 0;
    background: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info h3,
.contact-form h3 {
    font-size: 1.8rem;
    color: #2c5530;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 15px;
}

.contact-item i {
    font-size: 1.5rem;
    color: #2c5530;
    margin-top: 0.5rem;
}

.contact-item h4 {
    color: #2c5530;
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: #666;
    margin-bottom: 1rem;
}

.btn-line {
    background: #00c300;
    color: white;
    font-size: 0.9rem;
    padding: 8px 16px;
}

.btn-facebook {
    background: #1877f2;
    color: white;
    font-size: 0.9rem;
    padding: 8px 16px;
}

.contact-form {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 20px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2c5530;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Footer */
.footer {
    background: #2c5530;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}

.footer-logo h3 {
    margin-bottom: 1rem;
}

.footer-logo p {
    color: #a8c5aa;
    line-height: 1.6;
}

.footer-links h4,
.footer-contact h4 {
    margin-bottom: 1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #a8c5aa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-contact p {
    color: #a8c5aa;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: background 0.3s ease;
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.2);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #a8c5aa;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .about-content,
    .schedule-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .classes-grid {
        grid-template-columns: 1fr;
    }

    .time-slots {
        flex-direction: column;
        gap: 1rem;
    }

    .cert-images {
        justify-content: center;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-text h1 {
        font-size: 1.8rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .class-content {
        padding: 1rem;
    }

    .pricing {
        flex-direction: column;
        gap: 0.5rem;
    }

    .contact-form {
        padding: 1.5rem;
    }
}

/* Enhanced Visual Effects */
.hero-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: linear-gradient(45deg, #2c5530, #4a7c59, #2c5530);
    border-radius: 30px;
    z-index: -1;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Improved Gallery Hover Effects */
.gallery-item {
    position: relative;
    overflow: hidden;
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(44, 85, 48, 0.8), rgba(74, 124, 89, 0.6));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-item::after {
    content: '🔍';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* Enhanced Contact Section */
.contact {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Improved Button Styles */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

/* Enhanced Class Cards */
.class-card {
    position: relative;
    overflow: hidden;
}

.class-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2c5530, #4a7c59, #2c5530);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.class-card:hover::before {
    transform: scaleX(1);
}

/* Smooth Scroll Offset for Fixed Navigation */
html {
    scroll-padding-top: 80px;
}

/* Enhanced Typography */
.hero-text h1 {
    background: linear-gradient(135deg, #2c5530, #4a7c59);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Improved Responsive Images */
img {
    max-width: 100%;
    height: auto;
}

/* Enhanced Focus States for Accessibility */
.nav-link:focus,
.btn:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #2c5530;
    outline-offset: 2px;
}

/* Loading State for Images */
img {
    transition: opacity 0.3s ease;
}

img:not([src]) {
    opacity: 0;
}

/* Enhanced Mobile Experience */
@media (max-width: 768px) {
    .hero-image::before {
        display: none;
    }
    
    .gallery-item::before,
    .gallery-item::after {
        display: none;
    }
    
    .class-card::before {
        display: none;
    }
}

/* Loading Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Hover Effects */
.class-card,
.gallery-item,
.contact-item {
    transition: all 0.3s ease;
}

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

/* Language Switch Button */
.lang-switch {
    background: #2c5530 !important;
    color: white !important;
    padding: 8px 16px !important;
    border-radius: 20px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
}

.lang-switch:hover {
    background: #1e3a21 !important;
    transform: translateY(-2px) !important;
}

/* Education, Experience, and Skills Sections */
.education-section,
.experience-section,
.skills-section {
    margin-bottom: 2rem;
}

.education-section h4,
.experience-section h4,
.skills-section h4 {
    font-size: 1.3rem;
    color: #2c5530;
    margin-bottom: 1rem;
}

.education-list,
.experience-list,
.skills-list {
    list-style: none;
    padding-left: 0;
}

.education-list li,
.experience-list li,
.skills-list li {
    margin-bottom: 0.8rem;
    padding: 0.8rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #2c5530;
}

.education-list li strong,
.experience-list li strong {
    color: #2c5530;
}

.skills-list li {
    display: inline-block;
    margin: 0.3rem 0.5rem 0.3rem 0;
    padding: 0.5rem 1rem;
    background: #2c5530;
    color: white;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Class Features */
.class-features {
    margin-bottom: 1.5rem;
}

.class-features h4 {
    font-size: 1.1rem;
    color: #2c5530;
    margin-bottom: 0.8rem;
}

.class-features ul {
    list-style: none;
    padding-left: 0;
}

.class-features li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
    color: #666;
    font-size: 0.95rem;
}

.class-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #2c5530;
    font-weight: bold;
}

/* Schedule Note */
.schedule-note {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 15px;
    border-left: 4px solid #2c5530;
}

.schedule-note h4 {
    color: #2c5530;
    margin-bottom: 1rem;
}

.schedule-note p {
    margin-bottom: 0.5rem;
    color: #666;
}

.schedule-note strong {
    color: #2c5530;
}

