/* ==========================================================
   NHẬT NAM TECHNOLOGY
   HIỂU ĐÚNG – CHỌN ĐÚNG
   PART 04B – KNOWLEDGE CSS FINAL
========================================================== */


/* ==========================================================
   01. KNOWLEDGE CONTENT - BASE
========================================================== */

#knowledge-content {
    position: relative;
    background: #ffffff;
    overflow: hidden;
}


/* ==========================================================
   02. INTRODUCTION BOX
========================================================== */

.knowledge-intro-box {
    position: relative;
    padding: 40px 42px;
    background: #f7faf8;
    border: 1px solid #e4ece7;
    border-radius: 18px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.04);
}


.knowledge-eyebrow {
    display: inline-block;
    margin-bottom: 12px;

    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;

    color: #198754;
}


.knowledge-intro-box h2 {
    margin-bottom: 14px;

    font-size: clamp(1.65rem, 2.5vw, 2.25rem);
    font-weight: 700;
    line-height: 1.25;

    color: #1d2a24;
}


.knowledge-intro-box p {
    max-width: 850px;
    margin-bottom: 0;

    font-size: 1rem;
    line-height: 1.8;

    color: #5d6b64;
}


/* ==========================================================
   03. KNOWLEDGE TABS
========================================================== */

.knowledge-tabs {
    display: grid;
    grid-template-columns: repeat(6, 1fr);

    gap: 8px;

    margin: 0 0 28px;
    padding: 8px;

    list-style: none;

    background: #f3f7f5;
    border: 1px solid #e2ebe6;
    border-radius: 16px;
}


.knowledge-tabs .nav-item {
    margin: 0;
}


.knowledge-tabs .nav-link {
    width: 100%;
    min-height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 10px 12px;

    border: 0;
    border-radius: 11px;

    background: transparent;

    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.25;

    color: #53625b;

    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}


.knowledge-tabs .nav-link i {
    font-size: 1rem;
}


.knowledge-tabs .nav-link:hover {
    color: #198754;
    background: #ffffff;
}


.knowledge-tabs .nav-link.active {
    color: #ffffff;
    background: #198754;

    box-shadow:
        0 5px 14px rgba(25, 135, 84, 0.22);
}


.knowledge-tabs .nav-link:focus-visible {
    outline: 3px solid rgba(25, 135, 84, 0.25);
    outline-offset: 2px;
}


/* ==========================================================
   04. TAB CONTENT
========================================================== */

.knowledge-tab-content {
    position: relative;

    padding: 38px;

    background: #ffffff;

    border: 1px solid #e4ebe7;
    border-radius: 18px;

    box-shadow:
        0 10px 32px rgba(0, 0, 0, 0.045);
}


.knowledge-tab-content .tab-pane {
    min-height: 300px;
}


/* ==========================================================
   05. TAB HEADING
========================================================== */

.knowledge-tab-heading {
    display: flex;
    align-items: flex-start;
    gap: 18px;

    margin-bottom: 30px;
}


.knowledge-number {
    flex: 0 0 auto;

    width: 48px;
    height: 48px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: #198754;

    color: #ffffff;

    font-size: 0.9rem;
    font-weight: 700;
}


.knowledge-tab-heading h2 {
    margin: 0 0 6px;

    font-size: clamp(1.45rem, 2.2vw, 1.9rem);
    font-weight: 700;
    line-height: 1.3;

    color: #1d2a24;
}


.knowledge-tab-heading p {
    margin: 0;

    color: #6a776f;

    font-size: 0.96rem;
    line-height: 1.6;
}


/* ==========================================================
   06. GENERAL KNOWLEDGE CARD
========================================================== */

.knowledge-card,
.technology-card,
.solution-card,
.choice-card,
.checklist-card {
    height: 100%;

    padding: 28px;

    background: #ffffff;

    border: 1px solid #e5ece8;
    border-radius: 16px;

    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.035);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}


.knowledge-card:hover,
.technology-card:hover,
.solution-card:hover,
.choice-card:hover,
.checklist-card:hover {
    transform: translateY(-4px);

    border-color: #cfe2d8;

    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.07);
}


/* ==========================================================
   07. KNOWLEDGE CARD
========================================================== */

.knowledge-card-icon {
    width: 48px;
    height: 48px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 18px;

    border-radius: 12px;

    background: #eaf6ef;

    color: #198754;

    font-size: 1.3rem;
}


.knowledge-card h3,
.technology-card h3,
.solution-card h3,
.choice-card h3,
.checklist-card h3 {
    margin-bottom: 12px;

    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.4;

    color: #25322c;
}


.knowledge-card p,
.technology-card p,
.solution-card p,
.choice-card p,
.checklist-card p {
    margin-bottom: 0;

    color: #66736c;

    font-size: 0.94rem;
    line-height: 1.75;
}


/* ==========================================================
   08. SOLUTION CARD
========================================================== */

.solution-icon {
    width: 52px;
    height: 52px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 18px;

    border-radius: 13px;

    background: #eaf6ef;

    color: #198754;

    font-size: 1.35rem;
}


.solution-focus {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;

    margin-top: 20px;
}


.solution-focus span {
    display: inline-flex;
    align-items: center;

    padding: 5px 10px;

    border-radius: 999px;

    background: #f2f7f4;

    color: #4f6258;

    font-size: 0.76rem;
    font-weight: 600;
}


/* ==========================================================
   09. TECHNOLOGY CARD
========================================================== */

.technology-icon {
    width: 52px;
    height: 52px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 18px;

    border-radius: 13px;

    background: #edf7f1;

    color: #198754;

    font-size: 1.35rem;
}


.technology-card ul {
    display: flex;
    flex-direction: column;
    gap: 8px;

    margin: 20px 0 0;
    padding: 0;

    list-style: none;
}


.technology-card li {
    display: flex;
    align-items: flex-start;
    gap: 8px;

    color: #5e6d65;

    font-size: 0.87rem;
    line-height: 1.5;
}


.technology-card li i {
    flex: 0 0 auto;

    margin-top: 2px;

    color: #198754;
}


/* ==========================================================
   10. CHECKLIST CARD
========================================================== */

.checklist-icon {
    width: 52px;
    height: 52px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 18px;

    border-radius: 13px;

    background: #edf7f1;

    color: #198754;

    font-size: 1.35rem;
}


.checklist-card ul {
    display: flex;
    flex-direction: column;
    gap: 9px;

    margin: 18px 0 0;
    padding: 0;

    list-style: none;
}


.checklist-card li {
    position: relative;

    padding-left: 20px;

    color: #5f6d65;

    font-size: 0.88rem;
    line-height: 1.55;
}


.checklist-card li::before {
    content: "";

    position: absolute;
    left: 0;
    top: 0.62em;

    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: #198754;
}


/* ==========================================================
   11. CHOICE CARD
========================================================== */

.choice-card {
    position: relative;

    padding-top: 34px;
}


.choice-step {
    position: absolute;

    top: 22px;
    right: 24px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;

    border-radius: 50%;

    background: #edf7f1;

    color: #198754;

    font-size: 0.75rem;
    font-weight: 700;
}


/* ==========================================================
   12. DOWNLOAD NOTE
========================================================== */

.download-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;

    padding: 18px 20px;

    border: 1px solid #dce9e2;
    border-radius: 12px;

    background: #f7faf8;
}


.download-note i {
    flex: 0 0 auto;

    margin-top: 2px;

    color: #198754;

    font-size: 1.1rem;
}


.download-note p {
    color: #5e6d65;

    font-size: 0.88rem;
    line-height: 1.65;
}


/* ==========================================================
   13. MINI CTA INSIDE KNOWLEDGE CONTENT
========================================================== */

.knowledge-mini-cta {
    padding: 30px 32px;

    border-radius: 16px;

    background:
        linear-gradient(
            135deg,
            #f0f8f3 0%,
            #f8fbf9 100%
        );

    border: 1px solid #dce9e2;
}


.knowledge-mini-cta h2 {
    margin-bottom: 10px;

    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.35;

    color: #25322c;
}


.knowledge-mini-cta p {
    color: #627068;

    font-size: 0.93rem;
    line-height: 1.7;
}


.knowledge-mini-cta .btn {
    min-width: 170px;
}


/* ==========================================================
   14. BUTTONS INSIDE KNOWLEDGE CONTENT
========================================================== */

#knowledge-content .btn-success {
    padding: 10px 20px;

    border-color: #198754;

    font-size: 0.9rem;
    font-weight: 600;

    border-radius: 8px;
}


#knowledge-content .btn-success:hover {
    border-color: #157347;
}


/* ==========================================================
   15. TAB PANE ANIMATION
========================================================== */

.knowledge-tab-content .tab-pane {
    animation:
        knowledgeFadeIn 0.3s ease;
}


@keyframes knowledgeFadeIn {

    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


/* ==========================================================
   16. TABLET
========================================================== */

@media (max-width: 991.98px) {

    .knowledge-tabs {
        grid-template-columns:
            repeat(3, 1fr);
    }


    .knowledge-tab-content {
        padding: 30px;
    }


    .knowledge-intro-box {
        padding: 32px;
    }


    .knowledge-tabs .nav-link {
        min-height: 54px;
    }

}


/* ==========================================================
   17. MOBILE
========================================================== */

@media (max-width: 767.98px) {

    #knowledge-content {
        padding-top: 45px !important;
        padding-bottom: 45px !important;
    }


    .knowledge-intro-box {
        padding: 26px 22px;

        border-radius: 15px;
    }


    .knowledge-intro-box h2 {
        font-size: 1.65rem;
    }


    .knowledge-intro-box p {
        font-size: 0.92rem;
        line-height: 1.7;
    }


    .knowledge-intro-box .btn {
        width: 100%;
        margin-top: 5px;
    }


    .knowledge-tabs {
        grid-template-columns:
            repeat(2, 1fr);

        gap: 6px;

        padding: 6px;

        border-radius: 13px;
    }


    .knowledge-tabs .nav-link {
        min-height: 52px;

        padding: 8px 7px;

        font-size: 0.8rem;
    }


    .knowledge-tabs .nav-link i {
        margin-right: 5px !important;
    }


    .knowledge-tab-content {
        padding: 24px 18px;

        border-radius: 15px;
    }


    .knowledge-tab-heading {
        gap: 13px;

        margin-bottom: 24px;
    }


    .knowledge-number {
        width: 42px;
        height: 42px;

        border-radius: 10px;

        font-size: 0.8rem;
    }


    .knowledge-tab-heading h2 {
        font-size: 1.35rem;
    }


    .knowledge-tab-heading p {
        font-size: 0.87rem;
    }


    .knowledge-card,
    .technology-card,
    .solution-card,
    .choice-card,
    .checklist-card {
        padding: 23px;
    }


    .knowledge-card h3,
    .technology-card h3,
    .solution-card h3,
    .choice-card h3,
    .checklist-card h3 {
        font-size: 1rem;
    }


    .knowledge-card p,
    .technology-card p,
    .solution-card p,
    .choice-card p,
    .checklist-card p {
        font-size: 0.9rem;
        line-height: 1.7;
    }


    .knowledge-mini-cta {
        padding: 24px 22px;
    }


    .knowledge-mini-cta h2 {
        font-size: 1.2rem;
    }


    .knowledge-mini-cta .btn {
        width: 100%;
    }

}


/* ==========================================================
   18. SMALL MOBILE
========================================================== */

@media (max-width: 420px) {

    .knowledge-tabs {
        grid-template-columns:
            1fr 1fr;
    }


    .knowledge-tabs .nav-link {
        min-height: 50px;

        font-size: 0.74rem;
    }


    .knowledge-tabs .nav-link i {
        margin-right: 4px !important;
    }


    .knowledge-intro-box .btn,
    .knowledge-mini-cta .btn {
        width: 100%;
    }


    .knowledge-tab-content {
        padding: 20px 15px;
    }


    .knowledge-tab-heading {
        gap: 10px;
    }


    .knowledge-number {
        width: 38px;
        height: 38px;

        font-size: 0.75rem;
    }

}


/* ==========================================================
   19. ACCESSIBILITY
   REDUCED MOTION
========================================================== */

@media (prefers-reduced-motion: reduce) {

    .knowledge-card,
    .technology-card,
    .solution-card,
    .choice-card,
    .checklist-card,
    .knowledge-tabs .nav-link,
    #knowledge-content .btn-success {
        transition: none;
    }


    .knowledge-tab-content .tab-pane {
        animation: none;
    }

}