/*
Theme Name: 12Bet Theme
Theme URI: https://12bet.com
Author: 12Bet Team
Author URI: https://12bet.com
Description: 12Bet - Nền Tảng Giải Trí Trực Tuyến Hàng Đầu Châu Á
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: 12bet-theme
Domain Path: /languages
*/

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

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, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles - Structure C */
.topbar {
    background: linear-gradient(135deg, #1a237e 0%, #283593 100%);
    padding: 8px 0;
}

.topbar .container {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.btn-auth {
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-login {
    background: transparent;
    border: 1px solid #ffd700;
    color: #ffd700;
}

.btn-login:hover {
    background: #ffd700;
    color: #1a237e;
}

.btn-register {
    background: #ffd700;
    border: 1px solid #ffd700;
    color: #1a237e;
}

.btn-register:hover {
    background: #ffed4e;
}

.main-nav-wrapper {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-nav-wrapper .container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 70px;
}

.desktop-nav {
    display: flex;
}

.desktop-nav .nav-list {
    display: flex;
    gap: 40px;
}

.desktop-nav .nav-link {
    font-size: 15px;
    font-weight: 600;
    color: #1a237e;
    padding: 10px 0;
    position: relative;
    transition: color 0.3s ease;
}

.desktop-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: #ffd700;
    transition: width 0.3s ease;
}

.desktop-nav .nav-link:hover::after,
.desktop-nav .nav-link.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #1a237e;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.mobile-nav {
    display: none;
    padding: 20px;
}

.mobile-nav.active {
    display: block;
}

.mobile-nav .nav-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-nav .nav-link {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #1a237e 0%, #3949ab 50%, #1a237e 100%);
    padding: 100px 0;
    text-align: center;
    color: #fff;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-block;
    padding: 16px 40px;
    background: #ffd700;
    color: #1a237e;
    font-size: 16px;
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary:hover {
    background: #ffed4e;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
}

.btn-secondary {
    display: inline-block;
    padding: 16px 40px;
    background: transparent;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    border: 2px solid #fff;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-secondary:hover {
    background: #fff;
    color: #1a237e;
}

/* Section Styles */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: #1a237e;
    text-align: center;
    margin-bottom: 20px;
    text-transform: capitalize;
}

.section-subtitle {
    font-size: 18px;
    color: #666;
    text-align: center;
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #1a237e 0%, #3949ab 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: #ffd700;
    font-size: 28px;
}

.feature-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a237e;
    margin-bottom: 15px;
}

.feature-desc {
    font-size: 15px;
    color: #666;
    line-height: 1.7;
}

/* Content Section */
.content-section {
    background: #fff;
}

.content-block {
    margin-bottom: 50px;
}

.content-block:last-child {
    margin-bottom: 0;
}

.content-heading {
    font-size: 28px;
    font-weight: 700;
    color: #1a237e;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid #ffd700;
    display: inline-block;
}

.content-text {
    font-size: 16px;
    color: #444;
    line-height: 1.9;
    margin-bottom: 20px;
}

.content-text strong {
    color: #1a237e;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #ffd700;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -35px;
    top: 5px;
    width: 16px;
    height: 16px;
    background: #1a237e;
    border: 3px solid #ffd700;
    border-radius: 50%;
}

.timeline-year {
    font-size: 18px;
    font-weight: 700;
    color: #ffd700;
    background: #1a237e;
    display: inline-block;
    padding: 5px 15px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.timeline-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a237e;
    margin-bottom: 10px;
}

.timeline-desc {
    font-size: 15px;
    color: #666;
    line-height: 1.7;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.info-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.info-card-content {
    padding: 30px;
}

.info-card-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a237e;
    margin-bottom: 15px;
}

.info-card-text {
    font-size: 15px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 20px;
}

.info-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1a237e;
    font-weight: 600;
    font-size: 14px;
    transition: gap 0.3s ease;
}

.info-card-link:hover {
    gap: 12px;
}

/* Steps Section */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.step-card {
    background: #fff;
    padding: 35px;
    border-radius: 12px;
    text-align: center;
    position: relative;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.step-number {
    width: 50px;
    height: 50px;
    background: #ffd700;
    color: #1a237e;
    font-size: 24px;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.step-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a237e;
    margin-bottom: 12px;
}

.step-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* FAQ Section */
.faq-section {
    background: #f0f2f5;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.faq-question {
    padding: 20px 25px;
    font-size: 16px;
    font-weight: 600;
    color: #1a237e;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: #f8f9fa;
}

.faq-question::after {
    content: '+';
    font-size: 24px;
    color: #ffd700;
    font-weight: 300;
}

.faq-item.active .faq-question::after {
    content: '-';
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 25px 20px;
    max-height: 500px;
}

.faq-answer p {
    font-size: 15px;
    color: #666;
    line-height: 1.7;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #1a237e 0%, #3949ab 100%);
    padding: 80px 0;
    text-align: center;
    color: #fff;
}

.cta-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-text {
    font-size: 18px;
    margin-bottom: 35px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
.main-footer {
    background: #0d1642;
    color: #fff;
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #ffd700;
}

.footer-brand p {
    font-size: 14px;
    color: #aaa;
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #ffd700;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    font-size: 14px;
    color: #aaa;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ffd700;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright {
    font-size: 14px;
    color: #888;
}

.footer-seo-text {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* Images - Centered */
.content-image,
.section-image,
.cta-image,
.faq-image {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 25px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.content-block .content-image {
    margin: 20px auto;
}

.section-image {
    margin: 30px auto;
}

.cta-image {
    margin: 30px auto;
    border-radius: 10px;
}

.faq-image {
    margin: 15px auto;
    max-width: 90%;
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .desktop-nav {
        display: none;
    }
    
    .main-nav-wrapper .container {
        justify-content: flex-start;
        position: relative;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .features-grid,
    .cards-grid,
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .topbar .container {
        justify-content: center;
    }
    
    .btn-auth {
        padding: 6px 15px;
        font-size: 12px;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 280px;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.bg-white {
    background: #fff;
}

.bg-light {
    background: #f5f5f5;
}

/* Additional Styles from Assets */

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.content-grid h3 {
    font-size: 22px;
    color: #1a237e;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ffd700;
}

.content-grid ul {
    margin-bottom: 30px;
}

.content-grid li {
    padding: 10px 0;
    padding-left: 25px;
    position: relative;
    color: #555;
}

.content-grid li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #ffd700;
    font-weight: bold;
}

/* CTA Section Additional Styles */
.cta-section .cta-desc {
    font-size: 18px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* FAQ Additional Styles Override */
.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 25px 20px;
    max-height: 500px;
}

/* Responsive Adjustments for Content Grid */
@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn-primary,
    .cta-buttons .btn-secondary {
        width: 100%;
        max-width: 280px;
    }
}
