/* สำหรับเก็บในไฟล์ css/style.css */

/* กำหนดตัวแปร CSS สำหรับสีต่างๆ */
:root {
    --menu-primary-color: #483D8B;
    --menu-secondary-color: #6A5ACD;
    --menu-hover-color: #483D8B;
    --menu-accent-color: #9370DB;
    --menu-text-color: #ffffff;
    --menu-border-color: #483D8B;
}

/* ปรับแต่งสไตล์ให้สามารถปรับเปลี่ยนสีได้ง่าย */
.custom-menu-container * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.custom-menu-container {
    background: #f8f8f8;
    color: #333;
    line-height: 1.6;
    padding: 20px;
    max-width: 1300px;
    margin: 0 auto;
    font-family: 'Sarabun', 'THSarabunNew', sans-serif;
}

/* หัวข้อหลัก */
.custom-menu-container .main-heading {
    color: var(--menu-primary-color);
    font-size: 24px;
    font-weight: bold;
    margin: 30px 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--menu-border-color);
}

/* Container สำหรับรายการเมนู */
.custom-menu-container .menu-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    margin-bottom: 40px;
}

/* รูปแบบกล่องเมนู */
.custom-menu-container .menu-item {
    background: var(--menu-secondary-color);
    color: var(--menu-text-color);
    padding: 15px;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    display: block;
    text-decoration: none;
}

.custom-menu-container .menu-item:hover {
    background: var(--menu-hover-color);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

/* เส้นตกแต่งด้านข้าง */
.custom-menu-container .menu-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--menu-accent-color);
}

/* ข้อความในเมนู */
.custom-menu-container .menu-text {
    font-size: 16px;
    padding-left: 10px;
    position: relative;
    z-index: 1;
    color: var(--menu-text-color);
}

/* Animation effect เมื่อ hover */
.custom-menu-container .menu-item::after {
    content: '';
    position: absolute;
    right: -20px;
    bottom: -20px;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.custom-menu-container .menu-item:hover::after {
    transform: scale(3);
    opacity: 0.2;
}

/* สไตล์เพิ่มเติมสำหรับเมนูประเภท performance */
.custom-menu-container.type-performance .main-heading {
    color: #2e7d32;
    border-color: #2e7d32;
}

.custom-menu-container.type-performance {
    --menu-primary-color: #2e7d32;
    --menu-secondary-color: #43a047;
    --menu-hover-color: #2e7d32;
    --menu-accent-color: #66bb6a;
}

/* สไตล์เพิ่มเติมสำหรับเมนูประเภท training */
.custom-menu-container.type-training {
    --menu-primary-color: #0277bd;
    --menu-secondary-color: #0288d1;
    --menu-hover-color: #01579b;
    --menu-accent-color: #29b6f6;
}

/* Media Queries */
@media (max-width: 768px) {
    .custom-menu-container .menu-container {
        grid-template-columns: 1fr;
    }
    
    .custom-menu-container .main-heading {
        font-size: 20px;
    }
}