/* Company pages: achievements, certifications, memberships, news (builds on sections.css) */

/* Stats strip that sits directly under the page hero */
.co-stats-wrap { padding: 70px 0 0; background: #fff; }
.co-stats-wrap .ms-stats { margin-top: 0; }

/* Alternating image + text rows */
.co-feature { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.co-feature + .co-feature { margin-top: 90px; }
.co-feature.is-reverse .co-feature-media { order: 2; }
.co-feature-media { position: relative; }
.co-feature-media img { display: block; width: 100%; border-radius: 18px; box-shadow: 0 24px 50px rgba(13, 38, 76, 0.16); }
.co-feature-media::before {
    content: "";
    position: absolute;
    inset: 24px -24px -24px 24px;
    z-index: -1;
    border-radius: 18px;
    background: var(--ms-green-soft);
}
.co-feature.is-reverse .co-feature-media::before { inset: 24px 24px -24px -24px; }
.co-feature-media { z-index: 0; }
.co-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
    padding: 6px 14px;
    border-radius: 30px;
    background: var(--ms-green-soft);
    color: var(--ms-green);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.co-tag.is-gold { background: #fff5d6; color: #a87700; }
.co-feature h3 {
    margin: 0 0 16px;
    font-family: 'Raleway', sans-serif;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--ms-ink);
}
.co-feature .ms-chips { margin-top: 20px; }

/* Certificate cards (portrait documents) */
.co-cert {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid var(--ms-line);
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.co-cert:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(13, 38, 76, 0.14); }
.co-cert-media { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--ms-alt); overflow: hidden; }
.co-cert-media img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform 0.6s ease; }
.co-cert:hover .co-cert-media img { transform: scale(1.05); }
.co-cert-media span {
    position: absolute;
    right: 14px;
    bottom: 14px;
    padding: 7px 14px;
    border-radius: 30px;
    background: rgba(11, 46, 87, 0.85);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.co-cert:hover .co-cert-media span { opacity: 1; transform: none; }
.co-cert-body { flex: 1; padding: 26px 26px 28px; }
.co-cert-code { display: block; font-family: 'Raleway', sans-serif; font-size: 26px; font-weight: 800; line-height: 1.1; color: var(--ms-green); }
.co-cert-body h4 { margin: 8px 0 10px; font-family: 'Raleway', sans-serif; font-size: 18px; font-weight: 700; color: var(--ms-ink); }
.co-cert-body p { margin: 0; font-size: 14.5px; }

/* Organisation cards with a wide logo banner */
.co-org {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid var(--ms-line);
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.co-org:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(13, 38, 76, 0.12); }
.co-org-logo { aspect-ratio: 2133 / 774; background: var(--ms-alt); overflow: hidden; }
.co-org-logo img { width: 100%; height: 100%; object-fit: cover; }
.co-org-body { flex: 1; display: flex; flex-direction: column; padding: 26px 28px 28px; }
.co-org-body h3 { margin: 0 0 4px; font-family: 'Raleway', sans-serif; font-size: 20px; font-weight: 700; color: var(--ms-ink); }
.co-org-body small { display: block; margin-bottom: 14px; font-size: 13px; font-weight: 600; color: var(--ms-green); }
.co-org-body p { margin: 0; font-size: 14.5px; }
.co-org-body .ms-list { margin-top: auto; padding-top: 16px; }

/* News */
.co-news-featured {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    border-radius: 20px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(13, 38, 76, 0.12);
}
.co-news-featured-media { display: block; min-height: 340px; background: var(--ms-alt); }
.co-news-featured-media img { width: 100%; height: 100%; object-fit: cover; }
.co-news-featured-body { display: flex; flex-direction: column; justify-content: center; padding: 44px 46px; }
.co-news-featured-body h2 { margin: 0 0 14px; font-family: 'Raleway', sans-serif; font-size: 26px; font-weight: 700; line-height: 1.35; }
.co-news-featured-body h2 a { color: var(--ms-ink); }
.co-news-featured-body h2 a:hover { color: var(--ms-green); }
.co-news-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 13px; color: var(--ms-text); }
.co-news-meta .co-tag { margin: 0; }
.co-news-more { margin-top: 10px; font-weight: 700; color: var(--ms-green); }
.co-news-more i { margin-left: 6px; transition: transform 0.2s ease; }
.co-news-more:hover i { transform: translateX(4px); }

.co-news-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
    border: 1px solid var(--ms-line);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.co-news-card:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(13, 38, 76, 0.12); }
.co-news-card-media { display: block; aspect-ratio: 16 / 10; background: var(--ms-alt); overflow: hidden; }
.co-news-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.co-news-card:hover .co-news-card-media img { transform: scale(1.05); }
.co-news-card-body { flex: 1; display: flex; flex-direction: column; padding: 24px 26px 26px; }
.co-news-card-body h3 { margin: 0 0 10px; font-family: 'Raleway', sans-serif; font-size: 18px; font-weight: 700; line-height: 1.4; }
.co-news-card-body h3 a { color: var(--ms-ink); }
.co-news-card-body h3 a:hover { color: var(--ms-green); }
.co-news-card-body p { margin: 0 0 12px; font-size: 14.5px; }
.co-news-card-body .co-news-more { margin-top: auto; }

/* "At a glance" card: course fee, program facts */
.co-facts {
    position: relative;
    padding: 34px 32px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid var(--ms-line);
    box-shadow: 0 26px 60px rgba(13, 38, 76, 0.12);
    overflow: hidden;
}
.co-facts::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 5px; background: linear-gradient(90deg, var(--ms-green), var(--ms-green-dark)); }
.co-facts-tag { position: absolute; top: 22px; right: 22px; padding: 6px 12px; border-radius: 30px; background: #fff5d6; color: #a87700; font-size: 12px; font-weight: 800; letter-spacing: 0.04em; }
.co-facts small { display: block; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ms-text); }
.co-facts-value { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; margin: 8px 0 4px; }
.co-facts-value strong { font-family: 'Raleway', sans-serif; font-size: 36px; font-weight: 800; line-height: 1.1; color: var(--ms-ink); }
.co-facts-value del { font-size: 17px; color: #9aa3ae; }
.co-facts-rows { margin: 20px 0 26px; padding: 0; list-style: none; }
.co-facts-rows li { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px dashed var(--ms-line); font-size: 14.5px; }
.co-facts-rows li:last-child { border-bottom: 0; }
.co-facts-rows span { color: var(--ms-text); }
.co-facts-rows b { color: var(--ms-ink); text-align: right; }
.co-facts .ms-list { margin: 20px 0 26px; }
.co-facts .ms-button { display: block; text-align: center; }
.co-facts-note { margin: 14px 0 0; font-size: 13px; text-align: center; color: var(--ms-text); }

/* Numbered module / section cards */
.co-module { position: relative; height: 100%; padding: 30px 26px; border-radius: 16px; background: #fff; border: 1px solid var(--ms-line); transition: transform 0.25s ease, box-shadow 0.25s ease; }
.co-module:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(13, 38, 76, 0.12); }
.co-module-tag { display: inline-block; margin-bottom: 16px; padding: 5px 12px; border-radius: 30px; background: var(--ms-green); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; }
.co-module h3 { margin: 0 0 10px; font-family: 'Raleway', sans-serif; font-size: 19px; font-weight: 700; color: var(--ms-ink); }
.co-module p { margin: 0; font-size: 14.5px; }

/* Checklist panels (eligibility, outcomes) */
.co-panel { height: 100%; padding: 34px 32px; border-radius: 18px; background: #fff; border: 1px solid var(--ms-line); }
.co-panel h3 { display: flex; align-items: center; gap: 12px; margin: 0 0 6px; font-family: 'Raleway', sans-serif; font-size: 22px; font-weight: 700; color: var(--ms-ink); }
.co-panel h3 i { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px; background: var(--ms-green-soft); color: var(--ms-green); font-size: 19px; line-height: 44px; text-align: center; }
.co-panel .ms-list li { font-size: 15px; }

/* Three-step flow */
.co-flow-3 { grid-template-columns: repeat(3, 1fr); }

/* Program cards on the career page */
.co-program {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--ms-line);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.co-program:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(13, 38, 76, 0.14); }
.co-program-media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ms-alt); }
.co-program-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.co-program:hover .co-program-media img { transform: scale(1.05); }
.co-program-media .co-tag { position: absolute; left: 16px; top: 16px; margin: 0; background: #fff; box-shadow: 0 8px 20px rgba(13, 38, 76, 0.15); }
.co-program-body { flex: 1; display: flex; flex-direction: column; padding: 26px 26px 28px; }
.co-program-body h3 { margin: 0 0 10px; font-family: 'Raleway', sans-serif; font-size: 20px; font-weight: 700; color: var(--ms-ink); }
.co-program-body p { margin: 0 0 16px; font-size: 14.5px; }
.co-program-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; padding: 0; list-style: none; }
.co-program-meta li { padding: 5px 12px; border-radius: 30px; background: var(--ms-alt); border: 1px solid var(--ms-line); font-size: 12.5px; font-weight: 600; color: var(--ms-ink); }
.co-program-meta i { margin-right: 5px; color: var(--ms-green); }
.co-program-body .co-news-more { margin-top: auto; }

@media (max-width: 991px) {
    .co-facts { margin-top: 40px; }
}
@media (max-width: 767px) {
    .co-flow-3 { grid-template-columns: 1fr; }
    .co-flow-3 li::after { display: none; }
}

@media (max-width: 991px) {
    .co-feature, .co-news-featured { grid-template-columns: 1fr; gap: 50px; }
    .co-feature.is-reverse .co-feature-media { order: 0; }
    .co-feature-media { max-width: 560px; }
    .co-news-featured { gap: 0; }
    .co-news-featured-body { padding: 32px 30px; }
}
@media (max-width: 767px) {
    .co-stats-wrap { padding-top: 50px; }
    .co-feature h3 { font-size: 23px; }
    .co-feature-media::before { display: none; }
    .co-news-featured-media { min-height: 220px; }
}
