/* Unified inner-page layout — Techmagnate style */

body.tm-inner-page { background: var(--site-bg, #ffffff); }

/* Breadcrumb */
.tm-breadcrumb-bar {
    background: #fff;
    border-bottom: 1px solid var(--tm-border, #C3C3C3);
    padding: .75rem 0;
    margin-top: 0;
}
.tm-breadcrumb {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem;
    font-size: .82rem;
}
.tm-breadcrumb li { display: inline-flex; align-items: center; color: #767B79; }
.tm-breadcrumb li + li::before {
    content: '/';
    margin-right: .35rem;
    color: #C3C3C3;
}
.tm-breadcrumb a {
    color: #0570AE;
    text-decoration: none;
    font-weight: 600;
}
.tm-breadcrumb a:hover { text-decoration: underline; }
.tm-breadcrumb .active { color: #767B79; font-weight: 500; }

/* Page hero */
.tm-page-hero {
    background: linear-gradient(135deg, #023B5E 0%, #0570AE 55%, #0570AE 100%);
    color: #fff;
    padding: 3.25rem 0 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.tm-page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255,255,255,.08) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(5, 112, 174,.12) 0%, transparent 40%);
    pointer-events: none;
}
.tm-page-hero .container-fluid { position: relative; z-index: 1; }
.tm-page-tag {
    display: inline-block;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #C3C3C3;
    margin-bottom: .65rem;
}
.tm-page-hero h1 {
    font-size: clamp(1.85rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 .75rem;
    color: #fff;
}
.tm-page-lead {
    font-size: 1.05rem;
    opacity: .9;
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.65;
}

/* Content area */
.tm-page-content {
    padding: 3.5rem 0 4rem;
    background: #ffffff;
}
.tm-page-inner {
    background: var(--site-surface, #fff);
    border: 1px solid var(--site-border, #C3C3C3);
    border-radius: var(--site-radius, 16px);
    padding: clamp(1.5rem, 3vw, 2.5rem);
    box-shadow: var(--site-shadow, 0 4px 24px rgba(6, 33, 62, .06));
}
.tm-page-inner.tm-page-inner--flush {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

/* Prose typography */
.tm-prose { color: #767B79; line-height: 1.75; font-size: 1rem; }
.tm-prose > *:first-child { margin-top: 0; }
.tm-prose > *:last-child { margin-bottom: 0; }
.tm-prose .lead, .tm-prose p.lead {
    font-size: 1.15rem;
    color: #767B79;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}
.tm-prose h2 { font-size: 1.5rem; font-weight: 800; color: #023B5E; margin: 2rem 0 1rem; }
.tm-prose h3 { font-size: 1.2rem; font-weight: 700; color: #023B5E; margin: 1.75rem 0 .75rem; }
.tm-prose h4 { font-size: 1.05rem; font-weight: 700; color: #023B5E; margin: 1.25rem 0 .5rem; }
.tm-prose p { margin-bottom: 1rem; }
.tm-prose ul, .tm-prose ol { margin-bottom: 1.25rem; padding-left: 1.35rem; }
.tm-prose li { margin-bottom: .4rem; }
.tm-prose a:not(.btn-tm-primary):not(.btn-tm-outline):not(.btn-tm-orange) {
    color: #0570AE;
    font-weight: 600;
    text-decoration: none;
}
.tm-prose a:not(.btn-tm-primary):not(.btn-tm-outline):not(.btn-tm-orange):hover { text-decoration: underline; }
.tm-prose img { max-width: 100%; height: auto; border-radius: 12px; }
.tm-prose hr { border-color: #C3C3C3; margin: 2rem 0; }

/* Stat boxes */
.tm-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin: 2rem 0;
}
.tm-stat-item {
    text-align: center;
    padding: 1.75rem 1rem;
    background: #ffffff;
    border: 1px solid #C3C3C3;
    border-radius: 12px;
    transition: box-shadow .2s, transform .2s;
}
.tm-stat-item:hover {
    box-shadow: 0 8px 24px rgba(6, 33, 62, .08);
    transform: translateY(-2px);
}
.tm-stat-item .num {
    font-size: 2rem;
    font-weight: 800;
    color: #0570AE;
    line-height: 1;
    margin-bottom: .35rem;
}
.tm-stat-item .lbl { font-size: .9rem; color: #767B79; font-weight: 600; margin: 0; }

/* Cards grid */
.tm-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}
.tm-info-card {
    background: #fff;
    border: 1px solid #C3C3C3;
    border-radius: 14px;
    padding: 1.5rem;
    height: 100%;
    transition: box-shadow .2s, border-color .2s;
}
.tm-info-card:hover {
    border-color: #C3C3C3;
    box-shadow: 0 8px 28px rgba(11, 92, 171, .1);
}
.tm-info-card h3, .tm-info-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #023B5E;
    margin-bottom: .5rem;
}
.tm-info-card p { font-size: .92rem; color: #767B79; margin: 0; line-height: 1.6; }
.tm-info-card .tm-link {
    display: inline-block;
    margin-top: .75rem;
    font-size: .85rem;
    font-weight: 700;
    color: #0570AE;
    text-decoration: none;
}
.tm-info-card .tm-link:hover { text-decoration: underline; }

.tm-industry-card {
    display: block;
    background: #fff;
    border: 1px solid #C3C3C3;
    border-radius: 14px;
    padding: 1.5rem;
    height: 100%;
    text-decoration: none;
    transition: box-shadow .2s, transform .2s, border-color .2s;
}
.tm-industry-card:hover {
    border-color: #C3C3C3;
    box-shadow: 0 10px 32px rgba(11, 92, 171, .12);
    transform: translateY(-3px);
}
.tm-industry-card .icon-wrap {
    width: 48px; height: 48px; border-radius: 10px;
    background: linear-gradient(135deg, #0570AE, #0570AE);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; flex-shrink: 0;
}
.tm-industry-card h3 { font-size: 1rem; font-weight: 700; color: #023B5E; margin: 0 0 .35rem; }
.tm-industry-card p { font-size: .85rem; color: #767B79; margin: 0 0 .5rem; line-height: 1.5; }
.tm-industry-card .more { font-size: .82rem; font-weight: 700; color: #0570AE; }

/* Blog cards */
.tm-blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.75rem;
}
.tm-blog-card {
    background: #fff;
    border: 1px solid #C3C3C3;
    border-radius: 14px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: box-shadow .2s, transform .2s;
}
.tm-blog-card:hover {
    box-shadow: 0 12px 36px rgba(6, 33, 62, .1);
    transform: translateY(-4px);
}
.tm-blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.tm-blog-card .body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.tm-blog-card .cat {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    background: #ffffff;
    color: #0570AE;
    padding: .25rem .65rem;
    border-radius: 4px;
    margin-bottom: .75rem;
}
.tm-blog-card h2 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #023B5E;
    margin-bottom: .5rem;
    line-height: 1.4;
}
.tm-blog-card h2 a { color: inherit; text-decoration: none; }
.tm-blog-card h2 a:hover { color: #0570AE; }
.tm-blog-card .excerpt { font-size: .88rem; color: #767B79; flex: 1; margin-bottom: 1rem; }
.tm-blog-card .read-more {
    font-size: .85rem;
    font-weight: 700;
    color: #0570AE;
    text-decoration: none;
}
.tm-blog-card .read-more:hover { text-decoration: underline; }

/* Blog post */
.tm-post-meta {
    font-size: .88rem;
    color: #767B79;
    margin-bottom: 1.5rem;
}
.tm-post-meta .cat {
    display: inline-block;
    background: #0570AE;
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    padding: .3rem .75rem;
    border-radius: 4px;
    margin-right: .5rem;
}
.tm-post-featured {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 0 0 16px 16px;
}
.tm-post-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #767B79;
}
.tm-post-content h2, .tm-post-content h3 { color: #023B5E; margin-top: 2rem; }

/* Services list */
.tm-svc-list-hero .tm-page-lead { max-width: 640px; }
.tm-svc-group-block { margin-bottom: 3rem; }
.tm-svc-group-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #023B5E;
    margin-bottom: 1.5rem;
    padding-bottom: .65rem;
    border-bottom: 3px solid #C3C3C3;
    display: flex;
    align-items: center;
    gap: .65rem;
}
.tm-svc-cat-title {
    font-size: .88rem;
    font-weight: 700;
    color: #0570AE;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 1rem;
}
.tm-svc-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}
.tm-svc-list-card {
    border-radius: 14px;
    padding: 1.5rem;
    height: 100%;
    border: 1px solid rgba(255,255,255,.35);
    box-shadow: 0 6px 24px rgba(44, 62, 80, .1);
    transition: transform .25s, box-shadow .25s;
    text-decoration: none;
    display: block;
}
.tm-svc-list-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 40px rgba(44, 62, 80, .15);
}
.tm-svc-list-card .icon {
    width: 48px; height: 48px; border-radius: 10px;
    background: rgba(255,255,255,.9); color: #023B5E;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; margin-bottom: .85rem;
}
.tm-svc-list-card h3 { font-size: 1rem; font-weight: 700; color: #023B5E; margin-bottom: .5rem; }
.tm-svc-list-card p { font-size: .88rem; color: #767B79; margin-bottom: .75rem; line-height: 1.55; }
.tm-svc-list-card .more {
    font-size: .82rem; font-weight: 700; color: #023B5E;
    background: rgba(255,255,255,.85); padding: .4rem 1rem;
    border-radius: 50px; display: inline-flex; align-items: center; gap: .35rem;
}
.tm-svc-tone-1  { background: linear-gradient(135deg, #C3C3C3 0%, #C3C3C3 100%); }
.tm-svc-tone-2  { background: linear-gradient(135deg, #ffffff 0%, #C3C3C3 100%); }
.tm-svc-tone-3  { background: linear-gradient(135deg, #C3C3C3 0%, #C3C3C3 100%); }
.tm-svc-tone-4  { background: linear-gradient(135deg, #ffffff 0%, #C3C3C3 100%); }
.tm-svc-tone-5  { background: linear-gradient(135deg, #C3C3C3 0%, #C3C3C3 100%); }
.tm-svc-tone-6  { background: linear-gradient(135deg, #C3C3C3 0%, #C3C3C3 100%); }
.tm-svc-tone-7  { background: linear-gradient(135deg, #ffffff 0%, #C3C3C3 100%); }
.tm-svc-tone-8  { background: linear-gradient(135deg, #ffffff 0%, #C3C3C3 100%); }
.tm-svc-tone-9  { background: linear-gradient(135deg, #ffffff 0%, #C3C3C3 100%); }
.tm-svc-tone-10 { background: linear-gradient(135deg, #C3C3C3 0%, #C3C3C3 100%); }
.tm-svc-tone-11 { background: linear-gradient(135deg, #C3C3C3 0%, #C3C3C3 100%); }
.tm-svc-tone-12 { background: linear-gradient(135deg, #ffffff 0%, #C3C3C3 100%); }

.tm-filter-bar {
    background: #fff;
    border: 1px solid #C3C3C3;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 2rem;
    text-align: center;
}
.tm-filter-bar a {
    display: inline-block;
    margin: .25rem;
    padding: .45rem 1rem;
    border-radius: 50px;
    font-size: .82rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid #C3C3C3;
    color: #767B79;
    background: #fff;
    transition: all .2s;
}
.tm-filter-bar a:hover { border-color: #0570AE; color: #0570AE; }
.tm-filter-bar a.active {
    background: #023B5E;
    color: #C3C3C3;
    border-color: #023B5E;
}

/* Page CTA band */
.tm-page-cta {
    background: linear-gradient(135deg, #023B5E, #0570AE);
    color: #fff;
    padding: 2.75rem 0;
    text-align: center;
}
.tm-page-cta h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 800;
    margin-bottom: 1.25rem;
    color: #fff;
}
.tm-page-cta .actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    justify-content: center;
}

/* Pagination */
.tm-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    justify-content: center;
    margin-top: 2.5rem;
}
.tm-pagination a, .tm-pagination span {
    min-width: 40px; height: 40px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 8px;
    font-size: .88rem; font-weight: 600;
    text-decoration: none;
    border: 1px solid #C3C3C3;
    color: #767B79;
    background: #fff;
}
.tm-pagination a:hover { border-color: #0570AE; color: #0570AE; }
.tm-pagination .active {
    background: #023B5E;
    color: #C3C3C3;
    border-color: #023B5E;
}

/* FAQ accordion in prose */
.tm-prose .accordion-item {
    border: 1px solid #C3C3C3;
    border-radius: 10px !important;
    margin-bottom: .65rem;
    overflow: hidden;
}
.tm-prose .accordion-button {
    font-weight: 700;
    font-size: .95rem;
    color: #023B5E;
    background: #ffffff;
}
.tm-prose .accordion-button:not(.collapsed) {
    background: #ffffff;
    color: #0570AE;
    box-shadow: none;
}

@media (max-width: 768px) {
    .tm-page-inner { padding: 1.5rem 1.25rem; }
    .tm-stat-grid { grid-template-columns: 1fr; }
    .tm-card-grid, .tm-blog-grid, .tm-svc-card-grid { grid-template-columns: 1fr; }
}
