/* Import Font: Prompt สำหรับภาษาไทยและอังกฤษที่ดูทันสมัย */
@import url('https://fonts.googleapis.com/css2?family=Prompt:wght@300;400;500;600;700&display=swap');

:root {
    /* Theme: Pandan & Coconut Milk (เขียวใบเตย & กะทิ) */
    --primary-color: #88b04b;      /* สีเขียวใบเตย (Greenery) */
    --primary-dark: #6a8a3a;       /* สีเขียวเข้มสำหรับ Hover */
    --secondary-color: #5d4037;    /* สีน้ำตาล (น้ำตาลมะพร้าว/ไม้) สำหรับ Text */
    --accent-color: #fff9c4;       /* สีเหลืองนวล/ครีม */
    --bg-light: #fdfefd;           /* สีพื้นหลังเขียวจางๆ เกือบขาว */
    --bg-cream: #faf9f6;           /* สีพื้นหลังครีม */
    --white-color: #ffffff;
    --font-style: "Prompt", sans-serif;
}

/* Global Reset */
body {
    font-family: var(--font-style);
    color: var(--secondary-color);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Navbar Customization */
.ls-2 {
    letter-spacing: 2px;
}
.text-primary-sweet {
    color: var(--primary-color);
}
.nav-link {
    color: var(--secondary-color) !important;
    position: relative;
    font-weight: 500;
}
.nav-link:hover, .nav-link.active {
    color: var(--primary-color) !important;
    font-weight: 600;
}
/* ขีดเส้นใต้เวลา Hover เป็นสีเขียว */
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 5px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease-in-out;
}
.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    /* เปลี่ยนรูปพื้นหลังเป็นโทนขนมหวาน/ใบตอง */
    background-image: url('https://img.wongnai.com/p/l/2017/06/26/16a9f6f7144847fc97d9900e6fb668c4.jpg'); 
    background-size: cover;
    background-position: center;
    height: 85vh;
    display: flex;
    align-items: center;
    position: relative;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient สีเขียวจางๆ */
    background: linear-gradient(to right, rgba(0, 0, 0, 0.4), rgba(136, 176, 75, 0.2));
}
.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Buttons */
.btn-custom {
    background-color: var(--primary-color);
    color: white;
    border: none;
    transition: all 0.3s;
}
.btn-custom:hover {
    background-color: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(136, 176, 75, 0.4);
}
.btn-outline-custom {
    border: 2px solid white;
    color: white;
    background: transparent;
}
.btn-outline-custom:hover {
    background: white;
    color: var(--primary-color);
}

/* --- Category Cards (ละมุนขึ้น) --- */
.cat-card {
    position: relative;
    overflow: hidden;
    border-radius: 15px; /* มุมมน */
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: all 0.3s ease;
}
.cat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(136, 176, 75, 0.2); /* เงาสีเขียว */
}

.cat-card img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: 100%;
    height: 350px; /* ลดความสูงลงเล็กน้อย */
    object-fit: cover;
    display: block;
}
/* Zoom Effect */
.cat-card:hover img {
    transform: scale(1.1);
}

/* Overlay ป้ายชื่อหมวดหมู่ */
.cat-overlay {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    padding: 10px 25px;
    color: var(--secondary-color);
    font-weight: 600;
    border-radius: 30px;
    letter-spacing: 1px;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    min-width: 180px;
    text-align: center;
}

/* News/Blog Section */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}
.section-header h2 {
    font-weight: 700;
    color: var(--secondary-color);
    letter-spacing: 1px;
    font-size: 2rem;
}
.section-header .line {
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 15px auto;
    border-radius: 2px;
}

/* --- News Cards --- */
.news-card {
    border: none;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    overflow: hidden;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

/* รูปภาพข่าว */
.news-card .card-img-top {
    height: 240px;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.news-card:hover .card-img-top {
    transform: scale(1.05);
}

.news-card .card-body {
    padding: 1.5rem !important; 
}

/* วันที่ข่าว */
.news-date {
    font-size: 0.8rem;
    color: var(--primary-color); /* สีเขียว */
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

/* หัวข้อข่าว */
.news-card .card-title a {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 1.15rem;
    transition: color 0.3s;
    text-decoration: none;
    background: none;
}
.news-card .card-title a:hover {
    color: var(--primary-color);
}

/* Footer Customization */
.footer-color {
    background-color: #4a5d3f !important; /* เขียวเข้มตุ่นๆ แบบใบไม้แก่ */
    color: #e0e0e0;
}
.footer-color h5 {
    color: #fff;
    font-weight: 600;
    margin-bottom: 25px;
}
.footer-color a {
    color: #cbd5e1;
    transition: color 0.2s;
}
.footer-color a:hover {
    color: var(--primary-color); /* Hover แล้วเป็นสีเขียวอ่อน */
}