/* Custom styles for Aptia project */

/* LinkedIn icon color to match JK Consulting logo green shield */
.linkedin-icon-green {
    color: #2E8B32 !important; /* Green color from JK Consulting logo */
}

/* Styles for the yellow box bullet list */
.value-proposition .list-unstyled li {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.value-proposition .footnote {
    font-size: 0.8rem;
    margin-top: 1rem;
    font-style: italic;
}

/* Bold green superscript for 'd' and 'e' indicators */
.value-proposition .superscript {
    font-size: 1.1rem;
    vertical-align: super;
    font-weight: bold;
    color: #2E8B32;
}

/* Bold green text for footnote indicators */
.value-proposition .footnote-indicator {
    font-weight: bold;
    color: #2E8B32;
}


/* Propensity Score Badge Styling */
.propensity-badge {
    position: absolute;
    top: 10px; /* Adjust as needed */
    right: 10px; /* Adjust as needed */
    font-size: 0.75em; /* Adjust size */
    padding: 0.4em 0.6em; /* Adjust padding for circular shape */
    min-width: 30px; /* Ensure minimum width */
    text-align: center;
}



/* Pension Scheme Section Header Styling */
.scheme-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    cursor: pointer;
    padding: 10px 15px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    margin-bottom: 10px;
    transition: background-color 0.3s ease;
}

.scheme-section-header:hover {
    background-color: #e9ecef;
}

.scheme-section-toggle {
    margin-left: auto;
    transition: transform 0.3s ease;
}

.scheme-section.active .scheme-section-toggle i {
    transform: rotate(90deg);
}

/* Ensure proper spacing and alignment */
.scheme-section-header span:first-child {
    flex-grow: 1;
    text-align: left;
}

.scheme-section-header .scheme-section-toggle {
    flex-shrink: 0;
    text-align: right;
}


/* Breaking News Ticker Styling */
.breaking-news {
    background-color: #000 !important;
    color: white !important;
    padding: 8px 15px;
    font-size: 14px;
    border-bottom: 2px solid #dc3545;
}

.breaking-news-content {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    overflow: hidden;
}

.breaking-label {
    color: #dc3545 !important;
    font-weight: bold !important;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    flex-shrink: 0;
}

.news-text {
    color: white !important;
    font-weight: normal;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-date {
    color: #ccc !important;
    font-size: 12px;
    flex-shrink: 0;
    margin-left: auto;
}

.breaking-news-error {
    display: flex;
    align-items: center;
    gap: 10px;
}

.error-text {
    color: #ffc107 !important;
    font-style: italic;
}

/* Ensure ticker is visible and properly positioned */
#breaking-news-ticker {
    width: 100%;
    z-index: 1000;
    position: relative;
}


/* News Story Container Styling */
.news-container, .news-article, .news-item, .article-card, .news-story {
    border: 2px solid var(--aptia-green) !important;
    border-radius: 8px;
    margin-bottom: 15px;
    padding: 15px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.news-container:hover, .news-article:hover, .news-item:hover, .article-card:hover, .news-story:hover {
    box-shadow: 0 4px 8px rgba(0,123,255,0.2);
}

/* Specific styling for news archive page */
.news-archive .news-container,
.news-archive .news-article,
.news-archive .news-item,
.news-archive .article-card {
    border: 2px solid var(--aptia-green);
    border-radius: 8px;
    margin-bottom: 20px;
    padding: 20px;
}

/* Relevant news tab styling */
.relevant-news .news-container,
.relevant-news .news-article,
.relevant-news .news-item,
.relevant-news .article-card {
    border: 2px solid var(--aptia-green);
    border-radius: 8px;
    margin-bottom: 15px;
    padding: 15px;
}

/* Company details relevant news styling */
.company-details .news-container,
.company-details .news-article,
.company-details .news-item,
.company-details .article-card {
    border: 2px solid var(--aptia-green);
    border-radius: 8px;
    margin-bottom: 15px;
    padding: 15px;
}

/* General news list styling */
.news-list .news-container,
.news-list .news-article,
.news-list .news-item,
.news-list .article-card {
    border: 2px solid var(--aptia-green);
    border-radius: 8px;
    margin-bottom: 15px;
    padding: 15px;
}



/* Header banner styling */
.header-banner {
    background-color: white;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.header-banner .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap; /* Prevent wrapping */
    gap: 10px;
}

.logo-section {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0; /* Allow shrinking */
    overflow: hidden;
}

.logo-section img {
    height: 35px; /* Slightly smaller JPAK logo */
    margin-right: 12px;
    flex-shrink: 0;
}

.site-title {
    font-size: 1.3rem; /* Slightly smaller title */
    margin: 0;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.linkedin-logo {
    height: 28px;
    width: 28px;
    flex-shrink: 0;
    margin-left: 8px;
}

/* Responsive adjustments for narrow screens */
@media (max-width: 992px) {
    .site-title {
        font-size: 1.1rem;
    }
    
    .logo-section img {
        height: 32px;
        margin-right: 10px;
    }
    
    .linkedin-logo {
        height: 25px;
        width: 25px;
    }
}

@media (max-width: 768px) {
    .header-banner .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .logo-section {
        width: 100%;
        justify-content: space-between;
    }
    
    .site-title {
        font-size: 1rem;
        white-space: normal;
        line-height: 1.2;
        margin-right: 10px;
    }
    
    .linkedin-logo {
        margin-left: 0;
        height: 24px;
        width: 24px;
    }
}

@media (max-width: 576px) {
    .site-title {
        font-size: 0.9rem;
    }
    
    .logo-section img {
        height: 28px;
        margin-right: 8px;
    }
    
    .linkedin-logo {
        height: 22px;
        width: 22px;
    }
}


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