/**
 * @file
 * Subtheme specific CSS.
 */

body {
  font-style: normal;
  font-weight: 400;
  background-color: #f2f2f2;
}

:lang(ru) {
  quotes: "«" "»";
}
:lang(en) {
  quotes: "“" "”";
}

h1,
h2,
h3,
h4,
h5 {
  color: #064771 !important;
}

#navbar-main,
.header {
  background-color: #0678be;
  align-items: center;
  padding-top: 5px;
  padding-bottom: 5px;
  display: flex;
  justify-content: space-between;
}

#block-clear-main-menu {
  width: 100%;
}

.views-field.views-field-field-image-blog img {
  width: 100%;
  max-width: 100%;
  height: auto;
}

/* .navbar {
  padding: 0 12px !important;
}
*/
.navbar-brand {
  display: flex;
  align-items: top;
}

a.navbar-brand {
  font-family: "Sansation";
  font-size: 18px;
  color: #f2f2f2 !important;
}

.navbar-brand img {
  margin-right: 10px;
  height: 40px;
}

.site_name {
  line-height: 1;
}

.region-header {
  width: auto !important;
}

#block-clear-main-menu > ul {
  padding-left: 0px;
}

.main-content {
  padding: calc(var(--bs-gutter-x) * 1);
  background: #fff;
  box-sizing: border-box;
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 24px;
}

/*
.row {
  align-items: flex-start;
  flex-wrap: nowrap;
}
  */

/* ----- Блог на главной ----- */

ul.navnavbar-navtest {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0px;
}

ul.navnavbar-navtest::after {
  display: none;
}

ul.navnavbar-navtest li {
  list-style: none;
  position: relative;
  display: block;
  color: white;
}

ul.navnavbar-navtest li a {
  display: block;
  padding: 5px;
  color: #f2f2f2 !important;
  font-size: 18px;
  font-weight: 300;
  position: relative;
  text-decoration: none;
}

ul.navnavbar-navtest li:first-child a {
  padding-left: 0px;
}

ul.navnavbar-navtest li:last-child a {
  padding-right: 0px;
}
.navnavbar-navtest .nav-item {
  display: block;
  position: relative;
  color: white;
}

/* Hover effects */

/* Effect-1 */
.nav-item::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 3px;
  bottom: -5px;
  left: 0;
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.3s;
  background: #fff;
}

.nav-item:hover::after {
  transform-origin: bottom left;
  transform: scaleX(1);
}

#block-clear-tehurok-system-main > div > article {
  box-sizing: border-box;
}

.field--type-image {
  float: none;
}

.create-read-time {
  margin-bottom: 16px;
}

.created {
  display: flex;
  justify-content: flex-start;
}

.statistic_view,
.reading_time {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
}

.highlighted {
  background-color: #064771;
}

.views-field-view-node a {
  color: #fff !important;
}

.node__meta {
  font-size: 12px;
  color: #68696b;
  display: flex;
  margin-bottom: 8px;
  gap: 18px;
}

.views_blog_content {
  display: flex;
  justify-content: space-between;
  align-items: top;
  margin-bottom: 8px;
}

.body_blog {
  width: calc(100% - 340px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.link_blog {
  display: inline-block;
}

.view-taxonomy-term .views-row,
.view-blog .views-row {
  margin-bottom: 24px;
  padding-bottom: 8px;
}

.btn_wrapper {
  text-align: right;
}

h1 {
  border-bottom: 1px solid #d3d7d9;
  padding-bottom: 12px;
  margin-bottom: 24px;
}

.view-blog .row-1 .views-field-title {
  font-size: 1.5em;
  font-weight: 500;
}

.view-blog .views-field-title {
  font-size: 1.1em;
  font-weight: 500;
  text-wrap: balance;
}

i[data-bs-toggle="tooltip"] {
  display: inline-block;
}

.views-field.views-field-field-image-blog img {
  width: 100%;
}

.field_image img,
.blog__image img,
.field--type-image img,
.field--name-field-user-picture img {
  width: 100%;
  height: auto;
}

.blog__body {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 12px;
  text-wrap: balance;
}

.row-1 h3.field_title {
  height: auto;
}

.blog__content h3.field_title {
  font-size: 1.15rem;
  min-height: 56px;
}

.blog__content {
  padding: 8px;
}

.blog__image img {
  border-radius: 20px;
}

/*.podrobnee a {
  color: #fff !important;
}
  */

.podrobnee a:hover {
  text-decoration: none;
}

iframe#pdf_reader {
  width: 100%;
}

.blog__image {
  display: inline-block;
  position: relative;
  overflow: hidden;
}

.image-container img {
  display: block;
  width: 100%;
  height: auto;
  transition: border 0.3s ease;
}

.blog__image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 3px solid transparent;
  border-radius: 20px;
  transition: border-color 0.3s ease;
  pointer-events: none;
}

.blog__image:empty::before {
  content: "No Image Available";
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  width: 100%;
  height: 100%;
  font-size: 1.2rem;
  color: #888;
  background-color: #ddd;
  text-align: center;
}

.blog__image:hover::before {
  border-color: #007bff;
}

.view-blog .blog__meta {
  font-size: 14px;
  color: #68696b;
  display: flex;
  margin-bottom: 8px;
  flex-direction: column;
  gap: 4px;
}

.blog__meta {
  font-size: 14px;
  color: #68696b;
  display: flex;
  margin-bottom: 8px;
  flex-direction: column;
  gap: 4px;
}

blockquote {
  padding-left: 12px;
  padding-right: 12px;
  color: #707070;
  position: relative;
  padding-top: 18px;
  font-style: italic;
  margin: 24px;
}

blockquote p {
  margin-left: 24px;
  margin-right: 24px;
  width: fit-content;
}

blockquote::before {
  font-weight: 700;
  content: "«";
  font-size: 156px;
  position: absolute;
  left: -12px;
  opacity: 0.2;
  line-height: 0px;
  color: #7cbc48;
  font-family: Arial, Helvetica, sans-serif;
}

.breadcrumb {
  font-size: 0, 7;
}

.share-icon {
  font-size: 16px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: white;
  transition: transform 0.2s;
}

.share-icon:hover {
  transform: scale(1.1);
}

.vk {
  background-color: #4a76a8;
}
.ok {
  background-color: #ee8208;
}
.telegram {
  background-color: #0088cc;
}
.whatsapp {
  background-color: #25d366;
}
.email {
  background-color: #6c757d;
}
.viber {
  background-color: #665cac;
}
.twitter {
  background-color: #1da1f2;
}

a.share-icon:hover {
  color: #fff;
}

.content-type-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-size: 0.9rem;
  margin-bottom: 0.4em;
  color: #555;
}

.content-type-label .icon {
  width: 1em;
  height: 1em;
  fill: currentColor;
  flex-shrink: 0;
}

#block-clear-views-block-content-recent-block-1 .views-row {
  margin-bottom: 1.2em;
  box-sizing: border-box;
}

#block-clear-views-block-content-recent-block-1 .content-title {
  border-bottom: 1px dotted #ccc;
  padding-bottom: 1em;
}

.hover-effect {
  transition: all 0.3s ease;
}
.hover-effect:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  background-color: #f8f9fa;
}
.hover-effect:hover h6 {
  color: #0d6efd !important;
}

.icon-green {
  color: #7cbc48;
  padding-right: 5px;
}

.block-hierarchical-taxonomy-menu {
  display: none;
}

/* Кнопка-лупа */
.search-toggle {
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: #f2f2f2;
}

/* Контейнер формы */
.search-form-container {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  overflow: hidden;
  background: white;
  z-index: 9999;
  transition: width 0.3s ease, height 0.3s ease, padding 0.3s ease;
}

/* При открытии */
.search-wrapper.open .search-form-container {
  width: 80vw; /* 80% ширины окна */
  max-width: 600px;
  height: 40px; /* высота блока */
  padding: 4px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* Форма — флекс */
.search-form-container form {
  display: flex;
  align-items: center;
  height: 100%;
}

/* Поле поиска — растягивается */
.search-form-container input[type="search"] {
  flex: 1;
  height: 100%;
  padding: 0 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  min-width: 0; /* для flex */
}

/* Кнопка Найти */
.search-submit {
  margin-left: 8px;
  padding: 0 12px;
  height: 100%;
  border: 1px solid #007bff;
  background-color: #007bff;
  color: white;
  border-radius: 8px;
  cursor: pointer;
}

.search-submit:hover {
  background-color: #0056b3;
}

/* Кнопка закрытия */
.search-close {
  background: none;
  border: none;
  font-size: 1rem;
  margin-left: 8px;
  cursor: pointer;
}

.pdf,
.pdf_view {
  margin-top: 24px;
}

.blog__row {
  border-bottom: 1px solid #d3d7d9;
  padding-bottom: 12px;
  margin-bottom: 24px;
}
