/*
 * Leader Guyana Insights — Light Theme
 * page-insights-lg.css | leader-child/css/
 */

/* ── Parent theme resets ── */
.page-template-page-insights-lg .site-main,
.page-template-page-insights-lg main,
.page-template-page-insights-lg .entry-content {
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
}
.page-template-page-insights-lg .entry-header { display: none !important; }
.page-template-page-insights-lg hr { display: none !important; }

/* ══════════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════════ */
.lg-insights__hero {
    position: relative;
    padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(4rem, 7vw, 5.5rem);
    overflow: hidden;
    z-index: 1;
    background: #242f3a;
    display: flex;
    align-items: flex-end;
}

.lg-insights__hero > .container {
    width: 100%;
}

.lg-insights__hero-bg-grid {
    position: absolute; inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none; z-index: 1;
}
.lg-insights__hero-bg-glow {
    position: absolute; top: -10%; left: -5%;
    width: 40vw; height: 40vw;
    max-width: 480px; max-height: 480px;
    background: radial-gradient(circle, rgba(0,168,181,.10) 0%, transparent 65%);
    pointer-events: none; z-index: 1;
}
.lg-insights__hero-bg-image {
    position: absolute; top: 0; right: 0;
    width: 55%; height: 100%;
    background-size: cover; background-position: center top;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.15) 30%, rgba(0,0,0,.55) 60%, rgba(0,0,0,.75) 100%);
    mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.15) 30%, rgba(0,0,0,.55) 60%, rgba(0,0,0,.75) 100%);
    pointer-events: none; z-index: 2;
    transform-origin: center center;
    animation: lgInsightsHeroDrift 16s ease-in-out infinite alternate;
    will-change: transform;
}

@keyframes lgInsightsHeroDrift {
    0%   { transform: scale(1.06) translate(0%,   0%);   }
    100% { transform: scale(1.18) translate(-4%, 2.5%);  }
}

@media (prefers-reduced-motion: reduce) {
    .lg-insights__hero-bg-image { animation: none; transform: scale(1.06); }
}

/* Diagonal cut — drops into light grid section */
.lg-insights__hero::after {
    content: '';
    position: absolute;
    bottom: -2px; left: -1px; right: -1px; height: 102px;
    background: #f4f6f8;
    clip-path: polygon(0 100%, 100% 0, 100% 100%);
    pointer-events: none; z-index: 10;
}

.lg-insights__hero-inner {
    position: relative; z-index: 3;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px clamp(3rem, 6vw, 5rem);
    text-align: left;
}

.lg-insights__hero-content {
    max-width: 680px;
}

.lg-insights__eyebrow {
    font-family: var(--font);
    font-size: .7rem; font-weight: 700;
    letter-spacing: .15em; text-transform: uppercase;
    color: #00a8b5;
    display: inline-block;
    border-left: 3px solid #00a8b5;
    padding-left: .75rem; margin-bottom: 1.4rem;
    /* LE teal→blue gradient accent (match Meet the Team) */
    background: linear-gradient(135deg,#00a8b5 0%,#0070b9 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    border-image: linear-gradient(135deg,#00a8b5 0%,#0070b9 100%) 1;
}

.lg-insights__hero-headline {
    font-family: var(--font) !important;
    font-size: clamp(2.4rem, 5vw, 4rem) !important;
    font-weight: 700 !important; line-height: 1.08 !important;
    color: #ffffff !important;
    margin: 0 0 1.1rem !important; padding: 0 !important;
    border: none !important; background: none !important;
}

.lg-insights__hero-sub {
    font-family: var(--font);
    font-size: clamp(.95rem, 1.8vw, 1.05rem);
    color: rgba(255,255,255,.65);
    max-width: 520px; line-height: 1.78;
}

/* ══════════════════════════════════════════════════════════
   GRID SECTION — light
   ══════════════════════════════════════════════════════════ */
.lg-insights__grid-section {
    background: #f4f6f8;
    padding: clamp(4rem, 7vw, 6rem) 0 clamp(5rem, 8vw, 7rem);
    position: relative;
}

.lg-insights__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
    position: relative; z-index: 1;
}
@media (max-width: 980px) { .lg-insights__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .lg-insights__grid { grid-template-columns: 1fr; } }

@media (max-width: 620px) {
    .lg-insights__hero-inner { padding-left: 20px; padding-right: 20px; }
    .lg-insights__hero::after { height: 60px; }
}

/* ══════════════════════════════════════════════════════════
   CARDS — light treatment with blue top accent
   ══════════════════════════════════════════════════════════ */
.lg-insights-card {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e2e6ea;
    border-top: 3px solid #00a8b5;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    transition: transform .25s ease,
                box-shadow .25s ease,
                border-color .25s ease,
                background .25s ease;
    position: relative;
}
.lg-insights-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 36px rgba(0,0,0,.18), 0 0 0 1px rgba(0,168,181,.35);
    border-top-color: #00a8b5;
    background: #242f3a;
}
.lg-insights-card:hover .lg-insights-card__title,
.lg-insights-card:hover .lg-insights-card__title a { color: #ffffff !important; }
.lg-insights-card:hover .lg-insights-card__date { color: #00a8b5; }
.lg-insights-card:hover .lg-insights-card__excerpt { color: rgba(255,255,255,.65); border-bottom-color: rgba(255,255,255,.12); }
.lg-insights-card:hover .lg-insights-card__link { color: #ffffff; }
.lg-insights-card:hover .lg-insights-card__date::after { background: #00a8b5; }

/* Image */
.lg-insights-card__image {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #e2e6ea;
    flex-shrink: 0;
    border-radius: 6px 6px 0 0;
    position: relative;
}

/* Gradient overlay — bleeds from image down into card content */
.lg-insights-card__image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(36,47,58,.02) 0%,
        rgba(36,47,58,.25) 60%,
        rgba(36,47,58,.65) 100%
    );
    transition: opacity .3s ease;
    pointer-events: none;
    z-index: 1;
}
.lg-insights-card:hover .lg-insights-card__image::after {
    opacity: .75;
}

.lg-insights-card__image img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    transition: transform .5s ease;
}
.lg-insights-card:hover .lg-insights-card__image img {
    transform: scale(1.04);
}

.lg-insights-card__image-placeholder {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, #e2e6ea 0%, #c8d0d8 100%);
}

/* Content */
.lg-insights-card__content {
    padding: 1.5rem 1.75rem 1.75rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.lg-insights-card__date {
    font-family: var(--font);
    font-size: .72rem; font-weight: 700;
    letter-spacing: .1em; text-transform: uppercase;
    color: #00a8b5;
    margin: 0 0 .65rem;
}

/* Thin blue accent divider under date */
.lg-insights-card__date::after {
    content: '';
    display: block;
    width: 28px; height: 2px;
    background: #00a8b5;
    border-radius: 2px;
    margin-top: .55rem;
}

.lg-insights-card__title {
    font-family: var(--font) !important;
    font-size: 1.08rem !important; font-weight: 700 !important;
    line-height: 1.35 !important;
    color: #242f3a !important;
    margin: 0 0 .75rem !important;
    padding: 0 !important; border: none !important;
}
.lg-insights-card__title a {
    color: inherit; text-decoration: none;
    transition: color .25s ease;
}
.lg-insights-card__excerpt { transition: color .25s ease, border-bottom-color .25s ease; }
.lg-insights-card__link    { transition: gap .2s ease, color .25s ease; }
.lg-insights-card__title a:hover { color: #00a8b5; }
.lg-insights-card:hover .lg-insights-card__title a:hover { color: #00a8b5 !important; }

.lg-insights-card__excerpt {
    font-family: var(--font);
    font-size: .875rem;
    color: #6f6f6e;
    line-height: 1.72;
    margin: 0 0 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #e2e6ea;
    flex: 1;
}

.lg-insights-card__link {
    display: inline-flex; align-items: center; gap: .35rem;
    font-family: var(--font);
    font-size: .78rem; font-weight: 700;
    letter-spacing: .06em; text-transform: uppercase;
    color: #00a8b5; text-decoration: none;
    transition: gap .2s ease, color .2s ease;
    margin-top: 0;
}
.lg-insights-card__link svg {
    width: 14px; height: 14px;
    transition: transform .2s ease;
}
.lg-insights-card__link:hover { color: #008a96; gap: .6rem; }
.lg-insights-card:hover .lg-insights-card__link:hover { color: #00a8b5; }
.lg-insights-card__link:hover svg { transform: translateX(3px); }

/* ── Empty state ── */
.lg-insights__empty {
    text-align: center;
    padding: 4rem 0;
    font-family: var(--font);
    color: #6f6f6e; font-size: 1rem;
    position: relative; z-index: 1;
}

/* ── Pagination ── */
.lg-insights__pagination {
    display: flex; justify-content: center;
    gap: .35rem; flex-wrap: wrap;
    margin-top: 3rem;
    position: relative; z-index: 1;
}
.lg-insights__pagination .page-numbers {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 40px; height: 40px;
    padding: 0 .75rem;
    border: 1.5px solid #d0d6dd;
    border-radius: 6px;
    font-family: var(--font); font-size: .88rem; font-weight: 500;
    color: #53606b; text-decoration: none;
    background: #ffffff;
    transition: background .2s, border-color .2s, color .2s;
}
.lg-insights__pagination .current,
.lg-insights__pagination .page-numbers:hover {
    background: #00a8b5; border-color: #00a8b5; color: #ffffff;
}
.lg-insights__pagination .dots {
    border-color: transparent; background: transparent;
    color: #9aa5af;
}

/* ══════════════════════════════════════════════════════════
   BRAND FILTER BAR  (All / Leader Engineering / Leader Guyana)
   ══════════════════════════════════════════════════════════ */
.lg-insights__filters {
    display: flex; flex-wrap: wrap; gap: .6rem;
    margin: 0 0 2.5rem;
    position: relative; z-index: 1;
}
.lg-insights__filter {
    display: inline-flex; align-items: center;
    padding: .5rem 1.1rem;
    border: 1.5px solid #d0d6dd;
    border-radius: 999px;
    font-family: var(--font);
    font-size: .8rem; font-weight: 600; letter-spacing: .02em;
    color: #53606b; text-decoration: none;
    background: #ffffff;
    transition: background .2s, border-color .2s, color .2s;
}
.lg-insights__filter:hover { border-color: #9aa5af; color: #242f3a; }
.lg-insights__filter.is-active { background: #242f3a; border-color: #242f3a; color: #ffffff; }
.lg-insights__filter--le.is-active { background: linear-gradient(135deg,#00a8b5 0%,#0070b9 100%); border-color: transparent; }
.lg-insights__filter--lg.is-active { background: #0070b9; border-color: #0070b9; }

/* ══════════════════════════════════════════════════════════
   CARD META ROW  (date + brand pill)
   ══════════════════════════════════════════════════════════ */
.lg-insights-card__meta {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .75rem;
}
.lg-insights-card__pill {
    display: inline-flex; align-items: center;
    flex-shrink: 0;
    padding: .25rem .6rem;
    border-radius: 999px;
    font-family: var(--font);
    font-size: .62rem; font-weight: 700;
    letter-spacing: .06em; text-transform: uppercase;
    line-height: 1; white-space: nowrap;
    color: #ffffff;
}
.lg-insights-card__pill--le { background: linear-gradient(135deg,#00a8b5 0%,#0070b9 100%); }
.lg-insights-card__pill--lg { background: #0070b9; }
