/* --- Global Styles & Variables --- */
:root {
    --primary-bg: #121212; /* Dark background */
    --secondary-bg: #1E1E1E; /* Lighter dark for cards */
    --gold-accent: #FFD700; /* Gold for highlights */
    --text-primary: #E0E0E0; /* Light grey for text */
    --text-secondary: #AAAAAA; /* Darker grey for subtitles */
    --font-family: 'Kanit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--primary-bg);
    color: var(--text-primary);
    line-height: 1.5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--gold-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #fff;
}

img {
    max-width: 100%auto;
    height: auto;
    border-radius: 8px;
}

/* --- Header & Navigation --- */
header {
    background-color: var(--secondary-bg);
    padding: 12px 0;
    border-bottom: 8px solid var(--gold-accent);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
/*.button-secondary {*/
    /*background-color: transparent;*/
    /*border: 2px solid var(--gold-accent);*/
    /*color: var(--gold-accent);*/
    /*padding: 5px 12;*/
    /*font-weight:400auto;*/
    /*border-radius: 60px;*/
    /*display: inline-block;*/
    /*margin-top: 60x;*/
    /*transition: background-color 0.3s, color 0.3s;*/
/*}*/

.logo {
    font-size: 2rem;
    font-weight: 600;
    color: #fff;
}

.logo span {
    color: var(--gold-accent);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

nav a {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 500;
    padding-bottom: 0px;
    border-bottom: 5px solid transparent;
    transition: color 0.3s, border-bottom-color 0.3s;
}

nav a:hover, nav a.active {
    color: var(--gold-accent);
    border-bottom-color: var(--gold-accent);
}


/* --- Hero Section --- */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('images/hero-background.jpg') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 100px 0;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.cta-button {
    background-color: var(--gold-accent);
    color: #000;
    padding: 15px 30px;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 50px;
    display: inline-block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.2);
}

.cta-button i {
    margin-right: 10px;
}

/* --- Main Content --- */
.main-content {
    padding: 60px 0;
    display: flex;
    gap: 40px;
}

.main-content article {
    flex: 3;
}

.main-content .sidebar {
    flex: 1;
}

article h2 {
    font-size: 2.5rem;
    color: var(--gold-accent);
    margin-bottom: 20px;
    border-left: 4px solid var(--gold-accent);
    padding-left: 15px;
}

article h3 {
    font-size: 1.8rem;
    color: #fff;
    margin-top: 30px;
    margin-bottom: 15px;
}

article p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

article ul, article ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

article li {
    margin-bottom: 10px;
}

article li i {
    color: var(--gold-accent);
    margin-right: 10px;
}

.featured-image {
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

/* --- CTA Banner within content --- */
.cta-banner {
    background-color: var(--secondary-bg);
    border: 1px solid var(--gold-accent);
    border-left: 5px solid var(--gold-accent);
    padding: 30px;
    margin: 40px 0;
    text-align: center;
    border-radius: 8px;
}

.cta-banner h3 {
    color: var(--gold-accent);
}

.cta-button-secondary {
    background-color: transparent;
    border: 2px solid var(--gold-accent);
    color: var(--gold-accent);
    padding: 10px 25px;
    font-weight: 700;
    border-radius: 50px;
    display: inline-block;
    margin-top: 15px;
    transition: background-color 0.3s, color 0.3s;
}

.cta-button-secondary:hover {
    background-color: var(--gold-accent);
    color: #000;
}

/* --- Sidebar --- */
.sidebar {
    background-color: var(--secondary-bg);
    padding: 20px;
    border-radius: 8px;
    height: fit-content;
}

.sidebar h3 {
    color: var(--gold-accent);
    margin-bottom: 15px;
    border-bottom: 1px solid #444;
    padding-bottom: 10px;
}

.sidebar ul {
    list-style: none;
}

.sidebar li {
    margin-bottom: 10px;
}

.sidebar a {
    color: var(--text-primary);
}

/* --- Footer --- */
footer {
    background-color: #000;
    color: var(--text-secondary);
    padding-top: 40px;
    border-top: 3px solid var(--gold-accent);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    padding-bottom: 40px;
    flex-wrap: wrap;
}

.footer-about, .footer-links {
    flex: 1;
    min-width: 250px;
}

.footer-about h4, .footer-links h4 {
    font-size: 1.5rem;
    color: var(--gold-accent);
    margin-bottom: 15px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-secondary);
}

.footer-links a:hover {
    color: var(--gold-accent);
}

.copyright {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #333;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .main-content {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 15px;
    }
    
    nav ul {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.2rem;
    }
}
@media (max-width: 480px) {
    .cta-button, .cta-button-secondary {
        padding: 10px 20px;
        font-size: 1rem;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}
/* --- Global Styles & Variables --- */







/* --- Styles for Policy & Contact Pages --- */

/* Simple Hero for non-main pages */
.hero-simple {
    background-color: var(--secondary-bg);
    text-align: center;
    padding: 60px 0;
    border-bottom: 2px solid var(--gold-accent);
}

.hero-simple h1 {
    font-size: 2.8rem;
    color: var(--gold-accent);
}

.hero-simple p {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

/* Full-width article for policy page */
.article.full-width {
    flex-basis: 100%;
}

/* Contact Page Layout */
.contact-container {
    display: flex;
    gap: 40px;
    width: 100%;
}

.contact-form {
    flex: 2; /* Form takes 2/3 of the space */
    background-color: var(--secondary-bg);
    padding: 30px;
    border-radius: 8px;
}

.contact-info {
    flex: 1; /* Info takes 1/3 of the space */
}

.contact-form h3, .contact-info h3 {
    color: var(--gold-accent);
    margin-bottom: 20px;
    font-size: 1.8rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-bg);
    border: 1px solid #444;
    border-radius: 5px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: var(--font-family);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold-accent);
    box-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
}

.contact-info ul {
    list-style: none;
    margin-top: 20px;
}

.contact-info li {
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.contact-info li i {
    color: var(--gold-accent);
    font-size: 1.5rem;
    margin-right: 15px;
    width: 25px;
    text-align: center;
}

/* Responsive adjustments for contact page */
@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
    }
}

/* --- Styles for Single Article Page --- */

article h4 {
    font-size: 1.4rem;
    color: var(--gold-accent);
    margin-top: 25px;
    margin-bottom: 10px;
}

/* Table of Contents */
.table-of-contents {
    background-color: var(--secondary-bg);
    border: 1px solid #444;
    border-left: 5px solid var(--gold-accent);
    padding: 20px 25px;
    margin: 30px 0;
    border-radius: 8px;
}

.table-of-contents h4 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.table-of-contents ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.table-of-contents li {
    margin-bottom: 10px;
}

.table-of-contents a {
    color: var(--text-primary);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

.table-of-contents a:hover {
    color: var(--gold-accent);
}

/* Article Images */
.article-image {
    display: block;
    margin: 25px auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
    max-width: 800px; /* Standard size */
    width: 100%;
}

/* Pros and Cons list styling */
article ul li i.fa-plus-circle {
    color: #28a745; /* Green */
}

article ul li i.fa-minus-circle {
    color: #dc3545; /* Red */
}

/* Comparison Table */
.table-responsive {
    width: 100%;
    overflow-x: auto; /* For smaller screens */
    margin: 30px 0;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 1rem;
    min-width: 600px; /* Prevent squishing on mobile */
}

.comparison-table th, .comparison-table td {
    padding: 15px;
    border: 1px solid #333;
    vertical-align: middle;
}

.comparison-table thead {
    background-color: var(--secondary-bg);
}

.comparison-table th {
    color: var(--gold-accent);
    font-weight: 700;
}

.comparison-table tbody tr:nth-child(even) {
    background-color: #2c2c2c;
}

.comparison-table tbody tr:hover {
    background-color: #383838;
}

/* Risk level styling */
.risk-high {
    color: #dc3545;
    font-weight: 700;
}
.risk-medium {
    color: #ffc107;
    font-weight: 700;
}
.risk-low {
    color: #28a745;
    font-weight: 700;
}



/* --- Styles for Slots Article Page --- */

/* --- Banner Slider --- */
.slider-container {
    max-width: 100%;
    position: relative;
    margin: auto;
    /* height: auto;  */
    height: 300px;
    overflow: hidden;
}

.slide {
    display: none;
    height: 90%;
}

.slide img {
    width: 90%;
    height: 90%;
    object-fit: cover; /* Ensures the image covers the container */
}

/* Fading animation */
.fade {
    animation-name: fade;
    animation-duration: 3.5s;
}

@keyframes fade {
    from {opacity: .4} 
    to {opacity: 1}
}

/* --- Game Recommendation Grid --- */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.game-card {
    background-color: var(--secondary-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    border: 1px solid #333;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(255, 215, 0, 0.1);
}

.game-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 2px solid var(--gold-accent);
}

.game-card h4 {
    color: var(--gold-accent);
    margin: 15px;
    font-size: 1.3rem;
}

.game-card p {
    margin: 0 15px 15px 15px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.game-card .provider {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 10px;
}

/* --- Pros and Cons Section --- */
.pros-cons-container {
    display: flex;
    gap: 30px;
    margin-top: 20px;
}

.pros, .cons {
    flex: 1;
    background-color: var(--secondary-bg);
    padding: 20px;
    border-radius: 8px;
}

.pros h4, .cons h4 {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 15px;
}

.pros h4 {
    color: #28a745;
}

.cons h4 {
    color: #dc3545;
}

.pros-cons-container i {
    margin-right: 10px;
}

.pros-cons-container ul {
    list-style-type: none;
    padding-left: 5px;
}

.pros-cons-container li {
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .pros-cons-container {
        flex-direction: column;
    }
    .slider-container {
        height: 250px;
    }
}

/* Risk level styling */
.risk-high {
    color: #dc3545;
    font-weight: 700;
}   



/* --- Styles for Baccarat Article Page --- */

/* This container will hold the card layout examples */
.card-layout-container {
    display: flex;
    gap: 30px;
    margin-top: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.layout-card {
    flex-basis: 350px; /* Set a base width */
    background-color: var(--secondary-bg);
    border-radius: 8px;
    text-align: center;
    padding: 15px;
    border: 1px solid #333;
}

.layout-card img {
    max-width: 100%;
    border-radius: 5px;
    margin-bottom: 15px;
}

.layout-card h4 {
    color: var(--gold-accent);
    margin-bottom: 10px;
}

/* Ensure other styles from slots article are present */
/* If you haven't added them, here they are again for convenience */

/* --- Banner Slider --- */
.slider-container { 
    max-width: 100%; 
    position: relative; 
    margin: auto; 
    height: 600px; 
    overflow: hidden; 
}
.slide { 
    display: none; height: 100%; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.fade { animation-name: fade; animation-duration: 2.5s; }
@keyframes fade { from {opacity: .4} to {opacity: 1} }

/* --- Game/Provider Grid --- */
.game-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; margin-top: 20px; }
.game-card { background-color: var(--secondary-bg); border-radius: 8px; overflow: hidden; box-shadow: 0 4px 8px rgba(0,0,0,0.3); border: 1px solid #333; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.game-card:hover { transform: translateY(-5px); box-shadow: 0 8px 16px rgba(255, 215, 0, 0.1); }
.game-card img { width: 100%; height: 180px; object-fit: cover; border-bottom: 2px solid var(--gold-accent); }
.game-card h4 { color: var(--gold-accent); margin: 15px; font-size: 1.3rem; }
.game-card p { margin: 0 15px 15px 15px; font-size: 0.95rem; color: var(--text-secondary); }

/* --- Pros and Cons Section --- */
.pros-cons-container { display: flex; gap: 30px; margin-top: 20px; }
.pros, .cons { flex: 1; background-color: var(--secondary-bg); padding: 20px; border-radius: 8px; }
.pros h4, .cons h4 { display: flex; align-items: center; font-size: 1.5rem; margin-top: 0; margin-bottom: 15px; }
.pros h4 { color: #28a745; }
.cons h4 { color: #dc3545; }
.pros-cons-container i { margin-right: 10px; }
.pros-cons-container ul { list-style-type: none; padding-left: 5px; }
.pros-cons-container li { margin-bottom: 10px; }

@media (max-width: 768px) {
    .pros-cons-container { flex-direction: column; }
    .slider-container { height: 250px; }
}

/* Risk level styling */
.risk-high { color: #dc3545; font-weight: 700; }    

/* --- Styles for Baccarat Article Page --- */      


.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    background-color: rgba(255, 255, 255, 0);
    padding: 30px;
    border-radius: 10px;
    width: 80%;
    max-width: 700px;
}

.slide-content h2 {
    font-size: 2.8rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px #000;
}

.slide-content p {
    font-size: 1.3rem;
    margin-bottom: 20px;
}

/* --- Intro Section --- */
.intro-section {
    text-align: center;
    padding: 40px 20px;
}

.intro-section h1 {
    font-size: 2.5rem;
    color: var(--gold-accent);
    margin-bottom: 15px;
}

/* --- Quick Navigation --- */
.quick-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.nav-card {
    background-color: var(--secondary-bg);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    color: var(--text-primary);
    text-decoration: none;
    flex-basis: 200px;
    border: 1px solid #333;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.nav-card:hover {
    background-color: var(--gold-accent);
    color: #000;
    transform: translateY(-5px);
}

.nav-card i {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 10px;
}

.nav-card span {
    font-size: 1.1rem;
    font-weight: 500;
}

/* --- Why Us Section --- */
.why-us-section {
    padding: 40px 20px;
    text-align: center;
}

.why-us-section h2 {
    font-size: 2.2rem;
    margin-bottom: 30px;
    color: var(--gold-accent);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    text-align: left;
}

.feature-item {
    background-color: var(--secondary-bg);
    padding: 25px;
    border-radius: 8px;
}

.feature-item i {
    font-size: 2.5rem;
    color: var(--gold-accent);
    margin-bottom: 15px;
}

.feature-item h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* --- Focus Sections (Baccarat & Slots) --- */
.focus-section {
    padding: 60px 0;
}
.focus-section.alt-bg {
    background-color: #000;
}

.focus-container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.focus-container.reverse {
    flex-direction: row-reverse;
}

.focus-image {
    flex: 1;
}

.focus-image img {
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.focus-content {
    flex: 1;
}

.focus-content h2 {
    font-size: 2.2rem;
    color: var(--gold-accent);
    margin-bottom: 20px;
}
.focus-content h2 i {
    margin-right: 15px;
}

/* --- Top Games Section --- */
.top-games-section {
    padding: 40px 20px;
    text-align: center;
}
.top-games-section h2 {
    font-size: 2.2rem;
    margin-bottom: 30px;
    color: var(--gold-accent);
}
.game-card .provider { font-weight: 500; color: var(--text-primary); margin-bottom: 10px; }


/* --- Final CTA Section --- */
.final-cta {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('images/cta-background.jpg') no-repeat center center/cover;
    padding: 60px 20px;
    text-align: center;
    color: #fff;
}

.final-cta h2 {
    font-size: 2.5rem;
    color: var(--gold-accent);
}

.final-cta .cta-buttons {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* --- Responsive for Homepage --- */
@media (max-width: 992px) {
    .focus-container, .focus-container.reverse {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .slide-content h2 { font-size: 2rem; }
    .slide-content p { font-size: 1.1rem; }
}
@media (max-width: 480px) {
    .nav-card { flex-basis: 150px; padding: 15px; }
    .nav-card i { font-size: 2rem; }
    .nav-card span { font-size: 1rem; }
    .features-grid { grid-template-columns: 1fr; }
}