@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@100;200;300;400;500;600;700;800;900&display=swap');

:root {
    /* Backgrounds */
    --bg-main: #121417;
    --bg-card: #1E2024;
    --bg-input: #16181C;
    
    /* Accents */
    --color-primary: #D7FF42;
    --color-secondary: #C5C830;
    --color-success: #A5D63F;
    
    /* Typography */
    --text-main: #FFFFFF;
    --text-body: #E0E0E0;
    --text-muted: #909499;

    /* Borders */
    --border-color: #2D3139;

    /* Data Visualization */
    --accent-red: #F2726F;
    --accent-blue: #50E3C2;
    --accent-green: #48BB78;
    --accent-orange: #ED8936;
    --accent-yellow: #ECC94B;

    /* Other */
    --card-radius: 24px;
    --font-main: 'Montserrat', sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-body);
    font-family: var(--font-main);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-main);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.heading-xl {
    font-size: clamp(2.5rem, 8vw, 5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.text-accent { color: var(--color-primary) !important; }
.text-yellow { color: var(--accent-yellow) !important; }
.text-blue { color: var(--accent-blue) !important; }
.text-orange { color: var(--accent-orange) !important; }
.text-red { color: var(--accent-red) !important; }
.text-teal { color: var(--accent-green) !important; }

.bg-primary-unipage { background-color: var(--bg-main) !important; color: var(--text-body); }
.bg-secondary-unipage { background-color: var(--bg-card) !important; color: var(--text-body); }
.bg-tertiary-unipage { background-color: var(--bg-input) !important; color: var(--text-body); }

.bg-dark {
    background-color: var(--bg-main) !important;
    color: var(--text-body);
}

.text-muted {
    color: var(--text-muted) !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-input);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Sections */
.section {
    padding: 100px 0;
    position: relative;
}

.hero {
    position: relative;
    overflow: hidden;
    background-color: #000;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 1;
    transform: translate(-50%, -50%);
    object-fit: cover;
    opacity: 0.6; /* Slight transparency for background feel */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(18, 20, 23, 0.8) 0%, rgba(18, 20, 23, 0.4) 50%, rgba(18, 20, 23, 0.8) 100%);
    z-index: 2;
}

.hero .container {
    position: relative;
    z-index: 3;
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }
}

/* Navbar */
.navbar {
    background: var(--bg-main);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0;
    z-index: 1000;
}

.navbar-brand img {
    height: 32px;
}

.nav-link {
    color: var(--text-main) !important;
    font-weight: 500;
    text-transform: none;
    font-size: 0.95rem;
    letter-spacing: 0;
    margin: 0;
    transition: color 0.2s ease;
    opacity: 0.8;
}

.nav-link:hover, .nav-link.active {
    color: var(--color-primary) !important;
    opacity: 1;
}

/* Buttons */
.btn-unipage {
    padding: 12px 28px;
    border-radius: 100px;
    font-weight: 600;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.btn-primary-unipage {
    background-color: var(--color-primary);
    border: 1px solid var(--color-primary);
    color: #000;
}

.btn-primary-unipage:hover {
    background-color: var(--color-primary);
    filter: brightness(1.1);
    transform: none;
    box-shadow: 0 4px 20px rgba(215, 255, 66, 0.3);
    color: #000;
}

.btn-outline-unipage {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: #fff;
}

.btn-outline-unipage:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: #fff;
    color: #fff;
}

.btn-outline-muted-unipage {
    background-color: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-muted);
    opacity: 0.8;
}

.btn-outline-muted-unipage:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: #fff;
    color: #fff;
    opacity: 1;
}

/* Choice Buttons */
.btn-choice {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 12px;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
    font-weight: 500;
}

.btn-choice:hover {
    background: var(--bg-input);
}

.btn-choice::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    width: 80%;
    height: 3px;
    border-radius: 3px 3px 0 0;
}

.choice-red::after { background: var(--accent-red); }
.choice-orange::after { background: var(--accent-orange); }
.choice-yellow::after { background: var(--accent-yellow); }
.choice-lime::after { background: var(--color-primary); }
.choice-teal::after { background: var(--accent-green); }

/* Boxed Tabs */
.tabs-boxed {
    background: var(--bg-main);
    padding: 6px;
    border-radius: 16px;
    display: inline-flex;
    margin-bottom: 30px;
}

.tab-box {
    padding: 12px 30px;
    border-radius: 12px;
    color: var(--text-muted);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    font-size: 0.95rem;
}

.tab-box:hover {
    color: #fff;
}

.tab-box.active {
    background: var(--bg-card);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.tab-count {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-left: 6px;
    font-weight: 400;
}

/* Cards */
.unipage-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    padding: 30px;
    height: 100%;
    transition: border-color 0.3s ease;
}

.unipage-card:hover {
    transform: none;
    border-color: rgba(255, 255, 255, 0.15);
}

.expert-block {
    background: var(--bg-input);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    position: relative;
}

.expert-block .expert-header {
    margin-bottom: 12px;
}

.expert-block .expert-name {
    color: var(--color-primary);
    font-weight: 700;
    margin-right: 8px;
}

.expert-block .expert-role {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Tabs */
.tabs-unipage {
    border-bottom: 1px solid var(--border-color);
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
}

.tab-item {
    padding: 15px 0;
    color: var(--text-muted);
    cursor: pointer;
    font-weight: 500;
    position: relative;
    text-decoration: none;
    transition: color 0.2s;
}

.tab-item:hover, .tab-item.active {
    color: #fff;
}

.tab-item.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-primary);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 25px;
}

/* Footer */
footer {
    padding: 80px 0 40px;
    background: var(--bg-main);
    border-top: 1px solid var(--border-color);
}

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--color-primary);
}

/* Timeline/Process (Image 5) */
.timeline-unipage {
    position: relative;
    padding-left: 50px;
}

.timeline-unipage::before {
    content: '';
    position: absolute;
    left: 19px;
    top: 0;
    width: 2px;
    height: 100%;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-icon {
    position: absolute;
    left: -50px;
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-size: 1.2rem;
    z-index: 1;
}

/* Progress Bars */
.progress-unipage {
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 100px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-bar-unipage {
    height: 100%;
    border-radius: 100px;
    transition: width 1s ease;
    background: linear-gradient(90deg, transparent, var(--color-primary));
}

/* Indicators & Comparison */
.indicator-line {
    position: relative;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 15px 0;
}

.marker-dot {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--accent-blue);
    border-radius: 50%;
}

.marker-triangle {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -100%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid var(--accent-yellow);
}

.accuracy-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    min-width: 100px;
}

.accuracy-value {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.accuracy-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: lowercase;
}

/* Filters */
.filter-item {
    margin-bottom: 20px;
}

.filter-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.filter-input-wrap {
    position: relative;
}

.filter-input-wrap .bi-search {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.filter-input-wrap .form-control {
    padding-left: 45px;
    background: var(--bg-main);
}

.filter-select {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    color: var(--text-body);
    padding: 10px 15px;
    border-radius: 10px;
    width: 100%;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='gray' class='bi bi-chevron-down' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
}
.accordion-unipage .accordion-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px !important;
    margin-bottom: 10px;
    overflow: hidden;
}

.accordion-unipage .accordion-button {
    background: transparent;
    color: #fff;
    box-shadow: none;
    padding: 20px 24px;
}

.accordion-unipage .accordion-button:not(.collapsed) {
    color: var(--color-primary);
}

.accordion-unipage .accordion-body {
    color: var(--text-muted);
    padding: 0 24px 20px;
}

/* Modal Customization */
.modal-content {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    border-radius: 24px;
}

.form-control, .form-select {
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-body);
    padding: 12px 18px;
    border-radius: 12px;
}

.form-control:focus, .form-select:focus {
    background-color: var(--bg-input);
    border-color: var(--color-primary);
    color: var(--text-body);
    box-shadow: none;
}

/* Stats / Numbers Block */
.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Success Statistics Section */
.success-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    padding: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.success-card.featured-success-card {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.9)), url('https://images.unsplash.com/photo-1541339907198-e08756ebafe3?auto=format&fit=crop&w=1200&q=80');
    background-size: cover;
    background-position: center;
    min-height: 400px;
    border: none;
    padding: 40px;
}

.success-card .big-number {
    font-size: 5rem;
    font-weight: 900;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 15px;
}

.success-card .stat-description {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* Bar Chart */
.chart-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    padding: 30px;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.chart-legend {
    display: flex;
    gap: 20px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 2px;
}

.dot-general { background: #444; }
.dot-unipage { background: var(--color-primary); }

.bar-row {
    margin-bottom: 15px;
}

.bar-label {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.bar-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bar-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bar {
    height: 8px;
    border-radius: 4px;
    transition: width 1s ease-out;
}

.bar-general {
    background: #444;
}

.bar-unipage {
    background: var(--color-primary);
}

.bar-value {
    font-size: 0.75rem;
    color: var(--text-muted);
    min-width: 40px;
}

/* Partners Section */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 40px;
    align-items: center;
    opacity: 0.6;
    filter: grayscale(1);
    transition: opacity 0.3s ease;
}

.partners-grid:hover {
    opacity: 1;
}

.partner-logo {
    max-width: 120px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Utility Classes */
.mt-100 { margin-top: 100px; }
.mb-100 { margin-bottom: 100px; }
.text-muted-unipage { color: var(--text-muted); }

.text-gradient {
    background: linear-gradient(135deg, #FFFFFF 0%, var(--color-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Bootstrap Overrides for New Color Scheme */
.bg-dark { background-color: var(--bg-input) !important; }
.border-secondary { border-color: var(--border-color) !important; }
.text-white { color: var(--text-main) !important; }
.text-success { color: var(--color-success) !important; }
.bg-success { background-color: var(--color-success) !important; color: #000 !important; }
.alert-success {
    background-color: var(--bg-card);
    border-color: var(--color-success);
    color: var(--color-success);
}
.text-primary { color: var(--color-primary) !important; }
.text-accent { color: var(--color-primary); }
.bg-primary { background-color: var(--color-primary) !important; color: #000 !important; }
.border-primary { border-color: var(--color-primary) !important; }

.letter-spacing-1 { letter-spacing: 0.1em; }

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-card);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--bg-input);
}

/* Background Pattern (Subtle) */
.bg-pattern {
    background-image: radial-gradient(circle at 2px 2px, rgba(255,255,255,0.03) 1px, transparent 0);
    background-size: 40px 40px;
}

/* Data Card (Image 1) */
.data-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
}

.data-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.data-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.data-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.data-value {
    font-weight: 600;
}

/* Article Content & Articles Pages */
.article-content {
    line-height: 1.7;
}

.article-content a {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: opacity 0.2s;
}

.article-content a:hover {
    opacity: 0.8;
    color: var(--color-primary);
}

.article-content h1, 
.article-content h2, 
.article-content h3 {
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
}

.article-content p {
    margin-bottom: 1.25rem;
}

.article-content .table-responsive {
    margin-bottom: 2.5rem;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.article-content .table {
    margin-bottom: 0;
    --bs-table-bg: var(--bg-card);
    --bs-table-color: var(--text-body);
    --bs-table-border-color: var(--border-color);
    --bs-table-hover-bg: rgba(215, 255, 66, 0.05);
    --bs-table-hover-color: var(--text-main);
}

.article-content .table th {
    background-color: rgba(255, 255, 255, 0.03);
    color: var(--color-primary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    padding: 15px;
    border-bottom: 2px solid var(--border-color);
}

.article-content .table td {
    padding: 15px;
    vertical-align: middle;
}

.article-content ul, 
.article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.article-content li {
    margin-bottom: 0.75rem;
}

.article-content hr {
    margin: 4rem 0;
    opacity: 0.15;
    border-color: var(--color-primary);
}

.sidebar-toc {
    position: sticky;
    top: 100px;
}

.toc-link {
    display: block;
    padding: 6px 0;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.9rem;
    border-left: 2px solid transparent;
    padding-left: 15px;
}

.toc-link:hover {
    color: var(--color-primary);
    border-left-color: var(--color-primary);
}

.article-content details {
    background: var(--bg-card);
    padding: 1.25rem;
    border-radius: 16px;
    margin-bottom: 1.25rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.article-content details[open] {
    border-color: var(--color-primary);
}

.article-content summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--text-main);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.article-content summary::after {
    content: '\F282';
    font-family: 'bootstrap-icons';
    transition: transform 0.3s;
}

.article-content details[open] summary::after {
    transform: rotate(180deg);
}

.badge-unipage {
    background-color: var(--color-primary);
    color: var(--bg-main);
    font-weight: 600;
    padding: 0.35em 0.65em;
    border-radius: 6px;
}
