﻿
/* ===== COLLECTION SHOWCASE WRAPPER ===== */
.collection-showcase {
    background: radial-gradient(circle at top, rgba(0, 126, 167, 0.12), transparent 55%) #f6fbff;
    position: relative;
    padding-bottom: 60px;
    overflow: hidden;
}

    .collection-showcase::before,
    .collection-showcase::after {
        content: "";
        position: absolute;
        width: 380px;
        height: 380px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(255, 122, 24, 0.2), transparent 70%);
        filter: blur(15px);
        opacity: 0.4;
        z-index: 0;
    }

    .collection-showcase::before {
        top: -140px;
        right: -80px;
    }

    .collection-showcase::after {
        bottom: -180px;
        left: -100px;
        background: radial-gradient(circle, rgba(0, 126, 167, 0.18), transparent 70%);
    }

/* ===== FIXED MARQUEE STYLES ===== */
.highlight-marquee {
    margin: 8px 0 25px 0;
    color: #007ea7;
    border-radius: 12px;
    padding: 15px 0;
    font-size: 1.1rem;
    font-weight: 700;
    background: linear-gradient(90deg, #e3f6ff 0%, #f0fbff 50%, #e3f6ff 100%);
    box-shadow: 0 4px 15px rgba(0, 126, 167, 0.15);
    border: 2px solid #b8e6ff;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.highlight-track {
    display: inline-flex;
    animation: scrollLeft 30s linear infinite;
    white-space: nowrap;
    padding: 0 20px;
    gap: 40px;
}

    .highlight-track span {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 0 10px;
    }

    .highlight-track i {
        color: #ff7a18;
        font-size: 1.2rem;
    }

@keyframes scrollLeft {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

.highlight-marquee:hover .highlight-track {
    animation-play-state: paused;
}

/* ===== COMPACT CARD STYLES ===== */
.box {
    background: #624509;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(0, 126, 167, 0.12);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid #e1f5fe;
    padding: 1rem;
    position: relative;
    overflow: hidden;
    height: 100%;
    min-height: 280px;
    display: flex;
    flex-direction: column;
}

    .box::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        height: 100%;
        width: 6px;
        background: linear-gradient(180deg, #ff7a18 0%, #007ea7 50%, #4e54c8 100%);
        border-radius: 14px 0 0 14px;
    }

    .box::after {
        content: "";
        position: absolute;
        top: -50%;
        right: -50%;
        width: 100%;
        height: 100%;
        background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
        opacity: 0;
        transition: opacity 0.4s ease;
    }

    .box:hover {
        transform: translateY(-8px) scale(1.02);
        box-shadow: 0 20px 40px rgba(0, 126, 167, 0.2);
        border-color: #007ea7;
    }

        .box:hover::after {
            opacity: 1;
        }

/* ===== COMPACT BOND CARD STYLES ===== */
.bond-card {
    background: #624509;
    border: 1px solid #e8f4fd;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(17, 24, 39, 0.1);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 0.85rem;
    position: relative;
    overflow: hidden;
    min-height: 230px;
}

    .bond-card::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, #ff7a18, #007ea7, #4e54c8);
    }

.bond-card-compact {
    backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    transform-style: preserve-3d;
    transition: transform 0.6s ease, box-shadow 0.6s ease, border-color 0.4s ease;
    border: 1px solid rgba(0, 126, 167, 0.08);
}

    .bond-card-compact:hover {
        transform: translateY(-12px) scale(1.01) rotateX(3deg) rotateY(-2deg);
        box-shadow: 0 35px 80px rgba(15, 23, 42, 0.18);
        border-color: rgba(0, 126, 167, 0.35);
    }

.hero-card {
    padding: 1.25rem 1.35rem;
    background: #624509;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

    .hero-card:hover {
        transform: translateY(-14px) scale(1.01) rotateX(2deg) rotateY(-3deg);
        box-shadow: 0 45px 90px rgba(0, 10, 38, 0.5);
    }

.hero-card-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 0.85rem;
}

.hero-card-glow,
.hero-card-grid-lines {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
}

.hero-card-glow {
    background: radial-gradient(circle at 30% 10%, rgba(255, 255, 255, 0.8), transparent 60%), radial-gradient(circle at 80% 0%, rgba(255, 180, 82, 0.35), transparent 70%);
    opacity: 0.7;
    mix-blend-mode: screen;
}

.hero-card-grid-lines {
    background-image: linear-gradient(120deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(0deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 36px 36px;
    opacity: 0.45;
    animation: gridFlow 18s linear infinite;
}

.hero-card-top {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

    .hero-card-top > div:first-child {
        flex: 1 1 60%;
        min-width: 240px;
    }

.hero-card-overline {
    font-size: 0.7rem;
    letter-spacing: 0.24em;
    color: rgba(255, 255, 255, 0.7);
}

.hero-card-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.35;
    letter-spacing: -0.01em;
    margin-bottom: 0.35rem;
    text-wrap: balance;
}

.hero-card-subtitle {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    text-wrap: balance;
}

.hero-card-status {
    display: inline-flex;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.hero-card-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.6rem;
    text-align: right;
}

.hero-card-logo {
    display: flex;
    gap: 6px;
}

.hero-card-logo-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.15);
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #fff;
}

.hero-pill--light {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.22);
}

.hero-rating-pills {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-card-metrics .hero-mini-metric {
    width: 100%;
    padding: 10px 12px;
}

.hero-mini-metric {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 10px 12px;
    text-align: center;
}

    .hero-mini-metric small {
        display: block;
        font-size: 0.68rem;
        letter-spacing: 0.12em;
        color: rgba(255, 255, 255, 0.75);
        text-transform: uppercase;
    }

    .hero-mini-metric strong {
        font-size: 1.05rem;
        font-weight: 700;
        color: #fff;
        display: block;
    }

.hero-mini-metric--ytm {
    text-align: left;
}

.hero-ytm-value {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.hero-ytm-lock {
    color: #fdd06c;
    font-weight: 600;
    text-decoration: underline;
    font-size: 0.85rem;
}

.hero-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.info-item {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 10px 12px;
}

    .info-item small {
        display: block;
        font-size: 0.65rem;
        letter-spacing: 0.1em;
        color: rgba(255, 255, 255, 0.6);
        text-transform: uppercase;
    }

    .info-item strong {
        font-size: 0.95rem;
        color: #fff;
        display: block;
        margin-top: 2px;
    }

.text-highlight {
    color: #fdd06c;
    font-weight: 600;
}

.hero-card-footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hero-footer-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.hero-card .compare-section,
.hero-compare {
    position: static;
    background: rgba(255, 255, 255, 0.12);
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    gap: 8px;
}

    .hero-card .compare-section label {
        color: #fff;
        margin-bottom: 0;
        font-size: 0.78rem;
    }

.hero-share-btn {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: #fff;
    border-radius: 999px;
    padding: 8px 16px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

    .hero-share-btn:hover {
        background: rgba(255, 255, 255, 0.18);
        transform: translateY(-2px);
    }

.hero-primary-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f9b233, #f76b1c);
    color: #0c1f33 !important;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
}

    .hero-primary-btn:hover {
        background: linear-gradient(135deg, #fca311, #ef6c00);
        transform: translateY(-2px);
    }

.card-glow,
.card-grid-lines {
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
}

.card-glow {
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.9), transparent 55%), radial-gradient(circle at 80% 0%, rgba(255, 122, 24, 0.25), transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.bond-card-compact:hover .card-glow {
    opacity: 1;
}

.card-grid-lines {
    background-image: linear-gradient(120deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px), linear-gradient(0deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.4;
    animation: gridFlow 18s linear infinite;
}

.card-top-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    position: relative;
    z-index: 2;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 126, 167, 0.08);
    color: #005a78;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: inset 0 0 0 1px rgba(0, 126, 167, 0.14);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff7a18, #ffb347);
    position: relative;
    animation: pulseGlow 2.2s infinite;
}

.card-action-icons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.share-icon-top {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 126, 167, 0.08);
    color: #007ea7;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

    .share-icon-top i {
        pointer-events: none;
    }

    .share-icon-top:hover {
        color: #ffffff;
        background: linear-gradient(135deg, rgba(0, 126, 167, 0.9), rgba(78, 84, 200, 0.95)) !important;
        transform: translateY(-2px) scale(1.1);
        box-shadow: 0 8px 22px rgba(0, 126, 167, 0.35);
    }

.card-action-icons .compare-section {
    position: static;
    top: auto;
    right: auto;
    flex-direction: row;
    background: rgba(255, 255, 255, 0.8);
    padding: 4px 10px;
    border-radius: 999px;
    box-shadow: inset 0 0 0 1px rgba(0, 126, 167, 0.15);
}

    .card-action-icons .compare-section label {
        margin-bottom: 0;
    }

    .card-action-icons .compare-section input[type="checkbox"] {
        accent-color: #ff7a18;
    }

@keyframes gridFlow {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-40px);
    }
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 122, 24, 0.4);
    }

    70% {
        box-shadow: 0 0 0 8px rgba(255, 122, 24, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 122, 24, 0);
    }
}

/* ===== COMPACT CARD HEADER ===== */
.box0 {
    margin-bottom: 0.8rem;
    padding-right: 35px;
    padding-left: 6px;
    flex-shrink: 0;
    border-bottom: 1px solid #f0f8ff;
    padding-bottom: 0.8rem;
    position: relative;
}

.bond-card-header {
    position: relative;
    z-index: 2;
}

.bond-card-body {
    position: relative;
    z-index: 2;
}

/* ===== QUICK METRICS ===== */
.bond-quick-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 1rem;
}

    .bond-quick-metrics .metric {
        background: rgba(255, 255, 255, 0.85);
        border-radius: 12px;
        padding: 0.6rem;
        box-shadow: inset 0 0 0 1px rgba(0, 126, 167, 0.1);
    }

        .bond-quick-metrics .metric .meta-label {
            font-size: 0.7rem;
            margin-bottom: 4px;
            color: #64748b;
        }

        .bond-quick-metrics .metric .metric-value {
            display: flex;
            align-items: center;
            font-size: 0.95rem;
            font-weight: 600;
            color: #0f172a;
            gap: 6px;
            flex-wrap: wrap;
        }

            .bond-quick-metrics .metric .metric-value .yield-badge,
            .bond-quick-metrics .metric .metric-value .coupon-badge,
            .bond-quick-metrics .metric .metric-value .fv-badge {
                width: 100%;
                justify-content: center;
                text-align: center;
            }

            .bond-quick-metrics .metric .metric-value .h6 {
                font-size: 0.85rem;
            }

.rating-pill-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.rating-pill {
    background: linear-gradient(135deg, #f5f9ff, #e4edff);
    border: 1px solid rgba(59, 130, 246, 0.25);
    color: #1d4ed8;
}

/* ===== DETAIL GRID ===== */
.bond-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.detail-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 0.7rem;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
    min-height: 82px;
}

    .detail-card .meta-label {
        font-size: 0.68rem;
        margin-bottom: 4px;
        color: #94a3b8;
    }

    .detail-card .meta-value {
        font-size: 0.92rem;
        font-weight: 600;
        color: #0f172a;
    }

/* ===== CTA ===== */
.card-cta-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 1.2rem;
}

    .card-cta-group .btn-view-more {
        width: 100%;
    }

.ghost-btn {
    border: 1px dashed rgba(0, 126, 167, 0.4);
    background: rgba(255, 255, 255, 0.9);
    color: #0f172a;
    border-radius: 12px;
    padding: 10px 16px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

    .ghost-btn:hover {
        border-style: solid;
        color: white;
        background: linear-gradient(135deg, #007ea7, #4e54c8);
        box-shadow: 0 8px 25px rgba(0, 126, 167, 0.25);
        transform: translateY(-2px);
    }

/* ===== COMPACT BADGES WITH RICH COLORS ===== */
.bond-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 8px;
    background: linear-gradient(135deg, #f1f5ff 0%, #e8f2ff 100%);
    color: #1f5bb5;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid #dbe8ff;
    line-height: 1.2;
    box-shadow: 0 2px 8px rgba(31, 91, 181, 0.1);
}

.coupon-badge {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    color: #b45309;
    border: 1px solid #fed7aa;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(180, 83, 9, 0.15);
}

.yield-badge {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    color: #047857;
    border: 1px solid #a7f3d0;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(4, 120, 87, 0.15);
}

.fv-badge {
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    color: #4338ca;
    border: 1px solid #c7d2fe;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(67, 56, 202, 0.15);
}

/* ===== COMPACT BUTTONS ===== */
.button a,
.bond-card .button a {
    display: inline-block;
    background: linear-gradient(135deg, #007ea7 0%, #4e54c8 100%);
    border: none;
    padding: 8px 16px;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: white !important;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    margin-top: 8px;
}

    .button a::before,
    .bond-card .button a::before {
        content: "";
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
        transition: left 0.5s;
    }

    .button a:hover::before,
    .bond-card .button a:hover::before {
        left: 100%;
    }

    .button a:hover,
    .bond-card .button a:hover {
        background: linear-gradient(135deg, #005a78 0%, #3b3fa8 100%);
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(0, 126, 167, 0.4);
    }

/* ===== ENHANCED SIDEBAR ===== */
.sidebar {
    background: linear-gradient(135deg, #ffffff 0%, #f8fdff 100%);
    border-radius: 20px;
    box-shadow: 0 12px 35px rgba(0, 126, 167, 0.12);
    padding: 2rem 1.5rem;
    border: 2px solid #e8f4fd;
    height: fit-content;
    position: sticky;
    top: 25px;
}

    .sidebar h2 {
        color: #007ea7;
        font-weight: 700;
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
        text-align: center;
        position: relative;
    }

        .sidebar h2::after {
            content: "";
            position: absolute;
            bottom: -8px;
            left: 25%;
            width: 50%;
            height: 3px;
            background: linear-gradient(90deg, #ff7a18, #007ea7);
            border-radius: 2px;
        }

    .sidebar h4 {
        color: #007ea7;
        font-weight: 600;
        font-size: 1.1rem;
        margin-bottom: 1rem;
        padding-left: 10px;
        border-left: 4px solid #ff7a18;
    }

    /* ===== ENHANCED FILTER BUTTONS ===== */
    .sidebar .button {
        background: linear-gradient(135deg, #ff7a18 0%, #ff9a3d 100%);
        color: #fff;
        border: none;
        padding: 8px 16px;
        border-radius: 12px;
        margin: 4px 6px;
        cursor: pointer;
        font-size: 0.9rem;
        font-weight: 600;
        transition: all 0.3s ease;
        box-shadow: 0 4px 12px rgba(255, 122, 24, 0.3);
    }

        .sidebar .button:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 18px rgba(255, 122, 24, 0.4);
            background: linear-gradient(135deg, #e6690e 0%, #ff8a29 100%);
        }

/* ===== ENHANCED FLOATING BUTTON ===== */
.floating-compare-btn {
    position: fixed;
    top: 120px;
    right: 30px;
    z-index: 10000;
    border-radius: 50px;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ff7a18 0%, #ff9a3d 100%);
    color: white;
    border: none;
    box-shadow: 0 8px 25px rgba(255, 122, 24, 0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    transform: translateY(100px);
}

    .floating-compare-btn.visible {
        opacity: 1;
        transform: translateY(0);
    }

    .floating-compare-btn.hidden {
        opacity: 0;
        transform: translateY(100px);
    }

    .floating-compare-btn:hover {
        transform: translateY(-5px) scale(1.05);
        box-shadow: 0 12px 30px rgba(255, 122, 24, 0.6);
    }

/* ===== ENHANCED LOADING INDICATOR ===== */
#loadingIndicator {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 25px 0;
    color: #007ea7;
    font-weight: 600;
}

.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid #e1f5fe;
    border-top: 3px solid #007ea7;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== COMPACT META INFO ===== */
.meta-label {
    font-size: 0.7rem;
    color: #007ea7;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
    display: block;
}

.meta-value {
    font-size: 0.85rem;
    color: #1e293b;
    font-weight: 600;
    line-height: 1.3;
}

/* ===== COMPACT IMAGES ===== */
.box .col-5 img {
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,126,167,0.06);
    background: #fff;
    width: 100%;
    height: 42px;
    object-fit: contain;
    border: 1px solid #f0f0f0;
    padding: 3px;
}

/* ===== COMPACT ACTION SECTION ===== */
.action-buttons {
    margin-top: auto;
    padding-top: 0.6rem;
    border-top: 1px solid #f0f4f8;
}

/* ===== COMPACT COMPARE SECTION ===== */
.compare-section {
    position: absolute;
    top: 10px;
    right: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 10;
    flex-shrink: 0;
}

    .compare-section label {
        color: #007ea7;
        font-size: 0.8rem;
        font-weight: 600;
        margin-bottom: 0;
        cursor: pointer;
    }

    .compare-section input[type="checkbox"] {
        cursor: pointer;
        margin: 0;
        width: 16px;
        height: 16px;
        accent-color: #007ea7;
    }

/* ===== COMPACT CARD BODY ===== */
.box1 {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-left: 6px;
}

    .box1 .row {
        margin-bottom: 0.4rem;
        align-items: center;
    }

        .box1 .row:last-child {
            margin-bottom: 0;
        }

/* ===== ENHANCED SHARE ICON ===== */
.share-icon-top:focus-visible {
    outline: 2px solid rgba(0, 126, 167, 0.3);
    outline-offset: 3px;
}

/* ===== NO BONDS CARD ===== */
.no-bonds-card {
    background: linear-gradient(145deg, #fff5f5 0%, #ffe6e6 100%);
    border: 2px solid #ffd6d6;
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.1);
}

/* ===== TABLE PAGING ===== */
.table-paging {
    border: 1px solid #ff00dc2b;
    width: fit-content;
}

    .table-paging tbody tr td .aspNetDisabled {
        color: #cec072;
    }

/* ===== TEXT CLAMP UTILITIES ===== */
span.kgs {
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

span.mmm,
span.abs {
    -webkit-line-clamp: 1;
    line-clamp: 1;
}

/* ===== GRID LAYOUT ===== */
.collection.row {
    margin-left: -12px;
    margin-right: -12px;
    display: flex;
    flex-wrap: wrap;
}

.collection .col-lg-4,
.collection .col-lg-6,
.collection .col-md-6,
.collection .col-12 {
    padding-left: 12px;
    padding-right: 12px;
    margin-bottom: 1.8rem;
    display: flex;
}

    /* Ensure cards take full height */
    .collection .col-lg-4 > .box,
    .collection .col-lg-6 > .box,
    .collection .col-md-6 > .box,
    .collection .col-12 > .box {
        width: 100%;
        margin-bottom: 0;
    }

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .bond-card {
        padding: 1rem;
    }

    .sidebar {
        padding: 1.5rem 1.2rem;
    }
}

@media (max-width: 991px) {
    .sidebar {
        margin-bottom: 2rem;
        border-radius: 16px;
        padding: 1.5rem;
        position: static;
    }

    .box {
        padding: 1rem;
    }

    .bond-quick-metrics {
        grid-template-columns: repeat(2, 1fr);
    }

    .bond-detail-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-card {
        padding: 1.2rem;
    }

    .hero-card-top {
        flex-direction: column;
        gap: 0.8rem;
    }

    .hero-card-meta {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .highlight-marquee {
        font-size: 1rem;
        padding: 12px 0;
    }

    .highlight-track {
        animation-duration: 25s;
        gap: 30px;
    }

    .floating-compare-btn {
        right: 20px;
        padding: 12px 24px;
    }
}

@media (max-width: 768px) {
    .box {
        min-height: 240px;
        padding: 0.8rem;
    }

    .bond-card {
        min-height: 220px;
        padding: 0.8rem;
        margin-bottom: 20px;
    }

    .bond-quick-metrics {
        grid-template-columns: repeat(2, 1fr);
    }

    .bond-detail-grid {
        grid-template-columns: 1fr;
    }

    .card-action-icons {
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .hero-card-metrics .col-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .hero-card-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-card-footer {
        gap: 0.8rem;
    }

    .box0 {
        margin-bottom: 0.6rem;
        padding-bottom: 0.6rem;
    }

    .box .col-5 img {
        height: 45px;
    }

    .box1 small {
        font-size: 0.8rem;
    }

    .box1 p.h6 {
        font-size: 0.95rem;
    }

    .highlight-marquee {
        font-size: 0.9rem;
        padding: 10px 0;
    }

    .highlight-track {
        animation-duration: 20s;
        gap: 20px;
    }

    .floating-compare-btn {
        right: 15px;
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .box {
        min-height: 220px;
        padding: 0.8rem;
        border-radius: 12px;
    }

    .bond-card {
        min-height: 200px;
        padding: 0.8rem;
        border-radius: 14px;
    }

    .bond-quick-metrics {
        grid-template-columns: 1fr;
    }

    .card-top-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .card-action-icons {
        width: 100%;
        justify-content: space-between;
    }

    .hero-card-metrics .col-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .hero-info-grid {
        grid-template-columns: 1fr;
    }

    .hero-footer-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .sidebar {
        padding: 1.2rem;
        border-radius: 16px;
    }

    .button a,
    .bond-card .button a {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .highlight-track {
        animation-duration: 15s;
        gap: 15px;
    }
}

/* ===== GRID BREAKPOINTS ===== */
@media (min-width: 992px) {
    .collection .col-lg-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }

    .collection .col-lg-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (min-width: 1200px) {
    .collection .col-lg-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }

    .collection .col-lg-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .collection .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 767px) {
    .collection .col-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* ===== FILTER SCROLL WRAPPER ===== */
.filter-scroll-wrapper {
    max-height: 80vh;
    overflow-y: auto;
    padding-right: 10px;
}

    .filter-scroll-wrapper::-webkit-scrollbar {
        width: 8px;
    }

    .filter-scroll-wrapper::-webkit-scrollbar-track {
        background: #f1f9ff;
        border-radius: 4px;
    }

    .filter-scroll-wrapper::-webkit-scrollbar-thumb {
        background: linear-gradient(135deg, #ff7a18, #007ea7);
        border-radius: 4px;
    }

        .filter-scroll-wrapper::-webkit-scrollbar-thumb:hover {
            background: linear-gradient(135deg, #e6690e, #005a78);
        }

/* ===== WEBKIT FIXES ===== */
@-webkit-keyframes scrollLeft {
    0% {
        -webkit-transform: translateX(100%);
    }

    100% {
        -webkit-transform: translateX(-100%);
    }
}

/* ===== SIDEBAR POSITIONING ===== */
.sidebar .main-box {
    position: sticky;
    top: 90px;
}

/* ===== BOND CATEGORY & INVESTMENT STYLES ===== */
.bond-category .table-check-input,
.bond-investment .form-input,
.bond-investment .form-check-label {
    display: block;
    padding: 6px 0;
}

.bond-rating .button {
    background: #f6fbff;
    border-color: #3b82f6;
    color: #1f5bb5;
}

    .bond-rating .button:hover {
        background: #e8f2ff;
    }

/* ===== VIEW MORE BUTTON ===== */
.btn-view-more {
    display: block;
    width: 100%;
    text-align: center;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 10px;
    background: linear-gradient(135deg, #007ea7 0%, #005a78 100%);
    color: white !important;
    text-decoration: none;
    transition: all 0.3s ease;
}

    .btn-view-more:hover {
        background: linear-gradient(135deg, #005a78 0%, #003d52 100%);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 126, 167, 0.4);
        color: white !important;
    }

    .btn-view-more i {
        margin-right: 6px;
        font-size: 0.9rem;
    }

/* ===== ICON CIRCLE ===== */
.icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff7a18, #ffb347);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #007ea7 0%, #005a78 100%);
    color: white !important;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 126, 167, 0.3);
}

    .icon-circle:hover {
        background: linear-gradient(135deg, #005a78 0%, #003d52 100%);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 126, 167, 0.4);
    }
