/* =====================================================
CONFERENCE 2026 THEME — Fixed & Optimized
===================================================== */
:root {
    --c-navy: #0F172A;
    --c-navy-light: #1E293B;
    --c-accent: #2563EB;
    --c-accent-hover: #1D4ED8;
    --c-bg-light: #F8FAFC;
    --c-bg-section: #EFF6FF;
    --c-text-main: #334155;
    --c-text-muted: #64748B;
    --c-white: #FFFFFF;
    --c-border: #E2E8F0;
    --font-display: 'Sora', sans-serif;
    --font-body: 'Inter', sans-serif;
    --radius-md: 12px;
    --radius-pill: 100px;
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 20px 48px rgba(15, 23, 42, 0.12);
}

body {
    font-family: var(--font-body);
    color: var(--c-text-main);
    background-color: var(--c-white);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--c-navy);
    font-weight: 700;
}

/* === Navbar (Исправлено имя класса) === */
.navbar-nexora {
    padding: 1.25rem 0;
    transition: all 0.3s ease;
    background: transparent;
}
.navbar-nexora.scrolled {
    padding: 0.75rem 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
}
.navbar-brand-custom {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--c-navy) !important;
}
.nav-link-conf {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--c-text-main) !important;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
}
.nav-link-conf:hover, .nav-link-conf.active {
    color: var(--c-accent) !important;
    background: var(--c-bg-section);
}

/* === Hero === */
.hero-conf {
    background: linear-gradient(135deg, var(--c-navy) 0%, #1E3A8A 100%);
    color: var(--c-white);
    padding: 9rem 0 6rem;
    position: relative;
    overflow: hidden;
}
.hero-conf::before {
    content: '';
    position: absolute;
    top: -100px; right: -100px;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.3) 0%, transparent 70%);
}
.hero-title {
    color: var(--c-white);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
}
.hero-lead {
    color: #CBD5E1;
    font-size: 1.25rem;
    max-width: 700px;
}

.btn-accent {
    background: var(--c-accent);
    color: white !important;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-weight: 600;
}
.btn-accent:hover {
    background: var(--c-accent-hover);
    transform: translateY(-2px);
}

/* === Sections === */
.section { padding: 5rem 0; }
.bg-light-blue { background-color: var(--c-bg-section); }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-title { font-size: 2.25rem; color: var(--c-navy); }
.section-subtitle { color: var(--c-text-muted); max-width: 600px; margin: 0 auto; }

/* === Article Cards (FIXED VISIBILITY) === */

/* === Article Cards (FIXED VISIBILITY) === */
.article-card {
    background: var(--c-white);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    
    /* ИСПРАВЛЕНИЕ: Карточки видны сразу */
    opacity: 1; 
    transform: translateY(0);
}

/* Если JS добавит класс is-visible (для плавности при скролле) */
.article-card.is-visible {
    opacity: 1;
    transform: translateY(0);
    /* Можно добавить небольшую анимацию входа, если нужно */
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Анимация появления (опционально) */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--c-accent);
}




.article-meta {
    font-size: 0.85rem;
    color: var(--c-text-muted);
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.badge-section {
    background: var(--c-bg-section);
    color: var(--c-accent);
    padding: 0.35em 0.8em;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* Явное задание цветов текста */
.article-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    color: var(--c-navy) !important; /* Принудительно темный */
    font-weight: 700;
}
.article-author {
    font-weight: 600;
    color: var(--c-navy) !important; /* Принудительно темный */
}
.article-affiliation {
    font-style: italic;
    font-size: 0.9rem;
    color: var(--c-text-muted);
    margin-bottom: 1rem;
}

.article-preview {
    font-size: 0.9rem;
    color: var(--c-text-main);
    margin: 1rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.scores-container {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--c-border);
}
.score-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.7rem;
    border-radius: var(--radius-pill);
}
.score-s1 { background: #EFF6FF; color: #1E40AF; }
.score-s2 { background: #F0FDF4; color: #166534; }
.score-s3 { background: #FFFBEB; color: #92400E; }
.score-s4 { background: #ECFEFF; color: #155E75; }

.card-link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--c-accent);
    font-weight: 700;
    text-decoration: none;
}
.card-link-arrow:hover { gap: 0.7rem; }

/* === Footer === */
.footer-conf {
    background: var(--c-navy);
    color: #94A3B8;
    padding: 4rem 0 2rem;
}
.footer-heading {
    color: var(--c-white);
    font-family: var(--font-display);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}
.footer-links a {
    color: #94A3B8;
    display: block;
    margin-bottom: 0.75rem;
    text-decoration: none;
}
.footer-links a:hover { color: var(--c-white); }

/* === Back to Top === */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--c-accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 999;
    cursor: pointer;
}
.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}




/* === Fixes for About Page Layout === */

/* Исправление цвета текста (в Nexora это text-slate, у нас c-text-muted) */
.text-slate {
    color: var(--c-text-muted) !important;
}

/* Стили для цифр статистики */
.stat-item {
    text-align: left; /* Или center, если хотите по центру */
}
.stat-number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: var(--c-accent); /* Яркий синий цвет */
    line-height: 1.2;
}
.stat-label {
    font-size: 0.9rem;
    color: var(--c-text-muted);
    font-weight: 500;
}

/* Плавающий бейдж (Rating Badge) */
.hero-float-badge {
    position: absolute;
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15); /* Более мягкая тень */
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--c-navy);
    z-index: 10;
    border: 1px solid var(--c-border);
    
    /* Позиционирование */
    top: -20px; 
    left: -20px;
    
    /* Анимация появления */
    animation: floatBadge 3s ease-in-out infinite;
}

/* Иконка внутри бейджа */
.icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* Вариант цвета иконки (Primary) */
.icon-box-primary {
    background-color: var(--c-bg-section); /* Светло-голубой фон */
    color: var(--c-accent); /* Синяя иконка */
}

/* Анимация парения */
@keyframes floatBadge {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* Адаптив для мобильных: убираем сложное позиционирование */
@media (max-width: 991px) {
    .hero-float-badge {
        position: relative;
        top: auto;
        left: auto;
        margin-top: 1rem;
        margin-bottom: 1rem;
        width: fit-content;
        animation: none; /* Отключаем анимацию на мобильных для производительности */
    }
    .position-relative {
        display: flex;
        flex-direction: column;
    }
}