* {
  Outline: none;
}

/*---------Main_content-----------*/
.main_content {
  background-color: #ffffff;
}

/*---------Slider-----------*/
.slider {
  position: relative;
  background-color: #ffffff;
}




/* Стили для кастомных стрелок */
.custom-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px !important;
  height: 44px !important;
  background: rgba(255, 255, 255, 0.47) !important;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  z-index: 10;
  display: flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  color: #333;
  font-size: 0;
  /* Скрываем текст кнопки */
}

.custom-arrow:hover {
  background: rgba(255, 255, 255, 1) !important;
  transform: translateY(-50%) scale(1.05);
}

.slick-prev {
  left: 20px !important;
}

.slick-next {
  right: 20px !important;
}

.custom-arrow .material-icons-round {
  font-size: 28px;
  color: #333;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
  .custom-arrow {
    width: 40px;
    height: 40px;
  }

  .slick-prev {
    left: 10px !important;
  }

  .slick-next {
    right: 10px !important;
  }

  .custom-arrow .material-icons-round {
    font-size: 22px;
  }
}

/* Убираем стандартные иконки Slick */
.slick-prev:before,
.slick-next:before {
  display: none !important;
}





.slide-show .slick-slide {
  color: #0077bb;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0.8);
  transition: all 0.4s ease-in-out;
}

.slider_content {
  margin: 0 auto;
  max-width: 100%;
  max-height: 100%;
}

.clickable-slide {
  display: block;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.clickable-slide:hover {
  transform: scale(1.01);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

body.loading {
  visibility: hidden;
}

body.loaded {
  visibility: visible;
  transition: visibility 0s linear 0s, opacity 0.3s ease-in-out;
}


.slide-show .slick-slide,
.slide-show .slick-slide[aria-hidden="true"]:not(.slick-cloned)~.slick-cloned[aria-hidden="true"] {
  transform: scale(0.8, 0.8);
  transition: all 0.4s ease-in-out;
}

.slide-show .slick-center,
.slide-show .slick-slide[aria-hidden="true"]:not([tabindex="-1"])+.slick-cloned[aria-hidden="true"] {
  transform: scale(1);
}

.slide-show .slick-current.slick-active {
  transform: scale(1);
}

.slick-dots li.slick-active button:before {
  opacity: .75;
  color: #0077bb !important;
}


/*---------Periodic_table-----------*/
.profesions {
  padding-top: 0px;
  margin-top: 50px;
}

.main_text {
  font: 700 3em "Helvetica", sans-serif;
  color: #cfd2d8;
  text-align: center;
  padding-top: 60px;
}

aside.context {
  text-align: center;
  color: #fff;
  line-height: 1.7;
}

aside.context a {
  text-decoration: none;
  color: #fff;
  padding: 3px 0;
  border-bottom: 1px dashed;
}

aside.context .explanation {
  max-width: 700px;
  margin: 4em auto 0;
}

.periodic_table_inner {
  display: grid;
  grid-template-columns: repeat(5, 210px);
  grid-template-rows: repeat(3, 100px);
  grid-gap: 10px;
  margin: auto;
  padding-top: 60px;
  max-width: 1200px;
  justify-content: center;
}

.periodic_element {
  padding: 4px;
  position: relative;
  z-index: 1;
  cursor: default;
  transition: all 0.3s ease;
  display: flex;
  justify-content: space-between;
}

.periodic_element .periodic_element_inner {
  background: #ffffff;
  padding: 10px 15px;
  width: calc(100% - 30px);
  height: calc(100% - 20px);
  transition: inherit;
}

.periodic_element .table_title {
  font: 700 34px/1.3 "Helvetica", sans-serif;
  margin: 0.15em 0 0 -2px;
  transition: 0.8s ease 600ms;
}

.periodic_element .description {
  font: 500 13px "Helvetica", sans-serif;
  margin-top: -0.2em;
}

.periodic_element:after {
  z-index: 10;
  content: attr(data-description);
  background: #636d75;
  color: rgb(218, 225, 255);
  width: 220px;
  position: absolute;
  top: 80%;
  opacity: 0;
  transition: opacity 0.3s ease 0.3s, top 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.3s;
  height: auto;
  font-size: 16px;
  line-height: 1.2;
  padding: 10px;
  margin: 0 0 0 -25px;
  border-radius: 6px;
  text-align: center;
  pointer-events: none;
  cursor: pointer;
}

.periodic_element:hover {
  transform: scale(1.12);
  z-index: 10;
  cursor: pointer;
}

.periodic_element:hover .periodic_element_inner {
  background: transparent;
}

.periodic_element:hover .table_title,
.periodic_element:hover .description {
  -webkit-text-fill-color: #222;
}

.periodic_element:hover:after {
  top: 105%;
  opacity: 1;
  pointer-events: auto;
}

.just_trying {
  background: linear-gradient(to bottom right, #8e56be 0%, #A977D4 100%);
}

.just_trying .table_title,
.just_trying .description {
  background: -webkit-linear-gradient(#8e56be, #A977D4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.intense_work {
  background: linear-gradient(to bottom right, #ffa55b 20%, #fd9641 100%);
}

.intense_work .table_title,
.intense_work .description {
  background: -webkit-linear-gradient(#ffa55b, #fd9641);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.legend_table {
  padding: 15px;
  text-align: center;
  font-size: 16px;
  margin: 2em auto 0;
}

.legend_table__marker {
  width: 25px;
  height: 25px;
  margin: 5px 5px 10px;
  display: inline-block;
  vertical-align: middle;
  box-shadow: 0.5px 1px rgba(255, 255, 255, 0.15);
}

.legend_table__text {
  display: inline-block;
  vertical-align: middle;
  margin: 0 25px 5px 5px;
  background: -webkit-linear-gradient(#ccc, #eee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.img_table_inner {
  max-width: 60px;
  max-height: 60px;
}

.img_table {
  padding: 15px 4px 10px 9px;
}

/*---------Videos-----------*/
.professions_video {
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  padding: 60px 0;
  max-width: 70%;
}

#center_video {
  padding: 0 15px;
}

.application {
  font: 500 1.5em "Helvetica", sans-serif;
  color: #cfd2d8;
  text-align: center;
  padding: 20px;
  width: 490px;
  margin: 0 auto;
}

.application_txt {
  border-radius: 40px 40px 0 0;
  padding: 15px 30px;
  background-color: #A977D4;
  text-align: center;
  color: #ffffff;
  width: 100%;
}

.application_button {
  padding: 20px 0;
}

.application_btn {
  border-radius: 50px;
  padding: 17px 50px;
  background-color: #ffffff;
  text-align: center;
  color: #A977D4;
  margin-top: 400px;
}

#click {
  height: 30px;
  padding-left: 5px;
  margin-bottom: -6px;
}

/*---------Quote-----------*/
.quote {
  margin: 40px auto 0px;
  max-width: 70%;
  text-align: right;
  color: #cfd2d8;
  font: 100 14px "Helvetica";
  font-style: italic;
  padding-bottom: 20px;
}


/* Общие стили */
body {
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

.hero {
  background: #f4f4f4;
  padding: 2rem;
  text-align: center;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
  padding: 1rem;
}

.news-item {
  border: 1px solid #ddd;
  padding: 1rem;
  border-radius: 5px;
}

.all-news {
  padding: 2rem;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  padding: 1rem;
}

.gallery-item img {
  width: 100%;
  border-radius: 5px;
}

.news-grid-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 20px;
}

.news-card {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.news-image {
  height: 300px;
  overflow: hidden;
}


.news-card:hover .news-image img {
  transform: scale(1.05);
}

.news-content {
  padding: 20px;
}

.news-content h2 {
  margin-top: 0;
  color: #2c3e50;
  font-size: 1.3em;
}

.news-content p {
  color: #34495e;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-date {
  color: #7f8c8d;
  font-size: 0.8em;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
}

.news-grid-container {
  max-width: 1200px;
  margin: 30px auto;
  padding: 0 20px;
}

.news-grid-container h1 {
  font-family: 'Mulish', sans-serif;
  font-size: 2rem;
  color: #333;
  margin-bottom: 20px;
  text-align: center;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
  margin: 30px 0;
}

.news-card {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s;
  background: #fff;
}



.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.news-image {
  height: 300px;
  overflow: hidden;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.news-image.wide-image img {
  object-fit: contain;
  background: #f8f8f8; /* фон для пустых областей */
}

.read-more {
  display: inline-block;
  padding: 8px 16px;
  background-color: #0077bb;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  margin-top: 10px;
  transition: background-color 0.3s ease;
}

.read-more:hover {
  background-color: #0068a4;
}

.news-card:hover .news-image img {
  transform: scale(1.05);
}

.news-content {
  padding: 20px;
}

.news-content h2 {
  margin: 0 0 10px 0;
  font-size: 1.2em;
  color: #2c3e50;
  font-family: 'Mulish', sans-serif;
}

.news-content p {
  color: #34495e;
  margin-bottom: 15px;
  line-height: 1.5;
  font-family: 'Mulish', sans-serif;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-date {
  color: #7f8c8d;
  font-size: 0.8em;
  font-family: 'Mulish', sans-serif;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 40px 0;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  padding: 8px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  text-decoration: none;
  color: #333;
  font-family: 'Mulish', sans-serif;
}

.pagination a:hover {
  background: #f5f5f5;
}

.current-page {
  background: #3498db;
  color: white !important;
  border-color: #3498db !important;
}

@media (max-width: 768px) {
  .news-grid {
    grid-template-columns: 1fr;
  }

  .professions_video iframe {
    width: 100%;
    margin-bottom: 15px;
  }

  #center_video {
    margin: 0 0 15px 0;
  }
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin: 40px 0;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  text-decoration: none;
  color: #333;
  font-family: 'Mulish', sans-serif;
  transition: all 0.3s;
}

.pagination a:hover:not(.disabled) {
  background: #f5f5f5;
}

.current-page {
  background: #3498db;
  color: white !important;
  border-color: #3498db !important;
}

.disabled {
  color: #aaa !important;
  cursor: not-allowed;
  pointer-events: none;
  border-color: #eee !important;
  background-color: #f9f9f9 !important;
}

html {
  scroll-behavior: smooth;
}

/* Добавьте это правило для плавного скролла только при клике по пагинации */
.pagination a:not(.disabled) {
  transition: all 0.3s ease;
}

.news-grid {
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Стили для скролла к секции */
.scroll-target {
  scroll-margin-top: 20px;
  /* Отступ сверху при скролле */
}

@media (max-width: 768px) {

  /* Скрываем слайдер */
  .slider {
    display: none;
  }

  /* Уменьшаем отступ сверху для блока с новостями */
  .profesions {
    margin-top: 20px;
  }

  /* Уменьшаем размер заголовка "Новости колледжа" */
  .news-grid-container h1 {
    font-size: 1.5rem;
    margin-bottom: 10px;
  }

  /* Адаптируем карточки новостей для мобильных */
  .news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 0;
  }

  .news-image {
    height: 200px;
  }

  .news-content {
    padding: 15px;
  }

  .news-content h2 {
    font-size: 1.1em;
  }

  /* Адаптация пагинации */
  .pagination {
    gap: 3px;
  }

  .pagination a,
  .pagination span {
    padding: 6px 10px;
    font-size: 0.9em;
  }
}

.slider.slick-initialized .slider_content {
    opacity: 1;
}