/* ============================================================
   FinancePress — Homepage Redesign CSS
   ============================================================ */

/* ---- Market Strip ---- */
.fp-market-strip {
    background: var(--fp-bg-subtle, #F4F2ED);
    border-bottom: 1px solid var(--fp-border, #E5E1D8);
    padding: 0;
}
.fp-market-strip__inner {
    display: flex;
    align-items: center;
    max-width: var(--fp-max-width);
    margin-inline: auto;
    padding-inline: 20px;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    height: 44px;
}
.fp-market-strip__inner::-webkit-scrollbar { display: none; }
.fp-market-strip__label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--fp-text-muted);
    flex-shrink: 0;
    margin-right: 16px;
    white-space: nowrap;
}
.fp-market-strip__items { display: flex; align-items: center; flex: 1; gap: 0; }
.fp-market-strip__item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 18px;
    border-right: 1px solid var(--fp-border);
    white-space: nowrap;
    height: 100%;
}
.fp-market-strip__item:last-child { border-right: none; }
.fp-market-strip__symbol {
    font-family: var(--fp-font-data);
    font-weight: 700;
    font-size: 12px;
    color: var(--fp-text-primary);
}
.fp-market-strip__price  { font-family: var(--fp-font-data); font-size: 12px; color: var(--fp-text-secondary); }
.fp-market-strip__change { font-family: var(--fp-font-data); font-size: 11.5px; font-weight: 600; }
.fp-market-strip__change--bull { color: var(--fp-bull, #0E9F6E); }
.fp-market-strip__change--bear { color: var(--fp-bear, #E53E3E); }
.fp-market-strip__all {
    margin-left: auto;
    flex-shrink: 0;
    padding-left: 16px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--fp-gold);
    text-decoration: none;
    white-space: nowrap;
}
.fp-market-strip__all:hover { text-decoration: underline; }
.fp-market-strip__placeholder { font-size: 12px; color: var(--fp-text-muted); padding: 0 8px; }

/* ---- Hero Section ---- */
.fp-hero-section { padding: 28px 0 0; }
.fp-hero-grid {
    display: grid;
    grid-template-columns: 1fr 368px;
    grid-template-rows: auto;
    gap: 16px;
}
/* Primary big card */
.fp-hero-primary {
    grid-column: 1;
    grid-row: 1 / 3;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: var(--fp-bg-card);
    border: 1px solid var(--fp-border);
    display: flex;
    flex-direction: column;
    transition: box-shadow .25s;
}
.fp-hero-primary:hover { box-shadow: 0 8px 32px rgba(0,0,0,.1); }
.fp-hero-primary__img {
    width: 100%; aspect-ratio: 16/9; overflow: hidden; flex-shrink: 0;
}
.fp-hero-primary__img img { width:100%; height:100%; object-fit:cover; display:block; transition: transform .5s ease; }
.fp-hero-primary:hover .fp-hero-primary__img img { transform: scale(1.03); }
.fp-hero-primary__body { padding: 22px 24px 24px; flex: 1; display: flex; flex-direction: column; }
.fp-hero-primary__cat {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--fp-gold);
    text-decoration: none;
    margin-bottom: 10px;
}
.fp-hero-primary__title {
    font-family: var(--fp-font-display);
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.02em;
    color: var(--fp-text-primary);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
}
.fp-hero-primary__title:hover { color: var(--fp-gold); }
.fp-hero-primary__excerpt {
    font-size: 14.5px;
    color: var(--fp-text-secondary);
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 16px;
}
.fp-hero-primary__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--fp-text-muted);
    margin-top: auto;
}
.fp-hero-primary__avatar { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.fp-hero-primary__author { font-weight: 600; color: var(--fp-text-secondary); }
.fp-meta-dot::before { content: '·'; }

/* Secondary stack (right column) */
.fp-hero-stack { grid-column: 2; display: flex; flex-direction: column; gap: 12px; }
.fp-hero-stack-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: var(--fp-bg-card);
    border: 1px solid var(--fp-border);
    border-radius: 10px;
    overflow: hidden;
    padding: 12px;
    transition: box-shadow .2s;
    text-decoration: none;
    flex: 1;
}
.fp-hero-stack-item:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.fp-hero-stack-item__img {
    width: 86px; height: 70px; border-radius: 7px; overflow: hidden; flex-shrink: 0;
}
.fp-hero-stack-item__img img { width:100%; height:100%; object-fit:cover; display:block; transition: transform .4s; }
.fp-hero-stack-item:hover .fp-hero-stack-item__img img { transform: scale(1.05); }
.fp-hero-stack-item__body { flex: 1; min-width: 0; }
.fp-hero-stack-item__cat { font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--fp-gold); display: block; margin-bottom: 5px; }
.fp-hero-stack-item__title {
    font-family: var(--fp-font-display);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--fp-text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 6px;
}
.fp-hero-stack-item:hover .fp-hero-stack-item__title { color: var(--fp-gold); }
.fp-hero-stack-item__meta { font-size: 11px; color: var(--fp-text-muted); }

@media (max-width: 1100px) { .fp-hero-grid { grid-template-columns: 1fr 300px; } }
@media (max-width: 900px) {
    .fp-hero-grid { grid-template-columns: 1fr; }
    .fp-hero-stack { grid-column: 1; flex-direction: row; flex-wrap: wrap; }
    .fp-hero-stack-item { flex: 1 1 calc(50% - 6px); }
}
@media (max-width: 550px) {
    .fp-hero-stack-item { flex: 1 1 100%; }
    .fp-hero-primary__title { font-size: 20px; }
}

/* ---- Section Rule ---- */
.fp-section-rule {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--fp-border);
}
.fp-section-rule__title {
    font-family: var(--fp-font-display);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -.01em;
    color: var(--fp-text-primary);
    white-space: nowrap;
    position: relative;
}
.fp-section-rule__title::after {
    content: '';
    position: absolute;
    left: 0; bottom: -14px;
    width: 100%;
    height: 2px;
    background: var(--fp-gold);
}
.fp-section-rule__line { flex: 1; height: 1px; background: transparent; }
.fp-section-rule__more {
    font-size: 12px;
    font-weight: 600;
    color: var(--fp-gold);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}
.fp-section-rule__more:hover { text-decoration: underline; }

/* ---- Card Grid ---- */
.fp-card-grid { display: grid; gap: 20px; }
.fp-card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.fp-card-grid--4 { grid-template-columns: repeat(4, 1fr); }
.fp-card-grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1100px) { .fp-card-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px)  { .fp-card-grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .fp-card-grid--3, .fp-card-grid--2, .fp-card-grid--4 { grid-template-columns: 1fr; } }

/* Standard card */
.fp-card {
    background: var(--fp-bg-card);
    border: 1px solid var(--fp-border);
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow .2s, transform .2s;
}
.fp-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,.09); transform: translateY(-2px); }
.fp-card__img { aspect-ratio: 16/9; overflow: hidden; }
.fp-card__img img { width:100%; height:100%; object-fit:cover; transition:transform .4s; }
.fp-card:hover .fp-card__img img { transform: scale(1.04); }
.fp-card__body { padding: 14px 16px 16px; }
.fp-card__cat  { font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--fp-gold); text-decoration: none; display: block; margin-bottom: 6px; }
.fp-card__title {
    font-family: var(--fp-font-display);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--fp-text-primary);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
}
.fp-card__title:hover { color: var(--fp-gold); }
.fp-card__excerpt {
    font-size: 12.5px;
    color: var(--fp-text-secondary);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 10px;
}
.fp-card__meta {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 11.5px;
    color: var(--fp-text-muted);
}
.fp-card__meta a { color: inherit; text-decoration: none; }
.fp-card__meta a:hover { color: var(--fp-gold); }
.fp-card__dot::before { content: '·'; }

/* ---- Brief / Compact list ---- */
.fp-brief-list { display: flex; flex-direction: column; gap: 0; }
.fp-brief-item {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 12px;
    align-items: start;
    padding: 14px 0;
    border-bottom: 1px solid var(--fp-border);
}
.fp-brief-item:last-child { border-bottom: none; }
.fp-brief-item__time { font-family: var(--fp-font-data); font-size: 11px; color: var(--fp-text-muted); padding-top: 2px; line-height: 1.3; }
.fp-brief-item__title { font-size: 13.5px; font-weight: 600; line-height: 1.4; color: var(--fp-text-primary); }
.fp-brief-item__title a { color: inherit; text-decoration: none; }
.fp-brief-item__title a:hover { color: var(--fp-gold); }
.fp-brief-item__excerpt { font-size: 12px; color: var(--fp-text-secondary); margin-top: 3px; }

/* ---- Trending sidebar ---- */
.fp-trending-list { list-style: none; display: flex; flex-direction: column; gap: 0; }
.fp-trending-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid var(--fp-border);
}
.fp-trending-item:last-child { border-bottom: none; }
.fp-trending-item__num {
    font-family: var(--fp-font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--fp-gold);
    line-height: 1;
    min-width: 28px;
    flex-shrink: 0;
    margin-top: 1px;
}
.fp-trending-item__cat { font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--fp-gold); display: block; margin-bottom: 4px; }
.fp-trending-item__title { font-size: 13px; font-weight: 600; line-height: 1.4; color: var(--fp-text-primary); text-decoration: none; display: block; }
.fp-trending-item__title:hover { color: var(--fp-gold); }
.fp-trending-item__meta { font-size: 11px; color: var(--fp-text-muted); margin-top: 4px; }

/* ---- Sidebar widget box ---- */
.fp-widget-box {
    background: var(--fp-bg-card);
    border: 1px solid var(--fp-border);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
}
.fp-widget-box__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px 12px;
    border-bottom: 1px solid var(--fp-border);
}
.fp-widget-box__title {
    font-family: var(--fp-font-display);
    font-size: 15px;
    font-weight: 700;
    color: var(--fp-text-primary);
    position: relative;
    padding-bottom: 0;
}
.fp-widget-box__title::after {
    content: '';
    display: block;
    width: 28px; height: 2px;
    background: var(--fp-gold);
    margin-top: 5px;
    border-radius: 1px;
}
.fp-widget-box__more { font-size: 11.5px; font-weight: 600; color: var(--fp-gold); text-decoration: none; }
.fp-widget-box__more:hover { text-decoration: underline; }
.fp-widget-box__body { padding: 12px 16px 14px; }

/* ---- Newsletter widget ---- */
.fp-widget-newsletter {
    background: linear-gradient(135deg, #0B1D35 0%, #132847 100%);
    border-radius: 12px;
    padding: 22px 20px;
    margin-bottom: 24px;
    color: #fff;
}
.fp-widget-newsletter__icon { font-size: 28px; margin-bottom: 10px; }
.fp-widget-newsletter__title { font-family: var(--fp-font-display); font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.fp-widget-newsletter__sub   { font-size: 12.5px; color: rgba(255,255,255,.65); margin-bottom: 14px; line-height: 1.5; }
.fp-widget-newsletter__form  { display: flex; flex-direction: column; gap: 8px; }
.fp-widget-newsletter__input {
    width: 100%;
    padding: 9px 13px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 7px;
    font-size: 13px;
    color: #fff;
    outline: none;
}
.fp-widget-newsletter__input:focus { border-color: var(--fp-gold); }
.fp-widget-newsletter__input::placeholder { color: rgba(255,255,255,.35); }
.fp-widget-newsletter__btn {
    width: 100%;
    padding: 9px 0;
    background: var(--fp-gold);
    color: #0B1D35;
    border: none;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
}
.fp-widget-newsletter__btn:hover { background: #D4B65C; }
.fp-widget-newsletter__privacy { font-size: 10.5px; color: rgba(255,255,255,.35); text-align: center; margin-top: 6px; }

/* ---- Ad unit ---- */
.fp-ad-unit {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--fp-bg-subtle);
    border: 1.5px dashed var(--fp-border);
    border-radius: 8px;
    margin-bottom: 24px;
}
.fp-ad-unit__label { font-size: 10px; color: var(--fp-text-muted); letter-spacing: .06em; text-transform: uppercase; }

/* ---- Premium badge ---- */
.fp-premium-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 1px 7px;
    background: linear-gradient(135deg, var(--fp-gold) 0%, #D4B65C 100%);
    color: #0B1D35;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .04em;
}

/* ---- Analysis CTA band ---- */
.fp-analysis-band {
    background: linear-gradient(135deg, #0B1D35 0%, #1A3358 50%, #0B1D35 100%);
    border-radius: 14px;
    padding: 36px 40px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 24px;
    margin: 32px 0;
    position: relative;
    overflow: hidden;
}
.fp-analysis-band::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(200,168,75,.15) 0%, transparent 70%);
    pointer-events: none;
}
.fp-analysis-band__title {
    font-family: var(--fp-font-display);
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}
.fp-analysis-band__desc { font-size: 14px; color: rgba(255,255,255,.6); line-height: 1.6; max-width: 500px; }
.fp-analysis-band__actions { display: flex; gap: 10px; flex-shrink: 0; }
@media (max-width: 700px) {
    .fp-analysis-band { grid-template-columns: 1fr; padding: 24px 20px; }
    .fp-analysis-band__actions { flex-direction: column; }
}

/* ---- Data Snapshot bar ---- */
.fp-snapshot-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 28px 0;
}
.fp-snapshot-card {
    background: var(--fp-bg-card);
    border: 1px solid var(--fp-border);
    border-radius: 10px;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.fp-snapshot-card__label { font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--fp-text-muted); }
.fp-snapshot-card__value { font-family: var(--fp-font-data); font-size: 22px; font-weight: 700; color: var(--fp-text-primary); }
.fp-snapshot-card__change { font-family: var(--fp-font-data); font-size: 12px; font-weight: 600; }
.fp-snapshot-card__change--bull { color: var(--fp-bull); }
.fp-snapshot-card__change--bear { color: var(--fp-bear); }
@media (max-width: 900px) { .fp-snapshot-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 550px) { .fp-snapshot-grid { grid-template-columns: 1fr 1fr; gap: 10px; } }

/* ---- Category pills ---- */
.fp-cat-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.fp-cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 13px;
    background: var(--fp-bg-card);
    border: 1px solid var(--fp-border);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: var(--fp-text-secondary);
    text-decoration: none;
    transition: all .15s;
}
.fp-cat-pill:hover, .fp-cat-pill.active { background: var(--fp-navy); border-color: var(--fp-navy); color: #fff; }

/* ---- Homepage layout ---- */
.fp-home-main { padding: 32px 0 60px; }
.fp-home-grid {
    display: grid;
    grid-template-columns: minmax(0,1fr) 308px;
    gap: 32px;
    align-items: start;
    max-width: var(--fp-max-width);
    margin-inline: auto;
    padding-inline: 20px;
}
@media (max-width: 1024px) { .fp-home-grid { grid-template-columns: 1fr; } }

/* ---- Homepage sections ---- */
.fp-home-section { margin-bottom: 40px; }

/* Full-width wrapper */
.fp-home-full {
    max-width: var(--fp-max-width);
    margin-inline: auto;
    padding-inline: 20px;
}
