/*
Theme Name: Thời Đại Mới
Description: WordPress theme for Thời Đại Mới - study abroad and labor export services in Da Nang, Vietnam. Features include service listings, contact forms, image gallery, and training programs.
Author: Claude Code
Version: 1.0.0
License: GPL v2 or later
Text Domain: thoidaimoi
Tags: education, business, responsive, translation-ready

This theme is designed specifically for study abroad and labor export services, 
with full content management through wp-admin and no hardcoded content.
*/

/* ==========================================================================
   1. CSS VARIABLES & RESPONSIVE FOUNDATION
   ========================================================================== */

:root {
    /* Breakpoints */
    --mobile-max: 767px;
    --tablet-min: 768px;
    --tablet-max: 1023px;  
    --desktop-min: 1024px;
    
    /* Colors */
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #ff6b6b;
    --text-color: #333;
    --bg-color: #f8f9fa;
    --white: #ffffff;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    
    /* Typography */
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    --font-size-4xl: 2.5rem;
}

/* ==========================================================================
   2. CSS RESET & BASE STYLES
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    font-size: var(--font-size-base);
    overflow-x: hidden; /* Prevent horizontal scroll */
}

html {
    overflow-x: hidden; /* Extra safety for horizontal scroll */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
    width: 100%; /* Ensure container doesn't overflow */
    box-sizing: border-box; /* Include padding in width calculation */
}

/* Mobile-first container adjustments */
@media (min-width: 768px) {
    .container {
        padding: 0 var(--spacing-md);
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 var(--spacing-lg);
    }
}

/* ==========================================================================
   2. TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #5a6fd8;
}

/* ==========================================================================
   3. BUTTONS & FORM ELEMENTS
   ========================================================================== */

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

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5a6fd8;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
}

.cta-button {
    display: inline-block;
    background: #ff6b6b;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,107,107,0.4);
}

/* Form Elements */
.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

/* Mobile form layout */
@media (max-width: 767px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }
}

/* ==========================================================================
   4. HEADER STYLES
   ========================================================================== */

header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    gap: 20px;
    padding: 15px 0;
}

/* Logo Section */
.logo-section {
    justify-self: start;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo:hover {
    color: white;
    text-decoration: none;
    transform: scale(1.05);
}

.logo i {
    font-size: 2.5rem;
    color: #ffd700;
}

.logo-text h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin: 0;
    line-height: 1;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.logo-text span {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255,255,255,0.9);
    line-height: 1;
}

/* Header Center */
.header-center {
    justify-self: center;
    width: 100%;
    max-width: 400px;
}

/* Search Container */
.search-container {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.1);
    border-radius: 25px;
    padding: 5px;
    backdrop-filter: blur(10px);
}

.search-input {
    background: transparent;
    border: none;
    padding: 10px 15px;
    color: white;
    width: 100%;
    max-width: 300px;
    border-radius: 20px;
    font-size: 16px;
}

.search-input::placeholder {
    color: rgba(255,255,255,0.7);
}

.search-input:focus {
    outline: none;
    background: rgba(255,255,255,0.1);
}

.search-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    padding: 10px 15px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-btn:hover {
    background: rgba(255,255,255,0.3);
}

/* Header Contact */
.header-contact {
    justify-self: end;
    display: flex;
    align-items: center;
}

.contact-info-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-end;
    font-size: 0.85rem;
}

.contact-line {
    color: white;
    display: flex;
    align-items: center;
    gap: 4px;
}

.contact-line span {
    opacity: 0.9;
}

.contact-line a {
    color: #ffd700;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.contact-line a:hover {
    color: #ffed4e;
    text-decoration: underline;
}

.contact-line.hotline {
    font-weight: 600;
    font-size: 0.9rem;
}

.contact-line.hotline .phone-number {
    color: #ffd700;
    font-weight: 700;
}

/* Social Links - Legacy support */
.social-links {
    display: flex;
    gap: 8px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 8px 12px;
    background: rgba(255,255,255,0.1);
    color: white;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    font-size: 0.85rem;
    font-weight: 500;
}

.social-link:hover {
    transform: translateY(-3px) scale(1.1);
}

.social-link.zalo:hover {
    background: #0068ff;
}

.social-link.facebook:hover {
    background: #1877f2;
}

.social-link.email:hover {
    background: #ea4335;
}

/* ==========================================================================
   4.5. HEADER RESPONSIVE DESIGN
   ========================================================================== */

/* Tablet responsive (768px - 1023px) */
@media (max-width: 1023px) {
    .header-content {
        grid-template-columns: 1fr auto;
        gap: var(--spacing-sm);
    }
    
    .header-center {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-self: stretch;
        margin-top: var(--spacing-sm);
    }
    
    .search-input {
        width: 100%;
    }
    
    .logo-text h1 {
        font-size: var(--font-size-3xl);
    }
    
    .contact-info-text {
        font-size: var(--font-size-sm);
    }
}

/* Mobile responsive (max 767px) */
@media (max-width: 767px) {
    header {
        padding: var(--spacing-xs) 0;
        z-index: 10000; /* Ensure header stays above mobile menu */
    }
    
    .header-content {
        grid-template-columns: 1fr auto;
        text-align: left;
        gap: var(--spacing-sm);
    }
    
    .logo-section {
        justify-self: start;
    }
    
    .logo {
        gap: var(--spacing-xs);
    }
    
    .logo i {
        font-size: var(--font-size-2xl);
    }
    
    .logo-text h1 {
        font-size: var(--font-size-xl);
    }
    
    .logo-text span {
        font-size: var(--font-size-sm);
    }
    
    .header-contact {
        justify-self: end;
        position: relative;
    }
    
    /* Hide contact info on mobile, show only hamburger */
    .contact-info-text {
        display: none;
    }
    
    .header-center {
        display: none; /* Hide search on mobile */
    }
    
    /* Hide social links on mobile to save space */
    .social-links {
        display: none;
    }
}

/* ==========================================================================
   4.6. HAMBURGER MENU STYLES
   ========================================================================== */

/* Hamburger Menu Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 3px;
}

.mobile-menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Show hamburger only on mobile */
@media (max-width: 767px) {
    .mobile-menu-toggle {
        display: flex;
    }
}

/* Hamburger animation when active */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ==========================================================================
   5. NAVIGATION STYLES
   ========================================================================== */

/* Hide header completely */
.site-header {
    display: none;
}

/* ==========================================================================
   5.1. INTEGRATED NAVBAR - JustInMind Design Pattern
   ========================================================================== */

/* Integrated Navbar với Logo bên trái, Menu bên phải */
.main-nav-integrated {
    background: var(--primary-color);
    padding: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-integrated-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 70px;
    padding: 0 1rem;
}

/* Logo Section - Left Side */
.nav-logo {
    flex-shrink: 0;
}

.nav-logo .logo-link {
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.nav-logo .logo-link:hover {
    opacity: 0.9;
}

.nav-logo .logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo .logo-badge {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: 2px solid rgba(255,255,255,0.9);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Arial Black', 'Helvetica', sans-serif;
    font-size: 0.9rem;
    font-weight: 900;
    color: #ffd700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    box-shadow: 0 4px 12px rgba(102,126,234,0.3);
    letter-spacing: -0.5px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.nav-logo .logo-link:hover .logo-badge {
    transform: rotate(3deg) scale(1.05);
    box-shadow: 0 6px 18px rgba(102,126,234,0.5);
}

.nav-logo .logo-text {
    display: flex;
    flex-direction: column;
    color: white;
}

.nav-logo .logo-main {
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.5px;
    margin: 0;
}

/* Menu Section - Center */
.nav-menu-container {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

/* Search Section - Right Side */
.nav-search {
    flex-shrink: 0;
    margin-left: 1rem;
}

.search-trigger-btn {
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    padding: 0.75rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
}

.search-trigger-btn:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.05);
}

.search-trigger-btn i {
    font-size: 1.1rem;
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.25rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 0.8rem 1.4rem;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: 6px;
    white-space: nowrap;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link i {
    font-size: 1.1rem;
    width: 16px;
    text-align: center;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255,255,255,0.15);
    color: white;
    transform: translateY(-1px);
}

/* Mobile Menu Toggle - Hamburger Icon */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 28px;
    height: 28px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(255,255,255,0.1);
}

/* Hamburger lines */
.mobile-menu-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: white;
    border-radius: 1px;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Hamburger animation when active */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ==========================================================================
   5.2. INTEGRATED NAVBAR RESPONSIVE DESIGN
   ========================================================================== */

/* Tablet responsive */
@media (max-width: 1023px) {
    .nav-integrated-content {
        min-height: 65px;
        padding: 0 0.75rem;
    }
    
    .nav-logo .logo-main {
        font-size: 1.2rem;
    }
    
    .nav-link {
        padding: 0.7rem 1.1rem;
        font-size: 0.95rem;
        gap: 6px;
    }
    
    .nav-link i {
        font-size: 1rem;
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .nav-integrated-content {
        min-height: 60px;
        padding: 0 1rem;
    }
    
    .nav-logo .logo-container {
        gap: 8px;
    }
    
    .nav-logo .logo-badge {
        width: 42px;
        height: 42px;
        font-size: 0.8rem;
        border-radius: 10px;
    }
    
    .nav-logo .logo-main {
        font-size: 1.15rem;
    }
    
    .nav-menu-container {
        display: none;
    }
    
    .nav-search {
        margin-left: 0.5rem;
    }
    
    .search-trigger-btn {
        width: 40px;
        height: 40px;
        padding: 0.6rem;
    }
    
    .search-trigger-btn i {
        font-size: 1rem;
    }
    
    .mobile-menu-toggle {
        display: block;
        margin-left: 0.5rem;
    }
    
    /* Mobile menu overlay */
    .nav-menu.mobile-active {
        display: flex;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--primary-color);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        z-index: 999;
        animation: slideDown 0.3s ease;
    }
    
    .nav-menu.mobile-active .nav-link {
        padding: 1rem;
        text-align: center;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        margin: 0;
        border-radius: 0;
    }
    
    .nav-menu.mobile-active .nav-link:last-child {
        border-bottom: none;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Main Navigation với Logo và Search */
.main-nav {
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 8px 0;
    margin: 0;
}

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2px;
    min-height: 50px;
    flex-wrap: nowrap;
    padding: 0;
    margin: 0;
}

/* Logo trong navbar - compact */
.navbar-logo {
    flex-shrink: 0;
}

.navbar-logo .logo {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #333;
}

.navbar-logo .logo-badge {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 4px 8px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.navbar-logo .logo-text h1 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
    color: #333;
}

/* Menu ở giữa - flex grow */
.navbar-menu {
    flex: 1;
    display: flex;
    justify-content: center;
    max-width: none;
}

.navbar-menu .nav-menu {
    display: flex;
    align-items: center;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}


/* Search trong navbar - compact */
.navbar-search {
    flex-shrink: 0;
    display: flex;
}

.navbar-search .search-container {
    position: relative;
    width: 180px;
}

.navbar-search .search-input {
    width: 100%;
    padding: 6px 35px 6px 10px;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    background: #f8f9fa;
    color: #333;
    font-size: 12px;
    transition: all 0.3s ease;
    height: 32px;
    box-sizing: border-box;
}

.navbar-search .search-input::placeholder {
    color: #999;
}

.navbar-search .search-input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.navbar-search .search-btn {
    position: absolute;
    right: 2px;
    top: 50%;
    transform: translateY(-50%);
    background: #667eea;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    font-size: 11px;
}

.navbar-search .search-btn:hover {
    background: #5a67d8;
    transform: translateY(-50%) scale(1.05);
}

/* Search results trong navbar */
.navbar-search .search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1001;
    max-height: 300px;
    overflow-y: auto;
}

.navbar-search .search-results.hidden {
    display: none;
}

.navbar-search .search-result-item {
    padding: 10px 15px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.2s ease;
}

.navbar-search .search-result-item:hover {
    background: #f8f9fa;
}

.navbar-search .search-result-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.navbar-search .search-result-meta {
    font-size: 12px;
    color: #666;
}

.navbar-search .search-no-results {
    padding: 15px;
    text-align: center;
    color: #999;
    font-style: italic;
}

.nav-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-menu li {
    margin: 0;
}

.nav-link {
    display: block;
    padding: 0;
    margin: 0;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    position: relative;
    font-size: 14px;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: #667eea;
    border-bottom-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.admin-link {
    color: #dc3545 !important;
}

.admin-link:hover {
    color: #c82333 !important;
    background: rgba(220, 53, 69, 0.05) !important;
}

/* ==========================================================================
   6. TAB SYSTEM
   ========================================================================== */

.tab-content {
    display: none;
    min-height: 500px;
    padding: 0;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   6.2. TAB SYSTEM RESPONSIVE DESIGN
   ========================================================================== */

/* Tablet tabs */
@media (max-width: 1023px) {
    .tab-content {
        min-height: 400px;
        padding: var(--spacing-sm);
    }
}

/* Mobile tabs */
@media (max-width: 767px) {
    .tab-content {
        min-height: 300px;
        padding: var(--spacing-sm);
    }
    
    /* Ensure tab content doesn't overflow on mobile */
    .tab-content > div {
        max-width: 100%;
        overflow-x: auto;
    }
}

/* ==========================================================================
   6.5. NAVIGATION RESPONSIVE DESIGN
   ========================================================================== */

/* Tablet navigation */
@media (max-width: 1023px) {
    .main-nav {
        top: 120px; /* Adjust for taller header */
    }
    
    .nav-link {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: var(--font-size-sm);
    }
}

/* Mobile navigation */
@media (max-width: 767px) {
    .main-nav {
        position: fixed; /* Change to fixed for proper mobile behavior */
        top: 0;
        left: 0;
        right: 0;
        transform: translateY(-100%);
        transition: transform 0.3s ease;
        background: white;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        z-index: 9999; /* Higher than header */
    }
    
    .main-nav.show {
        transform: translateY(0);
    }
    
    .nav-menu {
        flex-direction: column;
        text-align: center;
        padding: var(--spacing-sm) 0;
    }
    
    .nav-link {
        padding: var(--spacing-sm);
        font-size: var(--font-size-base);
        border-bottom: 1px solid #eee;
        border-left: 3px solid transparent;
        display: block;
        width: 100%;
    }
    
    .nav-link:hover,
    .nav-link.active {
        border-bottom-color: #eee;
        border-left-color: var(--primary-color);
        background: rgba(102, 126, 234, 0.05);
    }
    
    .nav-menu li:last-child .nav-link {
        border-bottom: none;
    }
}

/* ==========================================================================
   7. HERO SECTION
   ========================================================================== */

.hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), 
                linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 120px 0;
    margin-bottom: 0;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
}

/* ==========================================================================
   7.5. HERO RESPONSIVE DESIGN
   ========================================================================== */

/* Tablet hero */
@media (max-width: 1023px) {
    .hero {
        padding: var(--spacing-xl) 0;
    }
    
    .hero h1 {
        font-size: var(--font-size-3xl);
        margin-bottom: var(--spacing-md);
    }
    
    .hero p {
        font-size: var(--font-size-lg);
        margin-bottom: var(--spacing-lg);
        max-width: 90%;
    }
}

/* Mobile hero */
@media (max-width: 767px) {
    .hero {
        padding: var(--spacing-lg) 0;
    }
    
    .hero h1 {
        font-size: var(--font-size-2xl);
        margin-bottom: var(--spacing-sm);
        line-height: 1.2;
    }
    
    .hero p {
        font-size: var(--font-size-base);
        margin-bottom: var(--spacing-md);
        max-width: 95%;
        line-height: 1.5;
    }
    
    .cta-button {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: var(--font-size-base);
    }
}

/* ==========================================================================
   8. SECTIONS
   ========================================================================== */

.section-title {
    text-align: center;
    font-size: var(--font-size-4xl);
    margin-bottom: var(--spacing-xl);
    color: var(--text-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Section titles responsive */
@media (max-width: 1023px) {
    .section-title {
        font-size: var(--font-size-3xl);
        margin-bottom: var(--spacing-lg);
    }
}

@media (max-width: 767px) {
    .section-title {
        font-size: var(--font-size-2xl);
        margin-bottom: var(--spacing-md);
    }
}

/* About Us Section */
.about-us {
    padding: 80px 0;
    background: white;
}

.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: center;
    margin-top: 40px;
}

.about-text h3 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: #667eea;
    font-weight: 700;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.8;
    color: #555;
}

.about-details {
    margin-bottom: 3rem;
}

.about-details h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #333;
}

.achievement-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 2rem;
}

.achievement-list li {
    margin-bottom: 10px;
    font-size: 1rem;
    line-height: 1.6;
    padding-left: 30px;
    position: relative;
}

.achievement-list li::before {
    content: '✨';
    position: absolute;
    left: 0;
    top: 0;
}

/* Statistics */
.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.stat-item {
    text-align: center;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-item h4 {
    font-size: 3rem !important;
    color: #ffffff !important;
    margin-bottom: 0.5rem;
    font-weight: 700 !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5) !important;
}

.stat-item p {
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 1.1rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5) !important;
}

/* Video Container */
.video-container {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 60px 40px;
    text-align: center;
    border: 2px dashed #ddd;
    transition: all 0.3s ease;
}

.video-container:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.video-container p {
    font-size: 1.1rem;
    color: #666;
    margin: 0;
}

/* ==========================================================================
   9. SERVICES SECTION
   ========================================================================== */

.services {
    padding: 80px 0;
    background: #f8f9fa;
}

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

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.3s ease;
    border-top: 4px solid transparent;
    position: relative;
}

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

.service-card.japan,
.service-card:nth-child(odd) {
    border-top-color: #ff6b6b;
}

.service-card.korea,
.service-card:nth-child(even) {
    border-top-color: #4ecdc4;
}

.service-icon {
    font-size: 3.5rem;
    margin-bottom: 25px;
    color: #667eea;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #333;
    font-weight: 600;
}

.service-card p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 20px;
}

.service-badge {
    display: inline-block;
    padding: 8px 15px;
    background: #667eea;
    color: white;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 10px;
}

/* ==========================================================================
   10. JOB CARDS SECTION
   ========================================================================== */

.job-cards-container {
    margin-top: 40px;
}

.job-filter-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-tab {
    padding: 12px 25px;
    border: 2px solid #667eea;
    background: transparent;
    color: #667eea;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 16px;
}

/* Job filter tabs only - not gallery filter tabs */
.job-filter-tabs .filter-tab.active,
.job-filter-tabs .filter-tab:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

.job-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.job-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-left: 5px solid #667eea;
    position: relative;
    overflow: hidden;
}

.job-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.job-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.job-card.japan {
    border-left-color: #ff6b6b;
}

.job-card.korea {
    border-left-color: #4ecdc4;
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.job-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    flex: 1;
}

.job-status {
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
}

.status-active {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.job-details {
    margin-bottom: 20px;
}

.job-detail-item {
    margin-bottom: 10px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.job-detail-item strong {
    min-width: 120px;
}

.job-description {
    color: #666;
    line-height: 1.7;
    margin-bottom: 25px;
    font-style: italic;
}

.job-actions {
    text-align: right;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.btn-apply {
    background: #667eea;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
}

.btn-apply:hover {
    background: #5a6fd8;
    transform: translateY(-2px);
}

.btn-apply:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* ==========================================================================
   10.5. JOB CARDS RESPONSIVE DESIGN
   ========================================================================== */

/* Tablet job cards */
@media (max-width: 1023px) {
    .job-cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: var(--spacing-md);
    }
    
    .job-card {
        padding: var(--spacing-md);
    }
    
    .job-title {
        font-size: var(--font-size-xl);
    }
    
    .job-header {
        gap: var(--spacing-sm);
    }
}

/* Mobile job cards */
@media (max-width: 767px) {
    .job-filter-tabs {
        margin-bottom: var(--spacing-md);
        gap: var(--spacing-sm);
    }
    
    .filter-tab {
        padding: var(--spacing-xs) var(--spacing-md);
        font-size: var(--font-size-sm);
    }
    
    .job-cards-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .job-card {
        padding: var(--spacing-md);
        margin: 0 var(--spacing-xs);
    }
    
    .job-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-sm);
    }
    
    .job-title {
        font-size: var(--font-size-lg);
    }
    
    .job-detail-item {
        font-size: var(--font-size-sm);
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-xs);
    }
    
    .job-detail-item strong {
        min-width: auto;
        font-weight: 600;
    }
    
    .job-actions {
        text-align: center;
    }
    
    .btn-apply {
        padding: var(--spacing-sm) var(--spacing-lg);
        font-size: var(--font-size-base);
        width: 100%;
    }
}

/* ==========================================================================
   11. GALLERY SECTION
   ========================================================================== */

.gallery-section {
    margin-top: 40px;
}

/* Gallery Filter Tabs */
.gallery-filter-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 15px;
}

.gallery-filter-tabs .filter-tab {
    padding: 12px 25px;
    border: 2px solid #667eea;
    background: transparent;
    color: #667eea;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 16px;
}

.gallery-filter-tabs .filter-tab.active,
.gallery-filter-tabs .filter-tab:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

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

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-caption {
    padding: 20px;
    text-align: center;
    font-weight: 500;
    color: #333;
    background: white;
}

.no-images {
    text-align: center;
    padding: 80px 40px;
    color: #666;
    background: white;
    border-radius: 15px;
    margin-top: 40px;
    border: 2px dashed #ddd;
}

.no-images h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #333;
}

.no-images p {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

/* ==========================================================================
   11.5. GALLERY RESPONSIVE DESIGN
   ========================================================================== */

/* Tablet gallery */
@media (max-width: 1023px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: var(--spacing-md);
    }
    
    .gallery-item img {
        height: 220px;
    }
    
    .gallery-caption {
        padding: var(--spacing-md);
    }
}

/* Mobile gallery */
@media (max-width: 767px) {
    .gallery-filter-tabs {
        margin-bottom: var(--spacing-md);
        gap: var(--spacing-sm);
    }
    
    .gallery-filter-tabs .filter-tab {
        padding: var(--spacing-xs) var(--spacing-md);
        font-size: var(--font-size-sm);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: var(--spacing-md);
        margin-top: var(--spacing-md);
    }
    
    .gallery-item {
        margin: 0 var(--spacing-xs);
    }
    
    .gallery-item img {
        height: 200px;
    }
    
    .gallery-caption {
        padding: var(--spacing-sm);
        font-size: var(--font-size-sm);
    }
    
    .no-images {
        padding: var(--spacing-lg) var(--spacing-md);
        margin: var(--spacing-md) var(--spacing-xs);
    }
    
    .no-images h3 {
        font-size: var(--font-size-xl);
        margin-bottom: var(--spacing-sm);
    }
    
    .no-images p {
        font-size: var(--font-size-base);
    }
}

/* ==========================================================================
   12. CONTACT SECTION
   ========================================================================== */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

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

.contact-icon {
    font-size: 2.5rem;
    color: #667eea;
    margin-bottom: 20px;
}

.contact-item h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
    color: #333;
}

.contact-item p {
    color: #666;
    line-height: 1.6;
    font-size: 1.1rem;
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.contact-form h3 {
    margin-bottom: 30px;
    text-align: center;
    color: #333;
    font-size: 1.6rem;
}

/* ==========================================================================
   12.5. CONTACT RESPONSIVE DESIGN
   ========================================================================== */

/* Tablet contact */
@media (max-width: 1023px) {
    .contact-grid {
        gap: var(--spacing-lg);
    }
    
    .contact-item {
        padding: var(--spacing-md);
    }
    
    .contact-form {
        padding: var(--spacing-lg);
    }
}

/* Mobile contact */
@media (max-width: 767px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        margin-top: var(--spacing-lg);
    }
    
    .contact-info {
        gap: var(--spacing-md);
    }
    
    .contact-item {
        padding: var(--spacing-md);
    }
    
    .contact-icon {
        font-size: var(--font-size-3xl);
        margin-bottom: var(--spacing-sm);
    }
    
    .contact-item h3 {
        font-size: var(--font-size-xl);
        margin-bottom: var(--spacing-sm);
    }
    
    .contact-item p {
        font-size: var(--font-size-base);
    }
    
    .contact-form {
        padding: var(--spacing-md);
    }
    
    .contact-form h3 {
        font-size: var(--font-size-xl);
    }
}

/* ==========================================================================
   13. MODAL STYLES
   ========================================================================== */

.modal {
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: white;
    border-radius: 15px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from { 
        opacity: 0; 
        transform: translateY(-50px) scale(0.9); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 30px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 30px;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: #333;
}

.close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close:hover {
    color: #333;
}

.modal-body {
    padding: 0 30px 30px;
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* Image Modal */
.image-modal {
    max-width: 90vw;
    max-height: 90vh;
    padding: 0;
    background: transparent;
}

.image-modal img {
    width: 100%;
    height: auto;
    border-radius: 15px;
}

.modal-caption {
    background: white;
    padding: 20px;
    text-align: center;
    font-weight: 500;
    border-radius: 0 0 15px 15px;
}

/* ==========================================================================
   13.5. MODAL RESPONSIVE DESIGN
   ========================================================================== */

/* Tablet modals */
@media (max-width: 1023px) {
    .modal-content {
        max-width: 90vw;
        margin: var(--spacing-md);
    }
    
    .modal-header {
        padding: var(--spacing-md) var(--spacing-md) 0;
        margin-bottom: var(--spacing-md);
    }
    
    .modal-body {
        padding: 0 var(--spacing-md) var(--spacing-md);
    }
}

/* Mobile modals */
@media (max-width: 767px) {
    .modal-content {
        max-width: 95vw;
        margin: var(--spacing-sm);
        max-height: 95vh;
    }
    
    .modal-header {
        padding: var(--spacing-sm) var(--spacing-sm) 0;
        margin-bottom: var(--spacing-sm);
    }
    
    .modal-header h3 {
        font-size: var(--font-size-lg);
    }
    
    .modal-body {
        padding: 0 var(--spacing-sm) var(--spacing-sm);
    }
    
    .modal-actions {
        flex-direction: column;
        gap: var(--spacing-xs);
    }
    
    .modal-actions button {
        width: 100%;
        padding: var(--spacing-sm);
    }
    
    .image-modal {
        max-width: 95vw;
        max-height: 95vh;
    }
    
    .modal-caption {
        padding: var(--spacing-sm);
        font-size: var(--font-size-sm);
    }
}

/* ==========================================================================
   14. FOOTER STYLES
   ========================================================================== */

footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 60px 0 0;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

/* Company Info Section */
.footer-section.company-info {
    padding-right: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-logo i {
    font-size: 2.5rem;
    color: #ffd700;
}

.footer-logo-text h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    line-height: 1;
    color: white;
}

.footer-logo-text span {
    font-size: 1rem;
    color: rgba(255,255,255,0.8);
    font-weight: 500;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: rgba(255,255,255,0.1);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.footer-social-link:hover {
    transform: translateY(-2px);
}

.footer-social-link.zalo:hover {
    background: #0068ff;
}

.footer-social-link.facebook:hover {
    background: #1877f2;
}

/* Other Footer Sections */
.footer-section h4 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    color: white;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: #ffd700;
}

.footer-section p {
    color: #ccc;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* Contact Items */
.contact-item-footer {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    color: #ccc;
}

.contact-item-footer i {
    color: #ffd700;
    font-size: 1.1rem;
    margin-top: 2px;
    min-width: 20px;
}

.contact-item-footer span {
    line-height: 1.6;
}

/* Footer Lists */
.footer-services,
.footer-advantages {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-services li,
.footer-advantages li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ccc;
    line-height: 1.8;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.footer-services li:hover,
.footer-advantages li:hover {
    color: white;
}

.footer-services li i,
.footer-advantages li i {
    color: #ffd700;
    font-size: 0.9rem;
    min-width: 16px;
}

/* Footer Bottom */
.footer-bottom {
    background: rgba(0,0,0,0.2);
    padding: 25px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    color: #ccc;
    margin: 0;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    position: relative;
}

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

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 1px;
    background: #ffd700;
    transition: width 0.3s ease;
}

.footer-links a:hover::after {
    width: 100%;
}

/* ==========================================================================
   14.5. FOOTER RESPONSIVE DESIGN
   ========================================================================== */

/* Tablet footer */
@media (max-width: 1023px) {
    footer {
        padding: var(--spacing-lg) 0 0;
        margin-top: var(--spacing-lg);
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-lg);
    }
    
    .footer-section.company-info {
        grid-column: 1 / -1;
        padding-right: 0;
        text-align: center;
        margin-bottom: var(--spacing-md);
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-social {
        justify-content: center;
    }
}

/* Mobile footer */
@media (max-width: 767px) {
    footer {
        padding: var(--spacing-lg) 0 0;
        margin-top: var(--spacing-lg);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        text-align: center;
    }
    
    .footer-section h3 {
        font-size: var(--font-size-lg);
        margin-bottom: var(--spacing-sm);
    }
    
    .footer-section p {
        font-size: var(--font-size-sm);
        margin-bottom: var(--spacing-sm);
    }
    
    .contact-item-footer {
        justify-content: center;
        gap: var(--spacing-xs);
        font-size: var(--font-size-sm);
    }
    
    .footer-services li,
    .footer-advantages li {
        justify-content: center;
        font-size: var(--font-size-sm);
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-sm);
    }
    
    .footer-links {
        justify-content: center;
        gap: var(--spacing-sm);
    }
    
    .footer-links a {
        font-size: var(--font-size-sm);
    }
}

/* ==========================================================================
   15. UTILITY CLASSES
   ========================================================================== */

.hidden {
    display: none !important;
}

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

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

/* ==========================================================================
   15.5. TRAINING SECTION ENHANCEMENTS
   ========================================================================== */

/* Training Overview */
.training-overview {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    border-radius: 20px;
    margin-bottom: 40px;
    text-align: center;
}

.training-intro h3 {
    font-size: 28px;
    margin-bottom: 15px;
    font-weight: 700;
}

.training-intro p {
    font-size: 18px;
    line-height: 1.6;
    opacity: 0.9;
}

/* Program Tabs */
.program-tabs {
    display: flex;
    justify-content: center;
    margin: 40px 0;
    gap: 20px;
}

.program-tab {
    padding: 15px 30px;
    border: 3px solid #667eea;
    background: transparent;
    color: #667eea;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 18px;
    min-width: 200px;
}

.program-tab.active,
.program-tab:hover {
    background: #667eea;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

/* Program Content */
.program-content {
    background: white;
    border-radius: 20px;
    transition: opacity 0.3s ease-in-out;
    opacity: 1;
}

.program-content.hidden {
    opacity: 0;
    pointer-events: none;
}
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.program-header {
    text-align: center;
    margin-bottom: 40px;
}

.program-header h3 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #333;
}

.program-badges {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.program-badges .badge {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.feature-item {
    text-align: center;
    padding: 30px 20px;
    background: #f8f9ff;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.15);
}

.feature-item i {
    font-size: 48px;
    color: #667eea;
    margin-bottom: 20px;
}

.feature-item h4 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
    font-weight: 600;
}

.feature-item p {
    color: #666;
    line-height: 1.5;
}

/* Curriculum Timeline */
.curriculum {
    margin-top: 50px;
}

.curriculum h4 {
    text-align: center;
    font-size: 24px;
    margin-bottom: 30px;
    color: #333;
}

.curriculum-timeline {
    position: relative;
    padding-left: 0;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    position: relative;
}

.timeline-marker {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    margin-right: 30px;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.timeline-item:not(:last-child) .timeline-marker::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 50px;
    background: linear-gradient(to bottom, #667eea, #764ba2);
    z-index: 1;
}

.timeline-content {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    flex: 1;
    border-left: 4px solid #667eea;
}

.timeline-content strong {
    color: #333;
    font-size: 18px;
    display: block;
    margin-bottom: 10px;
}

/* Training Stats */
.training-stats {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    color: white;
    padding: 50px 40px;
    border-radius: 20px;
    margin: 50px 0;
    text-align: center;
}

.training-stats h3 {
    font-size: 32px;
    margin-bottom: 40px;
    font-weight: 700;
}

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

.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 10px;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.stat-label {
    font-size: 16px;
    opacity: 0.9;
    font-weight: 500;
}

/* Course Cards */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.course-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(102, 126, 234, 0.2);
    border-color: #667eea;
}

.course-header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 25px;
    text-align: center;
    position: relative;
}

.course-icon {
    font-size: 32px;
    margin-bottom: 15px;
    opacity: 0.9;
}

.course-header h4 {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.course-content {
    padding: 30px 25px;
}

.course-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.course-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #555;
    background: #f0f2ff;
    padding: 8px 12px;
    border-radius: 20px;
}

.meta-item i {
    color: #667eea;
    font-size: 12px;
}

.meta-item.price {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-weight: 600;
}

.meta-item.price i {
    color: white;
}

.btn-register {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* Additional Courses */
.additional-courses {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 2px solid #eee;
}

/* No Courses Message */
.no-courses-message {
    text-align: center;
    padding: 60px 20px;
}

.instruction-box {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border: 2px solid #f0ad4e;
    border-radius: 20px;
    padding: 40px;
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
    box-shadow: 0 10px 30px rgba(240, 173, 78, 0.2);
}

.instruction-box h3 {
    color: #856404;
    text-align: center;
    margin-bottom: 25px;
    font-size: 24px;
}

.instruction-box ol {
    margin-left: 30px;
    color: #856404;
    font-size: 16px;
    line-height: 1.8;
}

.instruction-box ol li {
    margin-bottom: 10px;
}

.instruction-box ol li strong {
    color: #5a4a0a;
    font-weight: 700;
}

.instruction-box p {
    text-align: center;
    margin-top: 25px;
    color: #856404;
    font-style: italic;
    font-size: 15px;
}

.default-courses h3,
.additional-courses h3 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 40px;
    color: #333;
}

/* ==========================================================================
   15.6. IMPROVED JOB CARDS LAYOUT
   ========================================================================== */

/* Job Cards Container */
.job-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-top: 30px;
    align-items: stretch; /* Make all cards same height */
}

/* Individual Job Card */
.job-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    border-left: 5px solid #ddd;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%; /* Full height of grid cell */
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.job-card.japan {
    border-left-color: #ff6b6b;
}

.job-card.korea {
    border-left-color: #4ecdc4;
}

/* Inactive job cards styling */
.job-card.inactive {
    opacity: 0.6;
    filter: grayscale(20%);
    border-left-color: #ccc;
}

.job-card.inactive .job-title {
    color: #666;
}

.job-card.inactive .btn-apply {
    background: #6c757d;
    cursor: not-allowed;
    pointer-events: none;
}

.job-card.inactive .btn-apply:hover {
    transform: none;
    background: #6c757d;
}

/* Job Header */
.job-header {
    padding: 25px 25px 15px 25px;
    background: linear-gradient(135deg, #f8f9ff 0%, #fff 100%);
    border-bottom: 1px solid #f0f0f0;
}

.job-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.job-title {
    margin: 0;
    font-size: 1.3em;
    color: #1565C0;
    font-weight: 700;
    line-height: 1.3;
    flex: 1;
    padding-right: 15px;
}

.job-company {
    font-size: 0.95em;
    color: #666;
    margin-bottom: 8px;
    font-style: italic;
    display: flex;
    align-items: center;
}

.job-company:before {
    content: "🏢";
    margin-right: 8px;
}

.job-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
    white-space: nowrap;
    display: flex;
    align-items: center;
    color: white;
}

.job-status.status-active {
    background: #d1edff;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.job-status.status-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.job-status.status-paused {
    background: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
    opacity: 0.7;
}

.job-status.status-expired {
    background: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
    opacity: 0.7;
}

.job-status.status-full {
    background: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
    opacity: 0.7;
}

.job-status.status-active:before {
    content: "●";
    margin-right: 6px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.job-summary {
    margin-top: 10px;
    color: #666;
    font-size: 0.9em;
    line-height: 1.5;
    font-style: italic;
    min-height: 50px; /* Consistent height for job summary */
}

/* Job Content */
.job-content {
    padding: 20px 25px;
    flex: 1; /* Take up remaining space */
}

.job-content h4 {
    font-size: 1.1em;
    margin: 0 0 15px 0;
    color: #333;
    font-weight: 600;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0f0f0;
}

/* Basic Info Grid */
.job-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 20px;
    min-height: 120px; /* Minimum height for consistency */
}

.job-info-item {
    display: flex;
    align-items: flex-start;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 0.9em;
    line-height: 1.4;
}

.job-info-item strong {
    color: #495057;
    margin-right: 8px;
    min-width: 120px;
    flex-shrink: 0;
}

/* Requirements Section */
.job-requirements {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.requirements-list {
    display: grid;
    gap: 10px;
}

.requirement-item {
    display: flex;
    align-items: flex-start;
    padding: 10px 12px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    font-size: 0.9em;
    line-height: 1.4;
}

.requirement-item strong {
    color: #856404;
    margin-right: 8px;
    min-width: 100px;
    flex-shrink: 0;
}

/* Benefits Section */
.job-benefits {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.benefits-list {
    display: grid;
    gap: 10px;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    padding: 10px 12px;
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    border-radius: 8px;
    font-size: 0.9em;
    line-height: 1.4;
}

.benefit-item strong {
    color: #0c5460;
    margin-right: 8px;
    min-width: 120px;
    flex-shrink: 0;
}

.benefit-item.benefits-full {
    flex-direction: column;
    align-items: flex-start;
}

.benefit-item.benefits-full strong {
    margin-bottom: 8px;
    min-width: auto;
}

.benefits-text {
    color: #0c5460;
    font-size: 0.9em;
    line-height: 1.5;
}

/* Job Actions */
.job-actions {
    padding: 20px 25px 25px 25px;
    background: #f8f9fa;
    text-align: center;
    margin-top: auto; /* Push to bottom */
}

.btn-apply {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-apply:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.btn-apply i {
    font-size: 0.9em;
}

/* Job Controls Container */
.job-controls {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Filter Tabs Styling */
.job-filter-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

/* Sort and Filter Controls */
.job-sort-filter {
    display: grid;
    grid-template-columns: auto auto 1fr;
    gap: 20px;
    align-items: center;
}

.status-filter, .job-sort {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #495057;
}

.status-filter select, .job-sort select {
    padding: 8px 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background: white;
    font-size: 14px;
    min-width: 150px;
    transition: all 0.3s ease;
}

.status-filter select:focus, .job-sort select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.job-search {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: auto;
}

.job-search input {
    padding: 8px 35px 8px 15px;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    background: white;
    font-size: 14px;
    min-width: 250px;
    transition: all 0.3s ease;
}

.job-search input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.job-search #clearSearch {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #6c757d;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.job-search #clearSearch:hover {
    background: #e9ecef;
    color: #495057;
}

.filter-tab {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    color: #495057;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9em;
}

.filter-tab:hover {
    background: #e9ecef;
    transform: translateY(-1px);
}

.filter-tab.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .job-controls {
        padding: 15px;
    }
    
    .job-sort-filter {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .job-filter-tabs {
        margin-bottom: 15px;
    }
    
    .job-search input {
        min-width: 100%;
    }
    
    .job-cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .job-card {
        margin: 0 10px;
    }
    
    .job-title-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .job-status {
        align-self: flex-start;
    }
    
    .job-info-item,
    .requirement-item,
    .benefit-item {
        flex-direction: column;
        gap: 5px;
    }
    
    .job-info-item strong,
    .requirement-item strong,
    .benefit-item strong {
        min-width: auto;
        margin-right: 0;
        margin-bottom: 3px;
    }
}

/* ==========================================================================
   15.7. CONTACT SECTION ENHANCEMENTS
   ========================================================================== */

/* Hotline Info */
.hotline-info {
    margin-top: 10px;
}

.hotline-info .main-phone {
    font-size: 20px;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 10px;
}

.social-contacts {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.social-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding: 8px 12px;
    background: #f8f9ff;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.social-item:hover {
    background: #667eea;
    color: white;
    transform: translateX(5px);
}

.social-item i {
    font-size: 16px;
    width: 20px;
    color: #667eea;
    transition: color 0.3s ease;
}

.social-item:hover i {
    color: white;
}

/* Contact Form Enhancements */
.contact-form-custom {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 2px solid #f0f2ff;
}

.cf7-instruction {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.cf7-instruction h4 {
    color: #856404;
    margin-bottom: 15px;
}

.cf7-instruction ol {
    margin-left: 20px;
    color: #856404;
}

.plugin-notice {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    color: #0c5460;
    text-align: center;
}

/* Form Styling */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group select {
    cursor: pointer;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 40px;
}

/* Form Actions */
.form-actions {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.btn-submit {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-submit i {
    margin-right: 8px;
}

/* Quick Contact */
.quick-contact {
    margin-top: 25px;
    padding: 20px;
    background: #f8f9ff;
    border-radius: 15px;
}

.quick-contact p {
    text-align: center;
    color: #666;
    margin-bottom: 15px;
    font-weight: 500;
}

.quick-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.quick-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 14px;
}

.quick-btn.phone {
    background: #25d366;
    color: white;
}

.quick-btn.phone:hover {
    background: #1da851;
    transform: translateY(-2px);
}

.quick-btn.zalo {
    background: #0084ff;
    color: white;
}

.quick-btn.zalo:hover {
    background: #0066cc;
    transform: translateY(-2px);
}

.quick-btn.facebook {
    background: #1877f2;
    color: white;
}

.quick-btn.facebook:hover {
    background: #166fe5;
    transform: translateY(-2px);
}

/* ==========================================================================
   16. RESPONSIVE DESIGN
   ========================================================================== */

/* Large screens */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }
    
    .hero h1 {
        font-size: 4rem;
    }
    
    .hero p {
        font-size: 1.4rem;
    }
}

/* Medium screens */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .job-cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

/* Small screens */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 15px 0;
    }
    
    /* Contact Form Mobile */
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .quick-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .quick-btn {
        width: 200px;
        justify-content: center;
    }
    
    .social-contacts {
        margin-top: 15px;
    }
    
    .social-item {
        font-size: 14px;
    }
    
    .hotline-info .main-phone {
        font-size: 18px;
    }
    
    .logo {
        font-size: 1.6rem;
    }

    .search-container {
        order: 3;
        width: 100%;
        max-width: 400px;
    }

    .search-input {
        width: 100%;
        font-size: 16px;
    }

    .contact-info {
        text-align: center;
    }
    
    .contact-info a {
        display: block;
        margin: 5px 0;
        margin-left: 0;
    }

    .main-nav {
        position: relative;
        top: 0;
    }

    .nav-menu {
        flex-direction: column;
    }
    
    .nav-link {
        padding: 12px 20px;
        text-align: center;
        border-bottom: 1px solid #eee;
        border-left: none;
    }

    .hero {
        padding: 80px 0;
    }

    .hero h1 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

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

    .about-text h3 {
        font-size: 1.8rem;
    }

    .stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .services-grid,
    .gallery-grid,
    .job-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .job-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        margin: 10px;
        max-height: 95vh;
    }
    
    .modal-header,
    .modal-body {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 60px 0;
    }

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

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

    .section-title {
        font-size: 1.8rem;
    }
    
    .service-card,
    .job-card {
        padding: 25px 20px;
    }
    
    .contact-form {
        padding: 25px 20px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .filter-tab {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .contact-form-custom {
        padding: 20px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Prevent zoom on iOS */
    }
}

/* ==========================================================================
   12. GALLERY STYLES (Images & Videos)
   ========================================================================== */

.gallery-section {
    margin-top: 40px;
}

/* Gallery Filter Tabs */
.gallery-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    padding: 0 15px;
}

.filter-tab {
    background: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.filter-tab:hover {
    border-color: #007bff;
    color: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.filter-tab.active {
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-color: #007bff;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0,123,255,0.3);
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    padding: 20px;
}

/* Gallery Items */
.gallery-item {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.gallery-item-inner {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.gallery-item-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    /* Better image quality for photos */
    image-rendering: auto;
    image-rendering: high-quality;
    image-rendering: -webkit-optimize-contrast;
    /* Hardware acceleration without quality loss */
    backface-visibility: hidden;
    transform: translate3d(0, 0, 0);
    /* Better scaling algorithm */
    -ms-interpolation-mode: bicubic;
}

.gallery-item:hover .gallery-item-inner img {
    transform: scale(1.1);
}

/* Gallery Overlay */
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-icon {
    font-size: 24px;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    z-index: 2;
}

.video-play-icon {
    font-size: 48px;
}

/* Video Duration Badge */
.video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.8);
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

/* Video Placeholder */
.video-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #6c757d, #495057);
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-placeholder-icon {
    font-size: 48px;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Gallery Caption */
.gallery-caption {
    padding: 15px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    text-align: center;
    background: #ffffff;
    border-top: 1px solid #f8f9fa;
}

/* Gallery Type Indicators - Font Awesome icons */
.gallery-image .gallery-caption::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f03e ";
    margin-right: 5px;
    color: #667eea;
}

.gallery-video .gallery-caption::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f03d ";
    margin-right: 5px;
    color: #667eea;
}

/* No Content Message */
.no-images {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.no-images h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #495057;
}

.no-content-instructions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 30px 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.instruction-item {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: left;
}

.instruction-item h4 {
    color: #007bff;
    margin-bottom: 8px;
    font-size: 16px;
}

.instruction-item p {
    font-size: 14px;
    color: #6c757d;
    margin: 0;
}

/* Gallery Modal Styles */
.modal#imageModal .modal-content,
.modal#videoModal .modal-content {
    max-width: 90vw;
    max-height: 90vh;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.modal#imageModal .modal-content img {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
}

.modal#videoModal .modal-content {
    padding: 0;
}

.modal#videoModal iframe,
.modal#videoModal video {
    width: 100%;
    height: auto;
    max-height: 80vh;
}

/* Video Modal Header */
.video-modal-header {
    background: #ffffff;
    padding: 15px 20px;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.video-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

/* Responsive Gallery */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
        padding: 15px;
    }
    
    .gallery-filter-tabs {
        gap: 8px;
        padding: 0 10px;
    }
    
    .filter-tab {
        padding: 10px 15px;
        font-size: 13px;
    }
    
    .gallery-item-inner {
        height: 180px;
    }
    
    .no-content-instructions {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .instruction-item {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 10px;
    }
    
    .gallery-item-inner {
        height: 160px;
    }
    
    .gallery-caption {
        padding: 12px;
        font-size: 13px;
    }
    
    .filter-tab {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .modal#imageModal .modal-content,
    .modal#videoModal .modal-content {
        max-width: 95vw;
        max-height: 85vh;
    }
}

/* Gallery Animation Effects */
@keyframes galleryItemFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gallery-item {
    animation: galleryItemFadeIn 0.6s ease-out;
    animation-fill-mode: both;
}

.gallery-item:nth-child(1) { animation-delay: 0.1s; }
.gallery-item:nth-child(2) { animation-delay: 0.2s; }
.gallery-item:nth-child(3) { animation-delay: 0.3s; }
.gallery-item:nth-child(4) { animation-delay: 0.4s; }
.gallery-item:nth-child(5) { animation-delay: 0.5s; }
.gallery-item:nth-child(6) { animation-delay: 0.6s; }

/* Hide filtered items */
.gallery-item.hidden {
    display: none;
}

/* ==========================================================================
   12.1. ENHANCED GALLERY CONTROLS & TIMELINE
   ========================================================================== */

.gallery-controls {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.timeline-filter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #dee2e6;
}

.timeline-filter label {
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.year-selector {
    padding: 8px 15px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    background: #ffffff;
    font-size: 14px;
    font-weight: 500;
    color: #495057;
    min-width: 200px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.year-selector:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}

/* Timeline Layout */
.gallery-timeline {
    margin-top: 20px;
}

.year-section {
    margin-bottom: 50px;
    animation: fadeInUp 0.6s ease-out;
}

.year-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    padding: 15px 20px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-radius: 10px;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0,123,255,0.3);
}

.year-badge {
    font-size: 24px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.year-count {
    background: rgba(255,255,255,0.2);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

/* Enhanced Gallery Items */
.gallery-caption {
    padding: 15px;
}

.image-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.4;
}

.image-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.category-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-du-hoc {
    background: #e3f2fd;
    color: #1976d2;
}

.category-xuat-khau-lao-dong {
    background: #fff3e0;
    color: #f57c00;
}

.category-dao-tao {
    background: #e8f5e8;
    color: #388e3c;
}

.category-hoat-dong {
    background: #fce4ec;
    color: #c2185b;
}

.category-thanh-tich {
    background: #f3e5f5;
    color: #7b1fa2;
}

/* Image Date Overlay */
.image-date {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0,0,0,0.7);
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

/* Filter Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.year-section.filtered-out {
    display: none;
}

.gallery-item.filtered-out {
    display: none;
}

/* Responsive Timeline */
@media (max-width: 768px) {
    .gallery-controls {
        padding: 15px;
    }
    
    .timeline-filter {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .year-selector {
        min-width: auto;
        width: 100%;
        max-width: 300px;
    }
    
    .year-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .year-badge {
        font-size: 20px;
    }
    
    .gallery-filter-tabs {
        flex-direction: column;
        gap: 8px;
    }
    
    .filter-tab {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .year-section {
        margin-bottom: 35px;
    }
    
    .year-header {
        padding: 12px 15px;
    }
    
    .image-title {
        font-size: 13px;
    }
    
    .category-badge {
        font-size: 10px;
        padding: 3px 6px;
    }
}

/* ==========================================================================
   18. TAB NAVIGATION SYSTEM
   ========================================================================== */

/* Prevent scroll behavior when hash changes (fix for sticky headers) */
html {
    scroll-behavior: auto !important;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
    scroll-margin-top: 160px; /* Account for sticky header + nav */
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Navigation active states */
.nav-link.active {
    background-color: #007cba;
    color: white !important;
    font-weight: 600;
}

.nav-link {
    transition: all 0.3s ease;
    text-decoration: none;
    padding: 0;
    margin: 0;
    border-radius: 5px;
    display: inline-block;
    color: #333;
    font-size: 14px;
    white-space: nowrap;
}

.nav-link:hover {
    background-color: #005a87;
    color: white !important;
    text-decoration: none;
}

/* Mobile navigation adjustments */
@media (max-width: 768px) {
    .nav-link {
        padding: 0;
        margin: 0;
        font-size: 0.9rem;
    }
}

/* ==========================================================================
   19. VIDEO GALLERY STYLING
   ========================================================================== */

/* Video Preview Element */
.video-preview {
    width: 100%;
    height: 100%;
    min-height: 200px;
    object-fit: cover;
    border-radius: 8px;
    background: #000;
}

.video-preview::-webkit-media-controls {
    display: none !important;
}

.video-preview::-webkit-media-controls-enclosure {
    display: none !important;
}

/* Video Placeholder */
.video-placeholder {
    background: linear-gradient(135deg, #87ceeb 0%, #98d8e8 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 200px;
    color: #2c3e50;
    position: relative;
    border-radius: 8px;
}

.video-placeholder-icon {
    font-size: 48px;
    margin-bottom: 8px;
    opacity: 0.8;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.video-format {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
    background: rgba(255,255,255,0.3);
    padding: 4px 8px;
    border-radius: 4px;
}

/* Video Play Icon Overlay */
.gallery-video .video-play-icon {
    font-size: 32px !important;
    animation: videoPulse 2s infinite;
}

@keyframes videoPulse {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.1); opacity: 1; }
}

/* Video Duration Badge */
.gallery-video .video-duration {
    background: rgba(0,0,0,0.8) !important;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    position: absolute;
    bottom: 8px;
    right: 8px;
}

/* Video Caption Styling */
.gallery-video .gallery-caption {
    padding: 12px;
    border-top: 3px solid #007cba;
}

.video-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.4;
}

.video-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Video Type Badges */
.video-type-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.video-type-badge.video-youtube {
    background: #ff6b6b;
    color: white;
}

.video-type-badge.video-vimeo {
    background: #4dabf7;
    color: white;
}

.video-type-badge.video-mp4,
.video-type-badge.video-webm,
.video-type-badge.video-ogg {
    background: #51cf66;
    color: white;
}

/* Video Modal Styling */
#videoModal .modal-content {
    max-width: 900px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
}

.video-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
}

.video-modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    flex: 1;
}

#modalVideoContent {
    padding: 0;
    position: relative;
}

#modalVideoContent iframe,
#modalVideoContent video {
    width: 100%;
    height: 500px;
    border: none;
    display: block;
}

/* Video Filter Enhancements - REMOVED OLD COLOR RULES */
.gallery-filter-tabs .filter-tab[data-type] {
    position: relative;
    transition: all 0.3s ease;
}

/* Old individual color rules removed - now using unified styling */

/* Video Grid Responsive */
@media (max-width: 768px) {
    .video-placeholder {
        min-height: 150px;
    }
    
    .video-placeholder-icon {
        font-size: 36px;
        margin-bottom: 6px;
    }
    
    .video-format {
        font-size: 12px;
    }
    
    .gallery-video .video-play-icon {
        font-size: 24px !important;
    }
    
    #modalVideoContent iframe,
    #modalVideoContent video {
        height: 250px;
    }
    
    .video-modal-title {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .video-placeholder {
        min-height: 120px;
    }
    
    .video-placeholder-icon {
        font-size: 28px;
    }
    
    .video-type-badge {
        font-size: 10px;
        padding: 3px 6px;
    }
    
    .video-title {
        font-size: 13px;
    }
}

/* Video Loading States */
.video-loading {
    position: relative;
}

.video-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: videoSpin 1s linear infinite;
}

@keyframes videoSpin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Video Hover Effects */
.gallery-video:hover .video-placeholder {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}

.gallery-video:hover .video-play-icon {
    animation-duration: 1s;
}

/* ==========================================================================
   16. MOBILE NAVIGATION & HAMBURGER MENU
   ========================================================================== */

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    position: relative;
    z-index: 1001;
    margin-left: auto;
}

.mobile-menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: white;
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Main Navigation */
.main-nav {
    background: rgba(102, 126, 234, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-menu {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    display: block;
    padding: 15px 20px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    border-left: 3px solid transparent;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: rgba(255,255,255,0.1);
    border-left-color: #ffd700;
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    .navbar-content {
        justify-content: space-between;
        gap: 10px;
        flex-wrap: nowrap;
    }
    
    .navbar-logo .logo-text h1 {
        font-size: 1.1rem;
    }
    
    .navbar-logo .logo-text span {
        font-size: 0.6rem;
    }
    
    .navbar-logo .logo-badge {
        font-size: 0.8rem;
        padding: 5px 8px;
    }
    
    .navbar-logo .logo {
        gap: 8px;
    }
    
    .navbar-menu {
        display: none;
        position: fixed;
        top: 90px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(102, 126, 234, 0.98);
        z-index: 999;
        justify-content: flex-start;
        align-items: center;
        padding-top: 20px;
    }
    
    .navbar-menu.show {
        display: flex;
    }
    
    .navbar-menu .nav-menu {
        flex-direction: column;
        width: 100%;
        align-items: center;
        gap: 0;
    }
    
    .navbar-menu .nav-menu li {
        width: 100%;
    }
    
    .navbar-menu .nav-menu a {
        padding: 20px 30px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        text-align: center;
        font-size: 1.2rem;
        display: block;
        width: 100%;
        color: white;
    }
    
    .navbar-search {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        width: 30px;
        height: 30px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 5px;
    }
    
    .mobile-menu-toggle span {
        display: block;
        height: 3px;
        width: 100%;
        background: #333;
        margin: 3px 0;
        transition: all 0.3s ease;
        border-radius: 2px;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}

/* Desktop: Hide mobile toggle */
@media (min-width: 769px) {
    .mobile-menu-toggle {
        display: none;
    }
}

/* Tablet Navigation */
@media (min-width: 769px) and (max-width: 1023px) {
    .mobile-menu-toggle {
        display: none;
    }
    
    .header-center {
        display: block;
    }
    
    .main-nav {
        display: block;
        position: sticky;
    }
    
    .contact-info-text {
        font-size: 0.8rem;
        display: flex;
    }
    
    .nav-menu {
        display: flex;
        flex-direction: row;
        height: auto;
        padding: 0;
    }
    
    .nav-menu a {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
}

/* Desktop Navigation */
@media (min-width: 1024px) {
    .mobile-menu-toggle {
        display: none;
    }
    
    .header-center {
        display: block;
    }
    
    .main-nav {
        display: block;
        position: sticky;
    }
    
    .contact-info-text {
        display: flex;
    }
    
    .nav-menu {
        display: flex;
        flex-direction: row;
        height: auto;
        padding: 0;
    }
}

/* ==========================================================================
   17. CONTACT LINKS & IMPROVED HEADER LAYOUT
   ========================================================================== */

.contact-link {
    color: #0073aa;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-link:hover {
    color: #005177;
    text-decoration: underline;
}

.social-item .contact-link {
    color: inherit;
    display: flex;
    align-items: center;
    gap: 8px;
}

.social-item .contact-link:hover {
    color: #0073aa;
}

/* Header Social Links with Text */
.social-link span {
    font-size: 0.8rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .contact-info-text {
        font-size: 0.75rem;
        gap: 2px;
    }
    
    .contact-line {
        gap: 2px;
    }
    
    .contact-line.hotline {
        font-size: 0.8rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .contact-info-text {
        font-size: 0.8rem;
    }
}

/* ========================================
   JOB DETAIL PAGE STYLES
   ======================================== */

.job-detail-container {
    background: #f8f9fa;
    min-height: 60vh;
    padding: 20px 0;
}

.job-detail-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.job-detail-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #667eea;
}

.back-to-jobs {
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    margin-bottom: 20px;
    transition: background-color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.back-to-jobs:hover {
    background: #545b62;
}

.job-detail-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff !important;
    margin: 0;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.job-detail-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

.job-detail-main {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.job-detail-info {
    margin-bottom: 30px;
}

.job-detail-info h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e74c3c;
}

.job-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.job-info-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.job-info-item strong {
    color: #2c3e50;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 5px;
}

.info-value {
    color: #495057;
    font-size: 1rem;
    font-weight: 500;
}

.job-detail-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.job-detail-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.job-detail-section h3 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.job-section-content {
    color: #495057;
    line-height: 1.6;
    font-size: 1rem;
}

.job-detail-sidebar {
    position: sticky;
    top: 20px;
}

.job-apply-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    text-align: center;
}

.job-apply-card h3 {
    color: #ffffff !important;
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 600;
    text-align: center;
}

.btn-apply-job {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
}

.btn-apply-job:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* Higher specificity for contact info - WHITE TEXT THEME */
.job-detail-container .job-apply-card .job-contact-info,
.job-contact-info {
    text-align: left;
}

.job-detail-container .job-apply-card .job-contact-info h4,
.job-contact-info h4 {
    color: #ffffff !important;
    margin-bottom: 15px;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    padding-bottom: 8px;
}

.job-detail-container .job-apply-card .job-contact-info p,
.job-contact-info p {
    margin: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #ffffff !important;
}

.job-detail-container .job-apply-card .job-contact-info i,
.job-contact-info i {
    color: #ffffff !important;
    width: 16px;
}

.job-detail-container .job-apply-card .job-contact-info a,
.job-contact-info a {
    color: #ffffff !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.job-detail-container .job-apply-card .job-contact-info a:hover,
.job-contact-info a:hover {
    color: rgba(255,255,255,0.8) !important;
    text-decoration: underline;
}

.job-share {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-top: 20px;
}

.job-share h4 {
    color: #ffffff !important;
    margin-bottom: 15px;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    padding-bottom: 8px;
}

.share-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Higher specificity for share buttons */
.job-detail-container .job-share .share-buttons .share-facebook,
.job-detail-container .job-share .share-buttons .share-zalo,
.job-detail-container .job-share .share-buttons .share-copy,
.share-facebook,
.share-zalo, 
.share-copy {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 12px 16px !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    min-height: 44px !important;
    position: relative !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.job-detail-container .job-share .share-buttons .share-facebook,
.share-facebook {
    background-color: #1877f2 !important;
    background: #1877f2 !important;
    color: #ffffff !important;
}

.job-detail-container .job-share .share-buttons .share-facebook:hover,
.share-facebook:hover {
    background-color: #166fe5 !important;
    background: #166fe5 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.4) !important;
}

.job-detail-container .job-share .share-buttons .share-zalo,
.share-zalo {
    background-color: #0068ff !important;
    background: #0068ff !important;
    color: #ffffff !important;
}

.job-detail-container .job-share .share-buttons .share-zalo:hover,
.share-zalo:hover {
    background-color: #0056d3 !important;
    background: #0056d3 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 104, 255, 0.4) !important;
}

.job-detail-container .job-share .share-buttons .share-copy,
.share-copy {
    background-color: #6c757d !important;
    background: #6c757d !important;
    color: #ffffff !important;
}

.job-detail-container .job-share .share-buttons .share-copy:hover,
.share-copy:hover {
    background-color: #5a6268 !important;
    background: #5a6268 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.4) !important;
}

.job-detail-container .job-share .share-buttons .share-facebook i,
.job-detail-container .job-share .share-buttons .share-zalo i,
.job-detail-container .job-share .share-buttons .share-copy i,
.share-facebook i,
.share-zalo i,
.share-copy i {
    color: #ffffff !important;
    font-size: 16px !important;
}

/* Button click animation */
.share-facebook.button-clicked,
.share-zalo.button-clicked,
.share-copy.button-clicked {
    transform: scale(0.95) !important;
    transition: transform 0.1s ease !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .job-detail-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .job-detail-title {
        font-size: 1.8rem;
    }
    
    .job-detail-main,
    .job-apply-card {
        padding: 20px;
    }
    
    .job-info-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .job-detail-sidebar {
        position: static;
    }
}

/* ================================
   ICON STYLING ENHANCEMENTS
   ================================ */

/* Font Awesome Icon Styling */
.section-title i,
.feature-item i,
.contact-item i,
.filter-tab i,
.program-tab i {
    transition: all 0.3s ease;
    vertical-align: middle;
}

/* Section Title Icons */
.section-title i {
    font-size: 1.2em;
    margin-right: 12px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Filter Tab Icons */
.filter-tab i {
    margin-right: 8px;
    font-size: 1em;
}

.filter-tab:hover i {
    transform: scale(1.1);
}

.filter-tab.active i {
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Program Tab Icons */
.program-tab i {
    margin-right: 8px;
    transition: all 0.3s ease;
}

.program-tab:hover i {
    transform: translateY(-1px);
}

/* Achievement List Icons */
.achievement-list li i {
    margin-right: 6px;
    font-size: 0.9em;
}

/* Contact Icons */
.contact-link i {
    margin-right: 6px;
    vertical-align: middle;
}

/* Job Detail Icons */
.job-detail-section h3 i,
.job-info-item strong i {
    margin-right: 6px;
}

/* Icon Color Consistency */
.text-primary i { color: #667eea !important; }
.text-success i { color: #28a745 !important; }
.text-danger i { color: #dc3545 !important; }
.text-warning i { color: #ffc107 !important; }
.text-info i { color: #17a2b8 !important; }

/* Icon Hover Effects */
.tab-content a:hover i,
.contact-link:hover i,
.btn:hover i {
    transform: scale(1.05);
}

/* Video Filter Tab Icons */
.gallery-filter-tabs .filter-tab i {
    font-size: 1em;
    margin-right: 8px;
    transition: all 0.3s ease;
}

.gallery-filter-tabs .filter-tab:hover i {
    transform: scale(1.1);
}

.gallery-filter-tabs .filter-tab.active i {
    filter: brightness(1.2);
}

/* Navigation Menu Icons */
.nav-menu .nav-link i {
    margin-right: 6px;
    font-size: 0.9em;
    color: rgba(255,255,255,0.8);
    transition: all 0.3s ease;
}

.nav-menu .nav-link:hover i,
.nav-menu .nav-link.active i {
    color: #ffd700;
    transform: scale(1.1);
}

.nav-menu .nav-link:hover i {
    text-shadow: 0 2px 4px rgba(255,215,0,0.3);
}

/* Mobile Navigation Icons */
@media (max-width: 768px) {
    .nav-menu .nav-link i {
        margin-right: 8px;
        font-size: 1em;
    }
}

/* Responsive Icon Sizing */
@media (max-width: 768px) {
    .section-title i {
        font-size: 1.1em;
        margin-right: 8px;
    }
    
    .filter-tab i,
    .program-tab i {
        margin-right: 6px;
        font-size: 0.9em;
    }
}

/* ==========================================================================
   VIDEO FILTER TABS STYLING
   ========================================================================== */

/* Gallery Filter Tabs Container */
.gallery-filter-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0 15px;
}

/* Filter Tab Base Styling */
.gallery-filter-tabs .filter-tab {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    color: #6c757d;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    text-decoration: none;
    position: relative;
    min-width: 120px;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Filter Tab Hover Effect */
.gallery-filter-tabs .filter-tab:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    border-color: #667eea;
    color: #667eea;
    background: #f8f9ff;
}

/* Active Filter Tab Styling */
.gallery-filter-tabs .filter-tab.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: #667eea;
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transform: translateY(-1px);
}

/* Active Tab Glow Effect */
.gallery-filter-tabs .filter-tab.active::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 27px;
    z-index: -1;
    opacity: 0.6;
    filter: blur(4px);
}

/* Icon Styling in Filter Tabs */
.gallery-filter-tabs .filter-tab i {
    font-size: 1em;
    margin-right: 8px;
    transition: all 0.3s ease;
}

.gallery-filter-tabs .filter-tab:hover i {
    transform: scale(1.1);
}

.gallery-filter-tabs .filter-tab.active i {
    color: white;
    filter: brightness(1.2);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* FORCE OVERRIDE - Unified Tab Colors for Video & Gallery Filters */
body #video .gallery-filter-tabs .filter-tab i,
body #hinh-anh .gallery-filter-tabs .filter-tab i,
body .gallery-filter-tabs .filter-tab i,
body .tab-content .gallery-filter-tabs .filter-tab i,
.gallery-filter-tabs .filter-tab i[style] {
    color: #6c757d !important; /* Default gray for all tabs */
    margin-right: 8px !important;
}

/* Reset any existing color styles */
body .gallery-filter-tabs .filter-tab .fas,
body .gallery-filter-tabs .filter-tab .fab {
    color: #6c757d !important;
}

/* Hover State */
body #video .gallery-filter-tabs .filter-tab:hover i,
body #hinh-anh .gallery-filter-tabs .filter-tab:hover i,
body .gallery-filter-tabs .filter-tab:hover i,
body .tab-content .gallery-filter-tabs .filter-tab:hover i {
    color: #667eea !important; /* Blue on hover */
}

body .gallery-filter-tabs .filter-tab:hover .fas,
body .gallery-filter-tabs .filter-tab:hover .fab {
    color: #667eea !important;
}

/* Active State */
body #video .gallery-filter-tabs .filter-tab.active i,
body #hinh-anh .gallery-filter-tabs .filter-tab.active i,
body .gallery-filter-tabs .filter-tab.active i,
body .tab-content .gallery-filter-tabs .filter-tab.active i {
    color: white !important; /* White when active */
    text-shadow: 0 2px 4px rgba(0,0,0,0.3) !important;
}

body .gallery-filter-tabs .filter-tab.active .fas,
body .gallery-filter-tabs .filter-tab.active .fab {
    color: white !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3) !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .gallery-filter-tabs {
        gap: 8px;
        margin-bottom: 20px;
        padding: 0 10px;
    }
    
    .gallery-filter-tabs .filter-tab {
        padding: 10px 16px;
        font-size: 0.85rem;
        min-width: 100px;
    }
    
    .gallery-filter-tabs .filter-tab i {
        font-size: 0.9em;
        margin-right: 6px;
    }
}

/* Gallery and Video Item Icons */
.gallery-icon i {
    color: white !important;
    font-size: 1.5em;
}

.video-play-icon i {
    color: white !important;
    font-size: 1.5em;
}

/* ==========================================================================
   JOB FILTER TABS STYLING 
   ========================================================================== */

/* Job Filter Tabs Container */
.job-filter-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Job Filter Tab Base Styling */
.job-filter-tabs .filter-tab {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    color: #6c757d;
    padding: 10px 18px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    min-width: 80px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Job Filter Tab Hover Effect */
.job-filter-tabs .filter-tab:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    border-color: #667eea;
    color: #667eea;
    background: #f8f9ff;
}

/* Active Job Filter Tab Styling */
.job-filter-tabs .filter-tab.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: #667eea;
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transform: translateY(-1px);
}

/* Active Tab Glow Effect */
.job-filter-tabs .filter-tab.active::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 22px;
    z-index: -1;
    opacity: 0.6;
    filter: blur(4px);
}

/* Mobile Responsive for Job Filters */
@media (max-width: 768px) {
    .job-filter-tabs {
        gap: 8px;
        margin-bottom: 15px;
    }
    
    .job-filter-tabs .filter-tab {
        padding: 8px 14px;
        font-size: 0.85rem;
        min-width: 70px;
    }
}

/* ==========================================================================
   NAVBAR SEARCH BUTTON & MODAL SYSTEM
   ========================================================================== */

/* Search Button trong Navigation */
.search-modal-trigger {
    background: none;
    border: none;
    padding: 15px 25px;
    color: #333;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    font-size: inherit;
    font-family: inherit;
    display: flex;
    align-items: center;
}

.search-modal-trigger:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    border-bottom-color: #667eea;
}

/* Search Modal */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 50000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.search-modal.hidden {
    display: none;
}

.search-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.search-modal-content {
    position: relative;
    width: 100%;
    max-width: 600px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.search-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8f9fa;
}

.search-modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.close-search-modal {
    background: none;
    border: none;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    color: #666;
    transition: all 0.2s ease;
}

.close-search-modal:hover {
    background: #e9ecef;
    color: #333;
}

.search-modal-body {
    padding: 24px;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.search-input-wrapper:focus-within {
    background: white;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-input-wrapper .fas {
    color: #667eea;
    font-size: 16px;
    flex-shrink: 0;
}

.modal-search-input {
    flex: 1;
    border: none;
    background: none;
    font-size: 16px;
    color: #333;
    outline: none;
    font-family: inherit;
}

.modal-search-input::placeholder {
    color: #999;
}

.clear-modal-search {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.clear-modal-search:hover {
    background: #e9ecef;
    color: #666;
}

/* Modal Search Results */
.modal-search-results {
    max-height: 400px;
    overflow-y: auto;
}

.search-result-item {
    padding: 16px 20px;
    border-bottom: 1px solid #f5f5f5;
    cursor: pointer;
    transition: background 0.2s ease;
    border-radius: 8px;
    margin-bottom: 8px;
}

.search-result-item:hover {
    background: #f8f9fa;
}

.search-result-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.search-result-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    font-size: 15px;
}

.search-result-meta {
    font-size: 13px;
    color: #666;
}

.search-no-results {
    padding: 40px 20px;
    text-align: center;
    color: #999;
    font-style: italic;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .search-modal {
        padding: 10px;
    }
    
    .search-modal-content {
        max-width: none;
        width: 100%;
        margin: 0;
    }
    
    .search-modal-header,
    .search-modal-body {
        padding: 16px;
    }
}

/* ==========================================================================
   HAMBURGER MOBILE MENU
   ========================================================================== */

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    cursor: pointer;
    padding: 0;
    position: relative;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: white;
    border-radius: 3px;
    transition: all 0.3s ease;
    position: relative;
    transform-origin: center;
}

/* Hamburger Animation - X Transform */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Desktop - Ensure menu is always visible */
@media (min-width: 769px) {
    .nav-menu-container {
        display: block !important;
        position: static !important;
        background: transparent !important;
        box-shadow: none !important;
    }
    
    .nav-menu {
        flex-direction: row !important;
    }
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu-container {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--primary-color);
        z-index: 1000;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    
    .nav-menu-container.mobile-active {
        display: block;
    }
    
    .nav-menu {
        flex-direction: column;
        width: 100%;
        margin: 0;
        padding: 0;
        list-style: none;
    }
    
    .nav-menu li {
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-menu a {
        display: block;
        padding: 15px 20px;
        color: white;
        text-decoration: none;
        font-weight: 500;
        transition: background-color 0.3s ease;
    }
    
    .nav-menu a:hover,
    .nav-menu a.active {
        background: rgba(255,255,255,0.1);
    }
    
    .nav-menu i {
        margin-right: 10px;
        width: 20px;
        text-align: center;
    }
    
    /* Hide search button on very small screens */
    @media (max-width: 480px) {
        .nav-search {
            display: none;
        }
        
        .nav-integrated-content {
            justify-content: space-between;
        }
    }
}

/* =============================================================================
   17. PERFORMANCE OPTIMIZATION
   ============================================================================= */

/* Lazy Loading Images */
img.lazy-load {
    background-color: #f0f0f0;
    background-image: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.5) 50%, transparent 70%);
    background-size: 200% 100%;
    animation: loading-shimmer 1.5s infinite;
    transition: opacity 0.3s ease;
    min-height: 200px; /* Prevent layout shift */
}

img.lazy-loaded {
    animation: fade-in 0.3s ease;
}

@keyframes loading-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Optimize image rendering */
img {
    height: auto;
    max-width: 100%;
    object-fit: cover;
}

/* Gallery specific lazy loading */
.gallery-item img.lazy-load {
    min-height: 250px;
    width: 100%;
    border-radius: 8px;
}

/* =============================================================================
   18. INTERNAL LINKING SYSTEM & RELATED POSTS
   ============================================================================= */

/* Internal links styling */
.the-content a:not(.button):not(.nav-link):not(.filter-tab) {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
    font-weight: 500;
}

.the-content a:not(.button):not(.nav-link):not(.filter-tab):hover {
    color: var(--primary-dark);
    border-bottom-color: var(--primary-color);
    padding-bottom: 2px;
}

/* Related posts section */
.related-posts-section {
    margin-top: var(--spacing-xl);
    padding: var(--spacing-lg);
    background: linear-gradient(135deg, #f8f9fc 0%, #e8f2ff 100%);
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.related-posts-title {
    color: var(--text-primary);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.related-posts-title i {
    color: var(--primary-color);
    font-size: 1.2em;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-md);
}

.related-post-item {
    background: white;
    padding: var(--spacing-lg);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.related-post-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.2);
}

.related-post-item h4 {
    margin: 0 0 var(--spacing-sm) 0;
    font-size: 1.1rem;
    line-height: 1.4;
}

.related-post-item h4 a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.related-post-item h4 a:hover {
    color: var(--primary-color);
}

.related-post-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: var(--spacing-sm) 0;
}

.read-more-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    margin-top: var(--spacing-sm);
    transition: all 0.3s ease;
}

.read-more-link:hover {
    color: var(--primary-dark);
    transform: translateX(3px);
}

/* Contextual navigation menu */
.contextual-nav-menu {
    margin: var(--spacing-lg) 0;
    padding: var(--spacing-md);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.nav-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    justify-content: center;
}

.nav-menu-item a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.nav-menu-item a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nav-menu-item i {
    font-size: 0.9em;
    opacity: 0.9;
}

/* Mobile responsive for internal linking */
@media (max-width: 767px) {
    .related-posts-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .related-posts-section {
        padding: var(--spacing-md);
        margin-top: var(--spacing-lg);
    }
    
    .related-posts-title {
        font-size: 1.2rem;
        flex-direction: column;
        gap: 8px;
    }
    
    .nav-menu-list {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-menu-item a {
        width: 100%;
        max-width: 200px;
        justify-content: center;
        padding: 12px 16px;
    }
    
    .contextual-nav-menu {
        margin: var(--spacing-md) 0;
    }
}

@media (max-width: 480px) {
    .related-post-item {
        padding: var(--spacing-md);
    }
    
    .related-posts-title {
        font-size: 1.1rem;
    }
    
    .related-post-item h4 {
        font-size: 1rem;
    }
    
    .related-post-item p {
        font-size: 0.85rem;
    }
}

/* =============================================================================
   19. BREADCRUMB NAVIGATION
   ============================================================================= */

/* Breadcrumb container */
.breadcrumb-container {
    background: linear-gradient(135deg, #f8f9fc 0%, #e8f2ff 100%);
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
    padding: var(--spacing-sm) 0;
    margin-bottom: var(--spacing-md);
}

.breadcrumb-nav {
    font-size: 0.9rem;
}

.breadcrumb-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid transparent;
}

.breadcrumb-item a:hover {
    color: var(--primary-dark);
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(102, 126, 234, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.15);
}

.breadcrumb-item a i {
    font-size: 0.8em;
    opacity: 0.8;
}

.breadcrumb-item.current {
    color: var(--text-primary);
    font-weight: 600;
    padding: 6px 10px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.breadcrumb-item.current i {
    color: var(--primary-color);
    opacity: 1;
}

.breadcrumb-separator {
    color: var(--text-muted);
    opacity: 0.6;
    font-size: 0.7em;
    margin: 0 4px;
}

.breadcrumb-separator i {
    transition: all 0.3s ease;
}

/* Breadcrumb hover effects */
.breadcrumb-item:not(.current):not(.breadcrumb-separator):hover + .breadcrumb-separator i {
    color: var(--primary-color);
    opacity: 0.8;
    transform: translateX(2px);
}

/* Schema.org structured data styling */
.breadcrumb-list meta {
    display: none;
}

/* Mobile responsive breadcrumb */
@media (max-width: 767px) {
    .breadcrumb-container {
        padding: 8px 0;
        margin-bottom: var(--spacing-sm);
    }
    
    .breadcrumb-nav {
        font-size: 0.8rem;
    }
    
    .breadcrumb-list {
        gap: 4px;
    }
    
    .breadcrumb-item a,
    .breadcrumb-item.current {
        padding: 4px 8px;
        font-size: 0.8rem;
    }
    
    .breadcrumb-separator {
        margin: 0 2px;
    }
    
    /* Hide icons on very small screens to save space */
    .breadcrumb-item i {
        display: none;
    }
}

@media (max-width: 480px) {
    .breadcrumb-container {
        padding: 6px 0;
    }
    
    .breadcrumb-nav {
        font-size: 0.75rem;
    }
    
    .breadcrumb-item a,
    .breadcrumb-item.current {
        padding: 3px 6px;
    }
    
    /* Stack breadcrumbs on very small screens if needed */
    .breadcrumb-list {
        flex-wrap: wrap;
        gap: 2px;
    }
}

/* Dark mode support for breadcrumbs */
@media (prefers-color-scheme: dark) {
    .breadcrumb-container {
        background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
        border-bottom-color: rgba(102, 126, 234, 0.3);
    }
    
    .breadcrumb-item a {
        background: rgba(255, 255, 255, 0.1);
        color: #e8f2ff;
    }
    
    .breadcrumb-item a:hover {
        background: rgba(255, 255, 255, 0.2);
        color: #ffffff;
    }
    
    .breadcrumb-item.current {
        background: rgba(102, 126, 234, 0.2);
        color: #e8f2ff;
        border-color: rgba(102, 126, 234, 0.4);
    }
    
    .breadcrumb-separator {
        color: #8fa8c7;
    }
}

/* =============================================================================
   20. CONTACT FORM FIXES
   ============================================================================= */

/* Fix double dropdown arrows in Contact Form 7 selects */
.wpcf7-form select,
select[data-service],
select,
.wpcf7-select,
.contact-form select {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%23666" d="m2 0l2 2.5-2 2.5z"/></svg>') !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 12px !important;
    padding-right: 40px !important;
}

/* Contact form general styling */
.wpcf7-form select,
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background-color: white;
}

.wpcf7-form select:focus,
.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Fix for specific dropdown styling issues */
.wpcf7-form .wpcf7-select {
    height: 48px;
    cursor: pointer;
}

/* Ensure single arrow only */
.wpcf7-form select::-ms-expand {
    display: none; /* Remove IE default arrow */
}