/* --- Variables: Sunny Blue Sky Palette --- */
:root {
    /* Primary: Sky Blue (Header/Background vibes) */
    --color-primary: #29B6F6;
    /* Secondary: Golden Yellow (Buttons/Highlights) */
    --color-secondary: #FFCA28;
    /* Accent 1: Hot Pink (Icons/Attention) */
    --color-accent-pink: #EC407A;
    /* Accent 2: Lime Green (Borders/Graphics) */
    --color-accent-green: #9CCC65;
    
    /* Neutrals */
    --color-bg-body: #F0F8FF; /* AliceBlue - very light sky feel */
    --color-bg-card: #FFFFFF; /* Cloud White */
    --color-text: #37474F;    /* Charcoal Blue - readable text */
    --color-text-light: #546E7A; /* Lighter Charcoal */
    
    /* Fonts */
    --font-main: 'Nunito', sans-serif;
    --font-thai: 'Prompt', sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--color-bg-body);
    color: var(--color-text);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: var(--font-thai);
    margin-bottom: 1rem;
    color: #263238; /* Darker Blue Grey for headings */
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* --- Layout --- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Navbar --- */
.navbar {
    background-color: var(--color-bg-card);
    box-shadow: 0 4px 20px rgba(41, 182, 246, 0.15); /* Subtle blue shadow */
    position: sticky;
    top: 0;
    z-index: 100;
    border-top: 5px solid var(--color-primary);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-family: var(--font-thai);
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: 5px;
}

.logo-img {
    height: 40px; /* กำหนดความสูงตามที่คุณต้องการ */
    width: auto; /* รักษาอัตราส่วนของรูปภาพ */
    margin-right: 10px; /* อาจจะเพิ่มระยะห่างด้านขวาถ้าต้องการให้มีข้อความตามมา */
}

.heart-icon {
    color: var(--color-accent-pink);
}

.nav-menu {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-link {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text-light);
    transition: color 0.3s;
}

.nav-link:hover, .nav-link.active {
    color: var(--color-primary);
}

.btn-contact {
    background-color: var(--color-accent-pink);
    color: white !important;
    padding: 8px 20px;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(236, 64, 122, 0.3);
}

.btn-contact:hover {
    background-color: #d81b60;
    transform: translateY(-2px);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--color-text);
    transition: all 0.3s;
    border-radius: 3px;
}

/* --- Hero Section --- */
.hero {
    padding: 80px 0;
    /* Sunny Sky Gradient */
    background: linear-gradient(180deg, #E1F5FE 0%, #FFFFFF 100%);
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.hero-text {
    flex: 1;
}

.highlight-text {
    color: var(--color-accent-pink);
    position: relative;
    display: inline-block;
}

/* Add a fun underline to highlight */
.highlight-text::after {
    content: '';
    display: block;
    width: 100%;
    height: 8px;
    background-color: var(--color-secondary);
    opacity: 0.4;
    position: absolute;
    bottom: 5px;
    left: 0;
    z-index: -1;
    border-radius: 4px;
}

.hero h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.badge {
    display: inline-block;
    background-color: var(--color-secondary);
    color: #3e2723; /* Dark brown for contrast on yellow */
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 800;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.hero-image {
    flex: 1;
    position: relative;
}

.hero-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(41, 182, 246, 0.2);
    position: relative;
    z-index: 2;
    border: 5px solid white;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.6;
    z-index: 1;
}

.blob-1 { width: 300px; height: 300px; background: var(--color-primary); top: -20px; right: -20px; }
.blob-2 { width: 250px; height: 250px; background: var(--color-secondary); bottom: -40px; left: -40px; }

/* --- Buttons --- */
.cta-buttons {
    margin-top: 30px;
    display: flex;
    gap: 15px;
}

.btn {
    display: inline-block;
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 800;
    cursor: pointer;
    border: none;
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: center;
    font-family: var(--font-main);
    font-size: 1rem;
}

.btn:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.btn-primary {
    background-color: var(--color-secondary); /* Golden Yellow */
    color: #37474F; /* Dark Text */
}

.btn-outline {
    background-color: white;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}
.btn-outline:hover { 
    background-color: var(--color-primary); 
    color: white; 
}

.btn-outline-full {
    width: 100%;
    display: block;
    text-align: center;
    border: 2px solid var(--color-accent-green);
    color: var(--color-accent-green);
    padding: 12px;
    border-radius: 50px;
    font-weight: 700;
    background: transparent;
    transition: 0.3s;
}

.btn-outline-full:hover {
    background-color: var(--color-accent-green);
    color: white;
}

.link-text {
    color: var(--color-primary);
    font-weight: 800;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.link-text:hover { color: var(--color-accent-pink); }

/* --- Features/Content Section --- */
.features {
    background-color: white;
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.underline {
    width: 80px;
    height: 6px;
    background-color: var(--color-secondary);
    margin: 0 auto 20px;
    border-radius: 3px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: white;
    padding: 40px;
    border-radius: 25px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 2px solid #f0f0f0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
    box-shadow: 0 15px 30px rgba(41, 182, 246, 0.15);
}

.icon-box {
    font-size: 2.5rem;
    background: #E1F5FE; /* Very Light Blue */
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    color: var(--color-accent-pink);
}

/* --- General Page Headers --- */
.page-header {
    text-align: center;
    padding: 60px 0 40px;
}

.page-header-gradient {
    /* Sky Blue Gradient */
    background: linear-gradient(180deg, #E1F5FE 0%, #FFFFFF 100%);
    text-align: center;
    padding: 80px 0;
    margin-bottom: 40px;
    border-bottom: 1px solid #f0f0f0;
}

.content-section {
    padding-bottom: 80px;
}

/* --- Courses Layout --- */
.course-row {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 60px;
    background: white;
    border-radius: 25px;
    padding: 30px;
    border: 2px solid #f5f5f5;
    box-shadow: 0 10px 25px rgba(0,0,0,0.03);
    overflow: hidden;
}

.course-row.reverse {
    flex-direction: row-reverse;
}

.course-image {
    flex: 1;
}

.course-image img {
    border-radius: 20px;
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: transform 0.5s;
}

.course-row:hover .course-image img {
    transform: scale(1.03);
}

.course-details {
    flex: 1.2;
}

.course-subtitle {
    color: var(--color-accent-green);
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tag {
    display: inline-block;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.tag-blue { background: #E1F5FE; color: var(--color-primary); }
.tag-pink { background: #FCE4EC; color: var(--color-accent-pink); }

.course-list {
    margin: 25px 0;
}

.course-list li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
    color: var(--color-text);
}

.course-list li::before {
    content: '✔';
    color: var(--color-accent-green); /* Lime checkmarks */
    font-weight: bold;
    position: absolute;
    left: 0;
}

.divider {
    border: 0;
    height: 2px;
    background: #f0f0f0;
    margin: 60px 0;
    border-radius: 2px;
}

.action-area {
    margin-top: 20px;
}

/* --- Pricing Page --- */
.pricing-comparison {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.pricing-plan-card {
    background: white;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
    border: 2px solid transparent;
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}

.pricing-plan-card:hover {
    transform: translateY(-10px);
}

/* Default border for plan 1 */
.pricing-plan-card:first-child {
    border-color: #f0f0f0;
}

.pricing-plan-card.featured {
    border: 3px solid var(--color-secondary); /* Yellow border */
    position: relative;
}

/* Featured badge */
.pricing-plan-card.featured::before {
    content: 'Register Now';
    background: var(--color-secondary);
    color: #37474F;
    position: absolute;
    top: 0;
    right: 0;
    padding: 5px 15px;
    font-size: 0.75rem;
    font-weight: 800;
    border-bottom-left-radius: 15px;
}

.plan-header {
    background-color: #FAFAFA;
    padding: 40px 30px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.featured .plan-header {
    background-color: #FFF8E1; /* Light Yellow Bg */
}

.plan-header h3 {
    margin-bottom: 5px;
    color: var(--color-text);
    font-size: 1.5rem;
}

.plan-header p {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.plan-body {
    padding: 30px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #eee;
}

.price-item.highlight {
    background-color: #E1F5FE; /* Light Blue Highlight */
    padding: 20px;
    border-radius: 15px;
    border-bottom: none;
    flex-wrap: wrap;
}

.price-item .label {
    font-weight: 700;
    color: var(--color-text);
}

.price-item .amount {
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--color-primary);
}

.savings {
    width: 100%;
    text-align: right;
    font-size: 0.85rem;
    color: var(--color-accent-pink); /* Pink text for savings */
    font-weight: 800;
    margin-top: 5px;
}

.features-list {
    margin: 30px 0;
    text-align: left;
    flex-grow: 1;
}

.features-list li {
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: var(--color-text-light);
}

.pricing-note {
    text-align: center;
    margin-top: 50px;
    color: var(--color-text-light);
    font-size: 0.95rem;
    background: white;
    padding: 25px;
    border-radius: 15px;
    border: 1px solid #eee;
    width: 100%;
}

/* --- Footer --- */
footer {
    background-color: white;
    border-top: 5px solid var(--color-secondary); /* Yellow border top */
    padding: 60px 0 20px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 { color: var(--color-primary); font-size: 1.4rem; }
.footer-col h4 { margin-bottom: 15px; font-size: 1.1rem; color: var(--color-text); }
.footer-col p { font-size: 0.95rem; color: var(--color-text-light); margin-bottom: 10px; }
.footer-link { color: var(--color-primary); font-weight: 600; }

.footer-bottom {
    text-align: center;
    border-top: 1px solid #f0f0f0;
    padding-top: 25px;
    font-size: 0.85rem;
    color: #90A4AE;
}

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        gap: 0;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        padding: 20px 0;
    }

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

    .nav-link {
        display: block;
        padding: 15px;
    }
    
    .btn-contact {
        display: inline-block;
        margin-top: 10px;
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-image {
        margin-top: 40px;
    }

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

    .course-row, .course-row.reverse {
        flex-direction: column;
        text-align: center;
        padding: 25px;
    }

    .course-list li::before {
        position: relative;
        margin-right: 5px;
    }
    
    .course-list li {
        padding-left: 0;
    }

    .course-image img {
        height: 250px;
    }
}