/*
Theme Name: SEO Theme VN888
Theme URI: https://vn888.com
Author: VN888 Team
Author URI: https://vn888.com
Description: Game Bài VN888 - Trải nghiệm cá cược đỉnh cao với các trò chơi bài đa dạng
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: vn888, game-bai, casino, betting, responsive
Text Domain: seo-theme-vn888
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Image alignment styles */
.img-center {
    display: block !important;
    margin: 30px auto !important;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.img-full-width {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto;
    margin: 0 0 30px 0 !important;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.img-responsive {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.content-image {
    display: block;
    margin: 25px 0;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Section image styles - for images above grid sections */
.section-image {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto;
    margin: 0 0 40px 0 !important;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Fix for section images in containers - more specific selector */
.section .section-image,
.section.games .section-image,
.container .section-image {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Ensure images don't overflow containers */
.container img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
    color: #f39c12;
    margin-left: 10px;
}

.nav-desktop {
    display: flex;
    gap: 30px;
}

.nav-desktop a {
    color: #fff;
    font-weight: 500;
    padding: 10px 15px;
    transition: all 0.3s ease;
    border-radius: 5px;
}

.nav-desktop a:hover {
    background: #f39c12;
    color: #1a1a2e;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

.auth-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.login-btn {
    display: inline-block;
    padding: 10px 25px;
    background: transparent;
    color: #fff;
    border: 2px solid #f39c12;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
}

.login-btn:hover {
    background: #f39c12;
    color: #1a1a2e;
    transform: translateY(-2px);
}

.register-btn {
    display: inline-block;
    padding: 10px 25px;
    background: #f39c12;
    color: #1a1a2e;
    border: 2px solid #f39c12;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
}

.register-btn:hover {
    background: #e67e22;
    border-color: #e67e22;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(243, 156, 18, 0.4);
}

.nav-mobile {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1a1a2e;
    padding: 20px;
}

.nav-mobile.active {
    display: block;
}

.nav-mobile a {
    display: block;
    color: #fff;
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #fff;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: #f39c12;
}

.hero p {
    font-size: 20px;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    background: #f39c12;
    color: #1a1a2e;
    font-weight: bold;
    border-radius: 30px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 16px;
}

.btn:hover {
    background: #e67e22;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(243, 156, 18, 0.3);
}

.section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 36px;
    color: #1a1a2e;
    margin-bottom: 15px;
}

.section-title p {
    font-size: 18px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.features {
    background: #fff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 36px;
}

.feature-card h3 {
    font-size: 22px;
    color: #1a1a2e;
    margin-bottom: 15px;
}

.feature-card p {
    color: #666;
    line-height: 1.8;
}

.games {
    background: #f5f5f5;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.game-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.game-image {
    height: 200px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    color: #f39c12;
}

.game-content {
    padding: 25px;
}

.game-content h3 {
    font-size: 22px;
    color: #1a1a2e;
    margin-bottom: 10px;
}

.game-content p {
    color: #666;
    margin-bottom: 15px;
}

.game-link {
    color: #f39c12;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

.game-link:hover {
    color: #e67e22;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.blog-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.blog-image {
    height: 220px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    color: #fff;
}

.blog-content {
    padding: 25px;
}

.blog-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #999;
}

.blog-content h3 {
    font-size: 20px;
    color: #1a1a2e;
    margin-bottom: 10px;
}

.blog-content p {
    color: #666;
    line-height: 1.7;
}

.footer {
    background: #1a1a2e;
    color: #fff;
    padding: 50px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 20px;
    color: #f39c12;
    margin-bottom: 20px;
}

.footer-section p,
.footer-section li {
    color: rgba(255,255,255,0.7);
    margin-bottom: 10px;
    line-height: 1.8;
}

.footer-section a {
    transition: all 0.3s ease;
}

.footer-section a:hover {
    color: #f39c12;
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
}

.page-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 42px;
    margin-bottom: 15px;
    color: #f39c12;
}

.page-header p {
    font-size: 18px;
    opacity: 0.9;
}

.page-content {
    background: #fff;
    padding: 60px 0;
}

.page-content-inner {
    max-width: 800px;
    margin: 0 auto;
}

.page-content h2 {
    font-size: 32px;
    color: #1a1a2e;
    margin: 40px 0 20px;
}

.page-content h3 {
    font-size: 24px;
    color: #1a1a2e;
    margin: 30px 0 15px;
}

.page-content p {
    font-size: 16px;
    color: #444;
    line-height: 1.8;
    margin-bottom: 20px;
}

.page-content ul {
    margin: 20px 0;
    padding-left: 20px;
}

.page-content li {
    margin-bottom: 10px;
    color: #444;
    line-height: 1.8;
}

.page-content li::before {
    content: '✓';
    color: #f39c12;
    margin-right: 10px;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1a1a2e;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #f39c12;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.content-area {
    padding: 40px 0;
}

.post {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.post-image {
    height: 300px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    color: #fff;
}

.post-content {
    padding: 30px;
}

.post-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #999;
}

.post h2 {
    font-size: 28px;
    color: #1a1a2e;
    margin-bottom: 15px;
}

.post p {
    color: #444;
    line-height: 1.8;
    margin-bottom: 15px;
}

.sidebar {
    background: #fff;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.sidebar-widget {
    margin-bottom: 30px;
}

.sidebar-widget h3 {
    font-size: 20px;
    color: #1a1a2e;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f39c12;
}

.sidebar-widget ul li {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e9ecef;
}

.sidebar-widget ul li:last-child {
    border-bottom: none;
}

.sidebar-widget a {
    color: #444;
    transition: all 0.3s ease;
}

.sidebar-widget a:hover {
    color: #f39c12;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    padding: 10px 18px;
    background: #fff;
    color: #1a1a2e;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.pagination a:hover,
.pagination span.current {
    background: #f39c12;
    color: #fff;
}

.breadcrumb {
    padding: 15px 0;
    background: #f8f9fa;
    margin-bottom: 30px;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.breadcrumb-list a {
    color: #f39c12;
}

.breadcrumb-list span {
    color: #666;
}

@media (max-width: 768px) {
    .nav-desktop {
        display: none;
    }

    .menu-toggle {
        display: block;
    }
    
    .auth-buttons {
        display: none;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 16px;
    }

    .section-title h2 {
        font-size: 28px;
    }

    .features-grid,
    .games-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .page-header h1 {
        font-size: 28px;
    }

    .post-image {
        height: 200px;
    }

    .content-area {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 50px 0;
    }

    .hero h1 {
        font-size: 26px;
    }

    .btn {
        padding: 12px 30px;
    }

    .section {
        padding: 40px 0;
    }
}
