/* Base styles for Mobile-First approach */
:root {
    /* PLINKO THEME COLORS */
    --plinko-dark-blue: #0A1931; /* Deep dark blue for background */
    --plinko-medium-blue: #18335D; /* Slightly lighter blue for accents */
    --plinko-light-pin: rgba(255, 255, 255, 0.15); /* Light white for pins */
    --plinko-text-on-dark: #E0E0E0; /* Light text on dark backgrounds */
    --plinko-text-on-light: #333333; /* Dark text on light backgrounds */

    --plinko-accent-green: #4CAF50; /* Primary button/logo color - vibrant green */
    --plinko-accent-yellow: #FFC107; /* Secondary accent color - bright yellow (for main play button) */
    --plinko-accent-red: #FF4136; /* Optional: for high-risk elements or specific buttons */
    --plinko-accent-blue-btn: #007bff; /* For register button or other primary actions */

    /* Re-mapping old vars to new Plinko vars for consistency */
    --primary-color: var(--plinko-accent-green);
    --secondary-color: var(--plinko-accent-blue-btn);
    --accent-color: var(--plinko-accent-yellow);
    --dark-bg: var(--plinko-medium-blue); /* Header and footer */
    --light-bg: #f4f4f4; /* General light background, mostly for sidebar btn hover */
    --text-color: var(--plinko-text-on-light); /* Used for main-content and sidebar text */
    --light-text: var(--plinko-text-on-dark); /* Used for header, footer, nav text */
    --border-color: #ddd; /* Light border for tables etc. */
    --card-border-color: #e0e0e0;
    --card-bg-color: #ffffff;
    --rank-bg-color: #333333; /* Dark background for rank number */
}

/* Universal Box-Sizing */
html {
    box-sizing: border-box;
}
*, *:before, *:after {
    box-sizing: inherit;
}

body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
    /* Plinko background */
    background-color: var(--plinko-dark-blue);
    background-image:
        radial-gradient(circle at 12px 12px, var(--plinko-light-pin) 3px, transparent 0),
        radial-gradient(circle at 37px 37px, var(--plinko-light-pin) 3px, transparent 0);
    background-size: 50px 50px;
    background-position: 0 0, 25px 25px;
    color: var(--plinko-text-on-light); /* Default body text color, overridden by specific sections */
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Ensure specific elements maintain their intended text colors */
.main-content, aside.sidebar {
    color: var(--plinko-text-on-light); /* Dark text for readability on light content blocks */
}
header, footer, nav {
    color: var(--plinko-text-on-dark); /* Light text on dark headers/footers/nav */
}


.container {
    width: 100%; /* Ensure container always takes full width on mobile */
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px; /* Add horizontal padding for mobile content */
    box-sizing: border-box;
}

/* --- HEADER --- */
header {
    background-color: var(--dark-bg); /* Now uses plinko-medium-blue */
    color: var(--light-text);
    padding: 10px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.4); /* Darker shadow */
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px; /* Ensure content is inside padding on mobile */
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8em;
    font-weight: 700;
    color: var(--primary-color); /* Now uses plinko-accent-green */
    text-decoration: none;
    flex-shrink: 0;
}
.logo-img {
    display: flex; /* Using flexbox for alignment */
    align-items: center; /* Vertically centers the image */
    height: 60px; /* Set a desired height for the logo container (you can adjust this) */
    flex-shrink: 0;
}

.logo-img img { /* This rule applies to the image itself inside .logo-img */
    max-height: 200%; /* Image will not exceed the height of its parent container */
    max-width: 200%;  /* Image will not exceed the width of its parent container */
    height: 150px;     /* Maintain the image's aspect ratio */
    width: 150px;      /* Maintain the image's aspect ratio */
    object-fit: contain; /* Ensure the image fits entirely within its container without cropping */
}

/* Adjust size for desktop if needed */
@media (min-width: 768px) {
    .logo-img {
        height: 80px; /* Taller height for desktop, if desired */
    }
}
/* Mobile Menu Button (Hamburger) */
.menu-toggle {
    display: block;
    background: none;
    border: none;
    color: var(--light-text);
    font-size: 2em;
    cursor: pointer;
    padding: 5px 10px;
    order: 2;
    z-index: 100;
}

/* Navigation Menu */
nav {
    display: none;
    flex-basis: 100%;
    order: 3;
    /* margin-top: 10px; REMOVED as menu is now fixed full screen */
    background-color: var(--plinko-medium-blue); /* Consistent dark blue for menu */
    padding: 20px 0; /* Add vertical padding for content */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* Ensure it covers full screen height */
    overflow-y: auto; /* Allow scrolling if content is too long */
    -webkit-overflow-scrolling: touch;
    z-index: 999;
    transform: translateX(100%);
    transition: transform 0.3s ease-out;
}

nav.active {
    display: block;
    transform: translateX(0);
}

/* Add a close button for mobile menu */
.menu-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--light-text);
    font-size: 2.5em;
    cursor: pointer;
    z-index: 1001; /* Ensure it's above everything else in the menu */
}

/* Changed: .menu-close is now always visible but positioned outside the normal flow when nav is not active */
/* This ensures it's always there, but visually only appears when nav.active */
nav:not(.active) .menu-close {
    display: none; /* Hide if nav is not active */
}


nav ul {
    list-style: none;
    margin: 60px 0 0; /* Adjusted margin to push content down from close button/top */
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

nav ul li {
    position: relative;
    width: 100%;
}

nav ul li a {
    display: block;
    color: var(--light-text);
    text-decoration: none;
    padding: 12px 20px;
    transition: background-color 0.3s ease;
    box-sizing: border-box;
}

nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.15); /* Slightly brighter hover */
}

/* Dropdown Menu */
.dropdown-content {
    display: none;
    position: relative;
    background-color: var(--plinko-medium-blue); /* Consistent dark blue for menu */
    min-width: 100%;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
}

.dropdown-content a {
    padding: 10px 25px;
    font-size: 0.95em;
    color: var(--light-text); /* Ensure dropdown items are light text */
}
.dropdown-content a:hover {
     background-color: rgba(255, 255, 255, 0.1);
}


.dropdown.active > .dropdown-content {
    display: block;
}

/* Header Buttons */
.header-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    margin-left: auto;
    order: 1;
}
/* Dropdown common styles */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none; /* Hidden by default */
    position: absolute;
    background-color: var(--dark-bg); /* Use the defined dark background */
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1;
    min-width: 160px;
    border-radius: 5px;
    list-style: none;
    padding: 0;
    margin: 0;
    top: 100%; /* Position below the toggle */
    left: 0;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none; /* Disable interaction when hidden */
}

.dropdown.active .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto; /* Enable interaction when active */
}

.dropdown-menu li {
    color: var(--light-text);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.dropdown-menu li:hover {
    background-color: var(--plinko-medium-blue);
}

/* Language Switcher Styles - Default for Mobile (inside nav) */
nav .language-switcher {
    width: 100%; /* Take full width of menu */
    margin-top: 20px; /* Space from menu items */
    padding: 0 20px; /* Align with menu item padding */
    box-sizing: border-box;
    position: relative; /* Ensure dropdown works correctly */
    z-index: 10; /* Ensure it's above other elements if needed */
}

nav .language-switcher .dropdown-toggle {
    background: var(--plinko-medium-blue);
    color: var(--light-text);
    border: 1px solid rgba(255,255,255,0.2); /* Light border for contrast */
    padding: 12px 15px; /* Adjust padding for menu consistency */
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    justify-content: space-between; /* Space out text and icon */
    width: 100%; /* Full width button */
    box-sizing: border-box;
    transition: background-color 0.3s ease;
}

nav .language-switcher .dropdown-toggle:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

nav .language-switcher .dropdown-menu {
    position: absolute;
    top: 100%; /* Position below the button */
    left: 0;
    width: 100%; /* Match button width */
    background-color: var(--plinko-medium-blue);
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    list-style: none;
    padding: 0;
    margin-top: 5px; /* Space between button and dropdown */
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

nav .language-switcher.active .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

nav .language-switcher .dropdown-menu li {
    padding: 10px 15px;
    color: var(--light-text);
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 0.9em;
}

nav .language-switcher .dropdown-menu li:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Hide header language switcher on mobile */
.header-buttons .language-switcher {
    display: none;
}

.btn {
    display: inline-block;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
    white-space: nowrap;
    font-size: 0.9em;
}

.btn-play {
    background-color: var(--primary-color); /* Uses plinko-accent-green */
    color: var(--light-text);
    border: 1px solid var(--primary-color);
}

.btn-play:hover {
    background-color: #3e8e41; /* Slightly darker green */
    border-color: #3e8e41;
}

.btn-register {
    background-color: var(--secondary-color); /* Uses plinko-accent-blue-btn */
    color: var(--light-text);
    border: 1px solid var(--secondary-color);
}

.btn-register:hover {
    background-color: #0069d9; /* Slightly darker blue */
    border-color: #0069d9;
}

/* --- MAIN CONTENT & SIDEBAR --- */
.main-wrapper {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 20px 0;
}

.main-content {
    background-color: #FFFFFF; /* Kept white for contrast and readability of content */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    flex-grow: 1;
}

/* Content Styling */
.main-content h1 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-color);
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 2em; /* Default h1 size */
    line-height: 1.2; /* Default h1 line height */
}

/* Mobile-specific adjustments for subheadings */
.main-content h2 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-color);
    margin-top: 20px; /* Slightly reduced top margin */
    margin-bottom: 10px; /* Slightly reduced bottom margin */
    font-size: 1.4em; /* Smaller font size for h2 on mobile */
    line-height: 1.2; /* Tighter line height for h2 on mobile */
}

.main-content h3 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-color);
    margin-top: 15px; /* Slightly reduced top margin */
    margin-bottom: 8px; /* Slightly reduced bottom margin */
    font-size: 1.2em; /* Smaller font size for h3 on mobile */
    line-height: 1.2; /* Tighter line height for h3 on mobile */
}


.main-content p {
    margin-bottom: 15px;
    color: var(--plinko-text-on-light); /* Ensure dark text on light content */
}

.main-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    object-fit: cover;
    min-height: 150px;
}

.main-content ul, .main-content ol {
    margin-bottom: 15px;
    padding-left: 25px;
    color: var(--plinko-text-on-light);
}

.main-content li {
    margin-bottom: 8px;
}

/* Default casino table (Featured Plinko Casinos) */
.casino-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background-color: #f9f9f9;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
    font-size: 0.9em;
    text-align: center;
    /* Important for mobile responsiveness */
    display: block;
    overflow-x: auto; /* Allows horizontal scrolling if table is too wide */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

.casino-table th,
.casino-table td {
    padding: 15px 10px;
    border: 1px solid #eee;
    vertical-align: middle;
    white-space: normal; /* Allow text to wrap on mobile */
}

.casino-table th {
    background-color: var(--plinko-medium-blue);
    color: var(--light-text);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 1em;
}

.casino-table tr:nth-child(even) {
    background-color: #f0f0f0;
}

.casino-table td:first-child {
    font-weight: 600;
    color: var(--plinko-text-on-light);
}

/* Casino Logo */
.casino-logo {
    padding: 5px; /* Reduced padding */
}
.casino-logo img {
    width: 70px; /* Fixed width for logo */
    height: 40px; /* Fixed height for logo (rectangular) */
    display: block;
    margin: 0 auto;
    object-fit: contain; /* Scales down, preserves aspect ratio */
    border-radius: 4px; /* Slightly rounded corners */
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    background-color: #fff; /* White background for logos if they have transparency */
    padding: 3px; /* Reduced padding inside the logo container */
}

/* Plinko Games Count */
.plinko-games-count {
    font-size: 1.2em; /* Slightly smaller text for better fit */
    font-weight: 700;
    color: var(--primary-color);
    padding: 5px 0;
}

/* Welcome Bonus Styling */
.welcome-bonus {
    font-size: 1.3em; /* Slightly smaller bonus text */
    font-weight: 800;
    padding: 6px 8px; /* Reduced padding */
    border-radius: 6px;
    display: inline-block;
    margin: 3px 0; /* Reduced margin */
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
    background: linear-gradient(45deg, var(--accent-color), #FFD700, var(--accent-color));
    background-size: 200% 200%;
    color: var(--plinko-text-on-light);
    animation: gradient-shift 4s ease infinite alternate;
}

/* Table Play Button */
.table-play-btn {
    display: inline-block;
    padding: 8px 15px; /* Reduced padding */
    background-color: var(--primary-color);
    color: var(--light-text);
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* Reduced shadow */
    font-size: 1em; /* Slightly smaller font size */
}

.table-play-btn:hover {
    background-color: #3e8e41;
    transform: translateY(-1px);
}

/* Content Play Button */
.content-play-btn {
    display: block;
    width: 100%;
    padding: 15px 20px;
    margin: 30px 0;
    font-size: 1.2em;
    text-align: center;
    background-color: var(--accent-color); /* Uses plinko-accent-yellow */
    color: var(--plinko-text-on-light); /* Dark text on bright yellow */
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3); /* Stronger shadow */
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-sizing: border-box;
}

.content-play-btn:hover {
    background-color: #e0b000; /* Darker yellow on hover */
    transform: translateY(-2px);
}


/* SIDEBAR */
aside.sidebar {
    background-color: #FFFFFF; /* Kept white for contrast and readability */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    margin-top: 20px;
}

.sidebar h3 {
    font-family: 'Montserrat', sans-serif;
    color: var(--secondary-color); /* Uses plinko-accent-blue-btn */
    margin-top: 0;
    margin-bottom: 15px;
    text-align: center;
    font-size: 1.3em; /* Adjust sidebar h3 for mobile, slightly smaller than desktop */
    line-height: 1.2;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.sidebar ul li {
    margin-bottom: 10px;
}

.sidebar ul li a {
    display: block;
    padding: 10px 15px;
    background-color: var(--light-bg); /* Use a light grey for default sidebar buttons */
    border: 1px solid var(--border-color);
    border-radius: 5px;
    text-decoration: none;
    color: var(--plinko-text-on-light);
    transition: background-color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    font-weight: 600;
}

.sidebar ul li a:hover {
    background-color: var(--accent-color); /* Yellow hover for sidebar items */
    border-color: var(--accent-color);
    color: var(--plinko-text-on-light); /* Dark text on yellow hover */
}

.sidebar .btn-group .btn-register {
    background-color: var(--secondary-color); /* Use specific blue for register in sidebar */
    color: var(--light-text);
    border: 1px solid var(--secondary-color);
}
 .sidebar .btn-group .btn-register:hover {
    background-color: #0069d9;
    border-color: #0069d9;
}

.sidebar .btn-group .btn-play {
    background-color: var(--primary-color); /* Use specific green for play in sidebar */
    color: var(--light-text);
    border: 1px solid var(--primary-color);
}
.sidebar .btn-group .btn-play:hover {
    background-color: #3e8e41;
    border-color: #3e8e41;
}


.sidebar .btn-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-wrap: wrap;
}

.sidebar .btn {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    text-align: center;
}

/* --- FOOTER --- */
footer {
    background-color: var(--dark-bg); /* Uses plinko-medium-blue */
    color: var(--light-text);
    padding: 20px 0;
    text-align: center;
    margin-top: auto;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.4); /* Darker shadow */
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 0 15px;
}

.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-nav ul li a {
    color: var(--light-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-nav ul li a:hover {
    color: var(--primary-color); /* Green hover */
}


.site-info p {
    margin: 0;
    font-size: 0.9em;
    opacity: 0.8;
}

/* --- FAQ Section Styles --- */
.faq-section {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--secondary-color); /* Blue for FAQ heading */
    font-size: 1.4em; /* Smaller font size for FAQ h2 on mobile */
    line-height: 1.2;
}

.faq-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden; /* Ensures content transitions smoothly */
    background-color: #fcfcfc; /* Slightly off-white for individual items */
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #f0f0f0; /* Light grey background for question */
    cursor: pointer;
    font-weight: 600;
    color: var(--plinko-text-on-light);
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #e6e6e6; /* Darker grey on hover */
}

.faq-question.active {
    background-color: var(--light-bg); /* Highlight active question */
}

.faq-question .arrow-icon {
    font-size: 1.2em;
    transition: transform 0.3s ease;
}

.faq-question.active .arrow-icon {
    transform: rotate(90deg); /* Rotate arrow when active */
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out; /* Smooth transition for height and padding */
    padding: 0 20px; /* No padding when collapsed */
    box-sizing: border-box;
    color: var(--plinko-text-on-light);
}

.faq-answer.active {
    max-height: 200px; /* Adjust as needed for maximum answer height */
    padding: 15px 20px; /* Apply padding when expanded */
}

.faq-answer p {
    margin: 0; /* Remove default paragraph margins within FAQ answer */
}

/* --- New Top Casino Table/Cards Styles (Mobile-First) --- */
.top-casino-table-section {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.top-casino-table-section h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--secondary-color);
    font-size: 1.4em; /* Match mobile FAQ h2 */
    line-height: 1.2;
}

/* Default mobile view: cards one below another */
.top-casino-cards-container {
    display: flex;
    flex-direction: column;
    gap: 20px; /* Spacing between cards */
}

.top-casino-card {
    background-color: #fcfcfc;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 15px; /* Compact padding */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: var(--plinko-text-on-light);
    position: relative; /* For rank badge positioning */
    width: 100%; /* Ensure cards take full width */
    box-sizing: border-box;
}

.top-casino-card .rank-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--primary-color);
    color: var(--light-text);
    font-weight: 700;
    font-size: 1.1em;
    padding: 5px 10px;
    border-radius: 50%; /* Circle shape */
    min-width: 25px; /* Ensure circle for single digit */
    min-height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 1; /* Above other content */
}

.top-casino-card .logo-container {
    margin-bottom: 10px;
}

.top-casino-card .logo-container img {
    max-width: 120px;
    height: 60px;
    object-fit: contain;
    border-radius: 4px;
    background-color: #fff;
    padding: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.top-casino-card .name {
    font-weight: 700;
    font-size: 1.3em;
    margin-bottom: 5px;
    color: var(--plinko-text-on-light);
}

.top-casino-card .rating {
    font-size: 0.95em;
    color: #666;
    margin-bottom: 10px;
}

.top-casino-card .rating .fa-star {
    color: var(--accent-color);
}

.top-casino-card .bonus {
    font-weight: 600;
    color: var(--plinko-accent-blue-btn);
    margin-bottom: 15px;
    font-size: 1.1em;
    background-color: rgba(0, 123, 255, 0.08); /* Light blue background for bonus */
    padding: 8px 12px;
    border-radius: 5px;
    width: 100%; /* Take full width */
    box-sizing: border-box;
}
.top-casino-card .bonus br { /* Ensure breaks in bonus text */
    content: '';
    display: block;
    margin-bottom: 5px;
}


.top-casino-card .info-list {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
    font-size: 0.9em;
    text-align: left; /* Align info list to the left within card */
    width: 100%; /* Take full width */
    box-sizing: border-box;
}

.top-casino-card .info-list li {
    margin-bottom: 5px;
    display: flex;
    align-items: flex-start; /* Align icon and text at the top */
}

.top-casino-card .info-list .fa-check-circle {
    color: var(--primary-color);
    margin-right: 8px;
    flex-shrink: 0;
    padding-top: 2px; /* Adjust alignment if needed */
}

.top-casino-card .action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 25px;
    background-color: var(--primary-color);
    color: var(--light-text);
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
    font-size: 1.1em;
    width: calc(100% - 0px); /* Adjust width to fit, considering padding on card */
    box-sizing: border-box;
    max-width: 250px; /* Max width for button on mobile, if needed */
}

.top-casino-card .action-button:hover {
    background-color: #3e8e41;
    transform: translateY(-2px);
}

/* Hide the table itself on mobile */
.top-casino-table {
    display: none;
}

/* --- DESKTOP TABLE STYLES FOR .top-casino-table --- */
.top-casino-table th, .top-casino-table td {
    padding: 15px; /* Default padding for desktop table cells */
    border: 1px solid #eee; /* Light borders */
    text-align: left; /* Align text left */
    vertical-align: middle;
}

.top-casino-table thead th {
    background-color: var(--plinko-medium-blue); /* Dark blue header */
    color: var(--light-text); /* Light text on dark header */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.top-casino-table tbody tr:nth-child(even) {
    background-color: #f9f9f9; /* Light grey for even rows */
}

.top-casino-table tbody tr:hover {
    background-color: #f0f0f0; /* Darker grey on hover */
}

.top-casino-table .rank-cell {
    width: 50px; /* Fixed width for rank */
    font-weight: 700;
    font-size: 1.1em;
    text-align: center;
    background-color: var(--primary-color); /* Green background for rank cell */
    color: var(--light-text); /* Light text for rank */
    border-right: none; /* Remove right border for cleaner look */
}

.top-casino-table .logo-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px; /* Adjust padding to fit content */
}

.top-casino-table .logo-cell img {
    max-width: 80px; /* Smaller logo for table row */
    height: 40px;
    object-fit: contain;
    border-radius: 4px;
    background-color: #fff;
    padding: 3px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.top-casino-table .name-cell {
    font-weight: 600;
    font-size: 1.05em;
    color: var(--plinko-text-on-light);
}

.top-casino-table .rating-cell {
    color: var(--plinko-text-on-light);
    font-size: 0.95em;
    white-space: nowrap;
}

.top-casino-table .rating-cell .fa-star {
    color: var(--accent-color); /* Yellow stars */
    margin-right: 3px;
}

.top-casino-table .bonus-cell {
    font-weight: 600;
    color: var(--plinko-accent-blue-btn); /* Blue for bonus text */
    font-size: 0.95em;
}

.top-casino-table .info-cell ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.top-casino-table .info-cell li {
    font-size: 0.85em; /* Smaller font for info list */
    color: #555;
    margin-bottom: 3px;
    display: flex;
    align-items: flex-start;
    gap: 5px;
}

.top-casino-table .info-cell .fa-check-circle {
    color: var(--primary-color);
    font-size: 0.9em;
    margin-top: 2px;
    flex-shrink: 0;
}

.top-casino-table .action-cell {
    text-align: center;
}
/* Styles for inline quotes */
q {
    font-style: italic;
    color: #4CAF50; /* Primary color from your theme */
}

/* Styles for block quotes */
blockquote {
    background-color: #f0f0f0; /* Light grey background for blockquotes */
    border-left: 5px solid #007bff; /* Blue border on the left side */
    margin: 20px 0; /* Add some vertical space */
    padding: 15px 20px; /* Internal padding */
    font-style: italic;
    color: #333333; /* Dark text for readability */
    border-radius: 4px; /* Slightly rounded corners */
}

blockquote p {
    margin: 0 0 10px 0; /* Remove default paragraph margins, add space between paragraphs in blockquote */
}

blockquote p:last-child {
    margin-bottom: 0; /* No bottom margin for the last paragraph */
}

blockquote footer {
    font-style: normal; /* Reset italic for footer */
    text-align: right; /* Align footer to the right */
    color: #555555; /* Slightly darker grey for attribution */
    margin-top: 10px; /* Space above the footer */
    font-size: 0.9em;
}

/* Styles for citation (source name) */
cite {
    font-style: normal; /* Often browsers make it italic by default, reset if not desired */
    font-weight: 600;
    color: #18335D; /* Medium blue from your theme */
}

/* Media queries for Tablets and Desktops */
@media (min-width: 768px) {
    .header-content {
        flex-wrap: nowrap;
    }

    .menu-toggle, .menu-close {
        display: none;
    }

    nav {
        display: block;
        flex-basis: auto;
        order: 0;
        margin-top: 0;
        background-color: transparent;
        padding: 0;
        box-shadow: none;
        position: static; /* Revert to static on desktop */
        transform: translateX(0);
        overflow-y: visible;
        height: auto; /* Revert height for desktop */
        width: auto; /* Revert width for desktop */
    }

    nav ul {
        margin: 0;
        flex-direction: row;
        align-items: center;
        width: auto;
    }

    nav ul li {
        margin-right: 20px;
        margin-bottom: 0;
        width: auto;
    }

    nav ul li:last-child {
        margin-right: 0;
    }

    .dropdown-content {
        position: absolute;
        min-width: 160px;
        padding-left: 0;
        background-color: var(--plinko-medium-blue);
    }

    .dropdown:hover > .dropdown-content {
        display: block;
    }
    .dropdown.active > .dropdown-content {
         display: none; /* Keep this for desktop if click activates, hover deactivates */
    }
    .dropdown-content a {
        color: var(--light-text);
    }
    .dropdown-content a:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }

    /* Desktop: Show header language switcher */
    .header-buttons .language-switcher {
        display: flex; /* Or 'block' depending on your layout, 'flex' matches existing */
        position: relative; /* For dropdown */
        z-index: 1001; /* Ensure it's on top */
        margin-left: 20px; /* Example margin for spacing */
    }

    /* Desktop: Hide nav language switcher */
    nav .language-switcher {
        display: none;
    }

    .main-wrapper {
        flex-direction: row;
        gap: 30px;
        align-items: flex-start; /* Ensure items align to the top */
    }

    .main-content {
        flex: 3;
    }

    /* Revert subheading styles for desktop */
    .main-content h1 {
        font-size: 2.5em; /* Larger h1 for desktop */
        line-height: 1.2;
        margin-top: 25px;
        margin-bottom: 15px;
    }

    .main-content h2 {
        font-size: 2em; /* Larger h2 for desktop */
        line-height: 1.3;
        margin-top: 25px;
        margin-bottom: 15px;
    }

    .main-content h3 {
        font-size: 1.5em; /* Larger h3 for desktop */
        line-height: 1.4;
        margin-top: 25px;
        margin-bottom: 15px;
    }

    .faq-section h2, .top-casino-table-section h2 {
        font-size: 2em; /* Larger FAQ/Toplist h2 for desktop */
        line-height: 1.3;
    }

    .sidebar h3 {
        font-size: 1.5em; /* Larger sidebar h3 for desktop */
        line-height: 1.3;
    }

    aside.sidebar {
        flex: 1;
        margin-top: 0;
        min-width: 250px;
        position: sticky; /* Make sidebar sticky */
        top: 20px; /* Stick to 20px from the top of the viewport */
        align-self: flex-start; /* Important for sticky to work correctly with flex container */
        max-height: calc(100vh - 40px); /* Limit height to viewport - header/footer space */
        overflow-y: auto; /* Allow internal scrolling if content is too long */
    }

    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }

    .footer-nav ul {
        flex-direction: row;
        gap: 20px;
    }

    /* Revert default casino table for desktop */
    .casino-table {
        display: table; /* Ensure table display on desktop */
        overflow-x: visible; /* No scroll needed on desktop */
    }

    .casino-table th,
    .casino-table td {
        padding: 20px 15px; /* More padding on desktop */
        white-space: nowrap; /* Prevent wrapping in cells on desktop */
    }

    .casino-logo {
        width: 120px; /* Adjust width for desktop */
    }
    .casino-logo img {
        width: 100px; /* Larger logo on desktop */
        height: 60px; /* Maintain rectangular ratio */
    }
    .plinko-games-count {
        width: auto; /* Let content determine width on desktop */
    }

    /* Top Casino Table on Desktop - Re-enable table view */
    .top-casino-cards-container {
        display: none; /* Hide cards on desktop */
    }

    .top-casino-table {
        display: table; /* Show table on desktop */
        width: 100%;
        border-collapse: collapse;
        margin: 20px 0;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        border-radius: 8px;
        overflow: hidden;
        overflow-x: visible; /* No scroll needed on desktop */
        background-color: #fcfcfc;
        color: var(--plinko-text-on-light);
        font-size: 1em;
    }

    /* Hide Info column header on desktop */
    .top-casino-table th.info-column,
    .top-casino-table td.info-cell {
        display: none;
    }

    .top-casino-table thead th,
    .top-casino-table tbody td {
        padding: 15px 15px;
    }

    .top-casino-table .logo-cell img {
        max-width: 100px;
        height: 50px;
    }
    /* The .info-cell ul and li styles are now only applied to mobile through .top-casino-card */
}