/* Basic Reset and Box Model */
* {
  margin: 0;
  padding: 0;
  font-family: inherit;
  outline: none !important;
  list-style: none !important;
}
:before, :after {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Global Body Styles */
body {
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  background-color: #F9F9FF;
  color: #506172;
  font-weight: 400;
  position: relative;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  line-height: 1.4;
  color: #152035;
  margin: 0;
}
h1 { font-size: 40px; }
h2 { font-size: 36px; }
h3 { font-size: 28px; }
h4 { font-size: 24px; }
h5 { font-size: 20px; }
h6 { font-size: 16px; }

/* Capitalize First Letter */
p:first-letter, h5:first-letter {
  text-transform: capitalize;
}

/* Anchor Links */
a {
  text-decoration: none;
  color: inherit;
}
a:hover, a:focus {
  text-decoration: none;
}

/* Images */
img {
  max-width: 100%;
  height: auto;
}
.huge-image img {
  border-radius: 15px; /* Настройка радиуса скругления углов */
  width: 100%; /* Изображение будет занимать всю ширину родительского контейнера */
  height: auto; /* Сохраняет пропорции изображения */
}


/* Lists */
ul {
  margin-bottom: 0;
}
.list-inline li {
  display: inline-block;
}

/* Width Utilities */
.max-width-400 {
  width: 400px;
}
.inner-width {
  width: 600px;
  margin: auto;
}

/* Cards */
.card {
  background-color: transparent;
  border: 0;
}

/* Form Control */
.form-control:focus {
  outline: none !important;
  border-color: inherit;
  box-shadow: none;
}

/* Containers */
.container-fluid {
  max-width: 1280px;
}

/* Sign Form */
.sign {
  width: 500px;
  margin: auto;
  display: block;
  position: relative;
  transition: all 0.9s ease-in-out;
}
.sign-form .btn-custom {
  width: 100%;
  text-align: center;
  margin-bottom: 8px;
  justify-content: center;
}
.sign-form .sign-controls {
  margin: 20px 0;
  display: flex;
  align-items: center;
  font-size: 14px;
}
.sign-form .btn-link {
  color: #506172;
  font-weight: 400;
}
.sign-form .custom-control label {
  line-height: 23px;
}
.sign-form .btn-link {
  color: #152035;
  font-size: 14px;
  font-weight: 600;
}
.sign-form .btn-link:hover {
  color: #5f27cd !important;
  text-decoration: none;
}
.sign-form p {
  font-size: 14px;
  margin-bottom: 0 !important;
}
.sign-form .custom-checkbox .custom-control-input:checked ~ .custom-control-label::before {
  background-color: #5f27cd;
  border-color: #5f27cd;
}

/* Search Form */
.search {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,.5);
  transform: translate(0%, 100%) scale(0, 0);
  opacity: 0;
  visibility: hidden;
  z-index: 999999;
  display: flex;
  align-items: center;
  transition: all 0.7s ease-in-out;
}
.search-width {
  max-width: 600px;
  margin: auto;
  position: relative;
}
.search.search-open {
  transform: translate(0px, 0px) scale(1, 1);
  opacity: 1;
  visibility: visible;
}
.search .close {
  position: fixed;
  top: 30px;
  right: 30px;
  color: #ffffff;
  background-color: #5f27cd;
  border: none;
  height: 35px;
  width: 35px;
  border-radius: 50%;
  cursor: pointer;
}
.search .close:hover {
  background-color: #5f27cd;
}
.search-form {
  text-align: center;
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 40px;
  width: 100%;
  transform: translate(-50%, -50%);
  display: flex;
  justify-content: center;
  box-shadow: 0 5px 20px 0 rgba(69,67,96,0.1);
}
.search-form input {
  font-size: 16px;
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  color: inherit;
  border: 0;
  font-weight: 600;
  border-radius: 40px 0 0 40px;
  padding: 15px 10px 15px 30px;
  border: 1px solid #eee;
  transition: all 0.7s ease-in-out;
}
.search-form .search-btn {
  background-color: #5f27cd;
  box-shadow: none;
  border: 0;
  cursor: pointer;
  border-radius: 0 40px 40px 0;
  width: 130px;
  font-weight: 700;
  color: #ffffff;
  text-transform: capitalize;
  transition: all 0.5s ease-in-out;
}
.search-form .search-btn:hover {
  background-color: #5f27cd;
  color: #ffffff;
}

/* Buttons */
.btn-custom {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  position: relative;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  font-size: 13px;
  font-weight: 500;
  padding: 12px 22px;
  border-radius: 20px;
  background-color: #5f27cd;
  color: #ffffff;
  border: 0;
  transition: all 0.5s ease-in-out;
}
.btn-custom:hover, .btn-custom:focus {
  color: #ffffff;
  background-color: #5f27cd;
  opacity: 0.8;
}

/* Links */
.link {
  background-color: #5f27cd;
  color: #ffffff !important;
  padding: 1px 10px;
  display: inline-flex;
  text-align: center;
  font-size: 13px;
  border-radius: 20px;
  font-weight: 400 !important;
  text-transform: capitalize;
  transition: all 0.5s ease-in-out;
}
.link:hover {
  color: #ffffff;
  background-color: #152035;
}
.link .arrow_right {
  margin-top: 4px;
  margin-left: 5px;
}
.link .arrow_left, .link .arrow_back, .link i {
  margin-top: 4px;
  margin-right: 5px;
}

.com_btn a{display:inline-block;margin-right:15px}
.dot{width:4px;height:4px;background-color:#5f27cd;border-radius:50%;display:block;margin:2px 6px!important}

/* Social Icons */
.social-icones li a {
  display: block;
  text-align: center;
  margin-right: 10px;
}
.social-icones li a i {
  font-size: 14px;
  color: #506172;
}
.social-icones li a i:hover {
  color: #5f27cd !important;
}

/* Social Media Icons */
.social-media a {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: block;
  text-align: center;
  margin-right: 2px;
  transition: all 0.5s ease-in-out;
}
.social-media a i {
  font-size: 13px;
  line-height: 30px;
  color: #ffffff;
}
.social-media a:hover {
  background-color: #F9F9FF;
}
.social-media a:hover i {
  color: #506172;
}

/* Color Schemes for Social Media */
.color-facebook { background-color: #1b92ce; }
.color-instagram { background-color: #c32aa3; }
.color-youtube { background-color: #e52d27; }
.color-twitter { background-color: #1b92ce; }
.color-telegram { background-color: #1b92ce; }
/* Utility Classes for Margins */
.mb-100 { margin-bottom: 100px; }
.mb-90 { margin-bottom: 90px; }
.mb-80 { margin-bottom: 80px; }
.mb-70 { margin-bottom: 70px; }
.mb-60 { margin-bottom: 60px; }
.mb-50 { margin-bottom: 50px; }
.mb-40 { margin-bottom: 40px; }
.mb-30 { margin-bottom: 30px; }
.mb-20 { margin-bottom: 20px; }
.mb-10 { margin-bottom: 10px; }

/* Utility Classes for Margin Top */
.mt-100 { margin-top: 100px; }
.mt-95 { margin-top: 95px; }
.mt-90 { margin-top: 90px; }
.mt-80 { margin-top: 80px; }
.mt-70 { margin-top: 70px; }
.mt-60 { margin-top: 60px; }
.mt-50 { margin-top: 50px; }
.mt-40 { margin-top: 40px; }
.mt-30 { margin-top: 30px; }
.mt-20 { margin-top: 20px; }
.mt-10 { margin-top: 10px; }
.mt--10 { margin-top: -10px; }
.mt--20 { margin-top: -20px; }

/* Utility Classes for Padding */
.pt-85 { padding-top: 85px !important; }
.pt-80 { padding-top: 80px !important; }
.pt-55 { padding-top: 55px !important; }
.pt-50 { padding-top: 50px !important; }
.pt-45 { padding-top: 45px !important; }
 
/* Light/Dark Mode */
body.light-mode .widget-author .blog-description {
  font-size: 18px;
  line-height: 1.5;
  color: #444444;
}

body.dark-mode .widget-author .blog-description {
  font-size: 18px;
  line-height: 1.5;
  color: #f0f8ff;
}
/* Additional Light/Dark Mode Styling */
body.light-mode {
  background-color: #f8f9fa;
  color: #343a40;
}
body.dark-mode {
  background-color: #343a40;
  color: #f0f8ff;
}

.widget-author .blog-name {
  color: #FF6347;
  font-weight: bold;
}

/* Top News Container */
.top-news-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}
.top-news-title {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 20px;
}
.top-news-item {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #ccc;
  font-family: 'Montserrat', sans-serif;
}
.article-image img {
  width: 100%;
  height: auto;
}
.news-title a {
  color: inherit;
  text-decoration: none;
  font-weight: bold;
}
.news-title a:hover {
  text-decoration: underline;
}

/* Theme Switcher */
.theme-switch {
  display: inline-block;
  height: 20px;
  position: relative;
  width: 40px;
}
.theme-switch-wrapper {
  display: flex;
  align-items: center;
  margin-right: 15px;
}
.theme-switch input {
  display: none;
}
.slider {
  background-color: transparent;
  bottom: 0;
  cursor: pointer;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  border: 1px solid #506172;
  transition: all 0.4s ease-in-out;
}
.slider:before {
  position: absolute;
  content: "";
  left: 4px;
  width: 12px;
  height: 12px;
  background-color: #506172;
  bottom: 3px;
  transition: all 0.4s ease-in-out;
  border: 1px solid #506172;
}
.slider.round {
  border-radius: 34px;
}
.slider.round:before {
  border-radius: 50%;
}
input:checked + .slider {
  background-color: transparent;
  border: 1px solid #d9d9d9;
}
input:checked + .slider:before {
  transform: translateX(18px);
  background-color: #d9d9d9;
}
/* Section Styling */
.section {
  margin-top: 65px;
  background-color: #F9F9FF;
}
.section-title {
  margin-bottom: 30px;
  margin-top: 5px;
}
.section-title h5 {
  text-transform: none;
  position: relative;
}
.section-title h5:after {
  background-color: #5f27cd;
  display: block;
  position: absolute;
  content: "";
  top: -5px;
  width: 30px;
  height: 2px;
}
.section-title p {
  margin-bottom: 0;
}

/* Navbar */
.navbar {
  background-color: #ffffff; /* Белый фон для панели */
  padding: 15px; /* Отступы внутри панели */
}
.navbar-scroll {
  -webkit-box-shadow: 0 0 15px rgba(0, 0, 0, 0.1); /* Тень для скроллящейся панели */
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  -webkit-transition: all .5s ease-in-out; /* Плавная анимация */
  transition: all .5s ease-in-out;
}
.navbar .logo img {
  max-height: 40px; /* Максимальная высота изображения логотипа */
}

.logo a {
  color: #152035; /* Цвет текста */
  font-size: 26px; /* Размер шрифта */
  font-weight: 700; /* Жирность */
  margin-left: 10px; /* Отступ слева для разделения иконки и текста */
}

.logo a i {
  display: inline-block; 
  color: #5f27cd; /* Цвет иконки */
  vertical-align: middle; 
  margin-top: -4px; /* Смещение вверх */
}

.navbar .logo-white {
  display: none; /* Логотип для светлой темы (скрыт по умолчанию) */
}

.navbar .logo .display-none {
  display: none; /* Скрытие элемента логотипа */
}

.navbar .logo .display-block {
  display: block; /* Отображение элемента логотипа */
}
.navbar .nav-item .nav-link {
  font-weight: 600; /* Жирный текст */
  color: #152035; /* Цвет текста */
  font-size: 14px; /* Размер шрифта */
  text-transform: uppercase; /* Преобразование текста в верхний регистр */
  padding: 0 40px 0 0; /* Отступы */
  display: inline-block;
  -webkit-transition: all .5s ease-in-out; /* Плавная анимация при наведении */
  transition: all .5s ease-in-out;
  position: relative;
}

.navbar .nav-item .nav-link i {
  color: #5f27cd; /* Цвет иконки */
}

.navbar .nav-item .nav-link.active,
.navbar .nav-item .nav-link:hover {
  color: #5f27cd !important; /* Изменение цвета при наведении */
  background-color: transparent; /* Прозрачный фон */
}

.navbar .nav-item:hover .nav-link {
  color: #5f27cd;
}

.navbar .nav-item:last-child .nav-link {
  padding-right: 0 !important; /* Убирает правый отступ у последней ссылки */
}

.navbar .nav-item .dropdown-toggle::after {
  border: 0 none; /* Убирает рамки */
  line-height: normal; 
  margin-left: 5px; /* Отступ слева */
  vertical-align: middle;
  font-family: "Font Awesome 5 Free"; /* Использование иконки FontAwesome */
  content: "\f107"; /* Код иконки для раскрывающегося меню */
  font-weight: 400;
}

.navbar .nav-item .dropdown-menu {
  border: 0; /* Убирает рамку */
  padding: 20px; /* Отступы */
  -webkit-box-shadow: 0 5px 20px 0 rgba(69, 67, 96, 0.1); /* Тени */
  box-shadow: 0 5px 20px 0 rgba(69, 67, 96, 0.1);
}

.navbar .nav-item .dropdown-menu .dropdown-item {
  color: #152035; /* Цвет текста */
  padding: 0;
  margin-bottom: 15px;
  font-size: 14px;
  letter-spacing: .5px; /* Межбуквенный интервал */
  font-weight: 600; /* Жирность текста */
  text-transform: none; /* Отключение преобразования регистра текста */
}

.navbar .nav-item .dropdown-menu .dropdown-item:hover,
.navbar .nav-item .dropdown-menu .dropdown-item.active {
  background-color: transparent;
  color: #5f27cd !important; /* Цвет текста при наведении */
}

.navbar .nav-item .dropdown-menu li:last-child .dropdown-item {
  margin-bottom: 0; /* Убирает нижний отступ у последнего пункта меню */
}
.navbar-toggler {
  width: 30px;
  height: 40px;
  position: relative;
  margin: 0;
  padding: 0;
  margin-left: 15px;
  border: none;
}

.navbar-toggler span {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 2px;
  margin: auto;
  -webkit-box-shadow: 0 -8px 0 0 #152035, 0 8px 0 0 #152035; /* Тени */
  box-shadow: 0 -8px 0 0 #152035, 0 8px 0 0 #152035;
  background: #152035; /* Цвет линий в кнопке */
}

.navbar-right {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  margin-left: auto;
}

.navbar-right .social-icones {
  margin-right: 10px;
}

.navbar-right .search-icon, 
.navbar-right .user-icon {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background-color: #5f27cd;
  text-align: center;
  display: block;
  cursor: pointer;
  -webkit-transition: all .5s ease-in-out;
  transition: all .5s ease-in-out;
}

.navbar-right .search-icon i, 
.navbar-right .user-icon i {
  line-height: 35px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  display: block;
  -webkit-transform: rotateY(180deg); /* Поворот иконки */
  transform: rotateY(180deg);
}

.navbar-right .search-icon:hover, 
.navbar-right .user-icon:hover {
  background-color: #5f27cd;
}

@media all and (min-width: 991px) {
  .navbar .nav-item .dropdown-menu {
    display: block;
    opacity: 0; /* Прозрачность по умолчанию */
    visibility: hidden;
    -webkit-transition: .3s;
    transition: .3s;
    margin-top: 10px;
  }

  .navbar .nav-item:hover .dropdown-menu {
    -webkit-transition: .3s;
    transition: .3s;
    opacity: 1; /* Появление при наведении */
    visibility: visible;
    top: 100%;
    -webkit-transform: rotateX(0deg);
    transform: rotateX(0deg); /* Появление с поворотом */
  }

  .navbar .dropdown-menu.fade-up {
    top: 180%; /* Дополнительное смещение вверх */
  }
}

/* Masonry Layout */
.masonry-layout .card {
  border: 0;
  border-radius: 0;
  margin-bottom: 0;
  background-color: transparent;
}
.masonry-layout .card-columns {
  column-count: 3;
  column-gap: 30px;
}
.masonry-layout .card-columns .card {
  margin-bottom: 20px;
  margin-top: 40px;
}
.masonry-layout .card-columns .post-card {
  margin-bottom: 0;
}
/* Two-column layout for cards */
.col2-layout .card-columns {
  -webkit-column-count: 2;
  column-count: 2;
}
.col2-layout .post-card {
  margin-bottom: 30px;
}

/* Widgets */
.widget {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 20px;
  margin-bottom: 30px;
  -webkit-box-shadow: 0 5px 20px 0 rgba(69,67,96,0.1);
  box-shadow: 0 5px 20px 0 rgba(69,67,96,0.1);
}
.widget .title {
  margin-bottom: 20px;
}

/* Author widget */
.widget-author {
  text-align: center;
}
.widget-author .image {
  position: relative;
  width: 100px;
  height: 100px;
}
.widget-author img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin-bottom: 15px;
}
.widget-author h6 {
  font-size: 20px;
  text-align: center;
  margin-bottom: 15px;
  font-weight: 900;
}
.widget-author p {
  text-align: center;
  margin-bottom: 20px;
}
.widget-author .social-icones {
  margin: auto;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}
.widget-author .link {
  margin-bottom: 10px;
}

/* Latest posts widget */
.widget-latest-posts .last-post {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  margin-bottom: 30px;
  position: relative;
}
.widget-latest-posts .last-post .image {
  width: 90px;
  height: 90px;
  margin-right: 15px;
  overflow: hidden;
  position: relative;
  border-radius: 20px;
}
.widget-latest-posts .last-post .image img {
  border-radius: 20px;
  width: 90px;
  height: 90px;
  -webkit-transition: all .9s ease-in-out;
  transition: all .9s ease-in-out;
}
.widget-latest-posts .last-post .image img:hover {
  -webkit-transform: scale(1.1);
  transform: scale(1.1);
}
.widget-latest-posts .last-post .nb {
  position: absolute;
  content: "";
  left: -5px;
  top: -5px;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background-color: #5f27cd;
  text-align: center;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  line-height: 2;
  z-index: 1;
}
.widget-latest-posts .last-post .content {
  width: calc(100% - 90px);
}
.widget-latest-posts .last-post .content p, .widget-latest-posts .last-post .content a {
  font-weight: 900;
  color: #152035;
  margin-bottom: 0;
  -webkit-transition: all .3s ease-in-out;
  transition: all .3s ease-in-out;
}
.widget-latest-posts .last-post .content a:hover {
  color: #5f27cd !important;
}
.widget-latest-posts .last-post .content small {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  margin-top: 8px;
  text-transform: capitalize;
  font-size: 13px;
  color: #506172;
  font-weight: 400;
}
.widget-latest-posts .last-post .content small .dot {
  margin: 0 6px 0 0 !important;
}
.widget-latest-posts .last-post .content small span {
  color: #5f27cd;
  margin-right: 5px;
  direction: ltr;
}
.widget-latest-posts .last-post .content .link {
  margin-bottom: 8px;
}
.widget-latest-posts .last-post:last-child {
  margin-bottom: 0;
}

/* Categories widget */
.widget-categories li {
  background-color: #F9F9FF;
  padding: 15px 20px;
  border-radius: 10px;
  margin-bottom: 15px;
}
.widget-categories li a {
  font-weight: 500;
}
.widget-categories li a:hover {
  color: #5f27cd;
}
.widget-categories li span {
  float: right;
  color: #506172;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
}
.widget-categories li:last-child {
  margin-bottom: 0;
}

/* Instagram widget */
.widget-instagram {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: auto auto auto;
  grid-template-columns: auto auto auto;
  -ms-grid-rows: auto auto;
  grid-template-rows: auto auto;
  grid-gap: 10px;
}
.widget-instagram li {
  overflow: hidden;
  border-radius: 5px;
}
.widget-instagram li img {
  border-radius: 5px;
  -webkit-transition: all .9s ease-in-out;
  transition: all .9s ease-in-out;
}
.widget-instagram li img:hover {
  -webkit-transform: scale(1.1);
  transform: scale(1.1);
}

/* Comments widget */
.widget-comments {
  margin-bottom: 70px;
}
.widget-comments .comment-item {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  margin-bottom: 50px;
}
.widget-comments .comment-item img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-right: 15px;
}
.widget-comments .comment-item .content .full-comment {
  margin-bottom: 15px;
  line-height: 150%;
}
.widget-comments .comment-item .content .info {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  margin-bottom: 10px;
}
.widget-comments .comment-item .content .info li {
  margin-bottom: 0;
  font-size: 13px;
  color: #506172;
  text-transform: capitalize;
  font-weight: 400;
}
.widget-comments .comment-item .content .info li.dot {
  margin: 2px 15px !important;
}

/* Form inside widget */
.widget-form .form-group {
  margin-bottom: 20px;
}
.widget-form .form-control {
  background-color: #F9F9FF;
  border: 1px solid #eee;
  border-radius: 20px;
  padding: 22px 20px;
  font-size: 14px;
  color: #152035;
  display: inline-block;
  -webkit-transition: all .5s ease-in-out;
  transition: all .5s ease-in-out;
  cursor: pointer;
}
.dark .widget-form .form-control {
  color: #fff !important;
}
.widget-form .form-control:focus, .widget-form .form-control:hover {
  -webkit-box-shadow: 0 5px 20px 0 rgba(69,67,96,0.1);
  box-shadow: 0 5px 20px 0 rgba(69,67,96,0.1);
  background-color: #ffffff;
}
.widget-form label {
  font-weight: 400;
  font-size: 14px;
}
.widget-form label span {
  line-height: 0;
}

/* Next/previous post in widgets */
.widget-next-post .small-post, .widget-previous-post .small-post {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  margin-bottom: 30px;
  position: relative;
}
.widget-next-post .small-post .image, .widget-previous-post .small-post .image {
  width: 90px;
  height: 90px;
  margin-right: 15px;
  overflow: hidden;
  position: relative;
  border-radius: 20px;
}
.widget-next-post .small-post .image img, .widget-previous-post .small-post .image img {
  border-radius: 20px;
  width: 90px;
  height: 90px;
  -webkit-transition: all .9s ease-in-out;
  transition: all .9s ease-in-out;
}
.widget-next-post .small-post .image img:hover, .widget-previous-post .small-post .image img:hover {
  -webkit-transform: scale(1.1);
  transform: scale(1.1);
}
.widget-next-post .small-post .nb, .widget-previous-post .small-post .nb {
  position: absolute;
  content: "";
  left: -5px;
  top: -5px;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background-color: #5f27cd;
  text-align: center;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  line-height: 2;
  z-index: 1;
}
.widget-next-post .small-post .content, .widget-previous-post .small-post .content {
  width: 100%;
}
.widget-next-post .small-post .content .np-title {
  display: block;
  min-height: 39px;
}
.widget-next-post .small-post .content p, .widget-next-post .small-post .content a, .widget-previous-post .small-post .content p, .widget-previous-post .small-post .content a {
  font-weight: 900;
  color: #152035;
  margin-bottom: 0;
  -webkit-transition: all .3s ease-in-out;
  transition: all .3s ease-in-out;
}
.widget-next-post .small-post .content a:hover, .widget-previous-post .small-post .content a:hover {
  color: #5f27cd !important;
}
.widget-next-post .small-post .content small, .widget-previous-post .small-post .content small {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  margin-top: 8px;
  text-transform: capitalize;
  font-size: 13px;
  color: #506172;
  font-weight: 400;
}
.widget-next-post .small-post .content small .dot, .widget-previous-post .small-post .content small .dot {
  margin: 0 6px 0 0 !important;
}
.widget-next-post .small-post .content small span, .widget-previous-post .small-post .content small span {
  color: #5f27cd;
  margin-right: 5px;
  direction: ltr;
}
.widget-next-post .small-post .content .link, .widget-previous-post .small-post .content .link {
  margin-bottom: 8px;
}
.widget-next-post .small-post:last-child, .widget-previous-post .small-post:last-child {
  margin-bottom: 0;
}

/* Tags widget */
.widget-tags a {
  display: inline-block;
  background-color: #F9F9FF;
  padding: 4px 11px;
  margin-bottom: 10px;
  margin-right: 2px;
  border-radius: 20px;
  font-size: 13px;
  text-transform: capitalize;
  color: #506172;
  font-weight: 500;
}
.widget-tags a:hover {
  color: #506172;
  opacity: .8;
}


/* Post Cards */
.post-card {
  background-color: #ffffff !important;
  padding: 30px;
  border-radius: 20px !important;
  margin-bottom: 60px;
  display: block;
  position: relative;
  box-shadow: 0 5px 20px 0 rgba(69,67,96,0.1);
}
.post-card-image {
  margin-top: -60px;
  margin-bottom: 30px;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 10px rgba(0,0,0,0.08), 0 0 0 transparent;
}
.post-card-image img {
  border-radius: 20px;
  width: 100%;
  transition: all 0.9s ease-in-out;
}
.post-card-image img:hover {
  transform: scale(1.1);
}

/* Post Card Content */
.post-card-content .categorie {
  margin-bottom: 20px;
}
.post-card-content h5 {
  margin-bottom: 8px;
}
.post-card-content h5 a {
  transition: all 0.5s ease-in-out;
}
.post-card-content h5 a:hover {
  color: #5f27cd;
}
.post-card-content p {
  margin-bottom: 30px;
  font-size: 14px;
}
.post-card-info ul {
  display: flex; /* Используем flexbox для выравнивания элементов в одну строку */
  flex-wrap: wrap; /* Позволяем элементам переноситься при необходимости */
  align-items: center; /* Выравнивание по вертикали */
  list-style: none; /* Убираем маркеры у списка */
  padding: 0;
  margin: 0;
}
.post-card-info img {
  width: 40px !important;
  height: 40px;
  border-radius: 50%;
  margin-right: 7px;
}
.post-card-info li {
  display: flex; /* Каждый элемент списка также flex */
  align-items: center;
  font-size: 14px; /* Размер текста можно подкорректировать под дизайн */
  color: #506172; /* Цвет текста */
  margin-right: 10px; /* Отступ между элементами */
}
.post-card-info li a:hover {
  color: #5f27cd;
}
.post-card-info li.dot {
  margin: 0 5px; /* Отступы для разделителей */
}
.post-card-info li:last-child {
  margin-right: 0; /* Убираем отступ у последнего элемента */
}

.post-card-info i {
  margin-right: 5px; /* Создаем небольшой отступ справа от иконки */
}

/* Post Single */
.post-single {
  background-color: #ffffff !important;
  padding: 30px;
  border-radius: 20px !important;
  margin-bottom: 30px;
  margin-top: 30px;
  -webkit-box-shadow: 0 5px 20px 0 rgba(69,67,96,0.1);
  box-shadow: 0 5px 20px 0 rgba(69,67,96,0.1);
}
.post-single-image {
  margin-top: -60px;
  margin-bottom: 40px;
  border-radius: 20px;
}
.post-single-image img {
  border-radius: 20px;
  -webkit-box-shadow: 0 5px 20px 0 rgba(69,67,96,0.1);
  box-shadow: 0 5px 20px 0 rgba(69,67,96,0.1);
}
.post-single-content .categorie {
  margin-bottom: 20px;
}
.post-single-content h4 {
  margin-bottom: 20px;
  -webkit-transition: all .3s ease-in-out;
  transition: all .3s ease-in-out;
}
.post-single-content h4 a:hover {
  color: #5f27cd;
}
.post-single-content p {
  margin-bottom: 30px;
}
.post-single-info img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 7px;
}
.post-single-info li {
  margin-bottom: 0;
  font-size: 13px;
  color: #506172;
  text-transform: capitalize;
  font-weight: 400;
}

/* Post Single Body */
.post-single-body {
  margin-top: 20px;
}
.post-single-body h5 {
  margin-top: 30px;
  margin-bottom: 10px;
}
.post-single-body .image {
  margin-top: 15px;
  margin-bottom: 15px;
}
.post-single-body .image img {
  border-radius: 5px;
}
.post-single-body .image p {
  color: #506172;
  text-align: center;
  font-size: 12px;
  margin-top: 4px;
  margin-bottom: 0;
}
.post-single-body .list {
  margin-bottom: 15px;
}
.post-single-body .list li {
  position: relative;
  padding-left: 15px;
  margin-bottom: 10px;
}
.post-single-body .list li:before {
  background-color: #506172;
  border-radius: 50%;
  position: absolute;
  content: "";
  left: 0;
  top: 12px;
  width: 5px;
  height: 5px;
}

/* Post Single Footer */
.post-single-footer {
  margin-top: 30px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}
.post-single-footer .tags a {
  background-color: #F9F9FF;
  padding: 4px 11px;
  margin-bottom: 5px;
  margin-right: 2px;
  border-radius: 20px;
  font-size: 13px;
  text-transform: capitalize;
  color: #506172;
  font-weight: 400;
}
.post-single-footer .tags a:hover {
  color: #506172;
}
.post-single-footer .social-media {
  text-align: center;
  margin-left: auto;
}
.post-single-footer .social-media .ya-share2__list.ya-share2__list_direction_horizontal > .ya-share2__item {
  margin: 0 !important;
}

/* Categories */
.categorie {
  background-color: #5f27cd;
  color: #ffffff;
  padding: 2px 15px;
  display: inline-block;
  margin: auto;
  text-align: center;
  font-size: 13px;
  border-radius: 20px;
  font-weight: 500;
  text-transform: capitalize;
  -webkit-transition: all .5s ease-in-out;
  transition: all .5s ease-in-out;
}
.categorie:hover {
  background-color: #2b2b2b;
  color: #ffffff !important;
}
.categorie-section {
  margin-top: 100px;
  margin-bottom: 30px;
}
.categorie-title small a:hover {
  color: #5f27cd;
}
.categorie-title h1 {
  margin-bottom: 10px;
  font-size: 28px;
}
.categorie-title h1 span {
  color: #5f27cd;
}
.categorie-title p {
  margin-bottom: 0;
}

/* Top Section */
.top {
  margin-bottom: 0;
  position: relative;
  background-position: center center;
  background-size: cover;
  height: calc(100vh - 65px);
  z-index: 1;
}
.top:after {
  position: absolute;
  content: "";
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 1;
  bottom: 0;
  z-index: -1;
}
.top-content {
  border: 1px solid green;
  padding: 30px;
  width: 800px;
  margin-right: 400px;
}
.top-content h2 {
  color: #ffffff;
  margin: 20px 0;
}

/* About Us Section */
.about-us {
  background-color: #ffffff !important;
  padding: 30px;
  border-radius: 20px !important;
  margin-bottom: 50px;
  -webkit-box-shadow: 0 5px 20px 0 rgba(69,67,96,0.1);
  box-shadow: 0 5px 20px 0 rgba(69,67,96,0.1);
  -webkit-transition: all .9s ease-in-out;
  transition: all .9s ease-in-out;
}

/* Contact Section */
.contact {
  background-color: #ffffff !important;
  padding: 30px;
  border-radius: 20px !important;
  margin-bottom: 60px;
  display: block;
  position: relative;
  -webkit-box-shadow: 0 5px 20px 0 rgba(69,67,96,0.1);
  box-shadow: 0 5px 20px 0 rgba(69,67,96,0.1);
  -webkit-transition: all .9s ease-in-out;
  transition: all .9s ease-in-out;
}
.contact .google-map {
  margin-top: -60px;
  margin-bottom: 50px;
  position: relative;
  overflow: hidden;
  -webkit-box-shadow: 0 10px 10px rgba(0, 0, 0, 0.08), 0 0 0 transparent;
  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.08), 0 0 0 transparent;
  line-height: 0;
  border: 0;
  border-radius: 20px;
}
.contact .google-map iframe {
  width: 100%;
  height: 400px;
  border: 0;
  border-radius: 20px;
  -webkit-transition: all .9s ease-in-out;
  transition: all .9s ease-in-out;
}

/* Footer */
.footer {
  background-color: #ffffff;
}
.footer .copyright {
  padding: 30px 0;
  border-top: 1px solid rgba(21,32,53,0.1);
}
.footer .copyright p {
  margin-bottom: 0;
  font-size: 14px;
  text-align: center;
  color: #506172;
}
.footer .copyright p a {
  font-weight: 700;
}
.footer .copyright p a:hover {
  color: #5f27cd;
}

/* Back to Top Button */
.footer .back {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: end;
  -ms-flex-pack: end;
  justify-content: flex-end;
}
.footer .back .back-top {
  width: 45px;
  height: 45px;
  background-color: #5f27cd;
  position: fixed;
  bottom: 15px;
  right: 30px;
  border-radius: 50%;
  z-index: 9;
  display: none;
  text-align: center;
  -webkit-transition: all .5s ease-in-out;
  transition: all .5s ease-in-out;
  border: 1px solid #5f27cd;
}
.footer .back .back-top i {
  color: #ffffff;
  line-height: 45px;
  font-size: 16px;
  text-align: center;
  font-weight: 700;
}
.footer .back .back-top:hover {
  -webkit-box-shadow: 0 5px 20px 0 rgba(69,67,96,0.1);
  box-shadow: 0 5px 20px 0 rgba(69,67,96,0.1);
  background-color: transparent;
  border: 1px solid #5f27cd;
}
.footer .back .back-top:hover i {
  color: #5f27cd;
}


/* Loading Screen */
.loading {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: #F9F9FF;
  z-index: 99999;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}
.loading .circle {
  margin: auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #5f27cd;
  -webkit-animation: load 0.9s infinite linear;
  animation: load 0.9s infinite linear;
}
@-webkit-keyframes load {
0%{-webkit-transform:scale(0.5);transform:scale(0.5)}
50%{-webkit-transform:scale(1.2);transform:scale(1.2)}
100%{-webkit-transform:scale(0);transform:scale(0)}
}
@keyframes load {
0%{-webkit-transform:scale(0.5);transform:scale(0.5)}
50%{-webkit-transform:scale(1.2);transform:scale(1.2)}
100%{-webkit-transform:scale(0);transform:scale(0)}
}

p a {
  color: #0000FF !important;
  text-decoration: none;
}

p a:hover {
  color: #40E0D0 !important;
}

/* Стили для ссылок внутри абзацев в тёмном режиме */
.dark p a {
  color: #0000FF !important;
}

.dark p a:hover {
  color: #40E0D0 !important;
}

/* Dark Mode Styling */
.dark {
  background-color: #1d1d1d;
  color: #d9d9d9;
}
.dark .section, .dark .post-single-body .quote, .dark .widget-tags ul li, .dark .widget-categories li, .dark .post-single-footer .tags ul li, .dark .about-us .description .quote, .dark .loading, .dark .custom-control-label::before, .dark .social-media a:hover {
  background-color: #1d1d1d;
}
.dark .navbar, .dark .widget, .dark .newslettre, .dark .footer, .dark .search, .dark .widget-form .form-control, .dark .newslettre-form .form-control, .dark .search-form input, .dark .dropdown-menu {
  background-color: #2b2b2b;
}
.dark .post-card, .dark .contact, .dark .post-single, .dark .about-us {
  background-color: #2b2b2b !important;
}
.dark .post-card, .dark .widget, .dark .post-single, .dark .newslettre, .dark .navbar-scroll, .dark .search-form {
  box-shadow: none !important;
}
.dark .social-icones li a i, .dark .post-card-info li, .dark .post-single-body .quote small, .dark .widget-categories li span, .dark .widget-tags ul li, .dark .widget-latest-posts .last-post .content small, .dark .post-single-info li, .dark .post-single-body .image p, .dark .widget-comments .comment-item .content .info li, .dark .newslettre-info p, .dark .newslettre .social-icones li a, .dark .footer .copyright p, .dark .post-single-footer .tags ul li, .dark .about-us .description .quote small, .dark .social-media a i:hover, .dark .post-single-footer .tags ul li a:hover, .dark .widget-tags ul li a:hover, .dark .sign-form .sign-controls .btn-link {
  color: #d9d9d9;
}
.dark h1, .dark h2, .dark h3, .dark h4, .dark h5, .dark h6, .dark .navbar .nav-item .nav-link, .dark .post-single-body .quote p, .dark .widget-latest-posts .last-post .content a, .dark .widget-next-post .small-post .content a, .dark .widget-previous-post .small-post .content a, .dark .newslettre-info h5, .dark .about-us .description .quote p, .dark .navbar .nav-item .dropdown-menu .dropdown-item, .dark .sign-form .btn-link {
  color: #ffffff;
}
.dark .navbar-toggler span {
  background-color: #ffffff;
  box-shadow: 0 -8px 0 0 #ffffff, 0 8px 0 0 #ffffff;
}
.dark .footer .copyright {
  border-top: 1px solid rgba(255,255,255,0.05);
}
.dark .custom-control-label::before, .dark .widget-form .form-control {
  border: 1px solid #1d1d1d;
}
.dark .newslettre-form .form-control, .dark .widget-form .form-control, .dark .search-form input {
  border: 1px solid rgba(255,255,255,0.1);
}
.dark .widget-form .form-control:hover, .dark .widget-form .form-control:focus, .dark .newslettre-form .form-control:focus, .dark .newslettre-form .form-control:hover, .dark .search-form input:hover, .dark .search-form input:focus {
  background-color: #1d1d1d;
  border: 1px solid #1d1d1d;
  box-shadow: none;
}
.dark .categorie:hover, .dark .link:hover {
  background-color: #ffffff;
  color: #152035 !important;
}



.course-banner {
  text-align: center;
  margin-bottom: 20px;
}

.banner-title {
  font-size: 1.2em;
  font-weight: bold;
  margin-bottom: 10px;
  color: #f44336;
}

.banner-link img {
  width: 100%;
  border-radius: 15px;
  transition: transform 0.3s ease;
  margin-bottom: 15px;
}

.banner-link img:hover {
  transform: scale(1.05);
}

    
/* Quotes in Dark Mode */
.dark .quote {
  background-color: #1d1d1d !important;
  color: #ffffff !important;
}
.dark .title_quote {
  color: #ffffff !important;
  background-color: #3f3f3f !important;
}

/* Responsive Design */
@media all and (min-width: 991px) {
  .navbar .nav-item .dropdown-menu {
    display: block;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    margin-top: 10px;
  }
  .navbar .nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    top: 100%;
    transform: rotateX(0deg);
  }
  .navbar .dropdown-menu.fade-up {
    top: 180%;
  }
}
@media screen and (max-width: 991px) {
  .cogs_btn {
    float: none !important;
  }
  .navbar .container {
    position: relative;
  }
  .navbar-right {
    position: absolute;
    right: 15px;
    top: 15px;
  }
  .navbar-nav {
    padding-top: 15px;
  }
  .navbar .nav-item .dropdown-menu {
    box-shadow: none;
    margin-bottom: 15px;
    background-color: #F9F9FF;
    transition: all 0.7s ease-in-out;
  }
  .navbar .nav-item .dropdown-menu .dropdown-item:hover, .navbar .nav-item .dropdown-menu .dropdown-item.active {
    color: #5f27cd;
  }
  .navbar .nav-item .nav-link {
    margin-bottom: 15px;
  }
  .navbar .nav-item:last-child .nav-link {
    margin-bottom: 0;
  }
  .masonry-layout .card-columns {
    column-count: 2;
  }
  .max-width {
    margin: auto;
    width: 600px;
    margin-bottom: 20px;
  }
  .dark .navbar .nav-item .dropdown-menu {
    background-color: #1d1d1d !important;
  }
  .dark ::-webkit-input-placeholder {
    color: #d9d9d9 !important;
  }
  .dark :-ms-input-placeholder {
    color: #d9d9d9 !important;
  }
  .dark ::-ms-input-placeholder {
    color: #d9d9d9 !important;
  }
  .dark ::placeholder {
    color: #d9d9d9 !important;
  }
}
@media screen and (min-width: 768px) {
  .search-buttons {
    flex-direction: column;
  }
  .search-buttons .col-md-6 {
    margin-bottom: 10px;
  }
  .search-buttons p {
    display: block;
  }
  .search-actions {
    flex-direction: column;
  }
  .search-actions .col-lg-4 {
    margin-bottom: 10px;
  }
}
@media screen and (max-width: 768px) {
  .masonry-layout .card-columns, .col2-layout .card-columns {
    column-count: 1;
  }
  .search-form {
    width: 100%;
  }
  .search-form input {
    width: calc(100% - 100px);
  }
  .inner-width, .newslettre-width {
    width: auto;
    margin: auto;
  }
  .search .close {
    right: 30px;
  }
  .carousel-hero .owl-nav {
    display: none;
  }
  .search-buttons {
    flex-direction: row;
  }
  .search-buttons .col-md-6 {
    margin-bottom: 0;
  }
  .search-buttons p {
    display: none;
  }
  .search-actions {
    flex-direction: row;
  }
  .search-actions .col-lg-4 {
    margin-bottom: 0;
  }
}
@media screen and (max-width: 576px) {
  .max-width, .search-width {
    max-width: 100%;
    margin: 0;
  }
  .max-width-400, .page404, .sign {
    width: auto;
  }
  .hero-content h2 {
    font-size: 28px;
  }
  .hero-content .post-card-info li:nth-child(5), .hero-content .post-card-info li:nth-child(6) {
    display: none;
  }
  .card-columns .card {
    display: inline-block;
    width: 100%;
  }
  .theme-switch-wrapper {
    margin-right: 0;
  }
  .rtl .theme-switch-wrapper {
    margin-left: 0 !important;
    margin-right: 0;
  }
  .widget-comments .comment-item {
    display: block;
  }
  .widget-comments .comment-item img {
    margin-bottom: 15px;
  }
  .post-single-footer {
    flex-direction: column;
    align-items: flex-start;
  }
  .post-single-footer .social-media {
    margin-top: 20px;
    margin-left: 0;
  }
  .page404 .content h1 {
    font-size: 130px;
  }
  .contact .google-map iframe {
    height: auto;
  }
}
@media (max-width: 470px) {
  .navbar a, .navbar .navbar-item {
    font-size: 0;
  }
}
@media screen and (max-width: 321px) {
  .post-card-info img {
    display: none !important;
  }
  .post-card-info li.dot {
    margin: 2px 8px !important;
  }
  .hero-content h3 {
    font-size: 24px;
  }
  .widget-instagram {
    grid-template-columns: auto auto;
    grid-template-rows: auto auto auto;
  }
  .newslettre-form .form-flex {
    flex-direction: column;
  }
  .newslettre-form .form-control {
    border-radius: 20px !important;
  }
  .newslettre-form .submit-btn {
    width: 100%;
    border-radius: 20px !important;
    margin-top: 10px;
  }
  .search .close {
    right: 15px;
    top: 15px;
  }
  .search-form {
    flex-direction: column;
    box-shadow: none;
  }
  .search-form input {
    border-radius: 20px !important;
    width: 100% !important;
    box-shadow: 0 5px 20px 0 rgba(69,67,96,0.1);
  }
  .search-form .search-btn {
    width: 100%;
    height: 45px;
    border-radius: 20px !important;
    margin-top: 10px;
  }
  .sign-form .sign-controls {
    flex-direction: column;
    align-items: flex-start;
  }
  .sign-form .sign-controls a {
    margin-left: 0 !important;
    margin-top: 10px;
  }
  .widget-comments .comment-item .content .info li.dot {
    margin: 2px 10px !important;
  }
}

/* Основные стили для блоков статей */
.box.story {
    border: 1px solid #ccc;
    padding: 15px;
    margin-bottom: 20px;
    background-color: #f9f9f9;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

.box_in {
    display: flex;
    flex-direction: column;
}

.title {
    font-size: 1.5em;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.text {
    font-size: 1em;
    color: #555;
    line-height: 1.6;
}

.story_tools .category a {
    font-size: 0.9em;
    color: #007bff;
    text-decoration: none;
}

.story_tools .category a:hover {
    text-decoration: underline;
}

.meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8em;
    color: #888;
}

.meta .grey {
    color: #999;
}
