/* Обнуляем отступы страницы для этой секции */
/*.resume-wrapper {
    padding-top: 0 !important;
}*/

/* Шапка: убираем верхний отступ полностью */
/*.kb-header {
    margin-top: 0 !important;
    margin-bottom: 1rem;
    text-align: center;
}*/

.kb-header h1 {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(220px, auto);
    gap: 1.25rem;
}

.bento-item {
    display: flex;
    text-decoration: none;
    color: inherit;
    text-decoration: none;
}

.bento-item:hover {
    text-decoration: none;
    color: inherit;
}

.item-inner {
    width: 100%;
    background: rgba(30, 30, 60, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
}

/* Элементы внутри */
.item-body i {
    font-size: 1.6rem;
    color: var(--secondary);
    margin-bottom: 1rem;
    display: inline-block;
}

.item-body h3 { font-size: 1.2rem; font-weight: 600; color: #fff; margin-bottom: 0.5rem; }
.item-body p { font-size: 0.85rem; color: rgba(255, 255, 255, 0.5); margin: 0; line-height: 1.5; }

/* Футер и стрелочки */
.item-footer { padding-top: 1rem; }

.cta-link {
    color: var(--secondary);
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: 0.3s;
}

.cta-link i { transition: transform 0.3s; }

/* Анимация при наведении */
.bento-item:hover .item-inner {
    border-color: var(--secondary);
    background: rgba(110, 69, 226, 0.15);
    transform: translateY(-5px);
}

.bento-item:hover .cta-link i { transform: translateX(5px); }
.bento-item:hover .arrow-btn { color: var(--secondary); }

.arrow-btn { color: rgba(255, 255, 255, 0.2); font-size: 1.2rem; transition: 0.3s; }

/* Тэги */
.kb-tags {
    list-style: none;
    padding: 0;
    margin-top: auto; /* Прижимает теги к нижней части описания */
    display: flex;
    gap: 8px;
    flex-wrap: wrap; /* Чтобы теги переносились, если их много */
}

.kb-tags li {
    font-size: 0.7rem;
    font-family: monospace;
    color: var(--secondary);
    background: rgba(136, 211, 206, 0.1); /* Легкий фон */
    padding: 2px 8px;
    border-radius: 4px;
    opacity: 0.6; /* Делаем их четкими */
}

/* Размеры */
.wide { grid-column: span 2; }
.tall { grid-row: span 2; }


/* Адаптив */
@media (max-width: 992px) { .bento-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .bento-grid { grid-template-columns: 1fr; } .wide, .tall { grid-column: span 1; } }

/* Убираем стандартные эффекты Bootstrap для списков */
.list-group-item-action:hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: var(--secondary) !important;
    opacity: 1 !important;
}

/* Линия вложенности */
.border-start {
    border-left: 1px solid rgba(255, 255, 255, 0.15) !important;
}

/* Поворот стрелочки при раскрытии */
[aria-expanded="true"] .chevron-arrow {
    transform: rotate(180deg);
    transition: transform 0.2s;
}

.chevron-arrow {
    transition: transform 0.2s;
}

/* Убираем синюю обводку при клике */
.list-group-item:focus {
    background-color: transparent;
}

.list-group-item-action:focus {
    box-shadow: none;
    background-color: inherit;
}
