/* ============================================================
   MSI CERTIFICATIONS - CUSTOM LAYOUT & VALIDATION
   Loaded after style.css and responsive.css.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Gilda+Display&display=swap');

:root {
    --msi-navy: #223555;
    --msi-navy-dark: #162844;
    --msi-gold: #b89b5e;
    --msi-gold-dark: #9f824b;
    --msi-teal: #1e8795;
    --msi-blue: #0e6997;
    --msi-text: #34495a;
    --msi-muted: #70808f;
    --msi-border: #dfe7ed;
    --msi-soft: #f4f7f9;
    --msi-white: #ffffff;
}

* {
    box-sizing: border-box;
}

/* Prevent page jump when the navigation becomes sticky. */
.main-header {
    --sticky-header-height: 74px;
    box-sizing: border-box;
}

.main-header.fixed-header {
    padding-bottom: var(--sticky-header-height);
}

.fixed-header .lower-section {
    top: 0;
    right: 0;
    z-index: 1001;
    width: 100%;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.16);
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
}

.contact-honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* ============================================================
   BRAND / HEADER
   ============================================================ */

.main-header .middle-bar {
    padding: 14px 0 18px;
}

.main-header .middle-bar .auto-container > .clearfix {
    display: grid;
    grid-template-columns: minmax(250px, 1fr) minmax(360px, 1.25fr) minmax(300px, 1fr);
    align-items: center;
    gap: 22px;
    min-height: 94px;
}

.main-header .middle-bar .logo-column {
    position: static;
    grid-column: 2;
    grid-row: 1;
    width: auto;
    padding: 0;
    text-align: center;
}

.main-header .middle-bar .info-column {
    float: none !important;
    min-width: 0;
    padding: 0;
}

.main-header .middle-bar .info-column.pull-left {
    grid-column: 1;
    grid-row: 1;
    text-align: left;
}

.main-header .middle-bar .info-column.pull-right {
    grid-column: 3;
    grid-row: 1;
    text-align: right;
}

.main-header .middle-bar .info-column p {
    margin-bottom: 5px;
    color: #485665;
    font-size: 13px;
    line-height: 1.5;
}

.main-header .middle-bar .info-column h3 {
    margin: 0;
    color: var(--msi-gold);
    font-size: 22px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.main-header .middle-bar .info-column h3 a {
    color: inherit;
}

.msi-wordmark,
.mobile-msi-wordmark {
    position: relative;
}

.msi-wordmark > a,
.mobile-msi-wordmark > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: var(--msi-navy);
    text-decoration: none;
}

.msi-wordmark-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 62px;
    width: 62px;
    height: 62px;
    border-radius: 18px;
    background: var(--msi-navy);
    color: var(--msi-gold);
    font-size: 30px;
    box-shadow: 0 8px 20px rgba(34, 53, 85, 0.18);
}

.msi-wordmark-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1;
    text-align: left;
}

.msi-wordmark-copy strong {
    color: var(--msi-navy);
    font-family: 'Gilda Display', serif;
    font-size: 34px;
    font-weight: 700;
    letter-spacing: 1px;
}

.msi-wordmark-copy > span {
    margin-top: 4px;
    color: var(--msi-navy);
    font-family: 'Gilda Display', serif;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 2.2px;
}

.msi-wordmark-copy small {
    margin-top: 7px;
    color: var(--msi-gold-dark);
    font-family: 'Gilda Display', serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.7px;
    text-transform: uppercase;
}

.mobile-msi-wordmark {
    margin: 4px 0 26px;
}

.mobile-msi-wordmark .msi-wordmark-icon {
    flex-basis: 50px;
    width: 50px;
    height: 50px;
    border-radius: 14px;
    font-size: 24px;
}

.mobile-msi-wordmark .msi-wordmark-copy strong {
    color: #ffffff;
    font-size: 28px;
}

.mobile-msi-wordmark .msi-wordmark-copy > span {
    color: var(--msi-gold);
    font-size: 13px;
    letter-spacing: 1.5px;
}

/* Desktop navigation: compact, balanced and non-overlapping. */
.main-header .lower-section .outer-box {
    min-height: 74px;
    padding: 0 154px 0 20px;
    border-radius: 4px;
}

.main-header .link-box {
    right: 14px;
    top: 12px;
}

.main-header .link-box .theme-btn {
    min-width: 124px;
    padding: 12px 18px;
    font-size: 13px;
    line-height: 24px;
    text-align: center;
}

.main-menu .navigation {
    display: flex;
    align-items: stretch;
    float: none;
    white-space: nowrap;
}

.main-menu .navigation > li {
    float: none;
    margin-right: 0;
    padding: 12px 0;
}

.fixed-header .main-menu .navigation > li {
    padding: 12px 0;
}

.main-menu .navigation > li > a {
    padding: 10px 9px;
    font-size: 14px;
    line-height: 30px;
}

/* ============================================================
   CERTIFICATE VALIDATION
   ============================================================ */

.certificate-validation-section {
    position: relative;
    overflow: hidden;
    padding: 82px 0 72px;
    background:
        radial-gradient(circle at 0 0, rgba(30, 135, 149, 0.09), transparent 34%),
        radial-gradient(circle at 100% 100%, rgba(14, 105, 151, 0.08), transparent 30%),
        var(--msi-soft);
}

.certificate-validation-section.validation-home {
    border-top: 1px solid #e2e9ee;
    border-bottom: 1px solid #e2e9ee;
}

.validation-section-heading {
    margin-bottom: 18px;
}

.validation-eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--msi-blue);
    font-family: 'Gilda Display', serif;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.validation-section-heading h2 {
    margin: 0;
    color: #262b31;
    font-family: 'Gilda Display', serif;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.25;
}

.validation-heading-line {
    position: relative;
    width: 94px;
    height: 3px;
    margin: 15px auto 0;
    background: var(--msi-gold);
}

.validation-heading-line::after {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    width: 11px;
    height: 11px;
    margin-left: -5px;
    border: 3px solid var(--msi-soft);
    background: var(--msi-gold);
    transform: rotate(45deg);
}

.validation-intro {
    max-width: 850px;
    margin: 0 auto 38px;
    color: var(--msi-muted);
    font-size: 15px;
    line-height: 1.8;
}

.validation-card-row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    margin-right: -12px;
    margin-left: -12px;
}

.validation-card-row > [class*='col-'] {
    display: flex;
    padding-right: 12px;
    padding-left: 12px;
}

.validation-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 390px;
    margin-bottom: 24px;
    padding: 32px;
    overflow: hidden;
    border: 1px solid var(--msi-border);
    border-radius: 12px;
    background: var(--msi-white);
    box-shadow: 0 16px 42px rgba(25, 54, 78, 0.10);
}

.validation-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
}

.validation-card-msi::before {
    background: linear-gradient(90deg, var(--msi-teal), #46a9b5);
}

.validation-card-uqa::before {
    background: linear-gradient(90deg, var(--msi-blue), #3a8fbd);
}

.validation-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.validation-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
    margin: 0;
    border-radius: 16px;
    background: #eef7f8;
    color: var(--msi-teal);
    font-size: 25px;
}

.validation-card-uqa .validation-card-icon {
    background: #edf4f9;
    color: var(--msi-blue);
}

.validation-card-label {
    display: block;
    margin-bottom: 4px;
    color: var(--msi-gold-dark);
    font-family: 'Gilda Display', serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.3px;
    text-transform: uppercase;
}

.validation-card h3 {
    margin: 0;
    color: var(--msi-navy);
    font-family: 'Gilda Display', serif;
    font-size: 24px;
    line-height: 1.3;
}

.validation-card-description {
    min-height: 50px;
    margin-bottom: 0;
    color: var(--msi-muted);
    line-height: 1.7;
}

.validation-form {
    margin-top: 24px;
}

.validation-form label {
    display: block;
    margin-bottom: 9px;
    color: #293b49;
    font-size: 14px;
    font-weight: 700;
}

.validation-input-group {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    width: 100%;
}

.validation-input-group input {
    width: 100%;
    min-width: 0;
    height: 50px;
    padding: 10px 15px;
    border: 1px solid #cbd7df;
    border-radius: 5px;
    background: #ffffff;
    color: #263846;
    font-size: 14px;
    outline: 0;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.validation-input-group input:focus {
    border-color: var(--msi-blue);
    box-shadow: 0 0 0 3px rgba(14, 105, 151, 0.12);
}

.validation-input-group .theme-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    height: 50px;
    padding: 0 18px;
    border-radius: 5px;
    white-space: nowrap;
}

.validation-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
    padding-top: 22px;
}

.validation-actions .theme-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 5px;
}

.validation-portal-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 4px;
    color: var(--msi-blue);
    font-weight: 700;
}

.validation-portal-link:hover {
    color: var(--msi-gold-dark);
}

.validation-more-link {
    margin-top: 8px;
}

.validation-more-link .theme-btn {
    border-radius: 5px;
}

/* Scanner shown as a modal so it never breaks the page grid. */
body.scanner-modal-open {
    overflow: hidden;
}

.certificate-scanner-panel {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    padding: 28px;
    background: rgba(12, 24, 35, 0.74);
    backdrop-filter: blur(4px);
}

.certificate-scanner-panel[hidden] {
    display: none !important;
}

.scanner-dialog {
    position: relative;
    width: 100%;
    max-width: 1040px;
    padding: 28px;
    border: 1px solid #d8e1e7;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.30);
}

.scanner-panel-header {
    position: relative;
    min-height: 48px;
    margin-bottom: 22px;
    padding-right: 55px;
    border-bottom: 1px solid #e7edf1;
    padding-bottom: 18px;
}

.scanner-panel-header .pull-left {
    float: none !important;
}

.scanner-panel-header h3 {
    margin: 0 0 5px;
    color: var(--msi-navy);
    font-family: 'Gilda Display', serif;
    font-size: 25px;
}

.scanner-panel-header p {
    margin: 0;
    color: var(--msi-muted);
}

.scanner-close-button {
    position: absolute;
    top: 0;
    right: 0;
    float: none !important;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: #edf2f5;
    color: var(--msi-navy);
    font-size: 17px;
    cursor: pointer;
}

.scanner-close-button:hover,
.scanner-close-button:focus {
    background: var(--msi-navy);
    color: #ffffff;
}

.scanner-video-wrap {
    position: relative;
    overflow: hidden;
    min-height: 340px;
    border-radius: 8px;
    background: #0c1820;
}

.scanner-video-wrap video {
    display: block;
    width: 100%;
    min-height: 340px;
    object-fit: cover;
}

.scanner-guide {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 66%;
    height: 55%;
    transform: translate(-50%, -50%);
    border: 3px solid rgba(255, 255, 255, 0.9);
    border-radius: 9px;
    box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.27);
    pointer-events: none;
}

.scanner-status {
    min-height: 58px;
    margin-bottom: 16px;
    padding: 13px 15px;
    border-left: 4px solid var(--msi-teal);
    border-radius: 3px;
    background: #eef7f8;
    color: #31505b;
    line-height: 1.55;
}

.scanner-status.scanner-error {
    border-color: #c0392b;
    background: #fff0ee;
    color: #9d2f24;
}

.scanner-dialog .theme-btn {
    margin: 0 5px 10px 0;
    border-radius: 5px;
}

.scanner-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.scanner-file-label {
    cursor: pointer;
}

.scanner-result {
    margin-top: 12px;
    padding: 15px;
    border: 1px solid #e0e7ec;
    border-radius: 5px;
    background: #f4f7f9;
    word-break: break-word;
}

.scanner-result #certificate-scanner-value {
    margin: 7px 0 12px;
}

.scanner-note {
    margin-top: 10px;
    color: var(--msi-muted);
    font-size: 13px;
    line-height: 1.65;
}

.validation-info-section {
    margin-top: 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media only screen and (max-width: 1199px) {
    .main-header .middle-bar .auto-container > .clearfix {
        grid-template-columns: minmax(210px, 1fr) minmax(320px, 1.15fr) minmax(260px, 1fr);
        gap: 15px;
    }

    .main-header .middle-bar .info-column h3 {
        font-size: 19px;
    }

    .main-header .lower-section .outer-box {
        padding-right: 138px;
        padding-left: 12px;
    }

    .main-header .link-box {
        right: 8px;
    }

    .main-header .link-box .theme-btn {
        min-width: 112px;
        padding-right: 13px;
        padding-left: 13px;
        font-size: 12px;
    }

    .main-menu .navigation > li > a {
        padding-right: 7px;
        padding-left: 7px;
        font-size: 13px;
    }
}

@media only screen and (max-width: 1050px) {
    .main-header .middle-bar .auto-container > .clearfix {
        display: block;
        min-height: 0;
    }

    .main-header .middle-bar .logo-column {
        margin-bottom: 12px;
    }

    .main-header .middle-bar .info-column {
        display: none;
    }

    .main-header .lower-section .outer-box {
        height: 74px;
        min-height: 74px;
        padding: 0 20px;
    }

    .main-menu {
        display: none;
    }

    .main-header .nav-toggler {
        display: block;
        right: 20px;
    }

    .main-header .link-box {
        top: 12px;
        right: auto;
        left: 20px;
    }
}

@media only screen and (max-width: 991px) {
    .validation-card-row {
        display: block;
    }

    .validation-card-row > [class*='col-'] {
        display: block;
    }

    .validation-card {
        min-height: 0;
    }

    .scanner-video-wrap,
    .scanner-video-wrap video {
        min-height: 300px;
    }

    .scanner-dialog .col-md-5 {
        margin-top: 20px;
    }
}

@media only screen and (max-width: 767px) {
    .main-header .top-bar .top-left,
    .main-header .top-bar .top-right {
        width: 100%;
        float: none;
        text-align: center;
    }

    .main-header .top-bar .search-box,
    .main-header .top-bar .lang-box {
        display: none;
    }

    .msi-wordmark > a {
        gap: 10px;
    }

    .msi-wordmark-icon {
        flex-basis: 52px;
        width: 52px;
        height: 52px;
        border-radius: 15px;
        font-size: 24px;
    }

    .msi-wordmark-copy strong {
        font-size: 28px;
    }

    .msi-wordmark-copy > span {
        font-size: 13px;
        letter-spacing: 1.6px;
    }

    .msi-wordmark-copy small {
        display: none;
    }

    .certificate-validation-section {
        padding: 58px 0 48px;
    }

    .validation-section-heading h2 {
        font-size: 29px;
    }

    .validation-intro {
        margin-bottom: 28px;
        font-size: 14px;
    }

    .validation-card {
        padding: 25px 20px;
        border-radius: 9px;
    }

    .validation-card-header {
        align-items: flex-start;
    }

    .validation-card-icon {
        flex-basis: 50px;
        width: 50px;
        height: 50px;
        border-radius: 14px;
        font-size: 22px;
    }

    .validation-card h3 {
        font-size: 21px;
    }

    .validation-card-description {
        min-height: 0;
    }

    .validation-input-group {
        display: block;
    }

    .validation-input-group .theme-btn {
        width: 100%;
        margin-top: 10px;
    }

    .validation-actions {
        display: block;
    }

    .validation-actions .theme-btn,
    .validation-portal-link {
        width: 100%;
        margin: 0 0 10px;
        justify-content: center;
        text-align: center;
    }

    .certificate-scanner-panel {
        align-items: flex-start;
        padding: 12px;
    }

    .scanner-dialog {
        margin: 10px 0;
        padding: 18px 15px;
        border-radius: 9px;
    }

    .scanner-panel-header {
        padding-right: 48px;
    }

    .scanner-panel-header h3 {
        font-size: 21px;
    }

    .scanner-video-wrap,
    .scanner-video-wrap video {
        min-height: 235px;
    }

    .scanner-dialog .theme-btn,
    .scanner-file-label {
        display: flex;
        width: 100%;
        align-items: center;
        justify-content: center;
        margin: 0 0 10px;
    }
}

@media print {
    .main-header.fixed-header {
        padding-bottom: 0;
    }

    .fixed-header .lower-section {
        position: relative;
        box-shadow: none;
    }

    .certificate-scanner-panel {
        display: none !important;
    }
}


/* ============================================================
   GLOBAL TYPOGRAPHY - GILDA DISPLAY
   ============================================================
   All visible website text uses Gilda Display. Icon fonts remain
   controlled by Font Awesome, Flaticon and Glyphicons.
   ============================================================ */

html,
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
li,
dt,
dd,
label,
input,
textarea,
select,
button,
table,
th,
td,
blockquote,
figcaption,
small,
strong,
em,
.theme-btn,
.btn,
.main-menu .navigation > li > a,
.main-menu .navigation > li > ul > li > a,
.main-menu .navigation > li > ul > li > ul > li > a,
.hidden-bar .side-menu .navigation li a,
.page-info,
.bread-crumb,
.styled-heading,
.default-form,
.validation-card,
.scanner-dialog {
    font-family: 'Gilda Display', serif !important;
}

/* Preserve icon glyphs after the global typography override. */
.fa,
[class^='fa-'],
[class*=' fa-'] {
    font-family: 'FontAwesome' !important;
}

[class^='flaticon-'],
[class*=' flaticon-'] {
    font-family: 'Flaticon' !important;
}

.glyphicon {
    font-family: 'Glyphicons Halflings' !important;
}

/* More compact dropdown typography for long ISO service labels. */
.main-menu .navigation > li > ul,
.main-menu .navigation > li > ul > li > ul {
    width: 280px;
}

.main-menu .navigation > li > ul > li > a,
.main-menu .navigation > li > ul > li > ul > li > a {
    padding: 10px 16px;
    white-space: normal;
    overflow-wrap: anywhere;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 0;
    text-transform: none;
}

.main-menu .navigation > li > a {
    font-weight: 400;
    letter-spacing: 0.05px;
}

.main-header .link-box .theme-btn,
.theme-btn,
button,
input,
textarea,
select {
    letter-spacing: 0;
}

.hidden-bar .side-menu .navigation li a {
    white-space: normal;
    overflow-wrap: anywhere;
    font-size: 15px;
    line-height: 1.45;
}

@media only screen and (max-width: 1200px) {
    .main-menu .navigation > li > a {
        font-size: 13px;
    }

    .main-menu .navigation > li > ul,
    .main-menu .navigation > li > ul > li > ul {
        width: 255px;
    }

    .main-menu .navigation > li > ul > li > a,
    .main-menu .navigation > li > ul > li > ul > li > a {
        font-size: 13px;
    }
}


/* ============================================================
   OFFICIAL MSI CERTIFICATIONS LOGO
   Header and mobile menu now load the file from config/site.php.
   ============================================================ */

.main-header .middle-bar .logo-column .msi-header-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 94px;
    padding: 0;
}

.main-header .middle-bar .logo-column .msi-header-logo a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
}

.main-header .middle-bar .logo-column .msi-header-logo img {
    display: block;
    width: min(100%, 361px);
    height: auto;
    max-height: 114px;
    object-fit: contain;
}

.mobile-msi-logo {
    margin: 2px 0 26px;
    padding: 12px 10px;
    border-radius: 8px;
    background: #ffffff;
}

.mobile-msi-logo a,
.mobile-msi-logo img {
    display: block;
}

.mobile-msi-logo img {
    width: 100%;
    max-width: 285px;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
}

.logo-image img,
.image-thumb img {
    object-fit: contain;
}

@media only screen and (max-width: 1050px) {
    .main-header .middle-bar .logo-column .msi-header-logo {
        min-height: 82px;
    }

    .main-header .middle-bar .logo-column .msi-header-logo img {
        width: min(100%, 320px);
        max-height: 100px;
    }
}

@media only screen and (max-width: 767px) {
    .main-header .middle-bar .logo-column .msi-header-logo {
        min-height: 70px;
    }

    .main-header .middle-bar .logo-column .msi-header-logo img {
        width: min(100%, 275px);
        max-height: 86px;
    }
}

/* ================================
   HOME ISO SERVICES - FINAL FIX
================================ */
.home-iso-services {
    padding: 70px 0 50px !important;
    background: #f8f8f8 !important;
}

.home-iso-services .sec-title {
    margin-bottom: 35px !important;
}

.home-iso-grid {
    display: flex !important;
    flex-wrap: wrap !important;
}

.home-iso-grid .iso-grid-item {
    display: flex !important;
    margin-bottom: 30px !important;
}

.home-iso-card {
    background: #ffffff !important;
    border: 1px solid #e7e7e7 !important;
    border-radius: 14px !important;
    box-shadow: 0 10px 28px rgba(0,0,0,0.06) !important;
    padding: 26px 22px !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    min-height: 100% !important;
    transition: all 0.3s ease !important;
}

.home-iso-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 14px 34px rgba(0,0,0,0.09) !important;
    border-color: #c6a76a !important;
}

.home-iso-head {
    display: flex !important;
    align-items: flex-start !important;
    gap: 15px !important;
    margin-bottom: 18px !important;
}

.home-iso-icon {
    width: 56px !important;
    height: 56px !important;
    min-width: 56px !important;
    border-radius: 12px !important;
    background: rgba(191,157,92,0.12) !important;
    color: #bf9d5c !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 24px !important;
    line-height: 1 !important;
}

.home-iso-title-wrap {
    flex: 1 !important;
}

.home-iso-code {
    font-size: 13px !important;
    color: #bf9d5c !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 6px !important;
    line-height: 1.4 !important;
}

.home-iso-title-wrap h3 {
    font-size: 22px !important;
    line-height: 1.35 !important;
    color: #1f2f4d !important;
    margin: 0 !important;
    min-height: 60px !important;
}

.home-iso-desc {
    font-size: 15px !important;
    line-height: 1.8 !important;
    color: #666666 !important;
    border-top: 1px solid #eeeeee !important;
    padding-top: 16px !important;
    margin-bottom: 22px !important;
    flex-grow: 1 !important;
}

.home-iso-action {
    margin-top: auto !important;
}

.home-iso-action .btn-sm-custom {
    min-width: 140px !important;
    text-align: center !important;
    padding: 11px 20px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
    display: inline-block !important;
}

@media (max-width: 991px) {
    .home-iso-title-wrap h3 {
        min-height: auto !important;
    }
}

@media (max-width: 767px) {
    .home-iso-services {
        padding: 55px 0 35px !important;
    }

    .home-iso-card {
        padding: 22px 18px !important;
    }

    .home-iso-head {
        gap: 12px !important;
    }

    .home-iso-icon {
        width: 50px !important;
        height: 50px !important;
        min-width: 50px !important;
        font-size: 22px !important;
    }

    .home-iso-title-wrap h3 {
        font-size: 20px !important;
    }

    .home-iso-desc {
        font-size: 14px !important;
        line-height: 1.75 !important;
    }
}


/* Card alignment safeguards */
.home-iso-services .home-iso-grid {
    align-items: stretch !important;
}

.home-iso-services .iso-grid-item {
    height: auto !important;
}

.home-iso-services .home-iso-card {
    position: relative !important;
    overflow: hidden !important;
}

.home-iso-services .home-iso-card::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 4px !important;
    background: linear-gradient(90deg, #223555, #b89b5e) !important;
}

.home-iso-services .home-iso-action {
    padding-top: 4px !important;
}

@media (min-width: 992px) {
    .home-iso-services .home-iso-card {
        min-height: 380px !important;
    }
}

/* ============================================================
   ABOUT MSI - MINI PROCESS CARDS
   ============================================================ */

.msi-process-gallery {
    display: flex;
    flex-wrap: wrap;
    margin: 28px -7px 32px;
}

.msi-process-gallery > .image-column {
    display: flex;
    padding: 0 7px;
    margin-bottom: 15px;
}

.msi-process-card {
    display: block;
    width: 100%;
    overflow: hidden;
    border: 1px solid #e4e4e4;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(24, 40, 68, 0.08);
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.msi-process-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(24, 40, 68, 0.14);
}

.msi-process-image {
    position: relative;
    width: 100%;
    height: 131px;
    overflow: hidden;
    background: #eef1f4;
}

.msi-process-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 55%,
        rgba(19, 40, 70, 0.12)
    );
    pointer-events: none;
}

.msi-process-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.35s ease;
}

.msi-process-card:hover .msi-process-image img {
    transform: scale(1.05);
}

.msi-process-info {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 82px;
    padding: 14px 12px;
    border-top: 3px solid var(--msi-gold);
}

.msi-process-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 39px;
    width: 39px;
    height: 39px;
    border-radius: 50%;
    background: var(--msi-navy);
    color: #ffffff;
    font-size: 15px;
}

.msi-process-info small {
    display: block;
    margin-bottom: 3px;
    color: var(--msi-gold);
    font-size: 11px;
    line-height: 1.2;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.msi-process-info h3 {
    margin: 0;
    color: var(--msi-navy);
    font-size: 16px;
    line-height: 1.35;
    font-weight: 400;
}

/* ============================================================
   ADDITIONAL ISO SERVICES
   Clean links and image hover without blue overlay/link icon.
   ============================================================ */

.additional-services-section {
    padding-bottom: 75px;
}

.additional-services-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

.additional-services-grid > .additional-service-card {
    display: flex;
    margin-bottom: 30px;
}

.additional-service-card .inner-box {
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow: hidden;
    border: 1px solid #e4e8ec;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(34, 53, 85, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.additional-service-card .inner-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 38px rgba(34, 53, 85, 0.13);
}

.additional-service-image {
    position: relative;
    margin: 0;
    overflow: hidden;
    background: #eef2f5;
}

.additional-service-image > a {
    display: block;
}

.additional-service-image img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 37 / 25;
    object-fit: cover;
    object-position: center;
    transition: transform 0.35s ease, filter 0.35s ease;
}

.additional-service-card .inner-box:hover .additional-service-image img {
    transform: scale(1.035);
    filter: saturate(1.03);
}

.additional-service-card .content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
}

.additional-service-card .content .text {
    flex: 1 1 auto;
}

.additional-service-card .content .read-more {
    align-self: flex-start;
    margin-top: auto;
}

/* Safety override in case an old cached overlay class remains in HTML. */
.additional-services-section .default-overlay-outer,
.additional-services-section .link-icon {
    display: none !important;
}

.additional-services-all-link {
    margin-top: 10px;
}

@media only screen and (max-width: 767px) {
    .msi-process-gallery {
        display: block;
    }

    .msi-process-gallery > .image-column {
        display: block;
    }

    .msi-process-image {
        height: 190px;
    }

    .msi-process-info h3 {
        font-size: 18px;
    }

    .additional-services-section {
        padding-bottom: 55px;
    }
}