/* ========================================
   PAGE.PHP SPECIFIC STYLES
   Extracted from inline <style> for performance
   ======================================== */

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f8f9fa;
}

.sidebar {
    background: white;
    min-height: 100vh;
    border-right: 1px solid #e0e0e0;
    padding: 20px 0;
}

.sidebar-icon {
    width: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 10px;
    gap: 30px;
}

.sidebar-icon i {
    font-size: 24px;
    color: #666;
    cursor: pointer;
}

.sidebar-icon i.active {
    color: #0047BB;
}

.navbar-custom {
    background: white;
    border-bottom: 1px solid #e0e0e0;
    padding: 15px 0;
}

.search-box {
    border-radius: 25px;
    padding: 8px 20px 8px 40px;
    border: 1px solid #ddd;
}

.brand-header {
    background: white;
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 30px;
    border: 1px solid #e0e0e0;
}

.brand-logo-large {
    font-size: 56px;
    font-weight: 700;
    color: #0047BB;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
}

.social-links a:hover {
    background: #f8f9fa;
    border-color: #0047BB;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    border: 1px solid #e0e0e0;
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: #0047BB;
    margin-bottom: 10px;
}

.stat-label {
    color: #666;
    font-size: 14px;
}

.info-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
}

.info-section h5 {
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    color: #666;
    font-weight: 500;
}

.info-value {
    color: #333;
    font-weight: 600;
}

.tag {
    display: inline-block;
    padding: 6px 16px;
    background: #f0f0f0;
    border-radius: 20px;
    margin-right: 8px;
    margin-bottom: 8px;
    font-size: 14px;
    color: #333;
}

.btn-primary-custom {
    background: #0047BB;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary-custom:hover {
    background: #003488;
}

.btn-outline-custom {
    border: 2px solid #0047BB;
    color: #0047BB;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    background: white;
    transition: all 0.3s;
}

.btn-outline-custom:hover {
    background: #0047BB;
    color: white;
}

.breadcrumb-custom {
    background: transparent;
    padding: 20px 0;
}

.breadcrumb-custom a {
    color: #666;
    text-decoration: none;
}

.breadcrumb-custom a:hover {
    color: #0047BB;
}

.partnership-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    border: 1px solid #e0e0e0;
    margin-bottom: 15px;
    transition: all 0.3s;
}

.partnership-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.partnership-date {
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
}

.chart-container {
    background: white;
    border-radius: 12px;
    padding: 30px;
    border: 1px solid #e0e0e0;
    margin-bottom: 20px;
}

.metric-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.metric-badge.negative {
    background: #ffebee;
    color: #c62828;
}

/* ========================================
   TABLE OF CONTENTS - Modern Design
   ======================================== */

.toc-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    margin-bottom: 20px;
    overflow: hidden;
}

h3.toc-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 20px;
    margin: 0;
    background: transparent;
    color: #333;
    font-weight: 600;
    font-size: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.toc-nav {
    max-height: 350px;
    overflow-y: auto;
    padding: 12px 0;
}

.toc-nav::-webkit-scrollbar {
    width: 4px;
}

.toc-nav::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.toc-nav::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.toc-nav::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-list li {
    margin: 0;
}

.toc-link {
    display: block;
    padding: 8px 20px;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.toc-link[data-level="3"] {
    padding-left: 32px;
    font-size: 13px;
}

.toc-link:hover {
    color: #0047BB;
    background: #f8f9fa;
    border-left-color: #ddd;
}

.toc-link.active {
    color: #0047BB;
    background: #f0f7ff;
    border-left-color: #0047BB;
    font-weight: 600;
}

/* Smooth scroll for anchor links */
html {
    scroll-behavior: smooth;
}

/* Offset for fixed header when scrolling to anchors */
[id] {
    scroll-margin-top: 80px;
}

/* Hide TOC on mobile */
@media (max-width: 991px) {
    .toc-card {
        display: none;
    }
}

/* Tablet adjustments */
@media (max-width: 1199px) {
    .toc-text {
        font-size: 12px;
    }

    .toc-link {
        padding: 8px 16px;
    }
}
