/*
Theme Name: Source Matrix
Theme URI: https://www.sourcematrix.co.za/
Author: Thomas Bloem
Author URI: https://www.sourcematrix.co.za/
Description: A flexible multi-purpose WordPress theme framework for service businesses, consultants, agencies, charities and professional brands.
Version: 1.0.3
Text Domain: source-matrix
*/

/* -------------------------------------------------------------
   RESET / BASE
------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background: #ffffff;
    color: #1f2937;
    font-family: inherit;
    line-height: 1.7;
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

figure {
    margin: 0;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.25s ease;
}

a:hover,
a:focus {
    text-decoration: none;
}

ul,
ol {
    margin: 0 0 1.2em 1.4em;
    padding: 0;
}

p {
    margin: 0 0 1.2em;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0 0 0.6em;
    color: #000000;
    line-height: 1.1;
}

blockquote {
    margin: 0;
}

.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    white-space: nowrap;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* -------------------------------------------------------------
   LAYOUT
------------------------------------------------------------- */
.site {
    min-height: 100vh;
}

.site-container,
.container {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
}

.site-main {
    display: block;
}

.page-content,
.entry-content,
.entry-summary {
    margin: 0;
}

.entry-header,
.page-header {
    margin-bottom: 30px;
}

.entry-title,
.page-title {
    margin-bottom: 12px;
}

/* -------------------------------------------------------------
   BUTTONS
------------------------------------------------------------- */
button,
input[type="submit"],
input[type="button"],
input[type="reset"],
.button,
.wp-block-button__link,
.sm-button,
.sm-button-primary,
.sm-button-secondary,
.top-bar-button,
.header-cta-button,
.sm-testimonials-button,
.sm-testimonials-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border: 1px solid transparent;
    border-radius: 16px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s ease;
}

button,
input[type="submit"],
input[type="button"],
input[type="reset"],
.button,
.wp-block-button__link,
.sm-button-primary,
.top-bar-button,
.header-cta-button {
    background: #0f4c81;
    color: #ffffff;
}

button:hover,
button:focus,
input[type="submit"]:hover,
input[type="submit"]:focus,
input[type="button"]:hover,
input[type="button"]:focus,
input[type="reset"]:hover,
input[type="reset"]:focus,
.button:hover,
.button:focus,
.wp-block-button__link:hover,
.wp-block-button__link:focus,
.sm-button-primary:hover,
.sm-button-primary:focus,
.top-bar-button:hover,
.top-bar-button:focus,
.header-cta-button:hover,
.header-cta-button:focus {
    background: #08385f;
    color: #ffffff;
}

.sm-button-secondary {
    background: transparent;
    color: #0f4c81;
    border-color: #0f4c81;
}

.sm-button-secondary:hover,
.sm-button-secondary:focus {
    background: #0f4c81;
    color: #ffffff;
}

/* -------------------------------------------------------------
   TOP BAR
------------------------------------------------------------- */
.top-bar {
    background: #0f1720;
    color: #ffffff;
    font-size: 13px;
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.06);
}

.top-bar-inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px 16px;
    flex-wrap: wrap;
    padding: 8px 0;
}

.top-bar-left {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    min-width: auto;
}

.top-bar-right {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px 14px;
    flex: 0 1 auto;
    flex-wrap: wrap;
    min-width: 0;
}

.top-bar-text {
    margin: 0;
    font-weight: 600;
    white-space: nowrap;
}

.top-bar-contact {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #ffffff;
    white-space: nowrap;
    font-size: 13px;
    line-height: 1.2;
}

.top-bar-contact:hover,
.top-bar-contact:focus {
    opacity: 0.92;
}

.top-bar-contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    color: rgba(255, 255, 255, 0.88);
}

.top-bar-contact-icon svg {
    display: block;
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.top-bar-label {
    margin-right: 2px;
    font-weight: 700;
}

.top-bar-socials {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 4px;
}

.top-bar-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #ffffff;
    line-height: 1;
}

.top-bar-socials a:hover,
.top-bar-socials a:focus {
    background: #0f4c81;
    border-color: #0f4c81;
    color: #ffffff;
    transform: translateY(-1px);
}

.top-bar-socials a svg {
    display: block;
    width: 13px;
    height: 13px;
    fill: currentColor;
}

/* -------------------------------------------------------------
   HEADER
------------------------------------------------------------- */
.site-header {
    position: relative;
    z-index: 20;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 1px 0 rgba(17, 24, 39, 0.06);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 22px;
    min-height: 88px;
    padding: 20px 0;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

.site-logo,
.custom-logo-link {
    display: inline-flex;
    align-items: center;
}

.custom-logo,
.site-logo img {
    display: block;
    width: auto;
    max-height: 100px;
}

.site-brand-text {
    display: none;
}

.site-title,
.site-title a,
.site-description {
    margin: 0;
}

.site-title a {
    color: inherit;
}

.nav-toggle {
    display: none;
    margin-left: auto;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

.nav-toggle-bar {
    display: block;
    width: 28px;
    height: 3px;
    margin: 5px 0;
    background: #1f2937;
    border-radius: 2px;
}

.header-navigation-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    flex: 1 1 auto;
    min-width: 0;
}

.main-navigation {
    flex: 1 1 auto;
    min-width: 0;
}

.main-navigation > div,
.main-navigation .menu-primary-container {
    width: 100%;
}

.main-navigation ul,
.primary-menu,
.main-navigation .menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 26px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-navigation li,
.primary-menu li,
.main-navigation .menu li {
    position: relative;
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-navigation a,
.primary-menu a,
.main-navigation .menu a {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 6px 0;
    color: #1f2937;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}

.main-navigation a:hover,
.main-navigation a:focus,
.primary-menu a:hover,
.primary-menu a:focus,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
    color: #0f4c81;
}

.main-navigation a::after,
.primary-menu a::after,
.main-navigation .menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    background: currentColor;
    opacity: 0.85;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}

.main-navigation a:hover::after,
.main-navigation a:focus::after,
.primary-menu a:hover::after,
.primary-menu a:focus::after,
.main-navigation .current-menu-item > a::after,
.main-navigation .current_page_item > a::after {
    transform: scaleX(1);
}

.header-actions {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.header-cta-button {
    padding: 14px 26px;
    border-radius: 18px;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 10px 24px rgba(15, 76, 129, 0.14);
}

/* -------------------------------------------------------------
   HEADER DROPDOWN MENUS
------------------------------------------------------------- */
.main-navigation .menu-item-has-children > a,
.main-navigation .page_item_has_children > a {
    position: relative;
    padding-right: 18px;
}

.main-navigation .menu-item-has-children > a::before,
.main-navigation .page_item_has_children > a::before {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-65%) rotate(45deg);
    transition: transform 0.25s ease;
}

.main-navigation .sub-menu,
.main-navigation ul ul {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 999;
    display: block;
    min-width: 240px;
    margin: 14px 0 0;
    padding: 12px 0;
    list-style: none;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.10);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.main-navigation li:hover > .sub-menu,
.main-navigation li:focus-within > .sub-menu,
.main-navigation li:hover > ul,
.main-navigation li:focus-within > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-navigation .menu-item-has-children:hover > a::before,
.main-navigation .menu-item-has-children:focus-within > a::before,
.main-navigation .page_item_has_children:hover > a::before,
.main-navigation .page_item_has_children:focus-within > a::before {
    transform: translateY(-35%) rotate(225deg);
}

.main-navigation .sub-menu li,
.main-navigation ul ul li {
    width: 100%;
    margin: 0;
    padding: 0;
}

.main-navigation .sub-menu a,
.main-navigation ul ul a {
    display: block;
    width: 100%;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    white-space: normal;
    color: #1f2937;
    background: transparent;
}

.main-navigation .sub-menu a:hover,
.main-navigation .sub-menu a:focus,
.main-navigation ul ul a:hover,
.main-navigation ul ul a:focus {
    color: #0f4c81;
    background: #f8fafc;
}

.main-navigation .sub-menu a::after,
.main-navigation ul ul a::after {
    display: none;
}

.main-navigation .sub-menu .sub-menu,
.main-navigation ul ul ul {
    top: 0;
    left: 100%;
    margin: 0 0 0 12px;
}

/* -------------------------------------------------------------
   HERO
------------------------------------------------------------- */
.sm-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 500px;
    padding: 80px 0;
    overflow: hidden;
    color: #ffffff;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.sm-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(15, 23, 32, 0.72) 0%,
        rgba(15, 23, 32, 0.58) 38%,
        rgba(15, 23, 32, 0.38) 65%,
        rgba(15, 23, 32, 0.20) 100%
    );
    z-index: 1;
}

.sm-hero.overlay-light::before {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.78) 0%,
        rgba(255, 255, 255, 0.60) 42%,
        rgba(255, 255, 255, 0.36) 68%,
        rgba(255, 255, 255, 0.14) 100%
    );
}

.sm-hero .site-container {
    position: relative;
    z-index: 2;
}

.sm-hero-content {
    max-width: 680px;
    padding-top: 10px;
}

.sm-hero.align-left .sm-hero-content {
    margin-left: 0;
    text-align: left;
}

.sm-hero.align-center .sm-hero-content {
    max-width: 840px;
    margin: 0 auto;
    text-align: center;
}

.sm-hero.align-right .sm-hero-content {
    margin-left: auto;
    text-align: right;
}

.sm-hero-title {
    max-width: 11ch;
    margin-bottom: 20px;
    color: #ffffff;
    font-size: clamp(2.4rem, 4.8vw, 4.4rem);
    line-height: 0.96;
    letter-spacing: -0.03em;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.22);
}

.sm-hero.align-center .sm-hero-title {
    max-width: 13ch;
    margin-left: auto;
    margin-right: auto;
}

.sm-hero.align-right .sm-hero-title {
    margin-left: auto;
}

.sm-hero-text {
    max-width: 54ch;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.94);
    font-size: 1.05rem;
    line-height: 1.75;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}

.sm-hero.align-center .sm-hero-text {
    margin-left: auto;
    margin-right: auto;
}

.sm-hero.align-right .sm-hero-text {
    margin-left: auto;
}

.sm-hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 10px;
}

.sm-hero.align-center .sm-hero-buttons {
    justify-content: center;
}

.sm-hero.align-right .sm-hero-buttons {
    justify-content: flex-end;
}

.sm-hero .sm-button,
.sm-hero .sm-button-primary,
.sm-hero .sm-button-secondary {
    min-width: 180px;
    padding: 15px 26px;
    border-radius: 18px;
    font-weight: 700;
}

.sm-hero .sm-button-primary {
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
}

.sm-hero .sm-button-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.36);
    backdrop-filter: blur(4px);
}

.sm-hero .sm-button-secondary:hover,
.sm-hero .sm-button-secondary:focus {
    background: #ffffff;
    color: #0f1720;
    border-color: #ffffff;
}

/* -------------------------------------------------------------
   FRONT PAGE SECTIONS
------------------------------------------------------------- */
.sm-home-intro,
.sm-home-about,
.sm-section {
    padding: 90px 0;
}

.sm-home-intro .sm-section-text {
    text-align: center;
}

.sm-home-intro .sm-section-text {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.sm-section-title {
    margin-bottom: 16px;
    text-align: center;
}

.sm-section-text {
    max-width: 860px;
    margin: 0 auto;
    color: #4b5563;
}

.sm-home-about-grid,
.sm-about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 36px;
    align-items: center;
}

.sm-home-about-content p,
.sm-about-content p {
    color: #4b5563;
}

.sm-home-about-card,
.sm-about-card,
.sm-service-card,
.sm-testimonial-card {
    padding: 30px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    box-shadow: 0 14px 34px rgba(15, 23, 32, 0.06);
}

.sm-home-about-card h3,
.sm-about-card h3,
.sm-service-card h3,
.sm-testimonial-card h3 {
    margin-bottom: 14px;
}

.sm-home-about-card p,
.sm-about-card p,
.sm-service-card p,
.sm-testimonial-card p {
    color: #4b5563;
}

.sm-service-card:hover,
.sm-testimonial-card:hover,
.sm-home-about-card:hover,
.sm-about-card:hover {
    transform: translateY(-3px);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 20px 42px rgba(15, 23, 32, 0.08);
}

/* -------------------------------------------------------------
   FEATURED SERVICES
------------------------------------------------------------- */
.sm-featured-services.sm-services-section {
    padding: 90px 0 100px;
    background: #f8fafc;
}

.sm-featured-services .sm-section-heading {
    max-width: 820px;
    margin: 0 auto 48px;
    text-align: center;
}

.sm-featured-services .sm-section-title,
.sm-featured-services .sm-section-heading h2 {
    margin: 0 0 16px;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.15;
}

.sm-featured-services .sm-section-text {
    max-width: 860px;
    margin: 0 auto;
}

.sm-featured-services .sm-section-text p,
.sm-featured-services .sm-section-heading p {
    margin: 0;
    color: #5b6470;
    font-size: 1.1rem;
    line-height: 1.8;
}

.sm-featured-services .sm-services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    align-items: stretch;
}

.sm-featured-services .sm-service-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 34px 32px 30px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 32, 0.08);
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(15, 23, 32, 0.06);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.sm-featured-services .sm-service-card:hover,
.sm-featured-services .sm-service-card:focus-within {
    transform: translateY(-8px);
    border-color: rgba(15, 76, 129, 0.20);
    box-shadow: 0 20px 40px rgba(15, 23, 32, 0.10);
}

.sm-featured-services .sm-service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 22px;
    border-radius: 18px;
    background: rgba(15, 76, 129, 0.08);
    color: #0f4c81;
}

.sm-featured-services .sm-service-icon svg {
    width: 28px;
    height: 28px;
}

.sm-featured-services .sm-service-card-title,
.sm-featured-services .sm-service-card h3 {
    margin: 0 0 16px;
    font-size: 1.8rem;
    line-height: 1.2;
}

.sm-featured-services .sm-service-card-text {
    flex-grow: 1;
}

.sm-featured-services .sm-service-card-text p,
.sm-featured-services .sm-service-card p {
    margin: 0 0 24px;
    color: #000000;
    line-height: 1.8;
}

.sm-featured-services .sm-service-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    color: #0f4c81;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.25s ease;
}

.sm-featured-services .sm-service-card-link::after {
    content: "→";
    font-size: 1rem;
    line-height: 1;
    transition: transform 0.25s ease;
}

.sm-featured-services .sm-service-card-link:hover,
.sm-featured-services .sm-service-card-link:focus {
    color: #08385f;
}

.sm-featured-services .sm-service-card-link:hover::after,
.sm-featured-services .sm-service-card-link:focus::after {
    transform: translateX(4px);
}

.sm-featured-services .sm-services-button-wrap {
    margin-top: 36px;
    text-align: left;
}

/* -------------------------------------------------------------
   HOME TESTIMONIALS – PREMIUM LOOK
------------------------------------------------------------- */
.sm-testimonials,
.sm-home-testimonials,
.sm-testimonials-section,
.sm-section-testimonials {
    position: relative;
    padding: 90px 0;
    overflow: hidden;
    background: linear-gradient(180deg, #f8f6f2 0%, #ffffff 100%);
}

.sm-testimonials::before,
.sm-home-testimonials::before,
.sm-testimonials-section::before,
.sm-section-testimonials::before {
    content: "";
    position: absolute;
    top: -120px;
    right: -120px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: rgba(193, 154, 107, 0.08);
    pointer-events: none;
}

.sm-testimonials::after,
.sm-home-testimonials::after,
.sm-testimonials-section::after,
.sm-section-testimonials::after {
    content: "";
    position: absolute;
    bottom: -140px;
    left: -100px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(43, 43, 43, 0.04);
    pointer-events: none;
}

.sm-testimonials .container,
.sm-testimonials .site-container,
.sm-home-testimonials .container,
.sm-home-testimonials .site-container,
.sm-testimonials-section .container,
.sm-testimonials-section .site-container,
.sm-section-testimonials .container,
.sm-section-testimonials .site-container {
    position: relative;
    z-index: 2;
}

.sm-testimonials .sm-section-heading,
.sm-home-testimonials .sm-section-heading,
.sm-testimonials-section .sm-section-heading,
.sm-section-testimonials .sm-section-heading {
    max-width: 760px;
    margin: 0 auto 55px;
    text-align: center;
}

.sm-testimonials .sm-section-title,
.sm-testimonials .sm-section-heading h2,
.sm-home-testimonials .sm-section-title,
.sm-home-testimonials .sm-section-heading h2,
.sm-testimonials-section .sm-section-title,
.sm-testimonials-section .sm-section-heading h2,
.sm-section-testimonials .sm-section-title,
.sm-section-testimonials .sm-section-heading h2 {
    margin: 0 0 16px;
    color: #1f1f1f;
    font-size: clamp(2rem, 3vw, 2.9rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    text-align: center;
}

.sm-testimonials .sm-section-text,
.sm-testimonials .sm-section-heading p,
.sm-home-testimonials .sm-section-text,
.sm-home-testimonials .sm-section-heading p,
.sm-testimonials-section .sm-section-text,
.sm-testimonials-section .sm-section-heading p,
.sm-section-testimonials .sm-section-text,
.sm-section-testimonials .sm-section-heading p {
    max-width: 760px;
    margin: 0 auto;
    color: #626262;
    font-size: 1.02rem;
    line-height: 1.8;
    text-align: center;
}

.sm-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    align-items: stretch;
}

.sm-testimonial-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100%;
    padding: 34px 30px 28px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(160, 160, 160, 0.18);
    border-radius: 24px;
    box-shadow: 0 12px 35px rgba(25, 25, 25, 0.07);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.sm-testimonial-card:hover,
.sm-testimonial-card:focus-within {
    transform: translateY(-8px);
    border-color: rgba(193, 154, 107, 0.35);
    box-shadow: 0 22px 50px rgba(25, 25, 25, 0.12);
}

.sm-testimonial-card::before {
    content: "“";
    position: absolute;
    top: 16px;
    left: 22px;
    color: rgba(193, 154, 107, 0.18);
    font-family: Georgia, serif;
    font-size: 4.2rem;
    line-height: 1;
    pointer-events: none;
}

.sm-testimonial-quote {
    position: relative;
    z-index: 1;
    margin-bottom: 28px;
    padding-top: 8px;
}

.sm-testimonial-quote p,
.sm-testimonial-card p {
    margin: 0;
    color: #434343;
    font-size: 1rem;
    line-height: 1.9;
}

.sm-testimonial-footer {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid rgba(130, 130, 130, 0.14);
}

.sm-testimonial-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    min-width: 54px;
    overflow: hidden;
    border-radius: 50%;
    background: linear-gradient(135deg, #d8c3a5 0%, #b58b57 100%);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 8px 18px rgba(181, 139, 87, 0.22);
}

.sm-testimonial-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sm-testimonial-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.sm-testimonial-card .sm-testimonial-name {
    margin: 0;
    color: #1e1e1e;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
}

.sm-testimonial-card .sm-testimonial-role {
    margin: 0;
    color: #7a7a7a;
    font-size: 0.92rem;
    line-height: 1.5;
}

.sm-testimonials-button-wrap {
    margin-top: 42px;
    text-align: center;
}

.sm-testimonials-button,
.sm-testimonials-more {
    padding: 14px 28px;
    border-radius: 999px;
    background: #1f1f1f;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: 0 10px 22px rgba(31, 31, 31, 0.14);
}

.sm-testimonials-button:hover,
.sm-testimonials-button:focus,
.sm-testimonials-more:hover,
.sm-testimonials-more:focus {
    background: #8b6b47;
    color: #ffffff;
    transform: translateY(-2px);
}

/* -------------------------------------------------------------
   CTA
------------------------------------------------------------- */
.sm-cta-section {
    margin-bottom: 60px;
}

.sm-cta-box {
    padding: 56px 40px;
    background: #0f1720;
    color: #ffffff;
    border-radius: 28px;
    text-align: center;
}

.sm-cta-box h1,
.sm-cta-box h2,
.sm-cta-box h3,
.sm-cta-box h4,
.sm-cta-box h5,
.sm-cta-box h6 {
    color: #ffffff;
}

.sm-cta-box p {
    color: #ffffff;
    max-width: 760px;
    margin: 0 auto 24px;
    opacity: 0.92;
}

.sm-cta-box .sm-button,
.sm-cta-box .sm-button-primary {
    min-width: 180px;
    margin-top: 8px;
}
/* -------------------------------------------------------------
   INNER PAGE BANNER
------------------------------------------------------------- */
.sm-page-banner {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 265px;
    padding: 58px 0 54px;
    overflow: hidden;
    background-color: #0f1720;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.sm-page-banner-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        90deg,
        rgba(8, 15, 24, 0.74) 0%,
        rgba(8, 15, 24, 0.58) 44%,
        rgba(8, 15, 24, 0.64) 100%
    );
}

.sm-page-banner .container {
    position: relative;
    z-index: 2;
}

.sm-page-banner-content {
    max-width: 600px;
}

.sm-page-banner-title {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: clamp(2rem, 3.8vw, 3.05rem);
    font-weight: 700;
    line-height: 1.06;
    letter-spacing: -0.03em;
    text-wrap: balance;
}

.sm-page-banner-text {
    display: block;
    max-width: 500px;
}

.sm-page-banner-text p {
    margin: 0;
    color: rgba(255, 255, 255, 0.94);
    font-size: 0.98rem;
    font-weight: 400;
    line-height: 1.62;
}

.sm-page-banner.no-banner-image {
    background: linear-gradient(135deg, #122033 0%, #1a2d46 48%, #0f1720 100%);
}

.sm-page-banner.sm-page-banner-align-left {
    text-align: left;
}

.sm-page-banner.sm-page-banner-align-center {
    text-align: center;
}

.sm-page-banner.sm-page-banner-align-center .sm-page-banner-content,
.sm-page-banner.sm-page-banner-align-center .sm-page-banner-text {
    margin-left: auto;
    margin-right: auto;
}

.sm-page-banner.sm-page-banner-align-right {
    text-align: right;
}

.sm-page-banner.sm-page-banner-align-right .sm-page-banner-content,
.sm-page-banner.sm-page-banner-align-right .sm-page-banner-text {
    margin-left: auto;
}

/* -------------------------------------------------------------
   DEFAULT PAGE CONTENT
------------------------------------------------------------- */
.default-page-template {
    padding: 0 0 100px;
    background: #f3f4f6;
}

.default-page-template > .container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.default-page-template article.page-entry {
    position: relative;
    z-index: 10;
    max-width: 1000px;
    margin: -46px auto 0;
    padding: 50px 50px 55px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.05);
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
}

.sm-page-banner + .container article.page-entry {
    margin-top: -46px;
}

.default-page-template .page-entry-header {
    margin-bottom: 28px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e5e7eb;
}

.default-page-template .entry-title {
    margin: 0;
    color: #0f172a;
    font-size: 2.1rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.4px;
}

.default-page-template .page-featured-image {
    margin: 0 0 32px;
    overflow: hidden;
    border-radius: 14px;
}

.default-page-template .page-featured-image img,
.default-page-template .page-entry-content img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 14px;
}

.default-page-template .page-entry-content {
    color: #334155;
    font-size: 1.06rem;
    line-height: 1.9;
}

.default-page-template .page-entry-content p {
    margin: 0 0 1.5em;
}

.default-page-template .page-entry-content h1,
.default-page-template .page-entry-content h2,
.default-page-template .page-entry-content h3,
.default-page-template .page-entry-content h4,
.default-page-template .page-entry-content h5,
.default-page-template .page-entry-content h6 {
    margin-top: 1.7em;
    margin-bottom: 0.75em;
    color: #0f172a;
    font-weight: 700;
    line-height: 1.3;
}

.default-page-template .page-entry-content h1 {
    font-size: 2rem;
}

.default-page-template .page-entry-content h2 {
    font-size: 1.7rem;
}

.default-page-template .page-entry-content h3 {
    font-size: 1.4rem;
}

.default-page-template .page-entry-content ul,
.default-page-template .page-entry-content ol {
    margin: 0 0 1.5em 1.4em;
    padding: 0;
}

.default-page-template .page-entry-content li {
    margin-bottom: 0.7em;
}

.default-page-template .page-entry-content a {
    color: #145da0;
    font-weight: 600;
    text-decoration: none;
}

.default-page-template .page-entry-content a:hover {
    text-decoration: underline;
}

.default-page-template .page-entry-content blockquote {
    margin: 2em 0;
    padding: 24px 28px;
    background: #f8fafc;
    border-left: 4px solid #145da0;
    border-radius: 12px;
    color: #334155;
    font-style: italic;
}

.default-page-template .page-entry-content table {
    width: 100%;
    margin: 30px 0;
    border-collapse: collapse;
}

.default-page-template .page-entry-content table th,
.default-page-template .page-entry-content table td {
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    text-align: left;
}

.default-page-template .page-entry-content table th {
    background: #f8fafc;
    color: #0f172a;
    font-weight: 700;
}

.default-page-template .page-links {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.default-page-template .page-links a,
.default-page-template .page-links > span {
    display: inline-block;
    margin: 0 6px 6px 0;
    padding: 8px 14px;
    background: #f1f5f9;
    border-radius: 8px;
    color: #0f172a;
    text-decoration: none;
}

/* -------------------------------------------------------------
   SIDEBAR / WIDGETS
------------------------------------------------------------- */
.widget,
.footer-widget {
    margin-bottom: 28px;
}

.widget-title,
.footer-widget-title {
    margin-bottom: 14px;
}

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

.widget li,
.footer-widget li {
    margin-bottom: 10px;
}

/* -------------------------------------------------------------
   FORMS
------------------------------------------------------------- */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="tel"],
input[type="number"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 14px 16px;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    color: #1f2937;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #0f4c81;
    box-shadow: 0 0 0 3px rgba(15, 76, 129, 0.12);
}

textarea {
    min-height: 140px;
    resize: vertical;
}

.search-form {
    display: flex;
    gap: 10px;
}

.search-form label {
    flex: 1 1 auto;
}

/* =========================================================
   PREMIUM FOOTER
========================================================= */
.site-footer {
    position: relative;
    background: linear-gradient(135deg, #030a14 0%, #06111f 42%, #07162a 100%);
    color: rgba(255, 255, 255, 0.78);
    overflow: hidden;
}

.site-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(59,130,246,0.45) 50%, rgba(255,255,255,0) 100%);
}

.site-footer-top {
    padding: 56px 0 34px;
}

.site-footer-grid {
    display: grid;
    grid-template-columns: 1.7fr 0.9fr 0.9fr 1.1fr 1fr 1.1fr;
    gap: 26px;
    align-items: start;
}

.footer-column {
    min-width: 0;
}

.footer-column-brand {
    padding-right: 10px;
}

.footer-logo {
    margin-bottom: 16px;
    line-height: 0;
}

.footer-logo img,
.footer-logo .custom-logo {
    max-width: 220px;
    width: auto;
    height: auto;
}

.footer-site-title {
    display: inline-block;
    margin-bottom: 14px;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: #ffffff;
    text-decoration: none;
}

.footer-site-title:hover,
.footer-site-title:focus {
    color: #60a5fa;
}

.footer-brand-text,
.footer-social-text,
.footer-cta-text {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.70);
}

.footer-heading {
    margin: 0 0 14px;
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0.01em;
    color: #ffffff;
}

.footer-menu,
.footer-contact-list,
.footer-legal-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-menu li,
.footer-contact-list li {
    margin: 0 0 10px;
}

.footer-menu a,
.footer-contact-list a,
.footer-socials a,
.footer-legal-menu a {
    color: rgba(255, 255, 255, 0.74);
    text-decoration: none;
    transition: color 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
}

.footer-menu a:hover,
.footer-menu a:focus,
.footer-contact-list a:hover,
.footer-contact-list a:focus,
.footer-socials a:hover,
.footer-socials a:focus,
.footer-legal-menu a:hover,
.footer-legal-menu a:focus {
    color: #60a5fa;
}

.footer-menu a {
    display: inline-block;
    font-size: 0.92rem;
    line-height: 1.55;
}

.footer-contact-label {
    display: block;
    margin-bottom: 3px;
    font-size: 0.70rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.40);
}

.footer-contact-text,
.footer-contact-list a {
    font-size: 0.92rem;
    line-height: 1.65;
}

.footer-contact-text {
    display: block;
    color: rgba(255, 255, 255, 0.70);
}

.footer-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 11px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1;
}

.footer-socials a:hover,
.footer-socials a:focus {
    border-color: rgba(96, 165, 250, 0.38);
    background: rgba(96, 165, 250, 0.08);
    transform: translateY(-1px);
}

.footer-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 16px;
    padding: 12px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.18);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.footer-cta-button:hover,
.footer-cta-button:focus {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(37, 99, 235, 0.22);
    color: #ffffff;
}

.site-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding: 14px 0 16px;
}

.site-footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.site-footer-copy,
.site-footer-credit {
    margin: 0;
    font-size: 0.80rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.50);
}

.footer-legal-menu {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-legal-menu li {
    margin: 0;
}

.footer-legal-menu a {
    font-size: 0.80rem;
    color: rgba(255, 255, 255, 0.54);
}

/* =========================================================
   RESPONSIVE FOOTER
========================================================= */
@media (max-width: 1500px) {
    .site-footer-grid {
        grid-template-columns: 1.5fr 0.95fr 0.95fr 1.1fr 1fr 1.05fr;
        gap: 22px;
    }
}

@media (max-width: 1320px) {
    .site-footer-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 30px 26px;
    }

    .footer-column-brand {
        grid-column: 1 / -1;
        max-width: 720px;
        padding-right: 0;
    }
}

@media (max-width: 820px) {
    .site-footer-top {
        padding: 48px 0 30px;
    }

    .site-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 22px;
    }

    .footer-column-brand {
        grid-column: 1 / -1;
        max-width: 100%;
    }

    .footer-logo img,
    .footer-logo .custom-logo {
        max-width: 200px;
    }

    .site-footer-bottom-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 560px) {
    .site-footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-site-title {
        font-size: 1.55rem;
    }
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 1400px) {
    .site-footer-grid {
        grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr 1fr;
        gap: 28px;
    }
}

@media (max-width: 1200px) {
    .site-footer-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 34px 28px;
    }
}

@media (max-width: 768px) {
    .site-footer-top {
        padding: 58px 0 36px;
    }

    .site-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px 24px;
    }

    .footer-logo img,
    .footer-logo .custom-logo {
        max-width: 220px;
    }

    .site-footer-bottom-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 576px) {
    .site-footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-site-title {
        font-size: 1.7rem;
    }

    .footer-heading {
        margin-bottom: 14px;
    }

    .footer-socials {
        gap: 8px;
    }

    .footer-socials a {
        padding: 8px 12px;
        font-size: 0.82rem;
    }
}


/* -------------------------------------------------------------
   WORDPRESS DEFAULTS
------------------------------------------------------------- */
.alignleft {
    float: left;
    margin: 0 24px 20px 0;
}

.alignright {
    float: right;
    margin: 0 0 20px 24px;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text,
.gallery-caption {
    margin-top: 8px;
    color: #6b7280;
    font-size: 0.92rem;
}

.sticky {
    display: block;
}

.bypostauthor {
    display: block;
}

/* -------------------------------------------------------------
   TESTIMONIALS PAGE
------------------------------------------------------------- */
.source-matrix-testimonials-page {
    padding: 0;
}

.testimonials-page-hero {
    padding: 34px 0 10px;
    background: #ffffff;
}

.testimonials-page-header {
    max-width: none;
    margin: 0;
    text-align: left;
}

.testimonials-page-title {
    margin: 0;
    color: #0f172a;
    font-size: 36px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.testimonials-page-subtitle {
    max-width: 780px;
    margin: 12px 0 0;
    color: #475569;
    font-size: 18px;
    line-height: 1.7;
}

.testimonials-page-content {
    padding: 4px 0;
}

.testimonials-page-intro {
    max-width: 850px;
    margin: 0 auto;
}

.testimonials-page-intro > *:first-child {
    margin-top: 0;
}

.testimonials-page-intro > *:last-child {
    margin-bottom: 0;
}

.testimonials-grid-section {
    padding: 6px 0 90px;
}

.testimonials-section-heading-wrap {
    max-width: none;
    margin: 0 0 30px;
}

.testimonials-section-heading {
    margin: 0 0 10px;
    color: #0f172a;
    font-size: 36px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.testimonials-section-text {
    max-width: 760px;
    margin: 0;
    color: #475569;
    font-size: 18px;
    line-height: 1.75;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    align-items: stretch;
}

.testimonial-card {
    height: 100%;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.10);
}

.testimonial-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 30px;
}

.testimonial-rating {
    margin-bottom: 18px;
    font-size: 18px;
    line-height: 1;
}

.testimonial-star {
    margin-right: 3px;
    color: #cbd5e1;
}

.testimonial-star.filled {
    color: #f59e0b;
}

.testimonial-quote-wrap {
    flex-grow: 1;
}

.testimonial-quote {
    margin: 0 0 24px;
    color: #1e293b;
    font-size: 18px;
    line-height: 1.8;
}

.testimonial-meta {
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid #e2e8f0;
}

.testimonial-name {
    margin: 0 0 6px;
    color: #0f172a;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
}

.testimonial-details {
    margin: 0;
    color: #64748b;
    font-size: 15px;
    line-height: 1.6;
}

.no-testimonials-message {
    padding: 22px 24px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    color: #334155;
}

/* -------------------------------------------------------------
   BLOG / NEWS PAGE
------------------------------------------------------------- */
.blog-home-template,
.archive-template {
    background: #f3f4f6;
    padding: 0 0 100px;
}

.blog-home-template .container,
.archive-template .container {
    width: min(1320px, calc(100% - 40px));
    margin: 0 auto;
}

.blog-archive-content-section {
    padding: 36px 0 90px;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    align-items: start;
}

.main-content-area {
    min-width: 0;
}

.blog-home-template #secondary,
.blog-home-template .widget-area,
.blog-home-template aside.widget-area,
.blog-home-template .sidebar-area,
.archive-template #secondary,
.archive-template .widget-area,
.archive-template aside.widget-area,
.archive-template .sidebar-area {
    display: none;
}

.blog-posts-list,
.archive-posts-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    align-items: stretch;
}

.source-matrix-post-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 22px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.source-matrix-post-card:hover,
.source-matrix-post-card:focus-within {
    transform: translateY(-6px);
    border-color: rgba(15, 76, 129, 0.14);
    box-shadow: 0 20px 42px rgba(15, 23, 42, 0.09);
}

.source-matrix-post-card-thumbnail {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #e5e7eb;
}

.source-matrix-post-card-thumbnail img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.source-matrix-post-card:hover .source-matrix-post-card-thumbnail img,
.source-matrix-post-card:focus-within .source-matrix-post-card-thumbnail img {
    transform: scale(1.04);
}

.source-matrix-post-card-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 22px 24px 24px;
}

.source-matrix-post-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: #64748b;
    font-size: 0.94rem;
    line-height: 1.5;
}

.source-matrix-post-card-title {
    margin: 0 0 16px;
    color: #0f172a;
    font-size: clamp(1.55rem, 2vw, 1.9rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.025em;
    word-break: break-word;
}

.source-matrix-post-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.25s ease;
}

.source-matrix-post-card-title a:hover,
.source-matrix-post-card-title a:focus {
    color: #0f4c81;
}

.source-matrix-post-card-summary {
    flex: 1 1 auto;
    color: #475569;
    font-size: 1rem;
    line-height: 1.8;
}

.source-matrix-post-card-summary p {
    margin: 0;
}

.source-matrix-post-card-footer {
    margin-top: auto;
    padding-top: 22px;
}

.source-matrix-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0f4c81;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.25s ease;
}

.source-matrix-read-more::after {
    content: "→";
    font-size: 1rem;
    line-height: 1;
    transition: transform 0.25s ease;
}

.source-matrix-read-more:hover,
.source-matrix-read-more:focus {
    color: #08385f;
}

.source-matrix-read-more:hover::after,
.source-matrix-read-more:focus::after {
    transform: translateX(4px);
}

.pagination-wrap,
.blog-pagination {
    margin-top: 38px;
}

.pagination-wrap .nav-links,
.blog-pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
}

.pagination-wrap .page-numbers,
.blog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 10px 14px;
    background: #ffffff;
    border: 1px solid #dbe3ec;
    border-radius: 12px;
    color: #0f172a;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition: all 0.25s ease;
}

.pagination-wrap .page-numbers:hover,
.pagination-wrap .page-numbers:focus,
.blog-pagination .page-numbers:hover,
.blog-pagination .page-numbers:focus {
    border-color: #0f4c81;
    color: #0f4c81;
}

.pagination-wrap .page-numbers.current,
.blog-pagination .page-numbers.current {
    background: #0f4c81;
    border-color: #0f4c81;
    color: #ffffff;
}

.no-results.not-found {
    padding: 36px 0 10px;
}

.no-results.not-found .page-title {
    margin-bottom: 10px;
}

.no-results.not-found .page-content {
    max-width: 680px;
    color: #475569;
}

/* -------------------------------------------------------------
   BLOG / NEWS RESPONSIVE
------------------------------------------------------------- */
@media (max-width: 1100px) {
    .blog-posts-list,
    .archive-posts-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .blog-home-template,
    .archive-template {
        padding-bottom: 75px;
    }

    .blog-home-template .container,
    .archive-template .container {
        width: min(100%, calc(100% - 24px));
    }

    .blog-archive-content-section {
        padding: 28px 0 70px;
    }

    .blog-posts-list,
    .archive-posts-list {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .source-matrix-post-card-body {
        padding: 20px 20px 22px;
    }

    .source-matrix-post-card-title {
        font-size: clamp(1.5rem, 7vw, 2rem);
    }

    .source-matrix-post-card-summary {
        font-size: 0.98rem;
        line-height: 1.75;
    }

    .pagination-wrap,
    .blog-pagination {
        margin-top: 30px;
    }
}

/* =========================================================
   SOURCE MATRIX SINGLE POST PAGE
========================================================= */
.single-post-main {
    background: #f3f4f6;
    padding: 42px 0 90px;
}

.single-post-main .container {
    width: min(1080px, calc(100% - 40px));
    margin: 0 auto;
}

/* -------------------------------------------------------------
   ARTICLE WRAPPER
------------------------------------------------------------- */
.single-post-wrap {
    max-width: 920px;
    margin: 0 auto;
}

/* -------------------------------------------------------------
   HEADER
------------------------------------------------------------- */
.single-post-header {
    margin: 0 0 20px;
}

.single-post-header-inner {
    max-width: 760px;
}

.single-post-title {
    margin: 0 0 12px;
    color: #0f172a;
    font-size: clamp(2rem, 3.6vw, 3.3rem);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -0.035em;
    word-break: break-word;
}

.single-post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.5;
}

.single-post-meta .posted-on,
.single-post-meta .byline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.single-post-meta .meta-separator {
    color: #94a3b8;
}

/* -------------------------------------------------------------
   FEATURED IMAGE
------------------------------------------------------------- */
.single-post-featured-image-wrap {
    margin: 0 0 22px;
}

.single-post-featured-image {
    overflow: hidden;
    border-radius: 24px;
    background: #dbe3ec;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.single-post-featured-image img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

/* -------------------------------------------------------------
   CONTENT WRAP
------------------------------------------------------------- */
.single-post-content-wrap {
    max-width: 760px;
    padding: 0;
}

.single-post-content {
    color: #334155;
    font-size: 1.03rem;
    line-height: 1.85;
}

.single-post-content > *:first-child {
    margin-top: 0;
}

.single-post-content > *:last-child {
    margin-bottom: 0;
}

.single-post-content p {
    margin: 0 0 1.45em;
}

.single-post-content h1,
.single-post-content h2,
.single-post-content h3,
.single-post-content h4,
.single-post-content h5,
.single-post-content h6 {
    margin-top: 1.65em;
    margin-bottom: 0.68em;
    color: #0f172a;
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.02em;
}

.single-post-content h1 {
    font-size: 1.95rem;
}

.single-post-content h2 {
    font-size: 1.65rem;
}

.single-post-content h3 {
    font-size: 1.35rem;
}

.single-post-content h4 {
    font-size: 1.15rem;
}

.single-post-content ul,
.single-post-content ol {
    margin: 0 0 1.45em 1.35em;
    padding: 0;
}

.single-post-content li {
    margin-bottom: 0.62em;
}

.single-post-content a {
    color: #145da0;
    font-weight: 600;
    text-decoration: none;
}

.single-post-content a:hover,
.single-post-content a:focus {
    text-decoration: underline;
}

.single-post-content strong {
    color: #0f172a;
    font-weight: 700;
}

.single-post-content blockquote {
    margin: 1.9em 0;
    padding: 22px 24px;
    background: #f8fafc;
    border-left: 4px solid #145da0;
    border-radius: 14px;
    color: #334155;
    font-style: italic;
}

.single-post-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 26px auto;
    border-radius: 14px;
}

.single-post-content figure {
    margin: 1.8em 0;
}

.single-post-content figcaption {
    margin-top: 9px;
    color: #64748b;
    font-size: 0.9rem;
    text-align: center;
}

.single-post-content table {
    width: 100%;
    margin: 26px 0;
    border-collapse: collapse;
}

.single-post-content th,
.single-post-content td {
    padding: 13px 15px;
    border: 1px solid #e5e7eb;
    text-align: left;
}

.single-post-content th {
    background: #f8fafc;
    color: #0f172a;
    font-weight: 700;
}

.single-post-content pre {
    margin: 1.9em 0;
    padding: 18px 20px;
    overflow-x: auto;
    background: #0f172a;
    border-radius: 14px;
    color: #e2e8f0;
    font-size: 0.93rem;
    line-height: 1.7;
}

.single-post-content code {
    padding: 0.14em 0.36em;
    background: #eef2f7;
    border-radius: 6px;
    font-size: 0.92em;
}

.single-post-content pre code {
    padding: 0;
    background: transparent;
    border-radius: 0;
    color: inherit;
}

.single-post-content .page-links {
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px solid #e5e7eb;
}

.single-post-content .page-links a,
.single-post-content .page-links > span {
    display: inline-block;
    margin: 0 8px 8px 0;
    padding: 8px 14px;
    background: #f1f5f9;
    border-radius: 10px;
    color: #0f172a;
    text-decoration: none;
}

/* -------------------------------------------------------------
   TAXONOMY FOOTER
------------------------------------------------------------- */
.single-post-footer {
    display: grid;
    gap: 18px;
    margin-top: 30px;
    padding-top: 22px;
    border-top: 1px solid #e5e7eb;
}

.single-post-taxonomy {
    display: block;
}

.taxonomy-label {
    display: block;
    margin-bottom: 9px;
    color: #0f172a;
    font-size: 0.93rem;
    font-weight: 700;
    line-height: 1.3;
}

.taxonomy-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.taxonomy-links a,
.single-post-categories a,
.single-post-tags a {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    background: #ffffff;
    border: 1px solid #dbe3ec;
    border-radius: 999px;
    color: #145da0;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    transition: all 0.25s ease;
}

.taxonomy-links a:hover,
.taxonomy-links a:focus,
.single-post-categories a:hover,
.single-post-categories a:focus,
.single-post-tags a:hover,
.single-post-tags a:focus {
    background: #145da0;
    border-color: #145da0;
    color: #ffffff;
}

.single-post-footer ul,
.single-post-footer ol,
.single-post-footer li {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* -------------------------------------------------------------
   POST NAVIGATION
------------------------------------------------------------- */
.single-post-navigation {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    max-width: 920px;
    margin: 30px auto 0;
}

.single-post-navigation .nav-previous,
.single-post-navigation .nav-next {
    min-width: 0;
}

.single-post-navigation a {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 100px;
    padding: 22px 24px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 20px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
    color: #0f172a;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.single-post-navigation a:hover,
.single-post-navigation a:focus {
    transform: translateY(-4px);
    border-color: rgba(15, 76, 129, 0.16);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.single-post-navigation .nav-next a {
    text-align: right;
}

.single-post-navigation .nav-label {
    color: #145da0;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.single-post-navigation .nav-title {
    color: #0f172a;
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.42;
    word-break: break-word;
}

/* -------------------------------------------------------------
   COMMENTS
------------------------------------------------------------- */
.single-post-comments-wrap {
    max-width: 920px;
    margin: 30px auto 0;
    padding: 30px 32px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 22px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.single-post-comments-wrap .comments-title,
.single-post-comments-wrap .comment-reply-title {
    margin: 0 0 15px;
    color: #0f172a;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.2;
}

.single-post-comments-wrap .comment-list,
.single-post-comments-wrap .children {
    margin: 0;
    padding: 0;
    list-style: none;
}

.single-post-comments-wrap .comment {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.single-post-comments-wrap .comment:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
}

/* -------------------------------------------------------------
   RESPONSIVE
------------------------------------------------------------- */
@media (max-width: 768px) {
    .single-post-main {
        padding: 34px 0 70px;
    }

    .single-post-main .container {
        width: min(100%, calc(100% - 24px));
    }

    .single-post-wrap {
        max-width: 100%;
    }

    .single-post-header {
        margin-bottom: 18px;
    }

    .single-post-header-inner,
    .single-post-content-wrap {
        max-width: 100%;
    }

    .single-post-title {
        font-size: clamp(1.8rem, 8vw, 2.8rem);
        line-height: 1.06;
    }

    .single-post-meta {
        font-size: 0.92rem;
    }

    .single-post-featured-image-wrap {
        margin-bottom: 18px;
    }

    .single-post-featured-image {
        border-radius: 20px;
    }

    .single-post-featured-image img {
        aspect-ratio: 16 / 10;
    }

    .single-post-content {
        font-size: 0.98rem;
        line-height: 1.78;
    }

    .single-post-navigation {
        grid-template-columns: 1fr;
    }

    .single-post-navigation .nav-next a {
        text-align: left;
    }

    .single-post-comments-wrap {
        padding: 24px 20px 26px;
        border-radius: 18px;
    }
}
/* =========================================================
   TEAM PAGE
========================================================= */
.source-matrix-team-page {
    background: #f5f7fb;
}

.team-page-intro-section {
    position: relative;
    margin-top: 28px;
    z-index: 5;
}

.team-page-intro-card {
    max-width: 1180px;
    margin: 0 auto;
    padding: 42px 46px;
    border-radius: 30px;
    background: #ffffff;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
    text-align: center;
}

.team-page-intro-title {
    margin: 0 0 12px;
    font-size: 2.35rem;
    line-height: 1.12;
}

.team-page-intro-text {
    max-width: 860px;
    margin: 0 auto;
    font-size: 1.02rem;
    line-height: 1.85;
    color: #5b6473;
}

.team-stats-section {
    padding: 34px 0 18px;
}

.team-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.team-stat-card {
    padding: 28px 26px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
    text-align: center;
}

.team-stat-number {
    display: block;
    margin-bottom: 8px;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    color: #2563eb;
}

.team-stat-label {
    display: block;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #5b6473;
}

.team-members-section {
    padding: 34px 0 26px;
}

.team-members-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}

.team-member-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border-radius: 26px;
    background: #ffffff;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.team-member-card:hover,
.team-member-card:focus-within {
    transform: translateY(-6px);
    box-shadow: 0 24px 56px rgba(15, 23, 42, 0.12);
}

.team-member-image-wrap {
    position: relative;
    aspect-ratio: 4 / 4.15;
    overflow: hidden;
    background: linear-gradient(135deg, #dbe7f8 0%, #eef4fb 100%);
}

.team-member-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-member-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-member-placeholder span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 94px;
    height: 94px;
    border-radius: 999px;
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
    color: #ffffff;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 18px 34px rgba(37, 99, 235, 0.22);
}

.team-member-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 28px 28px 30px;
}

.team-member-name {
    margin: 0 0 8px;
    font-size: 1.38rem;
    line-height: 1.2;
    color: #0f172a;
}

.team-member-role {
    margin: 0 0 16px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #2563eb;
}

.team-member-bio {
    margin: 0 0 20px;
    font-size: 0.96rem;
    line-height: 1.82;
    color: #5b6473;
}

.team-member-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.team-member-link {
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.55;
    color: #0f172a;
    text-decoration: none;
    transition: color 0.25s ease;
}

.team-member-link:hover,
.team-member-link:focus {
    color: #2563eb;
}

.team-values-section {
    padding: 26px 0 26px;
}

.team-values-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 42px 42px 46px;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.06);
}

.team-values-header {
    max-width: 760px;
    margin: 0 auto 28px;
    text-align: center;
}

.team-values-title {
    margin: 0 0 12px;
    font-size: 2rem;
    line-height: 1.15;
}

.team-values-text {
    margin: 0;
    font-size: 1rem;
    line-height: 1.8;
    color: #5b6473;
}

.team-values-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.team-value-card {
    padding: 28px 24px;
    border-radius: 22px;
    background: linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
    border: 1px solid rgba(37, 99, 235, 0.08);
}

.team-value-title {
    margin: 0 0 10px;
    font-size: 1.15rem;
    line-height: 1.25;
}

.team-value-text {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.75;
    color: #5b6473;
}

.team-page-content-section {
    padding: 26px 0 26px;
}

.team-page-content-card {
    max-width: 1180px;
    margin: 0 auto;
    padding: 38px 42px;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.06);
}

.team-page-content-card > *:last-child {
    margin-bottom: 0;
}

.team-page-cta-section {
    padding: 26px 0 84px;
}

.team-page-cta-card {
    max-width: 1180px;
    margin: 0 auto;
    padding: 54px 48px;
    border-radius: 30px;
    background: linear-gradient(135deg, #071426 0%, #0b1f3b 100%);
    color: #ffffff;
    text-align: center;
    box-shadow: 0 26px 56px rgba(7, 20, 38, 0.18);
}

.team-page-cta-title {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 2rem;
    line-height: 1.15;
}

.team-page-cta-text {
    max-width: 760px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1rem;
    line-height: 1.85;
}

.team-page-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 24px;
    padding: 15px 24px;
    border-radius: 999px;
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 18px 36px rgba(37, 99, 235, 0.24);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.team-page-cta-button:hover,
.team-page-cta-button:focus {
    transform: translateY(-2px);
    color: #ffffff;
    box-shadow: 0 22px 42px rgba(37, 99, 235, 0.30);
}

/* =========================================================
   TEAM PAGE RESPONSIVE
========================================================= */
@media (max-width: 1100px) {
    .team-stats-grid,
    .team-members-grid,
    .team-values-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .team-page-intro-card,
    .team-values-wrap,
    .team-page-content-card,
    .team-page-cta-card {
        padding: 34px 30px;
    }
}

@media (max-width: 767px) {
    .team-page-intro-section {
        margin-top: 18px;
    }

    .team-page-intro-card,
    .team-values-wrap,
    .team-page-content-card,
    .team-page-cta-card {
        padding: 28px 22px;
        border-radius: 22px;
    }

    .team-page-intro-title,
    .team-values-title,
    .team-page-cta-title {
        font-size: 1.7rem;
    }

    .team-stats-section,
    .team-members-section,
    .team-values-section,
    .team-page-content-section,
    .team-page-cta-section {
        padding-top: 22px;
    }

    .team-page-cta-section {
        padding-bottom: 64px;
    }
}

@media (max-width: 640px) {
    .team-stats-grid,
    .team-members-grid,
    .team-values-grid {
        grid-template-columns: 1fr;
    }

    .team-member-content {
        padding: 24px 22px 24px;
    }
}

/* =========================================================
   TEAM PAGE BANNER
========================================================= */
.sm-team-page-banner {
    position: relative;
    display: flex;
    align-items: center;
    background-color: #0f1720;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.sm-page-banner-content.text-left {
    text-align: left;
}

.sm-page-banner-content.text-center {
    text-align: center;
}

.sm-page-banner-content.text-right {
    text-align: right;
}

.sm-page-banner-title {
    margin: 0 0 12px;
    color: #ffffff;
}

.sm-page-banner-text {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.8;
}

.sm-page-banner-content.text-center .sm-page-banner-text {
    margin-left: auto;
    margin-right: auto;
}

.sm-page-banner-content.text-right .sm-page-banner-text {
    margin-left: auto;
}

.team-page-intro-section {
    position: relative;
    margin-top: -72px;
    z-index: 5;
}

@media (max-width: 767px) {
    .team-page-intro-section {
        margin-top: -38px;
    }
}

/* -------------------------------------------------------------
   INNER PAGE BANNER / BLOG ARCHIVE BANNER
------------------------------------------------------------- */
.inner-page-banner {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 280px;
    padding: 85px 0 65px;
    background-color: #f3f6fb;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.inner-page-banner.has-banner-image {
    color: #ffffff;
}

.inner-page-banner.no-banner-image {
    background: linear-gradient(135deg, #dfe8f3 0%, #edf3f9 45%, #d8e4f1 100%);
}

.inner-page-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(11, 26, 52, 0.78) 0%,
        rgba(11, 26, 52, 0.58) 45%,
        rgba(11, 26, 52, 0.30) 100%
    );
    z-index: 1;
    pointer-events: none;
}

.inner-page-banner.no-banner-image .inner-page-banner-overlay {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.10) 0%,
        rgba(24, 67, 122, 0.10) 45%,
        rgba(42, 109, 178, 0.16) 100%
    );
}

.inner-page-banner .container {
    position: relative;
    z-index: 2;
}

.inner-page-banner-content {
    max-width: 760px;
}

.inner-page-banner-kicker {
    display: inline-block;
    margin-bottom: 14px;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #2a6db2;
}

.inner-page-banner.has-banner-image .inner-page-banner-kicker {
    color: rgba(255, 255, 255, 0.86);
}

.inner-page-banner-title {
    margin: 0 0 18px;
    font-size: clamp(2.4rem, 4vw, 4rem);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #0f172a;
}

.inner-page-banner.has-banner-image .inner-page-banner-title {
    color: #ffffff;
}

.inner-page-banner-text {
    max-width: 680px;
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.75;
    color: #42526b;
}

.inner-page-banner-text p {
    margin: 0;
}

.inner-page-banner.has-banner-image .inner-page-banner-text {
    color: rgba(255, 255, 255, 0.92);
}

.blog-archive-content-section {
    padding: 36px 0 90px;
}

.admin-bar .inner-page-banner {
    min-height: 280px;
}

@media (max-width: 991px) {
    .inner-page-banner {
        min-height: 240px;
        padding: 75px 0 55px;
    }

    .inner-page-banner-title {
        font-size: clamp(2rem, 7vw, 3rem);
    }

    .inner-page-banner-text {
        font-size: 1rem;
        line-height: 1.7;
    }

    .blog-archive-content-section {
        padding: 30px 0 75px;
    }
}

@media (max-width: 767px) {
    .inner-page-banner {
        min-height: 220px;
        padding: 65px 0 45px;
    }

    .inner-page-banner-kicker {
        margin-bottom: 10px;
        font-size: 0.82rem;
    }

    .inner-page-banner-title {
        margin-bottom: 14px;
    }
}

/* =============================================================
   SERVICES PAGE TEMPLATE
============================================================= */

.source-matrix-services-page {
    background: #f8fafc;
    padding: 0 0 80px;
}

.services-page-wrapper {
    position: relative;
}

.services-page-content {
    padding: 32px 0 0;
}

.services-page-content__inner {
    max-width: 1100px;
    margin: 0 auto;
}

.services-page-main {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 24px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.06);
    padding: 42px;
    color: #334155;
}

.services-page-main > *:first-child {
    margin-top: 0;
}

.services-page-main > *:last-child {
    margin-bottom: 0;
}

.services-page-main h2,
.services-page-main h3,
.services-page-main h4 {
    color: #0f172a;
    line-height: 1.25;
}

.services-page-main p {
    margin: 0 0 18px;
    font-size: 1rem;
    line-height: 1.85;
}

.services-page-main ul,
.services-page-main ol {
    margin: 0 0 20px 22px;
    padding: 0;
}

.services-page-main li {
    margin-bottom: 10px;
    line-height: 1.8;
}

.services-page-main img {
    border-radius: 18px;
    margin: 24px 0;
    max-width: 100%;
    height: auto;
}

@media (max-width: 991px) {
    .services-page-main {
        padding: 34px 28px;
        border-radius: 22px;
    }
}

@media (max-width: 767px) {
    .source-matrix-services-page {
        padding: 0 0 56px;
    }

    .services-page-content {
        padding-top: 24px;
    }

    .services-page-main {
        padding: 28px 20px;
        border-radius: 20px;
    }
}

/* =============================================================
   SERVICES PAGE TEMPLATE
============================================================= */

.source-matrix-services-page {
    background: #f5f7fb;
    padding-bottom: 110px;
}

.services-page-intro-section {
    padding: 58px 0 22px;
}

.services-page-intro-card {
    max-width: 1080px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 34px;
    padding: 56px 60px;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.07);
    text-align: center;
}

.services-page-intro-title {
    margin: 0 0 18px;
    font-size: clamp(2.3rem, 4vw, 4rem);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #0f172a;
}

.services-page-intro-text {
    max-width: 780px;
    margin: 0 auto;
    font-size: 1.18rem;
    line-height: 1.8;
    color: #475569;
}

/* Grid section */
.services-page-grid-section {
    padding: 26px 0 34px;
}

.services-page-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

/* Card */
.services-page-card {
    position: relative;
}

.services-page-card-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 28px;
    padding: 34px 30px 30px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.06);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
    overflow: hidden;
}

.services-page-card-inner::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #0b1736 0%, #154b7d 100%);
    opacity: 0.96;
}

.services-page-card:hover .services-page-card-inner,
.services-page-card:focus-within .services-page-card-inner {
    transform: translateY(-8px);
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.12);
    border-color: rgba(21, 75, 125, 0.22);
}

/* Icon */
.services-page-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 92px;
    height: 86px;
    margin-bottom: 24px;
    border-radius: 22px;
    background: linear-gradient(135deg, #0b1736 0%, #154b7d 100%);
    box-shadow: 0 16px 34px rgba(11, 23, 54, 0.20);
    position: relative;
    color: #ffffff;
}

.services-page-card-icon svg {
    width: 34px;
    height: 34px;
    display: block;
    fill: currentColor;
    stroke: currentColor;
}

/* Title and text */
.services-page-card-title {
    margin: 0 0 14px;
    font-size: 1.45rem;
    line-height: 1.25;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.services-page-card-text {
    margin: 0 0 28px;
    font-size: 1rem;
    line-height: 1.8;
    color: #475569;
    flex-grow: 1;
}

/* Button */
.services-page-card-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 22px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.10);
    color: #0f172a;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
    transition: all 0.25s ease;
}

.services-page-card-button:hover,
.services-page-card-button:focus {
    background: #0f172a;
    border-color: #0f172a;
    color: #ffffff;
    transform: translateY(-2px);
    text-decoration: none;
}

/* Main content block under grid */
.services-page-content-section {
    padding: 12px 0 34px;
}

.services-page-content-card {
    max-width: 1080px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 30px;
    padding: 48px 50px;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.07);
    color: #334155;
}

.services-page-content-card > *:first-child {
    margin-top: 0;
}

.services-page-content-card > *:last-child {
    margin-bottom: 0;
}

.services-page-content-card h2,
.services-page-content-card h3,
.services-page-content-card h4 {
    color: #0f172a;
    line-height: 1.25;
}

.services-page-content-card p,
.services-page-content-card li {
    font-size: 1rem;
    line-height: 1.85;
    color: #475569;
}

/* CTA section */
.services-page-cta-section {
    padding: 18px 0 0;
}

.services-page-cta-card {
    max-width: 1120px;
    margin: 0 auto;
    padding: 58px 48px;
    border-radius: 36px;
    background: linear-gradient(90deg, #081632 0%, #154b7d 100%);
    box-shadow: 0 28px 80px rgba(8, 22, 50, 0.24);
    text-align: center;
    color: #ffffff;
}

.services-page-cta-title {
    margin: 0 0 18px;
    font-size: clamp(2rem, 3.8vw, 3.7rem);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #ffffff;
}

.services-page-cta-text {
    max-width: 760px;
    margin: 0 auto 28px;
    font-size: 1.16rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.88);
}

.services-page-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 15px 30px;
    border-radius: 999px;
    background: #ffffff;
    color: #0f172a;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 16px 36px rgba(255, 255, 255, 0.16);
    transition: all 0.25s ease;
}

.services-page-cta-button:hover,
.services-page-cta-button:focus {
    background: #e2e8f0;
    color: #0f172a;
    transform: translateY(-2px);
    text-decoration: none;
}

/* Responsive */
@media (max-width: 1199px) {
    .services-page-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .services-page-intro-card,
    .services-page-content-card,
    .services-page-cta-card {
        padding-left: 38px;
        padding-right: 38px;
    }
}

@media (max-width: 767px) {
    .source-matrix-services-page {
        padding-bottom: 80px;
    }

    .services-page-intro-section {
        padding: 34px 0 16px;
    }

    .services-page-grid-section {
        padding: 16px 0 22px;
    }

    .services-page-content-section {
        padding: 6px 0 24px;
    }

    .services-page-cta-section {
        padding-top: 8px;
    }

    .services-page-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .services-page-intro-card,
    .services-page-content-card,
    .services-page-cta-card {
        border-radius: 24px;
        padding: 32px 24px;
    }

    .services-page-card-inner {
        border-radius: 22px;
        padding: 28px 22px 24px;
    }

    .services-page-card-icon {
        min-width: 62px;
        height: 62px;
        margin-bottom: 20px;
        border-radius: 18px;
    }

    .services-page-card-title {
        font-size: 1.28rem;
    }

    .services-page-intro-text,
    .services-page-card-text,
    .services-page-content-card p,
    .services-page-content-card li,
    .services-page-cta-text {
        font-size: 0.98rem;
        line-height: 1.75;
    }

    .services-page-card-button,
    .services-page-cta-button {
        width: 100%;
    }
}

/* =============================================================
   CONTACT PAGE TEMPLATE
============================================================= */

.source-matrix-contact-page {
    background: #f5f7fb;
    padding-bottom: 110px;
}

.contact-page-intro-section {
    padding: 58px 0 22px;
}

.contact-page-intro-card {
    max-width: 1080px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 34px;
    padding: 56px 60px;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.07);
    text-align: center;
}

.contact-page-intro-title {
    margin: 0 0 18px;
    font-size: clamp(2.2rem, 4vw, 3.8rem);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #0f172a;
}

.contact-page-intro-text {
    max-width: 760px;
    margin: 0 auto;
    font-size: 1.12rem;
    line-height: 1.8;
    color: #475569;
}

.contact-page-details-section {
    padding: 26px 0 22px;
}

.contact-page-details-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 28px;
}

.contact-page-detail-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 28px;
    padding: 34px 30px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.06);
}

.contact-page-detail-card-featured {
    background: linear-gradient(135deg, #081632 0%, #154b7d 100%);
    color: #ffffff;
    box-shadow: 0 24px 70px rgba(8, 22, 50, 0.18);
}

.contact-page-detail-title {
    margin: 0 0 18px;
    font-size: 1.55rem;
    line-height: 1.2;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.contact-page-detail-card-featured .contact-page-detail-title {
    color: #ffffff;
}

.contact-page-detail-text {
    margin: 0 0 14px;
    font-size: 1rem;
    line-height: 1.8;
    color: #475569;
}

.contact-page-detail-text:last-child {
    margin-bottom: 0;
}

.contact-page-detail-card-featured .contact-page-detail-text {
    color: rgba(255, 255, 255, 0.92);
}

.contact-page-actions-section {
    padding: 16px 0 24px;
}

.contact-page-actions-card {
    max-width: 1120px;
    margin: 0 auto;
    padding: 32px;
    border-radius: 30px;
    background: #ffffff;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.06);
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.contact-page-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 14px 28px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.10);
    color: #0f172a;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
    transition: all 0.25s ease;
}

.contact-page-action-button:hover,
.contact-page-action-button:focus {
    background: #0f172a;
    border-color: #0f172a;
    color: #ffffff;
    transform: translateY(-2px);
    text-decoration: none;
}

.contact-page-action-button-primary {
    background: linear-gradient(90deg, #081632 0%, #154b7d 100%);
    border-color: transparent;
    color: #ffffff;
}

.contact-page-action-button-primary:hover,
.contact-page-action-button-primary:focus {
    background: linear-gradient(90deg, #0b1b3f 0%, #1a5b96 100%);
    color: #ffffff;
}

.contact-page-content-section {
    padding: 8px 0 24px;
}

.contact-page-content-card {
    max-width: 1080px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 30px;
    padding: 48px 50px;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.07);
    color: #334155;
}

.contact-page-content-card > *:first-child {
    margin-top: 0;
}

.contact-page-content-card > *:last-child {
    margin-bottom: 0;
}

.contact-page-content-card h2,
.contact-page-content-card h3,
.contact-page-content-card h4 {
    color: #0f172a;
    line-height: 1.25;
}

.contact-page-content-card p,
.contact-page-content-card li {
    font-size: 1rem;
    line-height: 1.85;
    color: #475569;
}

@media (max-width: 1199px) {
    .contact-page-details-grid {
        grid-template-columns: 1fr;
    }

    .contact-page-intro-card,
    .contact-page-content-card,
    .contact-page-actions-card {
        padding-left: 38px;
        padding-right: 38px;
    }
}

@media (max-width: 767px) {
    .source-matrix-contact-page {
        padding-bottom: 80px;
    }

    .contact-page-intro-section {
        padding: 34px 0 16px;
    }

    .contact-page-details-section {
        padding: 16px 0 16px;
    }

    .contact-page-actions-section {
        padding: 8px 0 20px;
    }

    .contact-page-intro-card,
    .contact-page-content-card,
    .contact-page-actions-card,
    .contact-page-detail-card {
        border-radius: 24px;
        padding: 28px 24px;
    }

    .contact-page-action-button {
        width: 100%;
    }

    .contact-page-intro-text,
    .contact-page-detail-text,
    .contact-page-content-card p,
    .contact-page-content-card li {
        font-size: 0.98rem;
        line-height: 1.75;
    }
}

/* =============================================================
   PORTFOLIO PAGE
============================================================= */

.source-matrix-portfolio-page {
    background: #f8fafc;
}

/* Banner */
.sm-portfolio-page-banner {
    position: relative;
    min-height: 380px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.sm-portfolio-page-banner .sm-page-banner-overlay {
    position: absolute;
    inset: 0;
    background: rgba(19, 25, 37, 0.58);
    z-index: 1;
}

.sm-portfolio-page-banner .container,
.sm-portfolio-page-banner .sm-container {
    position: relative;
    z-index: 2;
}

.sm-portfolio-page-banner .sm-page-banner-content {
    max-width: 760px;
    padding: 70px 0;
}

.sm-portfolio-page-banner .sm-page-banner-content.text-left {
    text-align: left;
}

.sm-portfolio-page-banner .sm-page-banner-content.text-center {
    text-align: center;
    margin: 0 auto;
}

.sm-portfolio-page-banner .sm-page-banner-content.text-right {
    text-align: right;
    margin-left: auto;
}

.sm-portfolio-page-banner .sm-page-banner-title {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: clamp(38px, 5vw, 62px);
    line-height: 1.08;
    font-weight: 700;
}

.sm-portfolio-page-banner .sm-page-banner-text {
    margin: 0;
    color: #e5ebf2;
    font-size: 18px;
    line-height: 1.75;
    max-width: 620px;
}

.sm-portfolio-page-banner .sm-page-banner-content.text-center .sm-page-banner-text,
.sm-portfolio-page-banner .sm-page-banner-content.text-right .sm-page-banner-text {
    margin-left: auto;
    margin-right: auto;
}

/* Intro */
.sm-portfolio-intro-section {
    padding: 72px 0 26px;
}

.sm-portfolio-intro-card {
    max-width: 980px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid #e6ebf0;
    border-radius: 32px;
    padding: 48px 50px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.05);
}

.sm-portfolio-page-content h2,
.sm-portfolio-intro-title {
    margin: 0 0 20px;
    color: #131925;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.15;
    font-weight: 700;
    text-align: center;
}

.sm-portfolio-page-content p,
.sm-portfolio-intro-text {
    margin: 0;
    color: #586779;
    font-size: 18px;
    line-height: 1.85;
    text-align: center;
}

/* Section heading */
.sm-section-heading-wrap {
    max-width: 880px;
    margin: 0 auto 40px;
    text-align: center;
}

.sm-section-title {
    margin: 0 0 14px;
    color: #131925;
    font-size: clamp(30px, 3.6vw, 46px);
    line-height: 1.12;
    font-weight: 700;
}

.sm-section-text {
    margin: 0;
    color: #586779;
    font-size: 18px;
    line-height: 1.8;
}

/* Category overview */
.sm-portfolio-category-overview-section {
    padding: 10px 0 20px;
}

.sm-portfolio-category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.sm-portfolio-category-card {
    height: 100%;
}

.sm-portfolio-category-card-inner {
    height: 100%;
    background: #ffffff;
    border: 1px solid #e6ebf0;
    border-radius: 28px;
    padding: 34px 30px 30px;
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.045);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sm-portfolio-category-card-inner:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 56px rgba(15, 23, 42, 0.08);
    border-color: #d6dee7;
}

.sm-portfolio-category-title {
    margin: 0 0 12px;
    color: #131925;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 700;
}

.sm-portfolio-category-text {
    margin: 0 0 16px;
    color: #586779;
    font-size: 16px;
    line-height: 1.8;
}

.sm-portfolio-category-meta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 22px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #edf4fa;
    color: #1f6fa8;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}

.sm-portfolio-category-link {
    display: inline-block;
    color: #131925;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.25s ease;
}

.sm-portfolio-category-link:hover {
    color: #1f6fa8;
}

/* Category sections */
.sm-portfolio-category-section {
    padding: 42px 0 6px;
    scroll-margin-top: 120px;
}

.sm-portfolio-project-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px;
}

/* Project cards */
.sm-portfolio-project-card {
    height: 100%;
}

.sm-portfolio-project-card-inner {
    height: 100%;
    background: #ffffff;
    border: 1px solid #e6ebf0;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.sm-portfolio-project-card-inner:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.085);
    border-color: #d6dee7;
}

.sm-portfolio-project-image {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #eef3f7;
}

.sm-portfolio-project-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.45s ease;
}

.sm-portfolio-project-card-inner:hover .sm-portfolio-project-image img {
    transform: scale(1.03);
}

.sm-portfolio-project-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.sm-portfolio-project-content {
    padding: 28px 28px 30px;
}

.sm-portfolio-project-title {
    margin: 0 0 10px;
    color: #131925;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.4em;
}

.sm-portfolio-project-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.25s ease;
}

.sm-portfolio-project-title a:hover {
    color: #1f6fa8;
}

.sm-portfolio-project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 0 0 16px;
    color: #6b7a8b;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 600;
}

.sm-portfolio-project-type {
    color: #1f6fa8;
}

.sm-portfolio-meta-separator {
    color: #95a5b3;
}

.sm-portfolio-project-year {
    color: #6b7a8b;
}

.sm-portfolio-project-excerpt {
    margin: 0 0 22px;
    color: #586779;
    font-size: 16px;
    line-height: 1.8;
}

.sm-portfolio-project-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 4px;
}

.sm-portfolio-project-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 999px;
    background: #1f6fa8;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.25s ease, transform 0.25s ease;
}

.sm-portfolio-project-button:hover {
    background: #131925;
    color: #ffffff;
    transform: translateY(-1px);
}

.sm-portfolio-project-button-secondary {
    background: transparent;
    border: 1px solid #1f6fa8;
    color: #1f6fa8;
}

.sm-portfolio-project-button-secondary:hover {
    background: #1f6fa8;
    color: #ffffff;
}

/* CTA */
.sm-portfolio-cta-section {
    padding: 70px 0 110px;
}

.sm-portfolio-cta-card {
    max-width: 1080px;
    margin: 0 auto;
    background: linear-gradient(135deg, #131925 0%, #102338 100%);
    border-radius: 34px;
    padding: 60px 50px;
    text-align: center;
    box-shadow: 0 24px 60px rgba(19, 25, 37, 0.18);
    position: relative;
    overflow: hidden;
}

.sm-portfolio-cta-card::before,
.sm-portfolio-cta-card::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(143, 211, 232, 0.09);
    pointer-events: none;
}

.sm-portfolio-cta-card::before {
    width: 280px;
    height: 280px;
    top: -110px;
    left: -80px;
}

.sm-portfolio-cta-card::after {
    width: 220px;
    height: 220px;
    bottom: -90px;
    right: -70px;
}

.sm-portfolio-cta-title {
    position: relative;
    z-index: 2;
    margin: 0 0 16px;
    color: #ffffff;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.15;
    font-weight: 700;
}

.sm-portfolio-cta-text {
    position: relative;
    z-index: 2;
    max-width: 760px;
    margin: 0 auto 28px;
    color: #dbe7f0;
    font-size: 18px;
    line-height: 1.85;
}

.sm-portfolio-cta-button {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 28px;
    border-radius: 999px;
    background: #1f6fa8;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.25s ease, transform 0.25s ease;
}

.sm-portfolio-cta-button:hover {
    background: #19a7b8;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Default content blocks inside intro */
.sm-portfolio-page-content > *:first-child {
    margin-top: 0;
}

.sm-portfolio-page-content > *:last-child {
    margin-bottom: 0;
}

.sm-portfolio-page-content p {
    margin-bottom: 16px;
}

.sm-portfolio-page-content ul,
.sm-portfolio-page-content ol {
    margin: 0 auto 18px;
    padding-left: 22px;
    max-width: 760px;
    color: #586779;
    line-height: 1.8;
}

.sm-portfolio-page-content li + li {
    margin-top: 8px;
}

/* =============================================================
   SINGLE PORTFOLIO PAGE
============================================================= */

.sm-single-portfolio-page {
    background: #ffffff;
    padding-bottom: 80px;
}

.sm-single-portfolio-header {
    background: #f8fafc;
    padding: 46px 0 38px;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.sm-single-portfolio-header .sm-container,
.sm-single-portfolio-main.sm-container,
.sm-related-portfolio-section .sm-container {
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
}

.sm-single-portfolio-breadcrumbs {
    margin-bottom: 14px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
}

.sm-single-portfolio-breadcrumbs a {
    color: #0f4c81;
    text-decoration: none;
}

.sm-single-portfolio-breadcrumbs a:hover {
    text-decoration: underline;
}

.sm-single-portfolio-breadcrumbs span {
    margin: 0 6px;
}

.sm-single-portfolio-term {
    display: inline-block;
    margin-bottom: 16px;
    padding: 8px 16px;
    border-radius: 999px;
    background: #eaf2f9;
    color: #0f4c81;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}

.sm-single-portfolio-title {
    margin: 0 0 16px;
    color: #131925;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
    font-weight: 700;
    letter-spacing: -0.02em;
    max-width: 1100px;
}

.sm-single-portfolio-excerpt {
    max-width: 920px;
    margin: 0;
    color: #586779;
    font-size: 18px;
    line-height: 1.85;
}

.sm-single-portfolio-main {
    padding-top: 56px;
}

.sm-single-portfolio-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) 320px;
    gap: 48px;
    align-items: start;
}

.sm-single-portfolio-content-column {
    min-width: 0;
}

.sm-single-portfolio-featured-image {
    margin-bottom: 34px;
    border-radius: 22px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.sm-single-portfolio-featured-image img {
    display: block;
    width: 100%;
    height: auto;
}

.sm-single-portfolio-content-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    padding: 42px;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.05);
}

.sm-single-portfolio-content {
    max-width: 100%;
    color: #334155;
    font-size: 17px;
    line-height: 1.9;
}

.sm-single-portfolio-content > *:first-child {
    margin-top: 0;
}

.sm-single-portfolio-content > *:last-child {
    margin-bottom: 0;
}

.sm-single-portfolio-content p {
    margin: 0 0 1.2em;
}

.sm-single-portfolio-content h2,
.sm-single-portfolio-content h3,
.sm-single-portfolio-content h4 {
    margin: 1.6em 0 0.7em;
    color: #131925;
    line-height: 1.25;
    font-weight: 700;
}

.sm-single-portfolio-content ul,
.sm-single-portfolio-content ol {
    margin: 0 0 1.2em 1.35em;
}

.sm-single-portfolio-content li + li {
    margin-top: 8px;
}

.sm-single-portfolio-content a {
    color: #0f4c81;
    text-decoration: underline;
    word-break: break-word;
}

.sm-single-portfolio-sidebar {
    position: sticky;
    top: 30px;
}

.sm-single-portfolio-sidebar-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    padding: 30px;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.05);
}

.sm-single-portfolio-sidebar-card h3 {
    margin: 0 0 22px;
    color: #131925;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 700;
}

.sm-single-portfolio-details-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sm-single-portfolio-details-list li {
    padding: 15px 0;
    border-bottom: 1px solid #e5e7eb;
}

.sm-single-portfolio-details-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sm-detail-label {
    display: block;
    margin-bottom: 4px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sm-detail-value {
    display: block;
    color: #131925;
    font-size: 16px;
    line-height: 1.65;
    word-break: break-word;
}

.sm-detail-value a {
    color: #0f4c81;
    text-decoration: underline;
}

.sm-single-portfolio-sidebar-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    margin-top: 24px;
    padding: 12px 20px;
    border-radius: 999px;
    background: #1f6fa8;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.25s ease, transform 0.25s ease;
}

.sm-single-portfolio-sidebar-button:hover {
    background: #131925;
    color: #ffffff;
    transform: translateY(-1px);
}

.sm-related-portfolio-section {
    padding-top: 60px;
}

.sm-section-intro {
    margin-bottom: 28px;
}

.sm-section-intro h2 {
    margin: 0 0 10px;
    color: #131925;
    font-size: clamp(30px, 3.8vw, 42px);
    line-height: 1.15;
    font-weight: 700;
}

.sm-section-intro p {
    margin: 0;
    color: #586779;
    font-size: 16px;
    line-height: 1.8;
}

.sm-related-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.sm-related-portfolio-card {
    background: #ffffff;
    border: 1px solid #e6ebf0;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.sm-related-portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 56px rgba(15, 23, 42, 0.08);
    border-color: #d6dee7;
}

.sm-related-portfolio-thumb {
    background: #eef3f7;
}

.sm-related-portfolio-thumb img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: top center;
}

.sm-related-portfolio-card-content {
    padding: 24px;
}

.sm-related-portfolio-card-content h3 {
    margin: 0 0 12px;
    color: #131925;
    font-size: 24px;
    line-height: 1.25;
    font-weight: 700;
}

.sm-related-portfolio-card-content h3 a {
    color: inherit;
    text-decoration: none;
}

.sm-related-portfolio-card-content h3 a:hover {
    color: #1f6fa8;
}

.sm-related-portfolio-card-content p {
    margin: 0 0 16px;
    color: #586779;
    font-size: 15px;
    line-height: 1.8;
}

.sm-related-portfolio-link {
    display: inline-block;
    color: #1f6fa8;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}

.sm-related-portfolio-link:hover {
    color: #131925;
}

/* Responsive */
@media (max-width: 1200px) {
    .sm-portfolio-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sm-portfolio-project-grid {
        gap: 28px;
    }

    .sm-single-portfolio-grid {
        grid-template-columns: minmax(0, 1fr) 300px;
        gap: 36px;
    }
}

@media (max-width: 991px) {
    .sm-portfolio-page-banner {
        min-height: 320px;
    }

    .sm-portfolio-intro-card {
        padding: 40px 30px;
        border-radius: 24px;
    }

    .sm-portfolio-category-grid,
    .sm-portfolio-project-grid,
    .sm-single-portfolio-grid,
    .sm-related-portfolio-grid {
        grid-template-columns: 1fr;
    }

    .sm-portfolio-category-section {
        padding-top: 45px;
    }

    .sm-portfolio-project-title {
        font-size: 24px;
    }

    .sm-portfolio-cta-card {
        padding: 48px 30px;
        border-radius: 26px;
    }

    .sm-single-portfolio-sidebar {
        position: static;
    }
}

@media (max-width: 767px) {
    .sm-portfolio-page-banner .sm-page-banner-content {
        padding: 56px 0;
    }

    .sm-portfolio-page-banner .sm-page-banner-title {
        font-size: 36px;
    }

    .sm-portfolio-page-banner .sm-page-banner-text,
    .sm-section-text,
    .sm-portfolio-intro-text,
    .sm-portfolio-page-content p,
    .sm-portfolio-cta-text,
    .sm-single-portfolio-excerpt {
        font-size: 16px;
    }

    .sm-portfolio-intro-card,
    .sm-portfolio-category-card-inner,
    .sm-portfolio-project-card-inner,
    .sm-single-portfolio-featured-image,
    .sm-single-portfolio-content-card,
    .sm-single-portfolio-sidebar-card,
    .sm-related-portfolio-card {
        border-radius: 20px;
    }

    .sm-portfolio-project-content,
    .sm-related-portfolio-card-content {
        padding: 22px;
    }

    .sm-portfolio-category-title,
    .sm-portfolio-project-title {
        font-size: 22px;
    }

    .sm-portfolio-cta-section {
        padding: 55px 0 85px;
    }

    .sm-portfolio-cta-title {
        font-size: 30px;
    }

    .sm-single-portfolio-header {
        padding: 38px 0 30px;
    }

    .sm-single-portfolio-title {
        font-size: 36px;
    }

    .sm-single-portfolio-main {
        padding-top: 36px;
    }

    .sm-single-portfolio-content-card,
    .sm-single-portfolio-sidebar-card {
        padding: 24px;
    }
}

/* ==========================================================================
   MOBILE RESPONSIVENESS
   ========================================================================== */
   @media (max-width: 767px) {
    .header-inner {
        position: relative;
        flex-wrap: wrap;
        justify-content: space-between;
        min-height: auto;
        padding: 16px 0;
    }

    .site-branding {
        max-width: calc(100% - 70px);
    }

    .custom-logo,
    .site-logo img {
        max-height: 56px;
    }

    .nav-toggle {
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 46px;
        height: 46px;
        margin-left: auto;
        background: transparent;
        border: 1px solid #d1d5db;
        border-radius: 12px;
        z-index: 1001;
    }

    .nav-toggle-bar {
        width: 22px;
        height: 2px;
        margin: 3px 0;
        background: #1f2937;
        transition: all 0.25s ease;
    }

    .nav-toggle.is-active .nav-toggle-bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.is-active .nav-toggle-bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.is-active .nav-toggle-bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .header-navigation-wrap {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin-top: 14px;
        padding: 18px;
        background: #ffffff;
        border: 1px solid #e5e7eb;
        border-radius: 18px;
        box-shadow: 0 14px 34px rgba(15, 23, 42, 0.10);
    }

    .header-navigation-wrap.is-open {
        display: flex;
    }

    .main-navigation {
        width: 100%;
    }

    .main-navigation ul,
    .primary-menu,
    .main-navigation .menu {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        width: 100%;
    }

    .main-navigation li,
    .primary-menu li,
    .main-navigation .menu li {
        width: 100%;
        border-bottom: 1px solid #e5e7eb;
    }

    .main-navigation li:last-child,
    .primary-menu li:last-child,
    .main-navigation .menu li:last-child {
        border-bottom: 0;
    }

    .main-navigation a,
    .primary-menu a,
    .main-navigation .menu a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 14px 0;
        white-space: normal;
    }

    .main-navigation a::after,
    .primary-menu a::after,
    .main-navigation .menu a::after {
        display: none;
    }

    .main-navigation .sub-menu,
    .main-navigation ul ul {
        position: static;
        display: none;
        min-width: 100%;
        margin: 0;
        padding: 0 0 10px 14px;
        opacity: 1;
        visibility: visible;
        transform: none;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        background: transparent;
    }

    .main-navigation .submenu-open > .sub-menu,
    .main-navigation .submenu-open > ul {
        display: block;
    }

    .main-navigation .sub-menu li,
    .main-navigation ul ul li {
        border-bottom: 0;
    }

    .main-navigation .sub-menu a,
    .main-navigation ul ul a {
        padding: 10px 0;
        font-size: 14px;
        background: transparent;
    }

    .main-navigation .menu-item-has-children > a::before,
    .main-navigation .page_item_has_children > a::before {
        right: 4px;
    }

    .main-navigation .submenu-open > a::before {
        transform: translateY(-35%) rotate(225deg);
    }

    .header-actions {
        width: 100%;
        margin-top: 16px;
    }

    .header-cta-button {
        width: 100%;
        justify-content: center;
    }

    .top-bar-inner,
    .top-bar-right {
        gap: 8px 12px;
    }

    .top-bar-contact,
    .top-bar-text {
        white-space: normal;
    }
}

@media (max-width: 767px) {
    .site-container,
    .container {
        width: min(100%, calc(100% - 24px));
    }

    .sm-home-intro,
    .sm-home-about,
    .sm-section,
    .sm-featured-services.sm-services-section,
    .sm-testimonials,
    .sm-home-testimonials,
    .sm-testimonials-section,
    .sm-section-testimonials {
        padding: 56px 0;
    }

    .sm-home-about-grid,
    .sm-about-grid,
    .sm-featured-services .sm-services-grid,
    .sm-testimonials-grid,
    .blog-posts-list,
    .archive-posts-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .sm-home-about-card,
    .sm-about-card,
    .sm-featured-services .sm-service-card,
    .sm-testimonial-card,
    .source-matrix-post-card {
        padding: 24px 20px;
        border-radius: 20px;
    }

    .sm-featured-services .sm-service-card-title,
    .sm-featured-services .sm-service-card h3 {
        font-size: 1.45rem;
        line-height: 1.2;
    }

    .sm-featured-services .sm-service-card-text p,
    .sm-featured-services .sm-service-card p,
    .sm-testimonial-quote p,
    .sm-testimonial-card p,
    .sm-section-text,
    .sm-home-about-content p,
    .sm-about-content p {
        font-size: 0.98rem;
        line-height: 1.75;
    }

    .sm-hero {
        min-height: auto;
        padding: 72px 0 60px;
    }

    .sm-hero-content {
        max-width: 100%;
        padding-top: 0;
    }

    .sm-hero-title {
        max-width: 100%;
        font-size: clamp(2rem, 9vw, 3rem);
        line-height: 1.02;
        word-break: break-word;
    }

    .sm-hero-text {
        max-width: 100%;
        font-size: 1rem;
        line-height: 1.7;
    }

    .sm-hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .sm-hero .sm-button,
    .sm-hero .sm-button-primary,
    .sm-hero .sm-button-secondary {
        width: 100%;
        min-width: 0;
    }

    .sm-testimonial-footer {
        align-items: flex-start;
    }

    .sm-testimonial-avatar {
        width: 48px;
        height: 48px;
        min-width: 48px;
    }

    .sm-testimonials .sm-section-title,
    .sm-home-testimonials .sm-section-title,
    .sm-testimonials-section .sm-section-title,
    .sm-section-testimonials .sm-section-title,
    .sm-featured-services .sm-section-title,
    .sm-featured-services .sm-section-heading h2 {
        font-size: clamp(1.8rem, 8vw, 2.4rem);
        line-height: 1.15;
    }

    .header-actions,
    .sm-testimonials-button,
    .sm-testimonials-more,
    .header-cta-button {
        width: 100%;
    }
}