main > .container {
    padding: 70px 15px 20px;
}

.footer {
    background-color: #f5f5f5;
    font-size: .9em;
    height: 60px;
}

.footer > .container {
    padding-right: 15px;
    padding-left: 15px;
}

.not-set {
    color: #c55;
    font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    content: '';
    left: 3px;
    display: inline-block;
    width: 0;
    height: 0;
    border: solid 5px transparent;
    margin: 4px 4px 2px 4px;
    background: transparent;
}

a.asc:after {
    border-bottom: solid 7px #212529;
    border-top-width: 0;
}

a.desc:after {
    border-top: solid 7px #212529;
    border-bottom-width: 0;
}

.grid-view th {
    white-space: nowrap;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

/* align the logout "link" (button in form) of the navbar */
.nav li > form > button.logout {
    padding-top: 7px;
    color: rgba(255, 255, 255, 0.5);
}

@media(max-width:767px) {
    .nav li > form > button.logout {
        display:block;
        text-align: left;
        width: 100%;
        padding: 10px 0;
    }
}

.nav > li > form > button.logout:focus,
.nav > li > form > button.logout:hover {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.75);
}

.nav > li > form > button.logout:focus {
    outline: none;
}

.form-group {
    margin-bottom: 1rem;
}


/* ===========My Style=============== */

.navbar-transparent {
    background-color: transparent;
    transition: all 0.3s ease;
}

.navbar-scrolled {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* (опционально) меняем цвет текста */
.navbar-transparent .nav-link {
    color: #fff;
}

.navbar-scrolled .nav-link {
    color: #000;
}


/********************** */

.hero-section {
    min-height: 70vh;
    background:
            linear-gradient(rgb(41 74 112), rgb(64 131 209));
    /*
    background:
            linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.1)),
            url('https://www.kstu.kz/wp-content/uploads/2017/11/slider1-1024x480.jpg') center/cover no-repeat;
    */
}

.hero-section::before {
    /*
    content: "";
    position: absolute;
    inset: 0;
    /*backdrop-filter: blur(6px);*/
}


.custom-img {
    width: 300px;
    height: 375px;
    object-fit: cover; /* Обрезает картинку, чтобы вписать в квадрат */
}

@media (max-width: 992px) {
    .custom-img {
        width: 300px;
        height: 375px;
        object-fit: cover; /* Обрезает картинку, чтобы вписать в квадрат */
    }
}

/* Карточка с фото */
.profile-card {
    border-radius: 20px;
    overflow: hidden;
    border: 4px solid rgba(255,255,255,0.6);
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}

/* Floating блок */
.office-card {
    position: absolute;
    bottom: 30px;
    left: -30px;

    background: #fff;
    padding: 15px 18px;
    border-radius: 12px;
    max-width: 240px;
}

/* Иконка */
.icon-box {
    width: 40px;
    height: 40px;
    background: #f5f5f5;
    border-radius: 10px;

    display: flex;
    align-items: center;
    justify-content: center;
}

/* Адаптив */
@media (max-width: 992px) {
    .office-card {
        left: 10px;
        bottom: -20px;
    }
}

/* ----------------- */

/* фон */
.about-section {
    background: #f6f7f9;
}

/* заголовок */
.about-title {
    font-weight: 700;
    font-size: 40px;
    color: #0f172a;
}

/* линия под заголовком */
.title-line {
    width: 50px;
    height: 4px;
    background: #c07a2c;
    border-radius: 2px;
}

/* текст */
.about-text {
    color: #475569;
    line-height: 1.8;
    font-size: 16px;
}

/* карточка */
.research-card {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* заголовок карточки */
.card-title {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* вертикальная полоска */
.accent-bar {
    width: 6px;
    height: 18px;
    background: #c07a2c;
    border-radius: 3px;
}

/* теги */
.research-badge {
    background: #eef2f7;
    color: #1e293b;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
}

.research-badge {
    transition: 0.2s;
}
.research-badge:hover {
    background: #dbeafe;
}

/* ----- TimeLine ----------*/

/* фон */
.education-section {
    background: #eff3f6;
}

/* заголовок */
.edu-title {
    font-size: 40px;
    font-weight: 700;
    color: #0f172a;
}

/* линия под заголовком */
.title-line {
    width: 50px;
    height: 4px;
    background: #c07a2c;
    margin-top: 10px;
}

/* timeline контейнер */
.timeline {
    position: relative;
    margin-top: 50px;
}

/* центральная линия */
.timeline::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    width: 2px;
    height: 100%;
    background: #d1d5db;
    transform: translateX(-50%);
}

/* элемент */
.timeline-item1 {
    position: relative;
    width: 50%;
    padding: 20px 40px;
}

/* левая сторона */
.timeline-item1.left {
    left: 0;
    text-align: right;
}

/* правая сторона */
.timeline-item.right {
    left: 50%;
}

/* точка */
.timeline-item1::before {
    content: ""; /* graduation cap */
    font-family: "Bootstrap Icons";
    position: absolute;
    top: 70px;
    right: -14px;

    width: 28px;
    height: 28px;
    background: #1f2937;
    color: #fff;
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

/* корректировка для правой */
.timeline-item1.right::before {
    left: -14px;
}

/* карточка */
.timeline-content1 {
    background: #fff;
    padding: 20px;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* год */
.year {
    color: #c07a2c;
    font-weight: 600;
    font-size: 14px;
}

/* текст */
.timeline-content1 h5 {
    margin-top: 5px;
    font-weight: 600;
}

.timeline-content1 p {
    margin: 0;
    color: #6b7280;
}

/* 📱 адаптив */
@media (max-width: 768px) {

    .timeline::before {
        left: 10px;
    }

    .timeline-item1 {
        width: 100%;
        padding-left: 40px;
        padding-right: 15px;
        text-align: left;
    }

    .timeline-item1.left,
    .timeline-item1.right {
        left: 0;
    }

    .timeline-item1::before {
        left: -4px;
        right: auto;
    }
}

.text-truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Change this number for more lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-hover-advanced {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.card-hover-advanced:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
    border-color: #0d6efd;
}

.card-hover-border {
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.card-hover-border::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 0;
    background: #0d6efd;
    transition: width 0.3s ease;
}

.card-hover-border:hover::after {
    width: 100%;
}

.teacher-imgs {
    width: auto;
    height: 25px !important;
    border-radius: 0;
}
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Фиксируем 3 строки */
    -webkit-box-orient: vertical;
    overflow: hidden; /* Скрываем то, что не поместилось */
}