:root {
    --primary: #0d47a1;
    --primary-dark: #0a3580;
    --primary-light: #1565c0;
    --secondary: #1e88e5;
    --accent: #ffd600;
    --accent-dark: #ffab00;
    --bg-dark: #0a0e1a;
    --bg-card: #111827;
    --bg-card-hover: #1a2332;
    --bg-section: #0d1117;
    --text-white: #f0f0f0;
    --text-gray: #9ca3af;
    --text-muted: #6b7280;
    --border: #1f2937;
    --success: #10b981;
    --danger: #ef4444;
    --gold: #ffd600;
    --gold-dark: #c7a400;
    --shadow: 0 4px 24px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 48px rgba(0,0,0,0.6);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: 'Prompt', sans-serif;
    background: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }

a { color: var(--secondary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent); }

img { max-width: 100%; height: auto; display: block; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

strong { color: var(--accent); font-weight: 700; }

/* Header */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(31, 41, 55, 0.5);
    transition: var(--transition);
}
.site-header.scrolled { background: rgba(10, 14, 26, 0.98); box-shadow: var(--shadow); }
.site-header.hidden { transform: translateY(-100%); }

.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 72px;
}

.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-icon {
    font-size: 28px; font-weight: 900; letter-spacing: 2px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

.nav-list {
    display: flex; align-items: center; gap: 4px; list-style: none;
}
.nav-link {
    padding: 8px 16px; border-radius: var(--radius-sm);
    color: var(--text-gray); font-size: 14px; font-weight: 500;
    transition: var(--transition); white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
    color: var(--text-white); background: rgba(30, 136, 229, 0.15);
}
.nav-link.active { color: var(--accent); }

.nav-cta { margin-left: 4px; }

.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 10px 24px; border-radius: var(--radius-sm);
    font-family: inherit; font-size: 14px; font-weight: 600;
    cursor: pointer; border: none; transition: var(--transition);
    text-decoration: none; white-space: nowrap;
}
.btn-accent {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #000;
}
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 4px 20px rgba(255, 214, 0, 0.4); color: #000; }
.btn-outline {
    background: transparent; border: 1px solid var(--secondary);
    color: var(--secondary);
}
.btn-outline:hover { background: var(--secondary); color: #fff; }
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 4px 20px rgba(13, 71, 161, 0.5); }
.btn-lg { padding: 14px 36px; font-size: 16px; border-radius: var(--radius); }

/* Hamburger */
.hamburger {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 8px;
    z-index: 1001;
}
.hamburger span {
    width: 26px; height: 2px; background: var(--text-white);
    transition: var(--transition); border-radius: 2px;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Hero */
.hero {
    position: relative; min-height: 600px; display: flex; align-items: center;
    overflow: hidden; margin-top: 72px;
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
    position: absolute; inset: 0;
    opacity: 0; transition: opacity 1s ease;
}
.hero-slide.active { opacity: 1; }
.hero-slide img {
    width: 100%; height: 100%; object-fit: cover;
}
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(10,14,26,0.92) 0%, rgba(13,71,161,0.6) 100%);
}
.hero-content {
    position: relative; z-index: 2; text-align: center;
    max-width: 800px; margin: 0 auto; padding: 60px 20px;
}
.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 900;
    line-height: 1.2; margin-bottom: 20px;
}
.hero-content h1 span { color: var(--accent); }
.hero-content p {
    font-size: clamp(1rem, 2vw, 1.2rem); color: var(--text-gray);
    margin-bottom: 32px; line-height: 1.8;
}
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Sections */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-section); }
.section-title {
    font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800;
    text-align: center; margin-bottom: 16px; line-height: 1.3;
}
.section-subtitle {
    text-align: center; color: var(--text-gray);
    font-size: 1.05rem; margin-bottom: 48px; max-width: 700px; margin-left: auto; margin-right: auto;
}

/* Cards Grid */
.cards-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.card {
    background: var(--bg-card); border-radius: var(--radius-lg);
    overflow: hidden; border: 1px solid var(--border);
    transition: var(--transition);
}
.card:hover { transform: translateY(-4px); border-color: var(--primary-light); box-shadow: var(--shadow-lg); }
.card-img { position: relative; overflow: hidden; aspect-ratio: 16/9; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: 24px; }
.card-body h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 12px; }
.card-body p { color: var(--text-gray); font-size: 0.95rem; line-height: 1.7; }
.card-footer { padding: 0 24px 24px; }
.card-badge {
    display: inline-block; padding: 4px 12px; border-radius: 20px;
    font-size: 12px; font-weight: 600; color: #fff; margin-bottom: 12px;
}

/* Features */
.features-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}
.feature-card {
    background: var(--bg-card); border-radius: var(--radius-lg);
    padding: 32px; text-align: center; border: 1px solid var(--border);
    transition: var(--transition);
}
.feature-card:hover { border-color: var(--primary-light); transform: translateY(-4px); }
.feature-icon {
    font-size: 48px; margin-bottom: 16px; display: block;
}
.feature-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p { color: var(--text-gray); font-size: 0.9rem; }

/* Promo Banner */
.promo-banner {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-lg); padding: 40px;
    border: 1px solid var(--primary); position: relative; overflow: hidden;
}
.promo-banner::before {
    content: ''; position: absolute; top: -50%; right: -10%;
    width: 300px; height: 300px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255,214,0,0.1), transparent);
}
.promo-date { color: var(--text-gray); font-size: 0.9rem; margin-bottom: 8px; }
.promo-badge {
    display: inline-block; padding: 6px 16px; border-radius: 20px;
    font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 16px;
}
.promo-banner h3 { font-size: 1.6rem; font-weight: 800; margin-bottom: 16px; }
.promo-banner p { color: var(--text-gray); font-size: 1rem; line-height: 1.8; max-width: 600px; }

/* Reviews */
.reviews-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}
.review-card {
    background: var(--bg-card); border-radius: var(--radius-lg);
    padding: 28px; border: 1px solid var(--border);
}
.review-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.review-avatar {
    width: 48px; height: 48px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 18px; color: #fff;
}
.review-name { font-weight: 600; font-size: 1rem; }
.stars { color: var(--accent); font-size: 18px; letter-spacing: 2px; }
.review-text { color: var(--text-gray); font-size: 0.95rem; line-height: 1.7; }

/* Article Content */
.article-hero {
    position: relative; margin-top: 72px; height: 400px; overflow: hidden;
}
.article-hero img { width: 100%; height: 100%; object-fit: cover; }
.article-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(10,14,26,0.95), rgba(10,14,26,0.3));
    display: flex; align-items: flex-end;
}
.article-hero-content { padding: 40px 20px; max-width: 1200px; margin: 0 auto; width: 100%; }
.article-hero-content h1 { font-size: clamp(1.6rem, 4vw, 2.8rem); font-weight: 900; margin-bottom: 12px; }

.breadcrumb {
    display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
    font-size: 14px; color: var(--text-muted); margin-bottom: 12px;
}
.breadcrumb a { color: var(--secondary); }
.breadcrumb span { color: var(--text-muted); }

.article-content {
    max-width: 900px; margin: 0 auto; padding: 48px 20px;
}
.article-content h2 {
    font-size: 1.8rem; font-weight: 800; margin: 48px 0 20px;
    padding-left: 16px; border-left: 4px solid var(--accent);
}
.article-content h3 {
    font-size: 1.3rem; font-weight: 700; margin: 32px 0 16px;
    color: var(--secondary);
}
.article-content p {
    margin-bottom: 20px; line-height: 1.9; color: var(--text-gray);
    font-size: 1.02rem;
}
.article-content ul, .article-content ol {
    margin: 16px 0 24px 24px; color: var(--text-gray);
}
.article-content li { margin-bottom: 8px; line-height: 1.7; }
.article-content img {
    border-radius: var(--radius-lg); margin: 32px 0;
    box-shadow: var(--shadow);
}

.article-sidebar-links {
    background: var(--bg-card); border-radius: var(--radius-lg);
    padding: 24px; margin: 32px 0; border: 1px solid var(--border);
}
.article-sidebar-links h3 {
    font-size: 1.1rem; margin: 0 0 16px; border: none; padding: 0;
    color: var(--text-white);
}
.article-sidebar-links ul { list-style: none; margin: 0; padding: 0; }
.article-sidebar-links li { margin-bottom: 8px; }
.article-sidebar-links a {
    display: block; padding: 10px 16px; border-radius: var(--radius-sm);
    background: rgba(30, 136, 229, 0.1); transition: var(--transition);
}
.article-sidebar-links a:hover { background: rgba(30, 136, 229, 0.2); }

.content-image-float {
    float: right; width: 45%; margin: 0 0 20px 24px;
    border-radius: var(--radius-lg); box-shadow: var(--shadow);
}

.toc {
    background: var(--bg-card); border-radius: var(--radius-lg);
    padding: 24px; margin-bottom: 40px; border: 1px solid var(--border);
}
.toc h3 { font-size: 1rem; margin-bottom: 12px; color: var(--accent); }
.toc ul { list-style: none; padding: 0; margin: 0; }
.toc li { margin-bottom: 6px; }
.toc a { color: var(--text-gray); font-size: 0.9rem; }
.toc a:hover { color: var(--accent); }

/* Forms */
.form-section { margin-top: 72px; padding: 80px 0; }
.form-container {
    max-width: 500px; margin: 0 auto;
    background: var(--bg-card); border-radius: var(--radius-lg);
    padding: 48px; border: 1px solid var(--border);
}
.form-container h1 {
    font-size: 1.8rem; font-weight: 800; text-align: center; margin-bottom: 8px;
}
.form-container .form-subtitle {
    text-align: center; color: var(--text-gray); margin-bottom: 32px; font-size: 0.95rem;
}
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block; margin-bottom: 6px; font-weight: 500;
    font-size: 0.9rem; color: var(--text-gray);
}
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 12px 16px; border-radius: var(--radius-sm);
    border: 1px solid var(--border); background: var(--bg-dark);
    color: var(--text-white); font-family: inherit; font-size: 1rem;
    transition: var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none; border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.2);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-btn { width: 100%; padding: 14px; font-size: 1rem; }
.form-footer { text-align: center; margin-top: 20px; color: var(--text-gray); font-size: 0.9rem; }
.form-footer a { color: var(--accent); }

/* Contact */
.contact-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
}
.contact-info h2 { font-size: 1.4rem; font-weight: 700; margin-bottom: 24px; }
.contact-item {
    display: flex; gap: 16px; align-items: flex-start;
    margin-bottom: 24px; padding: 20px;
    background: var(--bg-card); border-radius: var(--radius);
    border: 1px solid var(--border);
}
.contact-item-icon { font-size: 28px; }
.contact-item h3 { font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
.contact-item p { color: var(--text-gray); font-size: 0.9rem; }

/* Promotions Page */
.promo-grid { display: grid; gap: 24px; }
.promo-card {
    background: var(--bg-card); border-radius: var(--radius-lg);
    padding: 32px; border: 1px solid var(--border);
    display: grid; grid-template-columns: auto 1fr; gap: 24px;
    transition: var(--transition);
}
.promo-card:hover { border-color: var(--primary-light); }
.promo-day {
    width: 80px; text-align: center; padding: 16px;
    background: var(--bg-dark); border-radius: var(--radius);
}
.promo-day-name { font-size: 14px; color: var(--text-gray); }
.promo-day-badge { margin-top: 8px; }
.promo-card-body h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 12px; }
.promo-card-body p { color: var(--text-gray); line-height: 1.8; }
.promo-today { border-color: var(--accent); position: relative; }
.promo-today::after {
    content: 'วันนี้'; position: absolute; top: -12px; right: 20px;
    background: var(--accent); color: #000; padding: 4px 16px;
    border-radius: 20px; font-size: 12px; font-weight: 700;
}

/* Fade In Animation */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.6s, transform 0.6s; }
.fade-in.visible { opacity: 1; transform: none; }

/* Quick Stats */
.stats-bar {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
    background: var(--bg-card); border-radius: var(--radius-lg);
    overflow: hidden; border: 1px solid var(--border); margin-top: -48px;
    position: relative; z-index: 10;
}
.stat-item {
    text-align: center; padding: 28px 16px;
    border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-number { font-size: 2rem; font-weight: 900; color: var(--accent); display: block; }
.stat-label { font-size: 0.85rem; color: var(--text-gray); margin-top: 4px; }

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    padding: 64px 0; text-align: center;
}
.cta-section h2 { font-size: 2rem; font-weight: 800; margin-bottom: 16px; }
.cta-section p { color: rgba(255,255,255,0.8); margin-bottom: 32px; font-size: 1.1rem; }

/* Internal Link Box */
.internal-links-box {
    background: linear-gradient(135deg, rgba(13,71,161,0.2), rgba(10,14,26,0.8));
    border: 1px solid var(--primary); border-radius: var(--radius-lg);
    padding: 32px; margin: 40px 0;
}
.internal-links-box h3 { font-size: 1.2rem; margin-bottom: 16px; }
.internal-links-list {
    display: flex; flex-wrap: wrap; gap: 12px; list-style: none;
}
.internal-links-list a {
    display: inline-block; padding: 8px 20px;
    background: rgba(30,136,229,0.15); border: 1px solid rgba(30,136,229,0.3);
    border-radius: 24px; font-size: 0.9rem; color: var(--secondary);
}
.internal-links-list a:hover { background: var(--secondary); color: #fff; }

/* FAQ Section */
.faq-item {
    background: var(--bg-card); border-radius: var(--radius);
    margin-bottom: 16px; border: 1px solid var(--border);
    overflow: hidden;
}
.faq-question {
    padding: 20px 24px; font-weight: 600; font-size: 1rem;
    cursor: pointer; display: flex; justify-content: space-between;
    align-items: center;
}
.faq-question::after { content: '+'; font-size: 1.4rem; color: var(--accent); }
.faq-answer {
    padding: 0 24px 20px; color: var(--text-gray);
    line-height: 1.8; font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .stats-bar { grid-template-columns: repeat(2, 1fr); }
    .stat-item:nth-child(2) { border-right: none; }
    .contact-grid { grid-template-columns: 1fr; }
    .content-image-float { width: 100%; float: none; margin: 20px 0; }
}

@media (max-width: 768px) {
    .hamburger { display: flex; }

    .main-nav {
        position: fixed; top: 0; right: -100%; width: 80%; max-width: 360px;
        height: 100vh; background: var(--bg-card);
        padding: 80px 24px 24px; transition: right 0.3s ease;
        border-left: 1px solid var(--border);
        overflow-y: auto;
    }
    .main-nav.open { right: 0; }
    .nav-list { flex-direction: column; gap: 4px; }
    .nav-link { padding: 12px 16px; width: 100%; font-size: 15px; }
    .nav-cta { margin-left: 0; margin-top: 8px; }
    .nav-cta .btn { width: 100%; justify-content: center; }

    .hero { min-height: 500px; }
    .hero-content h1 { font-size: 1.8rem; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .hero-buttons .btn { width: 100%; max-width: 280px; }

    .section { padding: 48px 0; }
    .section-title { font-size: 1.4rem; }
    .stats-bar { grid-template-columns: repeat(2, 1fr); margin-top: -24px; }
    .stat-number { font-size: 1.5rem; }

    .form-container { padding: 32px 24px; margin: 0 16px; }

    .promo-card { grid-template-columns: 1fr; }
    .promo-day { width: 100%; display: flex; align-items: center; gap: 16px; padding: 12px; }

    .article-hero { height: 280px; }
    .article-content { padding: 32px 16px; }
    .article-content h2 { font-size: 1.4rem; }

    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 480px) {
    .stats-bar { grid-template-columns: 1fr; }
    .stat-item { border-right: none; border-bottom: 1px solid var(--border); padding: 20px; }
    .stat-item:last-child { border-bottom: none; }
}

/* Footer */
.site-footer {
    background: var(--bg-section); padding: 64px 0 24px;
    border-top: 1px solid var(--border);
}
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px; margin-bottom: 40px;
}
.footer-brand p { color: var(--text-gray); font-size: 0.9rem; margin-top: 16px; line-height: 1.7; }
.footer-links h3 { font-size: 1rem; font-weight: 700; margin-bottom: 16px; color: var(--text-white); }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: var(--text-gray); font-size: 0.9rem; }
.footer-links a:hover { color: var(--accent); }
.footer-contact h3 { font-size: 1rem; font-weight: 700; margin-bottom: 16px; }
.footer-contact p { color: var(--text-gray); font-size: 0.9rem; margin-bottom: 8px; }
.footer-bottom {
    text-align: center; padding-top: 24px;
    border-top: 1px solid var(--border);
}
.footer-bottom p { color: var(--text-muted); font-size: 0.8rem; }
.footer-bottom a { color: var(--text-gray); }
.footer-logo { font-size: 32px; }
