/* ============================================================
   Transactions Page — page-transactions.php
   ============================================================ */

body {
    background: #f7f9fc;
}

/* ── Hero ── */
.transactions-hero {
    min-height: 470px;
    padding: 76px 24px 36px;
    background:
        linear-gradient(90deg, rgba(1,18,39,0.96) 0%, rgba(1,20,43,0.84) 34%, rgba(1,20,43,0.30) 66%, rgba(1,20,43,0.08) 100%),
        url("../images/transactions-page-hero.png") center / cover no-repeat;
}

.transactions-hero__inner {
    width: min(1200px, 100%);
    margin: 0 auto;
}

.cp-transactions-hero-copy {
    max-width: 620px;
    color: #ffffff;
}

.cp-hero-eyebrow {
    display: block;
    color: #5ab7ff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.16em;
    line-height: 1.2;
    text-transform: uppercase;
}

.cp-transactions-hero-copy h1 {
    margin: 18px 0;
    color: #ffffff;
    font-size: 64px;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: 0;
    text-shadow: 0 14px 40px rgba(0,0,0,0.34);
    font-family: "Graphik-Font", sans-serif;
    text-transform: none;
}

.cp-transactions-hero-copy p {
    max-width: 450px;
    margin: 0;
    color: rgba(255,255,255,0.9);
    font-size: 18px;
    font-weight: 500;
    line-height: 1.55;
    font-family: "Graphik-Font", sans-serif;
}

.cp-hero-stats {
    display: none;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    width: 100%;
    margin-top: 42px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.16);
}

.cp-hero-stat {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: rgba(255,255,255,0.82);
    font-size: 15px;
    font-weight: 600;
    font-family: "Graphik-Font", sans-serif;
}

.cp-stat-icon {
    color: #ffffff;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
    font-family: "Graphik-Font", sans-serif;
}

/* ── Transactions Section ── */
.transactions-section {
    padding: 0 24px 72px;
    background: #f7f9fc;
}

.transactions-shortcode-container {
    width: min(1200px, 100%);
    margin: 0 auto;
    padding: 34px 0 0;
    color: #15233a;
    font-family: "Graphik-Font", sans-serif;
}

/* ── Filters ── */
.filters-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px auto;
    gap: 24px;
    align-items: end;
    margin-bottom: 34px;
}

.filter-group-types {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

.filter-label,
.filter-dropdown label {
    color: #12223d;
    font-size: 14px;
    font-weight: 700;
    font-family: "Graphik-Font", sans-serif;
}

.filter-dropdown {
    display: grid;
    gap: 12px;
}

.type-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.type-filter,
.reset-btn,
.view-more-transactions {
    min-height: 44px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: "Graphik-Font", sans-serif;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.type-filter {
    padding: 0 22px;
    color: #26364f;
    background: rgba(255,255,255,0.86);
    border: 1px solid #dbe3ed;
    box-shadow: 0 10px 30px rgba(19,35,58,0.04);
}

.type-filter:hover,
.type-filter.active {
    color: #ffffff;
    background: #071f42;
    border-color: #071f42;
    box-shadow: 0 12px 28px rgba(7,31,66,0.22);
}

.filter-dropdown select {
    height: 48px;
    padding: 0 16px;
    color: #1d2e45;
    background: #ffffff;
    border: 1px solid #dbe3ed;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(19,35,58,0.04);
    cursor: pointer;
    font-family: "Graphik-Font", sans-serif;
    font-size: 15px;
}

.reset-btn {
    height: 48px;
    padding: 0 20px;
    color: #113055;
    background: #ffffff;
    border: 1px solid #cfd9e6;
    box-shadow: 0 12px 30px rgba(19,35,58,0.04);
}

.reset-btn:hover {
    color: #ffffff;
    background: #113055;
    border-color: #113055;
    transform: translateY(-1px);
}

/* ── Section Title ── */
.transactions-section-title {
    display: block;
    margin: 0 0 18px;
    color: #0f4f91;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.16em;
    line-height: 1.2;
    text-transform: uppercase;
    font-family: "Graphik-Font", sans-serif;
}

/* ── Grid ── */
.transactions-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

/* ── Card ── */
.transaction-card {
    min-height: 278px;
    display: flex;
    flex-direction: column;
    border: 1px solid #dfe6ef;
    border-radius: 8px;
    background: rgba(255,255,255,0.94);
    box-shadow: 0 18px 45px rgba(19,35,58,0.07);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.transaction-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 55px rgba(19,35,58,0.13);
}

.transaction-card.is-hidden {
    display: none;
}

.card-top-section {
    padding: 32px 28px 18px;
}

.company-logo {
    min-height: 78px;
    display: grid;
    place-items: center;
    margin-bottom: 16px;
}

.company-logo-img {
    max-width: 148px;
    max-height: 72px;
    object-fit: contain;
    display: block;
}

.company-name {
    margin: 0;
    color: #101b2b;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    font-family: "Graphik-Font", sans-serif;
}

.card-middle-section {
    order: 3;
    margin: auto 28px 0;
    border-top: 1px solid #e3e9f1;
}

.blue-bar {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.consumer-text,
.year-text {
    color: #3b485b;
    font-size: 14px;
    font-weight: 500;
    font-family: "Graphik-Font", sans-serif;
}

.card-bottom-section {
    order: 2;
}

.deal-text {
    display: grid;
    gap: 8px;
    padding: 0 28px 24px;
    text-align: center;
}

.deal-item {
    line-height: 1.45;
    font-family: "Graphik-Font", sans-serif;
}

.deal-item:nth-child(1) {
    color: #0f4f91;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.deal-item:nth-child(2) {
    color: #0d1726;
    font-size: 26px;
    font-weight: 500;
    line-height: 1.2;
}

.deal-item:nth-child(3) {
    color: #465366;
    font-size: 15px;
}

/* ── View More ── */
.view-more-transactions {
    display: block;
    width: min(360px, 100%);
    margin: 26px auto 0;
    color: #0f4f91;
    background: transparent;
    border: 1px solid #8aa8c8;
}

.view-more-transactions:hover {
    color: #ffffff;
    background: #0f4f91;
    border-color: #0f4f91;
}

/* ── No Results ── */
.no-transactions {
    margin: 28px 0 0;
    padding: 18px 20px;
    background: #ffffff;
    border: 1px dashed #b8c8dc;
    border-radius: 8px;
    color: #465366;
    text-align: center;
}

.no-transactions p {
    margin: 0;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .cp-transactions-hero-copy h1 { font-size: 52px; }

    .cp-hero-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filters-container {
        grid-template-columns: 1fr 240px;
    }

    .reset-btn { grid-column: 2; }

    .transactions-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .transactions-hero {
        min-height: 520px;
        padding: 42px 18px 36px;
    }

    .cp-transactions-hero-copy h1 {
        margin-top: 14px;
        font-size: 42px;
        line-height: 1.12;
    }

    .cp-transactions-hero-copy p { font-size: 15px; }

    .cp-hero-stats { gap: 14px; margin-top: 28px; }
    .cp-stat-icon  { font-size: 22px; }
    .cp-hero-stat  { font-size: 13px; }

    .transactions-section { padding: 0 18px 56px; }

    .filters-container {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .reset-btn    { grid-column: auto; width: 100%; }
    .type-filter  { flex: 1 1 auto; padding: 0 14px; }

    .transactions-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}

@media (max-width: 420px) {
    .cp-transactions-hero-copy h1 { font-size: 34px; }

    .cp-hero-stats { grid-template-columns: 1fr; }

    .type-filter { min-height: 40px; font-size: 13px; }
}
