:root {
    /* 
       MIE Color System - Blue Palette (Feb 2026)
       Based on User Specification & DESIGN_SYSTEM.md
    */

    /* Level 1: Light / Backgrounds (#B9C4D7, #A8B8D2) */
    --color-primary-light: #B9C4D7;
    --color-primary-light-alt: #A8B8D2;

    /* Level 2: Medium / Secondary (#3F5B8A) */
    --color-primary-medium: #3F5B8A;

    /* Level 3: Dark / Primary / Brand (#052eb4) */
    --color-primary-dark: #052eb4;
    /* Updated to user preference */

    /* Level 4: Deep / Text / Headings (#405271) */
    --color-text-main: #405271;
    --color-text-dark: #020f2e;
    /* Updated to Deep Blue */
    /* Kept for deepest contrast */

    /* Level 5: Base Background */
    --color-bg-base: #FFFFFF;
    --color-bg-white: #FFFFFF;

    /* Accent Blue Bright */
    --color-accent-blue-bright: #4da6ff;

    /* Accent Color (Orange) - Retained as requested */
    --color-accent-orange: #e65100;
    --color-accent-orange-bright: #fd6d1f;

    /* Mapped Semantic Variables */
    --mie-blue: var(--color-primary-dark);
    --mie-dark: var(--color-text-main);
    --mie-light: var(--color-bg-base);
    --mie-accent: var(--color-primary-light);
}

html {
    overflow-x: hidden;
}

body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--color-text-main);
    background-color: var(--color-bg-base);
    overflow-x: hidden;
    width: 100%;
    margin: 0;
}

/* Navbar - Floating Rounded Rectangle */
.navbar {
    position: fixed;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    background-color: var(--color-bg-white);
    border-radius: 14px;
    padding: 0.65rem 1rem 0.65rem 1.5rem;
    max-width: 1200px;
    width: calc(100% - 40px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.navbar .container-fluid {
    display: flex;
    flex-wrap: inherit;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    width: 100%;
}

.navbar-brand {
    font-weight: 700;
    color: var(--color-primary-dark);
    font-size: 1.3rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.navbar-toggler {
    padding: 0.25rem 0.75rem;
    font-size: 1.25rem;
    line-height: 1;
    background-color: transparent;
    border: 1px solid transparent;
    border-radius: 0.25rem;
    cursor: pointer;
    display: none;
}

.navbar-toggler-icon {
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    vertical-align: middle;
    content: "";
    background: no-repeat center center;
    background-size: 100% 100%;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 0, 0, 0.55)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-collapse {
    flex-basis: auto;
    flex-grow: 1;
    align-items: center;
    display: flex;
    justify-content: center;
}

.navbar-nav {
    display: flex;
    flex-direction: row;
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
    gap: 0.5rem;
}

.navbar-nav-center {
    margin: 0 auto;
}

.nav-item {
    padding: 0;
}

.nav-link {
    font-weight: 500;
    color: var(--color-text-main);
    text-transform: none;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    transition: color 0.3s, background-color 0.3s;
    text-decoration: none;
    display: block;
    padding: 0.5rem 1.1rem;
    border-radius: 50px;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--color-text-dark);
    background-color: rgba(0, 0, 0, 0.05);
}

.nav-link.active {
    color: var(--color-primary-dark);
    background-color: rgba(5, 46, 180, 0.08);
    font-weight: 600;
}

/* CTA Button in Navbar */
.nav-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem 0.6rem 1.4rem;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-decoration: none;
    color: #ffffff;
    background-color: var(--color-primary-dark);
    border-radius: 100px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 10px rgba(5, 46, 180, 0.3);
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-cta-btn .cta-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background-color: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.nav-cta-btn .cta-arrow svg {
    width: 12px;
    height: 12px;
    fill: none;
    stroke: #ffffff;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nav-cta-btn:hover {
    background-color: var(--color-primary-medium);
    box-shadow: 0 4px 18px rgba(5, 46, 180, 0.45);
    transform: translateY(-1px);
    color: #ffffff;
}

.nav-cta-btn:hover .cta-arrow {
    background-color: rgba(255, 255, 255, 0.4);
}

.nav-cta-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(5, 46, 180, 0.3);
}

@media (min-width: 992px) {
    .navbar-expand-lg {
        flex-wrap: nowrap;
        justify-content: flex-start;
    }

    .navbar-expand-lg .navbar-nav {
        flex-direction: row;
    }

    .navbar-expand-lg .navbar-collapse {
        display: flex !important;
        flex-basis: auto;
    }

    .navbar-expand-lg .navbar-toggler {
        display: none;
    }
}

@media (max-width: 991.98px) {
    .navbar {
        border-radius: 16px;
        margin: 10px;
        max-width: calc(100% - 20px);
        padding: 0.6rem 1rem;
    }

    .navbar-collapse {
        display: none;
        padding-top: 0.5rem;
        justify-content: flex-start;
    }

    .navbar-collapse.show {
        display: block;
    }

    .navbar-nav {
        flex-direction: column;
        gap: 0.25rem;
    }

    .navbar-nav-center {
        margin: 0;
    }

    .navbar-toggler {
        display: block;
    }

    .nav-cta-btn {
        margin-top: 0.5rem;
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

/* Buttons (Replacing Bootstrap) */
.btn {
    display: inline-block;
    font-weight: 400;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    background-color: transparent;
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    border-radius: 0.25rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.btn-lg {
    padding: 0.5rem 1rem;
    font-size: 1.25rem;
    border-radius: 0.3rem;
}

/* Hero Section - Redesigned */
.hero-section {
    background: linear-gradient(rgba(255, 255, 255, 0.55), rgba(220, 230, 245, 0.45)), url('pic.svg/main/engineering workspace.jpg') center center / cover no-repeat;
    color: #ffffff;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-title span {
    display: block;
}

.hero-subtitle {
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
    max-width: 800px;
    line-height: 1.6;
    color: #ffffff;
    font-weight: 400;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Hero - EST. 1991 Badge */
.hero-est-badge {
    position: absolute;
    top: 100px;
    right: 40px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 4px;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
}

/* Hero - Professional Tag */
.hero-tag {
    display: inline-block;
    background-color: var(--color-primary-dark);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 0.45rem 1.2rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

/* Hero - Description Text */
.hero-description {
    font-size: 1.15rem;
    color: #4a4a4a;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
    font-weight: 500;
    text-shadow: none;
}

/* Hero - Bottom Info Bar */
.hero-info-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    padding: 1rem 2rem;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.hero-info-icon {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.hero-info-icon--green {
    color: #4caf50;
}

/* Hero responsive adjustments */
@media (max-width: 768px) {
    .hero-est-badge {
        top: 80px;
        right: 20px;
        font-size: 0.8rem;
        letter-spacing: 2px;
    }

    .hero-tag {
        font-size: 0.65rem;
        padding: 0.35rem 0.9rem;
    }

    .hero-description {
        font-size: 0.95rem;
        padding: 0 1rem;
    }

    .hero-info-bar {
        flex-direction: column;
        gap: 0.6rem;
        padding: 0.8rem 1rem;
    }

    .hero-info-item {
        font-size: 0.75rem;
    }
}


/* =========================================
   CUSTOM GRID SYSTEM & UTILITIES (Replacing Bootstrap)
   ========================================= */

/* Box Sizing Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Container */
.container,
.container-fluid {
    width: 100%;
    padding-right: var(--bs-gutter-x, 0.75rem);
    padding-left: var(--bs-gutter-x, 0.75rem);
    margin-right: auto;
    margin-left: auto;
    overflow-x: hidden;
}

@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Row */
.row {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 0;
    display: flex;
    flex-wrap: wrap;
    margin-top: calc(-1 * var(--bs-gutter-y));
    margin-right: calc(-0.5 * var(--bs-gutter-x));
    margin-left: calc(-0.5 * var(--bs-gutter-x));
}

.row>* {
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    padding-right: calc(var(--bs-gutter-x) * 0.5);
    padding-left: calc(var(--bs-gutter-x) * 0.5);
    margin-top: var(--bs-gutter-y);
}

/* Grid Columns */
.col-12 {
    flex: 0 0 auto;
    width: 100%;
}

@media (min-width: 768px) {
    .col-md-4 {
        flex: 0 0 auto;
        width: 33.33333333%;
    }

    .col-md-6 {
        flex: 0 0 auto;
        width: 50%;
    }

    .col-md-8 {
        flex: 0 0 auto;
        width: 66.66666667%;
    }

    .mb-md-0 {
        margin-bottom: 0 !important;
    }

    .flex-md-row-reverse {
        flex-direction: row-reverse !important;
    }
}

@media (min-width: 992px) {
    .col-lg-4 {
        flex: 0 0 auto;
        width: 33.33333333%;
    }

    .col-lg-6 {
        flex: 0 0 auto;
        width: 50%;
    }

    .col-lg-12 {
        flex: 0 0 auto;
        width: 100%;
    }

    .ps-lg-5 {
        padding-left: 3rem !important;
    }

    .mb-lg-0 {
        margin-bottom: 0 !important;
    }
}

@media (min-width: 1200px) {
    .col-xl-4 {
        flex: 0 0 auto;
        width: 33.33333333%;
    }
}

/* Utilities */
.d-flex {
    display: flex !important;
}

.align-items-center {
    align-items: center !important;
}

.justify-content-center {
    justify-content: center !important;
}

.justify-content-between {
    justify-content: space-between !important;
}

.flex-column {
    flex-direction: column !important;
}

.flex-wrap {
    flex-wrap: wrap !important;
}

.text-center {
    text-align: center !important;
}

.text-start {
    text-align: left !important;
}

.text-end {
    text-align: right !important;
}

.text-white {
    color: #fff !important;
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.5) !important;
}

.text-muted {
    color: #6c757d !important;
}

.text-uppercase {
    text-transform: uppercase !important;
}

.text-decoration-none {
    text-decoration: none !important;
}

.fw-bold {
    font-weight: 700 !important;
}

.fw-light {
    font-weight: 300 !important;
}

.fs-1 {
    font-size: 2.5rem !important;
}

.fs-2 {
    font-size: 2rem !important;
}

.fs-3 {
    font-size: 1.75rem !important;
}

.fs-4 {
    font-size: 1.5rem !important;
}

.fs-5 {
    font-size: 1.25rem !important;
}

.img-fluid {
    max-width: 100%;
    height: auto;
}

.rounded {
    border-radius: 0.25rem !important;
}

.rounded-circle {
    border-radius: 50% !important;
}

.shadow {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

/* Spacing Utilities */
.m-0 {
    margin: 0 !important;
}

.mt-0 {
    margin-top: 0 !important;
}

.mt-1 {
    margin-top: 0.25rem !important;
}

.mt-2 {
    margin-top: 0.5rem !important;
}

.mt-3 {
    margin-top: 1rem !important;
}

.mt-4 {
    margin-top: 1.5rem !important;
}

.mt-5 {
    margin-top: 3rem !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mb-1 {
    margin-bottom: 0.25rem !important;
}

.mb-2 {
    margin-bottom: 0.5rem !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.mb-5 {
    margin-bottom: 3rem !important;
}

.me-2 {
    margin-right: 0.5rem !important;
}

.ms-auto {
    margin-left: auto !important;
}

.p-0 {
    padding: 0 !important;
}

.p-4 {
    padding: 1.5rem !important;
}

.py-3 {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

.py-4 {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
}

.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

.px-0 {
    padding-right: 0 !important;
    padding-left: 0 !important;
}

.px-4 {
    padding-right: 1.5rem !important;
    padding-left: 1.5rem !important;
}

.px-5 {
    padding-right: 3rem !important;
    padding-left: 3rem !important;
}

.ps-5 {
    padding-left: 3rem !important;
}

/* Gutters */
.g-4,
.gx-4 {
    --bs-gutter-x: 1.5rem;
}

.g-4,
.gy-4 {
    --bs-gutter-y: 1.5rem;
}

.g-5,
.gx-5 {
    --bs-gutter-x: 3rem;
}

.g-5,
.gy-5 {
    --bs-gutter-y: 3rem;
}

.gx-lg-5 {
    --bs-gutter-x: 3rem;
}

/* Background Colors */
.bg-light {
    background-color: #f8f9fa !important;
}

.bg-white {
    background-color: #ffffff !important;
}

/* Additional Padding */
.p-3 {
    padding: 1rem !important;
}

.p-4 {
    padding: 1.5rem !important;
}

.p-5 {
    padding: 3rem !important;
}

/* Text Colors */
.text-dark {
    color: #212529 !important;
}

.text-primary {
    color: var(--color-primary-dark) !important;
}

/* Visibility */
.d-none {
    display: none !important;
}

.d-block {
    display: block !important;
}

@media (min-width: 992px) {
    .d-lg-block {
        display: block !important;
    }

    .d-lg-none {
        display: none !important;
    }
}

/* List */
.list-unstyled {
    padding-left: 0;
    list-style: none;
}

/* End of Grid & Utilities */

/* Gap Utilities (if not already defined) */
.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 1rem !important; }
.gap-4 { gap: 1.5rem !important; }

/* About Section Grid Redesign */
.about-section-container {
    background-color: #f4f6f9;
    border-radius: 12px;
    border: 1px solid #e1e5eb;
    padding: 3.5rem !important;
}

/* About - New Two-Column Layout */
.about-new-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-radius: 10px;
    overflow: hidden;
}

/* Left: dark blue text block */
.about-text-block {
    background-color: #23457a;
    padding: 1.5rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-text-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.2rem;
    line-height: 1.4;
}

.about-text-body {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.8;
    margin: 0;
}

/* Right: 2×2 stats grid */
.about-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}

.about-stat-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem 1rem;
    border: 1px solid rgba(5, 46, 180, 0.12);
    text-align: center;
    background: #fff;
}

.about-stat-cell h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #052eb4;
    margin-bottom: 0.3rem;
    line-height: 1.15;
}

.about-stat-cell p {
    font-size: 0.95rem;
    color: #6b7a99;
    margin: 0;
    font-weight: 500;
}

.about-stat-cell--iso h3 {
    font-size: 2rem;
}

@media (max-width: 768px) {
    .about-new-grid {
        grid-template-columns: 1fr;
    }

    .about-stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .about-text-block {
        padding: 1.8rem;
    }

    .about-stat-cell h3 {
        font-size: 1.7rem;
    }
}

.section-subtitle-line {
    position: relative;
    padding-left: 50px;
    font-weight: 800;
    color: #4da6ff;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
.section-subtitle-line::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 35px;
    height: 3px;
    background-color: #4da6ff;
}

.about-info-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 1.5rem 2rem;
    display: flex;
    gap: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
    align-items: flex-start;
    border: 1px solid #ffffff;
    transition: all 0.3s ease;
}

.about-info-card:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
    border-color: #eef2f7;
    transform: translateY(-2px);
}

.about-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
}

.about-card-content h5 {
    font-weight: 700;
    color: #020f2e;
    margin-bottom: 0.4rem;
    font-size: 1.05rem;
}

.about-card-content p {
    color: #405271;
    margin: 0;
    line-height: 1.6;
    font-size: 0.9rem;
}

.highlight-pill {
    background-color: #e9f0fc;
    color: #052eb4;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
}

.highlight-text {
    color: #052eb4;
    font-weight: 600;
}

.about-stats-card.dark-bg {
    background: #23457a;
    border-radius: 8px;
    padding: 1.5rem 2rem;
    text-align: center;
    color: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.stat-item h3 {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-item p {
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.9;
}

.stat-divider {
    height: 0.5px;
    background-color: rgba(255, 255, 255, 0.3);
    margin: 1rem 0;
    width: 100%;
}

.about-cert-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 1.5rem 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
    border: 1px solid #eef2f7;
}

.cert-header {
    font-weight: 700;
    color: #020f2e;
    display: flex;
    align-items: center;
}

.cert-box {
    background: #f4f7fb;
    padding: 1.5rem;
    border-radius: 6px;
}

.cert-box h4 {
    color: #020f2e;
    font-weight: 700;
    margin-bottom: 0.2rem;
    font-size: 1.25rem;
}

.cert-box p {
    color: #405271;
    margin: 0;
    font-size: 0.85rem;
}

.about-value-card {
    background: #d0def0;
    border-radius: 8px;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.value-label {
    color: #405271;
    margin-bottom: 0.2rem;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 0;
}

.about-value-card h3 {
    color: #020f2e;
    font-weight: 700;
    margin: 0;
    font-size: 1.8rem;
}

.value-icon {
    font-size: 2rem;
    color: #5c9ce6;
}

.about-btn-solid {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    background-color: #020f2e;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    border: 2px solid #020f2e;
}

.about-btn-solid:hover {
    background-color: transparent;
    color: #020f2e;
}

.about-custom-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 12px;
    align-items: stretch;
}

.about-grid-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.about-info-card {
    flex: 1;
}

@media (max-width: 991px) {
    .about-custom-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .about-section-container {
        padding: 1.5rem !important;
    }
    .about-info-card, .about-cert-card, .about-value-card {
        padding: 1.2rem;
    }
    .about-info-card {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Services Section */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-weight: 700;
    color: var(--color-text-main);
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    width: 60px;
    height: 4px;
    background-color: var(--color-primary-medium);
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.service-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
    background: white;
    display: flex;
    flex-direction: column;
}

.service-body {
    flex: 1;
}

.service-header {
    background-color: var(--color-primary-light);
    padding: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.service-icon {
    font-size: 2rem;
    color: var(--color-primary-dark);
    margin-right: 0;
}

.service-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    color: var(--color-text-dark);
    text-align: center;
    flex: 1;
}

.service-body {
    padding: 25px;
    background-color: white;
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-list li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
    font-size: 0.95rem;
    color: #555;
}

.service-list li::before {
    content: '›';
    color: var(--color-primary-medium);
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

/* Commitment/ISO Section */
.commitment-section {
    background-color: var(--color-text-main);
    /* Deep Blue-Grey */
    color: white;
    padding: 80px 0;
}

.commitment-text h3 {
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--color-primary-light);
}

.check-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: start;
}

.check-list i {
    color: var(--color-primary-medium);
    margin-right: 15px;
    font-size: 1.2rem;
    margin-top: 2px;
}

/* =========================================
   SVG Background Decoration Zone
   ========================================= */
.svg-bg-zone {
    position: relative;
}

.svg-bg-decor {
    position: absolute;
    z-index: 0;
    pointer-events: none;
    opacity: 0.08;
    user-select: none;
    will-change: transform;
}

/* Ensure all content sections sit above the SVG decorations */
.svg-bg-zone>section {
    position: relative;
    z-index: 1;
}

/* Hide some decorations on small screens to avoid clutter */
@media (max-width: 767px) {
    .svg-bg-decor.hide-mobile {
        display: none;
    }

    .svg-bg-decor {
        opacity: 0.05;
    }
}

/* Footer */
footer {
    background-color: var(--color-text-dark);
    /* Deepest Navy for Footer */
    color: #aaa;
    padding: 60px 0 30px;
}

footer h5 {
    color: white;
    font-weight: 600;
    margin-bottom: 25px;
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 1px;
}

footer a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: white;
}

/* =========================================
   PARTNERS SECTION — Static Grid
   ========================================= */
.partners-section {
    background-color: #f4f6f9;
    padding: 5rem 0;
}

.partners-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.partners-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #405271;
    text-transform: uppercase;
    margin-bottom: 3rem;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.25rem;
    margin-bottom: 3rem;
}

.partner-logo-card {
    background: #ffffff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    aspect-ratio: 3/2;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.partner-logo-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}

.partner-logo-card img {
    max-width: 100%;
    max-height: 60px;
    object-fit: contain;
    filter: grayscale(20%);
    transition: filter 0.25s ease;
}

.partner-logo-card:hover img {
    filter: grayscale(0%);
}

.partners-footer-text {
    text-align: center;
    color: #6c757d;
    font-size: 1rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

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

@media (max-width: 576px) {
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .partners-container {
        padding: 0 1rem;
        overflow-x: hidden;
    }

    .partner-logo-card {
        padding: 1rem 0.75rem;
    }

    .partner-logo-card img {
        max-height: 40px;
    }
}

.highlight-typewriter {
    background: #ff9d5c;
    padding: 6px 12px;
    border-radius: 12px;
    display: inline-block;
    position: relative;
    clip-path: inset(0 100% 0 0 round 12px);
    animation: reveal 3s ease-out forwards;
}

@keyframes reveal {
    0% {
        clip-path: inset(0 100% 0 0 round 12px);
    }

    100% {
        clip-path: inset(0 0 0 0 round 12px);
    }
}

.item1 {
    animation-delay: calc(15s / 5 * (5 - 1) * -1);
}

.item2 {
    animation-delay: calc(15s / 5 * (5 - 2) * -1);
}

.item3 {
    animation-delay: calc(15s / 5 * (5 - 3) * -1);
}

.item4 {
    animation-delay: calc(15s / 5 * (5 - 4) * -1);
}

.item5 {
    animation-delay: calc(15s / 5 * (5 - 5) * -1);
}

.partner-text {
    font-weight: 700;
    font-size: 1.2rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Custom CTA Button */
.cta {
    border: none;
    background: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    color: var(--color-primary-dark);
    margin-top: 30px;
    text-decoration: none;
    /* Remove default link underline */
}

.cta span {
    padding-bottom: 7px;
    letter-spacing: 4px;
    font-size: 14px;
    padding-right: 15px;
    text-transform: uppercase;
    font-weight: 700;
}

.cta svg {
    transform: translateX(-8px);
    transition: all 0.3s ease;
    fill: var(--color-primary-dark);
}

.cta:hover svg {
    transform: translateX(0);
}

.cta:active svg {
    transform: scale(0.9);
}

.hover-underline-animation {
    position: relative;
    padding-bottom: 20px;
}

.hover-underline-animation:after {
    content: "";
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--color-primary-dark);
    /* Using brand color */
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
}

.cta:hover .hover-underline-animation:after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Feature Card Shine and Border Effects */
.feature-card {
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 50%;
    height: 200%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.1),
            rgba(255, 255, 255, 0.5),
            rgba(255, 255, 255, 0.8),
            rgba(255, 255, 255, 0.5),
            rgba(255, 255, 255, 0.1),
            transparent);
    transform: skewX(-25deg);
    transition: left 0.8s ease;
    z-index: 1;
    pointer-events: none;
}

.feature-card:hover::before {
    left: 150%;
}

.feature-card:hover {
    border-color: #0d6efd !important;
    box-shadow: 0 0 20px rgba(13, 110, 253, 0.4), 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

.feature-card i,
.feature-card h5 {
    position: relative;
    z-index: 2;
}

/* Animation for About Section */
.animation-1 .image-wrapper {
    opacity: 0;
    transform: translateX(-100px);
}

.animation-1 .text-content {
    opacity: 0;
    transform: translateX(100px);
}

.animation-1.visible .image-wrapper {
    animation: slideInLeft 1s ease forwards;
}

.animation-1.visible .text-content {
    animation: slideInRight 1s ease 0.3s forwards;
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Animation 3: Scale In (for Services Section) */
.animation-3 .image-wrapper {
    opacity: 0;
    transform: scale(0.8);
}

.h-100 {
    height: 100% !important;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.services-grid > .image-wrapper {
    display: flex;
    flex-direction: column;
}

.services-grid > .image-wrapper > a {
    flex: 1;
    display: flex;
    flex-direction: column;
}

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

@media (max-width: 576px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

.animation-3 .text-content {
    opacity: 0;
    transform: scale(0.95);
}

.animation-3.visible .image-wrapper {
    animation: scaleIn 1s ease forwards;
}

.animation-3.visible .text-content {
    animation: scaleIn 1s ease 0.3s forwards;
}

@keyframes scaleIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* =========================================
   NEW FOOTER STYLES
   ========================================= */
.mie-footer {
    background-color: var(--color-text-dark);
    font-family: sans-serif;
}

/* Footer CTA */
.mie-footer-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 4rem 6rem;
    max-width: 1200px;
    margin: 0 auto;
}

.mie-footer-cta-text h2 {
    font-size: 2.4rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.75rem;
    line-height: 1.2;
    max-width: 600px;
}

.mie-footer-cta-text p {
    color: #a0aec0;
    font-size: 1rem;
    margin: 0;
    max-width: 560px;
    line-height: 1.7;
}

.mie-footer-cta-btn {
    display: inline-block;
    background-color: var(--color-primary-dark);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 14px rgba(5, 46, 180, 0.35);
}

.mie-footer-cta-btn:hover {
    background-color: var(--color-primary-medium);
    transform: translateY(-2px);
    color: #ffffff;
}

.mie-footer-separator {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.08);
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .mie-footer-cta {
        padding: 3rem 2rem;
        flex-direction: column;
        align-items: flex-start;
    }

    .mie-footer-cta-text h2 {
        font-size: 1.7rem;
    }
}

.mie-footer-main {
    display: grid;
    grid-template-columns: 1fr 1px 1fr;
    gap: 0;
    padding: 5rem 6rem;
    max-width: 1200px;
    margin: 0 auto;
}

.mie-footer-divider {
    background-color: rgba(255, 255, 255, 0.12);
    margin: 0 4rem;
}

.mie-footer-office-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.mie-footer-hq-badge {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #a0aec0;
    background-color: rgba(160, 174, 192, 0.15);
    border: 1px solid rgba(160, 174, 192, 0.4);
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    vertical-align: middle;
}

.mie-footer-address {
    color: #a0aec0;
    font-size: 0.875rem;
    line-height: 1.85;
    margin-bottom: 1.2rem;
}

.mie-footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    color: #a0aec0;
    font-size: 0.875rem;
}

.mie-footer-contacts a {
    color: #a0aec0;
    text-decoration: none;
    transition: color 0.2s;
}

.mie-footer-contacts a:hover {
    color: #ffffff;
}

.mie-footer-copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.4rem 6rem;
    text-align: center;
}

.mie-footer-copyright p {
    margin: 0;
    color: #6b7a99;
    font-size: 0.82rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .mie-footer-main {
        grid-template-columns: 1fr;
        padding: 3rem 2rem;
        gap: 2.5rem;
    }

    .mie-footer-divider {
        height: 1px;
        width: 100%;
        margin: 0;
        background-color: rgba(255, 255, 255, 0.12);
    }

    .mie-footer-copyright {
        padding: 1.2rem 2rem;
    }
}

/* =========================================
   MOBILE RESPONSIVE OVERHAUL
   ========================================= */

@media (max-width: 767px) {

    /* Hero (index.html) — keep enough padding so about card overlaps the image */
    .hero-section {
        padding-bottom: 140px !important;
    }

    /* Hero title — scale down from 4.5rem */
    .hero-title {
        font-size: 2.2rem !important;
        letter-spacing: -0.5px !important;
        line-height: 1.2 !important;
    }

    .hero-description {
        font-size: 0.9rem !important;
        padding: 0 0.5rem;
    }

    /* service.html hero */
    .service-hero {
        padding: 40px 0 50px !important;
    }

    .service-hero h1 {
        font-size: 2rem !important;
    }

    /* about.html hero banner */
    .hero-banner {
        min-height: 220px !important;
        margin-top: 76px;
    }

    .hero-banner h1 {
        font-size: 2.2rem !important;
        letter-spacing: 1px !important;
    }

    /* Restore margin-collapse so #about's negative margin overlaps the hero */
    .svg-bg-zone {
        overflow: visible !important;
    }

    /* About section — contain within viewport on mobile */
    #about {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .about-section-container {
        width: 100% !important;
        margin: 0 !important;
    }

    .about-new-grid {
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.14) !important;
    }

    /* Clients grid — keep 2 cols but ensure images aren't too tiny */
    #clients .image-card {
        aspect-ratio: 4/3 !important;
    }
}