:root {
    --gold: #FFD700;
    --gold-dark: #DAA520;
    --gold-light: #FFF3B0;
    --dark: #0d0d1a;
    --dark-2: #1a1a2e;
    --dark-3: #16213e;
    --dark-4: #0f3460;
    --accent: #e94560;
    --white: #f0f0f0;
    --gray: #a0a0b0;
    --font-main: 'Sarabun', sans-serif;
    --max-width: 1200px;
    --topbar-height: 40px;
    --header-height: 70px;
    --radius: 12px;
    --shadow: 0 4px 24px rgba(0,0,0,0.3);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background: var(--dark);
    color: var(--white);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body.nav-open {
    overflow: hidden;
}

a {
    color: var(--gold);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--gold-light);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* === TOPBAR === */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    height: var(--topbar-height);
    background: linear-gradient(90deg, #b8860b 0%, #ffd700 50%, #b8860b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.topbar-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 20px;
    max-width: var(--max-width);
    width: 100%;
    justify-content: center;
}

.topbar-text {
    color: var(--dark);
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.topbar-text strong {
    color: var(--dark);
}

.topbar-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--dark);
    color: var(--gold);
    padding: 4px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: all var(--transition);
    letter-spacing: 0.5px;
}

.topbar-link:hover {
    background: var(--dark-2);
    color: var(--gold-light);
    transform: scale(1.05);
}

@media (max-width: 600px) {
    .topbar-text {
        font-size: 0.75rem;
    }
    .topbar-link {
        font-size: 0.72rem;
        padding: 3px 12px;
    }
}

/* === HEADER === */
.site-header {
    position: fixed;
    top: var(--topbar-height);
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(13, 13, 26, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 215, 0, 0.15);
    height: var(--header-height);
    transition: all var(--transition);
}

.site-header.scrolled {
    background: rgba(13, 13, 26, 0.98);
    box-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gold);
    letter-spacing: 2px;
}

.logo img {
    width: 40px;
    height: 40px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}

.desktop-nav a {
    color: var(--white);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 0;
    position: relative;
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width var(--transition);
}

.desktop-nav a:hover,
.desktop-nav a.active {
    color: var(--gold);
}

.desktop-nav a:hover::after,
.desktop-nav a.active::after {
    width: 100%;
}

/* === HAMBURGER === */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1100;
    padding: 4px;
}

.hamburger-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--gold);
    border-radius: 2px;
    transition: all var(--transition);
}

.hamburger-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* === MOBILE NAV === */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 1000;
    opacity: 0;
    transition: opacity var(--transition);
}

.nav-overlay.show {
    display: block;
    opacity: 1;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background: var(--dark-2);
    z-index: 1050;
    padding: calc(90px + var(--topbar-height)) 30px 30px;
    transition: right var(--transition);
    overflow-y: auto;
    border-left: 1px solid rgba(255, 215, 0, 0.2);
}

.mobile-nav.open {
    right: 0;
}

.mobile-nav ul {
    list-style: none;
}

.mobile-nav li {
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.mobile-nav a {
    display: block;
    padding: 14px 0;
    color: var(--white);
    font-weight: 600;
    font-size: 1.05rem;
}

.mobile-nav a:hover,
.mobile-nav a.active {
    color: var(--gold);
}

@media (max-width: 900px) {
    .desktop-nav { display: none; }
    .hamburger-btn { display: flex; }
    .mobile-nav { display: block; }
}

/* === HERO === */
.hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: calc(120px + var(--topbar-height)) 20px 60px;
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-3) 50%, var(--dark) 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 40%, rgba(255,215,0,0.06) 0%, transparent 50%),
                radial-gradient(circle at 70% 60%, rgba(233,69,96,0.04) 0%, transparent 50%);
    animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-2%, -2%) rotate(3deg); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.15rem;
    color: var(--gray);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero .cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--transition);
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--dark);
    box-shadow: 0 4px 15px rgba(255,215,0,0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255,215,0,0.5);
    color: var(--dark);
}

.btn-outline {
    background: transparent;
    color: var(--gold);
    border: 2px solid var(--gold);
}

.btn-outline:hover {
    background: var(--gold);
    color: var(--dark);
    transform: translateY(-2px);
}

/* === SECTIONS === */
.section {
    padding: 70px 0;
}

.section-alt {
    background: var(--dark-2);
}

.section-title {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 16px;
    color: var(--gold);
    line-height: 1.4;
}

.section-subtitle {
    text-align: center;
    color: var(--gray);
    font-size: 1.05rem;
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* === CONTENT === */
.content-area {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.content-area h2 {
    font-size: clamp(1.4rem, 2.5vw, 1.9rem);
    color: var(--gold);
    margin: 50px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255,215,0,0.2);
    line-height: 1.4;
}

.content-area h3 {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--gold-light);
    margin: 35px 0 15px;
}

.content-area p {
    margin-bottom: 20px;
    font-size: 1.05rem;
    color: rgba(240,240,240,0.9);
}

.content-area ul, .content-area ol {
    margin: 15px 0 25px 25px;
}

.content-area li {
    margin-bottom: 8px;
    color: rgba(240,240,240,0.85);
}

.content-area strong {
    color: var(--gold-light);
    font-weight: 700;
}

/* === BANNER === */
.banner-wrap {
    margin: 30px 0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255,215,0,0.1);
}

.banner-wrap img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.banner-wrap:hover img {
    transform: scale(1.02);
}

/* === GRID CARDS === */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.card {
    background: var(--dark-2);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(255,215,0,0.08);
    transition: all var(--transition);
}

.card:hover {
    transform: translateY(-4px);
    border-color: rgba(255,215,0,0.25);
    box-shadow: 0 8px 32px rgba(255,215,0,0.1);
}

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: 24px;
}

.card-body h3 {
    font-size: 1.2rem;
    color: var(--gold);
    margin-bottom: 10px;
}

.card-body p {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.card-body .btn {
    font-size: 0.85rem;
    padding: 10px 24px;
}

/* === FEATURES === */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 24px;
}

.feature-item {
    background: var(--dark-3);
    padding: 30px 24px;
    border-radius: var(--radius);
    text-align: center;
    border: 1px solid rgba(255,215,0,0.08);
    transition: all var(--transition);
}

.feature-item:hover {
    border-color: rgba(255,215,0,0.3);
    transform: translateY(-3px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.feature-item h3 {
    color: var(--gold);
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.feature-item p {
    color: var(--gray);
    font-size: 0.92rem;
}

/* === REVIEWS === */
.reviews-section {
    padding: 60px 0;
}

.reviews-section h2 {
    text-align: center;
    font-size: 1.8rem;
    color: var(--gold);
    margin-bottom: 40px;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.review-card {
    background: var(--dark-3);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid rgba(255,215,0,0.1);
    transition: all var(--transition);
}

.review-card:hover {
    border-color: rgba(255,215,0,0.3);
}

.stars {
    margin-bottom: 12px;
}

.star {
    font-size: 1.2rem;
    color: #444;
}

.star.filled {
    color: var(--gold);
}

.review-text {
    font-style: italic;
    color: rgba(240,240,240,0.85);
    margin-bottom: 12px;
    font-size: 0.95rem;
    line-height: 1.7;
}

.review-author {
    color: var(--gold);
    font-weight: 700;
    font-size: 0.9rem;
}

/* === TABLE === */
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    border-radius: var(--radius);
    overflow: hidden;
}

.info-table th,
.info-table td {
    padding: 14px 20px;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.info-table th {
    background: var(--dark-3);
    color: var(--gold);
    font-weight: 700;
    font-size: 0.95rem;
}

.info-table td {
    background: var(--dark-2);
    color: var(--white);
    font-size: 0.95rem;
}

.info-table tr:hover td {
    background: rgba(255,215,0,0.03);
}

/* === BREADCRUMB === */
.breadcrumb {
    padding: 15px 0;
    margin-top: calc(var(--header-height) + var(--topbar-height));
}

.breadcrumb ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    font-size: 0.9rem;
}

.breadcrumb li::after {
    content: '›';
    margin-left: 8px;
    color: var(--gray);
}

.breadcrumb li:last-child::after {
    content: '';
}

.breadcrumb a {
    color: var(--gray);
}

.breadcrumb a:hover {
    color: var(--gold);
}

.breadcrumb li:last-child {
    color: var(--gold);
}

/* === ARTICLE META === */
.article-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    font-size: 0.9rem;
    color: var(--gray);
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* === ENTRY BANNER === */
.entry-banner {
    padding: 50px 20px;
    background: linear-gradient(135deg, var(--dark-3) 0%, var(--dark-4) 50%, var(--dark-3) 100%);
    border-top: 2px solid rgba(255, 215, 0, 0.3);
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
}

.entry-banner-title {
    font-size: clamp(1.4rem, 3vw, 2rem);
    color: var(--gold);
    margin-bottom: 12px;
}

.entry-banner-desc {
    color: var(--gray);
    font-size: 1rem;
    margin-bottom: 24px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.entry-banner-url {
    margin-top: 14px;
    font-size: 0.9rem;
    color: var(--gold-dark);
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* === FOOTER === */
.site-footer {
    background: var(--dark-2);
    border-top: 1px solid rgba(255,215,0,0.15);
    padding: 50px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.footer-col h4 {
    color: var(--gold);
    font-size: 1.1rem;
    margin-bottom: 16px;
    font-weight: 700;
}

.footer-col p {
    color: var(--gray);
    font-size: 0.92rem;
    line-height: 1.7;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 8px;
}

.footer-col a {
    color: var(--gray);
    font-size: 0.92rem;
    transition: color var(--transition);
}

.footer-col a:hover {
    color: var(--gold);
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.06);
    color: var(--gray);
    font-size: 0.85rem;
}

/* === FAQ === */
.faq-item {
    background: var(--dark-3);
    border-radius: var(--radius);
    margin-bottom: 12px;
    border: 1px solid rgba(255,215,0,0.08);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    color: var(--gold);
    padding: 18px 24px;
    font-size: 1.05rem;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-main);
}

.faq-question::after {
    content: '+';
    font-size: 1.4rem;
    transition: transform var(--transition);
}

.faq-item.open .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-item.open .faq-answer {
    max-height: 500px;
}

.faq-answer-inner {
    padding: 0 24px 18px;
    color: rgba(240,240,240,0.85);
    font-size: 0.95rem;
}

/* === ANIMATIONS === */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === CTA BANNER === */
.cta-section {
    background: linear-gradient(135deg, var(--dark-3) 0%, var(--dark-4) 100%);
    padding: 60px 20px;
    text-align: center;
    border-top: 1px solid rgba(255,215,0,0.1);
    border-bottom: 1px solid rgba(255,215,0,0.1);
}

.cta-section h2 {
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 16px;
}

.cta-section p {
    color: var(--gray);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .hero {
        min-height: 420px;
        padding: calc(100px + var(--topbar-height)) 16px 50px;
    }

    .section {
        padding: 50px 0;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .info-table th,
    .info-table td {
        padding: 10px 14px;
        font-size: 0.88rem;
    }
}

@media (max-width: 480px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 1.7rem;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
}
