
/* =========================================
   1. Reset & Global Settings
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    /* Colors */
    --c-bg-body: #0f141f;
    --c-bg-header: #161f30;
    --c-bg-card: #1c263b;
    --c-bg-hover: #25304a;
    
    --c-primary: #1875f0;
    --c-primary-hover: #3b8cf7;
    --c-secondary: #27ae60; /* Green for registration/money */
    --c-secondary-hover: #2ecc71;
    
    --c-text-main: #ffffff;
    --c-text-muted: #8ba0b8;
    --c-accent: #ffae00;
    
    /* Gradients */
    --grad-primary: linear-gradient(135deg, #1875f0 0%, #104e9e 100%);
    --grad-success: linear-gradient(135deg, #27ae60 0%, #219150 100%);
    --grad-gold: linear-gradient(135deg, #f2994a 0%, #f2c94c 100%);
    
    /* Spacing & Sizing */
    --gap-sm: 0.5rem;
    --gap-md: 1rem;
    --gap-lg: 2rem;
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    /* Shadows */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 20px rgba(24, 117, 240, 0.3);
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--c-bg-body);
    color: var(--c-text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul, ol {
    list-style: none;
}

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

button {
    cursor: pointer;
    border: none;
    font-family: inherit;
    background: none;
}

/* =========================================
   2. Layout Utilities
   ========================================= */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 var(--gap-md);
}

.flex {
    display: flex;
    align-items: center;
}

.container-no-pt {
    padding-top: 0;
}

/* =========================================
   3. Header Styling (.heder)
   ========================================= */
.heder {
    background-color: var(--c-bg-header);
    padding: var(--gap-md) 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: var(--shadow-sm);
}

.heder .container {
    justify-content: space-between;
}

.logo {
    display: block;
    width: 120px;
    height: 40px;
    background-image: url('https://1wincazino.com/template/images/logo.svg'); /* Fallback logic needed if no img */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.heder-naw {
    gap: var(--gap-lg);
}

.heder-naw-item {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--c-text-muted);
    position: relative;
    padding: 0.5rem 0;
}

.heder-naw-item:hover,
.heder-naw-item:focus {
    color: var(--c-text-main);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.heder-naw-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--c-primary);
    transition: var(--transition);
}

.heder-naw-item:hover::after {
    width: 100%;
}

.heder-naw-item-bocovoe {
    display: none; /* Hide sidebar items in top nav */
}

/* Mobile Menu Elements */
.box-close, .btn-close, .btn-href {
    display: none;
}

/* Buttons in Header */
.btn-box {
    display: flex;
    gap: var(--gap-sm);
}

.btn {
    padding: 0.6rem 1.5rem;
    border-radius: var(--border-radius-sm);
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.btn-a {
    background-color: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--c-text-main);
}

.btn-a:hover {
    border-color: var(--c-primary);
    color: var(--c-primary);
}

.btn-b {
    background: var(--grad-success);
    color: white;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.4);
}

.btn-b:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.6);
    filter: brightness(1.1);
}

/* =========================================
   4. Slider Section
   ========================================= */
.slider {
    margin-top: var(--gap-lg);
    margin-bottom: var(--gap-lg);
    overflow: hidden;
}

.slider-owl {
    display: flex;
    gap: var(--gap-md);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 1rem;
    /* Hide scrollbar */
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.slider-owl::-webkit-scrollbar {
    display: none;
}

.slider-bg {
    min-width: 100%;
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    scroll-snap-align: center;
    background: var(--c-bg-card);
    min-height: 400px;
    box-shadow: var(--shadow-sm);
}

.slider-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transition: var(--transition);
}

.slider-bg:hover img {
    transform: scale(1.05);
    opacity: 0.5;
}

.slider-left {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    max-width: 600px;
    z-index: 2;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.slider-left .text {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    color: var(--c-text-main);
}

.slider-left .text-b {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--c-text-main);
    opacity: 0.9;
}

/* =========================================
   5. Features / Free Money Box
   ========================================= */
.box-fremoney-and-action {
    margin-bottom: var(--gap-lg);
}

.box-fremoney-and-action .flex {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--gap-md);
}

.box-fremoney-and-action .item {
    background: var(--c-bg-card);
    padding: 1.5rem;
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    position: relative;
}

.box-fremoney-and-action .item:hover {
    background: var(--c-bg-hover);
    border-color: var(--c-primary);
    transform: translateY(-5px);
}

.box-fremoney-and-action .text {
    font-size: 1.2rem;
    font-weight: 700;
    z-index: 2;
}

.box-fremoney-and-action .text span {
    display: block;
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--c-text-muted);
    margin-top: 0.2rem;
}

.fremoney {
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.1) 0%, rgba(39, 174, 96, 0.05) 100%);
}

.action {
    background: linear-gradient(135deg, rgba(24, 117, 240, 0.1) 0%, rgba(24, 117, 240, 0.05) 100%);
}

.icon-before {
    width: 60px;
    height: 60px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: var(--transition);
}

.box-fremoney-and-action .item:hover .icon-before {
    transform: scale(1.2) rotate(5deg);
}

/* =========================================
   6. Main Content Area
   ========================================= */
.content {
    padding: var(--gap-lg) 0;
}

.bg-content {
    background: var(--c-bg-card);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
}

h1, h2, h3 {
    color: var(--c-text-main);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

h1 { font-size: 2rem; font-weight: 800; }
h2 { font-size: 1.75rem; margin-top: 2rem; border-left: 4px solid var(--c-primary); padding-left: 1rem; }
h3 { font-size: 1.5rem; color: var(--c-text-muted); }

p {
    margin-bottom: 1.2rem;
    color: #b0c4de;
    font-size: 1.05rem;
}

ul, ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
    color: #b0c4de;
}

/* Table Styling */
.casino-info {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
}

.casino-info th,
.casino-info td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.casino-info th {
    background: var(--c-bg-hover);
    color: var(--c-primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.casino-info tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* Content Form / Sidebar Box */
.content-form {
    background: rgba(24, 117, 240, 0.05);
    border: 1px solid var(--c-primary);
    padding: 1.5rem;
    border-radius: var(--border-radius-md);
    margin: 2rem 0;
}

.content-form .h2 {
    color: var(--c-primary);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.form-text {
    font-size: 0.95rem;
    color: var(--c-text-muted);
    margin-bottom: 0.5rem;
}

.toc-box {
    background: #121926;
    padding: 1.5rem;
    border-left: 4px solid var(--c-secondary);
    margin: 2rem 0;
    border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
}

.content-btn {
    margin: 2rem 0;
    text-align: center;
}

.content-btn .btn-b {
    padding: 1rem 3rem;
    font-size: 1.1rem;
}

blockquote {
    font-style: italic;
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius-sm);
    margin: 1.5rem 0;
    border-left: 3px solid var(--c-accent);
}

/* =========================================
   7. FAQ Section
   ========================================= */
.faq-blocks {
    margin-top: 2rem;
}

.faq {
    margin-bottom: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    border: 1px solid transparent;
    transition: var(--transition);
}

.faq:hover {
    border-color: rgba(255, 255, 255, 0.1);
}

.faq-header {
    padding: 1.2rem;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--c-bg-hover);
    transition: var(--transition);
}

.faq-header:hover {
    color: var(--c-primary);
}

.faq-content {
    padding: 0 1.2rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s ease;
    opacity: 0;
}

/* Simulate open state based on HTML structure or interaction (if JS were present) 
   Since only CSS is requested, we assume a mechanism toggles a class. 
   Here we style the inner text. */
.faq-content p {
    padding: 1rem 0;
    margin: 0;
    font-size: 0.95rem;
    color: var(--c-text-muted);
}

/* Icon rotation placeholder */
.icon-down {
    border: solid currentColor;
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 3px;
    transform: rotate(45deg);
    transition: var(--transition);
}

.faq-header.open .icon-down {
    transform: rotate(-135deg);
    color: var(--c-primary);
}

/* =========================================
   8. Footer
   ========================================= */
.footer {
    background-color: #0b1119;
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 4rem;
}

.footer .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    align-items: start;
}

.footer-logo .logo {
    filter: grayscale(1);
    transition: var(--transition);
}

.footer-logo:hover .logo {
    filter: grayscale(0);
}

.footer-naw {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.footer-naw .title {
    color: var(--c-text-main);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.footer-naw .item {
    color: var(--c-text-muted);
    font-size: 0.9rem;
}

.footer-naw .item:hover {
    color: var(--c-primary);
    transform: translateX(5px);
}

.footer-upload {
    flex-direction: column;
    gap: 1rem;
}

.footer-upload button.item {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.8rem 1.2rem;
    border-radius: var(--border-radius-sm);
    width: 100%;
    transition: var(--transition);
    border: 1px solid transparent;
}

.footer-upload button.item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--c-text-muted);
}

.footer-upload .icon {
    width: 24px;
    height: 24px;
    margin-right: 1rem;
    fill: currentColor;
}

.footer-upload .text {
    text-align: left;
    font-size: 0.8rem;
    color: var(--c-text-main);
    line-height: 1.2;
}

.footer-upload .text span {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
}

/* Provider Icons Row */
.provider-row {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.provider .item {
    opacity: 0.5;
    transition: var(--transition);
    cursor: pointer;
}

.provider .item:hover {
    opacity: 1;
    transform: scale(1.1);
}

.provider svg {
    height: 30px;
    width: auto;
}

/* =========================================
   9. Responsive Media Queries
   ========================================= */
@media (max-width: 992px) {
    .heder-naw {
        display: none; /* Hide main nav on tablet/mobile */
    }
    
    .heder-right .btn-href {
        display: block; /* Show burger menu */
        color: white;
        background: none;
        border: none;
    }
    
    .btn-box-mob-non {
        display: none;
    }

    .slider-bg {
        min-height: 300px;
    }
    
    .box-fremoney-and-action .flex {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .heder .container {
        padding: 0 1rem;
    }

    .slider-left .text {
        font-size: 1.8rem;
    }
    
    .bg-content {
        padding: 1.5rem;
    }
    
    .footer .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-naw {
        align-items: center;
    }
    
    .provider-row {
        justify-content: center;
    }
    
    .icon-burger_icon {
        width: 30px;
        height: 30px;
        fill: white;
    }
    
    /* Mobile header adjustments */
    .heder-right {
        display: flex;
        gap: 1rem;
        align-items: center;
    }
    
    .container-no-pt .btn-box {
        display: flex;
        width: 100%;
        margin-top: 1rem;
        justify-content: space-between;
    }
    
    .container-no-pt .btn-box .btn {
        width: 48%;
    }
}
