/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif; /* Or a font that matches the image */
    background-color: #1e0047; /* Adjust to match background */
}
/* 侧边栏基础样式 */
.main-nav {
    display: block;
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background: linear-gradient(135deg, #040304 0%, #b4adbb 100%);
    z-index: 1000;
    transition: left 0.3s ease;
    overflow-y: auto;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.3);
}

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

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999;
    display: none;
}

.sidebar-overlay.active {
    display: block;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-logo {
    height: 40px;
}

.close-sidebar {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: block;
}

.main-nav li {
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.main-nav a {
    color: white;
    text-decoration: none;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.main-nav a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
    font-size: 16px;
    color: #f8c12c;
}

.main-nav a:hover {
    background-color: rgba(248, 193, 44, 0.1);
    color: #f8c12c;
}

/* 下拉菜单样式 */
.has-dropdown > a::after {
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-left: auto;
    transition: transform 0.3s ease;
}

.has-dropdown.active > a::after {
    transform: rotate(90deg);
}

.dropdown {
    background-color: rgba(0, 0, 0, 0.2);
    display: none;
    position: static;
    width: 100%;
}

.has-dropdown.active .dropdown {
    display: block;
}

.dropdown li {
    border-bottom: none;
}

.dropdown a {
    padding-left: 50px;
    font-size: 13px;
}

/* 侧边栏底部 */
.sidebar-footer {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 20px;
}

.sidebar-btn {
    display: block;
    padding: 12px 20px;
    text-align: center;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.sidebar-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.sidebar-btn.primary {
    background-color: #f8c12c;
    color: #1e0047;
}

.sidebar-btn.primary:hover {
    background-color: #e6b01a;
}

/* 汉堡菜单按钮样式 */
.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: all 0.3s ease-in-out;
    border-radius: 3px;
}

.menu-toggle:hover span {
    background-color: #f8c12c;
}

/* 响应式设计 */
@media (min-width: 992px) {
    .main-nav {
        left: -300px; /* 即使在大屏幕上也保持侧边栏 */
    }
    
    .menu-toggle {
        display: flex; /* 在大屏幕上也显示汉堡菜单 */
    }
}
.container {
    width: 100%; /* Or a fixed width like 1200px */
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
header {
    background-color: #333; /* Adjust to match image */
    padding: 15px 0;
    color: white;
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between; /* This might need adjustment based on exact layout */
}

.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
}



.logo img {
    height: 40px; /* Adjust as needed */
    display: block;
    margin: 0 auto; /* 水平居中 */
    margin-top: 0; /* 确保顶部对齐 */
}

/* Carousel Styles */

.carousel-container {
    position: relative;
    max-width: 100%;
    border-radius: 2px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.carousel-slides {
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    position: relative;
    display: none;
    text-align: center;
    flex-direction: column; /* 确保内容垂直排列 */
}

.slide.active {
    display: flex; /* 改为flex布局 */
}

.slide img {
    width: 100%;
    height: auto; /* 保持图片比例 */
    object-fit: cover;
    border-radius: 2px 2px 0 0; /* 上方圆角 */
}

.slide-caption {
    width: 100%;
    color: #333;
    background:radial-gradient(circle, #ff3535, rgb(107 4 4 / 80%));
    padding: 10px 5px;
    border-radius: 0 0 5px 5px; /* 只有下方圆角 */
    text-align: center;
    margin-top: 0; /* 移除顶部边距 */
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.slide-caption::before {
    content: "";
    position: absolute;
    top: -15px;
    left: 0;
    width: 60px;
    height: 60px;
    background-image: url('/images/coin-3.png');
    background-size: contain;
    background-repeat: no-repeat;
    z-index: -1;
    animation: coinMove 4s infinite alternate ease-in-out;
}
@keyframes coinMove {
    0% {
        transform: translateX(-20px);
    }
    100% {
        transform: translateX(calc(100% - 40px));
    }
}

.carousel-arrow {
    position: absolute;
    top: 40%; /* 调整到图片中间位置 */
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.5); /* 增加背景透明度 */
    border: none;
    padding: 10px 15px;
    border-radius: 20%; /* 圆形按钮 */
    cursor: pointer;
    font-size: 24px;
    transition: all 0.3s ease;
    z-index: 10; /* 确保按钮在最上层 */
    color: #333;
    opacity: 0; /* 默认隐藏按钮 */
    visibility: hidden; /* 完全隐藏，不占用空间 */
}
.carousel-container:hover .carousel-arrow {
    opacity: 1; /* 鼠标悬停时显示按钮 */
    visibility: visible; /* 鼠标悬停时显示按钮 */
}

.carousel-arrow:hover {
    background: rgba(255,255,255,0.9);
    color: #000;
}

.prev { left: 20px; }
.next { right: 20px; }

.carousel-dots {
    position: absolute;
    bottom: 35%; /* 调整到图片底部 */
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 5; /* 确保指示点在图片上方 */
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.3s;
    border: 1px solid rgba(0,0,0,0.2); /* 添加边框使其更明显 */
}

.dot.active {
    background: rgba(255,255,255,0.9);
    transform: scale(1.2); /* 当前点稍微放大 */
}

/* Main Actions Buttons */
.main-actions {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%); /* Or transparent if it's over the hero */
}

.main-actions .container {
    display: flex;
    justify-content: center; /* Or space-around, etc. */
    height: 60px;
}

.btn {
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-size: 1em;
    margin: 0 5px;
    text-transform: uppercase;
    font-weight: bold;
}

.btn-daftar {
    background-color: #d9232d; /* Red color from image */
    color: white;
    width: 50%;
    display: inline-block;
    text-align: center;
}

.btn-masuk {
    background-color: #007bff; /* Blue color from image */
    color: white;
    width: 50%;
    display: inline-block;
    text-align: center;
}

/* Category Navigation */
.category-nav {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%); /* Adjust as needed */
    padding: 2px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-nav ul {
    list-style: none;
    display: flex;
    justify-content: space-around; /* Or space-between */
    align-items: center;
}

.category-nav li a {
    text-decoration: none;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.9em;
}

.category-nav li img {
    width: 40px; /* Adjust as needed */
    height: 40px; /* Adjust as needed */
    margin-bottom: 5px;
}

.category-nav ul li {
    display: inline-block;
    text-align: center;
    margin: 0 10px;
    background-color: #f5f5f5;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.category-nav ul li:hover {
    transform: translateY(-5px);
}

.category-nav ul li img {
    width: 50px;
    height: 50px;
    margin-bottom: 5px;
}

.category-nav ul li span {
    display: block;
    font-size: 14px;
    color: #666;
}
/* Content Area */
.content-area {
    padding: 30px 0;
    background-color: #fff;
}

.content-area h2 {
    margin-bottom: 15px;
    font-size: 1.8em;
}

.content-area p {
    margin-bottom: 20px;
    line-height: 1.6;
}

.btn-lihat-alternatif {
    background-color: #ff9900; /* Orange color from image */
    color: white;
    padding: 12px 25px;
}

/* Add more specific styles as you go */
.category-cad {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.category-cad ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}
.category-cad li {
    margin: 10px;
    text-align: center;
    flex: 0 0 45%;
    box-sizing: border-box;
}
.category-cad img {
    width: 100%;
    max-width: 200px;
    height: auto;
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
}
.category-cad img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}
.category-cad span {
    display: block;
    margin-top: 10px;
    font-size: 14px;
    color: #f7f2f2;
}
/* 手机端小屏显示样式 */
@media (max-width: 576px) {
    .category-cad ul {
        justify-content: center;
    }
    .category-cad li {
        flex: 0 0 40%;
        margin: 5px;
    }
    .category-cad img {
        max-width: 100%;
    }
    .category-cad span {
        font-size: 12px;
        margin-top: 5px;
    }
    .btn-lihat-alternatif {
        width: 100%;
        margin-top: 10px;
        padding: 10px 15px;
        font-size: 14px;
    }
}

/* 超小屏幕设备样式 */
@media (max-width: 375px) {
    .category-cad li {
        flex: 0 0 45%;
        margin: 3px;
    }
    .category-cad span {
        font-size: 11px;
    }
}
/* SOQI88 Game Showcase Styles */
.game-showcase {
    padding: 40px 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
}

.showcase-header {
    text-align: center;
    margin-bottom: 30px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #f0a500;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.section-subtitle {
    font-size: 1.2rem;
    color: #e6e6e6;
    font-style: italic;
}

.showcase-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.6;
    font-size: 1.1rem;
    padding: 0 20px;
}

.game-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
}

.game-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 25px;
    width: 100%;
    max-width: 350px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #f0a500, #e45826);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: inline-block;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: #f0a500;
}

.card-subtitle {
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 15px;
    color: #e6e6e6;
    font-style: italic;
}

.card-description {
    margin-bottom: 20px;
    line-height: 1.5;
}

.feature-list {
    list-style: none;
    margin-bottom: 25px;
}

.feature-list li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
    line-height: 1.4;
}

.feature-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #f0a500;
    font-weight: bold;
}

.feature-highlight {
    color: #f0a500;
    font-weight: 600;
}

.btn-game {
    display: inline-block;
    padding: 12px 25px;
    background: linear-gradient(90deg, #f0a500, #e45826);
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-game:hover {
    background: linear-gradient(90deg, #e45826, #f0a500);
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(228, 88, 38, 0.4);
}

.why-choose {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.why-choose h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #f0a500;
}

.why-choose p {
    margin-bottom: 20px;
    line-height: 1.6;
}

.cta-container {
    margin-top: 25px;
}

.cta-text {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #e6e6e6;
}

.btn-lihat-alternatif {
    background: linear-gradient(90deg, #b4fcc6, #ff8d00);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-lihat-alternatif:hover {
    background: linear-gradient(90deg, #e45826, #f0a500);
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(228, 88, 38, 0.4);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .game-cards {
        flex-direction: column;
        align-items: center;
    }
    
    .game-card {
        max-width: 100%;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* Footer Cards Styles */
.footer-top {
    padding: 40px 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.footer-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}

.footer-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    width: 100%;
    max-width: 350px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.footer-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #f0a500, #e45826);
}

.footer-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.footer-card a {
    text-decoration: none;
    color: #fff;
    display: block;
}

.card-image {
    overflow: hidden;
    border-radius: 10px 10px 0 0;
}

.footer-card img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

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

.card-content {
    padding: 20px;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: #f0a500;
}

.card-description {
    font-size: 1rem;
    color: #e6e6e6;
    margin-bottom: 0;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .footer-cards {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-card {
        max-width: 100%;
    }
}


/* 页脚底部样式 */
.footer-bottom {
    background: linear-gradient(135deg, #0f0f1e 0%, #101030 100%);
    padding: 25px 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.footer-bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #f0a500, #e45826);
    opacity: 0.7;
}

.copyright {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
}

.copyright span {
    color: #a0a0a0;
    font-size: 0.9rem;
    line-height: 1.6;
}

.copyright span:last-child {
    color: #f0a500;
    font-weight: 600;
    font-size: 0.85rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .copyright span {
        font-size: 0.8rem;
    }
}
