/* ═══════════════════════════════════════════════════
   Forex Press Release — Frontend CSS
═══════════════════════════════════════════════════ */

/* ─── PR INFO BAR ──────────────────────────────── */
.fpr-pr-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    background: #131b27;
    border: 1px solid #1e2b3a;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 24px;
    font-family: 'Segoe UI', system-ui, sans-serif;
}
.fpr-pr-info-col {
    padding: 14px 18px;
    border-right: 1px solid #1e2b3a;
}
.fpr-pr-info-col:last-child { border-right: none; }
.fpr-pr-info-lbl {
    font-size: 9px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #91a4b9;
    font-weight: 600;
    margin-bottom: 5px;
}
.fpr-pr-info-val {
    font-size: 14px;
    font-weight: 700;
    color: #e0e0e0;
}
.fpr-pr-info-val a { color: #E8B84B; text-decoration: none; }
.fpr-pr-info-val a:hover { text-decoration: underline; }

/* ─── AWARD AT A GLANCE ────────────────────────── */
.fpr-glance {
    margin-bottom: 28px;
    font-family: 'Segoe UI', system-ui, sans-serif;
}
.fpr-glance-label {
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #E8B84B;
    font-weight: 700;
    margin-bottom: 12px;
    display: block;
}
.fpr-glance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 8px;
    margin-bottom: 12px;
}
.fpr-glance-card {
    background: #131b27;
    border: 1px solid #1e2b3a;
    border-radius: 10px;
    padding: 13px 16px;
    transition: border-color .2s;
}
.fpr-glance-card:hover { border-color: #2a3e56; }
.fpr-gc-lbl {
    font-size: 11px;
    color: #91a4b9;
    margin-bottom: 5px;
}
.fpr-gc-val {
    font-size: 15px;
    font-weight: 700;
    color: #e0e0e0;
}

/* Stats bar */
.fpr-stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    background: #131b27;
    border: 1px solid #1e2b3a;
    border-radius: 10px;
    overflow: hidden;
}
.fpr-stat {
    padding: 22px 18px;
    text-align: center;
    border-right: 1px solid #1e2b3a;
}
.fpr-stat:last-child { border-right: none; }
.fpr-stat-num {
    font-size: 44px;
    font-weight: 800;
    color: #E8B84B;
    line-height: 1;
    margin-bottom: 5px;
}
.fpr-stat-lbl {
    font-size: 10px;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: #4a5c70;
    font-weight: 600;
}

/* ─── BROKER AWARD CARD (1-column) ─────────────── */
.fpr-broker-card {
    margin-bottom: 28px;
    position: sticky;
    top: 80px;
	z-index: 99;
}

.fpr-broker-card {
    display: flex;
    flex-direction: column;
    background: #131b27;
    border: 1px solid #1e2b3a;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 28px;
    font-family: 'Segoe UI', system-ui, sans-serif;
    transition: border-color .2s, box-shadow .2s;
}
.fpr-broker-cards:hover {
    border-color: #E8B84B;
    box-shadow: 0 0 0 1px rgba(232,184,75,.12), 0 6px 24px rgba(0,0,0,.28);
}

/* ROW 1 — logo inline with broker name */
.fpr-bc-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 24px 16px;
    border-bottom: 1px solid #1e2b3a;
}

.fpr-bc-logo {
    width: 35px;
    height: 35px;
    border-radius: 8px;
    object-fit: contain;
    flex-shrink: 0;
    background: #0e1520;
    padding: 2px;
}
.fpr-bc-logo-ph {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: #1a2535;
    border: 1px dashed #2d3e52;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    color: #3d5068;
    font-weight: 700;
    letter-spacing: 1px;
    flex-shrink: 0;
}
.fpr-bc-name {
    font-size: 22px;
    font-weight: 800;
    color: #f0f0f0;
    margin: 0;
    line-height: 1.2;
}

/* ROW 2 — award badge items: 1 per row, centered */
.fpr-bc-badges {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px 24px;
}

.fpr-bc-badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding: 18px 20px;
    background: #0e1520;
    border: 1px solid #1e2b3a;
    border-radius: 12px;
    transition: border-color .2s;
}
.fpr-bc-badge-item:hover { border-color: #2a3e56; }

.fpr-bc-badge-img {
    width: 220px;
    height: 220px;
    object-fit: contain;
    border-radius: 6px;
    display: block;
}
.fpr-bc-badge-year {
    font-size: 15px;
    font-weight: 800;
    color: #E8B84B;
    letter-spacing: 1px;
}
.fpr-bc-badge-title {
    font-size: 15px;
    font-weight: 700;
    color: #e0e0e0;
    line-height: 1.3;
}
.fpr-bc-badge-cat {
    font-size: 13px;
    color: #e0e0e0;
    line-height: 1.4;
}

/* ROW 3 — Visit Broker button */
.fpr-bc-btn {
    display: block;
    margin: 0 24px 22px;
    background: #E8B84B;
    color: #0a0800;
    padding: 15px 24px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: background .15s, transform .1s;
}
.fpr-bc-btn:hover {
    background: #F0CE6A;
    color: #0a0800;
    transform: translateY(-1px);
}

/* ─── BROKER CARD — AWARD GRID STYLE ───────────────────── */

/* Wrapper tweaks when in grid mode */
.fpr-bc-grid-wrap {
    position: static !important;
}
.fpr-bc-grid-wrap .fpr-bc-header {
    align-items: center;
    gap: 14px;
}

/* Trophy icon in award_grid header */
.fpr-ag-header-icon {
    width: 35px;
    height: 35px;
    border-radius: 8px;
    background: #1a2535;
    border: 1px solid #2a3e56;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

/* Year pill shown in header when year="" is set */
.fpr-ag-year-pill {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #E8B84B, #C8974A);
    color: #0a0800;
    font-size: 11px;
    font-weight: 900;
    padding: 3px 12px;
    border-radius: 20px;
    letter-spacing: 1px;
    white-space: nowrap;
}

/* Grid body padding */
.fpr-ag-body {
    padding: 16px 20px 20px;
}

/* Responsive grid — 4 / 5 / 6 columns */
.fpr-ag-grid {
    display: grid;
    gap: 12px;
}
.fpr-ag-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fpr-ag-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.fpr-ag-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

/* Individual award card */
.fpr-ag-card {
    background: #0e1520;
    border: 1px solid #1e2b3a;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: border-color .2s, transform .2s, box-shadow .2s;
    position: relative;
}
.fpr-ag-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #E8B84B, transparent);
    opacity: 0;
    transition: opacity .2s;
}
.fpr-ag-card:hover {
    border-color: #E8B84B;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(232,184,75,.10);
}
.fpr-ag-card:hover::before { opacity: 1; }

/* Card header: small logo + broker name */
.fpr-ag-card-header {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 10px 10px 8px;
    border-bottom: 1px solid #141e2d;
}
.fpr-ag-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 5px;
    flex-shrink: 0;
    background: #131b27;
    padding: 2px;
}
.fpr-ag-logo-ph {
    width: 24px;
    height: 24px;
    background: #131b27;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    font-weight: 700;
    color: #E8B84B;
    text-transform: uppercase;
    flex-shrink: 0;
}
.fpr-ag-broker-name {
    font-size: 11px;
    font-weight: 700;
    color: #e8e8e8;
    margin: 0;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Badge image (first badge only) */
.fpr-ag-badge-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 8px 8px;
    flex: 1;
}
.fpr-ag-badge-img {
    width: 100%;
    max-width: 90px;
    height: 90px;
    object-fit: contain;
    filter: drop-shadow(0 3px 8px rgba(232,184,75,.18));
    transition: transform .2s, filter .2s;
}
.fpr-ag-card:hover .fpr-ag-badge-img {
    transform: scale(1.05);
    filter: drop-shadow(0 5px 14px rgba(232,184,75,.32));
}
.fpr-ag-badge-ph {
    font-size: 36px;
    line-height: 1;
    opacity: 0.35;
}

/* Award info text */
.fpr-ag-award-info {
    padding: 0 8px 10px;
    text-align: center;
}
.fpr-ag-award-year {
    font-size: 11px;
    font-weight: 900;
    color: #E8B84B;
    line-height: 1;
    margin-bottom: 4px;
    letter-spacing: 1px;
}
.fpr-ag-award-title {
    font-size: 9px;
    font-weight: 700;
    color: #b0bec5;
    line-height: 1.3;
    margin-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: .4px;
}
.fpr-ag-award-cat {
    font-size: 9px;
    color: #6b7c8f;
    line-height: 1.4;
}

/* Footer: Read More button (replaces Visit Broker) */
.fpr-ag-card-footer {
    padding: 8px 10px 10px;
    border-top: 1px solid #141e2d;
}
.fpr-ag-btn {
    display: block;
    text-align: center;
    padding: 7px 10px;
    border-radius: 7px;
    font-size: 10px;
    font-weight: 700;
    text-decoration: none;
    background: transparent;
    color: #6b8aaa;
    border: 1px solid #1e2b3a;
    transition: border-color .15s, color .15s;
    line-height: 1;
}
.fpr-ag-btn:hover {
    border-color: #E8B84B;
    color: #E8B84B;
}

/* Notice: no term found */
.fpr-ag-notice {
    background: #131b27;
    border: 1px dashed #2a3a4a;
    border-radius: 8px;
    padding: 12px 16px;
    color: #6b7c8f;
    font-size: 13px;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

/* Responsive breakpoints for award grid */
@media (max-width: 1100px) {
    .fpr-ag-cols-6 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .fpr-ag-cols-5 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .fpr-ag-cols-4,
    .fpr-ag-cols-5,
    .fpr-ag-cols-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .fpr-ag-cols-4,
    .fpr-ag-cols-5,
    .fpr-ag-cols-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fpr-ag-badge-img { max-width: 70px; height: 70px; }
}
@media (max-width: 420px) {
    .fpr-ag-cols-4,
    .fpr-ag-cols-5,
    .fpr-ag-cols-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/*
 * NOTE — Sticky broker card works when your theme/template
 * places [fpr_broker_card] in a sidebar column alongside
 * the main content. The card sticks as you scroll and stops
 * just before the [fpr_recent] section begins.
 *
 * Typical two-column template layout:
 *   <div class="content-col">  ← post body, glance, awards cta, recent
 *   <div class="sidebar-col">  ← [fpr_broker_card]
 *
 * The sidebar column parent must have: position: relative;
 */

/* ─── RECENT PRESS RELEASE CARDS ───────────────── */
/* ─── RECENT PRESS RELEASES — sidebar style ─────── */
.fpr-recent {
    font-family: 'Segoe UI', system-ui, sans-serif;
    margin-bottom: 28px;
    position: sticky;
    top: 630px;
}
@media (max-width: 768px) {
    .fpr-recent {
        position: static;
        top: auto;
    }
}



/* Panel shell */
.fpr-recent-panel {
    background: #0e1520;
    border: 1px solid #1e2b3a;
    border-radius: 12px;
    overflow: hidden;
}

/* Panel heading */
.fpr-recent-label {
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #8aaccc;
    font-weight: 700;
    padding: 16px 20px 14px;
    border-bottom: 1px solid #1e2b3a;
    display: block;
    margin: 0;
}

/* List */
.fpr-recent-list {
    display: flex;
    flex-direction: column;
}

/* Individual row */
.fpr-rc {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 20px;
    border-bottom: 1px solid #1a2535;
    transition: background .15s;
}
.fpr-rc:last-child { border-bottom: none; }
.fpr-rc:hover { background: #131b27; }

/* Category badge */
.fpr-rc-cat {
    font-size: 9px;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: #E8B84B;
    font-weight: 800;
    display: block;
    margin-bottom: 2px;
}

/* Title */
.fpr-rc-title {
    font-size: 13px;
    font-weight: 400;
    color: #e0e0e0;
    margin: 0;
    line-height: 1.4;
}
.fpr-rc-title a {
    color: inherit;
    text-decoration: none;
}
.fpr-rc-title a:hover { color: #E8B84B; }

/* Meta: date · read time */
.fpr-rc-meta {
    font-size: 11px;
    color: #4a5c70;
    font-weight: 500;
    margin-top: 3px;
}
.fpr-rc-meta-sep { padding: 0 4px; }

/* ─── ALL AWARDS CTA ───────────────────────────── */
.fpr-awards-cta {
    margin-bottom: 28px;
    font-family: 'Segoe UI', system-ui, sans-serif;
}
.fpr-awards-cta-inner {
    background: #131b27;
    border: 1px solid #1e2b3a;
    border-radius: 14px;
    padding: 28px 28px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}
/* Subtle gold top accent line */
.fpr-awards-cta-inner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #E8B84B, transparent);
}
.fpr-awards-cta-heading {
    font-size: 20px;
    font-weight: 800;
    color: #f0f0f0;
    margin: 0;
    line-height: 1.2;
}
.fpr-awards-cta-sub {
    font-size: 13px;
    color: #6b7c8f;
    margin: 0;
    line-height: 1.6;
    max-width: 420px;
}
.fpr-awards-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 6px;
    padding: 13px 32px;
    background: transparent;
    border: 2px solid #E8B84B;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    color: #E8B84B;
    text-decoration: none;
    letter-spacing: 0.3px;
    transition: background .15s, color .15s, transform .1s;
}
.fpr-awards-cta-btn:hover {
    background: #E8B84B;
    color: #0a0800;
    transform: translateY(-1px);
}

/* ─── RESPONSIVE ───────────────────────────────── */
@media (max-width: 640px) {
    .fpr-pr-info     { grid-template-columns: 1fr 1fr; }
    .fpr-pr-info-col { border-bottom: 1px solid #1e2b3a; }
    .fpr-pr-info-col:nth-child(2n) { border-right: none; }

    .fpr-rc          { grid-template-columns: 80px 1fr; }
    .fpr-rc-right    { padding: 12px 14px; }

    .fpr-stats-bar   { grid-template-columns: 1fr 1fr; }
    .fpr-stat:nth-child(2n) { border-right: none; }

    .fpr-stat-num    { font-size: 34px; }
    .fpr-bc-name     { font-size: 18px; }
    .fpr-bc-btn      { width: calc(100% - 32px); margin: 0 16px 18px; }
    .fpr-bc-header   { padding: 16px 18px 14px; }
    .fpr-bc-badges   { padding: 14px 16px; }
}
@media (max-width: 420px) {
    .fpr-rc          { grid-template-columns: 1fr; }
    .fpr-rc-left     { border-right: none; border-bottom: 1px solid #1e2b3a; min-height: auto; padding: 14px; }
    .fpr-glance-grid { grid-template-columns: 1fr 1fr; }
    .fpr-bc-badge-img { width: 75px; height: 75px; }
}

/* ════════════════════════════════════════════════════════════
   [fpr_press_header]  — News article style header
   Matches the UpWay / FDI news template design
════════════════════════════════════════════════════════════ */
.fpr-press-header {
    margin-bottom: 32px;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

/* ── Category badge ─────────────────────────────── */
.fpr-ph-cat-wrap {
    margin-bottom: 18px;
}
.fpr-ph-cat-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: transparent;
    border: 1.5px solid #E8B84B;
    border-radius: 50px;
    padding: 5px 14px 5px 10px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.8px;
    color: #e0e0e0;
    text-transform: uppercase;
    line-height: 1;
}
.fpr-ph-cat-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #E8B84B;
    flex-shrink: 0;
    animation: fpr-ph-pulse 2s ease-in-out infinite;
}
@keyframes fpr-ph-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.4; }
}

/* ── Headline ───────────────────────────────────── */
.fpr-ph-title {
    font-size: clamp(26px, 4vw, 42px);
    font-weight: 900;
    color: #f0f0f0;
    line-height: 1.15;
    letter-spacing: -0.5px;
    margin: 0 0 22px;
}

/* ── Author row ─────────────────────────────────── */
.fpr-ph-author-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #1e2b3a;
}
.fpr-ph-author {
    display: flex;
    align-items: center;
    gap: 12px;
}
.fpr-ph-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #1e2b3a;
    flex-shrink: 0;
    background: #131b27;
}
.fpr-ph-author-name {
    font-size: 14px;
    font-weight: 700;
    color: #e0e0e0;
    line-height: 1.2;
}
.fpr-ph-author-role {
    font-size: 11px;
    color: #5a7a99;
    margin-top: 2px;
}

/* ── Share / Copy buttons ───────────────────────── */
.fpr-ph-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.fpr-ph-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #131b27;
    border: 1.5px solid #1e2b3a;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #8aaccc;
    cursor: pointer;
    transition: border-color .15s, color .15s, background .15s;
    font-family: inherit;
    line-height: 1;
    white-space: nowrap;
}
.fpr-ph-btn:hover {
    border-color: #E8B84B;
    color: #E8B84B;
    background: rgba(232,184,75,.06);
}
.fpr-ph-btn svg {
    flex-shrink: 0;
}

/* ── Meta row ───────────────────────────────────── */
.fpr-ph-meta-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 0;
}
.fpr-ph-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #5a7a99;
    font-weight: 500;
}
.fpr-ph-meta-item svg {
    flex-shrink: 0;
    opacity: 0.7;
}
.fpr-ph-meta-sep {
    color: #2d4055;
    font-size: 14px;
    padding: 0 8px;
    line-height: 1;
}

/* ── Responsive ─────────────────────────────────── */
@media (max-width: 600px) {
    .fpr-ph-author-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .fpr-ph-actions {
        width: 100%;
    }
    .fpr-ph-btn {
        flex: 1;
        justify-content: center;
    }
    .fpr-ph-title {
        font-size: 26px;
    }
}


