/* ==========================================================
   Supalak theme — navy / white redesign (2026)
   ========================================================== */

:root {
    --sp-navy: #0f2f6b;
    --sp-blue: #1450a8;
    --sp-blue-hover: #0f3f88;
    --sp-ink: #1b2740;
    --sp-muted: #5f6b80;
    --sp-line: #e3e9f3;
    --sp-soft: #f3f6fb;
    --sp-white: #ffffff;
    --sp-radius: 14px;
    --sp-shadow: 0 10px 30px rgba(15, 47, 107, .08);

    --cnvs-themecolor: #1450a8;
    --cnvs-themecolor-rgb: 20, 80, 168;
    --cnvs-body-font: "Sarabun", sans-serif;
    --cnvs-primary-font: "Mitr", sans-serif;
}

body {
    background: var(--sp-white);
    color: var(--sp-ink);
    font-family: "Sarabun", sans-serif;
}

.font,
.sp-h {
    font-family: "Mitr", sans-serif;
}

.sp-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- Buttons ---------- */
.sp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: 8px;
    font-family: "Mitr", sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.2;
    text-decoration: none;
    border: 1.5px solid var(--sp-blue);
    transition: background .2s, color .2s, transform .2s;
    white-space: nowrap;
}

.sp-btn:hover {
    transform: translateY(-1px);
}

.sp-btn-primary {
    background: var(--sp-blue);
    color: #fff !important;
}

.sp-btn-primary:hover {
    background: var(--sp-blue-hover);
    border-color: var(--sp-blue-hover);
}

.sp-btn-outline {
    background: #fff;
    color: var(--sp-blue) !important;
}

.sp-btn-outline:hover {
    background: var(--sp-soft);
}

.sp-btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

.sp-link {
    font-family: "Mitr", sans-serif;
    color: var(--sp-blue) !important;
    text-decoration: underline;
    text-underline-offset: 6px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.sp-link:hover {
    color: var(--sp-navy) !important;
}

/* ---------- Header ---------- */
#header.sp-header,
#header.sp-header #header-wrap {
    background: #fff;
    border-bottom: 1px solid var(--sp-line);
}

#header.sp-header .header-row {
    min-height: 76px;
}

.sp-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.sp-logo img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.sp-logo span {
    font-family: "Mitr", sans-serif;
    font-size: 24px;
    font-weight: 500;
    color: var(--sp-navy);
    line-height: 1;
}

#header.sp-header .primary-menu {
    flex-grow: 1;
}

#header.sp-header .menu-container {
    justify-content: center;
}

#header.sp-header .menu-link {
    font-family: "Mitr", sans-serif;
    font-size: 15px;
    font-weight: 300;
    color: var(--sp-ink);
    text-transform: none;
    letter-spacing: 0;
}

#header.sp-header .menu-item.current > .menu-link,
#header.sp-header .menu-item:hover > .menu-link {
    color: var(--sp-blue);
}

@media (max-width: 991.98px) {
    .sp-header-cta {
        display: none;
    }

    .sp-logo span {
        font-size: 20px;
    }
}

/* ---------- Hero ---------- */
.sp-hero {
    position: relative;
    min-height: 560px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #dfeaf7 url('../hero-home.jpg') right bottom / cover no-repeat;
    overflow: hidden;
}

.sp-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(240, 246, 253, .97) 0%, rgba(240, 246, 253, .9) 32%, rgba(240, 246, 253, .25) 58%, rgba(240, 246, 253, 0) 75%);
}

.sp-hero .sp-container {
    position: relative;
    width: 100%;
}

.sp-hero h1 {
    font-family: "Mitr", sans-serif;
    font-size: clamp(36px, 5vw, 60px);
    font-weight: 500;
    line-height: 1.25;
    color: var(--sp-navy);
    margin-bottom: 16px;
}

.sp-hero p {
    font-size: 20px;
    color: var(--sp-ink);
    margin-bottom: 28px;
}

.sp-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

@media (max-width: 767.98px) {
    .sp-hero {
        min-height: 0;
        display: block;
        background: #eef4fb;
        padding-top: 32px;
    }

    .sp-hero::before {
        display: none;
    }

    .sp-hero p {
        font-size: 16px;
    }

    .sp-hero-img {
        display: block;
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        object-fit: cover;
        margin-top: 8px;
    }

    .sp-hero-actions {
        flex-direction: column;
        padding: 20px 0 28px;
    }

    .sp-hero-actions .sp-btn {
        width: 100%;
    }
}

@media (min-width: 768px) {
    .sp-hero-img {
        display: none;
    }

    .sp-hero-copy {
        max-width: 560px;
    }
}

/* ---------- Generic section ---------- */
.sp-section {
    padding: 56px 0;
}

.sp-section-soft {
    background: var(--sp-soft);
}

.sp-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.sp-title {
    font-family: "Mitr", sans-serif;
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 500;
    color: var(--sp-navy);
    margin: 0;
}

.sp-lead {
    color: var(--sp-muted);
    font-size: 17px;
    line-height: 1.7;
}

/* ---------- Path cards (ready / build) ---------- */
.sp-paths {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: -0px;
}

.sp-path {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    background: var(--sp-soft);
    border-radius: var(--sp-radius);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: box-shadow .2s, transform .2s;
}

.sp-path:hover {
    box-shadow: var(--sp-shadow);
    transform: translateY(-2px);
}

.sp-path img {
    width: 100%;
    height: 100%;
    min-height: 140px;
    object-fit: cover;
}

.sp-path-body {
    position: relative;
    padding: 20px 22px 48px;
}

.sp-path-body h3 {
    font-family: "Mitr", sans-serif;
    font-size: 19px;
    font-weight: 500;
    color: var(--sp-navy);
    margin-bottom: 8px;
}

.sp-path-body p {
    color: var(--sp-muted);
    font-size: 14px;
    margin: 0;
}

.sp-round {
    position: absolute;
    right: 18px;
    bottom: 16px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--sp-navy);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 13px;
}

@media (max-width: 767.98px) {
    .sp-paths {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .sp-path {
        grid-template-columns: 110px 1fr;
    }

    .sp-path img {
        min-height: 100px;
    }

    .sp-path-body {
        padding: 14px 44px 14px 16px;
    }

    .sp-path-body h3 {
        font-size: 16px;
    }

    .sp-round {
        top: 50%;
        bottom: auto;
        transform: translateY(-50%);
        background: #fff;
        color: var(--sp-ink);
        border: 1.5px solid var(--sp-ink);
    }
}

/* ---------- Project cards ---------- */
.sp-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.sp-card {
    background: var(--sp-soft);
    border-radius: var(--sp-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.sp-card-img {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.sp-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}

.sp-card:hover .sp-card-img img {
    transform: scale(1.04);
}

.sp-card-body {
    padding: 16px 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
}

.sp-card-body h3 {
    font-family: "Mitr", sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: var(--sp-ink);
    margin: 0;
}

.sp-card-body p {
    color: var(--sp-muted);
    font-size: 14px;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sp-card-body .sp-btn {
    align-self: flex-start;
    margin-top: auto;
}

@media (max-width: 991.98px) {
    .sp-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575.98px) {
    .sp-grid-3 {
        grid-template-columns: 1fr;
    }
}

/* ---------- Custom build ---------- */
.sp-build {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 32px;
    align-items: center;
}

.sp-build-imgs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.sp-build-imgs a {
    display: block;
    border-radius: var(--sp-radius);
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.sp-build-imgs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 767.98px) {
    .sp-build {
        grid-template-columns: 1fr;
    }
}

/* ---------- Process steps ---------- */
.sp-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 8px 0;
}

.sp-step {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 8px 28px;
}

.sp-step + .sp-step {
    border-left: 1px solid var(--sp-line);
}

.sp-step i {
    font-size: 44px;
    color: var(--sp-navy);
    line-height: 1;
}

.sp-step h4 {
    font-family: "Mitr", sans-serif;
    font-size: 17px;
    font-weight: 500;
    color: var(--sp-navy);
    margin: 0 0 4px;
}

.sp-step p {
    color: var(--sp-muted);
    font-size: 14px;
    margin: 0;
}

@media (max-width: 767.98px) {
    .sp-steps {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .sp-step {
        padding: 8px 0;
    }

    .sp-step + .sp-step {
        border-left: 0;
        border-top: 1px solid var(--sp-line);
        padding-top: 18px;
    }
}

/* ---------- Reward form ---------- */
.sp-reward {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: center;
    background: var(--sp-soft);
    border-radius: var(--sp-radius);
    padding: 36px;
}

.sp-reward form {
    background: #fff;
    border-radius: var(--sp-radius);
    padding: 24px;
    box-shadow: var(--sp-shadow);
}

.sp-reward label {
    font-family: "Mitr", sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: var(--sp-ink);
    text-transform: none;
    letter-spacing: 0;
}

.sp-reward .form-control {
    border-radius: 8px;
    border-color: var(--sp-line);
    padding: 10px 14px;
}

.sp-reward .form-control:focus {
    border-color: var(--sp-blue);
    box-shadow: 0 0 0 3px rgba(20, 80, 168, .12);
}

@media (max-width: 767.98px) {
    .sp-reward {
        grid-template-columns: 1fr;
        padding: 22px;
    }
}

/* ---------- CTA band ---------- */
.sp-cta {
    background: var(--sp-navy);
    color: #fff;
    padding: 34px 0;
}

.sp-cta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    flex-wrap: wrap;
}

.sp-cta h2 {
    font-family: "Mitr", sans-serif;
    font-size: 28px;
    font-weight: 500;
    color: #fff;
    margin: 0 0 4px;
}

.sp-cta p {
    color: rgba(255, 255, 255, .8);
    margin: 0;
}

.sp-cta-contacts {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.sp-cta-contact {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff !important;
    text-decoration: none;
}

.sp-cta-contact i {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, .6);
    display: grid;
    place-items: center;
    font-size: 18px;
}

.sp-cta-contact small {
    display: block;
    color: rgba(255, 255, 255, .75);
    font-size: 13px;
}

.sp-cta-contact strong {
    font-family: "Mitr", sans-serif;
    font-weight: 400;
    font-size: 18px;
}

/* ---------- Footer ---------- */
.sp-footer {
    background: #fff;
    border-top: 1px solid var(--sp-line);
    padding: 48px 0 0;
    color: var(--sp-ink);
}

.sp-footer h5 {
    font-family: "Mitr", sans-serif;
    font-weight: 500;
    font-size: 16px;
    color: var(--sp-navy);
    margin-bottom: 14px;
    text-transform: none;
    letter-spacing: 0;
}

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

.sp-footer li {
    margin-bottom: 8px;
}

.sp-footer a {
    color: var(--sp-muted);
    text-decoration: none;
    font-size: 14px;
}

.sp-footer a:hover {
    color: var(--sp-blue);
}

.sp-footer-bottom {
    border-top: 1px solid var(--sp-line);
    margin-top: 36px;
    padding: 18px 0;
    font-size: 13px;
    color: var(--sp-muted);
    text-align: center;
}

/* ---------- Mobile bottom bar ---------- */
.sp-mobilebar {
    display: none;
}

@media (max-width: 767.98px) {
    .sp-mobilebar {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 299;
        background: var(--sp-navy);
        padding-bottom: env(safe-area-inset-bottom);
    }

    .sp-mobilebar a {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 14px 4px;
        color: #fff !important;
        font-family: "Mitr", sans-serif;
        font-size: 14px;
        text-decoration: none;
    }

    .sp-mobilebar a + a {
        border-left: 1px solid rgba(255, 255, 255, .15);
    }

    body {
        padding-bottom: 56px;
    }

    #gotoTop {
        bottom: 72px !important;
    }
}

/* ---------- Inner page header ---------- */
.sp-page-head {
    position: relative;
    padding: 44px 0 40px;
    background: #eef4fb url('../hero-home.jpg') right 70% / cover no-repeat;
}

.sp-page-head::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(240, 246, 253, .98) 0%, rgba(240, 246, 253, .92) 45%, rgba(240, 246, 253, .55) 100%);
}

.sp-page-head .sp-container {
    position: relative;
}

.sp-page-head h1 {
    font-family: "Mitr", sans-serif;
    font-weight: 500;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.3;
    color: var(--sp-navy);
    margin: 0;
}

.sp-page-head p {
    font-size: 18px;
    color: var(--sp-ink);
    margin: 8px 0 0;
    max-width: 640px;
}

.sp-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--sp-muted);
    margin-bottom: 12px;
}

.sp-crumbs a {
    color: var(--sp-muted);
    text-decoration: none;
}

.sp-crumbs a:hover {
    color: var(--sp-blue);
}

.sp-crumbs i {
    font-size: 10px;
}

.sp-crumbs span {
    color: var(--sp-ink);
    max-width: 50ch;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---------- Highlights strip ---------- */
.sp-highlights {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.sp-highlight {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    background: var(--sp-soft);
    border-radius: var(--sp-radius);
}

.sp-highlight i {
    flex: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    color: var(--sp-blue);
    display: grid;
    place-items: center;
    font-size: 20px;
}

.sp-highlight span {
    font-family: "Mitr", sans-serif;
    font-size: 15px;
    color: var(--sp-navy);
}

@media (max-width: 991.98px) {
    .sp-highlights {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .sp-highlight {
        padding: 14px;
        gap: 10px;
    }

    .sp-highlight i {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .sp-highlight span {
        font-size: 14px;
    }
}

/* ---------- Empty state ---------- */
.sp-empty {
    text-align: center;
    padding: 48px 20px;
    background: var(--sp-soft);
    border-radius: var(--sp-radius);
    color: var(--sp-muted);
}

.sp-empty i {
    font-size: 40px;
    color: var(--sp-blue);
    display: block;
    margin-bottom: 12px;
}

/* ---------- Article ---------- */
.sp-article {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 40px;
    align-items: start;
}

.sp-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    color: var(--sp-muted);
    font-size: 14px;
    margin-bottom: 20px;
}

.sp-article-meta i {
    color: var(--sp-blue);
    margin-right: 6px;
}

.sp-article-cover {
    border-radius: var(--sp-radius);
    overflow: hidden;
    margin-bottom: 28px;
}

.sp-article-cover img {
    width: 100%;
    display: block;
}

.sp-prose {
    font-size: 17px;
    line-height: 1.85;
    color: var(--sp-ink);
    overflow-wrap: anywhere;
}

.sp-prose h1,
.sp-prose h2,
.sp-prose h3,
.sp-prose h4 {
    font-family: "Mitr", sans-serif;
    color: var(--sp-navy);
    font-weight: 500;
    margin: 1.4em 0 .6em;
}

.sp-prose img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.sp-prose a {
    color: var(--sp-blue);
    text-decoration: underline;
}

.sp-prose table {
    width: 100%;
    display: block;
    overflow-x: auto;
}

.sp-prose iframe {
    max-width: 100%;
}

.sp-share {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--sp-line);
}

.sp-share > span {
    font-family: "Mitr", sans-serif;
    color: var(--sp-navy);
    margin-right: 4px;
}

.sp-share a,
.sp-share button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 8px;
    background: var(--sp-soft);
    border: 0;
    color: var(--sp-ink);
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
}

.sp-share a:hover,
.sp-share button:hover {
    background: var(--sp-line);
}

.sp-aside {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sp-aside-card {
    background: var(--sp-soft);
    border-radius: var(--sp-radius);
    padding: 22px;
}

.sp-aside-card h3 {
    font-family: "Mitr", sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: var(--sp-navy);
    margin-bottom: 8px;
}

.sp-aside-card p {
    color: var(--sp-muted);
    font-size: 14px;
    margin-bottom: 16px;
}

.sp-aside-card .sp-btn {
    width: 100%;
    margin-bottom: 10px;
}

.sp-mini {
    display: flex;
    gap: 12px;
    text-decoration: none;
    padding: 10px 0;
}

.sp-mini + .sp-mini {
    border-top: 1px solid var(--sp-line);
}

.sp-mini img {
    width: 76px;
    height: 56px;
    object-fit: cover;
    border-radius: 8px;
    flex: none;
}

.sp-mini span {
    font-family: "Mitr", sans-serif;
    font-size: 14px;
    color: var(--sp-ink);
    line-height: 1.4;
}

.sp-mini:hover span {
    color: var(--sp-blue);
}

@media (max-width: 991.98px) {
    .sp-article {
        grid-template-columns: 1fr;
    }

    .sp-aside {
        position: static;
    }
}

/* ---------- Contact ---------- */
.sp-contact {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 32px;
    align-items: start;
}

.sp-contact-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sp-contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 18px 20px;
    background: var(--sp-soft);
    border-radius: var(--sp-radius);
    color: inherit;
    text-decoration: none;
}

a.sp-contact-item:hover {
    box-shadow: var(--sp-shadow);
}

.sp-contact-item i {
    flex: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--sp-navy);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 18px;
}

.sp-contact-item h3 {
    font-family: "Mitr", sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: var(--sp-navy);
    margin: 0 0 4px;
}

.sp-contact-item p {
    margin: 0;
    color: var(--sp-ink);
    font-size: 15px;
}

.sp-map {
    border-radius: var(--sp-radius);
    overflow: hidden;
    min-height: 380px;
    background: var(--sp-soft);
}

.sp-map iframe {
    width: 100%;
    height: 100%;
    min-height: 380px;
    border: 0;
    display: block;
}

@media (max-width: 767.98px) {
    .sp-contact {
        grid-template-columns: 1fr;
    }
}

/* ---------- Loan calculator ---------- */
.sp-calc {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 28px;
    align-items: start;
}

.sp-panel {
    background: #fff;
    border: 1px solid var(--sp-line);
    border-radius: var(--sp-radius);
    padding: 28px;
    box-shadow: var(--sp-shadow);
}

.sp-panel label {
    font-family: "Mitr", sans-serif;
    font-weight: 400;
    font-size: 15px;
    color: var(--sp-ink);
    text-transform: none;
    letter-spacing: 0;
    margin-bottom: 6px;
}

.sp-panel .form-control {
    border-radius: 8px;
    border-color: var(--sp-line);
    padding: 11px 14px;
    font-size: 16px;
}

.sp-panel .form-control:focus {
    border-color: var(--sp-blue);
    box-shadow: 0 0 0 3px rgba(20, 80, 168, .12);
}

.sp-panel .form-text {
    font-size: 13px;
    color: var(--sp-muted);
}

.sp-result {
    background: var(--sp-navy);
    color: #fff;
    border-radius: var(--sp-radius);
    padding: 28px;
}

.sp-result small {
    color: rgba(255, 255, 255, .75);
    font-size: 14px;
}

.sp-result .sp-amount {
    font-family: "Mitr", sans-serif;
    font-size: clamp(34px, 5vw, 46px);
    font-weight: 500;
    line-height: 1.2;
    margin: 4px 0 20px;
    color: #fff;
}

.sp-result dl {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px 16px;
    margin: 0;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, .2);
    font-size: 15px;
}

.sp-result dt {
    font-weight: 400;
    color: rgba(255, 255, 255, .8);
}

.sp-result dd {
    margin: 0;
    text-align: right;
    font-family: "Mitr", sans-serif;
}

.sp-note {
    font-size: 13px;
    color: var(--sp-muted);
    margin-top: 14px;
    line-height: 1.7;
}

@media (max-width: 767.98px) {
    .sp-calc {
        grid-template-columns: 1fr;
    }

    .sp-panel,
    .sp-result {
        padding: 22px;
    }
}

/* ---------- Project facts / gallery ---------- */
.sp-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 28px;
}

.sp-facts > div {
    background: var(--sp-soft);
    border-radius: 12px;
    padding: 14px 18px;
}

.sp-facts small {
    display: block;
    color: var(--sp-muted);
    font-size: 13px;
}

.sp-facts strong {
    font-family: "Mitr", sans-serif;
    font-weight: 500;
    color: var(--sp-navy);
    font-size: 17px;
}

.sp-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.sp-gallery a {
    display: block;
    aspect-ratio: 4 / 3;
    border-radius: 10px;
    overflow: hidden;
}

.sp-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}

.sp-gallery a:hover img {
    transform: scale(1.05);
}

@media (max-width: 575.98px) {
    .sp-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

.sp-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    background: #e6efff;
    color: var(--sp-blue);
    font-family: "Mitr", sans-serif;
    font-size: 12px;
}

.sp-badge-muted {
    background: #eceff3;
    color: var(--sp-muted);
}

.sp-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
    font-size: 13px;
    color: var(--sp-muted);
}

.sp-card-meta i {
    color: var(--sp-blue);
}

/* ---------- Header menu spacing ---------- */
@media (min-width: 992px) {
    #header.sp-header .menu-container > .menu-item > .menu-link {
        padding-left: 18px;
        padding-right: 18px;
    }
}

/* ---------- Testimonials ---------- */
.sp-reviews {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    background: var(--sp-soft);
    border-radius: var(--sp-radius);
    overflow: hidden;
}

.sp-reviews-img {
    min-height: 280px;
    background: #dfe7f3 center / cover no-repeat;
}

.sp-reviews-body {
    position: relative;
    padding: 36px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sp-reviews-body .bi-quote {
    font-size: 44px;
    color: #b8c6dc;
    line-height: 1;
}

.sp-review {
    display: none;
}

.sp-review.is-active {
    display: block;
}

.sp-review p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--sp-ink);
    margin: 8px 0 14px;
}

.sp-review strong {
    font-family: "Mitr", sans-serif;
    font-weight: 500;
    color: var(--sp-navy);
}

.sp-review small {
    display: block;
    color: var(--sp-muted);
}

.sp-dots {
    display: flex;
    gap: 6px;
    margin-top: 18px;
}

.sp-dots button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 0;
    padding: 0;
    background: #c5d0e0;
}

.sp-dots button.is-active {
    background: var(--sp-blue);
}

@media (max-width: 767.98px) {
    .sp-reviews {
        grid-template-columns: 1fr;
    }

    .sp-reviews-img {
        min-height: 200px;
    }

    .sp-reviews-body {
        padding: 24px;
    }
}

/* ---------- About ---------- */
.sp-about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.sp-about-img {
    border-radius: var(--sp-radius);
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.sp-about-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sp-stats {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

.sp-stats div {
    background: var(--sp-soft);
    border-radius: 12px;
    padding: 14px 20px;
}

.sp-stats strong {
    display: block;
    font-family: "Mitr", sans-serif;
    font-size: 28px;
    font-weight: 500;
    color: var(--sp-navy);
    line-height: 1.2;
}

.sp-stats small {
    color: var(--sp-muted);
}

@media (max-width: 767.98px) {
    .sp-about {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}
