/**
 * GC Theme — Latest News Block
 *
 * Used by [gc_latest_news] shortcode on the homepage.
 * Tabbed news block with category filters (All / B2B /
 * Legal / Events / Sports / Updates).
 *
 * Hero post + sidebar list, switchable via tabs.
 *
 * JS interactions live in assets/js/news-block.js.
 *
 * @package GC_Theme
 */

/* ===========================
   GC LATEST NEWS BLOCK
   =========================== */

.gc-news-block {
    margin: 0 0 48px;
}

body.home .gc-news-block {
    padding-top: 48px;
}

.gcnb-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gc-border);
    margin-bottom: 28px;
}

.gcnb-title {
    font-family: 'Sora', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--gc-navy);
    letter-spacing: -0.3px;
    margin: 0;
}

.gcnb-view-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
    color: var(--gc-primary);
    text-decoration: none;
    background: transparent;
    border: none;
    padding: 0;
    white-space: nowrap;
    flex-shrink: 0;
}

.gcnb-view-all .gcnb-view-all-circle {
    display: inline-block;
    transition: transform 0.2s ease;
}

.gcnb-view-all:hover .gcnb-view-all-circle {
    transform: translateX(6px);
	
}

.gcnb-view-all:hover {
    color: var(--gc-primary);
}

.gcnb-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.gcnb-tab {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    padding: 6px 16px;
    border-radius: 20px;
    cursor: pointer;
    border: 1px solid var(--gc-border);
    background: var(--gc-bg);
    color: var(--gc-text-muted);
    transition: all 0.15s;
	letter-spacing:0.01em;
}

.gcnb-tab:hover:not(.is-active) {
    border-color: var(--gc-primary);
    color: var(--gc-primary-dark);
}

.gcnb-tab.is-active {
    background: #0D1B3E;
    color: var(--gc-text-inverse);
    border-color: var(--gc-navy);
}

.gcnb-view {
    display: none;
}

.gcnb-view.is-visible {
    display: block;
}

.gcnb-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 28px;
}

/* Hero card */
.gcnb-hero {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--gc-border);
    background: var(--gc-bg);
    transition: box-shadow 0.25s;
    display: block;
    text-decoration: none;
}

.gcnb-hero:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.gcnb-hero__img-wrap {
    display: block;
    position: relative;
    height: 320px;
    overflow: hidden;
}

.gcnb-hero__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gcnb-hero:hover .gcnb-hero__img-wrap img {
    transform: none;
}

.gcnb-hero__img-placeholder {
    width: 100%;
    height: 100%;
    background: var(--gc-border);
}

.gcnb-hero__cat {
    position: absolute;
    top: 14px;
    left: 14px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    background: var(--gc-bg);
    color: var(--gc-navy);
}

.gcnb-hero__body {
    padding: 22px 24px 24px;
}

.gcnb-hero__title {
    display: block;
    font-family: 'Sora', sans-serif;
    font-size: 19px;
    font-weight: 700;
    color: var(--gc-navy);
    line-height: 1.35;
    margin-bottom: 8px;
    text-decoration: none;
    transition: color 0.2s;
}

.gcnb-hero__title:hover {
    color: var(--gc-primary-dark);
}

.gcnb-hero__excerpt {
    font-size: 14px;
    color: var(--gc-text-muted);
    line-height: 1.6;
    margin-bottom: 14px;
}

.gcnb-hero__meta {
    font-size: 12px;
    color: var(--gc-text-muted);
}

/* Sidebar */
.gcnb-sidebar {
    display: flex;
    flex-direction: column;
}

.gcnb-sidebar__label {
    display: none;
}

/* List items */
.gcnb-list-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 14px 0;
    border-bottom: 1px solid var(--gc-bg-softer);
    text-decoration: none;
    transition: background 0.15s;
    cursor: pointer;
}

.gcnb-list-item:last-child {
    border-bottom: none;
}

.gcnb-list-item:hover {
    background: var(--gc-bg-soft);
    margin: 0 -8px;
    padding-left: 8px;
    padding-right: 8px;
    border-radius: 6px;
}

.gcnb-list-item__thumb {
    width: 80px;
    height: 64px;
    border-radius: 6px;
    flex-shrink: 0;
    overflow: hidden;
}

.gcnb-list-item__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gcnb-list-item__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
    justify-content: center;
}

.gcnb-list-item__cat {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gc-primary);
    display: block;
}

.gcnb-list-item__title {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--gc-navy);
    line-height: 1.4;
    display: block;
    transition: color 0.2s;
}

.gcnb-list-item:hover .gcnb-list-item__title {
    color: var(--gc-primary-dark);
}

.gcnb-list-item__meta {
    font-size: 11px;
    color: var(--gc-text-muted);
    display: block;
}

/* Responsive */
@media (max-width: 900px) {
    .gcnb-layout {
        grid-template-columns: 1fr;
    }
    .gcnb-hero__img-wrap {
        height: 220px;
    }
    .gcnb-hero__title {
        font-size: 17px;
    }
}

@media (max-width: 600px) {
    .gcnb-tabs { gap: 4px; }
    .gcnb-tab { font-size: 11px; padding: 5px 12px; }
    .gcnb-list-item__thumb { width: 64px; height: 52px; }
}

Shortcode:
```
[gc_hero_block cat_1="case-studies" cat_2="b2b-news" cat_3="interviews" all_url="/news/"]
/* ── Dark mode: category badge over hero image ── */
[data-theme="dark"] .gcnb-hero__cat {
	background: rgba(15, 23, 42, 0.85);
	color: #E2E8F0;
}

/* ── Dark mode: tabs + Read More hero cards (white in light, soft in dark) ── */
[data-theme="dark"] .gcnb-tab,
[data-theme="dark"] .gcnb-hero {
	background: var(--gc-bg-soft);
}

/* ── Dark mode: active "All" tab — navy border flips light, looks like a
   white outline. Pin to a dark navy + teal accent. ── */
[data-theme="dark"] .gcnb-tab.is-active {
	background: #0D1B3E;
	border-color: #0D1B3E;
	color: #ffffff;
}