/*
Theme Name: OnlineCraps Theme
Theme URI: http://onlinecraps.co.uk
Description: Premium casino theme for OnlineCraps.co.uk — the UK's most comprehensive online craps guide.
Version: 1.0.0
Author: OnlineCraps
Text Domain: onlinecraps-theme
*/

:root {
    --primary: #B22222;
    --primary-dark: #8B1A1A;
    --secondary: #C4A035;
    --accent: #A08030;
    --text-primary: #1A1A1A;
    --text-secondary: #555555;
    --bg: #FAFAFA;
    --card-bg: #F5F5F5;
    --cta: #27AE60;
    --cta-dark: #1E8C4C;
    --footer-bg: #1C1C1C;
    --header-bg: #111111;
    --border: #E0E0E0;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-primary);
    background: var(--bg);
    line-height: 1.7;
    font-size: 17px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    line-height: 1.3;
    margin-bottom: 0.5em;
    color: var(--text-primary);
}

h1 { font-size: 2.4rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--secondary);
}

img {
    max-width: 100%;
    height: auto;
}

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

/* ===== HEADER ===== */
.site-header {
    background: var(--header-bg);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
}

.site-logo img {
    height: 48px;
    width: auto;
    background: transparent;
    border-radius: 6px;
    padding: 4px 8px;
}

/* Mobile hamburger */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    margin: 5px 0;
    transition: transform 0.3s, opacity 0.3s;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== NAVIGATION ===== */
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 0;
    align-items: center;
}

.main-nav > ul > li {
    position: relative;
}

.main-nav > ul > li > a {
    color: #fff;
    font-size: 0.92rem;
    font-weight: 500;
    padding: 14px 16px;
    display: block;
    border-bottom: 3px solid transparent;
    transition: border-color 0.2s, color 0.2s;
}

.main-nav > ul > li > a:hover,
.main-nav > ul > li.current-menu-item > a,
.main-nav > ul > li.current-menu-ancestor > a {
    color: var(--secondary);
    border-bottom-color: var(--secondary);
}

/* Mega Dropdown */
.main-nav .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #1A1A1A;
    min-width: 240px;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    padding: 8px 0;
    z-index: 1001;
    list-style: none;
}

.main-nav > ul > li:hover > .sub-menu {
    display: block;
}

.main-nav .sub-menu li a {
    color: #ccc;
    font-size: 0.88rem;
    padding: 10px 20px;
    display: block;
    transition: background 0.2s, color 0.2s;
    border-left: 3px solid transparent;
}

.main-nav .sub-menu li a:hover {
    background: #252525;
    color: var(--secondary);
    border-left-color: var(--secondary);
}

/* Nested sub-menu */
.main-nav .sub-menu .sub-menu {
    left: 100%;
    top: 0;
    border-radius: 0 8px 8px 0;
}

/* ===== TRUST TOPBAR ===== */
.trust-topbar {
    background: var(--primary);
    color: #fff;
    text-align: center;
    padding: 6px 20px;
    font-size: 0.82rem;
    font-weight: 500;
}

.trust-topbar a {
    color: var(--secondary);
    font-weight: 600;
}

.trust-topbar a:hover {
    color: #fff;
}

/* ===== BREADCRUMBS ===== */
.breadcrumbs {
    padding: 14px 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.breadcrumbs a {
    color: var(--text-secondary);
}

.breadcrumbs a:hover {
    color: var(--primary);
}

/* ===== CONTENT ===== */
.site-content {
    min-height: 60vh;
    padding: 40px 0;
}

.entry-header {
    margin-bottom: 30px;
}

.entry-title {
    font-size: 2.4rem;
    color: var(--text-primary);
}

.entry-meta {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 8px;
}

.entry-content {
    max-width: 800px;
}

.entry-content p {
    margin-bottom: 1.2em;
}

.entry-content h2 {
    margin-top: 2em;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--secondary);
}

.entry-content h3 {
    margin-top: 1.5em;
}

.entry-content ul, .entry-content ol {
    margin: 1em 0 1em 1.5em;
}

.entry-content li {
    margin-bottom: 0.4em;
}

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
}

.entry-content th,
.entry-content td {
    padding: 10px 14px;
    border: 1px solid #ddd;
    text-align: left;
}

.entry-content th {
    background: var(--footer-bg);
    color: #fff;
    font-family: 'Playfair Display', serif;
}

.entry-content blockquote {
    border-left: 4px solid var(--secondary);
    padding: 16px 20px;
    margin: 1.5em 0;
    background: var(--card-bg);
    font-style: italic;
}

/* ===== POST THUMBNAIL ===== */
.post-thumbnail {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

/* ===== CARDS ===== */
.card {
    background: #fff;
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border: 1px solid #eee;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.card-gold {
    border-top: 3px solid var(--secondary);
}

.card-red {
    border-top: 3px solid var(--primary);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    border: none;
    font-family: 'Inter', sans-serif;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: #fff;
}

.btn-cta {
    background: var(--cta);
    color: #fff;
}

.btn-cta:hover {
    background: var(--cta-dark);
    color: #fff;
}

.btn-gold {
    background: var(--secondary);
    color: #fff;
}

.btn-gold:hover {
    background: var(--accent);
    color: #fff;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--secondary);
    color: var(--secondary);
}

.btn-outline:hover {
    background: var(--secondary);
    color: #fff;
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.88rem;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.1rem;
}

/* ===== GRID LAYOUTS ===== */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* ===== ARCHIVE / LISTING ===== */
.archive-header {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--secondary);
}

.archive-header .archive-title {
    font-size: 2rem;
}

.archive-header .archive-desc {
    color: var(--text-secondary);
    margin-top: 8px;
    font-size: 1.05rem;
}

.post-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border: 1px solid #eee;
    transition: transform 0.2s, box-shadow 0.2s;
}

.post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.post-card-thumb {
    aspect-ratio: 16/9;
    overflow: hidden;
}

.post-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.post-card:hover .post-card-thumb img {
    transform: scale(1.05);
}

.post-card-body {
    padding: 20px;
}

.post-card-body h2 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.post-card-body h2 a {
    color: var(--text-primary);
}

.post-card-body h2 a:hover {
    color: var(--primary);
}

.post-card-meta {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.post-card-excerpt {
    font-size: 0.92rem;
    color: var(--text-secondary);
    margin-bottom: 14px;
}

/* ===== SINGLE POST ===== */
.single-post-layout {
    max-width: 800px;
}

.single-post-layout .entry-title {
    font-size: 2.2rem;
    line-height: 1.25;
}

/* ===== PAGE TEMPLATES ===== */
.page-header-hero {
    background: linear-gradient(135deg, var(--header-bg) 0%, #2a0808 100%);
    color: #fff;
    padding: 60px 0;
    margin: -40px -20px 40px;
    text-align: center;
}

.page-header-hero h1 {
    color: #fff;
    font-size: 2.6rem;
    margin-bottom: 16px;
}

.page-header-hero p {
    color: #ccc;
    font-size: 1.15rem;
    max-width: 700px;
    margin: 0 auto;
}

/* ===== CASINO TEMPLATE ===== */
.casino-card {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border: 1px solid #eee;
    gap: 24px;
    transition: box-shadow 0.2s;
}

.casino-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.casino-card-rank {
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--secondary);
    min-width: 50px;
    text-align: center;
}

.casino-card-logo {
    width: 120px;
    flex-shrink: 0;
}

.casino-card-logo img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.casino-card-info {
    flex: 1;
}

.casino-card-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.casino-card-bonus {
    color: var(--cta);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 6px;
}

.casino-card-features {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.casino-card-rating {
    text-align: center;
    min-width: 80px;
}

.casino-card-rating .stars {
    color: var(--secondary);
    font-size: 1.2rem;
}

.casino-card-rating .score {
    font-family: 'Oswald', sans-serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-primary);
}

.casino-card-cta {
    min-width: 140px;
    text-align: center;
}

.casino-rg-banner {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px 24px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 30px 0;
}

.casino-rg-banner strong {
    color: var(--primary);
}

/* ===== PLAY/GAME TEMPLATE ===== */
.game-embed-wrapper {
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.game-embed-wrapper iframe {
    width: 100%;
    height: 600px;
    border: none;
    display: block;
}

.game-info-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: var(--header-bg);
    color: #fff;
    font-size: 0.9rem;
}

.game-info-bar .provider {
    color: var(--secondary);
    font-weight: 600;
}

.game-rg-notice {
    background: var(--card-bg);
    border-left: 4px solid var(--primary);
    padding: 14px 20px;
    margin-top: 24px;
    font-size: 0.88rem;
    border-radius: 0 8px 8px 0;
}

/* ===== 404 PAGE ===== */
.error-404 {
    text-align: center;
    padding: 80px 20px;
}

.error-404 .error-code {
    font-family: 'Oswald', sans-serif;
    font-size: 8rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    opacity: 0.15;
}

.error-404 h1 {
    margin-top: -30px;
    font-size: 2rem;
}

.error-404 p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin: 16px 0 30px;
}

/* ===== SEARCH FORM ===== */
.search-form {
    display: flex;
    max-width: 500px;
}

.search-form .search-field {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-right: none;
    border-radius: 6px 0 0 6px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.2s;
}

.search-form .search-field:focus {
    border-color: var(--primary);
}

.search-form .search-submit {
    padding: 12px 20px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    transition: background 0.2s;
}

.search-form .search-submit:hover {
    background: var(--primary-dark);
}

/* ===== PAGINATION ===== */
.nav-links {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
}

.nav-links a,
.nav-links span {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.92rem;
}

.nav-links a {
    background: #fff;
    border: 1px solid var(--border);
    color: var(--text-primary);
}

.nav-links a:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.nav-links .current {
    background: var(--primary);
    color: #fff;
    border: 1px solid var(--primary);
}

/* ===== SIDEBAR ===== */
.content-sidebar-wrap {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
}

.sidebar .widget {
    background: #fff;
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border: 1px solid #eee;
}

.sidebar .widget-title {
    font-size: 1.1rem;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary);
}

.sidebar .widget ul {
    list-style: none;
}

.sidebar .widget li {
    padding: 8px 0;
    border-bottom: 1px solid var(--card-bg);
}

.sidebar .widget li:last-child {
    border-bottom: none;
}

.sidebar .widget a {
    color: var(--text-primary);
    font-size: 0.92rem;
}

.sidebar .widget a:hover {
    color: var(--primary);
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--footer-bg);
    color: #aaa;
    padding: 50px 0 20px;
    margin-top: 60px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: var(--secondary);
    font-size: 1.05rem;
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 8px;
}

.footer-col a {
    color: #aaa;
    font-size: 0.9rem;
}

.footer-col a:hover {
    color: var(--secondary);
}

.footer-col p {
    font-size: 0.9rem;
    line-height: 1.6;
}

.rg-notice {
    border-top: 1px solid #333;
    padding: 20px 0;
    text-align: center;
    font-size: 0.85rem;
    line-height: 1.8;
}

.rg-notice strong {
    color: #fff;
}

.rg-logos {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.rg-logos a {
    color: #aaa;
    font-size: 0.82rem;
    padding: 6px 14px;
    border: 1px solid #444;
    border-radius: 4px;
    transition: border-color 0.2s;
}

.rg-logos a:hover {
    border-color: var(--secondary);
    color: var(--secondary);
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    margin-top: 20px;
    text-align: center;
    font-size: 0.8rem;
}

/* ===== SVG INFOGRAPHIC ===== */
.infographic-wrap {
    margin: 2em 0;
    text-align: center;
}

.infographic-wrap svg {
    max-width: 100%;
    height: auto;
}

.infographic-wrap figcaption {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 8px;
    font-style: italic;
}

/* ===== FAQ SECTION ===== */
.faq-section {
    margin-top: 2em;
}

.faq-item {
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
}

.faq-item h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

.faq-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .content-sidebar-wrap {
        grid-template-columns: 1fr;
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.4rem; }
    body { font-size: 16px; }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--header-bg);
        box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .main-nav > ul > li > a {
        padding: 14px 20px;
        border-bottom: 1px solid #222;
    }

    .main-nav .sub-menu {
        position: static;
        box-shadow: none;
        border-radius: 0;
        background: #151515;
    }

    .main-nav > ul > li:hover > .sub-menu {
        display: block;
    }

    .main-nav .sub-menu li a {
        padding-left: 40px;
    }

    .casino-card {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .casino-card-rank {
        font-size: 1.4rem;
    }

    .game-embed-wrapper iframe {
        height: 400px;
    }

    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .page-header-hero {
        padding: 40px 20px;
    }

    .page-header-hero h1 {
        font-size: 1.8rem;
    }

    .error-404 .error-code {
        font-size: 5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 14px;
    }

    .game-embed-wrapper iframe {
        height: 300px;
    }

    .entry-title {
        font-size: 1.6rem;
    }

    .btn-lg {
        padding: 14px 28px;
        font-size: 1rem;
    }
}

/* ===== AUTHOR PAGE ===== */
.author-hero {
    background: linear-gradient(135deg, var(--header-bg), #2C2C2C);
    padding: 50px 0;
    margin: -20px -20px 40px;
    padding-left: 20px;
    padding-right: 20px;
}

.author-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    gap: 30px;
}

.author-avatar-large {
    border-radius: 50%;
    border: 4px solid var(--secondary);
    object-fit: cover;
    flex-shrink: 0;
}

.author-hero-info h1 {
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.author-bio-full {
    color: #ccc;
    line-height: 1.8;
    font-size: 1rem;
    margin-bottom: 20px;
}

.author-bio-full p {
    margin-bottom: 10px;
}

.author-credentials {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.credential-badge {
    background: rgba(196, 160, 53, 0.2);
    color: var(--secondary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(196, 160, 53, 0.4);
}

.author-posts-section h2 {
    margin-bottom: 25px;
}

/* ===== AUTHOR BOX (Single Post) ===== */
.author-box {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 25px;
    margin-top: 40px;
}

.author-box-inner {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.author-box-avatar {
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.author-box-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    font-weight: 600;
}

.author-box-info h3 {
    margin: 4px 0 8px;
    font-size: 1.2rem;
}

.author-box-info h3 a {
    color: var(--text-primary);
}

.author-box-info h3 a:hover {
    color: var(--primary);
}

.author-box-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .author-hero-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .author-hero-info h1 {
        font-size: 1.4rem;
    }
    .author-credentials {
        justify-content: center;
    }
    .author-box-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* ==========================================================================
   Game Page Styles (page-play.php)
   ========================================================================== */

.game-page .entry-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.game-embed-wrapper {
    max-width: 960px;
    margin: 0 auto 2rem;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.game-embed-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: #111;
}

.game-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.game-embed-controls {
    display: flex;
    justify-content: flex-end;
    padding: 0.5rem 1rem;
    background: #1a1a1a;
}

.fullscreen-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 0.4rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.2s;
}

.fullscreen-btn:hover {
    background: var(--primary-dark);
}

.game-content {
    max-width: 800px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.game-info-box {
    max-width: 800px;
    margin: 0 auto 2rem;
    background: var(--card-bg);
    border-left: 4px solid var(--secondary);
    border-radius: 8px;
    padding: 1.5rem 2rem;
}

.game-info-box h2 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: var(--primary);
}

.game-info-box ul {
    list-style: disc;
    padding-left: 1.2rem;
}

.game-info-box li {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.game-rg-notice {
    max-width: 800px;
    margin: 0 auto 2rem;
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
    background: #FFF8E1;
    border: 1px solid #FFD54F;
    border-radius: 8px;
    padding: 1.2rem 1.5rem;
}

.rg-icon {
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    min-width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rg-text p {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 0.5rem;
}

.rg-links a {
    color: var(--primary);
    text-decoration: underline;
    font-weight: 500;
}

@media (max-width: 768px) {
    .game-embed-wrapper {
        border-radius: 0;
        margin-left: -1rem;
        margin-right: -1rem;
    }
    .game-rg-notice {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .game-info-box {
        padding: 1rem 1.2rem;
    }
}

.oc-infographic {
    margin: 2.5em 0;
    text-align: center;
    background: #FAFAFA;
    border-radius: 6px;
    overflow: hidden;
}

.oc-infographic img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.oc-infographic figcaption {
    font-size: 0.85rem;
    color: #555555;
    padding: 10px 16px;
    font-style: italic;
    border-top: 1px solid #E0E0E0;
    background: #F5F5F5;
}

/* ==========================================================================
   HOMEPAGE SECTIONS (front-page.php)
   ========================================================================== */

/* --- Hero --- */
.hp-hero {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a0a0a 40%, #0a0a0a 100%);
    color: #fff;
    text-align: center;
    padding: 80px 20px 60px;
    position: relative;
    overflow: hidden;
}

.hp-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at center, rgba(178,34,34,0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hp-hero-inner {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hp-hero-dice {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.dice {
    display: inline-block;
    animation: diceFloat 3s ease-in-out infinite;
    text-shadow: 0 0 20px rgba(178,34,34,0.6);
}

.dice-2 {
    animation-delay: -1.5s;
}

@keyframes diceFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

.hp-hero h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.6rem;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hp-hero-sub {
    font-size: 1.1rem;
    color: #ccc;
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.hp-hero-ctas {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

.btn-cta {
    background: var(--cta);
    color: #fff;
}

.btn-cta:hover {
    background: var(--cta-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(39,174,96,0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--secondary);
    border: 2px solid var(--secondary);
}

.btn-secondary:hover {
    background: var(--secondary);
    color: #000;
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 12px 28px;
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}

.hp-hero-trust {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
}

.hp-hero-trust span {
    font-size: 0.85rem;
    color: #999;
    padding: 4px 12px;
    border: 1px solid #333;
    border-radius: 20px;
}

/* --- Sections --- */
.hp-section {
    padding: 60px 0;
}

.hp-section:nth-child(even) {
    background: #fff;
}

.hp-section h2 {
    text-align: center;
    margin-bottom: 0.5rem;
    font-size: 2rem;
}

.section-intro {
    text-align: center;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 2.5rem;
    font-size: 1.05rem;
}

/* --- Games Grid --- */
.hp-game-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.hp-game-card {
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.hp-game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.hp-game-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.hp-game-thumb {
    position: relative;
    overflow: hidden;
}

.hp-game-thumb img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.hp-game-card:hover .hp-game-thumb img {
    transform: scale(1.05);
}

.hp-game-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--cta);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
}

.hp-game-info {
    padding: 20px;
}

.hp-game-info h3 {
    margin-bottom: 4px;
    font-size: 1.2rem;
}

.hp-game-provider {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 8px;
}

.hp-game-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.5;
}

.hp-game-info .btn-sm {
    background: var(--primary);
    color: #fff;
    display: inline-block;
    text-decoration: none;
}

.hp-game-info .btn-sm:hover {
    background: var(--primary-dark);
}

/* --- Learn Grid --- */
.hp-learn-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.hp-learn-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
    display: block;
    border: 1px solid var(--border);
}

.hp-learn-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    border-color: var(--secondary);
}

.hp-learn-thumb img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.hp-learn-info {
    padding: 20px;
}

.hp-learn-info h3 {
    font-size: 1.15rem;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.hp-learn-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 10px;
}

.hp-learn-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
}

/* --- Casino Cards --- */
.hp-casino-list {
    max-width: 900px;
    margin: 0 auto 2rem;
}

.hp-casino-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 14px;
    transition: box-shadow 0.2s, transform 0.2s;
}

.hp-casino-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.hp-casino-card.featured {
    border: 2px solid var(--secondary);
    background: linear-gradient(135deg, #fff 0%, #fefbf0 100%);
}

.hp-casino-rank {
    font-family: 'Oswald', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--secondary);
    min-width: 40px;
    text-align: center;
}

.hp-casino-logo {
    flex-shrink: 0;
}

.hp-casino-logo img {
    width: 100px;
    height: 50px;
    object-fit: contain;
    border-radius: 6px;
    background: #f9f9f9;
    padding: 4px;
}

.hp-casino-details {
    flex: 1;
}

.hp-casino-details h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.hp-casino-bonus {
    font-size: 0.9rem;
    color: var(--cta);
    font-weight: 600;
    margin-bottom: 6px;
}

.hp-casino-features {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.hp-casino-feat {
    font-size: 0.75rem;
    background: var(--card-bg);
    padding: 2px 8px;
    border-radius: 4px;
    color: var(--text-secondary);
}

.hp-casino-action {
    text-align: center;
    flex-shrink: 0;
}

.hp-casino-rating {
    margin-bottom: 8px;
}

.hp-rating-num {
    font-family: 'Oswald', sans-serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--secondary);
    display: block;
    line-height: 1;
}

.hp-rating-stars {
    font-size: 0.8rem;
    color: var(--secondary);
}

.hp-casino-more {
    text-align: center;
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.hp-rg-inline {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 1rem;
}

.hp-rg-inline a {
    color: var(--text-secondary);
    text-decoration: underline;
}

/* --- Strategy Grid --- */
.hp-strategy-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.hp-strat-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
    display: block;
    border: 1px solid var(--border);
}

.hp-strat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    border-color: var(--primary);
}

.hp-strat-thumb img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}

.hp-strat-info {
    padding: 16px;
}

.hp-strat-info h3 {
    font-size: 1rem;
    margin-bottom: 6px;
}

.hp-strat-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 8px;
}

.hp-strat-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
}

/* --- Data & History --- */
.hp-data-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 2rem;
}

.hp-data-infographic img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.hp-data-caption {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 8px;
    font-style: italic;
}

.hp-data-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hp-data-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px 20px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    display: block;
}

.hp-data-card:hover {
    border-color: var(--secondary);
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.hp-data-card h3 {
    font-size: 1rem;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.hp-data-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
    line-height: 1.4;
}

.hp-data-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
}

.hp-data-variants {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.hp-data-variants h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.hp-variant-tags {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.hp-tag {
    display: inline-block;
    padding: 8px 20px;
    border: 1px solid var(--border);
    border-radius: 24px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s;
}

.hp-tag:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* --- Latest Articles --- */
.hp-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.hp-article-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
    display: block;
    border: 1px solid var(--border);
}

.hp-article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.hp-article-thumb img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.hp-article-info {
    padding: 20px;
}

.hp-article-cat {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--primary);
    letter-spacing: 0.05em;
    margin-bottom: 6px;
    display: block;
}

.hp-article-info h3 {
    font-size: 1.05rem;
    margin-bottom: 6px;
    color: var(--text-primary);
    line-height: 1.3;
}

.hp-article-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 8px;
}

.hp-article-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
}

/* --- Online Resources --- */
.hp-online-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.hp-online-card {
    background: linear-gradient(135deg, #f5f5f5 0%, #fff 100%);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 24px 20px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    display: block;
    text-align: center;
}

.hp-online-card:hover {
    border-color: var(--cta);
    box-shadow: 0 4px 16px rgba(39,174,96,0.12);
}

.hp-online-card h3 {
    font-size: 1.05rem;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.hp-online-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* --- RG Box --- */
.hp-rg {
    background: var(--card-bg) !important;
}

.hp-rg-box {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    background: #fff;
    border: 1px solid #FFD54F;
    border-radius: 12px;
    padding: 28px 32px;
    max-width: 800px;
    margin: 0 auto;
}

.hp-rg-icon {
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: 1.2rem;
    min-width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hp-rg-content h3 {
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.hp-rg-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
}

.hp-rg-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.hp-rg-links a {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: underline;
}

.hp-rg-phone {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hp-strategy-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hp-online-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hp-hero {
        padding: 50px 16px 40px;
    }
    .hp-hero h1 {
        font-size: 1.8rem;
    }
    .hp-hero-sub {
        font-size: 0.95rem;
    }
    .hp-hero-dice {
        font-size: 3rem;
    }
    .hp-hero-ctas {
        flex-direction: column;
        align-items: center;
    }
    .hp-hero-trust {
        flex-direction: column;
        gap: 8px;
    }
    .hp-section {
        padding: 40px 0;
    }
    .hp-section h2 {
        font-size: 1.5rem;
    }
    .hp-game-grid,
    .hp-learn-grid,
    .hp-articles-grid {
        grid-template-columns: 1fr;
    }
    .hp-strategy-grid {
        grid-template-columns: 1fr;
    }
    .hp-online-grid {
        grid-template-columns: 1fr;
    }
    .hp-data-layout {
        grid-template-columns: 1fr;
    }
    .hp-casino-card {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    .hp-casino-features {
        justify-content: center;
    }
    .hp-casino-more {
        flex-direction: column;
        align-items: center;
    }
    .hp-rg-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
    }
    .hp-rg-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hp-hero h1 {
        font-size: 1.5rem;
    }
    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
}
