/*================================================
Home page (layout modelled on cioreview.com)
=================================================*/

.cio-home {
    padding: 10px 0 0;
    background: #ffffff;
    color: #222222;
}

.cio-home a {
    display: inline;
    color: inherit;
}

.cio-home a:hover {
    color: #1f70c1;
}

.cio-home h2,
.cio-home h3,
.cio-home h4,
.cio-home h5 {
    font-family: var(--font-serif);
    color: #000000;
    margin: 0;
}

.cio-home img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cio-thumb {
    display: block !important;
    flex: 0 0 auto;
    overflow: hidden;
    background: #f2f2f2;
}

/* Bylines */
.cio-by {
    margin: 6px 0 0;
    font-family: var(--font-serif);
    font-size: 13px;
    line-height: 1.5;
    color: #555555;
}

.cio-by-italic {
    font-style: italic;
    font-weight: 500;
}

/* Category tag: white on navy */
.cio-tag {
    display: inline-block !important;
    margin: 16px 0 10px;
    padding: 3px 10px;
    font-family: var(--font-serif);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .5px;
    line-height: 17px;
    text-transform: uppercase;
    color: #ffffff !important;
    background: #001b75;
}

/* ---------- Hero ---------- */
.cio-hero {
    margin-bottom: 30px;
}

.cio-lead-image {
    display: block !important;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.cio-lead .cio-tag {
    margin-top: 14px;
}

.cio-lead-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
}

.cio-lead-by {
    margin: 8px 0 0;
    font-family: var(--font-serif);
    font-size: 15px;
    line-height: 1.5;
    color: #555555;
}

/* Headline list: equal tiles (same design as the topic stack) that together
   fill exactly the height of the lead story, so both columns end level */
.cio-headlines {
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100%;
}

.cio-headline {
    display: flex;
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
    background: #f4f8fc;
    border-left: 3px solid #219fe5;
    border-radius: 8px;
    transition: background .2s;
}

.cio-headline:hover {
    background: #e9f4fd;
}

.cio-headline .cio-thumb {
    width: 150px;
    height: auto;
    border-radius: 0;
    background: #ffffff;
}

.cio-headline .cio-thumb img {
    border-radius: 0;
}

.cio-headline-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 10px 14px;
}

.cio-headline-kicker {
    font-family: var(--font-serif);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .5px;
    line-height: 1.3;
    text-transform: uppercase;
    color: #219fe5;
}

.cio-headline h3 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 4px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
}

.cio-headline .cio-by {
    margin-top: 4px;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.theme-dark .cio-headline {
    background: #161b20;
}

/* ---------- Section header: sky-blue tab on a sky-blue rule ---------- */
.cio-block {
    margin-bottom: 30px;
}

/* The section header (.cio-block-title) lives in shared.css */

/* ---------- Cards (image on top) ---------- */
.cio-card {
    margin-bottom: 20px;
}

.cio-card-image {
    display: block !important;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    margin-bottom: 12px;
}

.cio-card h3 {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
}

.cio-card-big h3 {
    font-size: 17px;
}

/* Right-hand stack in the "feature" topic layout: three equal tiles that
   together fill exactly the height of the big story on the left */
.cio-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100%;
    padding-bottom: 20px;
}

.cio-stack .cio-row {
    flex: 1 1 0;
    min-height: 0;
    align-items: stretch;
    gap: 0;
    margin-bottom: 0;
    overflow: hidden;
    background: #f4f8fc;
    border-left: 3px solid #219fe5;
    transition: background .2s;
}

.cio-stack .cio-row:hover {
    background: #e9f4fd;
}

.cio-stack .cio-thumb {
    width: 150px;
    max-width: none;
    height: auto;
    aspect-ratio: auto;
    background: #ffffff;
}

.cio-stack .cio-row-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 10px 14px;
}

.cio-stack h3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 15px;
}

.cio-stack .cio-by {
    margin-top: 4px;
}

.theme-dark .cio-stack .cio-row {
    background: #161b20;
}

/* Three-across topic cards: every title box is exactly 3 lines tall,
   longer titles end in "...", and the byline stays on one line */
.cio-card:not(.cio-card-big) h3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: calc(1.4em * 3);
}

.cio-card:not(.cio-card-big) .cio-by {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---------- Rows (thumbnail left, text right) ---------- */
.cio-row {
    display: flex;
    gap: 18px;
    margin-bottom: 18px;
}

.cio-row .cio-thumb {
    width: 45%;
    max-width: 160px;
    aspect-ratio: 4 / 3;
}

.cio-row h3 {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
}

.cio-row-small .cio-thumb {
    width: 100px;
    aspect-ratio: 4 / 3;
}

.cio-row-small h3 {
    font-size: 14px;
}

.cio-row-wide {
    padding-bottom: 18px;
    border-bottom: 1px solid #eeeeee;
}

.cio-row-wide:last-child {
    border-bottom: 0;
}

.cio-row-wide .cio-thumb {
    width: 180px;
    max-width: none;
    aspect-ratio: 16 / 9;
}

.cio-row-wide h3 {
    padding-top: 10px;
    font-size: 17px;
}

.cio-thumb-logo {
    background: #ffffff;
    border: 1px solid #eeeeee;
}

.cio-thumb-logo img {
    object-fit: contain;
    padding: 10px;
}

/* ---------- Editor's Picks / Awards: equal tiles (same design as the headline tiles) ---------- */
.cio-pick {
    display: flex;
    height: 150px;
    margin-bottom: 20px;
    overflow: hidden;
    background: #f4f8fc;
    border-left: 3px solid #219fe5;
    border-radius: 8px;
    transition: background .2s;
}

.cio-pick:hover {
    background: #e9f4fd;
}

.cio-pick .cio-thumb {
    width: 160px;
    height: 100%;
    border-radius: 0;
    background: #ffffff;
}

.cio-pick .cio-thumb img {
    border-radius: 0;
}

/* Text centred in the tile; long titles end in "..." */
.cio-pick-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 10px 14px;
    overflow: hidden;
}

/* Up to 4 lines, so most titles show in full; only very long ones end in "..." */
.cio-pick h3 {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
}

.cio-pick .cio-by {
    margin: 4px 0 0;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.theme-dark .cio-pick {
    background: #161b20;
}

/* ---------- Editor's Picks: three-across cards, light border on all sides ---------- */
.cio-pick-card {
    margin-bottom: 20px;
    overflow: hidden;
    background: #f4f8fc;
    border: 1px solid #b5d4f4;
    border-radius: 8px;
    transition: background .2s, box-shadow .2s;
}

.cio-pick-card:hover {
    background: #e9f4fd;
    box-shadow: 0 6px 18px rgba(0, 111, 194, .08);
}

/* Same frame for every picture; a light background shows behind any gaps */
.cio-pick-card-image {
    display: block !important;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: #e9eef3;
}

/* A 3:2 frame (close to the 4:3 editor photos) that keeps its shape at every
   screen width, so very little is cropped; the small crop is taken mostly from
   the bottom, so faces stay fully in view. The card clips the image, so the
   image itself needs no rounding. */
.cio-home .cio-pick-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    border-radius: 0;
}

.cio-pick-card-body {
    padding: 12px 14px 14px;
}

/* Every title box is exactly 3 lines tall; longer titles end in "..." */
.cio-pick-card h3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: calc(1.4em * 3);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
}

.cio-pick-card .cio-by {
    margin-top: 6px;
    min-height: 1.5em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.theme-dark .cio-pick-card {
    background: #161b20;
    border-color: #23435f;
}

/* ---------- Awards: equal-size cards (the earlier press release design) ---------- */
.cio-award-card {
    display: flex;
    flex-direction: column;
    margin-bottom: 24px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    transition: transform .25s, box-shadow .25s;
}

.cio-award-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .1);
}

/* Award images are mostly company logos: show the whole image, centred,
   on a white panel instead of cropping it to fill the frame */
.cio-award-card-image {
    display: flex !important;
    align-items: center;
    justify-content: center;
    height: 190px;
    padding: 20px 24px;
    overflow: hidden;
    background: #ffffff;
    border-bottom: 1px solid #eef2f6;
}

.cio-home .cio-award-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 0;
    transition: transform .4s;
}

.cio-award-card:hover .cio-award-card-image img {
    transform: scale(1.05);
}

/* Same height for every card's text; long titles end in "..." */
.cio-award-card-body {
    height: 130px;
    padding: 14px 18px 16px;
    overflow: hidden;
}

.cio-award-card-label {
    display: block;
    margin-bottom: 6px;
    font-family: var(--font-serif);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: #219fe5;
}

.cio-award-card h3 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
}

.cio-award-card .cio-by {
    margin-top: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.theme-dark .cio-award-card {
    background: #141414;
    border-color: #2a2a2a;
}

/* ---------- Press releases: framed logo, light card, read-more link ---------- */
.cio-pr {
    display: flex;
    flex-direction: column;
    margin-bottom: 24px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #b5d4f4;
    border-radius: 12px;
    transition: transform .25s, box-shadow .25s;
}

.cio-pr:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0, 111, 194, .12);
}

/* Logo sits in its own rounded frame inside the card, shown in full */
.cio-pr-image {
    display: block !important;
    height: 170px;
    margin: 10px 10px 0;
    overflow: hidden;
    border-radius: 8px;
    background: #f4f8fc;
}

.cio-home .cio-pr-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    transition: transform .4s;
}

.cio-pr:hover .cio-pr-image img {
    transform: scale(1.04);
}

.cio-pr-body {
    padding: 14px 16px 16px;
}

/* Every title box is exactly 3 lines tall; longer titles end in "..." */
.cio-pr h3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: calc(1.4em * 3);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
}

.cio-pr-more {
    display: block !important;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e5edf5;
    font-size: 13px;
    font-weight: 600;
    color: #006fc2 !important;
}

.cio-pr-more i {
    margin-left: 4px;
    transition: margin-left .2s;
}

.cio-pr:hover .cio-pr-more i {
    margin-left: 8px;
}

.theme-dark .cio-pr {
    background: #141414;
    border-color: #23435f;
}

.theme-dark .cio-pr-more {
    border-top-color: #2a2a2a;
}

/* ---------- Sidebar ---------- */
.cio-sidebar {
    padding-left: 10px;
}

.cio-side-block {
    margin-bottom: 30px;
}

.cio-issues {
    text-align: center;
}

.cio-issues-title {
    margin-bottom: 10px !important;
    font-size: 18px;
    font-weight: 700;
}

.cio-issues .edition-slide img {
    width: 200px;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .15);
}

.cio-issues .edition-slide span {
    display: block;
    margin-top: 8px;
    font-family: var(--font-serif);
    font-size: 13px;
    font-weight: 600;
}

.cio-side-ad {
    max-width: 280px;
    margin: 0 auto 30px;
}

/* Ad at a compact sidebar size, centred under the covers */
.cio-side-ad .ad-creative,
.cio-side-ad img {
    display: block !important;
    width: 100%;
    height: auto;
}

.cio-side-title {
    padding-bottom: 8px;
    margin: 0 0 15px !important;
    border-bottom: 1px solid #006699;
    font-size: 17px;
    font-weight: 700;
}

.cio-company {
    display: flex;
    gap: 12px;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid #eeeeee;
}

.cio-company:last-child {
    border-bottom: 0;
}

.cio-company .cio-thumb {
    width: 110px;
    height: 80px;
}

.cio-company-tag {
    display: block !important;
    margin-bottom: 3px;
    font-family: var(--font-serif);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: #333333;
}

.cio-company h3 {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
}

.cio-company .cio-by {
    margin-top: 4px;
    font-size: 12px;
}

/* ---------- Responsive ---------- */
@media only screen and (max-width: 991px) {
    .cio-lead {
        margin-bottom: 30px;
    }

    /* Stacked under the lead story there is no fixed height to share, so size each tile itself */
    .cio-headline {
        flex: 0 0 auto;
        min-height: 110px;
    }

    .cio-sidebar {
        padding-left: 0;
        margin-top: 10px;
    }
}

@media only screen and (max-width: 575px) {
    .cio-headline .cio-thumb {
        width: 110px;
        min-height: 90px;
    }

    .cio-row-wide .cio-thumb {
        width: 120px;
    }
}

/* ---------- Dark theme ---------- */
.theme-dark .cio-home {
    background: #0e0e0e;
    color: #dddddd;
}

.theme-dark .cio-home h2,
.theme-dark .cio-home h3,
.theme-dark .cio-home h4,
.theme-dark .cio-home h5,
.theme-dark .cio-headline-kicker,
.theme-dark .cio-company-tag {
    color: #ffffff;
}

.theme-dark .cio-by,
.theme-dark .cio-lead-by {
    color: #aaaaaa;
}

.theme-dark .cio-headline,
.theme-dark .cio-row-wide,
.theme-dark .cio-company {
    border-color: #2a2a2a;
}

/* ---------- Rounded images ---------- */
.cio-home img,
.cio-thumb,
.cio-lead-image,
.cio-card-image,
.cio-stack .cio-row,
.cio-home ~ .more-news-area .single-more-news,
.cio-home ~ .more-news-area .single-more-news img {
    border-radius: 8px;
}

/* Images that sit inside a rounded box are clipped by it instead
   (press release cards set their own corners in their section above) */
.cio-stack .cio-row img {
    border-radius: 0;
}

.cio-stack .cio-thumb {
    border-radius: 0;
}

.cio-home ~ .more-news-area .single-more-news {
    overflow: hidden;
}

/* ---------- No dates on the home page ---------- */
.cio-home ~ .more-news-area .news-content ul li:has(.icofont-calendar) {
    display: none;
}

/* ---------- Gap before More News ---------- */
/* The last section's own bottom margin is enough; More News starts right after it */
.cio-home > .container > .cio-block:last-child {
    margin-bottom: 0;
}

.cio-home ~ .more-news-area {
    padding-top: 16px;
}

/* ---------- List pages (News, Insights, Press Release) reuse this file ---------- */
.cio-home.cio-list-page {
    padding: 30px 0 50px;
}

/* ---------- Category pages: press release cards with the image shown whole ---------- */
/* Category images are mostly company logos, so fit them inside a white frame instead of cropping */
.cio-pr-contain .cio-pr-image {
    padding: 14px 18px;
    background: #ffffff;
    border: 1px solid #eef2f6;
}

.cio-home .cio-pr-contain .cio-pr-image img {
    object-fit: contain;
}
