/*================================================
Shared section styles (home page + detail pages)
Loaded on every page, after site.css.
=================================================*/

/* ---------- Section header: sky-blue tab on a sky-blue rule ---------- */
.cio-block-title {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 2px solid #219fe5;
}

/* Sky blue from the logo, with a slanted right edge */
.cio-block-title > span {
    display: inline-block;
    padding: 0 34px 0 16px;
    background: #219fe5;
    clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 100%, 0 100%);
}

.cio-block-title > span a {
    display: inline;
}

.cio-block-title > span h2 {
    display: inline;
    margin: 0;
    font-family: var(--font-serif);
    font-size: 14px;
    font-weight: 700;
    line-height: 34px;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: #ffffff;
}

.cio-block-title > span:has(a:hover) {
    background: #006fc2;
}

/* ---------- Detail-page sidebar ---------- */
/* Sections sit straight on the page (no boxed panel), spaced like the home page */
.side-panel.cio-panel {
    padding: 0;
    background: none;
    border: 0;
    border-radius: 0;
}

.side-panel.cio-panel + .side-panel.cio-panel,
.side-panel-lead.cio-panel + .side-panels,
.widget-area.side-panels .widget.side-panel.cio-panel {
    margin-top: 30px;
}

.widget-area.side-panels .widget.side-panel.cio-panel:first-child {
    margin-top: 0;
}

/* Tiles: light blue, sky-blue strip on the left, image left, text right */
.cio-side-tiles {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cio-side-tile {
    display: flex;
    height: 92px;
    overflow: hidden;
    background: #f4f8fc;
    border-left: 3px solid #219fe5;
    border-radius: 8px;
    transition: background .2s;
}

.cio-side-tile:hover {
    background: #e9f4fd;
}

.cio-side-tile-thumb {
    display: block !important;
    flex: 0 0 105px;
    overflow: hidden;
    background: #ffffff;
}

.cio-side-tile-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cio-side-tile-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 8px 12px;
}

.cio-side-tile-tag {
    display: block !important;
    margin-bottom: 3px;
    font-family: var(--font-serif);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: #219fe5 !important;
}

.cio-side-tile h4 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
    font-family: var(--font-serif);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}

.cio-side-tile h4 a {
    color: #000000;
}

.cio-side-tile h4 a:hover {
    color: #006fc2;
}

/* Smaller tiles for Recent News */
.cio-side-tiles-small .cio-side-tile {
    height: 74px;
}

.cio-side-tiles-small .cio-side-tile-thumb {
    flex-basis: 84px;
}

.cio-side-tiles-small .cio-side-tile h4 {
    font-size: 13px;
}

/* Topics: rounded pills with the article count */
.cio-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cio-topics a {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    font-size: 13px;
    color: #0c447c;
    background: #f4f8fc;
    border: 1px solid #b5d4f4;
    border-radius: 999px;
    transition: background .2s, color .2s;
}

.cio-topics a span {
    font-size: 11px;
    font-weight: 700;
    color: #219fe5;
}

.cio-topics a:hover {
    color: #ffffff;
    background: #219fe5;
    border-color: #219fe5;
}

.cio-topics a:hover span {
    color: #ffffff;
}

/* Magazine: one centred, rounded cover at a time */
.cio-magazine .editions-slides {
    max-width: 220px;
    margin: 0 auto;
    text-align: center;
}

.cio-magazine .edition-slide img {
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .15);
}

.cio-magazine .edition-slide span {
    display: block;
    margin-top: 8px;
    font-family: var(--font-serif);
    font-size: 13px;
    font-weight: 600;
    color: #000000;
}

/* ---------- Related News: equal cards (Editor's Picks style) ---------- */
.cio-related-card {
    margin-bottom: 24px;
    overflow: hidden;
    background: #f4f8fc;
    border: 1px solid #b5d4f4;
    border-radius: 8px;
    transition: background .2s, box-shadow .2s;
}

.cio-related-card:hover {
    background: #e9f4fd;
    box-shadow: 0 6px 18px rgba(0, 111, 194, .08);
}

.cio-related-card-image {
    display: block !important;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: #e9eef3;
}

.cio-related-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
}

.cio-related-card-body {
    padding: 12px 14px 14px;
}

/* Every title box is exactly 3 lines tall; longer titles end in "..." */
.cio-related-card h4 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: calc(1.4em * 3);
    margin: 0;
    font-family: var(--font-serif);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
}

.cio-related-card h4 a {
    color: #000000;
}

.cio-related-card h4 a:hover {
    color: #006fc2;
}

.cio-related-card-tag {
    display: block !important;
    min-height: 1.5em;
    margin-top: 6px;
    overflow: hidden;
    font-family: var(--font-serif);
    font-size: 13px;
    color: #555555 !important;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* ---------- Dark theme ---------- */
.theme-dark .cio-side-tile,
.theme-dark .cio-related-card {
    background: #161b20;
}

.theme-dark .cio-related-card {
    border-color: #23435f;
}

.theme-dark .cio-side-tile h4 a,
.theme-dark .cio-related-card h4 a,
.theme-dark .cio-magazine .edition-slide span {
    color: #ffffff;
}

.theme-dark .cio-topics a {
    color: #cfe3ff;
    background: #161b20;
    border-color: #23435f;
}

/* ---------- Filter pills (e.g. Conference: Upcoming / Past) ---------- */
.cio-filter {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
}

.cio-filter a {
    display: inline-block !important;
    padding: 7px 22px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: #0c447c;
    background: #f4f8fc;
    border: 1px solid #b5d4f4;
    border-radius: 999px;
    transition: background .2s, color .2s;
}

.cio-filter a:hover,
.cio-filter a.active {
    color: #ffffff;
    background: #219fe5;
    border-color: #219fe5;
}

.theme-dark .cio-filter a:not(.active) {
    color: #cfe3ff;
    background: #161b20;
    border-color: #23435f;
}

/* ---------- Breadcrumb: one slim line of small grey text, no box ---------- */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 0;
    margin: 0 0 16px;
    background: none;
    box-shadow: none;
    font-size: 12px;
    line-height: 1.5;
}

.breadcrumb li {
    margin: 0;
    color: #8a8a8a;
}

.breadcrumb li a {
    color: #8a8a8a;
}

.breadcrumb li a:hover {
    color: #006fc2;
}

/* Current page in dark text */
.breadcrumb li:last-child,
.breadcrumb li:last-child a {
    color: #222222;
}

/* No icons: the home icon is dropped and the arrow icons become a plain "›" */
.breadcrumb .icofont-home {
    display: none;
}

.breadcrumb li:has(> .icofont-rounded-right) {
    font-size: 0;
}

.breadcrumb li:has(> .icofont-rounded-right)::before {
    content: "›";
    font-size: 13px;
    color: #b0b0b0;
}

.breadcrumb .icofont-rounded-right {
    display: none;
}

/* Less space above the line on detail pages */
.ptb-40:has(> .container > .breadcrumb:first-child) {
    padding-top: 18px;
}

/* List pages: the line sits just under the menu, the cards right after it */
.cio-crumbs-wrap {
    padding-top: 18px;
}

.cio-crumbs-wrap + section {
    padding-top: 0 !important;
}

.theme-dark .breadcrumb li:last-child,
.theme-dark .breadcrumb li:last-child a {
    color: #ffffff;
}
