* {
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* ─── CSS Custom Properties ─────────────────────────────────────────── */
:root {
    /* Brand Colors */
    --clr-primary: #6f42c1;
    --clr-primary-dark: #2e1065;
    --clr-primary-mid: #5e28c4;
    --clr-primary-deep: #3b18d8;
    --clr-primary-soft: #4b268a;
    --clr-accent: #cc38e8;
    --clr-success: #28a745;

    /* Backgrounds */
    --bg-card: #ffffff;

    /* Gradients */
    --grad-btn-submit: linear-gradient(to bottom, var(--clr-primary-mid), var(--clr-primary-soft));
    --grad-pill: linear-gradient(135deg, #6030c4 0%, #7d57e8 50%, #638ce8 100%);
    --grad-header: linear-gradient(135deg, #0a1f44 0%, #0d3b66 40%, #3a0ca3 100%);

    /* Footer */
    --footer-bg: #2d2d5a;
    --footer-text: #ffffff;
    --footer-muted: #d1d1e9;
    --footer-bottom-bg: #e8e8f5;

    /* Spacing */
    --sp-xs: 4px;
    --sp-sm: 8px;
    --sp-md: 16px;
    --sp-lg: 24px;
    --sp-xl: 40px;
    --sp-2xl: 60px;

    /* Border Radius */
    --r-sm: 5px;
    --r-md: 8px;
    --r-lg: 12px;

    /* Shadows */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.10);
    --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 8px 30px rgba(111, 66, 193, 0.15);
    --shadow-xl: 0 10px 25px rgba(0, 0, 0, 0.20);

    /* Transitions */
    --t-fast: 0.2s ease;
    --t-base: 0.3s ease;

    /* Overlay */
    --overlay-bg: rgba(0, 0, 0, 0.50);

    /* Icon glow */
    --icon-glow-color: rgba(111, 66, 193, 0.20);
    --icon-glow-size: 100px;

    /* Marquee */
    --marquee-card-width: 220px;

    /* FAQ */
    --faq-border: #eae2f8;
    --faq-body-bg: #faf9ff;
    --faq-body-color: #6c757d;
    --faq-icon-color: #8e68e6;

    /* Misc */
    --desc-color: #4a5568;
    --pill-icon-opacity: 0.95;
    --border2: rgba(0, 0, 0, 0.12);
    --text: #0f0d1a;

    /* ─── Font Size Scale ─────────────────────────────────────────────── */
    --fs-sm: 0.82rem;
    --fs-md: 0.95rem;
    --fs-base: 1rem;
    --fs-lg: 1.1rem;
    --fs-xl: 1.25rem;
    --fs-2xl: 1.75rem;

    /* px-based (modal / card UI) */
    --fs-px-sm: 12px;
    --fs-px-md: 14px;
    --fs-px-lg: 16px;
}


/* ─── Utility Spacing ────────────────────────────────────────────────── */
.p-xs  { padding: var(--sp-xs); }
.p-sm  { padding: var(--sp-sm); }
.p-md  { padding: var(--sp-md); }
.p-lg  { padding: var(--sp-lg); }
.p-xl  { padding: var(--sp-xl); }

.px-sm { padding-inline: var(--sp-sm); }
.px-md { padding-inline: var(--sp-md); }
.px-lg { padding-inline: var(--sp-lg); }

.py-sm { padding-block: var(--sp-sm); }
.py-md { padding-block: var(--sp-md); }
.py-lg { padding-block: var(--sp-lg); }
.py-xl { padding-block: var(--sp-xl); }

.mb-xs { margin-bottom: var(--sp-xs); }
.mb-sm { margin-bottom: var(--sp-sm); }
.mb-md { margin-bottom: var(--sp-md); }
.mb-lg { margin-bottom: var(--sp-lg); }
.mb-xl { margin-bottom: var(--sp-xl); }

.mt-xs { margin-top: var(--sp-xs); }
.mt-sm { margin-top: var(--sp-sm); }
.mt-md { margin-top: var(--sp-md); }
.mt-lg { margin-top: var(--sp-lg); }
.mt-xl { margin-top: var(--sp-xl); }


/* ─── Base Typography ────────────────────────────────────────────────── */
h1,
p {
    word-wrap: break-word;
}


/* ─── Sticky Header ──────────────────────────────────────────────────── */
.sticky-header {
    background: var(--grad-header);
    padding: 15px 0;
}

.header-logo i {
    font-size: var(--fs-xl);
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-logo h5 {
    letter-spacing: -0.5px;
}

.header-nav {
    gap: var(--sp-sm);
    flex-wrap: wrap;
}

.nav-link-custom {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    font-size: var(--fs-md);
    transition: color var(--t-base);
    white-space: nowrap;
}

.nav-link-custom:hover {
    color: var(--footer-text);
}

.divider {
    color: rgba(255, 255, 255, 0.3);
    font-weight: 300;
}


/* ─── Hero Section ───────────────────────────────────────────────────── */
.main-hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
        url("../images/bg.jpg") center / cover no-repeat;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

.sub-head-text {
    font-size: var(--fs-xl);
    font-weight: 400;
}


/* ─── Format Toggle Buttons ──────────────────────────────────────────── */
.btn-format {
    background: rgba(255, 255, 255, 0.8);
    color: var(--clr-primary-soft);
    border: none;
    padding: var(--sp-sm) var(--sp-lg);
    font-weight: 500;
    border-radius: var(--r-sm);
    cursor: pointer;
}

.btn-format.active {
    background: var(--clr-primary-dark);
    color: var(--footer-text);
}


/* ─── Sample Download Buttons ────────────────────────────────────────── */
.format-sample-btns {
    display: none;
    gap: var(--sp-xs);
    justify-content: center;
    margin-top: var(--sp-md);
    flex-wrap: wrap;
    width: 100%;
}

.format-sample-btns.active {
    display: flex;
}

.btn-sample {
    padding: 3px 12px;
    font-size: var(--fs-sm);
    border-radius: var(--r-sm);
    text-decoration: none;
    transition: background var(--t-fast);
    white-space: nowrap;
    flex: 1;
    text-align: center;
}

.btn-sample-input {
    background: rgba(255, 255, 255, 0.15);
    color: var(--footer-text);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.btn-sample-input:hover {
    background: rgba(255, 255, 255, 0.3);
    color: var(--footer-text);
}

.btn-sample-output {
    background: rgba(40, 167, 69, 0.25);
    color: #90f0a8;
    border: 1px solid rgba(40, 167, 69, 0.5);
}

.btn-sample-output:hover {
    background: rgba(40, 167, 69, 0.45);
    color: var(--footer-text);
}


/* ─── Form Inputs ────────────────────────────────────────────────────── */
.custom-input {
    border-radius: var(--r-md);
    padding: 12px var(--sp-lg);
    border: none;
    box-shadow: var(--shadow-sm);
}

.upload-box {
    position: relative;
    border: 2px dashed var(--clr-primary);
    border-radius: 20px;
    padding: var(--sp-lg) var(--sp-lg);
    cursor: pointer;
    background: linear-gradient(145deg, #faf8ff, #f3eeff);
    transition: all var(--t-base);
    overflow: hidden;
}

.upload-box:hover {
    border-color: var(--clr-primary-dark);
    background: linear-gradient(145deg, #f3eeff, #ede4ff);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.upload-glow {
    position: absolute;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, var(--icon-glow-color) 0%, transparent 70%);
    border-radius: 50%;
    top: -40px;
    right: -40px;
    animation: glow-pulse 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes glow-pulse {
    0%, 100% { transform: scale(1);    opacity: 0.5; }
    50%       { transform: scale(1.4); opacity: 1;   }
}

.upload-icon-circle {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--clr-primary-mid), var(--clr-primary-soft));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    animation: float 3s ease-in-out infinite;
}

.upload-icon-circle i {
    font-size: 26px;
    color: var(--footer-text);
}

@keyframes float {
    0%, 100% { transform: translateY(0px);  }
    50%       { transform: translateY(-6px); }
}

.upload-title {
    font-size: var(--fs-px-lg);
    font-weight: 700;
    color: var(--clr-primary-dark);
    margin: 0;
}

.upload-subtitle {
    font-size: var(--fs-px-md);
    color: var(--desc-color);
    margin: 0;
}

.upload-browse {
    color: var(--clr-primary);
    font-weight: 600;
    text-decoration: underline;
}

.upload-format-badge {
    background: var(--bg-card);
    border: 1px solid #e0d7ff;
    border-radius: 20px;
    padding: var(--sp-xs) var(--sp-md);
    font-size: var(--fs-px-sm);
    font-weight: 600;
    color: var(--clr-primary-soft);
    box-shadow: var(--shadow-md);
}

.upload-box.drag-active {
    background: linear-gradient(145deg, #ede4ff, #ddd4ff);
    border-color: var(--clr-primary-soft);
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.btn-submit {
    background: var(--grad-btn-submit);
    color: var(--footer-text);
    padding: 12px var(--sp-xl);
    border-radius: var(--r-lg);
    font-weight: bold;
    font-size: var(--fs-xl);
    border: none;
    box-shadow: var(--shadow-sm);
    max-width: 100%;
    cursor: pointer;
}


/* ─── Feature Items ──────────────────────────────────────────────────── */
.feature-item {
    color: var(--footer-text);
    font-weight: 500;
}

.feature-item-Route-Page {
    color: #000;
}

.feature-item i {
    color: #00e676;
    background: white;
    border-radius: 50%;
    padding: 2px;
    font-size: var(--fs-lg);
}


/* ─── Section Shared Styles ──────────────────────────────────────────── */
.section-wrap {
    padding: var(--sp-xl) 0;
}

.section-bg-white {
    background-color: white;
}

.section-bg-smoke {
    background-color: whitesmoke;
}

.section-title {
    color: var(--clr-primary);
    font-weight: 700;
    font-size: var(--fs-2xl);
    margin-bottom: var(--sp-lg);
    letter-spacing: -0.5px;
}

.section-divider {
    width: 60px;
    height: 3px;
    background-color: rgba(111, 66, 193, 0.2);
    margin: 0 auto var(--sp-lg);
    border-radius: 2px;
}

.section-desc {
    color: var(--desc-color);
    font-size: var(--fs-lg);
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
    font-weight: 400;
}


/* ─── Feature Cards ──────────────────────────────────────────────────── */
.feature-card {
    border: none;
    border-radius: var(--r-lg);
    background: var(--bg-card);
    box-shadow: var(--shadow-md);
    transition: transform var(--t-fast), box-shadow var(--t-fast);
    overflow: hidden;
}

.feature-card.highlighted {
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(111, 66, 193, 0.2);
}

.feature-card.highlighted .step-label,
.feature-card.highlighted .card-title {
    color: var(--clr-primary);
}

.card-icon-wrap {
    padding-top: var(--sp-xl);
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-glow {
    position: relative;
    padding: 15px;
    border-radius: 50%;
}

.icon-glow::before {
    content: '';
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    width: var(--icon-glow-size);
    height: var(--icon-glow-size);
    background: radial-gradient(circle, var(--icon-glow-color) 0%, transparent 70%);
}

.icon-brand {
    font-size: 3rem;
    color: var(--clr-primary);
}

.card-title {
    font-weight: 700;
    font-size: var(--fs-xl);
    color: var(--clr-primary-dark);
    margin-bottom: var(--sp-sm);
}

.step-label {
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--clr-primary);
    margin-bottom: var(--sp-xs);
}


/* ─── Pill Cards ─────────────────────────────────────────────────────── */
.pill-card {
    background: var(--grad-pill);
    border-radius: var(--r-md);
    padding: var(--sp-md);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-lg);
    color: var(--footer-text);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    transition: transform var(--t-base), box-shadow var(--t-base);
    cursor: pointer;
    border: none;
}

.pill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.20);
}

.pill-icon {
    font-size: 2.2rem;
    color: rgba(255, 255, 255, var(--pill-icon-opacity));
}

.pill-content h6 {
    font-weight: 600;
    font-size: var(--fs-xl);
    line-height: 1.2;
    letter-spacing: 0.3px;
    margin: 0;
}


/* ─── FAQ Accordion ──────────────────────────────────────────────────── */
.faq-accordion {
    max-width: 900px;
}

.faq-accordion .accordion-item {
    border: 1.5px solid var(--faq-border);
    border-radius: var(--r-md);
    margin-bottom: 15px;
    overflow: hidden;
}

.faq-accordion .accordion-button {
    background-color: var(--bg-card);
    color: var(--clr-primary-dark);
    font-weight: 500;
    box-shadow: none;
    padding: 18px var(--sp-lg);
}

.faq-accordion .accordion-button i {
    color: var(--faq-icon-color);
    transition: transform var(--t-base);
}

.faq-accordion .accordion-button:not(.collapsed) i {
    transform: rotate(90deg);
}

.faq-accordion .accordion-button::after {
    filter: sepia(100%) hue-rotate(220deg) saturate(500%);
}

.faq-accordion .accordion-body {
    border-top: 1px solid #f4f0ff;
    color: var(--faq-body-color);
    background-color: var(--faq-body-bg);
    font-size: var(--fs-md);
}


/* ─── Footer ─────────────────────────────────────────────────────────── */
.site-footer {
    background-color: var(--footer-bg);
    padding: var(--sp-2xl) var(--sp-lg) var(--sp-xl);
    color: var(--footer-text);
    margin-top: var(--sp-xl);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    gap: var(--sp-xl);
}

.help-card {
    background: var(--bg-card);
    color: #333;
    border-radius: var(--r-md);
    width: 320px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    top: -80px;
}

.help-card-body {
    padding: var(--sp-lg);
}

.help-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.help-card-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.help-email {
    display: flex;
    align-items: center;
    gap: var(--sp-sm);
    font-size: var(--fs-md);
    color: #444;
}

.help-card-footer {
    background-color: var(--footer-bottom-bg);
    padding: var(--sp-sm);
    text-align: center;
    font-size: var(--fs-sm);
    color: #666;
}

.footer-links {
    display: grid;
    grid-template-columns: 1.5fr 2.5fr 1.5fr;
    flex-grow: 1;
    gap: var(--sp-lg);
    align-items: start;
}

.footer-col h3 {
    font-size: var(--fs-base);
    margin-bottom: 15px;
    color: var(--footer-text);
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: var(--sp-sm);
    line-height: 1.4;
}

.footer-col ul li a {
    text-decoration: none;
    color: var(--footer-muted);
    font-size: var(--fs-md);
    transition: color var(--t-base);
    display: inline-block;
    line-height: 1.4;
}

.footer-col ul li a:hover {
    color: var(--footer-text);
}

.footer-copy {
    margin-top: var(--sp-xl);
    font-size: var(--fs-sm);
    color: var(--footer-muted);
    white-space: nowrap;
}

@media (max-width: 900px) {
    .footer-inner {
        flex-direction: column;
        align-items: center;
    }

    .help-card {
        position: static;
        margin-bottom: var(--sp-xl);
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        width: 100%;
    }
}


/* ─── Modal / Loader ─────────────────────────────────────────────────── */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--overlay-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1050;
}

.modal-dialog {
    max-width: 400px;
}


/* ─── Shutter Hover Effect ───────────────────────────────────────────── */
.shutter-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: none;
    transition: all var(--t-base);
}

.shutter-overlay {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 123, 255, 0.95);
    color: var(--footer-text);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: top 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    padding-left: var(--sp-lg);
    padding-right: var(--sp-lg);
}

.shutter-card:hover .shutter-overlay {
    top: 0;
}

.shutter-card:hover .card-body,
.shutter-card:hover .card-icon-wrap {
    transform: scale(0.9);
    transition: transform var(--t-base);
}


/* ─── Marquee ────────────────────────────────────────────────────────── */
.marquee-wrap {
    overflow: hidden;
    width: 100%;
    padding: 10px 0 20px;
}

.marquee-track {
    display: flex;
    width: max-content;
    gap: var(--sp-lg);
    animation: marquee-scroll 30s linear infinite;
    padding: 10px 12px;
}

.marquee-track:hover {
    animation-play-state: paused;
}

.marquee-card {
    background: var(--bg-card);
    border: 1px solid rgba(111, 66, 193, 0.2);
    box-shadow: var(--shadow-lg);
    border-radius: var(--r-lg);
    width: var(--marquee-card-width);
    flex-shrink: 0;
    text-align: center;
    padding-bottom: 20px;
    transition: transform var(--t-fast), box-shadow var(--t-fast);
    cursor: pointer;
}

.marquee-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.marquee-card .card-title {
    color: var(--clr-primary);
    font-size: var(--fs-base);
    padding: 0 12px;
}

@keyframes marquee-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}


/* ─── FAQ Page ───────────────────────────────────────────────────────── */
.icon-box {
    background: white;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--r-lg);
    color: var(--brand-purple, #7C7CFF);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    font-size: var(--fs-lg);
    flex-shrink: 0;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.5rem;
    margin-top: 2rem;
}


/* ─── Global Responsive ──────────────────────────────────────────────── */
@media (max-width: 768px) {
    h1 {
        font-size: 1.5rem;
    }

    .header-nav {
        justify-content: center;
    }

    .section-title {
        font-size: 1.4rem;
        padding-left: 5px;
    }

    .section-desc {
        font-size: var(--fs-base);
        padding: 0 15px;
    }

    .upload-box {
        padding: 15px;
    }

    .btn-submit {
        width: 100%;
        padding: 10px;
    }

    .pill-card {
        margin-bottom: var(--sp-sm);
    }
}


/* ─── Route Optimization Page ────────────────────────────────────────── */
.two-col {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: var(--sp-lg);
    max-width: 1100px;
    margin: 0 auto;
}

.content_box {
    min-height: 300px;
}

.hero_text_route_optimization {
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--sp-lg);
    color: var(--clr-primary-dark);
}

.hero_text_route_optimization span {
    color: var(--clr-primary);
}

.sub_hero_text_route_optimization {
    font-size: var(--fs-xl);
    color: var(--desc-color);
    font-weight: 600;
    margin-bottom: var(--sp-md);
}

.keyword-text {
    font-size: var(--fs-lg);
    color: var(--desc-color);
    margin-bottom: var(--sp-xl);
    max-width: 540px;
}


/* ─── Comparison Table Card ──────────────────────────────────────────── */
.comparison-card {
    background: var(--bg-card);
    border: 1px solid #e8e8e8;
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    max-width: 860px;
    margin: 0 auto;
}

.comp-table {
    width: 100%;
    border-collapse: collapse;
}

.comp-table thead tr th {
    padding: 22px var(--sp-lg);
    font-size: var(--fs-sm);
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    border-bottom: 1px solid #ebebeb;
}

.comp-table thead tr th:first-child {
    width: 50%;
    text-align: left;
    color: #c0392b;
    background: #fdf9f9;
    border-right: 1px solid #ebebeb;
}

.comp-table thead tr th:last-child {
    width: 50%;
    text-align: left;
    color: var(--clr-primary-soft);
    background: #faf8fe;
}

.col-label-icon {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-sm);
}

.col-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.dot-fail  { background: #e74c3c; }
.dot-solve { background: var(--clr-primary); }

.comp-table tbody tr {
    border-bottom: 1px solid #f2f2f2;
    transition: background var(--t-fast);
}

.comp-table tbody tr:last-child {
    border-bottom: none;
}

.comp-table tbody tr:hover td {
    background: #fafafa;
}

.comp-table tbody tr td {
    padding: var(--sp-md) var(--sp-lg);
    font-size: var(--fs-md);
    color: var(--desc-color);
    font-weight: 600;
    line-height: 1.55;
    vertical-align: top;
}

.comp-table tbody tr td:first-child {
    border-right: 1px solid #ebebeb;
    background: #fdf9f9;
}

.comp-table tbody tr td:last-child {
    background: #faf8fe;
}

.row-item {
    display: flex;
    align-items: flex-start;
    gap: var(--sp-sm);
}

.row-marker {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.marker-fail  { background: #fdecea; }
.marker-solve { background: #ede9fb; }

.marker-fail svg  { stroke: #e74c3c; }
.marker-solve svg { stroke: var(--clr-primary); }

.row-marker svg {
    width: 10px;
    height: 10px;
    stroke-width: 3;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width: 680px) {
    .comp-table,
    .comp-table thead,
    .comp-table tbody,
    .comp-table tr,
    .comp-table th,
    .comp-table td {
        display: block;
        width: 100%;
    }

    .comp-table thead tr th:first-child,
    .comp-table thead tr th:last-child {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #ebebeb;
    }

    .comp-table tbody tr td:first-child {
        border-right: none;
        border-bottom: 1px solid #f2f2f2;
    }

    .comp-table tbody tr td,
    .comp-table thead tr th {
        padding: var(--sp-md);
    }
}


/* ─── CSV Upload Floating Modal ──────────────────────────────────────── */
.csv-modal-overlay {
    display: none;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: var(--overlay-bg);
    align-items: center !important;
    justify-content: center !important;
    z-index: 9999;
    padding: var(--sp-md);
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: auto;
}

.csv-modal-overlay.open {
    display: flex !important;
}

.csv-modal {
    background: var(--bg-card);
    border-radius: var(--r-lg);
    width: 100%;
    max-width: 620px;
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
    animation: modalIn 0.22s ease;
    margin: auto;
    flex-shrink: 0;
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(18px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.csv-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px var(--sp-lg);
    border-bottom: 1px solid #ebebeb;
    background: var(--clr-primary);
}

.csv-modal-header h6 {
    margin: 0;
    font-size: var(--fs-px-lg);
    font-weight: 600;
    color: #fff;
}

.csv-modal-close {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 18px;
    line-height: 1;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background var(--t-fast);
}

.csv-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.csv-modal-body {
    padding: 22px var(--sp-lg);
}

.modal-tabs {
    display: flex;
    gap: var(--sp-sm);
    margin-bottom: var(--sp-sm);
}

.modal-tab-btn {
    flex: 1;
    padding: 9px 0;
    font-size: var(--fs-px-md);
    font-weight: 500;
    border-radius: var(--r-md);
    border: 1px solid #d0cef5;
    cursor: pointer;
    background: #f5f4ff;
    color: var(--clr-primary);
    transition: background var(--t-fast), color var(--t-fast);
}

.modal-tab-btn.active {
    background: var(--clr-primary);
    color: #fff;
    border-color: var(--clr-primary);
}

.modal-sample-row {
    display: flex;
    gap: var(--sp-sm);
    justify-content: center;
    margin-bottom: 18px;
    min-height: 28px;
}

.modal-sample-row a {
    font-size: var(--fs-px-sm);
    padding: var(--sp-xs) var(--sp-md);
    border-radius: var(--r-sm);
    border: 1px solid #d0cef5;
    color: var(--clr-primary);
    text-decoration: none;
    background: #f5f4ff;
    transition: background var(--t-fast);
}

.modal-sample-row a:hover {
    background: #e8e6ff;
}

.modal-sample-row a:first-child {
    background: rgba(83, 74, 183, 0.08);
    border-color: #d0cef5;
    color: var(--clr-primary);
}

.modal-sample-row a:last-child {
    background: rgba(40, 167, 69, 0.08);
    border-color: rgba(40, 167, 69, 0.4);
    color: #1a7a35;
}

.modal-sample-row a:last-child:hover {
    background: rgba(40, 167, 69, 0.18);
}

.modal-inputs-row {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}

.modal-inputs-row select,
.modal-inputs-row input[type="email"] {
    padding: 9px 12px;
    font-size: var(--fs-px-md);
    border: 1px solid #d0cef5;
    border-radius: var(--r-md);
    outline: none;
    background: var(--bg-card);
    color: #333;
    transition: border-color var(--t-fast);
}

.modal-inputs-row select:focus,
.modal-inputs-row input[type="email"]:focus {
    border-color: var(--clr-primary);
}

.modal-inputs-row select          { flex: 1; }
.modal-inputs-row input[type="email"] { flex: 2; }

.modal-upload-box {
    border: 2px dashed #c7c4f0;
    border-radius: var(--r-lg);
    padding: 28px var(--sp-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: border-color var(--t-base), background var(--t-base);
    background: #fafafe;
}

.modal-upload-box:hover,
.modal-upload-box.drag-active {
    border-color: var(--clr-primary);
    background: #f0eeff;
}

.modal-upload-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--clr-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-upload-box p {
    margin: 0;
}

.modal-upload-title {
    font-size: var(--fs-px-md);
    font-weight: 600;
    color: #333;
    text-align: center;
}

.modal-upload-sub {
    font-size: var(--fs-px-sm);
    color: #888;
    text-align: center;
}

#modalFileName {
    font-size: var(--fs-px-sm);
    color: var(--clr-primary);
    margin-top: var(--sp-sm);
    text-align: center;
    min-height: 16px;
}

.modal-submit-btn {
    width: 100%;
    margin-top: 14px;
    padding: 11px 0;
    font-size: var(--fs-px-md);
    font-weight: 600;
    border-radius: var(--r-md);
    border: none;
    background: var(--clr-primary);
    color: #fff;
    cursor: pointer;
    transition: background var(--t-fast);
}

.modal-submit-btn:hover {
    background: var(--clr-primary-soft);
}

.modal-features {
    display: flex;
    justify-content: center;
    gap: var(--sp-xl);
    margin-top: 14px;
}

.modal-features span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: var(--fs-px-sm);
    color: #666;
    white-space: nowrap;
}

.modal-features i {
    color: var(--clr-primary);
    flex-shrink: 0;
}


/* ─── Modal Format Group ─────────────────────────────────────────────── */
.modal-format-group {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal-btn-format {
    padding: var(--sp-sm) 28px;
    border-radius: var(--r-lg);
    border: 1.5px solid var(--clr-primary-soft);
    background: transparent;
    color: var(--clr-primary-soft);
    font-size: var(--fs-px-lg);
    font-weight: 500;
    cursor: pointer;
    min-width: 180px;
    white-space: nowrap;
    transition: background var(--t-fast), color var(--t-fast);
}

.modal-btn-format:hover {
    background: #f0ebfa;
}

.modal-btn-format.active {
    background: var(--clr-primary-dark);
    color: #fff;
    border-color: var(--clr-primary-dark);
}

.start-process-button {
    padding: var(--sp-sm) 28px;
    border-radius: var(--r-lg);
    background: var(--clr-primary-dark);
    color: #fff;
    border: 1.5px solid var(--clr-primary-dark);
    font-size: var(--fs-px-lg);
    font-weight: 500;
    cursor: pointer;
    min-width: 180px;
    white-space: nowrap;
    transition: background var(--t-fast), color var(--t-fast);
}

.modal-format-sample-btns {
    display: none;
    gap: var(--sp-sm);
    margin-top: var(--sp-sm);
}

.modal-format-sample-btns.active {
    display: flex;
}

.modal-btn-sample {
    padding: var(--sp-xs) 18px;
    border-radius: 20px;
    font-size: var(--fs-px-md);
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    border: 1.5px solid #ccc;
    background: transparent;
    color: #555;
    transition: background var(--t-fast);
}

.modal-btn-sample-input {
    color: #555;
    border-color: #ccc;
}

.modal-btn-sample-input:hover {
    background: #f5f5f5;
}

.modal-btn-sample-output {
    background: #e8f8ee;
    color: #2e7d4f;
    border-color: #a8dabb;
}

.modal-btn-sample-output:hover {
    background: #d0f0df;
}


/* ─── Route Optimization – Image Box & Map Overlay ──────────────────── */
.img_box {
    min-height: 300px;
    height: 100%;
    background-color: #f0f4ff;
    border-radius: 20px;
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.08),
        0 8px 16px rgba(0, 0, 0, 0.12),
        0 20px 40px rgba(0, 0, 0, 0.15),
        0 40px 60px rgba(111, 66, 193, 0.10);
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: stretch;
}

.img_box svg {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 300px;
    flex: 1;
}

.map-label {
    position: absolute;
    background: var(--bg-card);
    border: 1px solid var(--border2);
    border-radius: var(--r-md);
    padding: 7px var(--sp-md);
    font-size: var(--fs-px-sm);
    font-weight: 500;
    color: var(--text);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
    display: flex;
    align-items: center;
    gap: 6px;
    animation: fadeSlide 0.5s ease both;
    white-space: nowrap;
}

.ml-1 {
    top: var(--sp-md);
    left: var(--sp-md);
    animation-delay: 1.2s;
}

.ml-2 {
    bottom: var(--sp-md);
    right: var(--sp-md);
    animation-delay: 1.5s;
}

.ml-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

@keyframes fadeSlide {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.route-line {
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 450;
    stroke-dashoffset: 450;
    animation: drawLine 1.4s ease forwards;
}

.rl-1 { stroke: rgba(91, 56, 214, 0.55); animation-delay: 0.2s; }
.rl-2 { stroke: rgba(160, 120, 40, 0.55); animation-delay: 0.55s; }
.rl-3 {
    stroke: rgba(91, 56, 214, 0.25);
    animation-delay: 0.85s;
    stroke-dasharray: 5 4;
}

@keyframes drawLine {
    to { stroke-dashoffset: 0; }
}

.map-pin-pop {
    animation: pinPop 0.5s cubic-bezier(.175, .885, .32, 1.275) both;
}

.map-pin-pop:nth-child(1) { animation-delay: 1.1s; }
.map-pin-pop:nth-child(2) { animation-delay: 1.4s; }
.map-pin-pop:nth-child(3) { animation-delay: 1.7s; }

@keyframes pinPop {
    from { transform: scale(0); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

@keyframes movePath1 {
    0%   { offset-distance: 0%;   opacity: 1; }
    92%  { opacity: 1; }
    100% { offset-distance: 100%; opacity: 0; }
}

@keyframes movePath2 {
    0%   { offset-distance: 0%;   opacity: 1; }
    92%  { opacity: 1; }
    100% { offset-distance: 100%; opacity: 0; }
}


/* ─── Blog Page ──────────────────────────────────────────────────────── */
.section-bg-blog {
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
        url("../images/blog.jpg") center / cover no-repeat fixed;
    padding: 100px;
}

.section-title-blog {
    color: #fff;
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: var(--sp-lg);
}

.blog-list {
    display: flex;
    flex-direction: column;
}

.custom-card-slider {
    background: var(--bg-card);
    border-radius: 40px;
    padding: var(--sp-md) var(--sp-xl);
    display: flex;
    align-items: center;
    min-height: 400px;
    margin: var(--sp-md) 10px var(--sp-xl) 10px;
    border: 1px solid var(--border2);
    box-shadow:
        0 20px 50px rgba(124, 124, 255, 0.1),
        0 40px 100px rgba(0, 0, 0, 0.1);
    transition: all var(--t-base);
}

.custom-card-slider.blog-hidden  { display: none; }

.custom-card-slider.blog-visible {
    display: flex;
    animation: fadeUp 0.4s ease both;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.blog-count { color: gray !important; }

.slider-image-part {
    position: relative;
    flex: 0 0 38%;
}

.slider-image-part img {
    width: 100%;
    aspect-ratio: 1.1 / 1;
    object-fit: cover;
    border-radius: 30px;
    background: #000;
}

.slider-content-part {
    flex: 1;
    padding-left: 45px;
}

.slider-content-part h2 {
    font-size: var(--fs-2xl);
    margin-bottom: var(--sp-md);
    color: var(--text);
    line-height: 1.25;
}

.card-excerpt {
    font-size: var(--fs-md);
    color: var(--desc-color);
    line-height: 1.6;
    margin-bottom: 0;
    max-height: 3.2em;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.card-excerpt.expanded { max-height: 200px; }

.read-more-btn {
    background: none;
    border: none;
    padding: var(--sp-xs) 0 0 0;
    font-size: var(--fs-sm);
    font-weight: 600;
    color: #2563eb;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: var(--sp-xs);
    transition: color var(--t-fast);
    margin-bottom: var(--sp-xl);
}

.read-more-btn:hover { color: #1d4ed8; }

.read-more-btn i {
    font-size: 11px;
    transition: transform 0.2s ease;
}

.read-more-btn.expanded i { transform: rotate(180deg); }

.slider-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.author-box {
    display: flex;
    align-items: center;
    gap: var(--sp-md);
}

.author-box img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.slider-actions {
    display: flex;
    gap: var(--sp-sm);
}

.action-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--t-fast);
}

.action-circle:hover { opacity: 0.8; }

.show-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: var(--sp-sm);
    margin-bottom: var(--sp-md);
}

.show-more-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-sm);
    padding: var(--sp-sm) var(--sp-xl);
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--text);
    background: var(--bg-card);
    border: 1px solid var(--border2);
    border-radius: 50px;
    cursor: pointer;
    box-shadow:
        0 20px 50px rgba(124, 124, 255, 0.1),
        0 10px 30px rgba(0, 0, 0, 0.07);
    transition: all var(--t-base);
}

.show-more-btn:hover {
    box-shadow:
        0 20px 50px rgba(124, 124, 255, 0.18),
        0 20px 50px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.show-more-btn:active { transform: scale(0.97); }

@media (max-width: 991px) {
    .custom-card-slider {
        flex-direction: column;
        padding: var(--sp-lg);
        border-radius: var(--sp-xl);
        min-height: auto;
    }

    .slider-image-part {
        width: 100%;
        margin-bottom: var(--sp-md);
    }

    .slider-content-part { padding-left: 0; }
}


/* ─── Home Section – Responsive ─────────────────────────────────────── */

/* Tablet (≤991px) */
@media (max-width: 991px) {
    .two-col {
        grid-template-columns: 1fr;
        gap: var(--sp-lg);
    }

    .img_box {
        min-height: unset !important;
        height: auto !important;
        display: block;
    }

    .img_box svg {
        display: block;
        width: 100%;
        height: auto !important;
        min-height: unset !important;
    }
}

/* Tablet Portrait (769px – 991px) */
@media (max-width: 991px) and (min-width: 769px) {
    .hero_text_route_optimization {
        font-size: clamp(2rem, 4vw, 3rem) !important;
    }
}

/* Mobile Portrait & Landscape (≤768px) */
@media (max-width: 768px) {
    .section-wrap {
        padding: var(--sp-lg) 0;
    }

    .two-col {
        grid-template-columns: 1fr;
        gap: var(--sp-md);
    }

    .hero_text_route_optimization {
        font-size: clamp(1.6rem, 6vw, 2.4rem) !important;
        margin-bottom: var(--sp-md);
    }

    .sub_hero_text_route_optimization {
        font-size: 1rem;
        margin-bottom: var(--sp-sm);
    }

    .keyword-text {
        font-size: var(--fs-md);
        margin-bottom: var(--sp-lg);
        max-width: 100%;
    }

    .content_box {
        min-height: auto;
    }

    .img_box {
        min-height: unset !important;
        height: auto !important;
        border-radius: 14px;
        display: block;
    }

    .img_box svg {
        display: block;
        width: 100%;
        height: auto !important;
        min-height: unset !important;
    }

    .map-label {
        font-size: 10px !important;
        padding: 5px 9px !important;
        gap: 4px !important;
        max-width: 48%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .ml-1 {
        top: 8px !important;
        left: 8px !important;
    }

    .ml-2 {
        bottom: 8px !important;
        right: 8px !important;
    }

    .container {
        padding-left: var(--sp-md);
        padding-right: var(--sp-md);
    }

    .start-process-button {
        width: auto !important;
        min-width: unset;
        padding: var(--sp-sm) var(--sp-lg);
    }
}

/* Mobile Landscape */
@media (max-width: 768px) and (orientation: landscape) {
    .section-wrap {
        padding: var(--sp-md) 0;
    }

    .hero_text_route_optimization {
        font-size: clamp(1.4rem, 5vw, 2rem) !important;
    }

    .img_box {
        min-height: unset !important;
        height: auto !important;
        display: block;
    }

    .img_box svg {
        width: 100%;
        height: auto !important;
    }
}

/* Small phones (≤480px) */
@media (max-width: 480px) {
    .map-label {
        font-size: 9px !important;
        padding: 4px 7px !important;
        max-width: 44%;
    }
}

/* Very small phones (≤380px) */
@media (max-width: 380px) {
    .hero_text_route_optimization {
        font-size: 1.4rem !important;
    }

    .sub_hero_text_route_optimization {
        font-size: 0.9rem;
    }

    .keyword-text {
        font-size: 0.85rem;
    }

    .map-label {
        font-size: 8px !important;
        padding: 3px 6px !important;
        max-width: 42%;
    }
}


/* ─── Feature Items Row – 2+1 Layout on Mobile ──────────────────────── */
@media (max-width: 600px) {
    .d-flex.gap-5.mt-4 {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
        justify-items: start;
    }

    .feature-item-Route-Page {
        display: inline-flex !important;
        align-items: center;
        gap: 6px;
        white-space: nowrap;
        font-size: var(--fs-sm);
        width: auto;
    }

    .feature-item-Route-Page:last-child {
        grid-column: 1 / -1;
        justify-self: center;
    }
}

@media (max-width: 360px) {
    .d-flex.gap-5.mt-4 {
        grid-template-columns: 1fr !important;
    }

    .feature-item-Route-Page:last-child {
        grid-column: auto;
        justify-self: start;
    }
}


/* ─── CSV Modal – Responsive ─────────────────────────────────────────── */

/* Tablet (≤991px) */
@media (max-width: 991px) {
    .csv-modal-body > .d-flex.justify-content-center.gap-2.mb-4 {
        flex-wrap: wrap !important;
        gap: var(--sp-sm) !important;
    }

    .modal-format-group {
        flex: 1 1 140px;
        min-width: 130px;
    }

    .modal-btn-format {
        width: 100%;
        min-width: unset;
        font-size: var(--fs-px-md);
        padding: var(--sp-sm) var(--sp-md);
        white-space: normal;
        text-align: center;
        line-height: 1.3;
    }
}

/* Mobile (≤600px) */
@media (max-width: 600px) {
    .csv-modal-overlay {
        padding: var(--sp-sm) !important;
    }

    .csv-modal {
        border-radius: var(--r-md);
        max-height: calc(100dvh - 16px);
    }

    .csv-modal-header {
        padding: 10px var(--sp-md);
        gap: var(--sp-sm);
    }

    .csv-modal-header h6 {
        font-size: 13px;
        line-height: 1.4;
        padding-right: 6px;
    }

    .csv-modal-close {
        width: 26px;
        height: 26px;
        font-size: 16px;
    }

    .csv-modal-body {
        padding: var(--sp-md);
    }

    .csv-modal-body > .d-flex.justify-content-center.gap-2.mb-4 {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: var(--sp-sm) !important;
        margin-bottom: var(--sp-md) !important;
    }

    .modal-format-group {
        width: 100%;
        flex: unset;
        min-width: unset;
    }

    .modal-btn-format {
        width: 100%;
        font-size: var(--fs-px-md);
        padding: 10px var(--sp-md);
        border-radius: var(--r-md);
        min-width: unset;
        white-space: normal;
    }

    .modal-format-sample-btns {
        justify-content: center;
        gap: var(--sp-sm);
    }

    .modal-btn-sample {
        font-size: 11px;
        padding: 3px 14px;
    }

    .modal-inputs-row {
        flex-direction: column;
        gap: var(--sp-sm);
    }

    .modal-inputs-row select,
    .modal-inputs-row input[type="email"] {
        flex: unset;
        width: 100%;
        font-size: var(--fs-px-md);
        padding: 9px 10px;
        box-sizing: border-box;
    }

    .modal-upload-box {
        padding: 20px var(--sp-md);
        gap: 8px;
    }

    .modal-upload-icon {
        width: 40px;
        height: 40px;
    }

    .modal-upload-title {
        font-size: 13px;
    }

    .modal-upload-sub {
        font-size: 11px;
    }

    .modal-submit-btn {
        font-size: var(--fs-px-md);
        padding: 10px 0;
        margin-top: var(--sp-sm);
    }

    .modal-features {
        display: none !important;
    }
}

/* Very small phones (≤380px) */
@media (max-width: 380px) {
    .csv-modal-header h6 {
        font-size: 12px;
    }

    .csv-modal-body {
        padding: var(--sp-sm) var(--sp-md);
    }

    .modal-btn-format {
        font-size: 12px;
        padding: 9px var(--sp-sm);
    }

    .modal-upload-title {
        font-size: 12px;
    }

    .modal-upload-sub {
        font-size: 10px;
    }

    .modal-upload-icon {
        width: 36px;
        height: 36px;
    }
}

/* Landscape phones */
@media (max-width: 768px) and (orientation: landscape) {
    .csv-modal-overlay {
        align-items: flex-start !important;
        padding: var(--sp-sm) !important;
    }

    .csv-modal {
        max-height: calc(100dvh - 16px);
    }

    .csv-modal-body {
        padding: var(--sp-sm) var(--sp-md);
    }

    .csv-modal-body > .d-flex.justify-content-center.gap-2.mb-4 {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: flex-start !important;
    }

    .modal-format-group {
        flex: 1 1 120px;
    }

    .modal-upload-box {
        padding: 14px var(--sp-md);
    }

    .modal-features {
        display: none !important;
    }
}


/* ─── Instructions Page ──────────────────────────────────────────────── */
:root {
    --primary: #4f46e5;
    --primary-light: #7C7CFF;
    --border: #e2e8f0;
}

.section-card_instruction {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.section-card_instruction h4 {
    color: var(--primary);
    font-size: clamp(1rem, 4vw, 1.2rem);
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border);
}

.section-card_instruction h6 {
    font-weight: 600;
    margin: 12px 0 6px;
    font-size: 0.95rem;
}

.section-card_instruction ul {
    padding-left: 18px;
    margin-bottom: 8px;
}

.section-card_instruction li {
    margin-bottom: 6px;
    font-size: 0.93rem;
    line-height: 1.55;
}

.section-card_instruction p {
    font-size: 0.93rem;
}

code {
    background: #f1f5f9;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 0.85rem;
    word-break: break-all;
}

.format-item_instruction {
    background: #f8faff;
    border-left: 3px solid var(--primary-light);
    border-radius: 0 8px 8px 0;
    padding: 10px 14px;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.format-item_instruction .format-arrow_instruction {
    color: var(--primary);
    font-weight: 500;
    display: block;
    margin-top: 4px;
    font-size: 0.85rem;
}

.trouble-item_instruction {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.trouble-item_instruction:last-child {
    border-bottom: none;
}

.trouble-num_instruction {
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 700;
    margin-top: 1px;
}

.trouble-item_instruction p {
    margin: 4px 0 0;
    font-size: 0.9rem;
}

.contact-link_instruction {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: #fff !important;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none !important;
    font-size: 0.9rem;
    margin-top: 8px;
    word-break: break-all;
}

@media (max-width: 480px) {
    .section-card_instruction {
        padding: 16px;
    }
}