.team-page {
    --team-blue: #1559b7;
    --team-navy: #16386d;
    --team-sky: #eaf4ff;
    --team-ink: #20314f;
    --team-muted: #6d7890;
    color: var(--team-ink);
    overflow: hidden;
    font-family: "Be Vietnam Pro", sans-serif;
}

.team-container {
    width: min(1160px, 90%);
    margin: 0 auto;
}

.section-space {
    padding: 88px 0;
}

.team-hero {
    position: relative;
    padding: 76px 0 70px;
    background:
        radial-gradient(circle at 85% 18%, rgba(177, 216, 255, .55), transparent 26%),
        linear-gradient(135deg, #f7fbff 0%, #eaf4ff 52%, #f8fbff 100%);
}

.team-hero::before {
    content: "";
    position: absolute;
    width: 250px;
    height: 250px;
    left: -125px;
    bottom: -110px;
    border-radius: 50%;
    background: rgba(126, 183, 255, .12);
}

.team-hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.12fr .88fr;
    gap: 45px;
    align-items: center;
}

.team-eyebrow,
.team-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--team-blue);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.4px;
}

.team-eyebrow {
    padding: 10px 15px;
    border: 1px solid #d8e8ff;
    border-radius: 999px;
    background: rgba(255, 255, 255, .82);
}

.team-hero h1 {
    margin: 22px 0 12px;
    color: var(--team-navy);
    font-size: clamp(36px, 5vw, 60px);
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 1.12;
}

.team-hero h1 span,
.team-section-heading h2 span,
.kpi-intro h2 span {
    color: var(--team-blue);
}

.team-hero-lead {
    margin: 0 0 12px;
    color: #3476ca;
    font-size: 22px;
    font-weight: 800;
}

.team-hero-desc {
    max-width: 600px;
    color: #596982;
    font-size: 15px;
    line-height: 1.9;
}

.team-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.team-btn {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 0 21px;
    border-radius: 14px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    transition: transform .2s ease, box-shadow .2s ease;
}

.team-btn:hover {
    transform: translateY(-3px);
}

.team-btn-primary {
    color: #fff;
    background: linear-gradient(135deg, #2677df, #1559b7);
    box-shadow: 0 10px 24px rgba(21, 89, 183, .2);
}

.team-btn-secondary {
    color: var(--team-blue);
    border: 1px solid #c8def9;
    background: #fff;
}

.team-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 17px;
    margin-top: 25px;
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
}

.team-hero-art {
    position: relative;
    min-height: 390px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-mascot-frame {
    position: relative;
    z-index: 2;
    width: min(310px, 75%);
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.9);
    border-radius: 42% 58% 52% 48% / 48% 42% 58% 52%;
    background: linear-gradient(145deg, #fff, #dcecff);
    box-shadow: 0 25px 65px rgba(45, 111, 192, .16);
    animation: mascotFloat 5s ease-in-out infinite;
}

.team-mascot-frame img {
    width: 78%;
    max-height: 290px;
    object-fit: contain;
}

.hero-orbit {
    position: absolute;
    border: 1px dashed #a6c9f6;
    border-radius: 50%;
}

.orbit-one {
    width: 370px;
    height: 370px;
}

.orbit-two {
    width: 430px;
    height: 290px;
    transform: rotate(-28deg);
}

.hero-sticker {
    position: absolute;
    z-index: 3;
    top: 22px;
    right: 8px;
    padding: 14px 18px;
    border-radius: 16px;
    color: #fff;
    background: #1d65c5;
    box-shadow: 0 12px 28px rgba(21, 89, 183, .2);
    font-size: 10px;
    line-height: 1.5;
    letter-spacing: 1px;
    transform: rotate(7deg);
}

.hero-sticker b {
    font-size: 21px;
}

.hero-floating-card {
    position: absolute;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    border: 1px solid rgba(226, 237, 252, .95);
    border-radius: 16px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 14px 35px rgba(33, 73, 126, .12);
}

.hero-floating-card > span {
    font-size: 25px;
}

.hero-floating-card b,
.hero-floating-card small {
    display: block;
}

.hero-floating-card b {
    color: var(--team-navy);
    font-size: 12px;
}

.hero-floating-card small {
    margin-top: 3px;
    color: #7b879b;
    font-size: 10px;
}

.floating-card-one {
    left: -4px;
    bottom: 52px;
}

.floating-card-two {
    right: -10px;
    bottom: 5px;
}

.team-section-heading {
    max-width: 730px;
    margin: 0 auto 42px;
    text-align: center;
}

.team-section-heading h2,
.kpi-intro h2 {
    margin: 14px 0 14px;
    color: var(--team-navy);
    font-size: clamp(28px, 3.7vw, 42px);
    font-weight: 900;
    line-height: 1.25;
    letter-spacing: -1px;
}

.team-section-heading > p,
.kpi-intro > p {
    margin: 0;
    color: var(--team-muted);
    font-size: 14px;
    line-height: 1.85;
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.overview-card {
    padding: 28px 25px;
    border: 1px solid #e9eff8;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 12px 35px rgba(27, 66, 117, .045);
    transition: transform .2s ease, box-shadow .2s ease;
}

.overview-card:hover,
.member-card:hover,
.pillar-card:hover,
.workflow-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 40px rgba(27, 66, 117, .09);
}

.overview-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 17px;
    font-size: 25px;
}

.icon-blue { background: #e6f1ff; }
.icon-pink { background: #ffedf3; }
.icon-yellow { background: #fff5d9; }

.overview-card h3 {
    margin: 20px 0 10px;
    color: var(--team-navy);
    font-size: 18px;
}

.overview-card p,
.pillar-card p,
.member-card p,
.workflow-step p {
    margin: 0;
    color: var(--team-muted);
    font-size: 13px;
    line-height: 1.8;
}

.team-project {
    background: #f7faff;
}

.project-heading-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 34px;
}

.align-left {
    margin: 0;
    text-align: left;
}

.project-stamp {
    flex: 0 0 auto;
    padding: 17px 20px;
    border: 1px solid #d7e7fc;
    border-radius: 17px;
    color: #3476ca;
    background: #fff;
    font-size: 10px;
    line-height: 1.7;
    letter-spacing: 1.4px;
    text-align: center;
    transform: rotate(4deg);
}

.project-stamp b {
    color: var(--team-navy);
    font-size: 13px;
}

.project-main-card {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 45px;
    align-items: center;
    padding: 35px;
    border: 1px solid #e3edfb;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 16px 45px rgba(31, 84, 151, .06);
}

.project-product-visual {
    position: relative;
    min-height: 300px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 23px;
    background: linear-gradient(145deg, #e8f4ff, #f7fbff);
}

.product-visual-circle {
    position: absolute;
    border-radius: 50%;
}

.circle-back {
    width: 240px;
    height: 240px;
    background: #d2e7ff;
}

.circle-front {
    width: 175px;
    height: 175px;
    border: 1px solid rgba(255,255,255,.9);
    background: linear-gradient(135deg, #fff, #dcecff);
    box-shadow: 0 15px 35px rgba(44, 104, 180, .12);
}

.product-emoji {
    position: relative;
    z-index: 1;
    font-size: 94px;
    filter: drop-shadow(0 10px 10px rgba(26, 89, 165, .13));
}

.product-label {
    position: absolute;
    z-index: 2;
    bottom: 18px;
    padding: 8px 12px;
    border-radius: 999px;
    color: #2365b5;
    background: #fff;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.3px;
}

.project-pill {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 999px;
    color: #2268bd;
    background: #eaf4ff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .8px;
}

.project-main-copy h3 {
    margin: 16px 0 9px;
    color: var(--team-navy);
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 900;
}

.project-main-copy p {
    color: var(--team-muted);
    font-size: 13px;
    line-height: 1.9;
}

.project-main-copy .project-highlight {
    color: #286bc0;
    font-size: 15px;
    font-weight: 700;
}

.project-product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 20px 0;
}

.project-product-tags span {
    padding: 9px 12px;
    border: 1px solid #e2ecf9;
    border-radius: 10px;
    color: #4e607a;
    background: #fbfdff;
    font-size: 11px;
    font-weight: 700;
}

.team-text-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--team-blue);
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
}


/* Giới hạn chiều rộng và tạo khoảng cách hai bên */
.project-pillars {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 1160px;
    margin: 24px auto 0;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Đảm bảo thẻ không tràn khỏi cột */
.pillar-card {
    position: relative;
    min-width: 0;
    box-sizing: border-box;
    padding: 24px;
    border: 1px solid #e7eef8;
    border-radius: 22px;
    background: #fff;
    overflow-wrap: break-word;
}

/* Tablet */
@media (max-width: 1000px) {
    .project-pillars {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 0 16px;
    }
}

/* Điện thoại */
@media (max-width: 600px) {
    .project-pillars {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 0 12px;
    }

    .pillar-card {
        padding: 20px;
    }
}


.pillar-number {
    position: absolute;
    top: 18px;
    right: 17px;
    color: #c0d4ef;
    font-size: 12px;
    font-weight: 900;
}

.pillar-emoji {
    margin-bottom: 13px;
    font-size: 27px;
}

.pillar-card h3 {
    margin: 0 0 9px;
    color: var(--team-navy);
    font-size: 14px;
}

.team-kpi-section {
    padding: 68px 0;
    color: #fff;
    background: linear-gradient(120deg, #154e9e, #1d70d1);
}

.kpi-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 25px;
    align-items: center;
}

.kpi-intro .team-kicker {
    color: #bcdcff;
}

.kpi-intro h2 {
    color: #fff;
    font-size: 31px;
}

.kpi-intro h2 span {
    color: #cbe5ff;
}

.kpi-intro > p {
    color: #d7e8ff;
    font-size: 12px;
}

.kpi-item {
    min-height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 18px 12px;
    border: 1px solid rgba(255,255,255,.19);
    border-radius: 20px;
    background: rgba(255,255,255,.09);
    text-align: center;
}

.kpi-emoji {
    margin-bottom: 8px;
    font-size: 25px;
}

.kpi-item strong {
    color: #fff;
    font-size: clamp(24px, 3vw, 33px);
    font-weight: 900;
}

.kpi-item > span:last-child {
    margin-top: 7px;
    color: #e0eeff;
    font-size: 11px;
    line-height: 1.6;
}


/* 5 thành viên trên một hàng */
.members-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    align-items: stretch;
}

.member-card {
    padding: 25px 18px;
    border: 1px solid #e7eef8;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 12px 35px rgba(27, 66, 117, .04);
    text-align: center;
    transition: transform .2s ease, box-shadow .2s ease;
}

.member-avatar {
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    margin: 0 auto 17px;
    border-radius: 25px;
    font-size: 34px;
}

.avatar-blue { background: #e5f1ff; }
.avatar-pink { background: #ffedf3; }
.avatar-yellow { background: #fff4d7; }
.avatar-green { background: #e3f8ef; }
.avatar-purple { background: #efebff; }

.member-role {
    display: block;
    min-height: 30px;
    color: #3476ca;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .7px;
    line-height: 1.5;
}

.member-card h3 {
    margin: 9px 0 10px;
    color: var(--team-navy);
    font-size: 15px;
    overflow-wrap: anywhere;
}

.member-card p {
    font-size: 11px;
}

.member-note {
    margin: 20px 0 0;
    color: #8792a5;
    font-size: 11px;
    text-align: center;
}

.team-workflow {
    background: #f7faff;
}

.workflow-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.workflow-step {
    padding: 23px 20px;
    border: 1px solid #e3edfb;
    border-radius: 20px;
    background: #fff;
    transition: transform .2s ease, box-shadow .2s ease;
}

.workflow-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 19px;
}

.workflow-top span {
    color: #8ab5ea;
    font-size: 13px;
    font-weight: 900;
}

.workflow-top div {
    width: 45px;
    height: 45px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: #eaf4ff;
    font-size: 22px;
}

.workflow-step h3 {
    margin: 0 0 10px;
    color: var(--team-navy);
    font-size: 15px;
}

.workflow-step p {
    font-size: 12px;
}

.workflow-note {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin-top: 22px;
    padding: 19px 22px;
    border: 1px solid #d9e9fc;
    border-radius: 17px;
    background: #edf6ff;
}

.workflow-note > span {
    font-size: 25px;
}

.workflow-note p {
    margin: 0;
    color: #586b86;
    font-size: 12px;
    line-height: 1.8;
}

.workflow-note strong {
    color: var(--team-navy);
}

.team-cta {
    padding: 52px 0;
    background: linear-gradient(120deg, #e5f2ff, #f4f9ff);
}

.team-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.team-cta .team-kicker {
    font-size: 10px;
}

.team-cta h2 {
    margin: 12px 0 10px;
    color: var(--team-navy);
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 900;
}

.team-cta p {
    max-width: 680px;
    margin: 0;
    color: #62728a;
    font-size: 13px;
    line-height: 1.8;
}

.team-btn-light {
    flex: 0 0 auto;
    color: #fff;
    background: var(--team-blue);
    box-shadow: 0 10px 24px rgba(21, 89, 183, .16);
}

@keyframes mascotFloat {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-9px) rotate(2deg); }
}

/* Responsive */
@media (max-width: 1000px) {
    .team-hero-grid { grid-template-columns: 1fr .8fr; gap: 25px; }
    .member-grid { grid-template-columns: repeat(3, 1fr); }
    .project-pillars { grid-template-columns: repeat(2, 1fr); }
    .kpi-grid { grid-template-columns: repeat(3, 1fr); }
    .kpi-intro { grid-column: 1 / -1; text-align: center; }
    .kpi-intro h2 br { display: none; }
}

@media (max-width: 760px) {
    .section-space { padding: 62px 0; }
    .team-hero { padding: 55px 0 45px; }
    .team-hero-grid { grid-template-columns: 1fr; }
    .team-hero-copy { text-align: center; }
    .team-hero-desc { margin-left: auto; margin-right: auto; }
    .team-hero-actions, .team-hero-tags { justify-content: center; }
    .team-hero-art { min-height: 340px; }
    .orbit-one { width: 310px; height: 310px; }
    .orbit-two { width: 350px; height: 250px; }
    .team-mascot-frame { width: 250px; }
    .hero-sticker { right: 6%; top: 5px; }
    .floating-card-one { left: 0; bottom: 30px; }
    .floating-card-two { right: 0; bottom: -5px; }
    .overview-grid { grid-template-columns: 1fr; }
    .project-heading-row { align-items: flex-start; }
    .project-stamp { display: none; }
    .project-main-card { grid-template-columns: 1fr; gap: 25px; padding: 20px; }
    .project-product-visual { min-height: 245px; }
    .project-pillars { grid-template-columns: repeat(2, 1fr); }
    .kpi-grid { grid-template-columns: 1fr; }
    .kpi-intro { grid-column: auto; }
    .kpi-item { min-height: 125px; }
    .member-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .workflow-grid { grid-template-columns: repeat(2, 1fr); }
    .team-cta-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 460px) {
    .team-container { width: min(100% - 30px, 1160px); }
    .team-hero h1 { font-size: 36px; letter-spacing: -1px; }
    .team-hero-lead { font-size: 19px; }
    .team-hero-tags { gap: 10px; font-size: 10px; }
    .hero-floating-card { padding: 9px 11px; }
    .hero-floating-card > span { font-size: 20px; }
    .hero-floating-card b { font-size: 10px; }
    .hero-floating-card small { font-size: 9px; }
    .team-section-heading h2 { font-size: 29px; }
    .project-pillars, .workflow-grid { grid-template-columns: 1fr; }
    .member-grid { grid-template-columns: 1fr; }
    .member-card { padding: 23px; }
    .team-btn { width: 100%; }
}


.project-product-visual {
    position: relative;
    width: 100%;
    height: 420px;
    overflow: hidden;
    border-radius: 24px;
    background: #eaf4ff;
}

.project-product-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    max-width: 100%;
    filter: none;
}

.project-product-visual .product-visual-circle {
    display: none;
}
 /* ADD ẢNH THÀNH VIÊN VÀO PHẦN GIỚI THIỆU*/
 .member-photo {
    display: block;
    width: 100px;
    height: 100px;
    margin: 0 auto 17px;
    border-radius: 24px;
    object-fit: cover;
    object-position: center;
    background: #fff0f5;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 15px rgba(22, 56, 109, 0.08);
}
 /* =====================================================
   FOOTER PENTAFLOSS
========================================= */

.site-footer {
    width: 100%;
    background: #ddf8f6;
    color: #111;
}


/* =========================================
   KHỐI FOOTER CHÍNH
========================================= */

.footer-inner {
    width: 90%;
    max-width: 1180px;

    min-height: 215px;

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        1.15fr
        1fr
        1fr
        1.1fr
        1.25fr;

    align-items: center;

    column-gap: 35px;
}


/* =========================================
   MASCOT
========================================= */

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.footer-brand img {
    width: 145px;
    height: 145px;

    object-fit: contain;

    display: block;
}


/* =========================================
   MENU
========================================= */

.footer-menu {
    display: flex;
    flex-direction: column;

    justify-content: center;

    gap: 20px;
}

.footer-menu a {
    width: fit-content;

    color: #111;

    text-decoration: none;

    font-family: "Be Vietnam Pro", sans-serif;

    font-size: 17px;

    font-weight: 800;

    line-height: 1.2;

    white-space: nowrap;

    transition: .2s;
}

.footer-menu a:hover {
    color: #0757b8;
}


/* =========================================
   NÚT MUA NGAY
========================================= */

.footer-menu .buy-button {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 125px;

    padding: 9px 15px;

    border-radius: 25px;

    background: #0757b8;

    color: white;

    font-size: 14px;

    font-weight: 800;

    box-shadow: none;
}

.footer-menu .buy-button:hover {
    background: #0b3478;

    color: white;

    transform: translateY(-2px);
}


/* =========================================
   SOCIAL
========================================= */

.footer-social {
    align-self: center;
}

.footer-social h3 {
    margin: 0 0 16px;

    color: #111;

    font-family: "Be Vietnam Pro", sans-serif;

    font-size: 15px;

    font-weight: 700;

    line-height: 1.3;

    white-space: nowrap;
}


/* =========================================
   ICON SOCIAL
========================================= */

.social-icons {
    display: flex;

    align-items: center;

    gap: 12px;
}

.social-icons a {
    width: 42px;
    height: 42px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #0757b8;

    transition: .2s;
}

.social-icons a:hover {
    background: #0b3478;

    transform: translateY(-2px);
}

.social-icons svg {
    width: 20px;
    height: 20px;

    fill: white;

    stroke: white;

    stroke-width: 1.5;

    stroke-linecap: round;

    stroke-linejoin: round;
}


/* =========================================
   COPYRIGHT
========================================= */

.footer-bottom {
    width: 90%;
    max-width: 1180px;

    margin: 0 auto;

    border-top: 1px solid rgba(11, 52, 120, .14);

    padding: 20px 0 24px;
}

.footer-bottom p {
    margin: 0;

    color: #173d76;

    font-family: "Be Vietnam Pro", sans-serif;

    font-size: 12px;

    font-weight: 500;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 900px) {

    .footer-inner {
        grid-template-columns:
            1fr 1fr 1fr;

        row-gap: 30px;

        padding: 30px 0;
    }

    .footer-brand {
        grid-row: span 2;
    }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 600px) {

    .footer-inner {
        width: 88%;

        grid-template-columns: 1fr 1fr;

        gap: 25px 20px;

        padding: 30px 0;
    }

    .footer-brand {
        grid-column: 1 / -1;

        justify-content: center;
    }

    .footer-brand img {
        width: 120px;
        height: 120px;
    }

    .footer-menu a {
        font-size: 14px;
    }

    .footer-social {
        grid-column: 1 / -1;
    }

    .footer-social h3 {
        font-size: 13px;
    }

    .footer-bottom {
        width: 88%;
    }

}
