             *  {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }


        html,body {
                height: 100%;
                margin: 0;
                padding: 0;
                font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
                line-height: 1.6;
                color: #333;
                 }
         h1, h2, h3  {
            font-family: 'Kanit', sans-serif;
            font-weight: 700;
            }
                     a  {
            font-family: 'Kanit', sans-serif;
            font-weight: 700;
            color: #333;
            }

        /* Header Styles */
        .header {
        background: linear-gradient(135deg, rgba(26,26,46,0.9), rgba(54,160,244,0.8)), 
            url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 400"><rect width="1200" height="400" fill="%23f0f8ff"/><circle cx="200" cy="100" r="50" fill="%23e0f2ff" opacity="0.5"/><circle cx="800" cy="200" r="80" fill="%23d0ebff" opacity="0.3"/><circle cx="1000" cy="80" r="60" fill="%23c0e4ff" opacity="0.4"/></svg>');
        border-radius: 15px;
        padding: 20px;
        text-align: center;
        margin-bottom: 30px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
        backdrop-filter: blur(10px);
        }
        .header-title {
        color: white;
        font-size: 24px;
        font-weight: bold;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
        }
        h5 {
                font-family: 'Kanit', sans-serif;
                font-weight: 700;   
                color: #212529;
                border-left: 6px solid #007bff;
                padding-left: 15px;
                font-size: 1.8em;
                margin-bottom: 20px;
                
        }
                d1 {
                font-weight: 700;   
                color: #ff0000;
  
                
        }

        ul1  {
            list-style: none;
            padding: 0;
                 }

        li1 {
            margin-bottom: 15px;
            display: flex;
            align-items: flex-start;
            }

        li1::before {
            content: "\f058";
            font-family: "Font Awesome 6 Free";
            font-weight: 900;
            color: #0d6efd;
            margin-right: 15px;
            font-size: 1.2em;
            }
        .menu-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
            margin-top: 20px;
        }

        .menu-item {
            background: white;
            border-radius: 15px;
            padding: 25px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
            border: 2px solid transparent;
        }                
        .menu-icon {
        font-size: 1.5rem;
        color: rgb(0, 0, 0);
        cursor: pointer;
        width: 60px;
        height: 60px;
        background: linear-gradient(135deg, #36a0f4 0%, #36a0f4 100%);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 15px;
        transition: all 0.3s ease;
        }
 
        .menu-item:hover .menu-icon {
            transform: scale(1.1);
            background: linear-gradient(135deg, #36a0f4 0%, #36a0f4 100%);
        }

        .menu-text {
            color: #374151;
            font-size: 15px;
            font-weight: 500;
            line-height: 1.4;
        }
                /* Header Styles */
        header {
            background: linear-gradient(135deg, #1a1a2e, #16213e);
            padding: 0.5rem 0;
            position: fixed;
            width: 100%;
            top: 0;
            z-index: 1000;
            box-shadow: 0 2px 10px rgba(0,0,0,0.3);
        }

        .header-container {
            max-width: 1500px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 2rem;
        }


        .main-menu {
            display: flex;
            list-style: none;
            gap: 2rem;
        }

        .main-menu li {
            position: relative;
        }

        .main-menu a {
            color: white;
            text-decoration: none;
            padding: 0.5rem 1rem;
            border-radius: 5px;
            transition: all 0.3s ease;
            font-weight: 500;
        }

        .main-menu a:hover {
            background: #36a0f4;
            transform: translateY(-2px);
        }

        .dropdown .mega-menu {
            position: absolute;
            top: 100%;
            left: 0;
            background: white;
            min-width: 300px;
            padding: 1.5rem;
            border-radius: 10px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.2);
            opacity: 0;
            visibility: hidden;
            transform: translateY(10px);
            transition: all 0.3s ease;
        }

        .dropdown:hover .mega-menu {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .mega-menu h4 {
            color: #1a1a2e;
            margin-bottom: 1rem;
            border-bottom: 2px solid #36a0f4;
            padding-bottom: 0.5rem;
        }

        .mega-menu a {
            color: #333;
            display: block;
            padding: 0.5rem 0;
            border-bottom: 1px solid #eee;
        }

        .mega-menu a:hover {
            color: #36a0f4;
            background: none;
            transform: translateX(5px);
        }
        .logo {
            font-size: 1.5rem;
            font-weight: bold;
            color: #ffffff;
        }
        .phone {
            color: #ffffff;
            font-weight: bold;
            font-size: 1.2rem;
        }
        .Facebook {
            color: #36a0f4;
            font-weight: bold;
            font-size: 1.2rem;
        }
        .YT {
            color: #ff0000;
            font-weight: bold;
            font-size: 1.2rem;
        }

         .line {
            color: #0fc55a;
            font-weight: bold;
            font-size: 1.2rem;
        }

        .nav-links {
            display: flex;
            list-style: none;
            gap: 2rem;
        }

        .nav-links a {
            color: white;
            text-decoration: none;
            padding: 0.5rem 1rem;
            border-radius: 5px;
            transition: all 0.3s ease;
        }

        .nav-links a:hover {
            background: #36a0f4;
            transform: translateY(-2px);
        }

        /* Hero Section */
        .hero {
            background: linear-gradient(135deg, rgba(26,26,46,0.9), rgba(54,160,244,0.8)), 
                        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 400"><rect width="1200" height="400" fill="%23f0f8ff"/><circle cx="200" cy="100" r="50" fill="%23e0f2ff" opacity="0.5"/><circle cx="800" cy="200" r="80" fill="%23d0ebff" opacity="0.3"/><circle cx="1000" cy="80" r="60" fill="%23c0e4ff" opacity="0.4"/></svg>');
            background-size: cover;
            background-position: center;
            padding: 4rem 0;
            text-align: center;
            color: white;
        }

        .hero-content h1 {
            font-size: 2.5rem;
            margin-bottom: 1rem;
            color: white;
            text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.5);
        }

        .hero-content p {
            font-size: 1.2rem;
            opacity: 0.9;
            max-width: 800px;
            margin: 0 auto;
        }

        .badge {
            display: inline-block;
            background: #36a0f4;
            color: white;
            padding: 0.5rem 1rem;
            border-radius: 20px;
            font-size: 0.9rem;
            margin-bottom: 1rem;
        }

        /* Main Content */
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 2rem;
        }

        .course-overview {
            background: white;
            border-radius: 15px;
            padding: 3rem;
            margin: 3rem 0;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        }

        .course-grid {
            display: grid;
            grid-template-columns: 2.5fr 1fr;
            gap: 3rem;
            margin: 3rem 0;
        }

        .course-details {
            background: white;
            border-radius: 15px;
            padding: 2rem;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        }

        .course-info {
            background: white;
            border-radius: 15px;
            padding: 2rem;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
            height: fit-content;
        }

        .section-title {
            color: #1a1a2e;
            font-size: 2rem;
            margin-bottom: 1.5rem;
            border-bottom: 3px solid #36a0f4;
            padding-bottom: 0.5rem;
        }

        .highlight-box {
            background: linear-gradient(135deg, #36a0f4, #1e90ff);
            color: white;
            padding: 2rem;
            border-radius: 10px;
            margin: 2rem 0;
        }

        .highlight-box h3 {
            font-size: 1.5rem;
            margin-bottom: 1rem;
        }

        .features-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 1.5rem;
            margin: 2rem 0;
        }

        .feature-card {
            background: #f8f9fa;
            padding: 1.5rem;
            border-radius: 10px;
            border-left: 4px solid #36a0f4;
            transition: all 0.3s ease;
        }

        .feature-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        }

        .feature-icon {
            font-size: 2rem;
            margin-bottom: 1rem;
        }

        .curriculum-list {
            list-style: none;
            margin: 1.5rem 0;
        }

        .curriculum-list li {
            background: #f8f9fa;
            margin: 0.5rem 0;
            padding: 1rem;
            border-radius: 8px;
            border-left: 4px solid #36a0f4;
            transition: all 0.3s ease;
        }

        .curriculum-list li:hover {
            background: #e9ecef;
            transform: translateX(5px);
        }

        .curriculum-list li::before {
            content: "📚";
            margin-right: 1rem;
        }

        .info-card {
            background: #f8f9fa;
            padding: 1rem;
            border-radius: 8px;
            margin: 1rem 0;
            border-left: 4px solid #36a0f4;
        }

        .info-card h4 {
            color: #1a1a2e;
            margin-bottom: 0.5rem;
        }

        .info-card p {
            color: #666;
        }

        .price-card {
            background: linear-gradient(135deg, #36a0f4, #1e90ff);
            color: white;
            padding: 2rem;
            border-radius: 15px;
            text-align: center;
            margin: 2rem 0;
        }

        .price {
            font-size: 2.5rem;
            font-weight: bold;
            margin: 1rem 0;
        }

        .price small {
            font-size: 1rem;
            opacity: 0.8;
        }

        .register-btn {
            background: white;
            color: #36a0f4;
            padding: 1rem 2rem;
            border: none;
            border-radius: 8px;
            font-size: 1.1rem;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s ease;
            width: 100%;
            margin-top: 1rem;
        }

        .register-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 20px rgba(0,0,0,0.2);
        }

        .requirements {
            background: #fff3cd;
            border: 1px solid #ffeaa7;
            border-radius: 10px;
            padding: 1.5rem;
            margin: 2rem 0;
        }

        .requirements h4 {
            color: #856404;
            margin-bottom: 1rem;
        }

        .requirements ul {
            color: #856404;
            padding-left: 1.5rem;
        }

        .benefits {
            background: #d4edda;
            border: 1px solid #c3e6cb;
            border-radius: 10px;
            padding: 1.5rem;
            margin: 2rem 0;
        }

        .benefits h4 {
            color: #155724;
            margin-bottom: 1rem;
        }

        .benefits ul {
            color: #155724;
            padding-left: 1.5rem;
        }

        .schedule-table {
            width: 100%;
            border-collapse: collapse;
            margin: 2rem 0;
            background: white;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        }

        .schedule-table th {
            background: #36a0f4;
            color: white;
            padding: 1rem;
            text-align: left;
        }

        .schedule-table td {
            padding: 1rem;
            border-bottom: 1px solid #eee;
        }

        .schedule-table tr:hover {
            background: #f8f9fa;
        }

        .contact-section {
            background: #1a1a2e;
            color: white;
            padding: 3rem 0;
            margin-top: auto;   /* ดันให้ไปอยู่ล่างสุด */
        }

        .contact-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 2rem;
        }

        .contact-item {
            text-align: center;
            padding: 1.5rem;
        }

        .contact-icon {
            width: 60px;
            height: 60px;
            background: #36a0f4;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 1rem;
            font-size: 1.5rem;
        }

         .steps {
        display: flex;
        justify-content: space-between;
        gap: 20px;
        }   

    .step {
      background-color: white;
      padding: 20px;
      border: 2px dashed #0d6efd;
      border-radius: 10px;
      flex: 1;
      text-align: center;
    }

    .step-icon {
      font-size: 40px;
      margin-bottom: 10px;
    }

    .step-title {
      font-weight: bold;
      margin-bottom: 10px;
    }
    .main-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
        

        /* Responsive */
        @media (max-width: 768px) {
            .course-grid {
                grid-template-columns: 1fr;
            }
            
            .hero-content h1 {
                font-size: 2rem;
            }
            
            .nav-links {
                display: none;
            }
            
            .course-overview,
            .course-details,
            .course-info {
                padding: 1.5rem;
            }
        }

        /* Animations */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .course-overview,
        .course-details,
        .course-info {
            animation: fadeInUp 0.6s ease;
        }
                /* Two-Column Mega Menu */
/* Mega Menu with Three Columns */
.mega-menu.three-columns {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    min-width: 700px;
    padding: 1rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.mega-menu.three-columns .column {
    flex: 1;
    min-width: 200px;
}

.mega-menu.three-columns .column h3 {
    font-family: 'Kanit', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 10px;
    color: #1a1a2e;
    border-bottom: 2px solid #36a0f4;
    padding-bottom: 5px;
}

.mega-menu.three-columns .column a {
    display: block;
    font-family: 'Kanit', sans-serif;
    padding: 5px 0;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #eee;
    transition: 0.3s ease;
}

.mega-menu.three-columns .column a:hover {
    color: #ff0000;
    transform: translateX(5px);
}

/* 4-Column Mega Menu */
.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* สร้าง 4 คอลัมน์ */
    background: white;
    gap: 2rem;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: absolute;
    top: 100%;
    left: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
    min-width: 900px; /* เพิ่มความกว้างขั้นต่ำให้พอดีกับ 4 คอลัมน์ */
}

.dropdown:hover .mega-menu-grid {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu-grid h3 {
    font-family: 'Kanit', sans-serif;
    font-size: 1rem;
    color: #1a1a2e;
    margin-bottom: 0.5rem;
    border-bottom: 2px solid #36a0f4;
    padding-bottom: 0.5rem;
}

.mega-menu-grid ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-menu-grid li a {
    display: block;
    padding: 0.3rem 0;
    color: #333;
    text-decoration: none;
    font-family: 'Kanit', sans-serif;
    border-bottom: 1px solid #ffffff;
    transition: 0.3s;
}

.mega-menu-grid li a:hover {
    color: #36a0f4;
    transform: translateX(5px);
    background-color: transparent;
}
