/* ========== General ========== */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    padding-top: 0;
    overflow-x: hidden;
    color: #333;
}
a { transition: color 0.3s; }

/* ========== Top Bar ========== */
.top-bar { background: #f8f9fa; border-bottom: 1px solid #eee; padding: 8px 0; font-size: 0.85rem; }
.top-bar-info span { color: #666; }
.lang-switch { background: none; border: 1px solid #ddd; border-radius: 4px; padding: 3px 12px; color: #555; font-size: 0.85rem; cursor: pointer; transition: all 0.3s; }
.lang-switch:hover { background: #0d6efd; color: #fff; border-color: #0d6efd; }

/* ========== Main Navigation ========== */
.main-nav { padding: 0; background: #fff !important; min-height: 70px; }
.main-nav .navbar-brand { padding: 20px 0; }
.brand-text { font-weight: 700; font-size: 1.5rem; color: #333; letter-spacing: 0.5px; }
.brand-sub { font-weight: 300; font-size: 1.2rem; color: #999; }
.main-nav .navbar-nav .nav-link { color: #555; padding: 24px 18px; font-size: 0.95rem; font-weight: 500; letter-spacing: 0.3px; text-transform: uppercase; transition: all 0.3s; }
.main-nav .navbar-nav .nav-link:hover { color: #0d6efd; background: rgba(13,110,253,0.05); }
.main-nav .navbar-nav .nav-link.active { color: #0d6efd; border-bottom: 2px solid #0d6efd; }
.dropdown-mega > .nav-link.dropdown-toggle::after { display: none !important; }
@media (min-width: 992px) { .dropdown-mega > .nav-link { cursor: default; } }

/* ========== Mega Menu ========== */
.dropdown-mega { position: relative; }
.dropdown-mega .dropdown-mega-menu {
    display: block !important;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s, visibility 0.2s;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 100%;
    width: 900px;
    border-top: 3px solid #0d6efd !important;
    margin-top: 0;
    padding: 0;
    box-shadow: 0 15px 50px rgba(0,0,0,0.15);
    z-index: 1000;
    border-radius: 0 0 6px 6px;
}
.dropdown-mega:hover .dropdown-mega-menu { visibility: visible; opacity: 1; }

.mega-menu-row { display: flex; min-height: 380px; }
.mega-col-left { width: 200px; flex-shrink: 0; background: #f8f9fa; border-right: 1px solid #e8e8e8; padding: 12px 0; }
.mega-col-mid { width: 380px; flex-shrink: 0; padding: 20px 24px; background: #fff; overflow-y: auto; max-height: 520px; }
.mega-col-preview { width: 320px; flex-shrink: 0; background: linear-gradient(180deg, #f8f9fc 0%, #fff 100%); display: flex; align-items: center; justify-content: center; padding: 20px; position: relative; border-left: 1px solid #eee; }
.mega-preview-card { width: 100%; background: #fff; border-radius: 12px; padding: 16px; box-shadow: 0 4px 20px rgba(0,0,0,0.06); text-align: center; transition: box-shadow 0.3s; }
.mega-preview-card:hover { box-shadow: 0 6px 28px rgba(0,0,0,0.1); }
.mega-preview-img { width: 100%; max-width: 240px; height: auto; max-height: 200px; object-fit: contain; border-radius: 8px; transition: opacity 0.3s; display: block; margin: 0 auto; background: #fafafa; }
.mega-preview-placeholder { text-align: center; padding: 40px 20px; }
.mega-preview-hint { color: #bbb; font-size: 0.8rem; margin-top: 8px; }
.mega-preview-name { font-size: 0.92rem; font-weight: 600; color: #2c3e50; margin-top: 12px; padding-top: 12px; border-top: 1px dashed #e0e4e8; min-height: 22px; text-align: center; letter-spacing: 0.3px; line-height: 1.5; position: relative; }
.mega-preview-name::before { content: '— '; color: #c0c4cc; font-weight: 300; }
.mega-preview-name::after { content: ' —'; color: #c0c4cc; font-weight: 300; }

.mega-cat-link { display: block; padding: 14px 20px; font-size: 1rem; font-weight: 600; color: #444 !important; text-decoration: none; transition: all 0.15s; border-left: 4px solid transparent; letter-spacing: 0.3px; }
.mega-cat-link:hover, .mega-cat-link.active { color: #0d6efd !important; background: #fff; border-left-color: #0d6efd; }

.mega-series-title { font-size: 1.1rem; font-weight: 700; color: #222; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 2px solid #0d6efd; letter-spacing: 0.5px; }
.mega-sub-link { display: block; padding: 10px 0; font-size: 0.95rem; color: #555 !important; text-decoration: none; transition: all 0.2s; border-bottom: 1px solid #f5f5f5; letter-spacing: 0.2px; }
.mega-sub-link:last-child { border-bottom: none; }
.mega-sub-link:hover { color: #0d6efd !important; padding-left: 8px; }

/* ========== Hero ========== */
.hero-section { position: relative; height: 80vh; min-height: 500px; max-height: 800px; overflow: hidden; }
.hero-section .carousel-item { height: 80vh; min-height: 500px; max-height: 800px; }
.hero-section .carousel-item img { object-fit: cover; height: 100%; }
.hero-section .carousel-caption { bottom: 35%; left: 10%; right: 10%; text-align: left; }
.hero-section .carousel-caption h1 { font-size: 3.2rem; font-weight: 700; text-shadow: 0 2px 10px rgba(0,0,0,0.5); margin-bottom: 1rem; }
.hero-section .carousel-caption p { font-size: 1.2rem; text-shadow: 0 1px 5px rgba(0,0,0,0.5); max-width: 600px; line-height: 1.6; }
.hero-section .carousel-indicators { bottom: 30px; }
.hero-section .carousel-indicators button { width: 40px; height: 4px; border-radius: 2px; border: none; margin: 0 4px; opacity: 0.6; }
.hero-section .carousel-indicators button.active { opacity: 1; }

/* ========== Section Styles ========== */
section { overflow: hidden; }
.section-title { font-size: 2rem; font-weight: 700; margin-bottom: 0.5rem; position: relative; padding-bottom: 15px; }
.section-title::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 60px; height: 3px; background: #0d6efd; }
.section-subtitle { color: #888; font-size: 1rem; margin-bottom: 3rem; }

/* ========== Product Grid (Card Style) ========== */
.product-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 860px;
    margin: 0 auto;
}

.product-card-row {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid #eee;
    transition: all 0.35s ease;
    background: #fff;
}

.product-card-row:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    transform: translateY(-3px);
    border-color: #d0d8ff;
}

.product-card-inner {
    display: flex;
    flex-direction: row;
}

.product-img-wrap {
    width: 280px;
    min-width: 280px;
    height: 200px;
    overflow: hidden;
    background: #f5f5f5;
    flex-shrink: 0;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.product-card-row:hover .product-img {
    transform: scale(1.08);
}

.product-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
}

.product-info {
    flex: 1;
    padding: 22px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #0d6efd;
    background: rgba(13,110,253,0.08);
    padding: 3px 12px;
    border-radius: 20px;
    margin-bottom: 8px;
    align-self: flex-start;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 8px;
    line-height: 1.3;
}

.product-desc {
    font-size: 0.88rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 14px;
}

.product-actions .btn-primary {
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 20px;
    transition: all 0.25s;
}

.product-actions .btn-primary:hover {
    box-shadow: 0 4px 12px rgba(13,110,253,0.25);
}

/* ========== Featured Product Cards (Home Page) ========== */
.featured-product-card { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.04); transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); height: 100%; border: 1px solid #f0f0f0; }
.featured-product-card:hover { transform: translateY(-8px); box-shadow: 0 20px 50px rgba(0,0,0,0.1); border-color: transparent; }
.featured-product-img-wrap { position: relative; overflow: hidden; height: 260px; background: #f8f8f8; }
.featured-product-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.featured-product-card:hover .featured-product-img { transform: scale(1.08); }
.featured-product-img-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: #f5f5f5; }
.featured-product-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.35); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.35s ease; backdrop-filter: blur(1px); }
.featured-product-card:hover .featured-product-overlay { opacity: 1; }
.featured-product-badge { position: absolute; top: 14px; left: 14px; background: rgba(255,255,255,0.92); backdrop-filter: blur(4px); color: #333; font-size: 0.72rem; font-weight: 600; padding: 4px 14px; border-radius: 20px; letter-spacing: 0.3px; box-shadow: 0 2px 6px rgba(0,0,0,0.06); }
.featured-product-info { padding: 20px 22px 18px; }
.featured-product-title { font-size: 1.05rem; font-weight: 700; color: #1a1a2e; margin-bottom: 8px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.featured-product-desc { font-size: 0.85rem; color: #888; line-height: 1.6; margin-bottom: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.featured-product-footer { padding-top: 14px; border-top: 1px solid #f0f0f0; }
.featured-product-link { color: #0d6efd; text-decoration: none; font-size: 0.88rem; font-weight: 600; transition: all 0.25s; display: inline-flex; align-items: center; gap: 6px; }
.featured-product-link:hover { color: #0a58ca; gap: 10px; }

/* ========== Featured Case Cards (Home Page) ========== */
.featured-case-card { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.04); transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); height: 100%; border: 1px solid #f0f0f0; display: flex; flex-direction: row; }
.featured-case-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(0,0,0,0.1); border-color: transparent; }
.featured-case-img-wrap { position: relative; width: 45%; min-height: 260px; overflow: hidden; background: #f8f8f8; flex-shrink: 0; }
.featured-case-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94); position: absolute; top: 0; left: 0; }
.featured-case-card:hover .featured-case-img { transform: scale(1.08); }
.featured-case-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.3); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.35s ease; }
.featured-case-card:hover .featured-case-overlay { opacity: 1; }
.featured-case-view-btn { color: #fff; font-size: 0.88rem; font-weight: 600; padding: 8px 20px; border: 2px solid rgba(255,255,255,0.8); border-radius: 25px; backdrop-filter: blur(2px); transition: all 0.25s; }
.featured-case-view-btn:hover { background: rgba(255,255,255,0.15); border-color: #fff; }
.featured-case-cat { position: absolute; top: 14px; left: 14px; background: rgba(13,110,253,0.9); color: #fff; font-size: 0.7rem; font-weight: 600; padding: 4px 12px; border-radius: 4px; letter-spacing: 0.5px; text-transform: uppercase; }
.featured-case-info { flex: 1; padding: 22px 24px; display: flex; flex-direction: column; justify-content: center; }
.featured-case-title { font-size: 1.05rem; font-weight: 700; color: #1a1a2e; margin-bottom: 8px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.featured-case-desc { font-size: 0.85rem; color: #888; line-height: 1.6; margin-bottom: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.featured-case-meta { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 14px; border-top: 1px solid #f0f0f0; }
.featured-case-meta-item { font-size: 0.78rem; color: #999; display: inline-flex; align-items: center; gap: 4px; }
.featured-case-meta-item i { color: #0d6efd; font-size: 0.75rem; }

/* Traditional card style fallback */
.product-card, .case-card { transition: all 0.3s; border: none !important; }
.product-card:hover, .case-card:hover { transform: translateY(-8px); box-shadow: 0 15px 40px rgba(0,0,0,0.12) !important; }
.product-card .card-img-top { height: 220px; object-fit: cover; }

/* ========== Feature ========== */
.feature-box { padding: 40px 20px; border-radius: 8px; transition: all 0.3s; background: #fff; }
.feature-box:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
.feature-icon { width: 70px; height: 70px; margin: 0 auto; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, rgba(13,110,253,0.1), rgba(13,110,253,0.05)); border-radius: 50%; transition: all 0.3s; }
.feature-box:hover .feature-icon { background: linear-gradient(135deg, #0d6efd, #0a58ca); color: #fff !important; }
.feature-box:hover .feature-icon i { color: #fff !important; }

/* ========== Partner ========== */
.partner-logo { transition: all 0.3s; }
.partner-logo img { filter: grayscale(100%); opacity: 0.5; transition: all 0.3s; }
.partner-logo:hover img { filter: grayscale(0%); opacity: 1; }

/* ========== Page Header ========== */
.page-header { background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%); padding: 80px 0 60px; position: relative; }
.page-header::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }

/* ========== Breadcrumb ========== */
.breadcrumb-nav { background: transparent; padding: 15px 0 0; margin: 0; }
.breadcrumb-nav .breadcrumb { margin: 0; background: transparent; }
.breadcrumb-nav .breadcrumb-item { font-size: 0.85rem; }
.breadcrumb-nav .breadcrumb-item a { color: rgba(255,255,255,0.6); text-decoration: none; }
.breadcrumb-nav .breadcrumb-item a:hover { color: #fff; }
.breadcrumb-nav .breadcrumb-item.active { color: rgba(255,255,255,0.8); }
.breadcrumb-nav .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.4); }

/* ========== Case ========== */
.case-card .position-relative { overflow: hidden; }
.case-card .card-img-top { transition: transform 0.5s; }
.case-card:hover .card-img-top { transform: scale(1.1); }
.case-overlay { background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 50%); opacity: 0; transition: opacity 0.3s; }
.case-card:hover .case-overlay { opacity: 1; }

/* ========== Contact ========== */
.contact-info-list { display: flex; flex-direction: column; gap: 0; }
.contact-info-item { display: flex; align-items: flex-start; gap: 16px; padding: 18px 0; border-bottom: 1px solid #f0f0f0; }
.contact-info-item:last-child { border-bottom: none; }
.contact-info-icon { width: 44px; height: 44px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, rgba(13,110,253,0.08), rgba(13,110,253,0.03)); border-radius: 10px; color: #0d6efd; font-size: 1.2rem; }
.contact-info-text { flex: 1; min-width: 0; }
.contact-info-label { font-size: 0.85rem; font-weight: 700; color: #333; margin-bottom: 4px; letter-spacing: 0.3px; }
.contact-info-value { font-size: 0.88rem; color: #777; margin: 0; line-height: 1.6; word-break: break-word; }

.form-control { border-radius: 4px; border: 1px solid #ddd; padding: 10px 15px; transition: all 0.3s; }
.form-control:focus { border-color: #0d6efd; box-shadow: 0 0 0 3px rgba(13,110,253,0.15); }

/* ========== Footer ========== */
footer { background: #1a1a2e !important; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255,255,255,0.5); text-decoration: none; font-size: 0.9rem; transition: all 0.3s; }
.footer-links a:hover { color: #0d6efd; padding-left: 5px; }
.footer-contact li { margin-bottom: 10px; display: flex; align-items: center; }

/* ========== Stats ========== */
.stat-item { padding: 30px 15px; }
.stat-number { font-size: 2.5rem; font-weight: 800; color: #0d6efd; }
.stat-label { font-size: 0.9rem; color: #888; margin-top: 5px; }

/* ========== Back to Top ========== */
.back-to-top { position: fixed; bottom: 30px; right: 30px; width: 45px; height: 45px; background: #0d6efd; color: #fff; border: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; cursor: pointer; opacity: 0; visibility: hidden; transition: all 0.3s; z-index: 999; }
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: #0a58ca; transform: translateY(-3px); }

/* ========== Responsive ========== */
@media (max-width: 991px) {
    .top-bar { display: none; }
    .main-nav .navbar-nav .nav-link { padding: 12px 16px; border-bottom: 1px solid #eee; }
    .main-nav .navbar-nav .nav-link.active { border-bottom: 1px solid #eee; background: rgba(13,110,253,0.05); }
    .dropdown-mega .dropdown-mega-menu { position: static !important; transform: none; width: 100% !important; box-shadow: none; border-top: none !important; }
    .mega-menu-row { flex-direction: column; }
    .mega-col-left { width: 100%; border-right: none; border-bottom: 1px solid #eee; max-height: none; }
    .mega-col-mid { max-height: none; }
    .mega-col-preview { display: none; }
    .mega-series-panel { display: block !important; }
    .hero-section, .hero-section .carousel-item { height: 60vh; min-height: 350px; max-height: 500px; }
    .hero-section .carousel-caption { bottom: 25%; text-align: center; }
    .hero-section .carousel-caption h1 { font-size: 1.8rem; }
    .hero-section .carousel-caption p { font-size: 1rem; margin: 0 auto; }
    .page-header { padding: 60px 0 40px; }
}
@media (max-width: 576px) {
    .hero-section, .hero-section .carousel-item { height: 50vh; min-height: 300px; }
    .hero-section .carousel-caption h1 { font-size: 1.5rem; }
}