:root {
    --primary-color: #28B463;
    --secondary-color: #A7E9AF;
    --background-color: #F0F5F0;
    --footer-bg-color: #1E8449;
    --button-color: #28B463;
    --text-color: #2c3e50;
    --light-text-color: #ecf0f1;
    --heading-color: #28B463;

    --section-bg-1: #F8FAF8;
    --section-bg-2: #F2F7F2;
    --section-bg-3: #E9F1E9;
    --section-bg-4: #DCE7DC;

    --font-family-primary: 'Kanit', sans-serif;
    --font-size-base: 1.125rem; /* 18px */
    --line-height-base: 1.7;

    --border-radius-sm: 0.5rem;
    --border-radius-md: 0.75rem;

    --shadow-neomorphic-light: 4px 4px 8px rgba(167, 233, 175, 0.4), -4px -4px 8px rgba(255, 255, 255, 0.8);
    --shadow-neomorphic-dark: inset 3px 3px 6px rgba(40, 180, 99, 0.3), inset -3px -3px 6px rgba(255, 255, 255, 0.5);
    --shadow-card-inner: inset 3px 3px 6px rgba(0, 0, 0, 0.08), inset -3px -3px 6px rgba(255, 255, 255, 0.7);

    --transition-speed: 0.3s ease-in-out;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--text-color);
    background-color: var(--background-color);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-primary);
    color: var(--heading-color);
    line-height: 1.2;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    letter-spacing: 0.02em;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2.75rem;
    font-weight: 600;
}

h3 {
    font-size: 2.25rem;
    font-weight: 600;
}

h4 {
    font-size: 1.75rem;
    font-weight: 500;
}

p {
    margin-bottom: 1em;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--footer-bg-color);
    text-decoration: underline;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(240, 245, 240, 0.8); /* Semi-transparent background */
    backdrop-filter: blur(10px); /* Blur effect */
    padding: 1rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--border-radius-md);
    font-family: var(--font-family-primary);
    font-weight: 600;
    font-size: var(--font-size-base);
    cursor: pointer;
    transition: all var(--transition-speed);
    box-shadow: var(--shadow-neomorphic-light);
    color: var(--text-color);
    background-color: var(--background-color);
}

.btn-primary {
    background-color: var(--button-color);
    color: var(--light-text-color);
    box-shadow: 4px 4px 8px rgba(40, 180, 99, 0.4), -4px -4px 8px rgba(255, 255, 255, 0.8);
}

.btn-primary:hover {
    background-color: var(--footer-bg-color);
    box-shadow: inset 3px 3px 6px rgba(40, 180, 99, 0.3), inset -3px -3px 6px rgba(255, 255, 255, 0.5);
    transform: translateY(1px);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--text-color);
    box-shadow: 4px 4px 8px rgba(167, 233, 175, 0.4), -4px -4px 8px rgba(255, 255, 255, 0.8);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    box-shadow: inset 3px 3px 6px rgba(167, 233, 175, 0.3), inset -3px -3px 6px rgba(255, 255, 255, 0.5);
    transform: translateY(1px);
}

/* Cards */
.card {
    background-color: var(--background-color);
    border-radius: var(--border-radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-card-inner);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.1), inset -2px -2px 5px rgba(255, 255, 255, 0.8);
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="password"],
textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: none;
    border-radius: var(--border-radius-sm);
    background-color: var(--background-color);
    box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.1), inset -2px -2px 5px rgba(255, 255, 255, 0.7);
    font-family: var(--font-family-primary);
    font-size: 1rem;
    color: var(--text-color);
    transition: box-shadow var(--transition-speed);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus {
    outline: none;
    box-shadow: inset 1px 1px 3px rgba(40, 180, 99, 0.2), inset -1px -1px 3px rgba(255, 255, 255, 0.6);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

/* Section Backgrounds */
.section-bg-1 {
    background-color: var(--section-bg-1);
}

.section-bg-2 {
    background-color: var(--section-bg-2);
}

.section-bg-3 {
    background-color: var(--section-bg-3);
}

.section-bg-4 {
    background-color: var(--section-bg-4);
}

/* Footer */
.footer {
    background-color: var(--footer-bg-color);
    color: var(--light-text-color);
    padding: 3rem 0;
    text-align: center;
    font-size: 0.9rem;
}

.footer a {
    color: var(--secondary-color);
}

.footer a:hover {
    color: var(--primary-color);
}

/* Icons (Example, assuming inline SVG or icon font) */
.icon {
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    vertical-align: middle;
    /* Example gradient for icons */
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--primary-color); /* Fallback */
}

/* Utility for spacing (can be used with Tailwind's margin/padding utilities) */
.py-section {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.pb-section {
    padding-bottom: 4rem;
}

@media (min-width: 768px) {
    .py-section {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }
    .pb-section {
        padding-bottom: 6rem;
    }
}

/* Subtle fade-in animation for elements on scroll (requires JS to add class) */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Specific styling for the Thai language to ensure proper rendering if needed */
body[lang="th"] {
    /* No specific overrides needed for Kanit font, it supports Thai */
}


/* Cookie Banner Additional Styles for Tailwind */
.cookie-banner-hover-effect:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

@media (prefers-reduced-motion: reduce) {
    .cookie-banner-hover-effect:hover {
        transform: none;
    }
}