/* Content sections for the home page and company pages (matches header.css palette) */

:root {
    --ms-green: #1e7fe4;
    --ms-green-dark: #0b2e57;
    --ms-green-soft: #e8f2fd;
    --ms-ink: #16202c;
    --ms-text: #5b6573;
    --ms-line: #e3e9f0;
    --ms-alt: #f4f8fd;
}

html { scroll-padding-top: 90px; } /* room for the sticky header when jumping to #anchors */

.hp-container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }

.ms-section { padding: 90px 0; background: #fff; }
.ms-section-alt { background: var(--ms-alt); }
.ms-section-dark {
    background: linear-gradient(135deg, var(--ms-green) 0%, var(--ms-green-dark) 100%);
    color: rgba(255, 255, 255, 0.85);
}
.ms-section p { color: var(--ms-text); line-height: 1.7; }
.ms-section-dark p { color: rgba(255, 255, 255, 0.8); }
/* White cards inside a dark section keep dark text */
.ms-section-dark .ms-card p, .ms-section-dark .ms-card li,
.ms-section-dark .co-facts p, .ms-section-dark .co-facts li,
.ms-section-dark .co-panel p, .ms-section-dark .co-module p { color: var(--ms-text); }
.ms-section-dark .ms-card .ms-eyebrow, .ms-section-dark .co-facts .ms-eyebrow { color: var(--ms-green); }

.ms-head { max-width: 760px; margin: 0 auto 50px; text-align: center; }
.ms-head-left { margin-left: 0; text-align: left; }
.ms-eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    font-family: 'Raleway', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ms-green);
}
.ms-section-dark .ms-eyebrow, .ms-hero .ms-eyebrow { color: #9ccbff; }
.ms-hero .ms-chips li { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.2); color: #fff; }
.ms-title {
    margin: 0 0 14px;
    font-family: 'Raleway', sans-serif;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--ms-ink);
}
.ms-section-dark .ms-title { color: #fff; }
.ms-lead { font-size: 17px; }

.ms-button {
    display: inline-block;
    padding: 13px 30px;
    border-radius: 50px;
    background: var(--ms-green);
    color: #fff;
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    transition: background 0.2s ease, transform 0.2s ease;
}
.ms-button i { margin-left: 8px; }
.ms-button:hover, .ms-button:focus { background: var(--ms-green-dark); color: #fff; transform: translateY(-1px); }
.ms-button-light { background: #fff; color: var(--ms-green); }
.ms-button-light:hover, .ms-button-light:focus { background: var(--ms-green-soft); color: var(--ms-green-dark); }
.ms-button-outline { background: transparent; border: 2px solid rgba(255, 255, 255, 0.7); color: #fff; }
.ms-button-outline:hover, .ms-button-outline:focus { background: rgba(255, 255, 255, 0.12); color: #fff; }

/* Stats strip */
.ms-stats {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: -60px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}
.ms-stat { padding: 30px 26px; border-right: 1px solid var(--ms-line); }
.ms-stat:last-child { border-right: 0; }
.ms-stat strong {
    display: block;
    font-family: 'Raleway', sans-serif;
    font-size: 34px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--ms-green);
}
.ms-stat span { display: block; margin-top: 6px; font-size: 14px; line-height: 1.5; color: var(--ms-text); }

/* Who we are */
.ms-philosophy { margin-top: 26px; padding: 22px 24px; border-left: 4px solid var(--ms-green); border-radius: 0 8px 8px 0; background: var(--ms-alt); }
.ms-philosophy small {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ms-ink);
}
.ms-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ms-chips li { padding: 6px 14px; border-radius: 30px; background: #fff; border: 1px solid var(--ms-line); font-size: 13px; font-weight: 600; color: var(--ms-ink); }
.ms-section-dark .ms-chips li { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.2); color: #fff; }

.ms-photo { position: relative; }
.ms-photo img { width: 100%; border-radius: 12px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12); }
.ms-photo-badge {
    position: absolute;
    left: -20px;
    bottom: -20px;
    padding: 18px 22px;
    border-radius: 10px;
    background: var(--ms-green);
    color: #fff;
    box-shadow: 0 14px 30px rgba(30, 127, 228, 0.35);
}
.ms-photo-badge strong { display: block; font-family: 'Raleway', sans-serif; font-size: 28px; line-height: 1; }
.ms-photo-badge span { font-size: 13px; opacity: 0.85; }

/* Cards */
.ms-grid { display: grid; gap: 26px; }
.ms-grid-2 { grid-template-columns: repeat(2, 1fr); }
.ms-grid-3 { grid-template-columns: repeat(3, 1fr); }
.ms-grid-4 { grid-template-columns: repeat(4, 1fr); }
.ms-grid-5 { grid-template-columns: repeat(5, 1fr); }
.ms-grid-6 { grid-template-columns: repeat(3, 1fr); }

.ms-card {
    position: relative;
    height: 100%;
    padding: 32px 28px;
    border: 1px solid var(--ms-line);
    border-radius: 12px;
    background: #fff;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.ms-card:hover { transform: translateY(-4px); border-color: transparent; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.09); }
.ms-card h3, .ms-card h4 {
    margin: 0 0 10px;
    font-family: 'Raleway', sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--ms-ink);
}
.ms-card h4 { font-size: 17px; }
.ms-card p { margin: 0; font-size: 15px; }
.ms-card-num {
    position: absolute;
    top: 24px;
    right: 26px;
    font-family: 'Raleway', sans-serif;
    font-size: 40px;
    font-weight: 800;
    line-height: 1;
    color: var(--ms-green-soft);
}
.ms-icon {
    display: inline-block;
    width: 56px;
    height: 56px;
    margin-bottom: 20px;
    border-radius: 14px;
    background: var(--ms-green-soft);
    color: var(--ms-green);
    font-size: 24px;
    line-height: 56px;
    text-align: center;
    transition: background 0.25s ease, color 0.25s ease;
}
.ms-card:hover .ms-icon { background: var(--ms-green); color: #fff; }

.ms-list { margin: 18px 0 0; padding: 0; list-style: none; }
.ms-list li { position: relative; padding: 5px 0 5px 22px; font-size: 14px; line-height: 1.5; color: var(--ms-text); }
.ms-list li::before {
    content: "\f00c";
    position: absolute;
    left: 0;
    top: 6px;
    font-family: 'FontAwesome';
    font-size: 12px;
    color: var(--ms-green);
}
.ms-links { margin: 20px 0 0; padding: 18px 0 0; border-top: 1px solid var(--ms-line); list-style: none; }
.ms-links li { padding: 3px 0; }
.ms-links a { font-weight: 600; font-size: 14px; color: var(--ms-green); }
.ms-links a i { margin-left: 6px; font-size: 12px; transition: transform 0.2s ease; }
.ms-links a:hover i { transform: translateX(3px); }

/* Timeline */
.ms-timeline { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; margin: 0; padding: 0; list-style: none; }
.ms-timeline::before {
    content: "";
    position: absolute;
    top: 27px;
    left: 8%;
    right: 8%;
    height: 2px;
    background: linear-gradient(90deg, var(--ms-green-soft), var(--ms-green), var(--ms-green-soft));
}
.ms-timeline li { position: relative; text-align: center; }
.ms-timeline-dot {
    position: relative;
    display: inline-block;
    width: 56px;
    height: 56px;
    margin-bottom: 18px;
    border: 4px solid #fff;
    border-radius: 50%;
    background: var(--ms-green);
    color: #fff;
    font-size: 20px;
    line-height: 48px;
    box-shadow: 0 0 0 2px var(--ms-green);
}
.ms-timeline li.is-next .ms-timeline-dot { background: #fff; color: var(--ms-green); }
.ms-timeline strong { display: block; font-family: 'Raleway', sans-serif; font-size: 22px; font-weight: 800; color: var(--ms-green); }
.ms-timeline h4 { margin: 4px 0 8px; font-family: 'Raleway', sans-serif; font-size: 16px; font-weight: 700; color: var(--ms-ink); }
.ms-timeline p { margin: 0; font-size: 14px; line-height: 1.55; }

/* Achievements */
.ms-award { display: flex; flex-direction: column; height: 100%; border-radius: 12px; background: #fff; overflow: hidden; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07); transition: transform 0.25s ease, box-shadow 0.25s ease; }
.ms-award:hover { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(0, 0, 0, 0.12); }
.ms-award-media { position: relative; aspect-ratio: 4 / 3; background: #f2f4f0; overflow: hidden; }
.ms-award-media img { width: 100%; height: 100%; object-fit: cover; }
.ms-award-media.is-contain img { object-fit: contain; padding: 24px; }
.ms-award-year {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 5px 14px;
    border-radius: 30px;
    background: var(--ms-green);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}
.ms-award-body { padding: 26px 26px 30px; }
.ms-award-body small { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ms-green); }
.ms-award-body h3 { margin: 0 0 10px; font-family: 'Raleway', sans-serif; font-size: 20px; font-weight: 700; line-height: 1.3; color: var(--ms-ink); }
.ms-award-body p { margin: 0; font-size: 15px; }

/* Global reach */
.ms-country {
    height: 100%;
    padding: 26px 22px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    transition: background 0.25s ease, transform 0.25s ease;
}
.ms-country:hover { background: rgba(255, 255, 255, 0.12); transform: translateY(-4px); }
.ms-country i { font-size: 26px; color: #9ccbff; }
.ms-country h4 { margin: 14px 0 8px; font-family: 'Raleway', sans-serif; font-size: 17px; font-weight: 800; letter-spacing: 0.06em; color: #fff; }
.ms-country p { margin: 0; font-size: 14px; line-height: 1.55; }
.ms-reach-foot { margin-top: 40px; text-align: center; }

/* Product strip */
.ms-product { display: flex; align-items: flex-start; gap: 18px; height: 100%; padding: 28px 26px; border-radius: 12px; background: #fff; border: 1px solid var(--ms-line); transition: transform 0.25s ease, box-shadow 0.25s ease; }
.ms-product:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.09); }
.ms-product .ms-icon { flex: 0 0 56px; margin: 0; }
.ms-product h4 { margin: 0 0 6px; font-family: 'Raleway', sans-serif; font-size: 18px; font-weight: 700; color: var(--ms-ink); }
.ms-product p { margin: 0 0 10px; font-size: 14px; }
.ms-product em { font-style: normal; font-weight: 700; font-size: 14px; color: var(--ms-green); }

/* Steps flow */
.ms-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 0; padding: 0; list-style: none; counter-reset: flow; }
.ms-flow-6 { grid-template-columns: repeat(6, 1fr); }
.ms-flow li { position: relative; padding: 26px 22px; border-radius: 12px; background: #fff; border: 1px solid var(--ms-line); counter-increment: flow; }
.ms-section-dark .ms-flow li { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.16); }
.ms-flow li:not(:last-child)::after {
    content: "\f105";
    position: absolute;
    top: 50%;
    right: -16px;
    z-index: 2;
    width: 24px;
    height: 24px;
    margin-top: -12px;
    border-radius: 50%;
    background: var(--ms-green);
    color: #fff;
    font-family: 'FontAwesome';
    font-size: 14px;
    line-height: 24px;
    text-align: center;
}
.ms-flow li::before {
    content: counter(flow, decimal-leading-zero);
    display: block;
    margin-bottom: 10px;
    font-family: 'Raleway', sans-serif;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--ms-green);
}
.ms-section-dark .ms-flow li::before { color: #9ccbff; }
.ms-flow h4 { margin: 0 0 6px; font-family: 'Raleway', sans-serif; font-size: 18px; font-weight: 800; color: var(--ms-ink); }
.ms-section-dark .ms-flow h4 { color: #fff; }
.ms-flow p { margin: 0; font-size: 14px; line-height: 1.55; }

.ms-quote {
    margin: 40px auto 0;
    max-width: 820px;
    font-family: 'Raleway', sans-serif;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.6;
    text-align: center;
    color: var(--ms-ink);
}
.ms-section-dark .ms-quote { color: #fff; }

/* AI / future of work */
.ms-shift { height: 100%; border-radius: 12px; background: #fff; border: 1px solid var(--ms-line); overflow: hidden; }
.ms-shift-head { padding: 20px 24px; background: var(--ms-green); color: #fff; font-family: 'Raleway', sans-serif; font-size: 18px; font-weight: 800; }
.ms-shift-head i { margin-right: 10px; }
.ms-shift dl { margin: 0; padding: 8px 24px 24px; }
.ms-shift dt { margin-top: 16px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ms-green); }
.ms-shift dd { margin: 4px 0 0; font-size: 14px; line-height: 1.6; color: var(--ms-text); }
.ms-shift dd.is-edge { padding: 12px 14px; border-radius: 8px; background: var(--ms-green-soft); color: var(--ms-ink); font-weight: 600; }

/* Worksheet */
.ms-worksheet { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.ms-worksheet div { padding: 24px; border-radius: 12px; border: 2px dashed rgba(255, 255, 255, 0.35); }
.ms-worksheet h4 { margin: 0 0 8px; font-family: 'Raleway', sans-serif; font-size: 20px; font-weight: 800; color: #fff; }
.ms-worksheet h4::after { content: " ..."; color: #9ccbff; }

/* CTA band */
.ms-cta-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 50px 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--ms-green) 0%, var(--ms-green-dark) 100%);
    color: rgba(255, 255, 255, 0.85);
}
.ms-cta-band h2 { margin: 0 0 8px; font-family: 'Raleway', sans-serif; font-size: 30px; font-weight: 800; color: #fff; }
.ms-cta-band p { margin: 0; color: rgba(255, 255, 255, 0.8); }
.ms-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; flex: 0 0 auto; }

/* Page hero for pages without the theme breadcrumb image */
.ms-hero { padding: 100px 0 110px; background: linear-gradient(135deg, var(--ms-green) 0%, var(--ms-green-dark) 100%); color: rgba(255, 255, 255, 0.85); }
.ms-hero h1 { margin: 0 0 18px; font-family: 'Raleway', sans-serif; font-size: 46px; font-weight: 800; line-height: 1.15; color: #fff; }
.ms-hero p { max-width: 640px; font-size: 18px; line-height: 1.7; color: rgba(255, 255, 255, 0.85); }
.ms-hero .ms-chips { margin-top: 26px; }
.ms-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.ms-hero-photo img { width: 100%; border-radius: 14px; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3); }

@media (max-width: 1199px) {
    .ms-grid-5 { grid-template-columns: repeat(3, 1fr); }
    .ms-timeline { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
    .ms-timeline::before { display: none; }
    .ms-flow-6 { grid-template-columns: repeat(3, 1fr); }
    .ms-flow-6 li:nth-child(3)::after { display: none; }
}

@media (max-width: 991px) {
    .ms-section { padding: 70px 0; }
    .ms-title { font-size: 30px; }
    .ms-stats { grid-template-columns: repeat(2, 1fr); margin-top: 30px; }
    .ms-stat:nth-child(2) { border-right: 0; }
    .ms-stat:nth-child(-n+2) { border-bottom: 1px solid var(--ms-line); }
    .ms-grid-3, .ms-grid-4, .ms-grid-6 { grid-template-columns: repeat(2, 1fr); }
    .ms-flow { grid-template-columns: repeat(2, 1fr); }
    .ms-flow li::after { display: none; }
    .ms-photo { margin-top: 40px; }
    .ms-photo-badge { left: 16px; }
    .ms-cta-band { flex-direction: column; align-items: flex-start; padding: 40px 32px; }
    .ms-hero { padding: 70px 0; }
    .ms-hero h1 { font-size: 36px; }
    .ms-hero-photo { margin-top: 40px; }
}

@media (max-width: 575px) {
    .ms-grid-2, .ms-grid-3, .ms-grid-4, .ms-grid-5, .ms-grid-6, .ms-flow, .ms-flow-6, .ms-worksheet { grid-template-columns: 1fr; }
    .ms-timeline { grid-template-columns: 1fr 1fr; }
    .ms-stats { grid-template-columns: 1fr 1fr; }
    .ms-stat { padding: 22px 18px; }
    .ms-stat strong { font-size: 26px; }
    .ms-hero h1 { font-size: 30px; }
}
