/* =================================================================
   CORPORATE INFO — Light theme matching DSS HR / live site style
   Background: #ececec · Content: #fff · Accent: var(--dhs-red)
   ================================================================= */

/* ── Hero banner ─────────────────────────────────────────────── */
.ci-hero-wrap {
    position: relative;
    overflow: hidden;
}

.ci-hero {
    position: relative;
    min-height: 380px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

/* ── Hero: About Us ───────────────────────────────────────────── */
.ci-hero--about {
    background-image: url('/front/media/inner-banner2.jpg');
}

/* ── Page layout ──────────────────────────────────────────────── */
.ci-layout {
    background: #f3f4f6;
    padding: 50px 0 60px;
}

.ci-shell {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 2.75rem;
    align-items: start;
}

/* ── LEFT SIDEBAR ─────────────────────────────────────────────── */
.ci-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: sticky;
    top: 110px;
    background: radial-gradient(ellipse at 0% 0%, rgba(var(--dhs-red-rgb), 0.14) 0%, transparent 60%), linear-gradient(160deg, #0c2a4a 0%, #0d2b52 55%, #0c2a4a 100%);
    border-radius: 10px;
    padding: 1.5rem 1rem;
}

.ci-nav-card {
    background: transparent;
}

/* "ABOUT US" heading with red bar */
.ci-nav-title {
    font-size: 1.55rem;
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0 0 10px 44px;
    margin: 0 0 4px;
    position: relative;
    display: block;
}
.ci-nav-title::before {
    content: '';
    display: block;
    width: 34px;
    height: 13px;
    background: var(--dhs-red);
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-60%);
    border-radius: 0 3px 3px 0;
}
/* hide bootstrap icon inside title */
.ci-nav-title i { display: none; }
.ci-nav-copy    { display: none; }

.ci-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.ci-nav-list li {
    margin-bottom: 3px;
}
.ci-nav-list a {
    display: block;
    padding: 9px 14px;
    font-size: 1rem;
    font-weight: 500;
    color: #dedede;
    text-decoration: none;
    border-left: none;
    border-radius: 2px;
    transition: background 0.18s, color 0.18s;
}
.ci-nav-list a > i  { display: none; }
.ci-nav-arrow       { display: none; }

.ci-nav-list a:hover,
.ci-nav-list li.active a {
    background: var(--dhs-red);
    color: #fff !important;
    transform: none;
    border-left: none;
    font-weight: 600;
}

/* CTA / help card */
.ci-cta-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1.25rem;
}
.ci-cta-icon {
    font-size: 1.6rem;
    color: var(--dhs-red);
    display: block;
    margin-bottom: 0.55rem;
}
.ci-cta-card h3 {
    color: var(--dhs-primary);
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.4rem;
}
.ci-cta-card p {
    color: #666;
    font-size: 0.84rem;
    line-height: 1.65;
    margin: 0 0 0.85rem;
}
.ci-cta-btn {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 9px 16px;
    border-radius: 6px;
    font-size: 0.84rem;
    font-weight: 600;
    text-decoration: none;
    margin-top: 0.5rem;
    transition: background 0.18s, transform 0.18s;
    background: var(--dhs-red);
    color: #fff !important;
    border: 1.5px solid var(--dhs-red);
}
.ci-cta-btn:hover {
    background: var(--dhs-red-dark);
    border-color: var(--dhs-red-dark);
    transform: translateY(-1px);
}
.ci-cta-btn--outline {
    background: transparent;
    color: var(--dhs-primary) !important;
    border: 1.5px solid #ccc;
}
.ci-cta-btn--outline:hover {
    background: #f5f5f5;
    color: var(--dhs-primary) !important;
}

/* ── RIGHT CONTENT CARD ───────────────────────────────────────── */
.ci-content {
    min-width: 0;
}
.ci-content-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    padding: 2.25rem 2.5rem 2.5rem;
    overflow: visible;
    border: none;
}

/* Page title */
.ci-content-head {
    border-bottom: 1px solid #ccc;
    margin-bottom: 1.5rem;
    padding-bottom: 0;
    display: block;
}
.ci-content-icon      { display: none; }
.ci-content-headcopy  { display: block; }
.ci-content-kicker    { display: none; }
.ci-content-lead      { display: none; }

.ci-content-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--dhs-red);
    margin: 0 0 0.85rem;
    letter-spacing: 0;
    line-height: 1.2;
}

/* ── PROSE (body content) ─────────────────────────────────────── */
.ci-prose {
    padding: 0;
    color: #333;
    font-size: 18px;
    line-height: 1.85;
}

.ci-prose h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dhs-red);
    margin: 1.5rem 0 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #ddd;
}
.ci-prose h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dhs-primary);
    margin: 1.25rem 0 0.65rem;
}
.ci-prose p {
    font-size: 18px;
    color: #333;
    line-height: 1.85;
    margin-bottom: 1rem;
    text-align: justify;
}
.ci-prose p:last-child { margin-bottom: 0; }
.ci-prose strong,
.ci-prose b { color: var(--dhs-primary); font-weight: 700; }

.ci-prose ul,
.ci-prose ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}
.ci-prose li {
    font-size: 17px;
    color: #444;
    line-height: 1.8;
    margin-bottom: 0.45rem;
}
.ci-prose a {
    color: var(--dhs-red);
    text-underline-offset: 3px;
}
.ci-prose img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 0.75rem 0;
}
.ci-prose table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}
.ci-prose table th {
    background: var(--dhs-red);
    color: #fff;
    padding: 0.7rem 1rem;
    text-align: left;
}
.ci-prose table td {
    padding: 0.7rem 1rem;
    border-bottom: 1px solid #eee;
    color: #444;
}

/* ── Note / story highlight ───────────────────────────────────── */
.ci-story-card,
.ci-note-card {
    margin: 1.1rem 0 1.4rem;
    padding: 1.1rem 1.4rem;
    border-radius: 6px;
    background: #f9f9f9;
    border-left: 4px solid var(--dhs-red);
}
.ci-story-card p,
.ci-note-card p {
    margin-bottom: 0;
    font-size: 16px;
    color: #555;
    text-align: left !important;
}

/* ── Stats strip ──────────────────────────────────────────────── */
.ci-stats-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
    margin: 0 0 1.75rem;
}
.ci-stat-card {
    padding: 1.1rem 1rem;
    border-radius: 8px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    text-align: center;
}
.ci-stat-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--dhs-red);
    line-height: 1;
    margin-bottom: 0.35rem;
}
.ci-stat-label {
    display: block;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #777;
}

/* ── Office / cert pills ──────────────────────────────────────── */
.ci-office-pills,
.ci-cert-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.6rem 0 1.4rem;
}
.ci-office-pill,
.ci-cert-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 0.48rem 0.9rem;
    font-size: 0.84rem;
    color: #444;
    font-weight: 500;
    transition: background 0.18s, border-color 0.18s;
}
.ci-office-pill:hover,
.ci-cert-pill:hover {
    background: #fdecea;
    border-color: rgba(var(--dhs-red-rgb), 0.3);
}
.ci-office-pill i,
.ci-cert-pill i { color: var(--dhs-red); }
.ci-office-pill small { color: #999; font-weight: 400; font-size: 0.76rem; }

/* ── Client logos ─────────────────────────────────────────────── */
.ci-client-logos {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.85rem;
    margin: 0.6rem 0 1.4rem;
}
.ci-client-item {
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 76px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.ci-client-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}
.ci-client-item img {
    max-height: 48px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    opacity: 0.85;
    margin: 0;
    transition: opacity 0.2s;
}
.ci-client-item:hover img { opacity: 1; }

/* ── Empty state ──────────────────────────────────────────────── */
.ci-empty {
    padding: 3rem 0;
    text-align: center;
    color: #aaa;
}
.ci-empty i { font-size: 3rem; display: block; margin-bottom: 0.75rem; }
.ci-empty p { margin: 0; }

/* ── Org chart ────────────────────────────────────────────────── */
.ci-orgchart-wrap { margin: 1rem 0; text-align: center; background: #312f45; border-radius: 10px; padding: 1.5rem; }
.ci-orgchart-img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.12);
}

/* ── Mission & Vision rows ────────────────────────────────────── */
.ci-mv-row {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin: 1.75rem 0 0;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-bottom: none;
    border-radius: 4px 4px 0 0;
    padding: 1.75rem;
}
.ci-mv-row--reverse { flex-direction: row-reverse; margin-top: 2rem; }

.ci-mv-img { flex-shrink: 0; }
.ci-mv-img img {
    display: block;
    width: 220px;
    height: 220px;
    object-fit: cover;
    object-position: top center;
    border: 4px solid #ccc;
    border-radius: 2px;
    margin: 0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.ci-mv-copy { flex: 1; min-width: 0; }
.ci-mv-title {
    font-size: clamp(1.8rem, 3vw, 2.6rem) !important;
    font-weight: 400 !important;
    color: var(--dhs-primary) !important;
    margin: 0 0 0.9rem !important;
    line-height: 1.15 !important;
}
.ci-mv-copy p {
    font-size: 16px !important;
    color: #555 !important;
    line-height: 1.8 !important;
    margin: 0 !important;
    text-align: left !important;
}
.ci-mv-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 0.85rem 1.75rem;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-top: 1px solid #ccc;
    border-radius: 0 0 4px 4px;
    margin-bottom: 0;
    text-align: center;
}
.ci-mv-footer strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dhs-primary);
}
.ci-mv-footer span {
    display: block;
    font-size: 0.82rem;
    color: #888;
    line-height: 1.5;
}

/* ── History timeline — dss-hr.com alternating style ─────────── */
.ci-prose .main-timeline {
    display: flow-root;
    margin: 1.75rem 0 0.5rem;
}
.ci-prose .timeline {
    width: 50%;
    padding: 55px 0 0;
    margin: 0 5px 30px 0;
    float: left;
    --tl-color: var(--dhs-red);
}
.ci-prose .timeline:nth-child(2n) {
    margin: 0 0 30px 5px;
    float: right;
    --tl-color: var(--dhs-primary);
}
.ci-prose .timeline-content {
    min-height: 100px;
    padding: 12px 16px 12px 0;
    border-right: 2px solid var(--tl-color);
    position: relative;
}
.ci-prose .timeline:nth-child(2n) .timeline-content {
    padding: 12px 0 12px 16px;
    border-right: none;
    border-left: 2px solid var(--tl-color);
    text-align: left;
}
.ci-prose .timeline-content::before,
.ci-prose .timeline-content::after {
    content: '';
    background: var(--tl-color);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    position: absolute;
    right: -5px;
    top: 0;
}
.ci-prose .timeline-content::after { top: auto; bottom: 0; }
.ci-prose .timeline:nth-child(2n) .timeline-content::before,
.ci-prose .timeline:nth-child(2n) .timeline-content::after {
    right: auto;
    left: -5px;
}
.ci-prose .timeline-year {
    color: #fff;
    background: var(--tl-color);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 5px 22px 5px 52px;
    position: absolute;
    right: -2px;
    top: -52px;
    z-index: 1;
    white-space: nowrap;
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 15% 100%, 0 50%);
}
.ci-prose .timeline:nth-child(2n) .timeline-year {
    right: auto;
    left: -2px;
    padding: 5px 52px 5px 22px;
    clip-path: polygon(0 0, 85% 0, 100% 50%, 85% 100%, 0 100%);
}
.ci-prose .timeline .title {
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: var(--dhs-primary) !important;
    margin: 0 0 0.4rem !important;
    line-height: 1.3 !important;
}
.ci-prose .timeline .description {
    font-size: 14px !important;
    color: #555 !important;
    line-height: 1.72 !important;
    margin: 0 !important;
    text-align: left !important;
}

/* ── Team section ─────────────────────────────────────────────── */
.ci-team-section-label {
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.13em;
    color: #0d2b52;
    display: block;
    margin: 2.5rem 0 1.25rem;
    padding: 0.48rem 1rem;
    border-left: 4px solid var(--dhs-red);
    background: linear-gradient(to right, rgba(var(--dhs-red-rgb), 0.07), transparent 70%);
    border-radius: 0 4px 4px 0;
}
.ci-team-section-label::before { display: none; }
.ci-prose .team_row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 0 0 0.5rem;
}
/* Leadership gets 2-col fixed grid */
.ci-prose .team_row--leader {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}
/* MD featured horizontal card — premium dark navy */
.ci-prose .team_featured {
    display: flex;
    align-items: stretch;
    background: linear-gradient(135deg, #0c2a4a 0%, #0d2b52 60%, #122e5a 100%);
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(12,42,74,0.30);
    margin-bottom: 1.5rem;
    max-width: 100%;
    min-height: 320px;
}
.ci-prose .team_featured_img {
    width: 280px;
    flex-shrink: 0;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}
.ci-prose .team_featured_img::after {
    content: '';
    position: absolute;
    inset: 0;
    /* background: linear-gradient(to right, transparent 55%, #0d2b52 100%); */
    pointer-events: none;
}
.ci-prose .team_featured_img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: bottom center;
    display: block;
    margin: 0;
    transition: transform 0.4s ease;
}
.ci-prose .team_featured:hover .team_featured_img img { transform: scale(1.05); }
.ci-prose .team_featured_body {
    padding: 2.25rem 2rem 2.25rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.7rem;
    flex: 1;
    position: relative;
    border-left: 4px solid var(--dhs-red);
}
.ci-prose .team_featured_badge {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #fff;
    background: var(--dhs-red);
    padding: 0.28rem 0.9rem;
    border-radius: 20px;
    width: fit-content;
}
.ci-prose .team_featured_name {
    font-size: 1.9rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.15;
    letter-spacing: -0.02em;
}
.ci-prose .team_featured_copy {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.68);
    line-height: 1.75;
    margin: 0;
}
.ci-prose .team_featured .view_bio {
    background: var(--dhs-red);
    color: #fff;
    margin-top: 0.35rem;
    width: fit-content;
    padding: 0.4rem 1.1rem;
    font-size: 0.76rem;
}
.ci-prose .team_featured .view_bio:hover { background: var(--dhs-red-dark); }

/* Leadership portrait cards — overlay style */
.ci-prose .team_row--leader .team_box {
    background: #0d2b52;
    border: none;
    border-radius: 14px;
    box-shadow: 0 6px 24px rgba(12,42,74,0.22);
    position: relative;
    overflow: hidden;
}
.ci-prose .team_row--leader .team_box:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(12,42,74,0.32);
    border-color: transparent;
}
.ci-prose .team_row--leader .team_img {
    aspect-ratio: 4 / 3;
}
.ci-prose .team_row--leader .team_img img {
    filter: grayscale(0%);
}
.ci-prose .team_row--leader .team_info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(12,42,74,0.97) 0%, rgba(12,42,74,0.75) 55%, transparent 100%);
    padding: 2.5rem 1rem 1rem;
    align-items: flex-start;
    border-radius: 0;
    flex: unset;
    justify-content: flex-end;
}
.ci-prose .team_row--leader .team_name {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    text-align: left;
}
.ci-prose .team_row--leader .team_designation {
    color: rgba(255,255,255,0.65);
    font-size: 0.76rem;
    text-align: left;
}
.ci-prose .team_row--leader .view_bio {
    background: rgba(255,255,255,0.12);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.28);
    backdrop-filter: blur(4px);
    transition: background 0.2s, border-color 0.2s;
}
.ci-prose .team_row--leader .view_bio:hover {
    background: var(--dhs-red);
    border-color: var(--dhs-red);
}
.ci-prose .team_box {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
    display: flex;
    flex-direction: column;
}
.ci-prose .team_box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 28px rgba(49,47,69,0.14);
    border-color: #312f45;
}
.ci-prose .team_img {
    width: 100%;
    aspect-ratio: 3 / 3.5;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
}
.ci-prose .team_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    filter: grayscale(10%);
    transition: filter 0.35s, transform 0.35s;
    margin: 0;
    display: block;
}
.ci-prose .team_box:hover .team_img img {
    filter: grayscale(0%);
    transform: scale(1.04);
}
.ci-prose .team_info {
    padding: 0.75rem 0.7rem 0.85rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.ci-prose .team_name {
    font-size: 0.88rem;
    font-weight: 700;
    color: #312f45;
    margin: 0 0 0.2rem;
    line-height: 1.3;
}
.ci-prose .team_designation {
    font-size: 0.75rem;
    color: #888;
    margin: 0;
    line-height: 1.4;
}
.ci-prose .view_bio {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.5rem;
    font-size: 0.72rem;
    color: #fff;
    background: #312f45;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    padding: 0.28rem 0.75rem;
    border-radius: 20px;
    transition: background 0.2s;
}
.ci-prose .view_bio:hover { background: var(--dhs-red); }

/* ── Overlay cards — Management / OET / IELTS ────────────────── */
.ci-prose .team_row--overlay .team_box {
    display: block;
    background: #0d2b52;
    border: none;
    border-radius: 12px;
    box-shadow: 0 6px 24px rgba(12,42,74,0.20);
    position: relative;
    overflow: hidden;
}
.ci-prose .team_row--overlay .team_box:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 36px rgba(12,42,74,0.30);
    border-color: transparent;
}
.ci-prose .team_row--overlay .team_img {
    aspect-ratio: 3 / 3.5;
}
.ci-prose .team_row--overlay .team_img img {
    filter: grayscale(15%);
}
.ci-prose .team_row--overlay .team_box:hover .team_img img {
    filter: grayscale(0%);
    transform: scale(1.04);
}
.ci-prose .team_row--overlay .team_info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(12,42,74,0.97) 0%, rgba(12,42,74,0.72) 55%, transparent 100%);
    padding: 2.5rem 0.9rem 0.85rem;
    align-items: flex-start;
    border-radius: 0;
    flex: unset;
    justify-content: flex-end;
}
.ci-prose .team_row--overlay .team_name {
    color: #fff;
    font-size: 0.86rem;
    font-weight: 700;
    text-align: left;
}
.ci-prose .team_row--overlay .team_designation {
    color: rgba(255,255,255,0.65);
    font-size: 0.71rem;
    text-align: left;
}

/* ── Office team grid — white cards, 3 col ───────────────────── */
.ci-prose .team_row--office-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* ── Team popup ───────────────────────────────────────────────── */
.popup_overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 1050;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}
.popup_overlay.active { display: flex; }
.main-popup {
    background: #fff;
    border-radius: 12px;
    max-width: 680px;
    width: 100%;
    display: flex;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.22);
}
.main-popup .popup_left {
    width: 34%;
    flex-shrink: 0;
    background: #f0f4f8;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}
.main-popup .popup_left img {
    width: 100%;
    border-radius: 10px;
    margin: 0;
}
.main-popup .popup_right {
    flex: 1;
    padding: 1.5rem 1.5rem 1.5rem 1.2rem;
    overflow-y: auto;
}
.main-popup .popup_close {
    float: right;
    background: var(--dhs-red);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 1rem;
    cursor: pointer;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Mission / Vision message cards ──────────────────────────── */
.ci-msg-card {
    display: flex;
    align-items: stretch;
    background: linear-gradient(135deg, #0c2a4a 0%, #0d2b52 60%, #122e5a 100%);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(12,42,74,0.28);
    margin-bottom: 1.5rem;
    min-height: 280px;
}
.ci-msg-card--reverse { flex-direction: row-reverse; }

.ci-msg-img {
    width: 280px;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
    border-right: 4px solid var(--dhs-red);
}
.ci-msg-card--reverse .ci-msg-img {
    border-right: none;
    border-left: 4px solid var(--dhs-red);
}
.ci-msg-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    margin: 0;
    transition: transform 0.4s ease;
}
.ci-msg-card:hover .ci-msg-img img {
    transform: scale(1.04);
}

.ci-msg-body {
    flex: 1;
    padding: 2.25rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.75rem;
}
.ci-msg-card--reverse .ci-msg-body {
    padding: 2.25rem 2.5rem;
}

.ci-msg-badge {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #fff;
    background: var(--dhs-red);
    padding: 0.28rem 0.9rem;
    border-radius: 20px;
    width: fit-content;
}

.ci-msg-quote-mark {
    font-size: 4.5rem;
    color: rgba(255,255,255,0.12);
    line-height: 0.75;
    font-family: Georgia, serif;
    font-weight: 900;
    user-select: none;
    margin-bottom: -0.75rem;
}

.ci-msg-text {
    font-size: 1rem;
    color: rgba(255,255,255,0.82);
    line-height: 1.85;
    font-style: italic;
    margin: 0;
}

.ci-msg-person {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(255,255,255,0.15);
    margin-top: 0.25rem;
}
.ci-msg-person strong {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
}
.ci-msg-person span {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.02em;
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 1199px) {
    .ci-shell { grid-template-columns: 210px minmax(0, 1fr); }
    .ci-client-logos { grid-template-columns: repeat(4, 1fr); }
    .ci-stats-strip  { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 991px) {
    .ci-hero { min-height: 300px; }
    .ci-shell { grid-template-columns: 1fr; }
    .ci-sidebar { position: static; flex-direction: row; flex-wrap: wrap; gap: 1rem; }
    .ci-nav-card { flex: 1 1 200px; }
    .ci-cta-card { flex: 1 1 200px; }
    .ci-content-card { padding: 1.75rem 1.5rem 2rem; }
    .ci-mv-row,
    .ci-mv-row--reverse { flex-direction: column; padding: 1.25rem; }
    .ci-mv-img img { width: 180px; height: 180px; }
    .ci-prose .team_featured { flex-direction: column; max-width: 100%; min-height: unset; }
    .ci-prose .team_featured_img { width: 100%; height: 280px; }
    .ci-prose .team_featured_img::after { background: linear-gradient(to bottom, transparent 55%, #0d2b52 100%); }
    .ci-prose .team_featured_body { border-left: none; border-top: 4px solid var(--dhs-red); padding: 1.5rem 1.5rem 1.75rem; }
    .ci-prose .team_row--leader { grid-template-columns: repeat(2, 1fr); }
    .ci-prose .team_row--office-grid { grid-template-columns: repeat(2, 1fr); }
    .ci-msg-card,
    .ci-msg-card--reverse { flex-direction: column; }
    .ci-msg-img { width: 100%; height: 280px; border-right: none; border-left: none; border-bottom: 4px solid var(--dhs-red); }
    .ci-msg-card--reverse .ci-msg-img { border-right: none; border-left: none; border-bottom: 4px solid var(--dhs-red); }
    .ci-msg-body,
    .ci-msg-card--reverse .ci-msg-body { border-left: none; border-right: none; border-top: none; padding: 1.5rem 1.5rem 1.75rem; }
}

@media (max-width: 767px) {
    .ci-layout { padding: 2rem 0 3rem; }
    .ci-hero { min-height: 240px; }
    .ci-content-card { padding: 1.25rem 1rem 1.5rem; border-radius: 8px; }
    .ci-client-logos { grid-template-columns: repeat(3, 1fr); }
    .ci-mv-grid { grid-template-columns: 1fr; }
    .ci-mv-img img { width: 160px; height: 160px; }
    /* Timeline stack */
    .ci-prose .timeline,
    .ci-prose .timeline:nth-child(2n) {
        width: 100%; float: none;
        margin: 0 0 30px 0; padding-top: 55px;
    }
    .ci-prose .timeline:nth-child(2n) .timeline-content {
        padding: 12px 16px 12px 0;
        border-left: none;
        border-right: 2px solid var(--tl-color);
    }
    .ci-prose .timeline:nth-child(2n) .timeline-content::before,
    .ci-prose .timeline:nth-child(2n) .timeline-content::after {
        left: auto; right: -5px;
    }
    .ci-prose .timeline:nth-child(2n) .timeline-year {
        left: auto; right: -2px;
        padding: 5px 22px 5px 52px;
        clip-path: polygon(15% 0, 100% 0, 100% 100%, 15% 100%, 0 50%);
    }
    .ci-prose .team_row { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
    .ci-prose .team_row--overlay { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
    .ci-prose .team_row--office-grid { grid-template-columns: repeat(2, 1fr); }
    .main-popup { flex-direction: column; max-height: 90vh; }
    .main-popup .popup_left { width: 100%; padding: 1.25rem 1.25rem 0; }
    .main-popup .popup_right { padding: 1.25rem; }
    .ci-prose { font-size: 16px; }
    .ci-prose li { font-size: 15px; }
}

@media (max-width: 575px) {
    .ci-stats-strip { grid-template-columns: 1fr 1fr; }
    .ci-client-logos { grid-template-columns: repeat(2, 1fr); }
    .ci-prose .team_row { grid-template-columns: repeat(2, 1fr); }
    .ci-prose .team_row--overlay { grid-template-columns: repeat(2, 1fr); }
    .ci-prose .team_row--leader { grid-template-columns: repeat(2, 1fr); }
    .ci-prose .team_row--office-grid { grid-template-columns: repeat(2, 1fr); }
}
