/*
Theme Name: VN88 Theme
Theme URI: https://vn88bnb.eu.com/
Author: VN88 Team
Author URI: https://vn88bnb.eu.com/
Description: Theme chuyen nghiep danh cho nha cai VN88
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vn88-theme
*/

/* ================================
   CSS Variables
================================ */
:root {
    --primary-color: #c41e3a;
    --secondary-color: #ffd700;
    --dark-color: #1a1a1a;
    --light-color: #ffffff;
    --gray-color: #f5f5f5;
    --text-color: #333333;
    --border-color: #e0e0e0;
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-heading: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --transition: all 0.3s ease;
}

/* ================================
   Reset & Base
================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ================================
   Header
================================ */
.site-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #8b0000 100%);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.site-branding {
    display: flex;
    align-items: center;
}

.site-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--light-color);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.site-title span {
    color: var(--secondary-color);
}

.main-navigation {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-menu li a {
    color: var(--light-color);
    font-weight: 500;
    font-size: 15px;
    padding: 8px 15px;
    border-radius: 4px;
    transition: var(--transition);
}

.nav-menu li a:hover {
    background-color: rgba(255,255,255,0.2);
    color: var(--secondary-color);
}

.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.btn-login, .btn-register {
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
}

.btn-login {
    background-color: transparent;
    border: 2px solid var(--light-color);
    color: var(--light-color);
}

.btn-login:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
}

.btn-register {
    background-color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    color: var(--dark-color);
}

.btn-register:hover {
    background-color: #ffed4e;
    border-color: #ffed4e;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--light-color);
    font-size: 24px;
    cursor: pointer;
}

/* ================================
   Hero Section
================================ */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #8b0000 100%);
    padding: 150px 0 100px;
    color: var(--light-color);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></svg>');
    background-size: 100px;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-title span {
    color: var(--secondary-color);
}

.hero-description {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--dark-color);
    padding: 15px 40px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 16px;
    display: inline-block;
    transition: var(--transition);
    border: 2px solid var(--secondary-color);
}

.btn-primary:hover {
    background-color: #ffed4e;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--light-color);
    padding: 15px 40px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 16px;
    display: inline-block;
    transition: var(--transition);
    border: 2px solid var(--light-color);
}

.btn-secondary:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
}

/* ================================
   Section Styles
================================ */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.section-subtitle {
    font-size: 18px;
    text-align: center;
    color: #666;
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-gray {
    background-color: var(--gray-color);
}

/* ================================
   Features Grid
================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--light-color);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #8b0000 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
    color: var(--light-color);
}

.feature-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.feature-description {
    color: #666;
    line-height: 1.7;
}

/* ================================
   Content Section
================================ */
.content-section {
    padding: 80px 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.content-text h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.content-text p {
    margin-bottom: 20px;
    color: #555;
    line-height: 1.8;
}

.content-list {
    margin-top: 30px;
}

.content-list li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    color: #555;
}

.content-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* ================================
   Cards Section
================================ */
.cards-section {
    padding: 80px 0;
    background-color: var(--gray-color);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card-item {
    background: var(--light-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: var(--transition);
}

.card-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.card-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #8b0000 100%);
    padding: 25px;
    color: var(--light-color);
}

.card-header h3 {
    font-size: 20px;
    font-weight: 700;
}

.card-body {
    padding: 25px;
}

.card-body p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 15px;
}

.card-footer {
    padding: 0 25px 25px;
}

/* ================================
   CTA Section
================================ */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #8b0000 100%);
    padding: 80px 0;
    text-align: center;
    color: var(--light-color);
}

.cta-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-description {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ================================
   FAQ Section
================================ */
.faq-section {
    padding: 80px 0;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
    padding: 25px 0;
}

.faq-question {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::after {
    content: '+';
    font-size: 24px;
    color: var(--primary-color);
    transition: var(--transition);
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    margin-top: 15px;
    color: #666;
    line-height: 1.7;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

/* ================================
   Steps Section
================================ */
.steps-section {
    padding: 80px 0;
    background-color: var(--gray-color);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    counter-reset: step;
}

.step-item {
    background: var(--light-color);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    position: relative;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #8b0000 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 24px;
    font-weight: 700;
    color: var(--light-color);
}

.step-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.step-description {
    color: #666;
    line-height: 1.7;
}

/* ================================
   Tips Section
================================ */
.tips-section {
    padding: 80px 0;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.tip-item {
    background: var(--light-color);
    border-left: 4px solid var(--primary-color);
    padding: 30px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

.tip-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.tip-content {
    color: #666;
    line-height: 1.7;
}

/* ================================
   Comparison Section
================================ */
.comparison-section {
    padding: 80px 0;
    background-color: var(--gray-color);
}

.comparison-table {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    background: var(--light-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.comparison-table th,
.comparison-table td {
    padding: 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
    background: linear-gradient(135deg, var(--primary-color) 0%, #8b0000 100%);
    color: var(--light-color);
    font-weight: 600;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table .check {
    color: #28a745;
    font-weight: bold;
}

/* ================================
   Timeline Section
================================ */
.timeline-section {
    padding: 80px 0;
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--border-color);
}

.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: var(--light-color);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    max-width: 350px;
    position: relative;
}

.timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    top: 25px;
    right: -60px;
    border: 4px solid var(--light-color);
}

.timeline-item:nth-child(even) .timeline-dot {
    right: auto;
    left: -60px;
}

.timeline-date {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 10px;
}

.timeline-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.timeline-desc {
    color: #666;
    line-height: 1.6;
}

/* ================================
   Footer
================================ */
.site-footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    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: var(--secondary-color);
}

.footer-brand p {
    color: #aaa;
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--light-color);
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links li a {
    color: #aaa;
    transition: var(--transition);
}

.footer-links li a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright {
    color: #888;
    font-size: 14px;
}

.footer-seo {
    background-color: #111;
    padding: 30px 0;
    margin-top: 30px;
}

.footer-seo-content {
    color: #666;
    font-size: 13px;
    line-height: 1.8;
    text-align: center;
}

.footer-seo-content p {
    margin-bottom: 10px;
}

/* ================================
   Page Header
================================ */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #8b0000 100%);
    padding: 120px 0 60px;
    text-align: center;
    color: var(--light-color);
}

.page-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
}

.page-description {
    font-size: 18px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* ================================
   Page Content
================================ */
.page-content {
    padding: 60px 0;
}

.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.content-wrapper h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 40px 0 20px;
    color: var(--dark-color);
}

.content-wrapper h3 {
    font-size: 22px;
    font-weight: 600;
    margin: 30px 0 15px;
    color: var(--dark-color);
}

.content-wrapper p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: #555;
}

.content-wrapper ul,
.content-wrapper ol {
    margin-bottom: 20px;
    padding-left: 25px;
}

.content-wrapper ul li,
.content-wrapper ol li {
    margin-bottom: 10px;
    line-height: 1.7;
    color: #555;
}

.content-wrapper ul li {
    list-style-type: disc;
}

.content-wrapper ol li {
    list-style-type: decimal;
}

/* ================================
   Responsive
================================ */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item,
    .timeline-item:nth-child(even) {
        justify-content: flex-start;
        padding-left: 60px;
        padding-right: 0;
    }
    
    .timeline-dot,
    .timeline-item:nth-child(even) .timeline-dot {
        left: 10px;
        right: auto;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .main-navigation {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: linear-gradient(135deg, var(--primary-color) 0%, #8b0000 100%);
        flex-direction: column;
        padding: 30px;
        transition: var(--transition);
    }
    
    .main-navigation.active {
        left: 0;
    }
    
    .nav-menu {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }
    
    .nav-menu li a {
        display: block;
        padding: 15px;
        text-align: center;
    }
    
    .header-actions {
        flex-direction: column;
        width: 100%;
        margin-top: 20px;
    }
    
    .btn-login, .btn-register {
        width: 100%;
        text-align: center;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .page-title {
        font-size: 32px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 300px;
    }
    
    .tips-grid {
        grid-template-columns: 1fr;
    }
    
    .comparison-table {
        font-size: 14px;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 15px 10px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 120px 0 60px;
    }
    
    .hero-title {
        font-size: 26px;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .feature-card,
    .step-item {
        padding: 30px 20px;
    }
}
