/* 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: #28a745;
    transition: color 0.2s ease-in-out;
}

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

.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: var(--aptia-green-dark);
    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: var(--aptia-green-dark);
}

.pagination .page-item.active .page-link {
    background-color: var(--aptia-green-dark);
    border-color: var(--aptia-green-dark);
}

.btn-info {
    background-color: var(--aptia-green-dark);
    border-color: var(--aptia-green-dark);
    color: white;
}

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

.form-check-input:checked {
    background-color: var(--aptia-green-dark);
    border-color: var(--aptia-green-dark);
}

/* 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 var(--aptia-green-dark) !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: var(--aptia-green);
}

.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 var(--aptia-green);
}


/* 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;
}




/* Provider Columns Styling */
.provider-columns-container {
    margin-top: 2rem;
}

.provider-column {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    margin-bottom: 1rem;
}

.provider-column .card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px 15px 0 0;
    border: none;
}

.mentions-item, .opportunity-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.mentions-item:last-child, .opportunity-item:last-child {
    border-bottom: none;
}

.mentions-icon, .opportunity-icon {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0,0,0,0.05);
}

.mentions-source {
    font-style: italic;
    color: #6c757d;
    font-size: 0.85em;
    margin-top: 0.25rem;
}

.prove-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 20px;
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.prove-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.opportunity-content {
    flex-grow: 1;
}

.opportunity-text {
    margin-bottom: 0.5rem;
    font-weight: 500;
}


.officer-name-cell {
    text-align: left !important;
}



/* Officers table font size reduction */
.officers-table {
    font-size: 0.75rem !important;
}

.officers-table th,
.officers-table td {
    font-size: 0.75rem !important;
    padding: 0.25rem 0.5rem !important;
}

.officers-table .btn {
    font-size: 0.65rem !important;
    padding: 0.15rem 0.3rem !important;
}


/* Resigned officers pastel red background */
.resigned-officer {
    background-color: #ffe6e6 !important;
}

.resigned-officer:hover {
    background-color: #ffcccc !important;
}


/* Birthday icon styling */
.birthday-icon {
    margin-left: 5px;
    font-size: 1.2em;
    display: inline-block;
}

.birthday-icon-golden-glow {
    filter: drop-shadow(0 0 3px gold) drop-shadow(0 0 6px gold);
    animation: golden-pulse 2s infinite;
}

.birthday-icon-red-glow {
    filter: drop-shadow(0 0 4px red) drop-shadow(0 0 8px red) drop-shadow(0 0 12px red);
    animation: red-pulse 2s infinite;
}

@keyframes golden-pulse {
    0%, 100% { filter: drop-shadow(0 0 3px gold) drop-shadow(0 0 6px gold); }
    50% { filter: drop-shadow(0 0 6px gold) drop-shadow(0 0 12px gold) drop-shadow(0 0 18px gold); }
}

@keyframes red-pulse {
    0%, 100% { filter: drop-shadow(0 0 4px red) drop-shadow(0 0 8px red) drop-shadow(0 0 12px red); }
    50% { filter: drop-shadow(0 0 8px red) drop-shadow(0 0 16px red) drop-shadow(0 0 24px red); }
}


/* Anniversary icon styling */
.anniversary-icon {
    margin-left: 5px;
    font-size: 1.2em;
    display: inline-block;
}

.anniversary-icon-silver-glow {
    filter: drop-shadow(0 0 3px silver) drop-shadow(0 0 6px silver);
    animation: silver-pulse 2s infinite;
}

.anniversary-icon-grey-glow {
    filter: drop-shadow(0 0 4px grey) drop-shadow(0 0 8px grey) drop-shadow(0 0 12px grey);
    animation: grey-pulse 2s infinite;
}

@keyframes silver-pulse {
    0%, 100% { filter: drop-shadow(0 0 3px silver) drop-shadow(0 0 6px silver); }
    50% { filter: drop-shadow(0 0 6px silver) drop-shadow(0 0 12px silver) drop-shadow(0 0 18px silver); }
}

@keyframes grey-pulse {
    0%, 100% { filter: drop-shadow(0 0 4px grey) drop-shadow(0 0 8px grey) drop-shadow(0 0 12px grey); }
    50% { filter: drop-shadow(0 0 8px grey) drop-shadow(0 0 16px grey) drop-shadow(0 0 24px grey); }
}



/* Enhanced Officers Table Layout for New Features */
.officers-table {
    table-layout: fixed;
    width: 100%;
}

/* Column width adjustments for new features */
.officers-table th:nth-child(1),
.officers-table td:nth-child(1) {
    width: 18%; /* Name column with icons */
}

.officers-table th:nth-child(2),
.officers-table td:nth-child(2) {
    width: 12%; /* Role column */
}

.officers-table th:nth-child(3),
.officers-table td:nth-child(3) {
    width: 15%; /* Appointed column with service duration */
}

.officers-table th:nth-child(4),
.officers-table td:nth-child(4) {
    width: 12%; /* DOB/Age column */
}

.officers-table th:nth-child(5),
.officers-table td:nth-child(5) {
    width: 10%; /* Nationality column */
}

.officers-table th:nth-child(6),
.officers-table td:nth-child(6) {
    width: 8%; /* Status column */
}

.officers-table th:nth-child(7),
.officers-table td:nth-child(7) {
    width: 10%; /* Resigned column */
}

.officers-table th:nth-child(8),
.officers-table td:nth-child(8) {
    width: 15%; /* Actions column */
}

/* Icon spacing and alignment */
.birthday-icon,
.anniversary-icon {
    margin-left: 0.3rem;
    font-size: 0.9rem;
    display: inline-block;
}

/* Compact button group styling */
.btn-group-compact {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem;
}

.btn-compact {
    padding: 0.2rem 0.4rem;
    font-size: 0.7rem;
    line-height: 1.2;
}

/* Social media buttons */
.btn-group-compact .btn {
    min-width: auto;
}

.btn-group-compact .fab {
    font-size: 0.8rem;
}

/* Service duration styling */
.officer-appointed {
    font-size: 0.7rem;
    line-height: 1.3;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .officers-table {
        font-size: 0.7rem;
    }
    
    .btn-compact {
        padding: 0.15rem 0.3rem;
        font-size: 0.65rem;
    }
}

@media (max-width: 992px) {
    .officers-table th:nth-child(5),
    .officers-table td:nth-child(5) {
        display: none; /* Hide nationality on smaller screens */
    }
    
    .officers-table th:nth-child(1),
    .officers-table td:nth-child(1) {
        width: 20%;
    }
    
    .officers-table th:nth-child(8),
    .officers-table td:nth-child(8) {
        width: 18%;
    }
}

/* Tooltip styling for Bootstrap tooltips */
.tooltip {
    font-size: 0.75rem;
}

.tooltip-inner {
    max-width: 250px;
    text-align: left;
}

/* Initialize Bootstrap tooltips */
.officers-table [data-bs-toggle="tooltip"] {
    cursor: help;
}


/* Aptia Footer - Fixed Layout with Bold White Title and Equal Spacing */
.aptia-footer-fixed {
    background: white !important;
    border-top: 3px solid var(--aptia-green) !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

.footer-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    padding: 15px 20px !important;
    margin: 0 !important;
    min-height: 50px !important;
}

.quick-links-title {
    color: white !important;
    background: var(--aptia-green) !important;
    font-weight: bold !important;
    font-size: 16px !important;
    padding: 8px 15px !important;
    border-radius: 4px !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
}

.quick-links-nav {
    display: flex !important;
    justify-content: space-evenly !important;
    align-items: center !important;
    flex: 1 !important;
    margin: 0 !important;
    padding: 0 20px !important;
}

.quick-links-nav a {
    color: var(--aptia-green) !important;
    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    padding: 8px 12px !important;
    border-radius: 20px !important;
    border: 2px solid transparent !important;
    transition: all 0.3s ease !important;
    white-space: nowrap !important;
}

.quick-links-nav a:hover {
    color: white !important;
    background: var(--aptia-green) !important;
    border-color: var(--aptia-green) !important;
    transform: translateY(-2px) !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .footer-row {
        flex-direction: column !important;
        padding: 10px !important;
    }
    
    .quick-links-title {
        margin-bottom: 10px !important;
    }
    
    .quick-links-nav {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 8px !important;
        padding: 0 !important;
    }
    
    .quick-links-nav a {
        font-size: 12px !important;
        padding: 6px 10px !important;
    }
}
