/*
 * SODO66 NỔ HŨ - Shared CSS Styles
 * This file contains global styles, header, footer, and marquee specific CSS.
 * Assumes a modern browser environment and optionally, a Bootstrap-like grid system.
 * Font Awesome (for icons) is also assumed to be linked in the main HTML.
 */

/* Basic Resets & Global Styles */
:root {
    --primary-color: #FFD700; /* Warm Gold */
    --secondary-color: #2E8B57; /* Deep Green */
    --dark-bg: #1a1a1a;
    --light-text: #f8f9fa;
    --gray-text: #adb5bd;
    --white: #ffffff;
    --black: #000000;
}

body {
    font-family: 'Roboto', sans-serif; /* Recommended to link from Google Fonts */
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #f4f7f6;
    color: #333;
    line-height: 1.6;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

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

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

/* Utility Classes (Bootstrap-like) */
.d-flex {
    display: flex;
}
.align-items-center {
    align-items: center;
}
.justify-content-between {
    justify-content: space-between;
}
.mx-auto {
    margin-left: auto !important;
    margin-right: auto !important;
}
.me-2 {
    margin-right: 0.5rem !important;
}
.ms-3 {
    margin-left: 1rem !important;
}
.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}
.my-4 {
    margin-top: 1.5rem !important;
    margin-bottom: 1.5rem !important;
}
.mb-4 {
    margin-bottom: 1.5rem !important;
}
.mt-3 {
    margin-top: 1rem !important;
}
.text-center {
    text-align: center !important;
}

/* Header Styles */
.main-header {
    background-color: var(--dark-bg);
    color: var(--light-text);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.header-top-bar {
    background-color: #111;
    padding: 8px 0;
    font-size: 0.85em;
    border-bottom: 1px solid #333;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info span {
    margin-right: 20px;
    color: var(--gray-text);
}

.contact-info i {
    margin-right: 5px;
    color: var(--primary-color);
}

.social-links a {
    color: var(--gray-text);
    margin-left: 15px;
    font-size: 1.1em;
}

.social-links a:hover {
    color: var(--primary-color);
}

.navbar {
    padding: 10px 0;
}

.navbar-brand .header-logo {
    height: 50px; /* Adjust as needed */
    max-width: 180px;
    object-fit: contain;
}

.navbar-toggler {
    border: 1px solid var(--primary-color);
    padding: 0.25rem 0.75rem;
    font-size: 1.25rem;
    line-height: 1;
    background-color: transparent;
    border-radius: 0.25rem;
    color: var(--light-text);
}

.navbar-toggler-icon {
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    vertical-align: middle;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100%;
}

.navbar-collapse {
    flex-basis: 100%;
    flex-grow: 1;
    align-items: center;
}

.navbar-nav .nav-item .nav-link {
    color: var(--light-text);
    font-weight: 500;
    padding: 10px 15px;
    position: relative;
    display: block;
}

.navbar-nav .nav-item .nav-link:hover,
.navbar-nav .nav-item.active .nav-link {
    color: var(--primary-color);
}

.navbar-nav .nav-item .nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-item .nav-link:hover::before,
.navbar-nav .nav-item.active .nav-link::before {
    width: 70%;
}

.dropdown-menu {
    background-color: var(--dark-bg);
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    display: none; /* Controlled by JS */
    position: absolute;
    min-width: 10rem;
    z-index: 1000;
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
    border-radius: 0.25rem;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-menu .dropdown-item {
    color: var(--light-text);
    padding: 10px 20px;
    display: block;
    clear: both;
    font-weight: 400;
    text-align: inherit;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
}

.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus {
    background-color: var(--secondary-color);
    color: var(--white);
}

.header-actions .btn {
    padding: 8px 18px;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    border: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--dark-bg);
}

.btn-primary:hover {
    background-color: #e6c200; /* Darker gold */
    border-color: #e6c200;
    color: var(--dark-bg);
}

.btn-success {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--white);
}

.btn-success:hover {
    background-color: #287a4c; /* Darker green */
    border-color: #287a4c;
    color: var(--white);
}

.language-selector .form-select {
    background-color: #333;
    color: var(--light-text);
    border: 1px solid #555;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    appearance: none; /* Remove default arrow */
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffd700' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5L8 11L14 5'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
}

/* Marquee Section Styles */
.marquee-section {
    background-color: #222;
    color: var(--light-text);
    padding: 10px 0;
    overflow: hidden;
    border-bottom: 2px solid var(--primary-color);
}

.marquee-container {
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.marquee-icon {
    flex-shrink: 0;
    margin-right: 15px;
}

.marquee-icon-emoji {
    font-size: 1.5em;
    color: var(--primary-color);
}

.marquee-wrapper {
    flex-grow: 1;
    overflow: hidden;
    position: relative;
    height: 24px; /* Adjust based on line height of content */
}

.marquee-content {
    display: inline-block;
    white-space: nowrap;
    animation: marquee-scroll 25s linear infinite;
    padding-left: 100%; /* Start off-screen */
}

.marquee-content a {
    color: var(--light-text);
    text-decoration: none;
    margin-right: 50px;
    font-size: 0.95em;
    transition: color 0.3s ease;
}

.marquee-content a:hover {
    color: var(--primary-color);
}

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

/* Footer Styles */
.main-footer {
    background-color: var(--dark-bg);
    color: var(--gray-text);
    padding-top: 50px;
    border-top: 5px solid var(--primary-color);
}

.footer-title {
    color: var(--primary-color);
    font-size: 1.2em;
    margin-bottom: 20px;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 40px;
    height: 3px;
    background-color: var(--secondary-color);
}

.footer-text {
    font-size: 0.9em;
    line-height: 1.6;
}

.footer-links {
    padding: 0;
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--gray-text);
    font-size: 0.9em;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-contact {
    margin-bottom: 10px;
    font-size: 0.9em;
}

.footer-contact i {
    margin-right: 10px;
    color: var(--primary-color);
}

.social-icons a {
    display: inline-block;
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    background-color: #333;
    color: var(--gray-text);
    border-radius: 50%;
    margin-right: 10px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--primary-color);
    color: var(--dark-bg);
}

.payment-methods .payment-icon {
    height: 30px;
    margin-right: 10px;
    filter: grayscale(80%);
    opacity: 0.8;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.payment-methods .payment-icon:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.footer-divider {
    border-color: #333;
    margin-left: 0;
    margin-right: 0;
}

.copyright-text, .responsible-gaming-link {
    font-size: 0.85em;
    color: var(--gray-text);
}

.responsible-gaming-link {
    color: var(--primary-color);
}

.responsible-gaming-link:hover {
    text-decoration: underline;
}

.age-restriction-icon {
    height: 25px;
    vertical-align: middle;
}

/* Responsive Adjustments (Basic Bootstrap-like grid and flex utilities are assumed) */
@media (max-width: 991px) {
    .navbar-collapse {
        background-color: var(--dark-bg);
        padding: 15px;
        margin-top: 10px;
        border-radius: 5px;
    }
    .navbar-nav {
        text-align: center;
        margin-bottom: 15px;
    }
    .navbar-nav .nav-item .nav-link {
        padding: 10px 0;
    }
    .header-actions {
        flex-direction: column;
        align-items: center !important;
    }
    .header-actions .btn {
        width: 80%;
        margin-bottom: 10px;
    }
    .language-selector {
        margin-left: 0 !important;
        margin-top: 10px;
    }
    .language-selector select {
        width: 80%;
        text-align: center;
    }
    .top-bar-content {
        flex-direction: column;
        text-align: center;
    }
    .contact-info span {
        margin-right: 0;
        margin-bottom: 5px;
        display: block;
    }
    .social-links {
        margin-top: 10px;
    }
    .social-links a {
        margin: 0 8px;
    }
    .marquee-container {
        flex-direction: column;
    }
    .marquee-icon {
        margin-bottom: 10px;
        margin-right: 0;
    }
    .marquee-wrapper {
        width: 100%;
    }
    .col-lg-3, .col-lg-2 { /* Adjust for smaller screens */
        width: 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (max-width: 767px) {
    .footer-title {
        text-align: center;
        margin-top: 20px;
    }
    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .footer-text, .footer-links, .footer-contact {
        text-align: center;
    }
    .social-icons, .payment-methods {
        justify-content: center;
        display: flex;
        margin-top: 15px;
        margin-bottom: 15px;
    }
    .copyright-text, .responsible-gaming-link {
        text-align: center !important;
        display: block;
        margin-top: 10px;
    }
    .age-restriction-icon {
        margin-top: 10px;
    }
    .col-md-6 {
        width: 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }
    .text-md-start, .text-md-end {
        text-align: center !important;
    }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@media (max-width: 768px) {
  .page-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
  }
  .page-content {
    overflow-x: hidden;
    max-width: 100%;
  }
  body {
    overflow-x: hidden;
  }
}
