/* Legacy content helper styles to make migrated pages fit the new layout */
.legacy-content {
    color: #1d2b3c;
    font-size: 14px;
    line-height: 1.7;
}

.legacy-content h1,
.legacy-content h2,
.legacy-content h3,
.legacy-content h4,
.legacy-content h5,
.legacy-content h6 {
    color: #0b6fb3;
    margin-top: 0;
    font-weight: 700;
}

.legacy-content h1 { font-size: 32px; }
.legacy-content h2 { font-size: 20px; }
.legacy-content h3 { font-size: 22px; }
.legacy-content h4 { font-size: 18px; }
.legacy-content h5 { font-size: 16px; }
.legacy-content h6 { font-size: 14px; }

.legacy-content a {
    color:#0b6fb3;
    font-weight: 600;
}

.legacy-content a:hover {
    color: #084f80;
    text-decoration: underline;
}

.legacy-content p {
    margin-bottom: 16px;
}

.legacy-content img {
    max-width: 30%;
    height: auto;
}

.legacy-content ul,
.legacy-content ol {
    padding-left: 20px;
    margin-bottom: 16px;
}

.legacy-content ul li,
.legacy-content ol li {
    margin-bottom: 8px;
}

.legacy-content .clear {
    clear: both;
}

.legacy-content .col-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 24px 0;
}

.legacy-content .one-fourth,
.legacy-content .one-third,
.legacy-content .one-half,
.legacy-content .full-width {
    background: #ffffff;
    padding: 8px;
    border: 1px solid #e4ecf5;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(7, 41, 72, 0.06);
    flex: 1 1 240px;
}

.legacy-content .one-half { flex-basis: 48%; }
.legacy-content .one-third { flex-basis: 32%; }
.legacy-content .one-fourth { flex-basis: 23%; }

.legacy-content .box-title {
    margin-bottom: -12px;
}

.legacy-content .box-title h1,
.legacy-content .box-title h2,
.legacy-content .box-title h3,
.legacy-content .box-title h4,
.legacy-content .box-title h5,
.legacy-content .box-title h6 {
    margin: 12px 0 6px 0;
    text-transform: none;
}

.legacy-content .box-subtitle {
    color: #6b7890;
    font-weight: 500;
}

.legacy-content .box-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-right: 8px;
    border-radius: 50%;
    background: #0b6fb3;
    color: #fff;
    font-weight: 700;
}

.legacy-content .service-cards .digitization-card {
    position: relative;
    padding-top: 32px;
}

.legacy-content .service-cards .digitization-card .service-letter {
    position: absolute;
    top: -29px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    border-radius: 20%;
    border: 3px solid #0b6fb3;
    background: #0b6fb3;
    color: #ffffff;
    font-size: 46px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    margin-top: -6px;
    padding-bottom: 5px;
}

.legacy-content .separator-line {
    height: 1px;
    width: 100%;
    margin: 28px 0;
    background: #e4ecf5;
}

.legacy-content .tagline {
    margin: 10px 0;
}

.legacy-content .breadcrumb {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin: 0 0 12px 0;
    color: #6b7890;
}

.legacy-content .breadcrumb .arrow::after {
    content: '>';
    margin-left: 8px;
    color: #9aa6b8;
}

.legacy-content .button {
    display: inline-block;
    padding: 10px 16px;
    background: #0b6fb3;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background .2s ease, box-shadow .2s ease, transform .2s ease;
}

.legacy-content .button:hover {
    background: #084f80;
    color: #fff;
    box-shadow: 0 6px 16px rgba(8, 79, 128, 0.3);
    transform: translateY(-2px);
}

.legacy-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 18px 0;
}

.legacy-content table th,
.legacy-content table td {
    border: 1px solid #dce4ee;
    padding: 10px 12px;
    text-align: left;
}

.legacy-content blockquote {
    border-left: 4px solid #0b6fb3;
    padding: 12px 18px;
    background: #f4f9ff;
    color: #1d2b3c;
    margin: 18px 0;
}

.legacy-content iframe {
    max-width: 100%;
}

@media (max-width: 991px) {
    .legacy-content .one-half,
    .legacy-content .one-third,
    .legacy-content .one-fourth,
    .legacy-content .full-width {
        flex-basis: 100%;
    }
}

/* Competitive analysis case layout */
.legacy-case-layout {
    background: #f4f7fb;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 18px 36px rgba(10, 31, 52, 0.08);
}

.legacy-case-layout .col-container {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.75fr);
    gap: 22px;
    margin: 18px 0;
}

.legacy-case-layout .one-half,
.legacy-case-layout .one-fourth {
    background: transparent;
    padding: 0;
    border: 0;
    box-shadow: none;
}

.legacy-case-layout .legacy-case-main,
.legacy-case-layout .legacy-case-side {
    display: grid;
    gap: 18px;
}

.legacy-case-layout .legacy-case-card {
    background: #ffffff;
    border: 1px solid #e4ecf5;
    border-radius: 14px;
    padding: 18px 20px;
    box-shadow: 0 12px 24px rgba(12, 31, 49, 0.08);
}

.legacy-case-layout .legacy-case-intro {
    padding: 20px 22px;
}

.legacy-case-layout .legacy-case-item + .legacy-case-item {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #edf2f8;
}

.legacy-case-layout h1 {
    font-size: 26px;
}

.legacy-case-layout h2 {
    font-size: 18px;
}

.legacy-case-layout .legacy-case-card h2 {
    margin-bottom: 10px;
}

.legacy-case-layout .legacy-case-card p {
    margin-bottom: 12px;
}

.legacy-case-layout .legacy-case-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.legacy-case-layout .legacy-case-actions a:last-child {
    margin-left: auto;
}

.legacy-case-layout .legacy-case-actions img {
    float: none !important;
    margin-top: 0 !important;
}

@media (max-width: 991px) {
    .legacy-case-layout .col-container {
        grid-template-columns: 1fr;
    }
}
