/* =====================================
   CSS RESET & BASE STYLES
   ===================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

h1, h2, h3, a {
    font-family: 'Kanit', sans-serif;
    font-weight: 700;
}

/* =====================================
   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: 1850px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    letter-spacing: 1px;
}

/* =====================================
   NAVIGATION STYLES
   ===================================== */
.main-menu {
    display: flex;
    list-style: none;
    gap: 1rem;
    align-items: center;
}

.main-menu li {
    position: relative;
}

.main-menu a {
    color: white;
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    display: inline-block;
}

.main-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #36a0f4;
    transform: translateY(-2px);
}

/* =====================================
   DROPDOWN & MEGA MENU STYLES
   ===================================== */
.dropdown {
    position: relative;
}

.dropdown > a::after {
    font-size: 0.7rem;
    margin-left: 5px;
    transition: transform 0.3s ease;
    display: inline-block;
}

.dropdown:hover > a::after {
    transform: rotate(180deg);
}

/* Two Column Mega Menu */
.main-menu .mega-menu {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.main-menu .mega-menu .column {
    flex: 1;
    min-width: 150px;
}

.main-menu .mega-menu .column h3 {
    font-family: 'Kanit', sans-serif;
    font-weight: 1400;
    border-bottom: 3px solid #36a0f4;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    color: #1a1a2e;
}

.main-menu .mega-menu .column a {
    color: #333;
    text-decoration: none;
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid #ffffff;
    transition: transform 0.3s ease, color 0.3s ease;
}

.main-menu .mega-menu .column a:hover {
    color: #36a0f4;
    transform: translateX(5px);
    background-color: transparent;
}

.mega-menu h3 {
    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);
}

/* Three Column Mega Menu */
.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);
}

/* Single Column Mega Menu */
.megamenu1 {
    display: grid;
    grid-template-columns: 1fr;
    background: white;
    gap: 1.5rem;
    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: 250px;
}

.dropdown:hover .megamenu1 {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.megamenu1 h3 {
    font-family: 'Kanit', sans-serif;
    font-size: 1rem;
    color: #1a1a2e;
    margin-bottom: 0.5rem;
    border-bottom: 2px solid #36a0f4;
    padding-bottom: 0.5rem;
}

.megamenu1 ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.megamenu1 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;
    font-size: 0.9rem;
}

.megamenu1 li a:hover {
    color: #36a0f4;
    transform: translateX(5px);
    background-color: transparent;
}

/* Five Column Mega Menu */
.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    background: white;
    gap: 1.5rem;
    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: 1400px;
}

.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;
    font-size: 0.9rem;
}

.mega-menu-grid li a:hover {
    color: #36a0f4;
    transform: translateX(5px);
    background-color: transparent;
}

.menu-category {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    border-left: 4px solid #36a0f4;
}

.menu-category h3 {
    color: #1a1a2e;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #36a0f4;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.menu-category h3 i {
    color: #36a0f4;
    font-size: 1rem;
}

.menu-category ul {
    list-style: none;
    padding: 0;
}

.menu-category li {
    margin-bottom: 0.3rem;
}

.menu-category a {
    color: #555;
    text-decoration: none;
    padding: 0.5rem 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.menu-category a:hover {
    background: #e3f2fd;
    color: #1976d2;
    transform: translateX(5px);
}

.menu-category a::before {
    content: '◉';
    color: #36a0f4;
    font-size: 0.6rem;
    margin-right: 8px;
    display: inline-block;
    transform: translateY(-1px);
}

.tag-soon {
    background: #ff6b6b;
    color: white;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: auto;
    font-weight: 500;
}

/* =====================================
   HEADER RIGHT SECTION
   ===================================== */
.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.search-wrapper {
    position: relative;
    width: 250px;
}

.search-input {
    width: 100%;
    padding: 0.5rem 2.5rem 0.5rem 1rem;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 25px;
    background: rgba(255,255,255,0.1);
    color: white;
    outline: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.search-input::placeholder {
    color: rgba(255,255,255,0.6);
}

.search-input:focus {
    background: rgba(255,255,255,0.2);
    border-color: #36a0f4;
    width: 250px;
}

.search-wrapper::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
            transform: translateY(-50%);
            width: 20px; height: 20px;
            background: url('data:image/svg+xml;utf8,<svg fill="rgba(255,255,255,0.7)" height="20" viewBox="0 0 24 24" width="20" xmlns="http://www.w3.org/2000/svg"><path d="M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C8.01 14 6 11.99 6 9.5S8.01 5 10.5 5 15 7.01 15 9.5 12.99 14 10.5 14z"/></svg>') no-repeat center/cover;
            pointer-events: none;            transform: translateY(-50%);
    transform: translateY(-50%);
    color: rgba(255,255,255,0.6);
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    margin-top: 8px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.result-item {
    padding: 15px 20px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s ease;
}

.result-item:hover {
    background: #f8f9fa;
}

.result-item:last-child {
    border-bottom: none;
    border-radius: 0 0 15px 15px;
}

.result-item:first-child {
    border-radius: 15px 15px 0 0;
}

.result-title {
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 4px;
}

.result-description {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

.highlight {
    background: #ffeaa7;
    padding: 1px 3px;
    border-radius: 3px;
    font-weight: 500;
}

.no-results {
    padding: 20px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

.social-icons {
    display: flex;
    gap: 0.8rem;
}

.social-icons a {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-3px);
}

.social-icons .line { color: #06c755; }
.social-icons .Facebook { color: #1877f2; }
.social-icons .YT { color: #ff0000; }

.menu-login {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(255,255,255,0.1);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    border: 2px solid rgba(255,255,255,0.2);
}

.menu-login a,
.menu-login .username {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
}

.menu-login button {
    background: #ff4757;
    color: white;
    border: none;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.menu-login button:hover {
    background: #ff3838;
}

/* =====================================
   MOBILE MENU STYLES
   ===================================== */
.menu-icon {
    cursor: pointer;
    color: #ffffff;
}

.side-menu {
    position: fixed;
    top: 60px;
    left: -250px;
    width: 250px;
    height: calc(100vh - 50px);
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    box-shadow: 2px 0 8px rgba(0,0,0,0.14);
    transition: left 0.3s;
    z-index: 120;
    display: flex;
    flex-direction: column;
}

.side-menu-content {
    display: flex;
    flex-direction: column;
    margin-top: 60px;
}

.side-menu-content a {
    color: #fff;
    padding: 20px;
    border-bottom: 1px solid #333;
    text-decoration: none;
    font-size: 1.1rem;
    transition: background 0.2s;
}

.side-menu-content a:hover {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
}

.side-menu.show {
    left: 0;
}

.side-menu-backdrop {
    display: none;
    position: fixed;
    left: 0; top: 0;
    width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.3);
    z-index: 110;
}

.side-menu-backdrop.show {
    display: block;
}

.sidebar-menu {
    position: fixed;
    left: 0; top: 0;
    width: 230px; height: 100vh;
    background: #263047;
    color: #fff;
    z-index: 9999;
    padding: 40px 20px 20px 20px;
    box-shadow: 2px 0 10px rgba(0,0,0,0.12);
    transition: left 0.2s;
}

.sidebar-menu ul { margin:0; padding:0; list-style:none;}
.sidebar-menu li { margin: 20px 0;}
.sidebar-menu a { color:#fff; font-size: 17px;}

/* =====================================
   HERO SECTION
   ===================================== */
.hero {
            color: #36a0f4;
            height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            color: rgb(0, 0, 0);

        }

        .hero::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear- gradient(hsla(207, 100%, 43%, 0.5));
        }

        .hero-content {
            position: relative;
            z-index: 2;
            max-width: 800px;
            padding: 0 2rem;
        }



        .hero p {
            font-size: 1.1rem;
            margin-bottom: 3rem;
            opacity: 0.9;
            line-height: 1.8;
        }
        /* Hero Section */
        .hero {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            overflow: hidden;
        }

        .hero::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="stars" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23stars)"/></svg>');
            animation: float 20s ease-in-out infinite;
        }

.anniversary-badge {
    display: inline-block;
    position: relative;
    margin-bottom: 2rem;
    animation: pulse 2s ease-in-out infinite;
}

.stars-circle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 300px;
    height: 300px;
}

.anniversary-text{
    font-family: 'Kanit', sans-serif;
    font-size: 4.5rem;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    font-style: italic;
    margin-bottom: 0.5rem;
}

.hero-description {
    font-family: 'Kanit', sans-serif;
    font-size: 1.2em;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    color: #ffffff;
}

.hero-description1 {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

/* =====================================
   IMAGE SLIDER SECTION
   ===================================== */
.imservices {
    padding: 50px 0;
    background: #f8f9fa;
    overflow: hidden;
}

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

.imabout-image {
    padding: 20px;
    overflow: hidden;
    position: relative;
    white-space: nowrap;
}

.imimage-slider-loop {
    display: inline-flex;
    animation: slideLoop 25s linear infinite;
    gap: 100px;
}

.imimage-slider {
    display: inline-flex;
    animation: slideRight 10s linear infinite;
    gap: 100px;
}

.imimage-slider img {
    width: 300px;
    height: 400px;
    border-radius: 25px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

/* =====================================
   SERVICES SECTION
   ===================================== */
.services {
    padding: 3.5rem 0;
    background: #f8f9fa;
}

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

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: #1a1a2e;
    margin-bottom: 1rem;
}

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

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.3s ease;
    border-top: 4px solid #36a0f4;
}
 
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.service-card h3 {
    font-size: 1.5rem;
    color: #1a1a2e;
    margin-bottom: 1rem;
}

.service-card p {
    font-family: 'Kanit', sans-serif;
    font-size: 16px;
    color: #333;
    line-height: 1.8;
    text-indent: 2em;
    text-align: left;
}

.service-card1 {
    width: 100%;
    max-width: 615px;
    margin: 30px auto;
    padding: 2rem;
    background: white;
    text-align: center;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-top: 4px solid #36a0f4;
}

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

.service-card1 h3 {
    font-size: 1.5rem;
    color: #1a1a2e;
    margin-bottom: 1rem;
}

.service-card1 p {
    font-family: 'Kanit', sans-serif;
    font-size: 16px;
    color: #333;
    line-height: 1.8;
    text-indent: 2em;
    text-align: left;
}

/* =====================================
   ABOUT SECTION
   ===================================== */
.about {
    padding: 5rem 0;
    background: white;
}

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

.about-text h2 {
    font-size: 2.5rem;
    color: #1a1a2e;
    margin-bottom: 1.5rem;
}

.about-text p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-features {
    list-style: none;
    margin-top: 2rem;
}

.about-features li {
    padding: 0.5rem 0;
    color: #333;
    position: relative;
    padding-left: 2rem;
}

.about-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #36a0f4;
    font-weight: bold;
}

.about-image {
    background-size: cover;
    background-position: center;
    height: 400px;
    max-width: 100%;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

/* =====================================
   COURSES SECTION
   ===================================== */
.filter-box {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.09);
    padding: 32px 20px 10px 20px;
    margin: 40px auto 16px auto;
    max-width: 900px;
}

.filter-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px 10px;
    margin-bottom: 20px;
}

.filter-list label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 1rem;
    font-family: 'Kanit',sans-serif;
    cursor: pointer;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
    gap: 28px 20px;
    max-width: 950px;
    margin: 0 auto 40px auto;
}

.course-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(30,80,160,0.11);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 390px;
    transition: box-shadow .2s;
    border: 2px solid transparent;
}

.course-card:hover { 
    box-shadow: 0 6px 30px 0 rgba(50,70,200,0.14); 
    border-color: #36a0f4;
}

.course-card img {
    width: 100%; height: 160px; object-fit: cover;
    border-bottom: 1px solid #f2f2f2;
}

.course-card .detail {
    padding: 18px 15px 8px 15px;
    flex: 1;
    display: flex; flex-direction: column;
}

.course-card h4 {
    font-family: 'Kanit',sans-serif;
    font-size: 1.14rem;
    color: #1a1a2e;
    margin: 0 0 8px 0;
    font-weight: bold;
}

.course-card p { 
    font-size: 0.98rem; 
    margin-bottom: 12px; 
    color: #434343;
}

.course-card .btns {
    margin-top: auto;
    display: flex; gap: 10px;
}

.course-card .btn-detail, 
.course-card .btn-book {
    flex: 1 1 0;
    font-family: 'Kanit',sans-serif;
    padding: 8px 0;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background .2s;
}

.course-card .btn-detail { 
    background:#333; 
    color:#fff;
}

.course-card .btn-book { 
    background:#36a0f4; 
    color:#fff;
}

.course-card .btn-book:hover { 
    background: #1878cf;
}

.no-result {
    text-align: center;
    font-size: 1.2rem;
    color: #888;
    padding: 60px 0;
}

/* =====================================
   CERTIFICATE SECTION
   ===================================== */
.certificate-card {
    background: #f8fafc !important;
    border-radius: 18px !important;
    box-shadow: 0 4px 24px 0 rgba(60,99,200,0.07);
    padding: 2.2rem 1.5rem;
    min-height: 170px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: box-shadow 0.22s, transform 0.2s;
    border: 1.5px solid #e8ecf4;
    margin-bottom: 2rem;
}

.certificate-card:hover {
    box-shadow: 0 8px 28px rgba(30,70,180,0.14);
    transform: translateY(-4px) scale(1.03);
}

.certificate-icon {
    background: linear-gradient(135deg, #eef4fb 60%, #dbeafe 100%);
    border-radius: 50%;
    width: 64px; height: 64px;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.5rem;
    color: #2563eb;
    margin-bottom: 10px;
    box-shadow: 0 2px 10px #2563eb11;
}

.certificate-title {
    font-family: 'Kanit', sans-serif;
    font-weight: 700;
    color: #2563eb;
    font-size: 1.18em;
    margin-bottom: 6px;
    text-align: center;
    letter-spacing: 0.03em;
}

.certificate-desc {
    color: #23272f;
    text-align: center;
    font-size: 1em;
    margin-bottom: 0.4em;
}

.certificate-link {
    display: inline-block;
    margin-top: 0.8em;
    color: #2563eb;
    font-weight: 700;
    font-family: 'Kanit', sans-serif;
    text-decoration: none;
    border-bottom: 1.5px solid #2563eb33;
    padding: 2px 8px;
    border-radius: 4px;
    transition: background 0.17s, color 0.17s;
}

.certificate-link:hover {
    background: #e0edff;
    color: #1748a1;
    border-bottom: 1.5px solid #1748a1;
}

/* =====================================
   CONTACT SECTION
   ===================================== */
.contact-section {
    background-color: #13132A;
    padding: 60px 20px;
    color: white;
    font-family: 'Segoe UI', sans-serif;
}

.contact-title {
    color: #fff;
    text-align: center;
    font-family: 'Kanit', sans-serif;
    font-size: 2.2rem;
    font-weight: bold;
    margin-bottom: 2rem;
    letter-spacing: 2px;
    border-bottom: 3px solid #36a0f4;
    display: inline-block;
    padding-bottom: 0.4rem;
}

.contact-flex {
    display: flex;
    gap: 2.5rem;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-card {
    background: #222436;
    border-radius: 16px;
    padding: 2rem 1.5rem 1.3rem 1.5rem;
    min-width: 210px;
    max-width: 270px;
    text-align: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 28px 0 rgba(30,70,180,0.11);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1.5px solid #27306c33;
}

.contact-card:hover {
    transform: translateY(-5px) scale(1.04);
    box-shadow: 0 8px 32px 0 #2583ff11;
}

.contact-icon {
    background: linear-gradient(135deg,#36a0f4 60%,#2583ff 100%);
    color: #fff;
    border-radius: 50%;
    width: 62px;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1rem auto;
    box-shadow: 0 3px 14px #2583ff21;
}

.contact-label {
    font-family: 'Kanit', sans-serif;
    color: #fff;
    font-weight: 700;
    margin-bottom: 6px;
    font-size: 1.07rem;
    letter-spacing: 1px;
}

.contact-info {
    color: #e0e6f8;
    font-family: 'Kanit', sans-serif;
    margin-top: 2px;
    font-size: 1rem;
    line-height: 1.5;
    opacity: 0.95;
    word-break: break-all;
}

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

.contact-item {
    background: linear-gradient(135deg, #1f1f3b, #2c2c54);
    border-radius: 16px;
    padding: 30px 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    text-align: center;
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-8px);
}

/* =====================================
   SECTION TITLES & HEADINGS
   ===================================== */
.section-title1 {
    color: #1a1a2e;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    border-bottom: 3px solid #36a0f4;
    padding-bottom: 0.5rem;
}

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;
}

/* =====================================
   CUSTOM LIST STYLES
   ===================================== */
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;
}

/* =====================================
   ANIMATIONS & KEYFRAMES
   ===================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes slideLoop {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-200%);
    }
}

@keyframes slideRight {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Apply animations to elements */
.service-card,
.service-card1,
.about-text {
    animation: fadeInUp 0.6s ease;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }

/* =====================================
   DEMO CONTENT
   ===================================== */
.demo-content {
    margin-top: 100px;
    padding: 2rem;
    text-align: center;
}

.demo-content h1 {
    color: #1a1a2e;
    margin-bottom: 1rem;
}

/* =====================================
   SCROLLBAR STYLING
   ===================================== */
::-webkit-scrollbar {
    width: 1px;
}

::-webkit-scrollbar-track {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764ba2, #667eea);
}

/* =====================================
   RESPONSIVE DESIGN
   ===================================== */
@media (max-width: 1200px) {
    .mega-menu-grid {
        grid-template-columns: repeat(2, 280px);
    }
}

@media (max-width: 968px) {
    .menu-icon {
        display: block;
    }

    nav {
        display: none;
    }

    .header-right {
        gap: 1rem;
    }

    .search-wrapper {
        width: 180px;
    }

    .social-icons {
        display: none;
    }
}

@media (max-width: 900px) {
    .contact-flex {
        gap: 1.2rem;
    }
    
    .contact-card {
        min-width: 170px;
        max-width: 100%;
        padding: 1.4rem 1rem;
    }
    
    .filter-list { 
        grid-template-columns: repeat(2,1fr);
    }
}

@media (max-width: 768px) {
    .menu-icon {
        display: block;
    }

    .main-menu {
        display: none;
    }

    .hero h6 {
        font-size: 60px;
    }

    .hero-description1 {
        font-size: 1.2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .header-container {
        flex-direction: column;
        gap: 1rem;
    }

    .imimage-slider-loop img {
        width: 250px;
        height: 350px;
    }

    .imimage-slider-loop {
        gap: 50px;
    }

    .stars-circle {
        width: 250px;
        height: 250px;
    }
}

@media (max-width: 600px) {
    .header-container {
        padding: 0.8rem 1rem;
    }

    .logo {
        font-size: 1.3rem;
    }

    .search-wrapper {
        display: none;
    }

    .menu-login {
        padding: 0.4rem 0.8rem;
    }
    
    .search-wrapper {
        display: none;
    }
    
    .social-icons {
        display: none;
    }
    
    .menu-login {
        padding: 6px 15px;
        font-size: 13px;
    }
    
    .anniversary-text {
        font-size: 3rem;
    }
    
    .contact-flex {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .contact-card {
        width: 98%;
        min-width: unset;
        max-width: 350px;
    }
    
    .contact-title {
        font-size: 1.2rem;
        padding-bottom: 0.2rem;
    }
    
    .filter-list { 
        grid-template-columns: 1fr;
    }
    
    .filter-box { 
        padding:16px 5px;
    }
}