/* =========================================
   1. СТИЛИ ДЛЯ ГЛАВНОГО БАННЕРА
   ========================================= */
.kaznu-hero-bg {
    background: linear-gradient(90deg, #ffffff 45%, #e0f2fe 100%);
    padding-top: 40px;
    padding-bottom: 70px;
}

.hero-content-split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.hero-text-block {
    flex: 0 0 50%;
    max-width: 50%;
}

.hero-image-block {
    flex: 0 0 45%;
    max-width: 45%;
    display: flex;
    justify-content: flex-end;
}

.kaznu-title {
    color: #006ce6;
    font-weight: 800;
    font-size: 3.8rem;
    margin-bottom: 1.8rem;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.kaznu-text {
    color: #333;
    font-size: 1.35rem;
    line-height: 1.6;
    text-align: justify;
}

.hero-image-pill {
    width: 100%;
    height: auto;
    max-height: 380px;
    object-fit: cover;

    /* --- Асимметричное скругление (Органическая форма) --- */
    border-radius: 50% 20% 50% 20%;

    border: 6px solid #ffffff;
    box-shadow: 0 18px 45px rgba(0, 108, 230, 0.12);
    transition: box-shadow 0.4s ease; /* Убрали transform из transition */
}

/* Эффект при наведении мышки (движение отключено) */
.hero-image-pill:hover {
    /* Меняем только тень, картинка не двигается */
    box-shadow: 0 25px 55px rgba(0, 108, 230, 0.22);
}

/* Адаптация для мобильных устройств */
@media (max-width: 991px) {
    .hero-image-pill {
        max-height: 280px;
        max-width: 95%;
        border-width: 4px;
    }
}
/* =========================================
   2. СОВРЕМЕННЫЙ ДИЗАЙН ВКЛАДОК (ТАБЛЕТКИ)
   ========================================= */
.kaznu-nav-tabs {
    border-bottom: 0;
    display: flex;
    flex-wrap: nowrap !important;
    margin: 0;
    padding: 0;
    width: max-content; /* Разрешаем растянуться за пределы экрана телефона */
    min-width: 100%;
    gap: 8px; /* Расстояние между кнопками */
}

.kaznu-nav-tabs .nav-item {
    flex: 0 0 auto; /* ЗАПРЕЩАЕМ сжиматься на телефоне */
    display: flex;
}

/* ЭФФЕКТ ПРИ НАВЕДЕНИИ МЫШКОЙ */
.kaznu-nav-tabs .nav-link:hover {
    background-color: #e2e8f0 !important;
    color: #006ce6 !important;
}

/* ЯРКОЕ ВЫДЕЛЕНИЕ АКТИВНОЙ (ВЫБРАННОЙ) ВКЛАДКИ */
.kaznu-nav-tabs .nav-link.active,
.kaznu-nav-tabs .nav-item.show .nav-link {
    color: #ffffff !important; /* Белый текст */
    background-color: #006ce6 !important; /* Ярко-синий фон */
    box-shadow: 0 4px 12px rgba(0, 108, 230, 0.4) !important; /* Красивая синяя тень */
    font-weight: 700 !important; /* Жирный шрифт */
    border-radius: 40px !important;
}

.kaznu-nav-tabs .nav-link {
    width: 100%;
    color: #6c757d;
    border: none !important;
    border-radius: 40px !important;
    padding: 10px 20px; /* Возвращаем нормальные отступы внутри кнопки */
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap !important; /* На телефоне текст строго в одну строчку */
    line-height: 1.15;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.3s ease;
}
/* =========================================
   3. КАРТОЧКИ И КОНТЕНТ
   ========================================= */
.speaker-card {
    border: 1px solid #eaeaea;
    border-radius: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.speaker-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08) !important;
}

/* Фикс для тегов <p> от CKEditor внутри карточек спикеров */
.speaker-card h5 p,
.speaker-card .text-secondary p {
    margin-bottom: 0 !important;
}

.section-card {
    border: 1px solid #eaeaea;
    border-left: 5px solid #006ce6;
    border-radius: 8px;
}

/* =========================================
   4. СУПЕР СЫРҒЫТПА (ГОРИЗОНТАЛЬДЫ СКРОЛЛ)
   ========================================= */
.scroll-area-wrapper {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
    margin-bottom: 20px;
}

.scroll-area-content {
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex-grow: 1;
}

.scroll-area-content::-webkit-scrollbar {
    display: none;
}

.scroll-arrow-btn {
    background: #ffffff;
    border: 1px solid #dee2e6;
    color: #006ce6;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    flex-shrink: 0;
    transition: all 0.2s;
}

.scroll-arrow-btn:active {
    background: #f8f9fa;
    transform: scale(0.95);
}

.scroll-arrow-left { margin-right: 10px; }
.scroll-arrow-right { margin-left: 10px; }

/* =========================================
   5. КОНКУРСЫ (Solveathon стиль)
   ========================================= */
.comp-badge {
    background: #FAEEDA;
    color: #633806;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.comp-file-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 12px 14px;
    border: 1px solid #eaeaea;
    text-decoration: none !important;
    transition: all 0.2s ease;
    margin-bottom: 10px;
}

.comp-file-item:hover {
    border-color: #006ce6;
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 108, 230, 0.08);
}

.comp-file-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.2rem;
}

.comp-file-item:nth-child(1n) .comp-file-icon { background: #E6F1FB; color: #185FA5; }
.comp-file-item:nth-child(2n) .comp-file-icon { background: #EAF3DE; color: #3B6D11; }
.comp-file-item:nth-child(3n) .comp-file-icon { background: #EEEDFE; color: #534AB7; }

.comp-file-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #212529;
    margin: 0 0 2px 0;
    line-height: 1.2;
}

.comp-file-sub {
    font-size: 0.8rem;
    color: #6c757d;
    margin: 0;
}

.comp-file-arrow {
    margin-left: auto;
    color: #a0aab5;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 4px;
}

.comp-reg-btn {
    display: block;
    width: 100%;
    padding: 12px;
    text-align: center;
    background: #ffffff;
    border: 1px solid #cce3fe;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #006ce6;
    text-decoration: none;
    transition: all 0.2s ease;
}

.comp-reg-btn:hover {
    background: #f0f7ff;
    color: #0056b3;
}

/* =========================================
   6. МОБИЛЬНАЯ АДАПТАЦИЯ
   ========================================= */
@media (min-width: 992px) {
    .scroll-arrow-btn {
        display: none !important;
    }
    .scroll-arrow-left { margin-right: 0; }
    .scroll-arrow-right { margin-left: 0; }

    /* ВОТ ЭТО ПРАВИЛО СОЖМЕТ ИХ НА ПК */
    .kaznu-nav-tabs {
        width: 100%; /* Жестко в ширину экрана */
    }
    .kaznu-nav-tabs .nav-item {
        flex: 1 1 0; /* Делим место поровну */
    }
    .kaznu-nav-tabs .nav-link {
        padding: 10px 4px;
        white-space: normal !important; /* Разрешаем перенос текста в 2 строки на ПК */
    }
}

@media (max-width: 991px) {
    .hero-content-split {
        flex-direction: column;
    }
    .hero-text-block, .hero-image-block {
        flex: 0 0 100%;
        max-width: 100%;
        justify-content: center;
        text-align: center;
        margin-bottom: 0 !important;
    }
    .kaznu-title {
        font-size: 2.8rem;
        text-align: center;
    }
    .kaznu-text {
        text-align: center;
    }
    .hero-image-block {
        margin-top: 40px;
    }
    .hero-image-pill {
        max-height: 280px !important;
        max-width: 90%;
        margin: 0 auto !important;
        display: block;
    }
    .year-nav-container {
        justify-content: center;
        width: 100%;
    }
    .scroll-area-wrapper {
        justify-content: center;
    }
}
