/**
 * K8 Theme Styles
 * Version: 1.0.0
 */

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Screen Reader */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Header */
.site-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-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding .site-title {
    font-size: 1.8rem;
    font-weight: 700;
}

.site-branding .site-title a {
    color: #ffd700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Navigation */
.main-navigation .nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-navigation .nav-menu a {
    color: #fff;
    font-weight: 500;
    padding: 10px 0;
    position: relative;
}

.main-navigation .nav-menu a:hover {
    color: #ffd700;
}

.main-navigation .nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #ffd700;
    transition: width 0.3s ease;
}

.main-navigation .nav-menu a:hover::after {
    width: 100%;
}

/* Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.menu-icon {
    display: block;
    width: 25px;
    height: 3px;
    background: #fff;
    position: relative;
    transition: background 0.3s ease;
}

.menu-icon::before,
.menu-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background: #fff;
    transition: transform 0.3s ease;
}

.menu-icon::before {
    top: -8px;
}

.menu-icon::after {
    top: 8px;
}

/* Header Actions */
.header-actions {
    display: flex;
    gap: 15px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-login {
    background: transparent;
    color: #fff;
    border: 2px solid #ffd700;
}

.btn-login:hover {
    background: #ffd700;
    color: #1a1a2e;
}

.btn-register,
.btn-primary,
.btn-cta {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #1a1a2e;
    border: none;
}

.btn-register:hover,
.btn-primary:hover,
.btn-cta:hover {
    background: linear-gradient(135deg, #ffed4e 0%, #ffd700 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-secondary:hover {
    background: #fff;
    color: #1a1a2e;
}

/* Main Content */
.site-content {
    min-height: calc(100vh - 300px);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #fff;
    padding: 100px 0;
    text-align: center;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 40px;
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 50px;
    color: #1a1a2e;
    font-weight: 700;
}

.page-title {
    font-size: 2.4rem;
    text-align: center;
    margin-bottom: 20px;
    color: #1a1a2e;
    font-weight: 700;
}

.page-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    font-size: 1.1rem;
    color: #666;
}

/* Brand Section */
.brand-section {
    background: #fff;
}

.brand-content p {
    max-width: 900px;
    margin: 0 auto 20px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

/* Features Section */
.features-section {
    background: #f8f9fa;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.feature-card h3 {
    font-size: 1.4rem;
    color: #1a1a2e;
    margin-bottom: 15px;
}

.feature-card p {
    color: #666;
    line-height: 1.7;
}

/* Content Section */
.content-section {
    background: #fff;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.content-item h3 {
    font-size: 1.5rem;
    color: #1a1a2e;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 3px solid #ffd700;
}

.content-item p {
    color: #555;
    line-height: 1.8;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    text-align: center;
}

.cta-title {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.cta-description {
    max-width: 700px;
    margin: 0 auto 30px;
    font-size: 1.1rem;
    opacity: 0.9;
}

/* FAQ Section */
.faq-section {
    background: #f8f9fa;
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    padding: 30px;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.faq-item h3 {
    font-size: 1.3rem;
    color: #1a1a2e;
    margin-bottom: 15px;
}

.faq-item p {
    color: #666;
    line-height: 1.7;
}

/* Template: Dang Nhap */
.steps-container {
    max-width: 900px;
    margin: 0 auto;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 50px;
    padding: 30px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #1a1a2e;
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.step-item h2 {
    font-size: 1.4rem;
    color: #1a1a2e;
    margin-bottom: 10px;
}

.step-item p {
    color: #666;
    line-height: 1.7;
}

/* Errors Section */
.errors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.error-card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #e74c3c;
}

.error-card h3 {
    color: #e74c3c;
    margin-bottom: 15px;
}

/* Tips Section */
.tips-section {
    background: #fff;
}

.tips-content p {
    max-width: 900px;
    margin: 0 auto 20px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

/* Template: Huong Dan */
.tutorial-steps {
    max-width: 900px;
    margin: 0 auto;
}

.tutorial-step {
    display: flex;
    gap: 30px;
    margin-bottom: 50px;
    padding: 40px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.step-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #ffd700;
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    flex-shrink: 0;
}

.tutorial-step h2 {
    font-size: 1.5rem;
    color: #1a1a2e;
    margin-bottom: 15px;
}

.tutorial-step p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 15px;
}

/* Notes Section */
.notes-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.note-item {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.note-item h3 {
    color: #1a1a2e;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ffd700;
}

/* Template: Khuyen Mai */
.promo-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.promo-card {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: transform 0.3s ease;
}

.promo-card:hover {
    transform: translateY(-5px);
}

.promo-card.featured {
    border: 3px solid #ffd700;
}

.promo-badge {
    position: absolute;
    top: -10px;
    right: 30px;
    background: #e74c3c;
    color: #fff;
    padding: 5px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
}

.promo-card h2 {
    font-size: 1.5rem;
    color: #1a1a2e;
    margin-bottom: 10px;
}

.promo-value {
    font-size: 1.8rem;
    color: #e74c3c;
    font-weight: 700;
    margin-bottom: 15px;
}

.promo-desc {
    color: #666;
    line-height: 1.7;
    margin-bottom: 20px;
}

.promo-terms {
    list-style: none;
    margin-bottom: 25px;
}

.promo-terms li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: #555;
}

.promo-terms li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: 700;
}

.btn-promo {
    width: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #ffd700;
}

.btn-promo:hover {
    background: linear-gradient(135deg, #16213e 0%, #1a1a2e 100%);
}

/* Promo List */
.promo-list {
    max-width: 900px;
    margin: 0 auto;
}

.promo-list-item {
    background: #fff;
    padding: 30px;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
}

.promo-list-item h3 {
    color: #1a1a2e;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

/* Terms Section */
.terms-content p {
    max-width: 900px;
    margin: 0 auto 20px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

/* Template: Lien He */
.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.contact-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
}

.contact-card h2 {
    font-size: 1.4rem;
    color: #1a1a2e;
    margin-bottom: 15px;
}

.contact-desc {
    color: #666;
    line-height: 1.7;
    margin-bottom: 20px;
}

.contact-detail {
    color: #ffd700;
    font-weight: 600;
    background: #1a1a2e;
    padding: 10px 20px;
    border-radius: 25px;
    display: inline-block;
}

/* Support Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-item {
    background: #fff;
    padding: 35px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.feature-item h3 {
    color: #1a1a2e;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

/* Timeline */
.timeline {
    max-width: 800px;
    margin: 0 auto;
}

.timeline-item {
    background: #fff;
    padding: 30px;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #ffd700;
}

.timeline-item h3 {
    color: #1a1a2e;
    margin-bottom: 10px;
}

/* Footer */
.site-footer {
    background: #1a1a2e;
    color: #fff;
    padding: 60px 0 30px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-site-title {
    font-size: 1.8rem;
    color: #ffd700;
    margin-bottom: 20px;
}

.footer-description {
    color: #aaa;
    line-height: 1.8;
}

.footer-title {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ffd700;
}

.footer-menu,
.quick-links {
    list-style: none;
}

.footer-menu li,
.quick-links li {
    margin-bottom: 12px;
}

.footer-menu a,
.quick-links a {
    color: #aaa;
    transition: color 0.3s ease;
}

.footer-menu a:hover,
.quick-links a:hover {
    color: #ffd700;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 30px;
}

.footer-copyright {
    text-align: center;
    margin-bottom: 20px;
    color: #888;
}

.footer-legal {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 900px;
    margin: 0 auto;
}

/* Page & Post Styles */
.entry-header {
    margin-bottom: 30px;
}

.entry-title {
    font-size: 2rem;
    color: #1a1a2e;
}

.entry-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

.entry-content p {
    margin-bottom: 20px;
}

.post-thumbnail {
    margin-bottom: 30px;
}

.post-thumbnail img {
    border-radius: 10px;
}

/* Widget Area */
.widget-area {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
}

.widget {
    margin-bottom: 30px;
}

.widget-title {
    font-size: 1.3rem;
    color: #1a1a2e;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ffd700;
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: block;
        order: 3;
    }

    .main-navigation {
        order: 2;
        width: 100%;
    }

    .main-navigation .nav-menu {
        display: none;
        flex-direction: column;
        gap: 0;
        padding-top: 20px;
    }

    .main-navigation.toggled .nav-menu {
        display: flex;
    }

    .main-navigation .nav-menu li {
        border-bottom: 1px solid #333;
    }

    .main-navigation .nav-menu a {
        display: block;
        padding: 15px 0;
    }

    .header-actions {
        order: 1;
        margin-left: auto;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .section-title,
    .page-title {
        font-size: 1.8rem;
    }

    .step-item,
    .tutorial-step {
        flex-direction: column;
        text-align: center;
    }

    .step-number,
    .step-icon {
        margin: 0 auto;
    }

    .promo-cards-grid {
        grid-template-columns: 1fr;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    section {
        padding: 50px 0;
    }
}

/* Image Styles */
.hero-container {
    display: flex;
    align-items: center;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-image {
    flex: 0 0 45%;
}

.hero-image img {
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.brand-content-wrapper {
    display: flex;
    align-items: center;
    gap: 50px;
}

.brand-image {
    flex: 0 0 40%;
}

.brand-image img {
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.feature-image {
    margin-bottom: 20px;
}

.feature-image img {
    border-radius: 10px;
    width: 100%;
    height: 180px;
    object-fit: cover;
}

/* Template Dang Nhap Images */
.steps-image {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px auto 40px;
}

.steps-image img {
    border-radius: 10px;
    max-width: 800px;
    width: 100%;
    height: auto;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    display: block;
    margin: 0 auto;
}

.tips-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
}

.tips-image {
    flex: 0 0 35%;
}

.tips-image img {
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Template Huong Dan Images */
.tutorial-image-main {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px auto 50px;
}

.tutorial-image-main img {
    border-radius: 10px;
    max-width: 800px;
    width: 100%;
    height: auto;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    display: block;
    margin: 0 auto;
}

.tutorial-steps {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.tutorial-step {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.step-icon {
    flex: 0 0 60px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.step-content {
    flex: 1;
}

.step-content h2 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.step-content .step-image {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

.step-content .step-image img {
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    height: auto;
    display: block;
}

.step-content p {
    margin-bottom: 10px;
    line-height: 1.7;
}

/* Template Khuyen Mai Images */
.promo-hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px auto 50px;
}

.promo-hero-image img {
    border-radius: 15px;
    max-width: 900px;
    width: 100%;
    height: auto;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    display: block;
    margin: 0 auto;
}

.promo-image {
    margin-bottom: 20px;
}

.promo-image img {
    border-radius: 10px;
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Template Lien He Images */
.contact-hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px auto 50px;
}

.contact-hero-image img {
    border-radius: 15px;
    max-width: 800px;
    width: 100%;
    height: auto;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    display: block;
    margin: 0 auto;
}

.contact-image {
    margin-bottom: 20px;
}

.contact-image img {
    border-radius: 10px;
    width: 100%;
    height: 160px;
    object-fit: cover;
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.6rem;
    }

    .section-title,
    .page-title {
        font-size: 1.5rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        padding: 0 20px;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .header-actions {
        display: none;
    }

    /* Responsive Images */
    .hero-container {
        flex-direction: column;
    }

    .hero-image {
        flex: none;
        width: 100%;
    }

    .brand-content-wrapper,
    .tips-wrapper {
        flex-direction: column;
    }

    .brand-image,
    .tips-image {
        flex: none;
        width: 100%;
    }

    .tutorial-step {
        flex-direction: column;
    }

    .step-image {
        flex: none;
        width: 100%;
    }
}
