@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --k-primary: #0052cc;
    --k-primary-dark: #0747a6;
    --k-accent: #00b8d9;
    --k-bg: #ffffff;
    --k-surface: #f4f5f7;
    --k-border: #dfe1e6;
    --k-text: #172b4d;
    --k-text-muted: #6b778c;
    --k-font: 'Be Vietnam Pro', sans-serif;
}

.page-knowledge {
    font-family: var(--k-font);
    color: var(--k-text);
    background: var(--k-bg);
    overflow-x: hidden;
}

.k-container {
    max-width: 1320px;
    /* Wider container to prevent wrapping issues */
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- Immersive Hero --- */
.k-hero-new {
    position: relative;
    background-color: #0045b5;
    background-image:
        radial-gradient(circle at 10% 10%, rgba(0, 184, 217, 0.4) 0%, transparent 60%),
        radial-gradient(circle at 90% 90%, rgba(7, 71, 166, 0.6) 0%, transparent 60%);
    padding: 80px 0;
    color: #fff;
    overflow: hidden;
}

.k-hero-new::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 70%;
    height: 120%;
    background: radial-gradient(circle, rgba(0, 82, 204, 0.3) 0%, transparent 70%);
    filter: blur(100px);
    z-index: 1;
}

.k-hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    /* Adjusted ratio */
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.k-hero-content {
    max-width: 680px;
    /* Increased max-width to prevent word "sẻ" from dropping */
}

.k-hero-eyebrow {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    backdrop-filter: blur(8px);
}

.k-hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 2rem;
    letter-spacing: -0.04em;
    white-space: nowrap;
    /* Force one line for important headings on desktop if possible */
}

@media (max-width: 1200px) {
    .k-hero-content h1 {
        white-space: normal;
    }
}

.k-hero-content p {
    font-size: 1.25rem;
    opacity: 0.85;
    line-height: 1.6;
    margin-bottom: 3rem;
}

.k-hero-btns {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 4rem;
}

.k-btn {
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.k-btn-primary {
    background: #fff;
    color: var(--k-primary);
}

.k-btn-outline {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    backdrop-filter: blur(5px);
}

/* --- Hero App Grid (Self-adjusting) --- */
.k-hero-apps {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    /* Better adaptive grid */
    gap: 1.25rem;
}

.k-app-box {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 1.5rem;
    padding: 1.75rem;
    backdrop-filter: blur(15px);
    transition: all 0.4s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.k-app-box:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
}

.k-app-box .icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.25rem;
}

.k-app-box h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.5rem;
}

.k-app-box p {
    font-size: 0.85rem;
    opacity: 0.7;
    line-height: 1.5;
    margin: 0;
}

/* --- Stats Row --- */
.k-hero-stats {
    display: flex;
    gap: 3rem;
}

.k-stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.k-stat-item .val {
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(to bottom, #fff, #cbd5e1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.k-stat-item .label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.6;
    line-height: 1.2;
}

/* --- Content Sections --- */
.k-section {
    padding: 50px 0;
}

.k-section-title {
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.k-section-title h2 {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--k-text);
}

/* --- Featured Grid --- */
.k-featured-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 20px;
}

.k-featured-big {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 600px;
    display: block;
    text-decoration: none;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

.k-featured-big .thumb {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.k-featured-big:hover .thumb {
    transform: scale(1.05);
}

.k-featured-big .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10rem 4rem 4rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), transparent);
    color: #fff;
}

.k-featured-big h3 {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.k-featured-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    justify-content: space-between;
}

.k-small-card {
    display: flex;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
    align-items: center;
}

.k-small-card:hover {
    transform: translateX(10px);
}

.k-small-card .thumb {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    background-size: cover;
    flex-shrink: 0;
}

.k-small-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.25rem;
    color: var(--k-text);
}

/* --- Blog Card (Ported from Home) --- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.blog-card {
    border-radius: 12px;
    padding: 0 0 20px;
    background: var(--k-bg);
    border: 1px solid var(--k-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    transition: all 0.4s ease;
    overflow: hidden;
}

.info-blog {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.blog-card:hover {
    border-color: var(--k-primary);
}

.blog-card__image {
    width: 100%;
    aspect-ratio: 16/9;
    background-size: cover;
    background-position: center;
    border-radius: 0 0 0 0;
}

.blog-card__category {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--k-primary);
    margin: 0 1.2rem;
}

.blog-card h3 {
    margin: 0 1.2rem;
    font-size: 1.1rem;
    line-height: 1.4;
    font-weight: 800;
    min-height: 3em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card h3 a {
    color: var(--k-text);
    text-decoration: none;
    transition: color 0.3s;
}

.blog-card h3 a:hover {
    color: var(--k-primary);
}

.blog-card__summary {
    margin: 0 1.2rem;
    color: var(--k-text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    height: 2.8em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.blog-card__meta {
    display: flex;
    gap: 1rem;
    color: var(--k-text-muted);
    font-size: 0.8rem;
    margin: 0 1.2rem;
    font-weight: 600;
}

.blog-card__link {
    margin: 0 1.2rem;
    font-weight: 700;
    color: var(--k-primary);
    text-decoration: none;
    font-size: 0.85rem;
}

.k-cat-section {
    position: relative;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}


.k-content-inner.entry-content {
    background: #fff;
    border: 1px solid #ededed;
    padding: 30px;
    border-radius: 12px;
}

.k-content-inner.entry-content h2 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 20px;
}

.k-content-inner.entry-content h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
}

.k-content-inner.entry-content ul li {
    list-style: disc;
    margin-bottom: 12px;
}

.k-content-inner.entry-content ol li {
    margin-bottom: 12px;
}

@media (max-width: 1399px) {
    .k-hero-grid {
        gap: 15px;
    }

    .k-hero-apps {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    a.k-app-box {
        padding: 15px;
        border-radius: 12px;
    }
}

@media (max-width: 1199px) {
    .k-hero-apps {
        grid-template-columns: repeat(1, 1fr);
        gap: 5px;
    }

    .k-app-box .icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
        margin-bottom: 5px;
    }

    a.k-app-box {
        padding: 10px;
    }

    .k-app-box h3 {
        font-size: 15px;
        margin-bottom: 3px;
    }

    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}

@media (max-width: 991px) {
    .k-hero-new {
        padding: 30px 0;
    }

    .k-hero-eyebrow {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .k-hero-title {
        font-size: 32px;
        margin-bottom: 10px;
    }

    .k-hero-content p {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .k-hero-btns {
        gap: 10px;
        margin-bottom: 10px;
    }

    .k-hero-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .k-hero-apps {
        grid-template-columns: repeat(2, 1fr);
    }

    .k-featured-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .k-featured-big {
        height: 400px;
    }

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .k-hero-eyebrow {
        font-size: 12px;
        text-transform: inherit;
    }

    .k-hero-content h1 {
        margin-bottom: 15px;
    }

    .k-btn {
        padding: 10px 20px;
    }

    .k-hero-btns {
        display: flex;
        justify-content: center;
    }

    .k-hero-stats {
        gap: 10px;
        display: flex;
        justify-content: space-between;
    }

    .k-stat-item .val {
        font-size: 20px;
    }

    .k-featured-big h3 {
        font-size: 18px;
        font-weight: 800;
        line-height: 23px;
    }

    .k-featured-big .overlay {
        padding: 20px;
    }

    .k-featured-big {
        height: 250px;
    }

    .meta {
        font-size: 13px;
    }

    .blog-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .k-cat-section:last-child {
        padding-bottom: 0;
    }

    section.k-section.k-reviews {
        padding-top: 0 !important;
    }

    section.k-section.k-page-content {
        padding-top: 0;
    }

    .k-content-inner.entry-content {
        padding: 15px;
    }

    .k-content-inner.entry-content h2 {
        font-size: 20px;
    }

    .k-content-inner.entry-content h3 {
        font-size: 18px;
    }
}