/* ============================================================
 * FDI Page (tpl-fdi.php)
 * Palette: #001F3C (navy), #07345D (deep navy), #F56C6C (red), #F6F3F2 (cream), #FBF9F8 (bg)
 * ============================================================ */

/* ---------- 1. Banner ---------- */
.fdi-banner {
    background: #fff;
    padding: 96px 0 80px;
}
.fdi-banner__inner {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 64px;
    align-items: center;
}
.fdi-banner__media { position: relative; }
.fdi-banner__image-card {
    transform: rotate(1deg);
    transform-origin: top left;
    background: #fff;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,.25);
    border-radius: 8px;
    overflow: hidden;
}
.fdi-banner__image-card img {
    width: 100%;
    height: auto;
    display: block;
    transform: rotate(-1deg);
    transform-origin: top left;
}
.fdi-banner__experience {
    position: absolute;
    left: -20px;
    bottom: 40px;
    padding: 24px;
    background: #fff;
    border-left: 4px solid #F56C6C;
    border-radius: 4px;
    box-shadow: 0 8px 10px -6px rgba(0,0,0,.10), 0 20px 25px -5px rgba(0,0,0,.10);
    min-width: 200px;
}
.fdi-banner__experience-num {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #001F3C;
    line-height: 1;
    margin-bottom: 6px;
}
.fdi-banner__experience-label {
    display: block;
    font-size: 12px;
    color: #43474E;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    line-height: 1.3;
}
.fdi-banner__tag {
    display: inline-block;
    padding: 4px 12px;
    margin-bottom: 24px;
    background: #F56C6C;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 2px;
}
.fdi-banner__title {
    font-size: 56px;
    line-height: 1.1;
    font-weight: 800;
    color: #001F3C;
    margin: 0 0 20px;
}
.fdi-banner__desc {
    font-size: 18px;
    line-height: 1.62;
    color: #43474E;
    margin: 0 0 28px;
}
.fdi-banner__cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.fdi-banner__btn {
    display: inline-block;
    padding: 16px 40px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: transform 0.15s ease;
}
.fdi-banner__btn:hover { transform: translateY(-2px); text-decoration: none; }
.fdi-banner__btn--primary {
    background: linear-gradient(165deg, #F56C6C 0%, #D64A4A 100%);
    color: #fff;
}
.fdi-banner__btn--secondary {
    background: #F6F3F2;
    color: #001F3C;
    border: 1px solid rgba(195,198,208,.5);
}

/* ---------- 2. Challenge ---------- */
.fdi-challenge {
    padding: 96px 0;
    background: #F6F3F2;
}
.fdi-challenge .container {
    display: flex;
    flex-direction: column;
    gap: 64px;
}
.fdi-challenge-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}
.fdi-challenge-title {
    margin: 0;
    font-size: 30px;
    line-height: 36px;
    font-weight: 800;
    color: #001F3C;
}
.fdi-challenge-divider {
    display: block;
    width: 80px;
    height: 4px;
    background: #F56C6C;
    border-radius: 12px;
}
.fdi-challenge-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.fdi-challenge-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}
.fdi-challenge-item__icon {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 20px;
}
.fdi-challenge-item__icon svg {
    display: block;
}
.fdi-challenge-item__title {
    margin: 0;
    font-size: 20px;
    line-height: 28px;
    font-weight: 700;
    color: #001F3C;
}
.fdi-challenge-item__desc {
    margin: 0;
    font-size: 16px;
    line-height: 26px;
    font-weight: 400;
    color: #43474E;
}

/* ---------- 3. Services ---------- */
.fdi-services {
    padding: 96px 0;
    background: #fff;
}
.fdi-services .container {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 64px;
}
.fdi-services-header {
    width: 100%;
    text-align: center;
    margin-bottom: 0;
}
.fdi-services-grid {
    width: 100%;
}
.fdi-services-header h2 {
    font-size: 36px;
    font-weight: 800;
    color: #001F3C;
    line-height: 1.1;
    margin: 0 0 16px;
}
.fdi-services-subtitle {
    font-size: 16px;
    line-height: 1.5;
    color: #43474E;
    max-width: 760px;
    margin: 0 auto;
}
.fdi-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.fdi-services-card {
    display: flex;
    flex-direction: column;
    background: #F6F3F2;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0,0,0,.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.fdi-services-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(11,31,58,.10);
}
.fdi-services-card__media {
    height: 192px;
    overflow: hidden;
}
.fdi-services-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.fdi-services-card__body {
    padding: 32px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.fdi-services-card__title {
    font-size: 20px;
    font-weight: 700;
    color: #001F3C;
    line-height: 1.4;
    margin: 0 0 16px;
}
.fdi-services-card__list {
    margin-bottom: 24px;
    flex: 1;
}
.fdi-services-card__list p {
    font-size: 14px;
    line-height: 1.625;
    color: #43474E;
    margin: 0 0 4px;
}
.fdi-services-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #F56C6C;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    text-decoration: none;
    transition: gap 0.15s ease;
}
.fdi-services-card__cta:hover {
    color: #D64A4A;
    text-decoration: none;
    gap: 12px;
}
.fdi-services-card__cta svg { transition: transform 0.15s ease; }
.fdi-services-empty {
    grid-column: 1/-1;
    text-align: center;
    color: #a0aec0;
}

/* ---------- 4. Content (Strategic partner) ---------- */
.fdi-content {
    padding: 80px 0;
    background: #F6F3F2;
}
.fdi-content__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.fdi-content__media img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}
.fdi-content__title {
    font-size: 36px;
    font-weight: 900;
    color: #001F3C;
    line-height: 1.25;
    margin: 0 0 24px;
}
.fdi-content__desc {
    font-size: 18px;
    line-height: 1.625;
    color: #43474E;
    margin: 0 0 24px;
}
.fdi-content__points {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.fdi-content__points li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.fdi-content__points-icon {
    flex-shrink: 0;
    padding-top: 2px;
}
.fdi-content__points-text {
    font-size: 16px;
    line-height: 1.5;
    color: #1B1C1C;
    font-weight: 500;
}

/* ---------- 5. Contact Banner ---------- */
.fdi-contact-banner {
    padding: 64px 32px;
    background: linear-gradient(90deg, rgba(7,52,93,.80) 0%, #001F3C 100%);
    border-top: 1px solid rgba(195,198,208,.10);
    border-bottom: 1px solid rgba(195,198,208,.10);
}
.fdi-contact-banner__container {
    max-width: 1216px;
    margin: 0 auto;
    text-align: center;
}
.fdi-contact-banner__title {
    color: #fff;
    font-size: 36px;
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 32px;
}
.fdi-contact-banner__info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}
.fdi-contact-banner__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    transition: opacity 0.15s ease;
}
.fdi-contact-banner__item:hover { color: #fff; opacity: 0.85; text-decoration: none; }
.fdi-contact-banner__zalo-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #0068FF;
    color: #fff;
    border-radius: 8px;
    font-size: 10px;
    font-style: italic;
    font-weight: 900;
}
.fdi-contact-banner__cta {
    display: inline-block;
    padding: 16px 48px;
    background: #F56C6C;
    color: #fff;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.15s ease, background 0.15s ease;
}
.fdi-contact-banner__cta:hover {
    background: #D64A4A;
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
}

/* ---------- 6. Why Us ---------- */
.fdi-why {
    padding: 80px 0;
    background: #F6F3F2;
}
.fdi-why__heading {
    font-size: 30px;
    font-weight: 800;
    color: #001F3C;
    text-align: center;
    margin: 0 0 48px;
}
.fdi-why__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.fdi-why__card {
    padding: 32px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid rgba(195,198,208,.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.fdi-why__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(11,31,58,.08);
}
.fdi-why__icon {
    display: inline-flex;
    margin-bottom: 12px;
}
.fdi-why__title {
    font-size: 16px;
    font-weight: 700;
    color: #001F3C;
    line-height: 1.5;
    margin: 0 0 8px;
}
.fdi-why__desc {
    font-size: 13px;
    line-height: 1.4;
    color: #43474E;
    margin: 0;
}

/* ---------- 7. Process ---------- */
section.fdi-process {
    padding: 90px 0 96px;
    background: #fff;
    display: block !important;
}
section.fdi-process > .container {
    display: block !important;
    flex-direction: unset !important;
    flex-wrap: unset !important;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}
section.fdi-process > .container > .fdi-process__tabs,
section.fdi-process > .container > .fdi-process__panels {
    display: block;
    width: 100%;
    float: none;
    flex: none;
}
section.fdi-process > .container > .fdi-process__tabs {
    display: flex;
}
section.fdi-process > .container > .fdi-process__panels > .fdi-process__panel {
    width: 100%;
}
.fdi-process__tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    padding: 6px;
    background: #fff;
    border: 1px solid rgba(195,198,208,.35);
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(0,0,0,.04);
    margin-bottom: 48px;
}
.fdi-process__tab {
    flex: 1 1 0;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 20px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: #43474E;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    text-align: center;
    cursor: pointer;
    transition: color .2s ease, background .2s ease;
}
.fdi-process__tab:hover {
    color: #8B1C1C;
}
.fdi-process__tab.is-active {
    background: #8B1C1C;
    color: #fff;
}
.fdi-process__tab.is-active:hover {
    color: #fff;
}
.fdi-process__tab-label {
    line-height: 1.3;
}
.fdi-process__panel {
    display: none;
}
.fdi-process__panel.is-active {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 64px;
    align-items: start;
}
.fdi-process__panel-title {
    font-size: 30px;
    font-weight: 900;
    color: #001F3C;
    line-height: 1.25;
    margin: 0;
    position: sticky;
    top: 24px;
}
.fdi-process__steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 32px;
}
.fdi-process__step {
    display: flex;
    align-items: stretch;
    gap: 32px;
}
.fdi-process__step-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 48px;
}
.fdi-process__step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 32px;
    border-radius: 12px;
    border: 2px solid #F56C6C;
    color: #001F3C;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    flex-shrink: 0;
}
.fdi-process__step-line {
    display: block;
    width: 2px;
    flex: 1 1 0;
    background: rgba(195,198,208,.30);
    margin-top: 16px;
}
.fdi-process__step-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-bottom: 32px;
}
.fdi-process__step:last-child .fdi-process__step-content {
    padding-bottom: 0;
}
.fdi-process__step-title {
    font-size: 24px;
    font-weight: 700;
    color: #8B1C1C;
    line-height: 1.33;
    margin: 0;
}
.fdi-process__step-body {
    width: 100%;
}
.fdi-process__step-desc {
    font-size: 18px;
    line-height: 1.625;
    color: #43474E;
    margin: 0;
}
.fdi-process__step-desc p {
    margin: 0 0 8px;
}
.fdi-process__step-desc p:last-child {
    margin-bottom: 0;
}
.fdi-process__step-bullets {
    list-style: disc;
    padding-left: 24px;
    margin: 0 0 8px;
}
.fdi-process__step-bullets:last-child {
    margin-bottom: 0;
}
.fdi-process__step-bullets li {
    margin: 0 0 4px;
}
.fdi-process__step-bullets li:last-child {
    margin-bottom: 0;
}

/* ---------- 8. Cases (uses the Year experience pattern) ---------- */
.fdi-cases {
    padding: 80px 0;
    background: #fff;
}
.fdi-cases__heading {
    font-size: 30px;
    font-weight: 800;
    color: #001F3C;
    line-height: 1.2;
    margin: 0 0 48px;
}
.fdi-cases__carousel.owl-carousel .owl-stage {
    display: flex;
}
.fdi-cases__carousel.owl-carousel .owl-item {
    display: flex;
}
.fdi-cases__item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}
.fdi-cases__media {
    aspect-ratio: 384 / 252;
    overflow: hidden;
    border-radius: 6px;
    margin-bottom: 8px;
}
.fdi-cases__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.fdi-cases__category {
    display: inline-block;
    color: #F56C6C;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.fdi-cases__title {
    font-size: 20px;
    font-weight: 700;
    color: #001F3C;
    line-height: 1.4;
    margin: 0;
}
.fdi-cases__desc {
    font-size: 14px;
    line-height: 1.43;
    color: #43474E;
    margin: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
    .fdi-banner__inner { grid-template-columns: 1fr; gap: 48px; }
    .fdi-banner__title { font-size: 40px; }
    .fdi-services-grid { grid-template-columns: repeat(2, 1fr); }
    .fdi-content__row { grid-template-columns: 1fr; gap: 40px; }
    .fdi-why__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .fdi-banner { padding: 64px 0 48px; }
    .fdi-banner__title { font-size: 32px; }
    .fdi-banner__desc { font-size: 16px; }
    .fdi-banner__experience { left: 16px; bottom: 16px; padding: 16px; }
    .fdi-challenge,
    .fdi-services,
    .fdi-content,
    .fdi-why,
    .fdi-cases { padding: 56px 0; }
    .fdi-process { padding: 56px 0 64px; }
    .fdi-challenge-grid,
    .fdi-services-grid,
    .fdi-why__grid { grid-template-columns: 1fr; }
    .fdi-services-header h2,
    .fdi-content__title,
    .fdi-contact-banner__title { font-size: 28px; }
    .fdi-challenge-title,
    .fdi-why__heading,
    .fdi-cases__heading { font-size: 24px; }
    .fdi-process__step { gap: 16px; }
    .fdi-process__step-marker { width: 40px; }
    .fdi-process__step-num { width: 40px; height: 28px; font-size: 13px; }
    .fdi-process__step-content { padding-bottom: 24px; gap: 12px; }
    .fdi-process__step-title { font-size: 18px; }
    .fdi-process__step-desc { font-size: 15px; }
    .fdi-process__tabs { gap: 2px; padding: 4px; }
    .fdi-process__tab { padding: 10px 8px; font-size: 13px; }
    .fdi-process__panel.is-active { grid-template-columns: 1fr; gap: 32px; }
    .fdi-process__panel-title { font-size: 22px; position: static; }
    .fdi-contact-banner__info { gap: 24px; flex-direction: column; }
}
