/*
Theme Name: Slot777JP
Theme URI: https://writingacoursework.com
Author: Slot777JP Team
Description: Tema blog kasino mewah gelap - Platform ulasan slot & kasino profesional
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: slot777jp
*/

/* ==========================================================================
   CSS Variables - Dark Casino Design System
   ========================================================================== */
:root {
    /* Brand Colors */
    --s7-black: #0a0a0a;
    --s7-black-light: #141414;
    --s7-black-card: #1a1a1a;
    --s7-black-hover: #222222;
    --s7-gold: #FFD700;
    --s7-gold-dark: #C7A600;
    --s7-gold-light: #FFE44D;
    --s7-red: #E63946;
    --s7-red-dark: #C62828;
    --s7-red-light: #FF6B6B;
    --s7-white: #F5F5F5;
    --s7-gray: #888888;
    --s7-gray-dark: #555555;
    --s7-gray-light: #AAAAAA;
    --s7-border: #2a2a2a;
    --s7-border-gold: rgba(255, 215, 0, 0.2);

    /* Typography */
    --s7-font-heading: 'Oswald', sans-serif;
    --s7-font-body: 'Roboto', sans-serif;

    /* Type Scale */
    --s7-text-xs: 0.8125rem;
    --s7-text-sm: 0.875rem;
    --s7-text-base: 1rem;
    --s7-text-lg: 1.125rem;
    --s7-text-xl: 1.25rem;
    --s7-text-2xl: 1.5rem;
    --s7-text-3xl: 1.875rem;
    --s7-text-4xl: 2.25rem;
    --s7-text-5xl: 3rem;

    /* Spacing (8px grid) */
    --s7-space-1: 0.25rem;
    --s7-space-2: 0.5rem;
    --s7-space-3: 0.75rem;
    --s7-space-4: 1rem;
    --s7-space-5: 1.25rem;
    --s7-space-6: 1.5rem;
    --s7-space-8: 2rem;
    --s7-space-10: 2.5rem;
    --s7-space-12: 3rem;
    --s7-space-16: 4rem;
    --s7-space-20: 5rem;

    /* Layout */
    --s7-container: 1200px;
    --s7-gap: var(--s7-space-6);
    --s7-radius: 8px;
    --s7-radius-lg: 12px;

    /* Shadows */
    --s7-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    --s7-shadow-gold: 0 4px 20px rgba(255, 215, 0, 0.15);
    --s7-shadow-red: 0 4px 20px rgba(230, 57, 70, 0.2);

    /* Transitions */
    --s7-transition: 0.3s ease;
    --s7-transition-fast: 0.15s ease;
}

/* ==========================================================================
   Base Reset & Typography
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--s7-font-body);
    background: var(--s7-black);
    color: var(--s7-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a { color: var(--s7-gold); text-decoration: none; transition: color var(--s7-transition-fast); }
a:hover { color: var(--s7-gold-light); }

img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--s7-font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--s7-white);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

h1 { font-size: clamp(var(--s7-text-4xl), 5vw, var(--s7-text-5xl)); }
h2 { font-size: clamp(var(--s7-text-3xl), 4vw, var(--s7-text-4xl)); }
h3 { font-size: var(--s7-text-2xl); }
h4 { font-size: var(--s7-text-xl); }

p { margin-bottom: var(--s7-space-6); line-height: 1.7; }

::selection { background: var(--s7-gold); color: var(--s7-black); }

/* Screen reader */
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

.skip-link:focus {
    position: fixed;
    top: var(--s7-space-2);
    left: var(--s7-space-2);
    width: auto;
    height: auto;
    padding: var(--s7-space-3) var(--s7-space-5);
    background: var(--s7-gold);
    color: var(--s7-black);
    font-weight: 700;
    z-index: 10000;
    clip: auto;
    overflow: visible;
    margin: 0;
}

/* Meta item (icon + text) */
.meta-item {
    display: inline-flex;
    align-items: center;
    gap: var(--s7-space-1);
}

.meta-item svg {
    flex-shrink: 0;
}

/* ==========================================================================
   Layout
   ========================================================================== */
.container { max-width: var(--s7-container); margin: 0 auto; padding: 0 var(--s7-space-4); }
.row { display: flex; flex-wrap: wrap; gap: var(--s7-gap); }
.col-8 { flex: 0 0 calc(66.666% - var(--s7-gap) / 2); }
.col-4 { flex: 0 0 calc(33.333% - var(--s7-gap) / 2); }

@media (max-width: 1024px) {
    .col-8, .col-4 { flex: 0 0 100%; }
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--s7-black);
    border-bottom: 1px solid var(--s7-border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--s7-space-4) 0;
    gap: var(--s7-space-4);
}

.site-logo {
    font-family: var(--s7-font-heading);
    font-size: var(--s7-text-3xl);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

.site-logo a { color: var(--s7-white); }
.site-logo .logo-accent { color: var(--s7-gold); }

.site-logo-text {
    font-family: var(--s7-font-heading);
    font-size: var(--s7-text-3xl);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--s7-white);
}

/* Navigation */
.main-nav { flex: 1; }
.main-nav ul,
.main-nav .nav-menu {
    display: flex;
    align-items: center;
    gap: var(--s7-space-6);
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav a {
    font-family: var(--s7-font-heading);
    font-size: var(--s7-text-base);
    font-weight: 500;
    color: var(--s7-gray-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: var(--s7-space-2) 0;
    position: relative;
    text-decoration: none;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--s7-gold);
    transition: width var(--s7-transition);
}

.main-nav a:hover,
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a {
    color: var(--s7-gold);
}

.main-nav a:hover::after,
.main-nav .current-menu-item > a::after,
.main-nav .current_page_item > a::after {
    width: 100%;
}

.main-nav .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--s7-surface);
    border: 1px solid var(--s7-border);
    border-radius: var(--s7-radius);
    padding: var(--s7-space-2) 0;
    min-width: 200px;
    z-index: 100;
}

.main-nav li:hover > .sub-menu { display: block; }
.main-nav .sub-menu a {
    padding: var(--s7-space-3) var(--s7-space-4);
    font-size: var(--s7-text-sm);
    text-transform: none;
}

.main-nav li { position: relative; }

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--s7-space-3);
    flex-shrink: 0;
}

.search-toggle,
.btn-search {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid var(--s7-border);
    border-radius: var(--s7-radius);
    color: var(--s7-gray-light);
    cursor: pointer;
    transition: all var(--s7-transition-fast);
}

.search-toggle:hover,
.btn-search:hover {
    border-color: var(--s7-gold);
    color: var(--s7-gold);
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: var(--s7-space-2);
    padding: var(--s7-space-3) var(--s7-space-6);
    background: linear-gradient(135deg, var(--s7-gold), var(--s7-gold-dark));
    color: var(--s7-black) !important;
    font-family: var(--s7-font-heading);
    font-size: var(--s7-text-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
    border-radius: var(--s7-radius);
    cursor: pointer;
    transition: all var(--s7-transition);
    min-height: 44px;
}

.btn-cta:hover {
    background: linear-gradient(135deg, var(--s7-gold-light), var(--s7-gold));
    color: var(--s7-black) !important;
    box-shadow: var(--s7-shadow-gold);
    transform: translateY(-1px);
}

.btn-lg {
    padding: var(--s7-space-4) var(--s7-space-8);
    font-size: var(--s7-text-base);
    min-height: 52px;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    background: none;
    border: 1px solid var(--s7-border);
    border-radius: var(--s7-radius);
    cursor: pointer;
    position: relative;
}

.menu-toggle .hamburger,
.menu-toggle .hamburger::before,
.menu-toggle .hamburger::after {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--s7-white);
    transition: all var(--s7-transition);
    position: absolute;
}

.menu-toggle .hamburger::before,
.menu-toggle .hamburger::after {
    content: '';
}

.menu-toggle .hamburger::before { top: -6px; }
.menu-toggle .hamburger::after { top: 6px; }

.menu-toggle.is-active .hamburger { background: transparent; }
.menu-toggle.is-active .hamburger::before { top: 0; transform: rotate(45deg); }
.menu-toggle.is-active .hamburger::after { top: 0; transform: rotate(-45deg); }

/* Search Overlay */
.search-overlay[hidden] {
    display: none;
}

.search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--s7-transition);
    z-index: 9999;
}

.search-overlay input {
    width: 80%;
    max-width: 600px;
    padding: var(--s7-space-5);
    font-size: var(--s7-text-3xl);
    font-family: var(--s7-font-heading);
    background: transparent;
    border: none;
    border-bottom: 3px solid var(--s7-gold);
    color: var(--s7-white);
    outline: none;
    text-transform: uppercase;
}

.search-overlay input::placeholder { color: var(--s7-gray-dark); }

.search-close {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--s7-gray);
    background: none;
    border: 1px solid var(--s7-border);
    border-radius: var(--s7-radius);
    cursor: pointer;
}

/* ==========================================================================
   Breaking News Ticker
   ========================================================================== */
.news-ticker {
    background: var(--s7-black-light);
    border-bottom: 1px solid var(--s7-border);
    overflow: hidden;
    position: relative;
    height: 40px;
}

.ticker-label {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 var(--s7-space-4);
    background: var(--s7-red);
    color: var(--s7-white);
    font-family: var(--s7-font-heading);
    font-size: var(--s7-text-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 2;
    white-space: nowrap;
}

.ticker-label::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 0;
    width: 20px;
    height: 100%;
    background: var(--s7-red);
    transform: skewX(-15deg);
}

.ticker-track {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.ticker-content {
    display: flex;
    align-items: center;
    height: 100%;
    padding-left: 140px;
    animation: ticker-scroll 30s linear infinite;
}

.ticker-content:hover { animation-play-state: paused; }

.ticker-item {
    white-space: nowrap;
    padding: 0 var(--s7-space-8);
    font-size: var(--s7-text-sm);
    color: var(--s7-gray-light);
}

.ticker-item a { color: var(--s7-gray-light); }
.ticker-item a:hover { color: var(--s7-gold); }
.ticker-item .dot { color: var(--s7-gold); margin: 0 var(--s7-space-3); }

@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--s7-black) 0%, #1a0a0a 50%, var(--s7-black) 100%);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.3;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(10,10,10,0.95) 0%, rgba(10,10,10,0.6) 50%, rgba(10,10,10,0.3) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
    padding: var(--s7-space-16) 0;
}

.hero-badge {
    display: inline-block;
    padding: var(--s7-space-2) var(--s7-space-4);
    background: var(--s7-red);
    color: var(--s7-white);
    font-family: var(--s7-font-heading);
    font-size: var(--s7-text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: var(--s7-radius);
    margin-bottom: var(--s7-space-4);
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: var(--s7-space-4);
    line-height: 1.1;
}

.hero-title .gold { color: var(--s7-gold); }

.hero-subtitle,
.hero-text {
    font-size: var(--s7-text-lg);
    color: var(--s7-gray-light);
    margin-bottom: var(--s7-space-8);
    line-height: 1.7;
}

.hero-actions { display: flex; gap: var(--s7-space-4); flex-wrap: wrap; }

.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: var(--s7-space-2);
    padding: var(--s7-space-4) var(--s7-space-8);
    font-family: var(--s7-font-heading);
    font-size: var(--s7-text-base);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--s7-radius);
    border: none;
    cursor: pointer;
    transition: all var(--s7-transition);
    min-height: 52px;
}

.btn-hero-primary {
    background: linear-gradient(135deg, var(--s7-gold), var(--s7-gold-dark));
    color: var(--s7-black);
}

.btn-hero-primary:hover {
    box-shadow: var(--s7-shadow-gold);
    transform: translateY(-2px);
    color: var(--s7-black);
}

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

.btn-hero-outline:hover {
    background: var(--s7-gold);
    color: var(--s7-black);
}

/* Decorative elements */
.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,215,0,0.08) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
}

/* ==========================================================================
   Section Headers
   ========================================================================== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--s7-space-8);
    gap: var(--s7-space-4);
}

.section-title {
    font-size: var(--s7-text-2xl);
    position: relative;
    padding-left: var(--s7-space-4);
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--s7-gold), var(--s7-red));
    border-radius: 2px;
}

.section-link {
    display: inline-flex;
    align-items: center;
    gap: var(--s7-space-2);
    padding: var(--s7-space-2) var(--s7-space-4);
    font-family: var(--s7-font-heading);
    font-size: var(--s7-text-sm);
    font-weight: 600;
    color: var(--s7-gold);
    border: 1px solid var(--s7-border-gold);
    border-radius: var(--s7-radius);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    transition: all var(--s7-transition-fast);
}

.section-link:hover {
    background: var(--s7-gold);
    color: var(--s7-black);
    border-color: var(--s7-gold);
}

/* ==========================================================================
   Posts Section
   ========================================================================== */
.posts-section {
    padding: var(--s7-space-12) 0;
    border-bottom: 1px solid var(--s7-border);
}

.posts-section:last-child { border-bottom: none; }

/* ==========================================================================
   Featured Post (Homepage Full Article)
   ========================================================================== */
.featured-post-section {
    padding: var(--s7-space-12) 0;
    border-bottom: 1px solid var(--s7-border);
}

.featured-post-header {
    margin-bottom: var(--s7-space-8);
}

.featured-post-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    line-height: 1.2;
    margin-bottom: var(--s7-space-4);
}

.featured-post-title a {
    color: var(--s7-white);
    transition: color var(--s7-transition-fast);
}

.featured-post-title a:hover {
    color: var(--s7-gold);
}

.featured-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s7-space-4);
    color: var(--s7-gray);
    font-size: var(--s7-text-sm);
}

.featured-post-image {
    margin-bottom: var(--s7-space-8);
    border-radius: var(--s7-radius-lg);
    overflow: hidden;
}

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

.featured-post-content {
    max-width: 800px;
    margin-bottom: var(--s7-space-8);
}

.featured-post-readmore {
    padding-top: var(--s7-space-6);
    border-top: 1px solid var(--s7-border);
}

/* ==========================================================================
   Posts Link List (Homepage)
   ========================================================================== */
.posts-list-section {
    padding: var(--s7-space-12) 0;
}

.posts-link-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.posts-link-item {
    border-bottom: 1px solid var(--s7-border);
}

.posts-link-item:last-child {
    border-bottom: none;
}

.posts-link-anchor {
    display: flex;
    align-items: center;
    gap: var(--s7-space-4);
    padding: var(--s7-space-4) 0;
    color: var(--s7-white);
    transition: all var(--s7-transition-fast);
    min-height: 48px;
}

.posts-link-anchor:hover {
    color: var(--s7-gold);
    padding-left: var(--s7-space-2);
}

.posts-link-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 54px;
    border-radius: var(--s7-radius);
    overflow: hidden;
    background: var(--s7-black-card);
}

.posts-link-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.posts-link-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.posts-link-title {
    font-family: var(--s7-font-heading);
    font-size: var(--s7-text-lg);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.posts-link-meta {
    font-size: var(--s7-text-xs);
    color: var(--s7-gray);
}

.posts-link-sep {
    margin: 0 var(--s7-space-1);
}

.posts-link-anchor .badge {
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .posts-link-thumb {
        width: 60px;
        height: 40px;
    }
    .posts-link-title {
        font-size: var(--s7-text-base);
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s7-gap);
}

@media (max-width: 1024px) { .posts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .posts-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Post Card
   ========================================================================== */
.post-card {
    background: var(--s7-black-card);
    border: 1px solid var(--s7-border);
    border-radius: var(--s7-radius-lg);
    overflow: hidden;
    transition: all var(--s7-transition);
}

.post-card:hover {
    transform: translateY(-4px);
    border-color: var(--s7-border-gold);
    box-shadow: var(--s7-shadow-gold);
}

.post-card .post-card-thumb {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
    background: var(--s7-black-light);
}

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

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

/* Badges */
.badge {
    position: absolute;
    top: var(--s7-space-3);
    left: var(--s7-space-3);
    padding: var(--s7-space-1) var(--s7-space-3);
    font-family: var(--s7-font-heading);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 4px;
    z-index: 2;
}

.badge-hot { background: var(--s7-red); color: var(--s7-white); }
.badge-new { background: var(--s7-gold); color: var(--s7-black); }
.badge-promo { background: linear-gradient(135deg, var(--s7-gold), var(--s7-red)); color: var(--s7-white); }

.post-card-cat {
    position: absolute;
    bottom: var(--s7-space-3);
    left: var(--s7-space-3);
    padding: var(--s7-space-1) var(--s7-space-3);
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(4px);
    color: var(--s7-gold);
    font-family: var(--s7-font-heading);
    font-size: var(--s7-text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 4px;
    border: 1px solid var(--s7-border-gold);
}

.post-card .post-card-body { padding: var(--s7-space-5); }

.post-card .post-card-title {
    font-size: var(--s7-text-xl);
    text-transform: none;
    letter-spacing: 0;
    margin-bottom: var(--s7-space-3);
    line-height: 1.3;
}

.post-card .post-card-title a { color: var(--s7-white); }
.post-card .post-card-title a:hover { color: var(--s7-gold); }

.post-card .post-card-excerpt {
    font-size: var(--s7-text-sm);
    color: var(--s7-gray);
    line-height: 1.6;
    margin-bottom: var(--s7-space-4);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card .post-card-meta {
    display: flex;
    align-items: center;
    gap: var(--s7-space-4);
    font-size: var(--s7-text-xs);
    color: var(--s7-gray-dark);
}

.post-card .post-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: var(--s7-space-1);
}

/* ==========================================================================
   Content + Sidebar Layout
   ========================================================================== */
.content-with-sidebar {
    display: flex;
    gap: var(--s7-space-8);
}

.content-main { flex: 1; min-width: 0; }

.sidebar {
    width: 320px;
    flex-shrink: 0;
}

/* ==========================================================================
   Sidebar Widgets
   ========================================================================== */
.sidebar .widget {
    background: var(--s7-black-card);
    border: 1px solid var(--s7-border);
    border-radius: var(--s7-radius-lg);
    padding: var(--s7-space-6);
    margin-bottom: var(--s7-space-6);
}

.sidebar .widget-title {
    font-size: var(--s7-text-xl);
    margin-bottom: var(--s7-space-5);
    padding-bottom: var(--s7-space-3);
    border-bottom: 2px solid var(--s7-gold);
    text-transform: uppercase;
}

/* Popular Posts Widget */
.popular-post-item {
    display: flex;
    gap: var(--s7-space-4);
    padding: var(--s7-space-4) 0;
    border-bottom: 1px solid var(--s7-border);
}

.popular-post-item:last-child { border-bottom: none; }

.popular-post-num {
    font-family: var(--s7-font-heading);
    font-size: var(--s7-text-3xl);
    font-weight: 900;
    color: var(--s7-border);
    line-height: 1;
    min-width: 40px;
}

.popular-post-item:nth-child(1) .popular-post-num { color: var(--s7-gold); }
.popular-post-item:nth-child(2) .popular-post-num { color: var(--s7-gray-light); }
.popular-post-item:nth-child(3) .popular-post-num { color: var(--s7-red); }

.popular-post-title {
    font-size: var(--s7-text-sm);
    font-weight: 500;
    line-height: 1.4;
}

.popular-post-title a { color: var(--s7-gray-light); }
.popular-post-title a:hover { color: var(--s7-gold); }

.popular-post-date {
    font-size: var(--s7-text-xs);
    color: var(--s7-gray-dark);
    margin-top: var(--s7-space-1);
}

/* Ad Widget */
.widget-ad {
    padding: 0 !important;
    overflow: hidden;
    text-align: center;
    background: var(--s7-black-light) !important;
}

.widget-ad img { width: 100%; height: auto; }

/* Tags Cloud */
.tag-cloud { display: flex; flex-wrap: wrap; gap: var(--s7-space-2); }

.tag-cloud a {
    display: inline-block;
    padding: var(--s7-space-1) var(--s7-space-3);
    background: var(--s7-black-light);
    border: 1px solid var(--s7-border);
    border-radius: 4px;
    font-size: var(--s7-text-xs);
    color: var(--s7-gray-light);
    transition: all var(--s7-transition-fast);
}

.tag-cloud a:hover {
    background: var(--s7-gold);
    color: var(--s7-black);
    border-color: var(--s7-gold);
}

/* Horizontal Card (Sidebar) */
.card-horizontal {
    display: flex;
    gap: var(--s7-space-3);
    padding: var(--s7-space-3) 0;
    border-bottom: 1px solid var(--s7-border);
}

.card-horizontal:last-child { border-bottom: none; }

.card-h-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: var(--s7-radius);
    overflow: hidden;
}

.card-h-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-h-placeholder {
    width: 100%;
    height: 100%;
    background: var(--s7-black-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--s7-gray-dark);
}

.card-h-body { flex: 1; min-width: 0; }

.card-h-title {
    font-size: var(--s7-text-sm);
    font-weight: 500;
    line-height: 1.4;
    margin: 0 0 var(--s7-space-1);
}

.card-h-title a {
    color: var(--s7-gray-light);
    text-decoration: none;
}

.card-h-title a:hover { color: var(--s7-gold); }

.card-h-date {
    font-size: var(--s7-text-xs);
    color: var(--s7-gray-dark);
}

/* Search Form Overlay Inner */
.search-overlay-inner {
    width: 100%;
    max-width: 600px;
    padding: 0 var(--s7-space-4);
}

.search-form-overlay {
    display: flex;
    gap: var(--s7-space-3);
}

.search-form-overlay .search-input {
    flex: 1;
    padding: var(--s7-space-4) var(--s7-space-5);
    font-size: var(--s7-text-xl);
    font-family: var(--s7-font-heading);
    background: transparent;
    border: none;
    border-bottom: 3px solid var(--s7-gold);
    color: var(--s7-white);
    outline: none;
}

.search-form-overlay .search-input::placeholder { color: var(--s7-gray-dark); }

.search-submit-overlay {
    padding: var(--s7-space-3);
    background: var(--s7-gold);
    color: var(--s7-black);
    border: none;
    border-radius: var(--s7-radius);
    cursor: pointer;
    min-width: 48px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================================================
   Single Post
   ========================================================================== */
.single-header {
    padding: var(--s7-space-10) 0;
    border-bottom: 1px solid var(--s7-border);
}

.post-category-link {
    display: inline-block;
    padding: var(--s7-space-1) var(--s7-space-3);
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid var(--s7-border-gold);
    border-radius: 4px;
    color: var(--s7-gold);
    font-family: var(--s7-font-heading);
    font-size: var(--s7-text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--s7-space-4);
}

.breadcrumb {
    font-size: var(--s7-text-sm);
    color: var(--s7-gray-dark);
    margin-bottom: var(--s7-space-4);
}

.breadcrumb a { color: var(--s7-gray); }
.breadcrumb a:hover { color: var(--s7-gold); }
.breadcrumb-sep { margin: 0 var(--s7-space-2); color: var(--s7-gray-dark); }
.breadcrumb-list { display: flex; flex-wrap: wrap; align-items: center; list-style: none; margin: 0; padding: 0; }

.single-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    text-transform: none;
    letter-spacing: -0.01em;
    margin-bottom: var(--s7-space-4);
    max-width: 900px;
}

.single-meta {
    display: flex;
    align-items: center;
    gap: var(--s7-space-6);
    flex-wrap: wrap;
    font-size: var(--s7-text-sm);
    color: var(--s7-gray);
}

.single-meta span {
    display: inline-flex;
    align-items: center;
    gap: var(--s7-space-2);
}

.single-featured {
    margin-bottom: var(--s7-space-8);
}

.single-featured img {
    width: 100%;
    max-height: 550px;
    object-fit: cover;
    border-radius: var(--s7-radius-lg);
    border: 1px solid var(--s7-border);
}

/* Entry Content */
.entry-content {
    max-width: 100%;
    font-size: var(--s7-text-lg);
    line-height: 1.8;
}

.entry-content p { max-width: 800px; }
.entry-content h2, .entry-content h3, .entry-content h4 { max-width: 800px; margin: var(--s7-space-8) 0 var(--s7-space-4); text-transform: none; }
.entry-content h2 { font-size: var(--s7-text-3xl); }
.entry-content h3 { font-size: var(--s7-text-2xl); }
.entry-content h4 { font-size: var(--s7-text-xl); }

.entry-content img {
    margin: var(--s7-space-8) 0;
    border-radius: var(--s7-radius);
    width: 100%;
}

.entry-content a { color: var(--s7-gold); text-decoration: underline; text-underline-offset: 3px; }
.entry-content a:hover { color: var(--s7-gold-light); }

.entry-content blockquote {
    margin: var(--s7-space-8) 0;
    padding: var(--s7-space-6);
    background: var(--s7-black-light);
    border-left: 4px solid var(--s7-gold);
    border-radius: 0 var(--s7-radius) var(--s7-radius) 0;
    font-style: italic;
    color: var(--s7-gray-light);
}

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--s7-space-6) 0;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.entry-content th, .entry-content td {
    padding: var(--s7-space-3) var(--s7-space-4);
    text-align: left;
    border: 1px solid var(--s7-border);
}

.entry-content th {
    background: var(--s7-black-light);
    font-family: var(--s7-font-heading);
    color: var(--s7-gold);
    font-weight: 600;
}

.entry-content tbody tr:nth-child(even) { background: rgba(255,255,255,0.02); }

.entry-content ul, .entry-content ol { max-width: 800px; margin: var(--s7-space-6) 0; padding-left: var(--s7-space-6); }
.entry-content li { margin-bottom: var(--s7-space-3); list-style: disc; }
.entry-content ol li { list-style: decimal; }

.entry-content pre {
    background: var(--s7-black-light);
    padding: var(--s7-space-5);
    border-radius: var(--s7-radius);
    overflow-x: auto;
    font-size: var(--s7-text-sm);
    border: 1px solid var(--s7-border);
}

.entry-content code {
    background: var(--s7-black-light);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.9em;
}

/* Post Tags */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s7-space-2);
    margin: var(--s7-space-8) 0;
    padding-top: var(--s7-space-6);
    border-top: 1px solid var(--s7-border);
}

.post-tags a {
    padding: var(--s7-space-1) var(--s7-space-3);
    background: var(--s7-black-light);
    border: 1px solid var(--s7-border);
    border-radius: 4px;
    font-size: var(--s7-text-xs);
    color: var(--s7-gray-light);
}

.post-tags a:hover {
    border-color: var(--s7-gold);
    color: var(--s7-gold);
}

/* Related Posts */
.related-posts {
    padding: var(--s7-space-12) 0;
    border-top: 1px solid var(--s7-border);
}

/* Post Navigation */
.post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s7-space-6);
    margin: var(--s7-space-8) 0;
    padding: var(--s7-space-6) 0;
    border-top: 1px solid var(--s7-border);
    border-bottom: 1px solid var(--s7-border);
}

.post-nav-item { padding: var(--s7-space-4); background: var(--s7-black-light); border-radius: var(--s7-radius); }
.post-nav-label,
.nav-label { font-size: var(--s7-text-xs); color: var(--s7-gray-dark); text-transform: uppercase; margin-bottom: var(--s7-space-2); display: block; }
.post-nav-title { font-size: var(--s7-text-sm); color: var(--s7-gray-light); line-height: 1.4; }
.post-nav-title:hover { color: var(--s7-gold); }

@media (max-width: 640px) { .post-nav { grid-template-columns: 1fr; } }

/* ==========================================================================
   Custom Blocks
   ========================================================================== */

/* Block 1: Slot Review Table */
.slot-review-table {
    margin: var(--s7-space-8) 0;
    border: 1px solid var(--s7-border-gold);
    border-radius: var(--s7-radius-lg);
    overflow: hidden;
}

.slot-review-table .review-header {
    padding: var(--s7-space-5) var(--s7-space-6);
    background: linear-gradient(135deg, var(--s7-black-light), var(--s7-black-card));
    border-bottom: 2px solid var(--s7-gold);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.slot-review-table .review-header h3 {
    margin: 0;
    font-size: var(--s7-text-xl);
    text-transform: none;
}

.star-rating { color: var(--s7-gold); font-size: var(--s7-text-xl); letter-spacing: 2px; }
.star-rating .empty { color: var(--s7-gray-dark); }

.slot-review-table table {
    width: 100%;
    border-collapse: collapse;
}

.slot-review-table td {
    padding: var(--s7-space-4) var(--s7-space-6);
    border-bottom: 1px solid var(--s7-border);
}

.slot-review-table tr:last-child td { border-bottom: none; }

.slot-review-table .label {
    font-family: var(--s7-font-heading);
    font-weight: 600;
    color: var(--s7-gray);
    text-transform: uppercase;
    font-size: var(--s7-text-sm);
    width: 40%;
}

.slot-review-table .value {
    color: var(--s7-white);
    font-weight: 500;
}

.slot-review-table .value.highlight { color: var(--s7-gold); font-weight: 700; }

/* Block 2: Promotion Box */
.promo-box {
    margin: var(--s7-space-8) 0;
    padding: var(--s7-space-8);
    background: linear-gradient(135deg, rgba(230,57,70,0.15) 0%, rgba(255,215,0,0.15) 100%);
    border: 2px solid;
    border-image: linear-gradient(135deg, var(--s7-red), var(--s7-gold)) 1;
    border-radius: 0;
    position: relative;
    overflow: hidden;
}

.promo-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,215,0,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.promo-box .promo-badge {
    display: inline-block;
    padding: var(--s7-space-1) var(--s7-space-4);
    background: var(--s7-red);
    color: var(--s7-white);
    font-family: var(--s7-font-heading);
    font-size: var(--s7-text-xs);
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    margin-bottom: var(--s7-space-4);
}

.promo-box h3 {
    font-size: var(--s7-text-3xl);
    margin-bottom: var(--s7-space-3);
    text-transform: none;
}

.promo-box .bonus-value {
    font-family: var(--s7-font-heading);
    font-size: var(--s7-text-5xl);
    color: var(--s7-gold);
    font-weight: 900;
    margin-bottom: var(--s7-space-3);
}

.promo-box .promo-desc {
    font-size: var(--s7-text-base);
    color: var(--s7-gray-light);
    margin-bottom: var(--s7-space-6);
}

.promo-box .promo-deadline {
    font-size: var(--s7-text-sm);
    color: var(--s7-gray);
    margin-bottom: var(--s7-space-4);
}

.promo-box .btn-cta { font-size: var(--s7-text-base); padding: var(--s7-space-4) var(--s7-space-8); }

/* Block 3: FAQ Accordion */
.faq-accordion {
    margin: var(--s7-space-8) 0;
}

.faq-item {
    border: 1px solid var(--s7-border);
    border-radius: var(--s7-radius);
    margin-bottom: var(--s7-space-3);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: var(--s7-space-5) var(--s7-space-6);
    background: var(--s7-black-card);
    border: none;
    color: var(--s7-white);
    font-family: var(--s7-font-heading);
    font-size: var(--s7-text-base);
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background var(--s7-transition-fast);
}

.faq-question:hover { background: var(--s7-black-hover); }

.faq-question .faq-icon {
    font-size: var(--s7-text-xl);
    color: var(--s7-gold);
    transition: transform var(--s7-transition);
    flex-shrink: 0;
}

.faq-item.active .faq-question { border-bottom: 1px solid var(--s7-border); }
.faq-item.active .faq-icon { transform: rotate(45deg); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-answer-inner {
    padding: var(--s7-space-5) var(--s7-space-6);
    color: var(--s7-gray-light);
    line-height: 1.7;
    font-size: var(--s7-text-base);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background: var(--s7-black-light);
    border-top: 2px solid var(--s7-gold);
    padding: var(--s7-space-16) 0 0;
}

.footer-widgets {
    padding-bottom: var(--s7-space-8);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--s7-space-8);
    margin-bottom: var(--s7-space-12);
}

.footer-col h4 {
    font-size: var(--s7-text-xl);
    margin-bottom: var(--s7-space-5);
    color: var(--s7-gold);
}

.footer-col p {
    font-size: var(--s7-text-sm);
    color: var(--s7-gray);
    line-height: 1.7;
}

.footer-col ul li {
    margin-bottom: var(--s7-space-3);
}

.footer-col ul a {
    font-size: var(--s7-text-sm);
    color: var(--s7-gray);
    transition: color var(--s7-transition-fast);
}

.footer-col ul a:hover {
    color: var(--s7-gold);
    padding-left: var(--s7-space-2);
}

.footer-about {
    margin-bottom: var(--s7-space-4);
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: var(--s7-space-2);
    margin-bottom: var(--s7-space-3);
    font-size: var(--s7-text-sm);
    color: var(--s7-gray);
}

.footer-contact svg {
    flex-shrink: 0;
    color: var(--s7-gold);
}

.footer-disclaimer {
    font-size: var(--s7-text-xs);
    color: var(--s7-gray-dark);
}

.footer-social {
    display: flex;
    gap: var(--s7-space-3);
    margin-top: var(--s7-space-4);
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--s7-black);
    border: 1px solid var(--s7-border);
    border-radius: 50%;
    color: var(--s7-gray);
    font-size: var(--s7-text-base);
    transition: all var(--s7-transition-fast);
}

.footer-social a:hover {
    background: var(--s7-gold);
    color: var(--s7-black);
    border-color: var(--s7-gold);
}

.footer-bottom {
    padding: var(--s7-space-6) 0;
    border-top: 1px solid var(--s7-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--s7-text-sm);
    color: var(--s7-gray-dark);
}

.footer-bottom a { color: var(--s7-gray); }
.footer-bottom a:hover { color: var(--s7-gold); }

/* ==========================================================================
   Back to Top
   ========================================================================== */
.back-to-top {
    position: fixed;
    bottom: var(--s7-space-6);
    right: var(--s7-space-6);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--s7-gold);
    color: var(--s7-black);
    border: none;
    border-radius: 50%;
    font-size: var(--s7-text-xl);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--s7-transition);
    z-index: 99;
    box-shadow: var(--s7-shadow-gold);
}

.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-3px); }

/* ==========================================================================
   404 Page
   ========================================================================== */
.page-404 {
    text-align: center;
    padding: var(--s7-space-20) 0;
}

.page-404 h1 {
    font-size: 8rem;
    color: var(--s7-gold);
    line-height: 1;
    margin-bottom: var(--s7-space-4);
}

.page-404 p {
    font-size: var(--s7-text-xl);
    color: var(--s7-gray);
    margin-bottom: var(--s7-space-8);
}

/* ==========================================================================
   Accessibility & Focus
   ========================================================================== */
a:focus-visible, button:focus-visible, input:focus-visible {
    outline: 2px solid var(--s7-gold);
    outline-offset: 2px;
}

a:focus:not(:focus-visible), button:focus:not(:focus-visible) { outline: none; }

/* ==========================================================================
   Mobile Responsive
   ========================================================================== */
@media (max-width: 1024px) {
    .menu-toggle { display: flex; }

    .main-nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: min(300px, 85vw);
        height: 100vh;
        background: var(--s7-black);
        border-right: 1px solid var(--s7-border);
        padding: var(--s7-space-16) var(--s7-space-5) var(--s7-space-5);
        overflow-y: auto;
        transition: left var(--s7-transition);
        z-index: 999;
    }

    .main-nav.nav-open { left: 0; }

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

    .main-nav a {
        display: block;
        padding: var(--s7-space-4) 0;
        border-bottom: 1px solid var(--s7-border);
        font-size: var(--s7-text-lg);
        min-height: 48px;
        display: flex;
        align-items: center;
    }

    .main-nav a::after { display: none; }
    .main-nav .sub-menu { display: none; position: static; border: none; min-width: 0; padding-left: var(--s7-space-4); }
    .main-nav li:hover > .sub-menu { display: block; }

    .header-cta { display: none; }

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

/* Mobile menu overlay backdrop */
body.menu-open::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 998;
}

@media (max-width: 768px) {
    .hero-content { padding: var(--s7-space-10) 0; }
    .hero-title { font-size: var(--s7-text-3xl); }
    .hero-section { min-height: 400px; }

    .section-header { flex-direction: column; align-items: flex-start; }

    .single-meta { gap: var(--s7-space-3); }
    .featured-post-meta { gap: var(--s7-space-3); }
}

@media (max-width: 640px) {
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-social { justify-content: center; }
    .footer-bottom { flex-direction: column; gap: var(--s7-space-3); text-align: center; }

    .hero-actions { flex-direction: column; gap: var(--s7-space-3); }
    .hero-actions .btn-cta,
    .hero-actions .btn-outline { width: 100%; justify-content: center; text-align: center; }

    .post-card .post-card-title { font-size: var(--s7-text-lg); line-height: 1.4; }
    .post-card .post-card-body { padding: var(--s7-space-4); }
    .entry-content { font-size: var(--s7-text-base); line-height: 1.7; }
    .entry-content h2 { font-size: var(--s7-text-xl); }
    .entry-content h3 { font-size: var(--s7-text-lg); }

    .single-title { font-size: var(--s7-text-2xl); }
    .single-meta { flex-wrap: wrap; gap: var(--s7-space-3); }

    .featured-post-title { font-size: var(--s7-text-2xl); }
    .featured-post-meta { flex-wrap: wrap; gap: var(--s7-space-2); font-size: var(--s7-text-xs); }
    .featured-post-readmore .btn-cta { width: 100%; justify-content: center; text-align: center; }

    .content-with-sidebar { flex-direction: column; }
    .sidebar { margin-top: var(--s7-space-8); padding-top: var(--s7-space-8); border-top: 1px solid var(--s7-border); }

    .breadcrumb { font-size: var(--s7-text-sm); }

    /* Touch targets minimum 48px */
    .search-toggle,
    .menu-toggle,
    .back-to-top,
    .search-close { min-width: 48px; min-height: 48px; }

    .tag-link { min-height: 40px; display: inline-flex; align-items: center; }

    .post-nav { grid-template-columns: 1fr; gap: var(--s7-space-4); }
    .post-nav-item.next { text-align: left; }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */
@media print {
    .site-header, .site-footer, .sidebar, .back-to-top, .news-ticker, .post-nav, .related-posts { display: none !important; }
    body { background: #fff; color: #000; }
    a { color: #000; }
}

/* ==========================================================================
   Reduced Motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
}
