
:root {
    --afx-primary: #1d4e89;
    --afx-primary-dark: #16314f;
    --afx-accent: #5f8fbe;
    --afx-accent-soft: #edf4fb;
    --afx-navy-soft: #f4f8fc;
    --afx-text-main: #1b2d42;
    --afx-text-sub: #617285;
    --afx-line: #d9e4ef;
    --afx-white: #ffffff;
    --afx-shadow-sm: 0 12px 28px rgba(22, 49, 79, 0.08);
    --afx-shadow-md: 0 20px 48px rgba(22, 49, 79, 0.14);
    --afx-radius-lg: 22px;
    --afx-radius-md: 16px;
    --afx-radius-pill: 999px;
}

body.afx-page {
    background: #ffffff;
    color: var(--afx-text-main);
}

.banner_area {
    position: relative;
}

.banner_area .banner_inner .banner_content {
    margin-top: 85px;
}

.banner_area .section-head-square {
    width: 200px;
    padding: 3rem 0 3rem 3rem;
}

.banner_area .section-head-square > .head-title,
.banner_area .banner_inner .banner_content h2,
.banner_area .head-title {
    width: 640px;
    font-size: 28px !important;
    line-height: 1.45 !important;
    font-weight: 700;
    letter-spacing: -0.2px;
    margin-bottom: 0;
}

.portfolio_details_area.afx-section {
    position: relative;
    padding: 90px 0 120px;
    background: linear-gradient(180deg, #ffffff 0%, #f7fafe 52%, #ffffff 100%);
    overflow: hidden;
}

.portfolio_details_area.afx-section::before {
    content: "";
    position: absolute;
    top: -140px;
    right: -120px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(95, 143, 190, 0.16) 0%, rgba(95, 143, 190, 0) 72%);
    pointer-events: none;
}

.afx-hero {
    position: relative;
    z-index: 1;
    margin-bottom: 44px;
    text-align: center;
}

.afx-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    margin-bottom: 18px;
    border-radius: var(--afx-radius-pill);
    background: var(--afx-accent-soft);
    color: var(--afx-primary);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.afx-hero-title {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.03em;
    color: var(--afx-primary-dark);
    margin-bottom: 14px;
}

.afx-title-line {
    width: 60px;
    height: 4px;
    border-radius: var(--afx-radius-pill);
    margin: 0 auto 22px;
    background: linear-gradient(90deg, var(--afx-primary-dark), var(--afx-accent));
}

.afx-hero-desc {
    max-width: 920px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.85;
    color: var(--afx-text-sub);
}

.afx-highlight-grid,
.afx-model-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    position: relative;
    z-index: 1;
}

.afx-highlight-grid {
    margin-bottom: 34px;
}

.afx-highlight-card,
.afx-model-card {
    position: relative;
    border-radius: var(--afx-radius-lg);
    border: 1px solid var(--afx-line);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--afx-shadow-sm);
    overflow: hidden;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.afx-highlight-card::before,
.afx-model-card::before,
.afx-spec-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--afx-primary-dark), var(--afx-accent));
}

.afx-highlight-card:hover,
.afx-model-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--afx-shadow-md);
    border-color: rgba(95, 143, 190, 0.35);
}

.afx-highlight-card {
    padding: 30px 28px 28px;
}

.afx-highlight-card h3,
.afx-model-card h3 {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
    color: var(--afx-primary-dark);
}

.afx-highlight-card p,
.afx-model-card p {
    margin: 0;
    font-size: 15px;
    line-height: 1.82;
    color: var(--afx-text-sub);
}

.afx-action-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin: 0 0 58px;
    position: relative;
    z-index: 1;
}

.main_btn.afx-btn,
.main_btn.afx-btn-secondary,
.main_btn.afx-btn-dark {
    min-width: 210px;
    padding: 0 28px;
    line-height: 48px;
    border-radius: var(--afx-radius-pill);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-align: center;
    box-shadow: 0 12px 28px rgba(22, 49, 79, 0.16);
    transition: transform 0.22s ease, box-shadow 0.22s ease, opacity 0.22s ease;
}

.main_btn.afx-btn {
    background: linear-gradient(135deg, var(--afx-primary-dark), var(--afx-primary));
    color: #fff !important;
}

.main_btn.afx-btn-secondary {
    background: linear-gradient(135deg, var(--afx-primary), var(--afx-accent));
    color: #fff !important;
}

.main_btn.afx-btn-dark {
    background: linear-gradient(135deg, #233548, #486987);
    color: #fff !important;
}

.main_btn.afx-btn:hover,
.main_btn.afx-btn-secondary:hover,
.main_btn.afx-btn-dark:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(22, 49, 79, 0.22);
    color: #fff !important;
    text-decoration: none;
    opacity: 0.98;
}

.afx-models {
    position: relative;
    z-index: 1;
    margin-bottom: 54px;
}

.afx-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.afx-section-head-left h2 {
    font-size: 30px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.03em;
    color: var(--afx-primary-dark);
    margin-bottom: 10px;
}

.afx-section-head-left p {
    margin: 0;
    font-size: 15px;
    line-height: 1.8;
    color: var(--afx-text-sub);
}

.afx-section-chip,
.afx-model-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    border-radius: var(--afx-radius-pill);
    font-weight: 700;
}

.afx-section-chip {
    padding: 8px 16px;
    border: 1px solid rgba(95, 143, 190, 0.22);
    background: #fff;
    color: var(--afx-primary);
    font-size: 13px;
}

.afx-model-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 30px 28px 28px;
}

.afx-model-tag {
    align-self: flex-start;
    padding: 7px 14px;
    margin-bottom: 16px;
    background: var(--afx-accent-soft);
    color: var(--afx-primary);
    font-size: 12px;
    letter-spacing: 0.04em;
}

.afx-model-meta {
    list-style: none;
    padding: 0;
    margin: 18px 0 22px;
}

.afx-model-meta li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--afx-text-main);
}

.afx-model-meta li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--afx-accent);
}

.afx-model-card .main_btn {
    align-self: flex-start;
}

.afx-spec-wrap,
.afx-legacy-wrap {
    position: relative;
    z-index: 1;
    margin-top: 18px;
}

.afx-spec-card {
    position: relative;
    border-radius: 24px;
    border: 1px solid var(--afx-line);
    background: #fff;
    box-shadow: var(--afx-shadow-sm);
    overflow: hidden;
}

.afx-spec-head {
    padding: 28px 30px 20px;
    background: linear-gradient(180deg, rgba(95, 143, 190, 0.12), rgba(95, 143, 190, 0.04));
    border-bottom: 1px solid var(--afx-line);
}

.afx-spec-head h3 {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.03em;
    color: var(--afx-primary-dark);
}

.afx-spec-head p {
    margin: 0;
    font-size: 14px;
    line-height: 1.8;
    color: var(--afx-text-sub);
}

.afx-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.afx-spec-table {
    width: 100%;
    min-width: 980px;
    border-collapse: collapse;
    background: #fff;
}

.afx-spec-table thead th {
    padding: 16px 14px;
    background: #f6fafe;
    border-bottom: 1px solid var(--afx-line);
    color: var(--afx-primary-dark);
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
}

.afx-spec-table tbody td {
    padding: 16px 14px;
    border-bottom: 1px solid #edf3f8;
    color: #4c6074;
    font-size: 14px;
    line-height: 1.7;
    text-align: center;
    vertical-align: middle;
    background: #fff;
}

.afx-spec-table tbody tr:hover td {
    background: #fbfdff;
}

.afx-spec-table tbody td:first-child {
    font-weight: 700;
    color: var(--afx-text-main);
    background: #fcfdff;
    white-space: nowrap;
}

.afx-spec-table tbody tr:last-child td {
    border-bottom: none;
}

.afx-note-box {
    margin-top: 18px;
    padding: 20px 22px;
    border-radius: var(--afx-radius-md);
    background: #f8fbfe;
    border: 1px solid var(--afx-line);
    color: var(--afx-text-sub);
    font-size: 14px;
    line-height: 1.8;
}

.afx-note-box strong {
    color: var(--afx-primary-dark);
}

@media (max-width: 1199px) {
    .afx-highlight-grid,
    .afx-model-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .banner_area .section-head-square {
        width: 200px;
        padding: 2.5rem 0 2.5rem 2.5rem;
    }

    .banner_area .section-head-square > .head-title,
    .banner_area .banner_inner .banner_content h2,
    .banner_area .head-title {
        width: 100%;
        font-size: 24px !important;
        line-height: 1.45 !important;
    }

    .portfolio_details_area.afx-section {
        padding: 70px 0 90px;
    }

    .afx-hero-title {
        font-size: 34px;
    }

    .afx-section-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .afx-section-head-left h2 {
        font-size: 26px;
    }

    .afx-spec-head {
        padding: 24px 22px 18px;
    }

    .afx-spec-head h3 {
        font-size: 24px;
    }
}

@media (max-width: 767px) {
    .banner_area .section-head-square {
        width: 160px;
        padding: 2rem 0 2rem 2rem;
        margin: 0 auto;
    }

    .banner_area .section-head-square > .head-title,
    .banner_area .banner_inner .banner_content h2,
    .banner_area .head-title {
        width: 100%;
        font-size: 20px !important;
        line-height: 1.5 !important;
    }

    .portfolio_details_area.afx-section {
        padding: 56px 0 72px;
    }

    .afx-kicker {
        margin-bottom: 14px;
    }

    .afx-hero-title {
        font-size: 28px;
    }

    .afx-hero-desc {
        font-size: 15px;
    }

    .afx-highlight-grid,
    .afx-model-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .afx-highlight-card,
    .afx-model-card {
        padding: 24px 20px 22px;
    }

    .afx-highlight-card h3,
    .afx-model-card h3 {
        font-size: 22px;
    }

    .afx-action-wrap {
        gap: 12px;
        margin-bottom: 42px;
    }

    .main_btn.afx-btn,
    .main_btn.afx-btn-secondary,
    .main_btn.afx-btn-dark {
        width: 100%;
        min-width: auto;
    }

    .afx-spec-head {
        padding: 20px 18px 16px;
    }

    .afx-spec-head h3 {
        font-size: 21px;
    }

    .afx-note-box {
        padding: 16px 18px;
    }
}
