:root {
    /* Màu theo style mới: menu xanh, accent cam, nền trắng */
    --techly-primary: #0A7BA1;   /* xanh theo logo */
    --techly-secondary: #FF7A32; /* cam nhấn */
    --techly-dark: #111827;
    --techly-light: #f5f7fb;
}

* {
    box-sizing: border-box;
}

body {
    font-family: "Roboto",'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #ffffff;          /* NỀN TRẮNG */
    color: #222222;               /* CHỮ ĐEN XÁM DỄ ĐỌC */
}

a {
    text-decoration: none;
    color: var(--techly-primary);
}

a:hover {
    color: var(--techly-secondary);
}

/* NAVBAR */
.navbar {
    background: var(--techly-primary) !important; /* menu xanh */
    backdrop-filter: none;
    box-shadow: 0 4px 18px rgba(0,0,0,0.12);
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: .05em;
    font-size: 1.1rem;
    text-transform: uppercase;
    color: #ffffff !important;
}

.navbar-brand span {
    color: var(--techly-secondary); /* chữ TECHLY nhấn màu cam */
}

.nav-link {
    color: #e5f3fa !important;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .08em;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 10%;
    bottom: 4px;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--techly-secondary), #ffd19a);
    transition: width .2s ease-out;
}

.nav-link:hover::after,
.nav-item.active .nav-link::after {
    width: 80%;
}

/* Hero / Slider */
.hero-wrapper {
    position: relative;
    width: 100%;
    color: #222222;  /* text đen */
    overflow: hidden;
}

.hero-bg {
    position: relative;
    width: 100%;
    min-height: 420px;
    /* Nền trắng + mảng màu rất nhẹ, không tối như trước */
    background:
            radial-gradient(circle at 10% 0, rgba(10, 123, 161, 0.10), transparent 55%),
            radial-gradient(circle at 90% 20%, rgba(255, 122, 50, 0.12), transparent 55%),
            radial-gradient(circle at 0% 80%, rgba(14, 165, 233, 0.10), transparent 55%),
            #ffffff;
}

.hero-floating-shape {
    position: absolute;
    border-radius: 999px;
    filter: blur(40px);
    opacity: .25;
    mix-blend-mode: normal; /* giảm hiệu ứng “dầm” */
}

.hero-floating-shape.shape-1 {
    width: 260px; height: 260px;
    background: rgba(10, 123, 161, 0.35);
    top: -40px; right: 8%;
    animation: floatY 12s ease-in-out infinite;
}
.hero-floating-shape.shape-2 {
    width: 220px; height: 220px;
    background: rgba(255, 122, 50, 0.35);
    bottom: -60px; left: 2%;
    animation: floatY 16s ease-in-out infinite;
}
.hero-floating-shape.shape-3 {
    width: 300px; height: 300px;
    background: rgba(148, 163, 184, 0.35);
    top: 30%; left: 50%;
    opacity: .18;
    animation: floatX 18s ease-in-out infinite;
}

@keyframes floatY {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-24px); }
}
@keyframes floatX {
    0%,100% { transform: translateX(0); }
    50% { transform: translateX(32px); }
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 3.5rem 0 3rem;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    background: #f3f4f6; /* nền xám nhạt */
    border: 1px solid #e5e7eb;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: .16em;
    margin-bottom: 1rem;
    color: #6b7280;
}
.hero-kicker i {
    font-size: 0.85rem;
    margin-right: 6px;
    color: var(--techly-secondary);
}

.hero-title {
    font-size: 2.3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.75rem;
    color: #111827;
}

.hero-title span {
    background: linear-gradient(120deg, #0A7BA1, #FF7A32);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-subtitle {
    font-size: 0.98rem;
    max-width: 520px;
    color: #4b5563;
    margin-bottom: 1.5rem;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
}

.hero-tag {
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #4b5563;
}

.hero-cta .btn {
    border-radius: 999px;
    padding: 0.55rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.btn-techly-primary {
    background: linear-gradient(135deg, var(--techly-primary), #0c8fbd);
    border: none;
    box-shadow: 0 12px 26px rgba(10,123,161,0.35);
    color: #ffffff;
}

.btn-techly-primary:hover {
    filter: brightness(1.03);
    transform: translateY(-1px);
}

.btn-techly-ghost {
    border-radius: 999px;
    border: 1px solid #d1d5db;
    color: #111827;
    background: #ffffff;
}

.hero-highlight-stat {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
    font-size: 0.8rem;
    color: #6b7280;
}
.hero-highlight-stat span {
    font-weight: 600;
    color: #111827;
}

.hero-media {
    position: relative;
    z-index: 1;
    padding: 3rem 0;
}

.hero-video-card {
    position: relative;
    border-radius: 24px;
    padding: 1.5rem;
    min-height: 260px;
    background:
            radial-gradient(circle at 0 0, rgba(10, 123, 161, .14), transparent 55%),
            radial-gradient(circle at 100% 0, rgba(255, 122, 50, .18), transparent 55%),
            radial-gradient(circle at 0 100%, rgba(148, 163, 184, .16), transparent 60%),
            #ffffff;
    box-shadow: 0 18px 40px rgba(15,23,42,0.10);
    overflow: hidden;
}

.hero-video-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid #e5e7eb;
    pointer-events: none;
}

.hero-video-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.7rem;
    background: rgba(249,250,251,.9);
    border: 1px solid #e5e7eb;
    color: #374151;
}

.hero-video-badge i {
    margin-right: 6px;
    color: #16a34a;
}

.hero-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -40%);
    width: 70px; height: 70px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 30% 0, #ffffff, #FF7A32);
    color: #111827;
    box-shadow: 0 18px 40px rgba(248, 148, 85, .4);
}

.hero-play-button i {
    margin-left: 3px;
    font-size: 1.6rem;
}

.hero-play-ring {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(148, 163, 184, 0.35);
    transform: scale(.78);
    opacity: .9;
}

.hero-meta {
    position: absolute;
    bottom: 1.4rem;
    left: 1.5rem;
    right: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.7rem;
    color: #4b5563;
}

.hero-meta small {
    display: block;
    color: #9ca3af;
}

.hero-pill {
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(249,250,251,.9);
    border: 1px solid #e5e7eb;
    color: #374151;
}

/* Sections */
.main-shell {
    padding: 2.8rem 0 3.5rem;
}

.section-title-wrap {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.section-kicker {
    font-size: 0.75rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #9ca3af;
}

.section-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #111827;
}

.section-subtitle {
    font-size: 0.85rem;
    color: #6b7280;
}

.badge-soft {
    padding: 4px 10px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    font-size: 0.7rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #6b7280;
}

.card-media {
    /* card dịch vụ / sản phẩm / tin tức */
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid #e5e7eb;
    transition: transform .18s ease-out, box-shadow .18s ease-out, border-color .18s ease-out;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
}

.card-media:hover {
    transform: translateY(-4px);
    border-color: rgba(10, 123, 161, .7);
    box-shadow: 0 14px 32px rgba(15, 23, 42, .10);
}

.card-media-icon {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    background: radial-gradient(circle at 30% 0, #e0f2fe, #0A7BA1);
    color: #ffffff;
    box-shadow: 0 10px 26px rgba(15, 118, 178, .4);
}

.card-media-title {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: .35rem;
}

.card-media-text {
    font-size: 0.85rem;
    color: #4b5563;
}

.card-media .img-fluid{
    height: 170px!important;
    width: 100%;
    object-fit: cover;
}

.section-divider {
    border-top: 1px solid #e5e7eb;
    margin: 2.5rem 0 2rem;
}

.content-wrapper {
    background: #ffffff;
    border-radius: 30px;
    padding: 2rem 1.5rem 2.5rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 18px 40px rgba(15, 23, 42, .06);
}

.btn-techly-accent {
    background-color: #FF7A32;
    border-radius: 999px;
    color: #fff !important;
    font-weight: 600;
    padding: 0.45rem 1.2rem;
    box-shadow: 0 6px 16px rgba(255, 122, 50, 0.35);
    transition: all 0.18s ease-out;
}

.btn-techly-accent:hover {
    background-color: #e55d25;
    box-shadow: 0 8px 20px rgba(255, 122, 50, 0.45);
    transform: translateY(-2px);
    color: #fff !important;
}


@media (min-width: 992px) {
    .hero-content {
        padding: 4.2rem 0 4rem;
    }
    .hero-title {
        font-size: 2.7rem;
    }
    .content-wrapper {
        padding: 2.5rem 2.2rem 3rem;
    }
}

@media (max-width: 767.98px) {
    .hero-bg {
        min-height: 460px;
    }
    .hero-title {
        font-size: 1.9rem;
    }
    .hero-media {
        padding-top: 1.5rem;
    }
}