/* Fun88 Casino Thailand — Main Styles */
:root {
    --primary: #e63946;
    --primary-dark: #c1121f;
    --gold: #f4a261;
    --dark: #1d3557;
    --darker: #0d1b2a;
    --light: #f1faee;
    --bg-light: #f8f9fa;
    --text: #333;
    --text-light: #666;
    --white: #fff;
    --radius: 12px;
    --shadow: 0 4px 20px rgba(0,0,0,0.1);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.15);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', 'Noto Sans Thai', sans-serif;
    color: var(--text);
    line-height: 1.7;
    background: var(--white);
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.center-text { text-align: center; }

/* Header */
.site-header {
    background: var(--darker);
    color: var(--white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo a {
    color: var(--gold);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 800;
}

.main-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.main-nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 4px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}
.main-nav a:hover, .main-nav a.active {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

/* Hero */
.hero, .page-hero {
    background: linear-gradient(135deg, var(--darker), var(--dark));
    color: var(--white);
    padding: 60px 0;
}

.hero .container, .page-hero .container {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.hero-content { flex: 1; min-width: 300px; }
.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    line-height: 1.2;
}
.hero-subtitle, .hero-content p {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 25px;
}

.hero-image { flex: 1; min-width: 280px; text-align: center; }
.hero-image img {
    width: 100%;
    max-width: 600px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
}

.hero-buttons { display: flex; gap: 15px; flex-wrap: wrap; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}
.btn-primary {
    background: var(--primary);
    color: var(--white);
}
.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230,57,70,0.4);
}
.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--gold);
}
.btn-secondary:hover {
    background: var(--gold);
    color: var(--darker);
}
.btn-large { padding: 16px 40px; font-size: 1.15rem; }

/* Section */
.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: var(--dark);
}
.content-section { padding: 60px 0; }
.bg-light { background: var(--bg-light); }

/* Features */
.features { padding: 60px 0; background: var(--bg-light); }
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.feature-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}
.feature-card:hover { transform: translateY(-5px); }
.feature-card img {
    width: 100%;
    border-radius: var(--radius);
    margin-bottom: 15px;
}
.feature-card h3 { font-size: 1.3rem; margin-bottom: 10px; color: var(--dark); }
.feature-card p { color: var(--text-light); }

/* Games Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}
.game-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
    display: block;
}
.game-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}
.game-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.game-card h3 { padding: 15px 15px 5px; font-size: 1.15rem; color: var(--dark); }
.game-card p { padding: 0 15px 15px; color: var(--text-light); font-size: 0.95rem; }

/* Two Column */
.two-col {
    display: flex;
    gap: 40px;
    align-items: center;
    flex-wrap: wrap;
}
.two-col > div { flex: 1; min-width: 280px; }
.two-col img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.two-col h2 { font-size: 1.8rem; margin-bottom: 15px; color: var(--dark); }
.two-col ul { list-style: none; padding: 0; }
.two-col li {
    padding: 8px 0;
    font-size: 1.05rem;
    border-bottom: 1px solid #eee;
}

/* CTA */
.cta-section {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}
.cta-section h2 { font-size: 2rem; margin-bottom: 10px; }
.cta-section p { margin-bottom: 25px; font-size: 1.1rem; opacity: 0.9; }
.cta-content {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}
.cta-content > div { flex: 1; min-width: 280px; }
.cta-content img {
    width: 100%;
    border-radius: var(--radius);
}
.cta-text { text-align: left; }
.cta-text h2 { font-size: 2rem; margin-bottom: 15px; }
.cta-text p { margin-bottom: 25px; }

/* Promo */
.promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.promo-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
    transition: transform 0.3s;
}
.promo-card:hover { transform: translateY(-5px); }
.promo-card.featured {
    border: 2px solid var(--primary);
}
.promo-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
}
.promo-card img { width: 100%; height: 200px; object-fit: cover; }
.promo-card h3 { padding: 15px 20px 5px; font-size: 1.2rem; color: var(--dark); }
.promo-card p { padding: 0 20px 10px; color: var(--text-light); }
.promo-card ul { padding: 0 20px 20px; list-style: none; }
.promo-card li { padding: 4px 0; font-size: 0.95rem; color: var(--text-light); }
.promo-card li::before { content: "✅ "; }

/* Steps */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
}
.step-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    text-align: center;
    position: relative;
    transition: transform 0.3s;
}
.step-card:hover { transform: translateY(-5px); }
.step-number {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary);
    color: var(--white);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
}
.step-card img { width: 100%; height: 180px; object-fit: cover; }
.step-card h3 { padding: 15px 15px 5px; font-size: 1.15rem; color: var(--dark); }
.step-card p { padding: 0 15px 15px; color: var(--text-light); font-size: 0.95rem; }

/* Footer */
.site-footer {
    background: var(--darker);
    color: rgba(255,255,255,0.7);
    padding: 40px 0 20px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}
.footer-col h4 {
    color: var(--gold);
    margin-bottom: 15px;
    font-size: 1.1rem;
}
.footer-col a {
    display: block;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    padding: 3px 0;
    transition: color 0.3s;
}
.footer-col a:hover { color: var(--gold); }
.copyright {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 { font-size: 1.8rem; }
    .hero .container, .page-hero .container { flex-direction: column; }
    .two-col { flex-direction: column; }
    .cta-content { flex-direction: column; text-align: center; }
    .cta-text { text-align: center; }
    .main-nav { gap: 10px; }
    .section-title { font-size: 1.5rem; }
}
