/* ============================================
   KING1 Casino - Main Stylesheet
   Mobile First Approach
   ============================================ */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-bg: #086137;
    --header-bg: #02432D;
    --header-border: #197B59;
    --accent-color: #FFEFB0;
    --primary-btn-bg: #FFEFB0;
    --primary-btn-color: #055434;
    --secondary-btn-border: #FFEFB0;
    --secondary-btn-color: #FFEFB0;
    --text-light: #ffffff;
    --text-dark: #055434;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-light);
    background-color: var(--primary-bg);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.8;
}

/* ============================================
   Slider Styles
   ============================================ */
.hero-slider {
    width: 100%;
    position: relative;
    margin: 4rem auto;
    padding: 0;
    max-width: 1200px;
}

.banner-swiper {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.banner-swiper .swiper-slide {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    display: block;
}

/* Swiper Navigation Arrows */
.banner-swiper .swiper-button-next,
.banner-swiper .swiper-button-prev {
    color: var(--accent-color);
    background-color: rgba(2, 67, 45, 0.7);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.banner-swiper .swiper-button-next:hover,
.banner-swiper .swiper-button-prev:hover {
    background-color: rgba(2, 67, 45, 0.9);
    transform: scale(1.1);
}

.banner-swiper .swiper-button-next::after,
.banner-swiper .swiper-button-prev::after {
    font-size: 18px;
    font-weight: bold;
}

/* Swiper Pagination Dots */
.banner-swiper .swiper-pagination {
    bottom: 15px;
}

.banner-swiper .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background-color: var(--text-light);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.banner-swiper .swiper-pagination-bullet-active {
    background-color: var(--accent-color);
    opacity: 1;
    transform: scale(1.2);
}

/* ============================================
   Header Styles
   ============================================ */
header {
    background-color: var(--header-bg);
    border-bottom: 1px solid var(--header-border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.header-container {
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
}

/* Navigation */
nav {
    display: none;
}

nav.active {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--header-bg);
    border-top: 1px solid var(--header-border);
    padding: 1rem;
}

.nav-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-menu li a {
    display: block;
    padding: 0.75rem 1rem;
    text-align: center;
    color: var(--text-light);
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.nav-menu li a:hover {
    background-color: rgba(255, 239, 176, 0.1);
}

.nav-menu li a.active {
    color: var(--accent-color);
    font-weight: 600;
    background-color: rgba(255, 239, 176, 0.15);
    border-bottom: 2px solid var(--accent-color);
}

.header-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* Burger Menu */
.burger-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 0.5rem;
    background: none;
    border: none;
    color: var(--text-light);
}

.burger-menu span {
    width: 25px;
    height: 3px;
    background-color: var(--text-light);
    transition: all 0.3s ease;
}

.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 3px);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    min-height: 44px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--primary-btn-bg);
    color: var(--primary-btn-color);
}

.btn-primary:hover {
    background-color: #FFD700;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 239, 176, 0.4);
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid var(--secondary-btn-border);
    color: var(--secondary-btn-color);
}

.btn-secondary:hover {
    background-color: rgba(255, 239, 176, 0.1);
    transform: translateY(-2px);
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0;
    justify-content: center;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    min-height: 44px;
    background-color: var(--primary-btn-bg);
    color: var(--primary-btn-color);
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: #FFD700;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 239, 176, 0.5);
}

/* ============================================
   Main Content
   ============================================ */
main {
    min-height: calc(100vh - 200px);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.section {
    margin: 3rem 0;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
    text-align: center;
}

.section-subtitle {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    color: var(--accent-color);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 3rem 1rem;
    background: linear-gradient(135deg, var(--header-bg) 0%, var(--primary-bg) 100%);
}

.hero h1 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Content Sections */
.content-section {
    padding: 2rem;
    background-color: rgba(2, 67, 45, 0.3);
    border-radius: 12px;
}

.content-section h2 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.content-section h3 {
    color: var(--accent-color);
    margin: 1.5rem 0 1rem;
    font-size: 1.4rem;
}

.content-section p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.content-section ul,
.content-section ol {
    margin: 1rem 0 1rem 2rem;
}

.content-section li {
    margin-bottom: 0.5rem;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background-color: rgba(2, 67, 45, 0.5);
    border-radius: 8px;
    overflow: hidden;
}

table th,
table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 239, 176, 0.2);
}

table th {
    background-color: var(--header-bg);
    color: var(--accent-color);
    font-weight: 600;
}

table tr:hover {
    background-color: rgba(255, 239, 176, 0.05);
}

/* Images */
.content-image {
    width: 100%;
    margin: 2rem auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Reviews & Testimonials */
.reviews {
    margin: 2rem 0;
}

.review-item {
    background-color: rgba(2, 67, 45, 0.4);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid var(--accent-color);
}

.review-item p {
    font-style: italic;
    margin-bottom: 0.5rem;
}

.review-item .author {
    color: var(--accent-color);
    font-weight: 600;
}

/* FAQ */
.faq {
    margin: 2rem 0;
}

.faq-item {
    background-color: rgba(2, 67, 45, 0.4);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.faq-item h3 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

/* Expert Opinion */
.expert-opinion {
    background-color: rgba(255, 239, 176, 0.1);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
    border-left: 4px solid var(--accent-color);
}

.expert-opinion p {
    font-style: italic;
    margin-bottom: 0.5rem;
}

.expert-opinion .expert-name {
    color: var(--accent-color);
    font-weight: 600;
}

/* ============================================
   Footer Styles
   ============================================ */
footer {
    background-color: var(--header-bg);
    border-top: 1px solid var(--header-border);
    padding: 3rem 1rem 1.5rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-light);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.payment-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.payment-method {
    padding: 0.5rem 1rem;
    background-color: rgba(255, 239, 176, 0.1);
    border-radius: 6px;
    font-size: 0.9rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 239, 176, 0.2);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 239, 176, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--accent-color);
    color: var(--primary-btn-color);
    transform: translateY(-3px);
}

/* ============================================
   Responsive Design - Tablet
   ============================================ */
@media (min-width: 1280px) {
    nav {
        display: block;
        position: static;
        background: none;
        border: none;
        padding: 0;
    }

    .nav-menu {
        flex-direction: row;
        gap: 0;
    }

    .nav-menu li a {
        padding: 0.5rem 1rem;
    }

    .burger-menu {
        display: none;
    }
}


@media (min-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2.5rem;
    }



    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .header-actions {
        gap: 1rem;
    }

    .banner-swiper {
        height: 300px;
    }

    .content-section {
        padding: 2.5rem;
    }

    .banner-swiper .swiper-button-next,
    .banner-swiper .swiper-button-prev {
        width: 50px;
        height: 50px;
    }

    .banner-swiper .swiper-button-next::after,
    .banner-swiper .swiper-button-prev::after {
        font-size: 22px;
    }
}

/* ============================================
   Responsive Design - Desktop
   ============================================ */
@media (min-width: 1024px) {
    .hero h1 {
        font-size: 3rem;
    }

    .section-title {
        font-size: 3rem;
    }

    .footer-content {
        grid-template-columns: repeat(4, 1fr);
    }

    .nav-menu {
        gap: 0.5rem;
    }

    .container {
        padding: 3rem 2rem;
    }

    .content-section {
        padding: 3rem;
    }

    table {
        font-size: 1rem;
    }

    .banner-swiper {
        height: 400px;
    }

    .banner-swiper .swiper-button-next,
    .banner-swiper .swiper-button-prev {
        width: 60px;
        height: 60px;
    }

    .banner-swiper .swiper-button-next::after,
    .banner-swiper .swiper-button-prev::after {
        font-size: 24px;
    }

    /* Responsive tables on mobile */
    .table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* Mobile table scroll */
@media (max-width: 767px) {
    .table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    table {
        min-width: 600px;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.highlight {
    color: var(--accent-color);
    font-weight: 600;
}

@media (max-width: 480px) {

    .header-container {
        flex-wrap: wrap;
    }

    .header-actions {
        width: 100%;
        justify-content: center;
        order: 3;
        margin-top: 15px;
    }
    
    .header-actions .btn {
        width: 100%;
    }
}