/*
Theme Name: VN88 Theme
Theme URI: https://vn88.com
Author: VN88 Development Team
Author URI: https://vn88.com
Description: Theme chuyen nghiep danh cho nha cai VN88 - Dang cap nha cai Viet
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vn88-theme
Domain Path: /languages
*/

/* Reset CSS */
*, *::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;
    padding-top: 70px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.site-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    position: fixed;
    top: 0;
    left: 0;
    right: 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;
    position: relative;
}

.site-branding {
    display: flex;
    align-items: center;
}

.site-title {
    font-size: 28px;
    font-weight: 700;
    color: #ffd700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.site-title span {
    color: #fff;
}

/* Navigation */
.main-navigation {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    gap: 50px;
    padding-right: 50px;
}

.nav-menu a {
    color: #fff;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: #ffd700;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ffd700;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Header CTA Buttons */
.header-cta {
    display: flex;
    gap: 15px;
}

/* Menu Toggle Active State */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Prevent body scroll when menu is open */
body.menu-open {
    overflow: hidden;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-login {
    background: transparent;
    color: #fff;
    border: 2px solid #ffd700;
}

.btn-login:hover {
    background: #ffd700;
    color: #1a1a2e;
}

.btn-register {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #1a1a2e;
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    background: none;
    border: none;
    z-index: 10000;
    position: relative;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: #fff;
    transition: all 0.3s ease;
    display: block;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-title span {
    color: #ffd700;
}

.hero-description {
    font-size: 18px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #1a1a2e;
    padding: 15px 40px;
    font-size: 16px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
    padding: 15px 40px;
    font-size: 16px;
}

.btn-secondary:hover {
    background: #fff;
    color: #1a1a2e;
}

/* Section Styles */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    color: #1a1a2e;
}

.section-title span {
    color: #e63946;
}

/* Features Section */
.features-section {
    background: #fff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background: #f8f9fa;
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    color: #1a1a2e;
}

.feature-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #1a1a2e;
}

.feature-description {
    color: #666;
    line-height: 1.7;
}

/* Content Section */
.content-section {
    background: #f8f9fa;
}

.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.content-text {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 20px;
}

.content-text strong {
    color: #1a1a2e;
}

/* Steps Section */
.steps-section {
    background: #fff;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.step-card {
    text-align: center;
    padding: 30px;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #e63946 0%, #f77f00 100%);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 20px;
}

.step-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #1a1a2e;
}

.step-description {
    color: #666;
    font-size: 14px;
}

/* FAQ Section */
.faq-section {
    background: #f8f9fa;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.faq-question {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #1a1a2e;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: #f8f9fa;
}

.faq-question::after {
    content: '+';
    font-size: 24px;
    color: #e63946;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.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 {
    color: #666;
    line-height: 1.7;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #e63946 0%, #f77f00 100%);
    padding: 80px 0;
    text-align: center;
}

.cta-title {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
}

.cta-description {
    font-size: 18px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    background: #fff;
    color: #e63946;
    padding: 18px 50px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 50px;
    display: inline-block;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Cards Section */
.cards-section {
    background: #fff;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.info-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 30px;
    border-left: 4px solid #e63946;
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateX(5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.info-card-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #1a1a2e;
}

.info-card-text {
    color: #666;
    line-height: 1.7;
}

/* Tips Section */
.tips-section {
    background: #1a1a2e;
    color: #fff;
}

.tips-section .section-title {
    color: #fff;
}

.tips-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.tip-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.tip-icon {
    width: 40px;
    height: 40px;
    background: #ffd700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #1a1a2e;
    font-weight: 700;
}

.tip-content h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #ffd700;
}

.tip-content p {
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
}

/* Comparison Section */
.comparison-section {
    background: #fff;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
}

.comparison-table th,
.comparison-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.comparison-table th {
    background: #1a1a2e;
    color: #fff;
    font-weight: 600;
}

.comparison-table tr:hover {
    background: #f8f9fa;
}

.comparison-table .check {
    color: #28a745;
    font-weight: 700;
}

.comparison-table .cross {
    color: #dc3545;
    font-weight: 700;
}

/* Timeline Section */
.timeline-section {
    background: #f8f9fa;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: #e63946;
}

.timeline-item {
    display: flex;
    justify-content: flex-end;
    padding-right: 50%;
    position: relative;
    margin-bottom: 50px;
}

.timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: 50%;
}

.timeline-content {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    max-width: 350px;
    position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: 30px;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 30px;
}

.timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    background: #e63946;
    border-radius: 50%;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid #fff;
    box-shadow: 0 0 0 4px #e63946;
}

.timeline-date {
    color: #e63946;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 10px;
}

.timeline-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #1a1a2e;
}

.timeline-text {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* Footer */
.site-footer {
    background: #1a1a2e;
    color: #fff;
    padding: 60px 0 20px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-widget-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #ffd700;
}

.footer-menu li {
    margin-bottom: 10px;
}

.footer-menu a {
    color: rgba(255,255,255,0.8);
    transition: color 0.3s ease;
}

.footer-menu a:hover {
    color: #ffd700;
}

.footer-brand {
    max-width: 300px;
}

.footer-brand-title {
    font-size: 24px;
    font-weight: 700;
    color: #ffd700;
    margin-bottom: 15px;
}

.footer-brand-text {
    color: rgba(255,255,255,0.8);
    line-height: 1.7;
    font-size: 14px;
}

.footer-seo {
    background: #0f0f1e;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.footer-seo-title {
    font-size: 16px;
    font-weight: 600;
    color: #ffd700;
    margin-bottom: 15px;
}

.footer-seo-text {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
}

.footer-copyright {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
}

/* Image Styles */
.hero-image,
.features-image,
.cta-image,
.faq-image,
.page-image {
    text-align: center;
    margin: 40px auto;
}

.hero-image img,
.features-image img,
.cta-image img,
.faq-image img,
.page-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: block;
    margin: 0 auto;
}

.hero-image img {
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.cta-image img {
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 60px 0;
    text-align: center;
}

.page-title {
    font-size: 42px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
}

.page-description {
    font-size: 16px;
    color: rgba(255,255,255,0.8);
    max-width: 600px;
    margin: 0 auto;
}

/* Page Content */
.page-content {
    padding: 60px 0;
    background: #fff;
}

.content-block {
    max-width: 900px;
    margin: 0 auto 50px;
}

.content-block h2 {
    font-size: 28px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e63946;
}

.content-block h3 {
    font-size: 22px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 30px 0 15px;
}

.content-block p {
    color: #444;
    line-height: 1.8;
    margin-bottom: 15px;
}

.content-block ul,
.content-block ol {
    margin-left: 25px;
    margin-bottom: 20px;
}

.content-block ul li,
.content-block ol li {
    margin-bottom: 10px;
    color: #444;
    line-height: 1.7;
}

.content-block ul li {
    list-style: disc;
}

.content-block ol li {
    list-style: decimal;
}

/* Form Styles */
.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1a1a2e;
}

.form-input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #e63946;
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

.form-submit {
    background: linear-gradient(135deg, #e63946 0%, #f77f00 100%);
    color: #fff;
    padding: 15px 40px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(230, 57, 70, 0.4);
}

/* Contact Info */
.contact-info {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-info-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #e63946 0%, #f77f00 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
}

.contact-info-text h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 5px;
}

.contact-info-text p {
    color: #666;
    font-size: 14px;
}

/* Promotion Cards */
.promo-card {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-radius: 15px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    border: 2px solid #e9ecef;
    position: relative;
    overflow: hidden;
}

.promo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(135deg, #e63946 0%, #f77f00 100%);
}

.promo-badge {
    display: inline-block;
    background: linear-gradient(135deg, #e63946 0%, #f77f00 100%);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.promo-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 15px;
}

.promo-description {
    color: #666;
    line-height: 1.7;
    margin-bottom: 20px;
}

.promo-details {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.promo-details li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

.promo-details li:last-child {
    border-bottom: none;
}

.promo-label {
    color: #666;
    font-size: 14px;
}

.promo-value {
    color: #1a1a2e;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex !important;
    }
    
    .main-navigation {
        display: none !important;
    }
    
    .main-navigation.active {
        display: flex !important;
        position: fixed;
        top: 60px;
        left: 0;
        width: 80%;
        max-width: 300px;
        height: calc(100vh - 60px);
        background: #1a1a2e;
        padding: 20px;
        flex-direction: column;
        z-index: 9999;
        box-shadow: 2px 0 30px rgba(0,0,0,0.5);
        overflow-y: auto;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }
    
    .header-cta {
        margin-top: 20px;
        width: 100%;
        justify-content: center;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .page-title {
        font-size: 32px;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item,
    .timeline-item:nth-child(even) {
        padding-left: 60px;
        padding-right: 0;
        justify-content: flex-start;
    }
    
    .timeline-dot {
        left: 20px;
        transform: translateX(-50%);
    }
    
    .timeline-item .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 0;
        margin-right: 0;
        max-width: 100%;
    }
    
    .footer-widgets {
        grid-template-columns: 1fr;
    }
    
    .comparison-table {
        font-size: 14px;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 300px;
    }
    
    .features-grid,
    .cards-grid {
        grid-template-columns: 1fr;
    }
}
