/* --- Google Fonts Import (Kanit & Sarabun) --- */
@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;600;800&family=Sarabun:wght@300;400;600&display=swap');

/* --- CSS Variables & Reset --- */
:root {
    --tiger-orange: #FF6600;
    --tiger-dark: #222222;
    --tiger-light: #F8F9FA;
    --tiger-gray: #666666;
    --font-heading: 'Kanit', sans-serif;
    --font-body: 'Sarabun', sans-serif;
    --border-radius-lg: 20px;
    --border-radius-md: 12px;
    --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.08);
    --shadow-hover: 0 15px 40px rgba(255, 102, 0, 0.15);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-body);
    background-color: var(--tiger-light);
    color: var(--tiger-dark);
    line-height: 1.6;
    overflow-x: hidden; /* ป้องกันการเลื่อนซ้ายขวาในมือถือ */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--tiger-dark);
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
img { max-width: 100%; height: auto; display: block; }

/* --- Layout & Utility Classes --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-box {
    padding: 80px 0;
}

.text-center { text-align: center; }
.text-orange { color: var(--tiger-orange); }

.section-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}

/* Responsive Grid System (หัวใจสำคัญของการรองรับมือถือ) */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* ปรับอัตโนมัติ */
    gap: 30px;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-heading);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--tiger-orange);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.3);
}
.btn-primary:hover {
    background: #e65c00;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 102, 0, 0.4);
    color: white;
}

.btn-outline {
    border-color: var(--tiger-orange);
    color: var(--tiger-orange);
}
.btn-outline:hover {
    background: var(--tiger-orange);
    color: white;
}

/* --- Cards (ใช้ทั่วไป) --- */
.card {
    background: white;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: 0.3s;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}
.card-body { padding: 25px; }
.card-title { font-size: 1.4rem; margin-bottom: 15px; }

/* --- Mobile Responsive Adjustments --- */
@media (max-width: 768px) {
    .section-title { font-size: 2rem; }
    .section-box { padding: 50px 0; }
    .grid-container { grid-template-columns: 1fr; /* มือถือให้เหลือ 1 คอลัมน์ */ }
}