/* 3173 Title Font Styling - Matching Official Website */
.display-4 {
    font-family: "Montserrat UPD", "Montserrat", sans-serif !important;
    font-weight: 500 !important;
}

.logo {
    max-height: 60px;
}

.navbar-brand {
    font-size: 1.25rem;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85);
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: #ffffff;
}

.navbar-dark .navbar-nav .active > .nav-link {
    color: #ffffff;
    font-weight: bold;
}

.card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.linkedin-icon-green {
    color: #0A66C2;
    transition: color 0.2s ease-in-out;
}

.linkedin-icon-green:hover {
    color: #004182;
}

.propensity-score-circle {
    transition: transform 0.2s ease-in-out;
}

.card:hover .propensity-score-circle {
    transform: scale(1.1);
}

.news-ticker-container {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 0.5rem 0;
    overflow: hidden;
    position: relative;
}

.news-ticker-label {
    background-color: #0056b3;
    color: white;
    padding: 0.25rem 1rem;
    font-weight: bold;
    display: inline-block;
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    z-index: 1;
    display: flex;
    align-items: center;
}

.ticker-scroll-area {
    margin-left: 150px;
    overflow: hidden;
    white-space: nowrap;
}

.scrolling-list {
    display: inline-block;
    padding-left: 0;
    margin-bottom: 0;
    animation: ticker-scroll 30s linear infinite;
}

.scrolling-list li {
    display: inline-block;
    margin-right: 50px;
}

@keyframes ticker-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

.breadcrumb {
    background-color: transparent;
    padding-left: 0;
    padding-right: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
}

.pagination .page-link {
    color: #0056b3;
}

.pagination .page-item.active .page-link {
    background-color: #0056b3;
    border-color: #0056b3;
}

.btn-info {
    background-color: #0056b3;
    border-color: #0056b3;
    color: white;
}

.btn-info:hover {
    background-color: #004494;
    border-color: #004494;
    color: white;
}

.form-check-input:checked {
    background-color: #0056b3;
    border-color: #0056b3;
}

/* Home page sections with black border */
.features .card, 
.advantages-sponsors .card, 
.advantages-trustees .card {
    border: 2px solid #000000 !important;
}

/* Company card on Companies page */
#companyList .card {
    border: 2px solid #0056b3 !important;
}

/* Enhanced Financial Tab Styles */
.metric-card {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 10px;
}

.metric-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #007bff;
}

.metric-label {
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 5px;
}

.chart-container {
    position: relative;
    height: 400px;
    margin: 20px 0;
}

#stockChart {
    max-width: 100%;
    height: auto;
}

/* Tooltip styles for financial ratios */
[title] {
    cursor: help;
    border-bottom: 1px dotted #007bff;
}


/* PFO Section Styles */
.pfo-card {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.pfo-card-title {
    color: #495057;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #6f42c1;
}

.pfo-field {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f8f9fa;
}

.pfo-field:last-child {
    border-bottom: none;
}

.pfo-field label {
    font-weight: 500;
    color: #6c757d;
    margin: 0;
    flex: 0 0 40%;
}

.pfo-field span {
    color: #495057;
    font-weight: 400;
    text-align: right;
    flex: 1;
}

.pfo-field span a {
    color: #6f42c1;
    text-decoration: none;
}

.pfo-field span a:hover {
    text-decoration: underline;
}



/* Fix for tab content override issue - ensure only active tabs are displayed */
.tab-pane:not(.show) {
    display: none !important;
}

.tab-pane.show.active {
    display: block !important;
}

