/*
Theme Name: ЮУГК Колледж
Theme URI: https://uugk.ru
Author: Your Name
Author URI: https: //uugk.ru
Description: Тема для сайта Южно-Уральского государственного колледжа на основе HTML/CSS макета.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: uugk
*/
@font-face {
    font-family: "ActayWide";
    src: url(./fonts/ActayWide.otf) format("truetype");
    font-style: normal;
    font-weight: bold;
}

body {
    padding-top: 80px;
    /* Высота навигации */
    background-image: url(./images/line.png);
    background-position-y: top;
    background-repeat: no-repeat;
    background-size: 100%;
    min-height: 100%
}


h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: ActayWide, sans-serif;
}

/* Основные стили для контента записей и страниц */
.article {
    
    margin: 0 auto;
    padding: 0 20px;
}

.post-content {
    line-height: 1.7;
    color: #2d3748;
    font-size: 1.1rem;
}

.post-content p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.post-content a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 2px solid rgba(59, 130, 246, 0.3);
}

.post-content a:hover {
    color: #2563eb;
    border-bottom-color: #2563eb;
}

/* Заголовки записей/страниц */
.article h1 {
    font-size: 2.5rem;
    color: #1a202c;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.article h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #10b981);
    border-radius: 2px;
}

.article h2 {
    font-size: 2rem;
    color: #2d3748;
    margin: 2rem 0 1rem 0;
    padding-left: 1rem;
    border-left: 4px solid #3b82f6;
}

.article h3 {
    font-size: 1.5rem;
    color: #4a5568;
    margin: 1.5rem 0 0.75rem 0;
}

.article h4 {
    font-size: 1.25rem;
    color: #718096;
    margin: 1.25rem 0 0.5rem 0;
}

/* Мета-информация */
/* Мета-информация */
.post-meta {
    color: #718096;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    padding: 0.5rem 0;
    background: transparent;
    border-radius: 0;
    border-left: none;
    display: flex;
    align-items: center;
}

.post-meta i {
    margin-right: 0.5rem;
    color: #a0aec0;
}

.post-meta .category {
    display: none;
    /* Скрываем категорию */
}

/* Теги */
.post-tags {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 2px solid #e2e8f0;
}

.post-tags .badge {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.post-tags .badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Хлебные крошки */
.breadcrumb {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    min-height: 50px;
}

.breadcrumb-item {
    font-size: 0.95rem;
    color: #718096;
    display: flex;
    align-items: center;
    line-height: 1;
}

.breadcrumb-item a {
    color: #4a5568;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    /* Равномерный отступ между иконкой и текстом */
}

.breadcrumb-item a:hover {
    color: #3b82f6;
}

.breadcrumb-item.active {
    color: #2d3748;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.breadcrumb-item+.breadcrumb-item::before {
    content: "›";
    color: #a0aec0;
    font-size: 1.2rem;
    padding: 0 0.75rem;
    /* Увеличил отступ для равномерности */
    display: flex;
    align-items: center;
    height: 100%;
    line-height: 1;
    margin: 0;
}

/* Иконки в хлебных крошках */
.breadcrumb-item i {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    margin: 0;
    /* Убрал отступы у иконок */
}

/* Убираем лишние отступы у всех элементов */
.breadcrumb-item:first-child a {
    margin-right: 0;
}

.breadcrumb-item:not(:first-child) {
    margin-left: 0;
}

/* Адаптивность */
@media (max-width: 768px) {
    .breadcrumb {
        padding: 0.75rem 1rem;
        flex-wrap: wrap;
        gap: 0.25rem;
    }

    .breadcrumb-item+.breadcrumb-item::before {
        padding: 0 0.5rem;
        /* Сохраняем равномерный отступ на мобильных */
    }

    .breadcrumb-item a {
        gap: 0.375rem;
        /* Немного уменьшаем отступ на мобильных */
    }
}

/* Темная тема */
@media (prefers-color-scheme: dark) {
    .breadcrumb {
        background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
        border-color: #4a5568;
    }

    .breadcrumb-item a {
        color: #e2e8f0;
    }

    .breadcrumb-item.active {
        color: #f7fafc;
    }

    .breadcrumb-item+.breadcrumb-item::before {
        color: #cbd5e0;
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .article {
        padding: 0 15px;
    }

    .article h1 {
        font-size: 2rem;
        padding-bottom: 0.75rem;
    }

    .article h2 {
        font-size: 1.75rem;
    }

    .article h3 {
        font-size: 1.35rem;
    }

    .post-content {
        font-size: 1rem;
    }


}

/* Темная тема */
@media (prefers-color-scheme: dark) {
    .post-content {
        color: #e2e8f0;
    }

    .article h1 {
        color: #f7fafc;
    }

    .article h2 {
        color: #e2e8f0;
    }

    .article h3 {
        color: #cbd5e0;
    }

    .post-meta {
        background: #2d3748;
        border-left-color: #4a5568;
        color: #cbd5e0;
    }

    .breadcrumb {
        background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
        border-color: #4a5568;
    }

    .breadcrumb-item a {
        color: #e2e8f0;
    }

    .breadcrumb-item.active {
        color: #f7fafc;
    }
}

.menu {
    box-shadow: 0 12px 20px 0 rgba(15, 8, 49, .12);
    font-size: 17px;
    background: #fff !important;
}

.navbar-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.navbar-nav .nav-item {
    margin: 0 5px;
}

.navbar-nav .nav-link {
    position: relative;
    padding: 0.75rem 1rem !important;
    transition: all 0.3s ease;
    color: #212529 !important;
    font-weight: 500;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #0066cc, #004499);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
    width: 80%;
}

.navbar-nav .nav-link:hover {
    color: #0066cc !important;
    transform: translateY(-1px);
}

/* Firefox-specific fixes */
@-moz-document url-prefix() {
    .navbar {
        background: #fff !important;
    }

    .nav-link {
        font-weight: 500 !important;
        text-shadow: none !important;
    }

    .navbar-brand {
        font-weight: 700 !important;
    }

    /* Улучшение рендеринга текста в Firefox */
    body {
        text-rendering: optimizeSpeed;
        -moz-osx-font-smoothing: grayscale;
    }
}

@font-face {
    font-family: "ActayWide";
    src: url(./fonts/ActayWide.otf) format("opentype");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "ActayWide", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: 700;
    text-rendering: optimizeLegibility;
}

@media screen and (-webkit-min-device-pixel-ratio:0) {

    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        font-weight: 680;
    }
}

.logo {
    font-family: ActayWide, sans-serif;
    font-weight: 700;
}

html,
body {
    height: 100%;
}

body {

    background-image: url(./images/line.png);
    background-position-y: top;
    background-repeat: no-repeat;
    background-size: 100%;
}

.video-promo {
    /*width: 100%;*/
    height: 406px;
    /*background-color: #3e74f2;*/
    color: white;
    border-radius: 20px;
    overflow: hidden;
}
.video-promo video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Это ключевое свойство, которое заставляет видео заполнять блок */
}

.playBtn {
    border: 1px solid white;
    padding: 10px 45px 10px 45px;
    border-radius: 20px;
    margin-right: 30px;
    font-size: 20px;
}

/* Базовые стили для всех браузеров */
.navbar-nav .nav-link {
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: geometricPrecision;
    /* Более равномерное отображение */
}

.navbar-brand {
    font-weight: 700;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: geometricPrecision;
}

/* Легкая корректировка для WebKit браузеров */
@media screen and (-webkit-min-device-pixel-ratio:0) {
    .navbar-nav .nav-link {
        font-weight: 490;
        /* Чуть легче для Chrome/Safari */
    }

    .navbar-brand {
        font-weight: 690;
    }
}

.right-slogan {

    height: 200px;

}

.firstBlock {
    margin: 50px auto 100px auto;
}

.nav-link {
    font-weight: bold;
}

.uugk {
    font-family: ActayWide, sans-serif;
}

.future {
    font-size: 18px;
    font-weight: bold;
}

/*Стили для блока слоган, видео, наши программы*/
.open-doors {
    border: 1px solid #3e74f2;
    padding-left: 10px;
    padding-right: 10px;
    border-radius: 25px;
}

.row-programms {
    padding: 15px;
}

.programms {
    background-color: #3e74f2;
    color: white;
    padding: 15px;
    border-radius: 20px;
    margin-right: 25px;
}

.img-program {
    max-width: 200px;
}

.arrow {
    float: right;
}

.round-uugk {
    border: 2px solid #3e74f2;
    border-radius: 50%;
    padding: 31px;
    height: 250px;
    width: 250px;
}

.prof {
    margin-top: 100px;
    margin-bottom: 100px;
}

.prof-1 {
    background-color: #3e74f2;
    color: white;
    padding: 15px 15px 30px 15px;
    border-radius: 20px;
}

/******************/
/*Блок с поворотным текстом*/
/*Креатив и бизнес*/
.kreativ {
    border: 1px solid #ffffff;
    padding: 5px 25px 5px 25px;
    border-radius: 20px;
    font-size: 20px;
    margin-right: 50px;
    font-weight: 500;
}

.buisness {
    background-color: white;
    color: #3e74f2;
    padding: 5px 25px 5px 25px;
    border-radius: 20px;
    font-size: 20px;
    margin-right: 20px;
    font-weight: 500;
}

.kreative-1 {
    margin-top: 50px;
    margin-left: 20px;
}

.kreative-1 a {
    color: #fff;
    text-decoration: none;
}

.business-1 {
    text-align: center;
    margin-left: 120px;
    margin-top: -15px;
}

.business-1 a {
    color: #3e74f2;
    text-decoration: none;
}

/*Движение первых и профи*/
.business-2 {
    text-align: right;
}

.business-2 a {
    color: #fff;
    text-decoration: none;
}

.kreative-2 {
    margin-top: 50px;
}

.kreative-2 a {
    color: #3e74f2;
    text-decoration: none;
}

.rotate {
    transform: rotate(-10deg);

}

/*******/
/*Стили для блока широкий выбор профессий*/
.trud {
    padding-left: 15px;
    padding-bottom: 15px;
}

.procent {
    background-color: #ffffff;
    padding: 15px 15px 30px 15px;
    border-radius: 20px;
    height: 178px;
}

.procent h2 {
    font-size: 50px;
}

.procent p {
    font-size: 20px;
    font-weight: 500;
}

.priem {
    background-color: #ffffff;
    padding: 15px 15px 30px 15px;
    border-radius: 20px;
    height: 178px;
}

.priem p {
    margin-left: 70px;
    font-size: 17px;
    font-weight: 500;
}

.priem img {
    float: left;
}

.prog-obuch {
    background-color: #3e74f2;
    color: #ffffff;
    padding: 15px 15px 30px 15px;
    border-radius: 20px;
    height: 178px;
}

.prog-obuch h2 {
    font-size: 50px;
}

.stash {
    background-color: #7d9ee9;
    background-blend-mode: multiply;
    background-image: url("./images/work.png");
    border-radius: 20px;
    padding: 15px 15px 30px 15px;
    color: #ffffff;
    padding-left: 15px;
    height: 178px;
}

/*Стили для новостного блока*/
.news {
    margin-bottom: 100px;
}

.news-block {
    border-radius: 20px;
}

.news-block a img {
    border-radius: 20px 20px 0 0;
}

/*Стили для блока наши проекты*/
.card-title a {
    color: #212529;
    text-decoration: none;
    transition: color .15s ease-in-out,
        background-color .15s ease-in-out,
        border-color .15s ease-in-out,
        box-shadow .15s ease-in-out;
}

.card-title a:hover {
    color: gray;
    transition: color .15s ease-in-out,
        background-color .15s ease-in-out,
        border-color .15s ease-in-out,
        box-shadow .15s ease-in-out;
}

.projects {
    border-radius: 20px;
}

.projects-margin {
    margin-bottom: 100px;
}

/*Стили для блока Специальности ККИ*/
.spec-kki {
    border-radius: 20px;
}

.spec-kki a img {
    border-radius: 20px 20px 0 0;
}

/*Стили для блока Стартует новый набор*/
.new-nabor {
    margin-top: 100px;
}

.all-programms {
    text-decoration: none;
    color: #3e74f2;
    border: 1px solid #3e74f2;
    padding: 10px 15px 10px 15px;
    border-radius: 20px;
}

.all-programms:hover {
    background-color: #3e74f2;
    color: white;
    transition: color .15s ease-in-out,
        background-color .15s ease-in-out,
        border-color .15s ease-in-out,
        box-shadow .15s ease-in-out;
}

.new-spec {
    border-radius: 25px;
}

.new-spec a img {
    border-radius: 20px 20px 0 0;
}

/*Стили для блока Наши выпускники*/
.vipusk {
    margin-top: 100px;
    margin-bottom: 100px;
}

.students {
    background-color: #4176EF;
    color: #ffffff;
    border-radius: 25px;
    padding: 30px !important;
}

.students h3 {
    font-size: 21px;
}

.students img {
    float: left;
    margin-right: 20px;
}

/*Стили для кнопки Наверх*/
#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 50px;
    display: none;
    z-index: 99;
}

/*Галерея*/
.gallery-container {
    padding: 2rem 0;
}

.gallery-title {
    position: relative;
    margin-bottom: 3rem;
    padding-bottom: 1rem;
}

.gallery-title:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #9b59b6);
}

.gallery-item {
    margin-bottom: 1.5rem;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.gallery-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.1);
}

.img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(52, 152, 219, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .img-overlay {
    opacity: 1;
}

.img-title {
    color: white;
    font-weight: bold;
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.img-icon {
    color: white;
    font-size: 1.5rem;
    margin: 0 0.5rem;
    transition: transform 0.3s ease;
}

.img-icon:hover {
    transform: scale(1.2);
}

/* Стили для темного режима */
/* Принудительный тёмный режим для всех элементов */
body.dark-mode,
body.dark-mode * {
    background-color: #121212 !important;
    color: #e0e0e0 !important;
    border-color: #333 !important;
}

/* Специальные стили для Bootstrap компонентов */
body.dark-mode .navbar {
    background-color: #1a1a1a !important;
    border-bottom: 1px solid #333 !important;
}

body.dark-mode .card {
    background-color: #1e1e1e !important;
    border-color: #333 !important;
}

body.dark-mode .form-control,
body.dark-mode .form-select {
    background-color: #2d2d2d !important;
    color: #f8f9fa !important;
    border-color: #444 !important;
}

body.dark-mode .btn-outline-primary {
    color: #e0e0e0 !important;
    border-color: #e0e0e0 !important;
}

body.dark-mode .table {
    color: #e0e0e0 !important;
}

body.dark-mode .table th,
body.dark-mode .table td {
    border-color: #444 !important;
}

body.dark-mode .dropdown-menu {
    background-color: #2d2d2d !important;
    border-color: #444 !important;
}

body.dark-mode .dropdown-item {
    color: #f8f9fa !important;
}

body.dark-mode .dropdown-item:hover {
    background-color: #3d3d3d !important;
}

/*Для слабовидящих*/
/* Стили для режима доступности */
.accessibility-panel {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    z-index: 1000;
    background: #fff;
    border-radius: 5px 0 0 5px;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
}

.accessibility-btn {
    display: block;
    width: 50px;
    height: 50px;
    text-align: center;
    line-height: 50px;
    color: #333;
    font-size: 1.2rem;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: all 0.3s;
}

.accessibility-btn:hover {
    background: #f8f9fa;
}

.accessibility-btn:last-child {
    border-bottom: none;
}

/* Режимы доступности */
.text-large {
    font-size: 1.25rem !important;
}

.text-extra-large {
    font-size: 1.5rem !important;
}

.high-contrast {
    background: #000 !important;
    color: #fff !important;
}

.high-contrast * {
    background: #000 !important;
    color: #fff !important;
    border-color: #fff !important;
}

.light-background {
    background: #fff !important;
    color: #000 !important;
}

.light-background * {
    background: #fff !important;
    color: #000 !important;
    border-color: #000 !important;
}

.blue-theme {
    background: #e6f2ff !important;
    color: #003366 !important;
}

.blue-theme * {
    background: #e6f2ff !important;
    color: #003366 !important;
    border-color: #003366 !important;
}

/* Специальные стили для Bootstrap компонентов */
.high-contrast .navbar,
.light-background .navbar,
.blue-theme .navbar {
    border-bottom: 1px solid !important;
}

.high-contrast .btn,
.light-background .btn,
.blue-theme .btn {
    border-width: 2px !important;
}

/*Стили для подвала сайта*/
.footer {
    background-color: #3e74f2;
    padding: 50px;
    color: #fff;
    border-radius: 25px 25px 0 0;
}

.footer img {
    margin-right: 10px;
}

.footer ul li {
    list-style: none;
}

.footer ul li a {
    color: #fff;
    text-decoration: none;
}

.footer ul li a:hover {
    text-decoration: underline;
}

.footer-title {
    font-size: 28px;
}

.rights {
    margin-top: 90px;
    margin-bottom: 0;
}

/*Стили для отдельной записи*/
.article {
    background-color: #fff;
    min-height: 100%;
    margin-top: 100px;
    margin-bottom: 100px;
    border-radius: 25px;
    padding: 50px;
    border: 1px solid #e0e0e0;
}


/* Новый стиль для блока новостей */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-header h2:after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #3e74f2;
}

.section-header p {
    color: #6c757d;
    font-size: 1.1rem;
}

.news-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.news-img-container {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.news-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-img {
    transform: scale(1.05);
}

.news-date {
    position: absolute;
    top: 15px;
    right: 15px;
    color: white;
    width: 60px;
    height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    line-height: 1;
    z-index: 2;
    text-align: center;
    border-radius: 8px;
    overflow: hidden;
}

.date-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(2px);
    z-index: -1;
}

.news-day {
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 1;
    margin-top: 5px;
}

.news-month {
    font-size: 0.8rem;
    text-transform: lowercase;
    margin: 2px 0;
}

.news-year {
    font-size: 0.6rem;
    opacity: 0.8;
    margin-bottom: 5px;
}


/* Улучшение видимости в темном режиме */
body.dark-mode .date-bg {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

body.dark-mode .news-date {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.news-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-tag {
    display: inline-block;
    background: #f0f5ff;
    color: #3e74f2;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.news-title {
    font-size: 1.25rem;
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.news-title a {
    color: #212529;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-title a:hover {
    color: #3e74f2;
}

.news-excerpt {
    color: #6c757d;
    margin-bottom: 1.2rem;
    flex-grow: 1;
}

.news-footer {
    margin-top: auto;
}

.news-link {
    color: #3e74f2;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.news-link i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.news-link:hover {
    color: #2c5ac4;
}

.news-link:hover i {
    transform: translateX(3px);
}

/* Темный режим для новостей */
body.dark-mode .news-card {
    background: #1e1e1e;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

body.dark-mode .news-title a {
    color: #e0e0e0;
}

body.dark-mode .news-excerpt {
    color: #a0a0a0;
}

body.dark-mode .news-tag {
    background: #2a3a5a;
    color: #e0e0e0;
}

body.dark-mode .section-header p {
    color: #a0a0a0;
}

/* Стили для блока специальностей */
.specialties {
    margin: 80px auto;
    padding: 0 15px;
}

.section-header h2 {
    font-size: 2.2rem;
    color: #2c3e50;
    padding-bottom: 10px;
}

.section-header h2:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #3e74f2;
}

.specialty-item {
    transition: all 0.3s ease;
    height: 100%;
    text-align: center;
}

.specialty-img-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
    height: 180px;
}

.specialty-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.specialty-item:hover .specialty-img {
    transform: scale(1.05);
}

.specialty-name {
    font-size: 1.1rem;
    color: #2c3e50;
    margin: 0;
    padding: 0 10px;
    transition: color 0.3s ease;
}

.specialty-item:hover .specialty-name {
    color: #3e74f2;
}

/* Темный режим */
body.dark-mode .section-header h2,
body.dark-mode .specialty-name {
    color: #f8f9fa;
}

body.dark-mode .specialty-img-wrapper {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Адаптация для мобильных */
@media (max-width: 767px) {
    .specialty-img-wrapper {
        height: 150px;
    }

    .specialty-name {
        font-size: 1rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }
}


/* Общие стили для лучшей совместимости */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Стили для кнопки поиска */
.search-btn {
    background: #3e74f2;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.3);
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.4);
    background: #3e74f2;
}

.search-btn:active {
    transform: translateY(0);
}

/* Стили для overlay поиска */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-overlay-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.search-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-close:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.search-container {
    max-width: 600px;
    width: 90%;
    text-align: center;
    animation: searchFadeIn 0.5s ease;
}

@keyframes searchFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-title {
    color: white;
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
    letter-spacing: 1px;
}

.search-form {
    margin-bottom: 3rem;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 8px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.search-input-wrapper:focus-within {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 30px rgba(0, 102, 204, 0.3);
}

.search-input {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    padding: 15px 25px;
    width: 100%;
    outline: none;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-submit-btn {
    background: linear-gradient(135deg, #0066cc, #004499);
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
    margin-right: 5px;
}

.search-submit-btn:hover {
    transform: scale(1.1);
    background: linear-gradient(135deg, #0077dd, #0055aa);
}

/* Популярные запросы */
.popular-searches {
    text-align: center;
}

.popular-title {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 300;
}

.popular-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.popular-tag {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
}

.popular-tag:hover {
    background: rgba(0, 102, 204, 0.3);
    border-color: rgba(0, 102, 204, 0.5);
    transform: translateY(-2px);
}

/* Адаптивность */
@media (max-width: 768px) {
    .search-title {
        font-size: 2rem;
    }

    .search-close {
        top: 20px;
        right: 20px;
    }

    .popular-tags {
        flex-direction: column;
        align-items: center;
    }

    .popular-tag {
        width: fit-content;
    }
}

/* Улучшения для навигации */
.navbar-nav .nav-link {
    position: relative;
    padding: 0.75rem 1rem !important;
    transition: all 0.3s ease;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #0066cc, #004499);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
    width: 80%;
}

.navbar-nav .nav-link:hover {
    color: #0066cc !important;
    transform: translateY(-1px);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-toggler {
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.navbar-toggler:hover {
    background: rgba(0, 102, 204, 0.1);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.2);
}

/* Медиазапросы для более точной настройки */
@media (max-width: 1399px) {
    .firstBlock {
        margin-top: 200px;
    }

    .round-uugk {
        border: none;
        border-radius: 50%;
        padding: 31px;
        height: 200px;
        width: 200px;
    }

    .round-uugk img {
        height: 200px;
        width: 200px;
    }

    .secondBlock {
        margin-top: 200px;
    }
}

@media (max-width: 991px) {
    .round-uugk {
        border: none;
        border-radius: 50%;
        padding: 31px;
        height: 150px;
        width: 150px;
    }

    .accessibility-panel {
        display: none;
    }

    .programms {
        margin-right: 0;
    }

    .programms h2 {
        font-size: 22px;
    }

    .round-uugk img {
        height: 150px;
        width: 150px;
    }

    .stash h2 {
        font-size: 27px;
    }

    .buisness {
        font-size: 15px;
    }

    .kreativ {
        font-size: 15px;
    }

    .priem {
        height: 275px;
    }

    .procent {
        height: 275px;
    }
}

@media (max-width: 767px) {
    .uugk {
        margin-top: 50px;
    }

    .secondBlock {
        margin-top: 250px;
    }

    .prof-1 {
        margin-bottom: 10px;
    }
}

/* Стили для блока проектов */
.projects-section {
    margin: 80px auto;
    padding: 0 15px;
}

.project-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(62, 116, 242, 0.15);
}

.project-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-card:hover .project-img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 2;
}

.project-badge {
    background: linear-gradient(135deg, #3e74f2, #2c5ac4);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(62, 116, 242, 0.3);
}

.project-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-family: "ActayWide", sans-serif;
}

.project-description {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.project-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1.5rem;
}

.feature-tag {
    background: #f8f9fa;
    color: #3e74f2;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.feature-tag:hover {
    background: #3e74f2;
    color: white;
    transform: translateY(-1px);
}

.project-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #3e74f2;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.project-link:hover {
    color: #2c5ac4;
    transform: translateX(5px);
}

.project-link svg {
    transition: transform 0.3s ease;
}

.project-link:hover svg {
    transform: translateX(3px);
}

.project-stats {
    display: flex;
    gap: 1rem;
}

.stat {
    background: #f8f9fa;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 500;
}

.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    background: linear-gradient(135deg, #3e74f2, #2c5ac4);
    border: none;
    transition: all 0.3s ease;
}

.view-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(62, 116, 242, 0.3);
}

.view-all-btn svg {
    transition: transform 0.3s ease;
}

.view-all-btn:hover svg {
    transform: translateX(5px);
}

/* Темный режим */
body.dark-mode .project-card {
    background: #1e1e1e;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

body.dark-mode .project-title {
    color: #e0e0e0;
}

body.dark-mode .project-description {
    color: #a0a0a0;
}

body.dark-mode .feature-tag {
    background: #2d2d2d;
    border-color: #444;
    color: #3e74f2;
}

body.dark-mode .feature-tag:hover {
    background: #3e74f2;
    color: #fff;
}

body.dark-mode .stat {
    background: #2d2d2d;
    color: #a0a0a0;
}

/* Адаптивность */
@media (max-width: 768px) {
    .project-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .project-stats {
        width: 100%;
        justify-content: space-between;
    }

    .project-image {
        height: 200px;
    }

    .project-content {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .project-features {
        justify-content: center;
    }

    .project-stats {
        flex-direction: column;
        gap: 0.5rem;
    }

    .stat {
        width: 100%;
        text-align: center;
    }
}

/* Стили для блока нового набора */
.new-set-section {
    margin: 80px auto;
    padding: 0 15px;
}

.all-programs-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #3e74f2;
    text-decoration: none;
    font-weight: 600;
    padding: 12px 24px;
    border: 2px solid #3e74f2;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.all-programs-link:hover {
    background: #3e74f2;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(62, 116, 242, 0.3);
}

.all-programs-link svg {
    transition: transform 0.3s ease;
}

.all-programs-link:hover svg {
    transform: translateX(3px);
}

.specialty-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    height: 100%;
}

.specialty-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(62, 116, 242, 0.15);
}

.specialty-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.specialty-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.specialty-card:hover .specialty-img {
    transform: scale(1.08);
}

.specialty-overlay {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    z-index: 2;
}

.specialty-badge {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.specialty-wishlist {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.specialty-wishlist:hover {
    background: #3e74f2;
    color: white;
    transform: scale(1.1);
}

.specialty-content {
    padding: 1.5rem;
}

.specialty-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    font-family: "ActayWide", sans-serif;
}

.specialty-description {
    color: #6c757d;
    line-height: 1.5;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

.specialty-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #5a6c7d;
    font-size: 0.9rem;
}

.detail-item svg {
    color: #3e74f2;
    flex-shrink: 0;
}

.specialty-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.specialty-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #3e74f2, #2c5ac4);
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.specialty-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(62, 116, 242, 0.4);
    color: white;
}

.specialty-btn svg {
    transition: transform 0.3s ease;
}

.specialty-btn:hover svg {
    transform: translateX(3px);
}

.specialty-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    text-align: right;
}

.meta-item {
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 500;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    text-decoration: none;
    padding: 15px 35px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(255, 107, 107, 0.4);
    color: white;
}

.cta-button svg {
    transition: transform 0.3s ease;
}

.cta-button:hover svg {
    transform: translateX(5px);
}

/* Темный режим */
body.dark-mode .specialty-card {
    background: #1e1e1e;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

body.dark-mode .specialty-title {
    color: #e0e0e0;
}

body.dark-mode .specialty-description {
    color: #a0a0a0;
}

body.dark-mode .detail-item {
    color: #b0b0b0;
}

body.dark-mode .specialty-wishlist {
    background: rgba(45, 45, 45, 0.9);
    color: #e0e0e0;
}

body.dark-mode .specialty-wishlist:hover {
    background: #3e74f2;
    color: white;
}

body.dark-mode .meta-item {
    color: #a0a0a0;
}

/* Адаптивность */
@media (max-width: 768px) {
    .specialty-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .specialty-meta {
        text-align: left;
        width: 100%;
    }

    .section-header .row {
        text-align: center;
    }

    .all-programs-link {
        margin-top: 1rem;
    }
}

@media (max-width: 576px) {
    .specialty-content {
        padding: 1.25rem;
    }

    .specialty-title {
        font-size: 1.1rem;
    }

    .specialty-description {
        font-size: 0.9rem;
    }

    .cta-button {
        padding: 12px 25px;
        font-size: 1rem;
    }
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.specialty-card {
    animation: fadeInUp 0.6s ease;
}

.specialty-card:nth-child(2) {
    animation-delay: 0.1s;
}

.specialty-card:nth-child(3) {
    animation-delay: 0.2s;
}
/* Стили для страницы поиска */
.search-results-page {
    padding: 2rem 0;
}

.search-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
}

.search-result-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.search-result-card:hover {
    transform: translateY(-2px);
}

.search-result-card .card {
    border-radius: 10px;
    overflow: hidden;
}

.search-result-card mark {
    background: linear-gradient(135deg, #ffd666 0%, #ffb700 100%);
    padding: 0.1rem 0.2rem;
    border-radius: 3px;
}

.search-excerpt {
    color: #6c757d;
    line-height: 1.6;
}

.search-pagination .pagination {
    margin: 0;
}

.search-pagination .page-link {
    border-radius: 8px;
    margin: 0 0.25rem;
    border: 1px solid #dee2e6;
}

.search-pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #3e74f2, #2c5ac4);
    border-color: #3e74f2;
}

/* Стили для сайдбара поиска */
.search-sidebar .widget-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3e74f2;
}

.tag-cloud .badge {
    font-weight: 500;
    transition: all 0.3s ease;
}

.tag-cloud .badge:hover {
    background: linear-gradient(135deg, #3e74f2, #2c5ac4) !important;
    transform: translateY(-1px);
}

.recent-post-item {
    padding: 0.75rem;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.recent-post-item:hover {
    background-color: #f8f9fa;
}

.recent-post-item:not(:last-child) {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 0.75rem;
}

/* Адаптивность */
@media (max-width: 768px) {
    .search-header {
        padding: 1.5rem;
    }

    .search-form-container .input-group {
        flex-direction: column;
    }

    .search-form-container .form-control {
        margin-bottom: 0.5rem;
        border-radius: 0.375rem;
    }

    .search-form-container .btn {
        border-radius: 0.375rem;
    }
}

/* Анимации */
@keyframes searchFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-result-card {
    animation: searchFadeIn 0.5s ease;
}

.search-result-card:nth-child(2) {
    animation-delay: 0.1s;
}

.search-result-card:nth-child(3) {
    animation-delay: 0.2s;
}

/* Темный режим для поиска */
body.dark-mode .search-header {
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
}

body.dark-mode .search-result-card .card {
    background: #2d3748;
    border-color: #4a5568;
}

body.dark-mode .search-excerpt {
    color: #a0aec0;
}

body.dark-mode .recent-post-item:hover {
    background-color: #4a5568;
}

body.dark-mode .tag-cloud .badge {
    background: #4a5568;
}

/* Множественный выбор */
.customize-control-multiple-select select[multiple] {
    height: 150px;
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.customize-control-multiple-select option {
    padding: 5px;
}
/* Стили для шаблона категории */
.post-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

.post-thumbnail {
    overflow: hidden;
}

.post-thumbnail img {
    transition: transform 0.3s ease;
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

/* Стили для специальностей */
.specialty-detail .info-card {
    transition: transform 0.3s ease;
}

.specialty-detail .info-card:hover {
    transform: translateY(-3px);
}

.specialty-sidebar .card {
    transition: transform 0.3s ease;
}

.specialty-sidebar .card:hover {
    transform: translateY(-2px);
}

/* Адаптивность для админ-панели */
@media screen and (max-width: 600px) {
    .navbar {
        position: relative !important;
        top: 0 !important;
    }
}



/* Пагинация */
.pagination .page-link {
    border-radius: 0.375rem;
    margin: 0 0.25rem;
}

.pagination .page-item.active .page-link {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

/*стили для специальностей*/
.specialty-detail {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.specialty-card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.specialty-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.hover-shadow {
    transition: box-shadow 0.2s ease-in-out;
}

.hover-shadow:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.transition-all {
    transition: all 0.2s ease-in-out;
}

.info-card {
    transition: transform 0.2s ease-in-out;
}

.info-card:hover {
    transform: translateY(-2px);
}
/* Скрываем пустые ссылки */
.list-group-item[href="#"] {
    display: none;
}

.list-group-item:empty {
    display: none;
}
/* Стили для плавной прокрутки сайдбара */
.specialty-sidebar {
    transition: transform 0.3s ease-out, top 0.3s ease-out;
    will-change: transform, position;
}

/* Для мобильных устройств делаем анимацию еще плавнее */
@media (max-width: 768px) {
    .specialty-sidebar {
        transition: transform 0.4s ease-out, top 0.4s ease-out;
    }
}

/* Плавная прокрутка для всех якорных ссылок */
html {
    scroll-behavior: smooth;
}

/* Дополнительные стили для улучшения UX */
.specialty-sidebar .card {
    transition: transform 0.2s ease;
}

.specialty-sidebar .card:hover {
    transform: translateY(-2px);
}

.list-group-item-action {
    transition: all 0.2s ease;
}

.list-group-item-action:hover {
    background-color: #f8f9fa;
    transform: translateX(5px);
}

/* Стили для файловых карточек */
.file-attachment-card {
    margin: 20px 0;
}

.file-attachment-card .card {
    border: 1px solid #e9ecef;
    transition: box-shadow 0.3s ease;
}

.file-attachment-card .card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.file-link-card {
    margin: 15px 0;
}

.file-link-card a {
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.file-link-card a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Цвета для разных типов файлов */
.file-link.pdf a {
    border-left: 4px solid #e53e3e;
}

.file-link.doc a {
    border-left: 4px solid #3182ce;
}

.file-link.xls a {
    border-left: 4px solid #38a169;
}

.file-link.ppt a {
    border-left: 4px solid #dd6b20;
}

.file-link.zip a {
    border-left: 4px solid #319795;
}
/* Для отдельных страниц с article */
.article {
    min-height: calc(100vh - 400px);
    /* Немного больше для страниц с контентом */
}
.mt-4 {

}

/* Стили для миниатюр записей */
.post-thumbnail img,
.entry-thumbnail img,
.wp-post-image,
.attachment-post-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Сохраняет пропорции, обрезая изображение */
    object-position: center; /* Центрирует изображение */
}
/* Стили для таблиц */
.post-content .wp-block-table {
    overflow-x: auto;
    margin: 2rem 0;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    background: white;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #e2e8f0;
    padding: 0;
}

.post-content .wp-block-table>table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: white;
    border-radius: 8px;
    margin: 0;
}

.post-content .wp-block-table th {
    color: white;
    font-weight: 600;
    text-align: left;
    padding: 1.25rem 1.5rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid #d6bcfa;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.post-content .wp-block-table td {
    padding: 1.25rem 1.5rem;
    border: 1px solid #e2e8f0;
    color: #4a5568;
    font-size: 1rem;
    line-height: 1.5;
}

/* Убираем двойные границы */
.post-content .wp-block-table th,
.post-content .wp-block-table td {
    border-style: solid;
    border-width: 1px;
}

/* Границы для всей таблицы */
.post-content .wp-block-table>table {
    border: 1px solid #e2e8f0;
}

/* Стили для строк */
.post-content .wp-block-table tbody tr {
    transition: background-color 0.3s ease;
    background: white;
}

.post-content .wp-block-table tbody tr:hover {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
}

/* Чередование строк */
.post-content .wp-block-table tbody tr:nth-child(even) {
    background: #f8fafc;
}

.post-content .wp-block-table tbody tr:nth-child(even):hover {
    background: linear-gradient(135deg, #e6fffa 0%, #b2f5ea 100%);
}

/* Выделение важных ячеек */
.post-content .wp-block-table td.important {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    color: #d97706;
    font-weight: 600;
    border-color: #f59e0b;
}

.post-content .wp-block-table td.important::after {
    content: "⭐";
    margin-left: 0.5rem;
    font-size: 0.9rem;
}

/* Адаптивность таблиц */
@media (max-width: 768px) {
    .post-content .wp-block-table {
        border-radius: 6px;
        margin: 1.5rem 0;
    }

    .post-content .wp-block-table th,
    .post-content .wp-block-table td {
        padding: 1rem;
        font-size: 0.9rem;
    }

    .post-content .wp-block-table>table {
        min-width: 600px;
    }
}

/* Темная тема для таблиц */
@media (prefers-color-scheme: dark) {
    .post-content .wp-block-table {
        background: #2d3748;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
        border-color: #4a5568;
    }

    .post-content .wp-block-table>table {
        background: #2d3748;
        border-color: #4a5568;
    }

    .post-content .wp-block-table th {
        background: linear-gradient(135deg, #4c51bf 0%, #6b46c1 100%);
        border-color: #805ad5;
        color: #e2e8f0;
    }

    .post-content .wp-block-table td {
        border-color: #4a5568;
        color: #e2e8f0;
    }

    .post-content .wp-block-table tbody tr {
        background: #2d3748;
    }

    .post-content .wp-block-table tbody tr:hover {
        background: linear-gradient(135deg, #3c366b 0%, #4c51bf 100%);
    }

    .post-content .wp-block-table tbody tr:nth-child(even) {
        background: #4a5568;
    }

    .post-content .wp-block-table tbody tr:nth-child(even):hover {
        background: linear-gradient(135deg, #4c51bf 0%, #553c9a 100%);
    }

    .post-content .wp-block-table td.important {
        background: linear-gradient(135deg, #744210 0%, #d69e2e 100%);
        color: #faf089;
        border-color: #d69e2e;
    }
}

/* Убираем лишние обертки */
.post-content .wp-block-table .table-container {
    all: unset;
}

/* Градиентный фон при наведении */
.post-content .wp-block-table:hover {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-color: #cbd5e0;
}

.post-content .wp-block-table:hover>table {
    background: transparent;
}
/* Стили для подписи таблицы */
.wp-element-caption {
    display: block;
    text-align: center;
    font-style: italic;
    color: #718096;
    margin-top: 0.75rem;
    font-size: 0.95rem;
    line-height: 1.5;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.wp-element-caption:hover {
    background: linear-gradient(135deg, #e6fffa 0%, #b2f5ea 100%);
    color: #065f46;
    border-color: #b2f5ea;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
}

/* Позиционирование относительно таблицы */
.wp-block-table+.wp-element-caption {
    margin-top: -0.5rem;
    margin-bottom: 2rem;
}

/* Для подписей с ссылками */
.wp-element-caption a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px dashed #667eea;
    transition: all 0.3s ease;
}

.wp-element-caption a:hover {
    color: #5a67d8;
    border-bottom-style: solid;
}

/* Темная тема для подписей */
@media (prefers-color-scheme: dark) {
    .wp-element-caption {
        color: #cbd5e0;
        background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
        border-color: #4a5568;
    }

    .wp-element-caption:hover {
        background: linear-gradient(135deg, #3c366b 0%, #4c51bf 100%);
        color: #e2e8f0;
        border-color: #4c51bf;
    }

    .wp-element-caption a {
        color: #7f9cf5;
        border-bottom-color: #7f9cf5;
    }

    .wp-element-caption a:hover {
        color: #5a67d8;
        border-bottom-color: #5a67d8;
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .wp-element-caption {
        font-size: 0.9rem;
        padding: 0.5rem;
        margin-top: 0.5rem;
    }

    .wp-block-table+.wp-element-caption {
        margin-top: -0.25rem;
        margin-bottom: 1.5rem;
    }
}

/* Специальные стили для разных типов подписей */
.wp-element-caption.center {
    text-align: center;
}

.wp-element-caption.left {
    text-align: left;
}

.wp-element-caption.right {
    text-align: right;
}

.wp-element-caption.small {
    font-size: 0.85rem;
}

.wp-element-caption.large {
    font-size: 1.1rem;
    font-weight: 500;
}

/* Иконка перед подписью */
.wp-element-caption::before {
    content: '📋';
    margin-right: 0.5rem;
    font-size: 0.9em;
    opacity: 0.7;
}

.wp-element-caption:hover::before {
    opacity: 1;
}
/*адаптация под мобильные*/
@media (max-width: 767px) {
    .students img{
        max-width: 180px;
        margin-bottom: 15px;
    }
        .students h3 {
            font-size: 25px;
            
        }
        .students{
            margin-bottom: 30px;
        }
}
@media (max-width: 490px){
    .stash h2{
        font-size: 25px;
    }
        .firstBlock {
            margin-top: 0;
        }
}

@media (max-width: 460px) {
    .stash h2 {
        font-size: 20px;
    }
}


@media (max-width: 448px){
    .secondBlock{
        margin-top: 300px;
    }
    
}
@media (max-width: 434px){
    .all-programms{
        font-size: 15px;
    }
}

@media (max-width: 419px) {
    .priem p{
        font-size: 16px;
    }
}

@media (max-width: 411px){
    .all-programms {
            font-size: 14px;
        }
}
@media (max-width: 410px) {
    .priem p {
        font-size: 15px;
    }
}
@media (max-width: 405px) {
    .procent p {
        font-size: 18px;
    }
}
@media (max-width: 401px) {
    .priem p {
        font-size: 14px;
    }
}
@media (max-width: 392px) {
    .priem p {
        font-size: 13px;
    }
}
@media (max-width: 382px) {
    .priem p {
        font-size: 12px;
    }
        .procent p {
        font-size: 17px;
    }
}
