﻿/* Homepage Redesign - Trusted Innovation Portal Style */

:root {
    --hp-primary-blue: #0056b3;
    /* Deep Blue */
    --hp-accent-cyan: #00aaff;
    /* Bright Cyan/Light Blue */
    --hp-gradient-start: #003366;
    --hp-gradient-end: #0056b3;
    --hp-text-dark: #333;
    --hp-text-light: #fff;
    --hp-bg-light: #f8f9fa;
    --hp-card-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --hp-card-hover-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Global Homepage Overrides */
.home-page-container {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--hp-text-dark);
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* ===============================
    HERO BANNER - ENTERPRISE STYLE
    ================================ */

.hero-section {
    margin-top: 20px;
}

.hero-slide {
    height: 560px;
    background-size: cover;
    background-position: center;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    padding-left: 20px;
    /* Slight padding on left to align with container if needed */
}

/* Ensure container inside hero-slide is centered or aligned as expected */
.hero-slide .container {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 33, 84, 0.4), rgba(0, 33, 84, 0.4));
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 64%;
    text-align: justify;
    padding: 185px 0 0 9%;
}

.hero-content h1 {
    font-size: 38px;
    font-weight: 700;
    line-height: 1.3;
}

.hero-content p {
    margin-top: 20px;
    font-size: 13px;
    opacity: 0.9;
}

.hero-desc {
    margin-top: 20px;
    font-size: 13px;
    opacity: 0.9;
}

.hero-btn {
    margin-top: 24px;
    border-radius: 30px;
    padding: 10px 28px;
    display: inline-block;
    /* Ensure button layout */
}

/* Responsive */
@media (max-width: 768px) {
    .hero-slide {
        height: auto;
        border-radius: 16px;
    }

    .carousel-item {
        padding: 0;
    }

    .hero-content {
        max-width: 100%;
        padding: 150px 20px 0px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .carousel-indicators {
        width: 90%;
        left: 20px;
        bottom: 115px;
    }

    .hero-btn {
        display: block;
        margin: 70px auto 30px;
        width: 70%;
        padding: 15px 0;
        font-size: 18px;
        font-weight: 700;
        background: #ffffff;
        color: #0D6EFD;
    }

    .hero-content h1 {
        font-size: 30px;
        text-align: left;
    }

    .home-page-container {
        margin-top: 40px;
    }

    .header-mobile {
        display: flex;
        width: 100%;
        position: fixed;
        top: 0px;
        z-index: 1030;
        right: 0px;
        left: 0px;
        background: #fff;
        padding: 10px 10px;
    }

    ..tp-analytics__row,
    .tp-metrics__grid {
        display: block;
    }
}

.header-mobile {
    display: flex;
    justify-content: space-between;
}

/* Floating Search/Category Box */
.hp-floating-box {
    background: var(--hp-text-light);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    margin-top: -100px;
    margin-right: 100px;
    margin-left: 100px;
    /* Pull up into Hero Section */
    position: relative;
    z-index: 10;
}

.hp-search-title {
    text-align: center;
    font-weight: 700;
    margin-bottom: 50px;
    font-size: 1.8rem;
}

.hp-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 20px;
    text-align: center;
}

.hp-category-item {
    background: linear-gradient(to bottom right, #e0f7fa, #e1f5fe);
    padding: 20px;
    border-radius: 12px;
    transition: transform 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.hp-category-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 168, 255, 0.2);
}

.hp-category-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
    object-fit: contain;
}

.hp-category-name {
    font-weight: 600;
    display: block;
}

/* Sections Common */
.hp-section {
    padding: 20px 0;
}

.hp-section-title {
    text-align: center;
    font-weight: 700;
    margin-bottom: 20px;
    margin-top: 50px;
    position: relative;
}

.hp-section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--hp-primary-blue);
    margin: 15px auto 0;
}

/* Technology Cards (Requests & Highlights) */
.hp-tech-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--hp-card-shadow);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
}

.hp-tech-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hp-card-hover-shadow);
}

.hp-tech-img {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.hp-tech-body {
    padding: 20px;
    flex-grow: 1;
}

.hp-tech-tags {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    gap: 5px;
}

.hp-tag {
    background: rgba(255, 255, 255, 0.9);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--hp-primary-blue);
    display: flex;
    align-items: center;
    gap: 5px;
}

.hp-tech-title {
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 1.1rem;
    line-height: 1.4;
}

.hp-tech-desc {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

.hp-tech-btn {
    margin-top: auto;
    background-color: var(--hp-primary-blue);
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    width: fit-content;
    text-decoration: none;
    display: inline-block;
}

.hp-tech-btn:hover {
    background-color: #004494;
    color: #fff;
}


/* Statistics Banner */
.hp-stats-banner {
    background: #001a33;
    /* Dark Navy */
    color: #fff;
    padding: 80px 0;
    background-image: radial-gradient(circle at 20% 50%, rgba(0, 100, 255, 0.1) 0%, transparent 50%);
    position: relative;
}

.hp-stat-item {
    text-align: center;
    padding: 20px;
}

.hp-stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--hp-accent-cyan);
    margin-bottom: 10px;
}

.hp-stat-label {
    font-size: 1rem;
    opacity: 0.8;
}

/* Events Section */
.hp-event-main {
    position: relative;
    overflow: hidden;
}

.hp-event-main img {
    width: 100%;
    height: auto;
    display: block;
}

.hp-event-overlay {
    width: 100%;
    padding: 20px 0;
    color: #000000;
}

.hp-event-list .hp-event-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
}

.hp-event-thumb {
    width: 120px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hp-hero-content {
        text-align: center;
    }

    .hp-hero-image-container {
        margin-top: 40px;
    }

    .hp-category-grid {
        display: block;
    }

    .hp-category-item {
        height: 200px !important;
        margin-top: 30px !important;
    }

    .hp-search-title {
        font-size: 30px !important;
    }


    .hp-floating-box {
        padding: 20px;
        border: none;
        box-shadow: none;
        margin: 0;
    }

    .hp-category-icon {
        width: 120px;
        height: 120px;
        top: -10px !important;
    }

    .hp-category-name {
        margin-top: 110px !important;
        font-size: 30px;
    }

    .hp-header-logo {
        height: 40px !important;
    }

    .hp-header-search-icon {
        top: 42% !important;
    }
}

/* Footer Redesign */
.hp-footer {
    background-color: #004494;
    /* Deep Navy Blue from reference */
    color: #ffffff;
    padding: 60px 0 40px;
    font-size: 0.9rem;
    border-top: none;
}

.hp-footer a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s;
}

.hp-footer a:hover {
    color: var(--hp-accent-cyan);
}

.hp-footer h6 {
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.hp-footer-logo-row {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.hp-footer-logo {
    height: 45px;
    padding: 2px;
    border-radius: 4px;
}

.hp-footer-copyright-text {
    font-size: 0.85rem;
    line-height: 1.4;
    font-weight: 700;
}

.hp-footer-info-row {
    margin-bottom: 8px;
    display: flex;
    gap: 10px;
}

.hp-footer-info-row i {
    width: 20px;
    text-align: center;
    color: #999;
}

.hp-footer-menu-list {
    list-style: none;
    padding: 0;
}

.hp-footer-menu-list li {
    margin-bottom: 10px;
}

.hp-footer-social-icons {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.hp-footer-social-btn {
    font-size: 1.5rem;
}

.hp-footer-social-btn.youtube {
    color: #ff0000;
}

.hp-footer-social-btn.facebook {
    color: #1877f2;
}

.hp-footer-bct {
    max-width: 150px;
    display: block;
}

/* Header Redesign */
.hp-header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 10px 0;
    position: relative;
    z-index: 1000;
}

.hp-header-logo {
    height: 50px;
}

.hp-header-btn-menu {
    background-color: #0056b3;
    color: #fff;
    border-radius: 20px;
    padding: 6px 15px;
    font-weight: 600;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.hp-header-btn-menu:hover {
    background-color: #004494;
    color: #fff;
}

.hp-header-link {
    color: #333;
    font-weight: 600;
    text-decoration: none;
    padding: 5px 10px;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.hp-header-link:hover {
    color: #0056b3;
}

.hp-header-link.active {
    color: #0056b3;
}

.hp-header-search-container {
    position: relative;
    max-width: 300px;
}

.hp-header-search-input {
    background-color: #f1f3f5;
    border: 1px solid #ced4da;
    border-radius: 20px;
    padding: 6px 15px 6px 35px;
    width: 100%;
    font-size: 0.9rem;
}

.hp-header-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
}

.hp-header-btn-login {
    /*background-color: #0056b3;*/
    background-color: #9b9fa3;
    color: #fff;
    border-radius: 19px;
    padding: 0px 8px;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    white-space: nowrap;
}

.hp-header-btn-login:hover {
    background-color: #004494;
    color: #fff;
}

.hp-header-divider {
    height: 25px;
    width: 1px;
    background-color: #ddd;
    margin: 0 10px;
}

.hp-nav-item-dropdown {
    position: relative;
}

.hp-nav-item-dropdown i {
    font-size: 0.8em;
    margin-left: 2px;
}

.text-limit {
    display: -webkit-box !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    width: 100%;
    min-width: 0;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.col-lg-6:has(.hp-event-main) {
    border-right: 1px dashed #33333347;
}

.hp-event-item {
    padding-bottom: 10px;
    border-bottom: 1px dashed #33333347;
}

.hp-event-item img {
    min-width: 20%;
}

/* CARD */
.yc-card {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    height: 260px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.13);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.yc-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(-4px);
}

.yc-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.yc-card:hover img {
    transform: scale(1.05);
}

/* lớp tối */
.yc-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, .75), rgba(0, 0, 0, .2));
}

/* content */
.yc-content {
    position: absolute;
    bottom: 18px;
    left: 18px;
    right: 18px;
    color: #1a1a1a;
    text-align: center;
    background: rgba(255, 255, 255, 0.82);
    border-radius: 10px;
    padding: 10px 12px;
}

.yc-meta {
    margin-bottom: 10px;
    font-size: 13px;
}

.yc-meta span {
    background: #fff;
    color: #0d6efd;
    padding: 4px 10px;
    border-radius: 20px;
    margin-right: 6px;
    font-weight: 600;
}

.yc-name {
    font-weight: 600;
    margin-bottom: 12px;
}

.yc-btn {
    display: inline-block;
    background: #0d6efd;
    padding: 8px 16px;
    border-radius: 20px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

/* STATS */
.yc-stats {
    margin-top: 60px;
    padding: 70px 0;
    background: linear-gradient(to top, #0000005c,
            /* xanh dương nhẹ bên trái */
            rgba(173, 216, 230, 0)
            /* trong suốt bên phải */
        ), url(../image/yc-stats.png);
    color: #fff;
    border-radius: 20px;
}

.yc-stat-number {
    font-size: 32px;
    font-weight: 700;
}

.yc-stat-label {
    opacity: .9;
}

.yc-consult-btn {
    display: inline-block;
    padding: 12px 30px;
    background: #0d6efd;
    border-radius: 30px;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

.TechCarousel {
    margin-bottom: 30px;
}

.hp-category-item-desc,
.hp-category-item-button {
    text-align: center;
    display: block;
    opacity: 0;
    transition: all .3s ease;
    visibility: hidden;
}

.hp-category-item-button {
    border: 1px;
    padding: 5px 15px;
    border-radius: 5px;
    color: #ffffff;
    background: #000000;
    margin-top: 30px;
    margin-left: auto;
    margin-right: auto;
}

.hp-category-name {
    font-weight: 700;
    transition: all .3s ease;
    margin-top: 58px;
}

.hp-category-icon {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) scale(1.4);
    transition: all .3s ease;
    z-index: 1000;
}

.CNTB {
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .9) 0%, rgba(255, 255, 255, .4) 35%, rgba(255, 255, 255, 0) 70%), linear-gradient(135deg, #d6f5ea, #a8e6cf);
    height: 130px;
    transition: height .3s ease;
}

/* Thiết bị (3rd item) - override back to blue */
.hp-category-grid .hp-category-item.CNTB:nth-child(3) {
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .9) 0%, rgba(255, 255, 255, .4) 35%, rgba(255, 255, 255, 0) 70%), linear-gradient(135deg, #cfe9ff, #9fd3ff);
}

.hp-category-item:hover {
    height: 280px;
}

.hp-category-item {
    position: relative;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
}

.hp-category-item:hover .hp-category-name {
    font-size: 20px;
}

.hp-category-item:hover .hp-category-icon {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%) scale(3);
}

.hp-category-item:hover .hp-category-item-desc,
.hp-category-item:hover .hp-category-item-button {
    opacity: 1;
    visibility: visible;
}


.DTDA {
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .9) 0%, rgba(255, 255, 255, .4) 35%, rgba(255, 255, 255, 0) 70%), linear-gradient(135deg, #d6f5ea, #a8e6cf);
    height: 130px;
    transition: height .3s ease;
}

.YCCN {
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .9) 0%, rgba(255, 255, 255, .4) 35%, rgba(255, 255, 255, 0) 70%), linear-gradient(135deg, #cfe9ff, #9fd3ff);
    height: 130px;
    transition: height .3s ease;
}

.DVTV {
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .9) 0%, rgba(255, 255, 255, .4) 35%, rgba(255, 255, 255, 0) 70%), linear-gradient(135deg, #cfe9ff, #9fd3ff);
    height: 130px;
    transition: height .3s ease;
}

.GPCN {
    padding: 0px !important;
}

.GPCN img {
    height: 200px;
}

.hp-tech-card-new {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    height: 100%;
    min-height: 260px;
}

.hp-tech-card-new img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* lớp tối */
.hp-tech-card-new .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, .65), rgba(0, 0, 0, .2));
}

/* phần text */
.hp-tech-card-new .content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 16px;
    color: #fff;
    text-align: center;
}

.hp-tech-card-new .title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
    /* giới hạn 2 dòng */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hp-tech-card-new .desc {
    font-size: 13px;
    opacity: .9;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* nút */
.hp-tech-card-new .btn-view {
    display: inline-block;
    background: linear-gradient(90deg, #0d6efd, #0b5ed7);
    color: #fff;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.hp-tech-card-new .btn-view:hover {
    opacity: .9;
}

.hm {
    display: block;
    text-decoration: none;
    color: #000000;
    border: 1px;
    border-radius: 20px;
    padding: 2px 10px;
    background: #999999;
    font-size: 13px;
    font-weight: 500;
}

.hmf {
    width: 120px;
    display: block;
    text-decoration: none;
    color: #000000;
    border: 1px solid #999999;
    border-radius: 20px;
    padding: 5px 10px;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
}

.hmf.active {
    border: 1px solid #0d6efd;
    background: #cfe9ff;
    color: #0d6efd;
}

/* ===============================
   USER AVATAR DROPDOWN
   =============================== */

/* Avatar Button */
.hp-user-avatar-btn {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--hp-text-dark);
    padding: 4px 12px;
    border-radius: 50px;
    transition: all 0.3s ease;
    background: transparent;
    border: none;
}

.hp-user-avatar-btn:hover {
    background: rgba(0, 86, 179, 0.1);
    color: var(--hp-primary-blue);
}

/* Avatar Image */
.hp-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--hp-primary-blue);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* User Name */
.hp-user-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--hp-text-dark);
    margin-left: 8px;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Dropdown Menu */
.hp-user-dropdown {
    min-width: 200px;
    border-radius: 12px;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
    margin-top: 8px;
}

.hp-user-dropdown .dropdown-item {
    padding: 10px 20px;
    font-size: 14px;
    color: var(--hp-text-dark);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.hp-user-dropdown .dropdown-item:hover {
    background: rgba(0, 86, 179, 0.1);
    color: var(--hp-primary-blue);
}

.hp-user-dropdown .dropdown-item.text-danger:hover {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.hp-user-dropdown .dropdown-divider {
    margin: 8px 0;
    border-color: rgba(0, 0, 0, 0.1);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .hp-user-avatar {
        width: 36px;
        height: 36px;
    }

    .hp-user-avatar-btn {
        padding: 4px 8px;
    }
}

.d-flex:has(.hp-header-search-container.mobile) {
    justify-content: right;
    width: 60%;
}

.hp-header-search-container.mobile {
    display: block;
    width: 180px;
    margin-right: 5px;
}

/* ===============================
   HỆ THỐNG SÀN GIAO DỊCH CÔNG NGHỆ
   ================================ */

.parallax-scene {
    min-height: 505px;
    padding: 20px 0;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #e8f4f8 0%, #f0f8ff 50%, #e0f2f7 100%);
    margin: 20px 0;
    border-radius: 20px;
}

/* 3D Network Background */
.parallax-scene::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 30%, rgba(0, 170, 255, 0.08) 0%, transparent 50%), radial-gradient(circle at 80% 70%, rgba(0, 86, 179, 0.08) 0%, transparent 50%), radial-gradient(circle at 50% 50%, rgba(11, 119, 200, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

/* Animated connection lines */
.parallax-scene::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(45deg, transparent 48%, rgba(0, 170, 255, 0.15) 49%, rgba(0, 170, 255, 0.15) 51%, transparent 52%), linear-gradient(-45deg, transparent 48%, rgba(0, 86, 179, 0.12) 49%, rgba(0, 86, 179, 0.12) 51%, transparent 52%);
    background-size: 100px 100px;
    opacity: 0.3;
    animation: networkPulse 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes networkPulse {

    0%,
    100% {
        opacity: 0.2;
    }

    50% {
        opacity: 0.4;
    }
}

.parallax-scene .decor-6,
.parallax-scene .decor-7,
.parallax-scene .decor-8,
.parallax-scene .decor-9,
.parallax-scene .decor-10,
.parallax-scene .decor-11,
.parallax-scene .decor-12,
.parallax-scene .decor-13 {
    position: absolute;
    top: 50%;
    left: 50%;
}

.parallax-scene img {
    max-width: 120px;
    height: auto;
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
    position: relative;
    z-index: 10;
}

.parallax-scene img:hover {
    transform: scale(1.15);
    filter: drop-shadow(0 6px 12px rgba(0, 86, 179, 0.3));
}



/* Circular Layout - 8 logos positioned evenly around center (reduced radius) */
/* Top - Tây Ninh */
.decor-8 {
    transform: translate(-50%, -50%) translate(0, -220px);
    z-index: 10;
}

/* Top Right - Gia Lai */
.decor-7 {
    transform: translate(-50%, -50%) translate(160px, -160px);
    z-index: 10;
}

/* Right - Quảng Nam */
.decor-10 {
    transform: translate(-50%, -50%) translate(220px, 0);
    z-index: 10;
}

/* Bottom Right - Phú Yên */
.decor-6 {
    transform: translate(-50%, -50%) translate(160px, 160px);
    z-index: 10;
}

/* Bottom - Techport */
.decor-12 {
    transform: translate(-50%, -50%) translate(0, 220px);
    z-index: 10;
}

/* Bottom Left - Long An */
.decor-9 {
    transform: translate(-50%, -50%) translate(-160px, 160px);
    z-index: 10;
}

/* Left - Bình Phước */
.decor-11 {
    transform: translate(-50%, -50%) translate(-220px, 0);
    z-index: 10;
}

/* Top Left - Đồng Tháp */
.decor-13 {
    transform: translate(-50%, -50%) translate(-160px, -160px);
    z-index: 10;
}

@media (max-width: 768px) {

    .parallax-scene .decor-6,
    .parallax-scene .decor-7,
    .parallax-scene .decor-8,
    .parallax-scene .decor-9,
    .parallax-scene .decor-10,
    .parallax-scene .decor-11,
    .parallax-scene .decor-12,
    .parallax-scene .decor-13 {
        display: none;
    }
}

/* ===============================
   PARTNER CAROUSEL
   ================================ */

.partner-section {
    background: #f8f9fa;
    padding: 60px 0;
}

.partner-carousel {
    padding: 40px 0;
    position: relative;
}

.partner-logo-link {
    display: block;
    padding: 20px;
    background: white;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.partner-logo-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.partner-logo {
    max-width: 100%;
    max-height: 100px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.partner-logo-link:hover .partner-logo {
    opacity: 1;
}

/* Partner Name Overlay */
.partner-name-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 86, 179, 0.85);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.partner-logo-link:hover .partner-name-overlay {
    opacity: 1;
}

.partner-carousel .carousel-control-prev,
.partner-carousel .carousel-control-next {
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.partner-carousel .carousel-control-prev:hover,
.partner-carousel .carousel-control-next:hover {
    opacity: 1;
}

.partner-carousel .carousel-control-prev-icon,
.partner-carousel .carousel-control-next-icon {
    width: 30px;
    height: 30px;
    background-size: 100%;
    filter: invert(0);
}

.partner-carousel .carousel-control-prev {
    left: -50px;
}

.partner-carousel .carousel-control-next {
    right: -50px;
}

/* Hide carousel indicators */
.partner-carousel .carousel-indicators {
    display: none;
}

@media (max-width: 768px) {

    .partner-carousel .carousel-control-prev,
    .partner-carousel .carousel-control-next {
        width: 40px;
        height: 40px;
    }

    .partner-carousel .carousel-control-prev {
        left: 0;
    }

    .partner-carousel .carousel-control-next {
        right: 0;
    }

    .partner-logo {
        max-height: 100px;
    }

    .partner-logo-link {
        min-height: 200px;
        padding: 30px;
    }

    .partner-name-overlay {
        font-size: 14px;
        padding: 20px;
    }
}

.fadeInUp {
    font-size: 20px;
    font-weight: 700;
}

.yc-section img {
    max-height: 300px;
    object-fit: contain;
}

.mobile-system-section {
    background: linear-gradient(rgba(200, 220, 235, .9), rgba(200, 220, 235, .9)), url('/image/bg-pattern.png');
    /* nếu PC có pattern */
    background-size: cover;
    border-radius: 20px;
}

.mobile-system-section .logo-box {
    display: block;
    padding: 15px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: all .3s ease;
}

.mobile-system-section .logo-box img {
    max-height: 60px;
    width: 100%;
    object-fit: contain;
}

.mobile-system-section .logo-box:active {
    transform: scale(0.95);
}

@media only screen and (min-width: 768px) and (max-width: 1024px) {}

@media (min-width: 1024px) {

    .header-mobile {
        width: auto;
    }
}

@media only screen and (min-width: 820px) and (max-width: 1180px) {
    .navbar>.container {
        display: block
    }

    .hero-content {
        padding-top: 133px;
    }
}

@media only screen and (min-width: 820px) and (max-width: 1180px) and (orientation: portrait) {
    .hero-content {
        padding-top: 111px;
    }
}

@media only screen and (min-width: 1024px) and (max-width: 1366px) {
    .navbar>.container {
        display: block
    }

    .hero-content {
        max-width: 65%;
    }
}

@media only screen and (min-width: 1024px) and (max-width: 1366px) and (orientation: portrait) {
    .hero-content {
        padding-top: 135px;
    }
}

/* ====================================================
   MOBILE RESPONSIVE FIXES (smartphones ≤ 480px)
   ==================================================== */
@media (max-width: 480px) {

    /* Prevent bottom nav from covering content */
    body {
        padding-bottom: 65px;
    }

    .hp-footer {
        padding-bottom: 70px;
    }

    /* Section padding - prevent content touching screen edges */
    .hp-section,
    .home-page-container .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    /* Section title spacing */
    .hp-section-title {
        margin-top: 30px;
        font-size: 1.4rem;
        padding: 0 8px;
    }

    /* Stats cards - better spacing in 2-column grid */
    .hp-stat-item {
        padding: 12px 8px;
    }

    .hp-stat-number {
        font-size: 1.8rem;
    }

    /* Chart legend readability */
    .chart-container,
    canvas {
        max-width: 100%;
    }

    /* Yeu cau cong nghe cards */
    .yc-card {
        height: 220px;
        margin-bottom: 16px;
    }

    .yc-name {
        font-size: 0.9rem;
    }

    .yc-btn {
        padding: 6px 14px;
        font-size: 0.85rem;
    }

    /* Search container on mobile header */
    .hp-header-search-container.mobile {
        max-width: 160px;
    }

    .hp-header-search-input {
        font-size: 0.8rem;
        padding: 5px 10px 5px 30px;
    }
}

@media (min-width: 992px) {

    .hero-content p {
        min-height: 80px;
    }

    .hero-slide-2 .hero-content {
        max-width: 90%;
    }

    .hero-slide-2 .hero-content p {
        max-width: 50%;
    }

    .hp-lang-btn {
        color: #333333;
        display: block;
        padding: 5px 10px;
        border: 1px;
        border-radius: 30px;
        box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
    }

    .hp-lang-btn:hover {
        color: #0056b3;
        border: 1px;
        border-radius: 30px;
        box-shadow: rgba(0, 0, 0, 0.30) 0px 1px 4px;
    }

}

.hp-footer-social-icons .bi-facebook::before {
    content: "\f344";
    color: #fff !important;
}

.hp-footer-info-row i {
    color: #fff !important;
}

.sidebar-floating .bi-facebook::before {
    content: "\f344";
    color: #323232 !important;
}

.background-hero {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    opacity: 1 !important;
    filter: none !important;
}

/* nếu theme đang dùng overlay làm mờ */
.background-hero::before {
    content: none !important;
    background: transparent !important;
}

.tp-kpi {
    --tp-analytics-bg: linear-gradient(135deg, #f8fbff, #eef4ff);
    --tp-panel-bg: #ffffff;
    --tp-border: #dce8f8;
    --tp-shadow: 0 10px 30px rgba(37, 99, 235, .08);
    --tp-text: #0f172a;
    --tp-muted: #64748b;
    border-radius: 20px;
    padding: 24px;
    background: var(--tp-analytics-bg);
    border: 1.5px solid var(--tp-border);
    box-shadow: var(--tp-shadow);
    color: var(--tp-text);
}

.tp-title {
    font-size: 1.4rem !important;
}

.CNNB-nav button {
    font-size: 18px;
}

.CNNB {
    --bs-nav-tabs-link-active-border-color: #999999 #999999 #ffffff #999999;
    border-bottom: 1px solid #999999;
}

/* ===============================
   TECH TABS — "Công nghệ nổi bật"
   =============================== */
.tech-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.tech-tabs .nav-link {
    font-size: 18px;
    font-weight: 600;
    color: #555;
    padding: 10px 24px;
    border: none;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    background: transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
    position: relative;
    bottom: -2px;
}

.tech-tabs .nav-link:hover {
    color: var(--hp-primary-blue);
    border-bottom-color: var(--hp-accent-cyan);
}

.tech-tabs .nav-link.active {
    color: var(--hp-primary-blue);
    border-bottom: 3px solid var(--hp-primary-blue);
    background: transparent;
}

/* ===============================
   TECH CARD
   =============================== */
.tech-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.tech-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
}

/* Image wrapper để clip zoom */
.tech-card-img-wrap {
    overflow: hidden;
    width: 100%;
    background-color: #ebebeb;
    flex-shrink: 0;
}

.tech-card-img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    background-color: #ebebeb;
    display: block;
    transition: transform 0.4s ease;
}

.tech-card:hover .tech-card-img {
    transform: scale(1.06);
}

.tech-card-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.tech-card-title {
    font-size: 15px;
    font-weight: 700;
    color: #222;
    line-height: 1.4;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tech-card-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
    margin-bottom: 12px;
}

/* ===============================
   BTN-TECH-MORE
   =============================== */
.btn-tech-more {
    display: inline-block;
    padding: 8px 22px;
    border: 2px solid var(--hp-primary-blue);
    border-radius: 30px;
    color: var(--hp-primary-blue);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    background: transparent;
    transition: background 0.25s ease, color 0.25s ease;
    white-space: nowrap;
}

.btn-tech-more:hover {
    background: var(--hp-primary-blue);
    color: #fff;
}

/* Nút "Xem thêm" ở cuối section */
.tech-section-more {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .tech-tabs .nav-link {
        font-size: 15px;
        padding: 8px 14px;
    }

    .tech-card-img {
        height: 160px;
    }
}

.carousel-indicators-fix {
    bottom: 100px !important;
    left: 50%;
    width: 15% !important;
    transform: translateX(-50%);
}

.carousel-indicators-fix button {
    background-color: rgba(0, 0, 0, 0.6) !important;
    /* màu tối */
}

.carousel-indicators-fix .active {
    background-color: rgba(0, 0, 0, 0.9);
    /* nút đang active tối hơn */
}

@media (max-width: 768px) {
    .carousel-indicators-fix {
        display: none;
    }
}