/* Общие стили внутренних страниц (courses / talks / articles / interviews).
   Базовая часть повторяет стили лендинга index.html, чтобы дизайн был единым. */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;700;800;900&display=swap');

html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #030712;
    color: #e2e8f0;
}

h1, h2, h3, h4, h5, h6, .outfit-font {
    font-family: 'Outfit', sans-serif;
}

/* --- СОСТОЯНИЕ ЯЗЫКОВ С АНИМАЦИЕЙ --- */
.lang-en .ru-text, .lang-en .ua-text { display: none; }
.lang-ru .en-text, .lang-ru .ua-text { display: none; }
.lang-ua .en-text, .lang-ua .ru-text { display: none; }

.ru-text, .en-text, .ua-text {
    animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeIn {
    from { opacity: 0; filter: blur(3px); transform: translateY(2px); }
    to { opacity: 1; filter: blur(0); transform: translateY(0); }
}

.lang-switcher button { position: relative; }
.lang-switcher button.active { color: #a855f7; font-weight: 800; text-shadow: 0 0 10px rgba(168,85,247,0.5); }

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #030712; }
::-webkit-scrollbar-thumb { background: #1e293b; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #334155; }

/* Interactive Vanta Background Container */
#vanta-bg {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -20;
    opacity: 0.35;
    transition: opacity 0.5s ease-in-out;
}

/* Bento UI & Glassmorphism */
.bento-glass {
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.4s;
}

.bento-glass::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(255,255,255,0.08), transparent 40%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 1;
}

.bento-glass:hover::before { opacity: 1; }

.bento-glass:hover {
    border-color: rgba(168,85,247,0.3);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.6), 0 0 20px rgba(168,85,247,0.1);
    z-index: 10;
}

.bento-glass.no-lift:hover { transform: none; }

.bento-content {
    position: relative;
    z-index: 2;
}

/* Accent Gradient for Headings */
.text-gradient {
    background: linear-gradient(135deg, #a855f7 0%, #3b82f6 50%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: gradient-shift 5s ease infinite;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.no-scrollbar::-webkit-scrollbar { display: none; }

/* --- ВНУТРЕННИЕ СТРАНИЦЫ --- */

/* Активный пункт меню */
.nav-link.active { color: #fff; }
.nav-link.active::after {
    content: '';
    display: block;
    height: 2px;
    margin-top: 4px;
    border-radius: 2px;
    background: linear-gradient(90deg, #a855f7, #3b82f6);
}

/* Обложка карточки с запасным вариантом, если картинка не загрузилась */
.cover {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 20% 20%, rgba(168,85,247,0.25), transparent 55%),
                radial-gradient(circle at 80% 90%, rgba(59,130,246,0.22), transparent 55%),
                #0b1120;
}
.cover .cover-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(196,181,253,0.55);
}
.cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.group:hover .cover img { transform: scale(1.06); }

/* Фильтры */
.filter-btn {
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(15,23,42,0.6);
    color: #94a3b8;
    transition: all 0.25s;
}
.filter-btn:hover { color: #fff; border-color: rgba(255,255,255,0.2); }
.filter-btn.active {
    border-color: rgba(168,85,247,0.5);
    background: rgba(168,85,247,0.2);
    color: #fff;
    box-shadow: 0 0 15px rgba(168,85,247,0.25);
}

.search-input {
    background: rgba(15,23,42,0.6);
    border: 1px solid rgba(255,255,255,0.1);
    transition: border-color 0.25s, box-shadow 0.25s;
}
.search-input:focus {
    outline: none;
    border-color: rgba(168,85,247,0.5);
    box-shadow: 0 0 0 3px rgba(168,85,247,0.15);
}

.line-clamp-2, .line-clamp-3, .line-clamp-4 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.line-clamp-2 { -webkit-line-clamp: 2; }
.line-clamp-3 { -webkit-line-clamp: 3; }
.line-clamp-4 { -webkit-line-clamp: 4; }

[data-filter-item].is-hidden, [data-year-group].is-hidden { display: none !important; }

/* Шестиугольник для пакетов без собственного логотипа */
.hex { clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
