/*
Theme Name: LinhEdu
Theme URI: https://linhedu.vn
Author: LinhEdu Team
Author URI: https://linhedu.vn
Description: Theme học viện truyền nghề online - Simple, Clean, Professional
Version: 1.0.0
License: GPL v2 or later
Text Domain: linhedu
*/

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }

a {
    color: #6366f1;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #4f46e5;
}

/* Header Styles */
.site-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 8px 0;
    font-size: 14px;
}

.header-main {
    padding: 15px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    display: flex;
    align-items: center;
    font-size: 28px;
    font-weight: bold;
    color: #333;
}

.site-logo img {
    height: 50px;
    margin-right: 15px;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-navigation a {
    color: #333;
    font-weight: 500;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
}

.main-navigation a:hover {
    color: #6366f1;
    border-bottom-color: #6366f1;
}

.header-cta {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    color: #fff;
}

.btn-outline {
    border: 2px solid #6366f1;
    color: #6366f1;
    background: transparent;
}

.btn-outline:hover {
    background: #6366f1;
    color: #fff;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 80px 0;
    margin-bottom: 60px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #fff;
}

.hero-text p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.hero-image {
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

/* Feature Boxes */
.features-section {
    padding: 60px 0;
    background: #fff;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-title p {
    font-size: 1.1rem;
    color: #666;
}

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

.feature-box {
    background: #fff;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

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

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #fff;
}

.feature-box h3 {
    margin-bottom: 15px;
    color: #333;
}

.feature-box p {
    color: #666;
    line-height: 1.8;
}

/* Courses Section */
.courses-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.course-column {
    background: #fff;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.column-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
}

.column-header h3 {
    margin: 0;
    color: #fff;
    font-size: 1.3rem;
}

.course-list {
    list-style: none;
}

.course-item {
    padding: 15px;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
}

.course-item:last-child {
    border-bottom: none;
}

.course-item:hover {
    background: #f8f9fa;
    padding-left: 20px;
}

.course-item a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #333;
}

.course-item a:hover {
    color: #6366f1;
}

.course-title {
    flex: 1;
    font-weight: 500;
}

.course-meta {
    display: flex;
    gap: 15px;
    font-size: 14px;
    color: #999;
}

.course-price {
    color: #e74c3c;
    font-weight: 600;
}

.course-badge {
    background: #27ae60;
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 0;
    color: #fff;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Sidebar */
.site-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    padding: 60px 0;
}

.main-content {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.sidebar {
    height: fit-content;
}

.widget {
    background: #fff;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.widget-title {
    font-size: 1.25rem;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.widget ul {
    list-style: none;
}

.widget li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.widget li:last-child {
    border-bottom: none;
}

/* Footer */
.site-footer {
    background: #3d2817; /* Dark brown - nâu sẫm */
    color: #fff;
    padding: 60px 0 30px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h4 {
    color: #fff;
    margin-bottom: 20px;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 12px;
}

.footer-column a {
    color: #999;
}

.footer-column a:hover {
    color: #fff;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid #5a3e2b; /* Lighter brown for border */
    text-align: center;
    color: #ccc;
}

/* Responsive */
@media (max-width: 1024px) {
    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .site-content {
        grid-template-columns: 1fr;
    }
    
    .courses-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .main-navigation {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
}

/* Mobile Menu Hamburger */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: relative;
    width: 30px;
    height: 30px;
}

.mobile-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #764ba2;
    margin: 4px 0;
    transition: 0.3s;
    position: absolute;
    left: 4px;
}

.mobile-menu-toggle span:nth-child(1) {
    top: 6px;
}

.mobile-menu-toggle span:nth-child(2) {
    top: 14px;
}

.mobile-menu-toggle span:nth-child(3) {
    top: 22px;
}

/* Mobile Menu Backdrop */
.mobile-menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: none;
}

.mobile-menu-backdrop.active {
    display: block;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100%;
    background: white;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 10000;
    display: none; /* Hidden by default */
}

/* Only show when screen is mobile size AND active */
@media (max-width: 768px) {
    .mobile-menu-overlay {
        display: block;
    }
    
    .mobile-menu-backdrop {
        display: none; /* Hidden by default on mobile too */
    }
    
    .mobile-menu-backdrop.active {
        display: block; /* Show when active */
    }
}

.mobile-menu-overlay.active {
    right: 0;
}

.mobile-menu-content {
    padding: 20px;
    height: 100%;
    overflow-y: auto;
}

.mobile-menu-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 40px 0 30px;
}

.mobile-nav li {
    margin-bottom: 5px;
}

.mobile-nav a {
    display: block;
    padding: 12px 10px;
    color: #333;
    font-size: 16px;
    border-radius: 8px;
    transition: background 0.3s;
}

.mobile-nav a:hover {
    background: #f0f0f0;
}

.mobile-menu-buttons {
    padding: 20px 0;
    border-top: 1px solid #e0e0e0;
}

.btn-mobile {
    display: block;
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    text-align: center;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-mobile.btn-login {
    background: white;
    border: 2px solid #764ba2;
    color: #764ba2;
}

.btn-mobile.btn-register {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}

.btn-mobile.btn-logout {
    background: #dc3545;
    color: white;
}

.mobile-user-info {
    text-align: center;
}

.mobile-user-info p {
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

/* Hide desktop menu items on mobile */
@media (max-width: 768px) {
    .main-navigation {
        display: none;
    }
    
    .header-cta {
        display: none !important;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .header-container {
        justify-content: space-between;
    }
    
    .search-toggle {
        display: none !important;
    }
}
}
/* Logo Styles */
.header-logo {
    height: 17px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.header-logo:hover {
    transform: scale(1.05);
}

.footer-logo {
    height: 20px;
    width: auto;
    display: block;
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .header-logo {
        height: 13px;
    }
    
    .footer-logo {
        height: 17px;
    }
}

@media (max-width: 480px) {
    .header-logo {
        height: 12px;
    }
    
    .footer-logo {
        height: 15px;
    }
}

/* Footer TN1 Icon */
.footer-tn1-icon {
    width: 300px;
    height: auto;
    display: block;
    margin: 0 auto !important;
    padding: 0;
}

@media (max-width: 768px) {
    .footer-tn1-icon {
        width: 200px;
    }
}

@media (max-width: 480px) {
    .footer-tn1-icon {
        width: 150px;
    }
}

/* Affiliate Registration Form Height Adjustment */
.slicewp-affiliate-registration-form,
.slicewp-form,
.slicewp-container {
    min-height: 600px !important;
}

.slicewp-affiliate-registration-form .slicewp-field {
    margin-bottom: 25px !important;
}

.slicewp-affiliate-registration-form input[type="text"],
.slicewp-affiliate-registration-form input[type="email"],
.slicewp-affiliate-registration-form input[type="password"],
.slicewp-affiliate-registration-form input[type="url"],
.slicewp-affiliate-registration-form input[type="tel"],
.slicewp-affiliate-registration-form textarea,
.slicewp-affiliate-registration-form select {
    padding: 12px 15px !important;
    font-size: 16px !important;
    line-height: 1.5 !important;
    height: auto !important;
    min-height: 48px !important;
}

.slicewp-affiliate-registration-form textarea {
    min-height: 120px !important;
}

.slicewp-affiliate-registration-form label {
    margin-bottom: 8px !important;
    display: block !important;
    font-weight: 600 !important;
    font-size: 15px !important;
}

.slicewp-affiliate-registration-form .slicewp-submit {
    margin-top: 30px !important;
    padding: 15px 30px !important;
    font-size: 18px !important;
    min-height: 55px !important;
}

.slicewp-affiliate-registration-form .slicewp-form-section {
    margin-bottom: 35px !important;
}

/* Make the whole form container taller */
body.page-id-3184 .site-content,
body.page-slug-affiliate-registration .site-content {
    min-height: 800px !important;
}

body.page-id-3184 .main-content,
body.page-slug-affiliate-registration .main-content {
    padding: 40px 0 !important;
}
