:root { --font-heading: 'Playfair Display', serif; --font-body: 'Sarabun', sans-serif; --readable-gold: #B8860B; }

/* General & Animation */
.homepage-palace { font-family: var(--font-body); }
.homepage-palace section { padding: 80px 0; overflow: hidden; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-title { text-align: center; font-family: var(--font-heading); font-size: 3rem; font-weight: 700; margin-bottom: 50px; color: var(--readable-gold); position: relative; }
.section-title::after { content: ''; display: block; width: 80px; height: 2px; background: var(--primary-gold); margin: 20px auto 0; }
.animate-on-scroll { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.animate-on-scroll.is-visible { opacity: 1; transform: translateY(0); }

/* Hero Section */
.hero-section { height: 100vh; padding: 0; position: relative; display: flex; align-items: center; justify-content: center; text-align: center; }
.hero-section .slider-container, .hero-section .slide, .hero-section .slider-track-container, .hero-section .slider-track { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.hero-section .slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0.3)); }
.hero-text { position: relative; z-index: 5; color: #fff; text-shadow: 0 2px 15px rgba(0,0,0,0.6); }
.hero-text h1 { font-family: var(--font-heading); font-size: 5rem; font-weight: 700; margin-bottom: 1rem; }
.hero-text p { font-size: 1.5rem; margin-bottom: 2.5rem; opacity: 0.9; }
.hero-button { background: var(--primary-gold); color: var(--text-dark); padding: 18px 40px; text-decoration: none; border-radius: 5px; font-size: 1.2rem; font-weight: bold; transition: all 0.3s ease; box-shadow: 0 4px 25px rgba(255, 215, 0, 0.4); }
.hero-button:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(255, 215, 0, 0.5); }
.hero-section .slider-dots { bottom: 30px; }
.hero-section .dot { background-color: rgba(255,255,255,0.5); border: 1px solid #fff; width: 14px; height: 14px; }
.hero-section .dot.current-slide { background-color: var(--primary-gold); border-color: var(--primary-gold); }

/* Intro Section */
.intro-section { background: #fff; }
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.intro-text .section-title { text-align: left; margin-bottom: 20px; }
.intro-text .section-title::after { margin: 20px 0 0; }
.intro-text p { font-size: 1.1rem; line-height: 1.9; margin-bottom: 2rem; }
.btn-secondary { background: transparent; border: 2px solid var(--readable-gold); color: var(--readable-gold); padding: 12px 30px; text-decoration: none; border-radius: 5px; font-weight: bold; transition: all 0.3s; }
.btn-secondary:hover { background: var(--readable-gold); color: #fff; }
.intro-image img { width: 100%; height: auto; border-radius: 10px; box-shadow: -20px 20px 0px var(--primary-red); }

/* Features Section */
.features-section { background: linear-gradient(to bottom, rgba(192,0,0,1), rgba(160,0,0,1)); color: #fff; }
.features-section .section-title { color: #fff; }
.features-section .section-title::after { background: var(--primary-gold); }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; text-align: center; }
.feature-icon { font-size: 3rem; color: var(--primary-gold); margin-bottom: 1rem; }
.feature-card h3 { font-family: var(--font-heading); font-size: 1.8rem; margin-bottom: 1rem; }
.feature-card p { opacity: 0.9; }

/* Product List Section */
.product-list-section { background: #f9f9f9; }
.home-product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.product-card-small { background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 5px 20px rgba(0,0,0,0.07); transition: all 0.4s ease; border-top: 4px solid transparent; }
.product-card-small:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.12); border-top-color: var(--primary-red); }
.product-card-small a { text-decoration: none; color: inherit; }
.product-image-wrapper { overflow: hidden; }
.product-card-small img { width: 100%; height: 220px; object-fit: cover; transition: transform 0.4s ease; }
.product-card-small:hover img { transform: scale(1.05); }
.product-info-small { padding: 25px; }
.product-info-small h3 { font-family: var(--font-heading); font-size: 1.4rem; margin-bottom: 10px; color: var(--primary-red); }
.btn-view-small { font-size: 1rem; color: var(--primary-red); font-weight: bold; transition: color 0.3s; }

/* News Slider Section */
.news-slider-section { background: #fff; }
.news-scroll-container { display: flex; overflow-x: auto; gap: 30px; padding: 10px 0 20px; scrollbar-width: none; /* Firefox */ }
.news-scroll-container::-webkit-scrollbar { display: none; /* Chrome, Safari */ }
.news-card-small { flex: 0 0 320px; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 5px 20px rgba(0,0,0,0.07); transition: all 0.4s ease; border-bottom: 4px solid transparent; }
.news-card-small:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.12); border-bottom-color: var(--primary-gold); }
.news-card-small a { text-decoration: none; color: inherit; }
.news-card-small img { width: 100%; height: 200px; object-fit: cover; }
.news-info-small { padding: 20px; }
.news-info-small span { font-size: 0.8rem; color: #666; }
.news-info-small h4 { font-family: var(--font-heading); font-size: 1.2rem; margin-top: 5px; line-height: 1.4; color: var(--primary-red); }

/* Responsive */
@media (max-width: 992px) {
    .intro-grid, .features-grid { grid-template-columns: 1fr; }
    .home-product-grid { grid-template-columns: repeat(2, 1fr); }
    .intro-image { margin-top: 40px; }
}
@media (max-width: 768px) {
    .hero-text h1 { font-size: 3rem; }
    .home-product-grid { grid-template-columns: 1fr; }
}
