/**
 * CasinoOn Theme — luotettavannettikasino.net
 * Design Reference: CasinoOn ver5.0
 * Colors: Purple (#4611A7), Yellow (#FFE800), Black (#000000), White (#FFFFFF)
 * Font: Nunito Sans
 * Border-radius: 1.25rem (20px), buttons 50px
 */

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 10px 0 #FFE800 inset, 0 0 10px 2px #FFE800; }
    50% { box-shadow: 0 0 20px 0 #FFE800 inset, 0 0 20px 4px #FFE800; }
}

@keyframes countUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   BODY / GLOBAL
   ========================================================================== */

body {
    background: #FFFFFF;
    color: #000000;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: #000000;
}

a {
    color: #4611A7;
}

a:hover {
    color: #350D80;
}

/* ==========================================================================
   HEADER — Yellow background (CasinoOn style)
   ========================================================================== */

.header {
    background: #FFE800;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: none;
    box-shadow: 0 0 1.375rem rgba(0, 0, 0, 0.1);
}

.header-logo-text {
    color: #4611A7;
    font-family: var(--font-heading);
    font-weight: 900;
    letter-spacing: 0.02em;
    text-shadow: none;
}

.nav-link {
    color: #000000;
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 0.8125rem;
    letter-spacing: 0;
    text-transform: none;
    padding: 6px 10px;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(70, 17, 167, 0.1);
    color: #4611A7;
}

.nav-arrow {
    color: #000000;
    opacity: 0.5;
}

.nav-link:hover .nav-arrow,
.nav-link.active .nav-arrow {
    color: #4611A7;
    opacity: 1;
}

.nav-dropdown {
    background: #FFFFFF;
    backdrop-filter: none;
    border: none;
    border-radius: var(--radius-md);
    box-shadow: 0 0 1.375rem rgba(0, 0, 0, 0.1);
}

.nav-dropdown-link {
    color: #000000;
    font-size: var(--text-sm);
}

.nav-dropdown-link:hover {
    background: rgba(70, 17, 167, 0.05);
    color: #4611A7;
}

.nav-dropdown-link.active {
    background: #4611A7;
    color: #FFFFFF;
    border-radius: var(--radius-sm);
}

/* ==========================================================================
   HERO SECTION — CasinoOn two-column layout (yellow bg)
   ========================================================================== */

.hero {
    position: relative;
    background: #FFE800;
    padding: calc(var(--header-height) + 60px) 0 40px;
    overflow: hidden;
    min-height: auto;
}

.hero-row {
    display: flex;
    align-items: center;
    gap: var(--space-2xl);
}

/* Left column — text */
.hero-text {
    flex: 1;
    min-width: 0;
}

.hero-label {
    display: inline-block;
    color: #4611A7;
    font-family: var(--font-main);
    font-size: var(--text-lg);
    font-weight: 700;
    margin-bottom: var(--space-md);
    animation: fadeInUp 0.8s ease-out;
}

.hero-label::after {
    display: none;
}

.hero-title {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: #4611A7;
    margin-bottom: var(--space-md);
    max-width: 650px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-title span {
    color: #4611A7;
    text-shadow: none;
    font-style: normal;
}

.hero-title span::after {
    display: none;
}

.hero-subtitle {
    font-family: var(--font-main);
    font-weight: 400;
    font-size: var(--text-lg);
    color: #4611A7;
    letter-spacing: 0;
    margin-bottom: var(--space-xl);
    max-width: 550px;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-buttons {
    animation: fadeInUp 0.8s ease-out 0.6s both;
    background: transparent;
    border: none;
    padding: 0;
    gap: var(--space-md);
}

.hero .btn-primary {
    background: #4611A7;
    color: #FFFFFF;
    padding: 14px 48px;
    font-family: var(--font-main);
    font-size: var(--text-lg);
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
    border: 2px solid #4611A7;
    border-radius: var(--radius-full);
    box-shadow: none;
    text-shadow: none;
    position: relative;
    overflow: hidden;
}

.hero .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.hero .btn-primary:hover::before {
    left: 100%;
}

.hero .btn-primary:hover {
    background: #4611A7;
    border-color: #4611A7;
    color: #FFFFFF;
    box-shadow: 0 0 10px 0 #FFE800 inset, 0 0 10px 2px #FFE800;
    transform: translateY(-3px);
}

/* Right column — hero image */
.hero-image {
    flex: 1;
    position: relative;
    min-width: 0;
}

.hero-figure {
    margin: 0;
    text-align: center;
}

.hero-figure img {
    width: 100%;
    max-width: 540px;
    height: auto;
    display: block;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

/* Floating shape icons */
.hero-shape-wrap {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.hero-float-obj {
    position: absolute;
    z-index: 1;
}

.hero-obj-1 {
    left: 25%;
    top: 15%;
    width: 60px;
    height: auto;
    animation: heroRipple1 5s linear infinite;
}

.hero-obj-2 {
    left: 8%;
    top: 10%;
    width: 50px;
    height: auto;
    animation: heroRipple2 5s linear infinite;
}

@keyframes heroRipple1 {
    0%   { transform: translate(0px, 0px); }
    33%  { transform: translate(5px, -5px); }
    66%  { transform: translate(-5px, 5px); }
    100% { transform: translate(0px, 0px); }
}

@keyframes heroRipple2 {
    0%   { transform: translate(0px, 0px); }
    33%  { transform: translate(-5px, -5px); }
    66%  { transform: translate(5px, 5px); }
    100% { transform: translate(0px, 0px); }
}

/* Responsive hero */
@media (max-width: 1024px) {
    .hero {
        padding: calc(var(--header-height) + 40px) 0 30px;
    }

    .hero-row {
        gap: var(--space-xl);
    }
}

@media (max-width: 768px) {
    .hero-row {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        order: 1;
    }

    .hero-image {
        order: 2;
    }

    .hero-title {
        max-width: 100%;
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }

    .hero-subtitle {
        max-width: 100%;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-figure img {
        max-width: 400px;
    }

    .hero-obj-1,
    .hero-obj-2 {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: calc(var(--header-height) + 24px) 0 20px;
    }

    .hero-figure img {
        max-width: 280px;
    }
}

/* ==========================================================================
   EXPERIENCE SECTION — White bg, dark text (CasinoOn style)
   ========================================================================== */

.kz-experience {
    background: #FFFFFF;
    padding: var(--space-5xl) 0;
    position: relative;
    overflow: hidden;
}

.kz-experience::before {
    content: '';
    position: absolute;
    inset: 0;
    background: none;
    pointer-events: none;
}

.kz-experience-label {
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #4611A7;
    font-family: var(--font-main);
    font-size: var(--text-xs);
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--space-md);
}

.kz-experience-title {
    font-family: var(--font-heading);
    font-size: var(--text-4xl);
    color: #000000;
    text-align: center;
    margin-bottom: var(--space-lg);
    line-height: var(--leading-tight);
    font-weight: 900;
}

.kz-experience-text {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-3xl);
    color: #878A9B;
    line-height: var(--leading-relaxed);
    font-family: var(--font-main);
    font-weight: 400;
}

/* Service Cards Row */
.kz-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
}

.kz-service-card {
    text-align: center;
    padding: var(--space-2xl) var(--space-xl);
    background: #FFFFFF;
    border: none;
    border-radius: var(--radius-md);
    transition: all 0.4s ease;
    position: relative;
    box-shadow: 0 0 1.375rem rgba(0, 0, 0, 0.1);
}

.kz-service-card::after {
    display: none;
}

.kz-service-card:hover {
    background: #FFFFFF;
    border-color: transparent;
    transform: translateY(-8px);
    box-shadow: 0 0 2rem rgba(70, 17, 167, 0.15);
}

.kz-service-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto var(--space-lg);
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(70, 17, 167, 0.08);
    border: none;
    transition: all 0.4s ease;
}

.kz-service-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.kz-service-icon svg {
    width: 36px;
    height: 36px;
    fill: #4611A7;
}

.kz-service-card:hover .kz-service-icon {
    background: #4611A7;
    box-shadow: 0 0 1.375rem rgba(70, 17, 167, 0.3);
    transform: scale(1.1);
}

.kz-service-card:hover .kz-service-icon svg {
    fill: #FFFFFF;
}

.kz-service-title {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    color: #000000;
    margin-bottom: var(--space-sm);
    font-weight: 700;
}

.kz-service-text {
    font-family: var(--font-main);
    font-size: var(--text-sm);
    color: #878A9B;
    line-height: var(--leading-relaxed);
    font-weight: 400;
}

/* ==========================================================================
   SPECIAL BOARD — Purple bg section
   ========================================================================== */

.kz-board {
    background: #4611A7;
    padding: var(--space-5xl) 0;
    position: relative;
}

.kz-board .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.kz-board-content {
    padding-right: var(--space-xl);
}

.kz-board-label {
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #FFE800;
    font-family: var(--font-main);
    font-size: var(--text-xs);
    font-weight: 700;
    margin-bottom: var(--space-md);
    display: block;
}

.kz-board-title {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    color: #FFFFFF;
    font-weight: 900;
    margin-bottom: var(--space-lg);
    line-height: var(--leading-tight);
}

.kz-board-text {
    color: rgba(255, 255, 255, 0.8);
    font-family: var(--font-main);
    font-weight: 400;
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-xl);
}

.kz-board-btn {
    display: inline-block;
    background: #FFE800;
    color: #000000;
    font-family: var(--font-main);
    font-weight: 700;
    font-size: var(--text-base);
    padding: var(--space-md) var(--space-2xl);
    border-radius: var(--radius-full);
    text-transform: none;
    letter-spacing: 0;
    transition: all var(--transition-base);
    border: 2px solid #FFE800;
}

.kz-board-btn:hover {
    background: transparent;
    color: #FFE800;
    box-shadow: 0 0 10px 0 #FFE800 inset, 0 0 10px 2px #FFE800;
    transform: translateY(-2px);
}

.kz-board-image {
    border-radius: var(--radius-md);
    box-shadow: 0 0 2rem rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.kz-board-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
}

.kz-board-image:hover img {
    transform: scale(1.05);
}

/* ==========================================================================
   STATS SECTION — Purple bg with yellow numbers
   ========================================================================== */

.stats-section {
    background: #4611A7;
    position: relative;
    overflow: hidden;
    padding: var(--space-5xl) 0;
}

.stats-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: none;
    pointer-events: none;
}

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

.stat-item {
    animation: countUp 0.6s ease-out both;
    text-align: center;
    position: relative;
    padding: var(--space-xl) 0;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: rgba(255, 255, 255, 0.15);
}

.stat-item:nth-child(1) { animation-delay: 0.1s; }
.stat-item:nth-child(2) { animation-delay: 0.2s; }
.stat-item:nth-child(3) { animation-delay: 0.3s; }
.stat-item:nth-child(4) { animation-delay: 0.4s; }

.stat-number {
    font-family: var(--font-heading);
    font-size: var(--text-5xl);
    font-weight: 900;
    color: #FFE800;
    text-shadow: none;
    line-height: 1;
    margin-bottom: var(--space-sm);
}

.stat-label {
    font-family: var(--font-main);
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

/* ==========================================================================
   SLOTS & GAMES SECTION — White bg
   ========================================================================== */

.kz-games {
    background: #FFFFFF;
    padding: var(--space-5xl) 0;
    position: relative;
}

.kz-games::before {
    display: none;
}

.kz-games-title {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    color: #000000;
    text-align: center;
    margin-bottom: var(--space-md);
    font-weight: 900;
}

.kz-games-subtitle {
    text-align: center;
    color: #878A9B;
    margin-bottom: var(--space-3xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-family: var(--font-main);
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    font-size: var(--text-base);
}

.kz-games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.kz-game-card {
    background: #FFFFFF;
    border: none;
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
    box-shadow: 0 0 1.375rem rgba(0, 0, 0, 0.1);
}

.kz-game-card::before {
    display: none;
}

.kz-game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 2rem rgba(70, 17, 167, 0.2);
}

.kz-game-card-image {
    height: 200px;
    overflow: hidden;
}

.kz-game-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    filter: none;
}

.kz-game-card:hover .kz-game-card-image img {
    transform: scale(1.1);
}

.kz-game-card-body {
    padding: var(--space-lg);
    text-align: center;
    position: relative;
    z-index: 2;
}

.kz-game-card-title {
    font-family: var(--font-heading);
    font-size: var(--text-base);
    color: #000000;
    margin-bottom: var(--space-sm);
    font-weight: 700;
}

.kz-game-card .btn {
    background: #4611A7;
    border: 2px solid #4611A7;
    color: #FFFFFF;
    font-family: var(--font-main);
    font-weight: 700;
    padding: var(--space-sm) var(--space-lg);
    width: auto;
    text-transform: none;
    letter-spacing: 0;
    font-size: var(--text-xs);
    border-radius: var(--radius-full);
    transition: all 0.3s ease;
}

.kz-game-card .btn:hover,
.kz-game-card:hover .btn {
    background: #FFE800;
    border-color: #FFE800;
    color: #000000;
}

/* ==========================================================================
   GALLERY SECTION — Light gray bg
   ========================================================================== */

.kz-gallery {
    background: #F2F2F2;
    padding: var(--space-5xl) 0;
    position: relative;
    overflow: hidden;
}

.kz-gallery-title {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    color: #000000;
    text-align: center;
    margin-bottom: var(--space-md);
    font-weight: 900;
}

.kz-gallery-subtitle {
    text-align: center;
    color: #878A9B;
    margin-bottom: var(--space-3xl);
    font-family: var(--font-main);
    font-weight: 400;
    font-size: var(--text-base);
}

.kz-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}

.kz-gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    aspect-ratio: 1;
    box-shadow: 0 0 1.375rem rgba(0, 0, 0, 0.1);
}

.kz-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.kz-gallery-item:hover img {
    transform: scale(1.1);
}

.kz-gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(70, 17, 167, 0.4) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.kz-gallery-item:hover::after {
    opacity: 1;
}

/* ==========================================================================
   CTA SECTION — Purple bg with yellow button
   ========================================================================== */

.kz-cta {
    background: #4611A7;
    padding: var(--space-5xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.kz-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 50% 60% at 50% 50%, rgba(255, 232, 0, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.kz-cta-title {
    font-family: var(--font-heading);
    font-size: var(--text-4xl);
    color: #FFFFFF;
    margin-bottom: var(--space-lg);
    font-weight: 900;
    font-style: normal;
}

.kz-cta-text {
    font-family: var(--font-main);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--space-2xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
    line-height: var(--leading-relaxed);
}

.kz-cta .btn-primary {
    background: #FFE800;
    color: #000000;
    font-family: var(--font-main);
    font-size: var(--text-base);
    padding: var(--space-md) var(--space-3xl);
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
    border-radius: var(--radius-full);
    border: 2px solid #FFE800;
    animation: none;
}

.kz-cta .btn-primary:hover {
    background: transparent;
    color: #FFE800;
    transform: translateY(-3px);
    box-shadow: 0 0 10px 0 #FFE800 inset, 0 0 10px 2px #FFE800;
}

/* ==========================================================================
   SECTION OVERRIDES
   ========================================================================== */

.section-title {
    font-family: var(--font-heading);
    color: #000000;
    font-weight: 900;
}

.section-subtitle {
    font-family: var(--font-main);
    color: #878A9B;
    font-weight: 400;
}

/* Category Cards — White with shadow */
.category-card {
    background: #FFFFFF;
    border: none;
    box-shadow: 0 0 1.375rem rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-md);
    transition: all 0.4s ease;
    position: relative;
}

.category-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #4611A7;
    transform: scaleX(0);
    transition: transform 0.4s ease;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-card:hover {
    box-shadow: 0 0 2rem rgba(70, 17, 167, 0.15);
    transform: translateY(-6px);
}

.category-card-icon {
    background: rgba(70, 17, 167, 0.08);
    border: none;
    border-radius: var(--radius-md);
}

.category-card-icon svg {
    fill: #4611A7;
}

.category-card-title {
    font-family: var(--font-heading);
    color: #000000;
    font-weight: 700;
}

.category-card-count {
    color: #878A9B;
    font-family: var(--font-main);
    font-weight: 400;
}

/* Carousel — Light bg */
.carousel-section {
    background: #F2F2F2;
    border-top: none;
    border-bottom: none;
}

.kw-pill {
    background: #FFFFFF;
    border-color: rgba(70, 17, 167, 0.1);
    color: #4611A7;
    font-family: var(--font-main);
    font-weight: 600;
    border-radius: var(--radius-full);
}

.kw-pill:hover {
    border-color: #4611A7;
    background: #4611A7;
    color: #FFFFFF;
}

/* Tags Section — Light gray bg */
.tags-section {
    background: #F2F2F2;
    border-top: none;
    border-bottom: none;
}

.tags-section::before,
.tags-section::after {
    background: none;
}

.tag-card {
    background: #FFFFFF;
    border-color: rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-md);
    box-shadow: 0 0 1.375rem rgba(0, 0, 0, 0.05);
}

.tag-card:hover {
    border-color: rgba(70, 17, 167, 0.15);
    box-shadow: 0 0 1.375rem rgba(70, 17, 167, 0.1);
}

.tag-card::before {
    background: #4611A7;
}

.tag-card-featured {
    background: #4611A7;
    border-color: #4611A7;
}

.tag-card-featured .tag-card-icon {
    background: rgba(255, 255, 255, 0.15);
    color: #FFE800;
}

.tag-card-featured .tag-card-name {
    color: #FFFFFF;
}

.tag-card-icon {
    background: rgba(70, 17, 167, 0.08);
    color: #4611A7;
    border-radius: var(--radius-md);
}

.tag-card-name {
    color: #000000;
    font-family: var(--font-main);
}

.tag-card-count {
    background: rgba(70, 17, 167, 0.08);
    color: #4611A7;
    border-radius: var(--radius-md);
}

.tag-card-featured .tag-card-count {
    background: #4611A7;
    color: #FFFFFF;
}

/* SEO Content */
.seo-content {
    background: #FFFFFF;
    border: none;
    border-radius: var(--radius-md);
    box-shadow: 0 0 1.375rem rgba(0, 0, 0, 0.08);
}

.seo-content h2 {
    font-family: var(--font-heading);
    color: #000000;
}

.seo-content h3 {
    font-family: var(--font-heading);
    color: #000000;
}

.seo-content p {
    color: #878A9B;
    font-family: var(--font-main);
    font-weight: 400;
}

/* ==========================================================================
   CARDS — White with shadow
   ========================================================================== */

.card {
    background: #FFFFFF;
    border: none;
    border-radius: var(--radius-md);
    box-shadow: 0 0 1.375rem rgba(0, 0, 0, 0.1);
}

.card:hover {
    box-shadow: 0 0 2rem rgba(70, 17, 167, 0.15);
}

.card-title {
    font-family: var(--font-heading);
    color: #000000;
}

.card-title a {
    color: #000000;
}

.card-title a:hover {
    color: #4611A7;
}

.card-text {
    color: #878A9B;
    font-family: var(--font-main);
    font-weight: 400;
}

.card-meta {
    border-top-color: rgba(0, 0, 0, 0.08);
    color: #878A9B;
}

/* Casino Cards */
.casino-card {
    background: #FFFFFF;
    border-color: rgba(0, 0, 0, 0.05);
    box-shadow: 0 0 1.375rem rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-md);
}

.casino-card::before {
    background: linear-gradient(90deg, #4611A7, #FFE800);
}

.casino-card:hover {
    box-shadow: 0 0 2rem rgba(70, 17, 167, 0.15);
}

.casino-card-rank {
    background: #F2F2F2;
    box-shadow: none;
    border-radius: var(--radius-sm);
}

.casino-card:nth-child(1) .casino-card-rank {
    background: #FFE800;
    color: #000000;
    box-shadow: 0 0 10px rgba(255, 232, 0, 0.3);
}

.casino-card-name {
    color: #000000;
    font-family: var(--font-heading);
}

.casino-card-bonus {
    color: #000000;
    background: rgba(70, 17, 167, 0.05);
    border-color: rgba(70, 17, 167, 0.1);
    border-radius: var(--radius-sm);
}

.casino-card .btn {
    background: #4611A7;
    color: #FFFFFF;
    border-radius: var(--radius-full);
    box-shadow: none;
    font-family: var(--font-main);
}

.casino-card .btn:hover {
    background: #FFE800;
    color: #000000;
    box-shadow: 0 0 10px rgba(255, 232, 0, 0.3);
}

/* New Casino Cards — CasinoOn theme overrides */
.casino-card-new {
    background: #FFFFFF;
    border-radius: var(--radius-md);
    box-shadow: 0 0 1.375rem rgba(0, 0, 0, 0.08);
}

.casino-card-new:hover {
    box-shadow: 0 1.5rem 3rem rgba(70, 17, 167, 0.18);
}

.casino-card-new-rank {
    font-family: var(--font-heading);
}

.casino-card-new-name {
    color: #000000;
    font-family: var(--font-heading);
}

.casino-card-new-bonus {
    font-family: var(--font-main);
}

.casino-card-new-rating .rating-value {
    color: #4611A7;
    font-family: var(--font-heading);
}

.casino-card-new-btn {
    font-family: var(--font-main);
}

/* ==========================================================================
   BUTTONS — Global (CasinoOn: rounded 50px)
   ========================================================================== */

.btn {
    border-radius: var(--radius-full);
    font-family: var(--font-main);
    text-transform: none;
    letter-spacing: 0;
    font-weight: 700;
}

.btn-primary {
    background: #4611A7;
    color: #FFFFFF;
    box-shadow: none;
    border: 2px solid #4611A7;
}

.btn-primary:hover {
    background: #FFE800;
    color: #000000;
    border-color: #FFE800;
    box-shadow: 0 0 10px rgba(255, 232, 0, 0.3);
}

.btn-secondary {
    color: #4611A7;
    border-color: #4611A7;
}

.btn-secondary:hover {
    background: #4611A7;
    color: #FFFFFF;
}

.btn-outline {
    color: #4611A7;
    border-color: #4611A7;
}

.btn-outline:hover {
    background: #4611A7;
    color: #FFFFFF;
}

/* ==========================================================================
   BREADCRUMBS
   ========================================================================== */

.breadcrumb-item a {
    color: #4611A7 !important;
    font-family: var(--font-main);
}

.breadcrumb-item a:hover {
    color: #350D80 !important;
}

.breadcrumb-item:not(:last-child)::after {
    color: #878A9B;
}

.breadcrumb-item:last-child {
    color: #000000;
}

/* ==========================================================================
   PAGE TITLES
   ========================================================================== */

h1, .page-title, article header h1 {
    color: #000000;
    font-family: var(--font-heading);
}

/* ==========================================================================
   ARTICLE CONTENT
   ========================================================================== */

.article-content h2,
.article-content h3,
.article-content h4 {
    font-family: var(--font-heading);
    color: #000000;
}

.article-content h2 {
    position: relative;
    padding-bottom: var(--space-sm);
}

.article-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: #4611A7;
    border-radius: 2px;
}

.article-content p {
    color: #878A9B;
    font-family: var(--font-main);
    font-weight: 400;
}

.article-content a {
    color: #4611A7;
}

.article-content a:hover {
    color: #350D80;
}

.article-content th {
    background: #4611A7;
    color: #FFFFFF;
    font-family: var(--font-main);
    font-weight: 700;
}

.article-content tr:nth-child(even) {
    background: rgba(70, 17, 167, 0.03);
}

.article-content td {
    border-bottom-color: rgba(0, 0, 0, 0.05);
}

.article-content table {
    border-color: rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-md);
}

.article-content blockquote {
    background: #F2F2F2;
    border-left-color: #4611A7;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-style: italic;
}

.article-content ul,
.article-content ol {
    color: #878A9B;
}

.article-content li {
    color: #878A9B;
}

/* Article Tags */
.article-tags-section {
    background: rgba(70, 17, 167, 0.03);
    border-color: rgba(70, 17, 167, 0.08);
    border-radius: var(--radius-md);
}

.article-tags-section::before {
    background: linear-gradient(90deg, #4611A7, #FFE800, #4611A7);
}

.article-tags-icon {
    background: #4611A7;
    box-shadow: 0 0 10px rgba(70, 17, 167, 0.2);
    border-radius: var(--radius-md);
}

.article-tags-title {
    font-family: var(--font-heading);
    color: #000000;
}

.article-tag {
    background: #FFFFFF;
    border-color: rgba(70, 17, 167, 0.1);
    color: #4611A7;
    border-radius: var(--radius-full);
    font-family: var(--font-main);
}

.article-tag:hover {
    background: #4611A7;
    color: #FFFFFF;
    box-shadow: 0 0 10px rgba(70, 17, 167, 0.2);
}

/* ==========================================================================
   SIDEBAR
   ========================================================================== */

.sidebar-widget {
    background: #FFFFFF;
    border: none;
    border-radius: var(--radius-md);
    box-shadow: 0 0 1.375rem rgba(0, 0, 0, 0.08);
}

.sidebar-title {
    font-family: var(--font-heading);
    color: #000000;
    border-bottom-color: #4611A7;
}

/* ==========================================================================
   FOOTER — Purple background
   ========================================================================== */

.footer {
    background: #4611A7;
    border-top: none;
    color: #FFFFFF;
}

.footer-title {
    font-family: var(--font-heading);
    color: #FFE800;
    font-weight: 700;
}

.footer-brand p {
    font-family: var(--font-main);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-family: var(--font-main);
    font-weight: 400;
}

.footer-links a:hover {
    color: #FFE800;
}

.footer-bottom {
    border-top-color: rgba(255, 255, 255, 0.1);
    font-family: var(--font-main);
    color: rgba(255, 255, 255, 0.7);
}

.footer-disclaimer {
    font-family: var(--font-main);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
}

/* ==========================================================================
   FORMS
   ========================================================================== */

.form-input,
.form-textarea,
.form-select {
    background: #FFFFFF;
    border-color: rgba(0, 0, 0, 0.1);
    color: #000000;
    border-radius: var(--radius-md);
    font-family: var(--font-main);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    border-color: #4611A7;
    box-shadow: 0 0 0 3px rgba(70, 17, 167, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #878A9B;
}

.form-label {
    color: #000000;
    font-family: var(--font-main);
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    font-size: var(--text-sm);
}

/* ==========================================================================
   MODAL
   ========================================================================== */

.modal {
    background: #FFFFFF;
    border: none;
    border-radius: var(--radius-md);
    box-shadow: 0 0 2rem rgba(0, 0, 0, 0.15);
}

.modal-header {
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

.modal-title {
    font-family: var(--font-heading);
    color: #000000;
}

.modal-close:hover {
    background: rgba(70, 17, 167, 0.08);
}

.modal-body h1,
.modal-body h2 {
    font-family: var(--font-heading);
    color: #000000;
}

.modal-body h3 {
    font-family: var(--font-heading);
    color: #000000;
}

.modal-body p {
    color: #878A9B;
    font-family: var(--font-main);
    font-weight: 400;
}

.modal-body li {
    color: #878A9B;
}

.modal-body a {
    color: #4611A7;
}

/* ==========================================================================
   PAGINATION
   ========================================================================== */

.pagination-list li a,
.pagination-list li span {
    background: #FFFFFF;
    border-color: rgba(0, 0, 0, 0.08);
    color: #000000;
    border-radius: var(--radius-md);
    font-family: var(--font-main);
}

.pagination-list li a:hover {
    border-color: #4611A7;
    color: #4611A7;
}

.pagination-current {
    background: #4611A7 !important;
    border-color: #4611A7 !important;
    color: #FFFFFF !important;
}

/* ==========================================================================
   RELATED / 404 / MOBILE NAV
   ========================================================================== */

.related-articles {
    border-top-color: rgba(0, 0, 0, 0.08);
}

.related-title {
    font-family: var(--font-heading);
    color: #000000;
}

.error-code {
    font-family: var(--font-heading);
    color: #4611A7;
}

.error-title {
    font-family: var(--font-heading);
    color: #000000;
}

.error-text {
    color: #878A9B;
    font-family: var(--font-main);
}

.mobile-nav {
    background: #FFFFFF;
}

.mobile-nav-link {
    color: #000000;
    font-family: var(--font-main);
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
}

.mobile-nav-link.active {
    color: #4611A7;
}

.mobile-nav-dropdown a {
    color: #878A9B;
    font-family: var(--font-main);
}

.mobile-nav-dropdown a:hover {
    color: #4611A7;
}

.mobile-nav-dropdown a.active {
    color: #4611A7;
}

.mobile-nav-item {
    border-bottom-color: rgba(0, 0, 0, 0.05);
}

/* Mobile nav close button — contrasting on white bg */
.mobile-nav-close {
    background: #4611A7;
    color: #FFFFFF;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    box-shadow: 0 2px 8px rgba(70, 17, 167, 0.3);
    transition: background 0.2s ease, transform 0.2s ease;
}

.mobile-nav-close:hover,
.mobile-nav-close:active {
    background: #350D80;
    transform: scale(1.1);
}

.mobile-nav-close svg {
    width: 28px;
    height: 28px;
}

/* Mobile menu toggle — dark for yellow header */
.mobile-menu-toggle span {
    background: #000000;
}

/* ==========================================================================
   SEO CONTENT IN TAGS SECTION
   ========================================================================== */

.seo-content-tags h2 {
    font-family: var(--font-heading);
    color: #000000;
}

.seo-content-tags h3 {
    font-family: var(--font-heading);
    color: #000000;
}

.seo-content-tags h3::after {
    background: linear-gradient(90deg, #4611A7, #FFE800);
}

.seo-content-tags p {
    font-family: var(--font-main);
    color: #878A9B;
    font-weight: 400;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

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

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

    .kz-gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

    .stat-item:nth-child(2)::after {
        display: none;
    }

    .hero {
        min-height: auto;
    }

    .kz-board .container {
        grid-template-columns: 1fr;
    }

    .kz-board-content {
        padding-right: 0;
    }
}

@media (max-width: 768px) {
    .kz-services-grid {
        grid-template-columns: 1fr;
    }

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

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

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

    .stat-item:not(:last-child)::after {
        display: none;
    }

    .hero-title {
        font-size: var(--text-3xl);
    }

    .stat-number {
        font-size: var(--text-3xl);
    }

}

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

    .kz-gallery-grid {
        grid-template-columns: 1fr;
    }

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

    .hero-title {
        font-size: var(--text-2xl);
    }
}
