a {
  color: inherit;
  text-decoration: overline;
}

.navbar_links {
  color: black;
}

.page__wrapper {
  .news_header {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;

    .news_header_title {
      font-size: 48px;
      font-weight: 500;

      color: #1760a4;
    }

    .news_header_btn {
      color: #1760a4;
      border: 1px solid #1760a4;
      display: flex;
      justify-content: center;
      align-items: center;
      padding: 0 50px;
      border-radius: 8px;
      cursor: pointer;
      transition: all 0.3s ease-in-out;
    }

    .news_header_btn:hover {
      background-color: #1760a4;
      color: #fff;
    }
  }
  .news_items {
    margin-top: 20px;
    display: grid;
    grid-template-columns: 1fr 4fr;
    gap: 20px;
    margin-bottom: 20px;

    .news_right {
      width: 300px;
      .news_date {
        .news_date_time {
          max-width: 270px;
          height: 50px;
          display: flex;
          justify-content: space-between;
          align-items: center;
          padding: 0 15px;
          font-family: Inter;
          font-size: 14px;
          font-weight: 400;
          color: #758393;
          border-radius: 5px;
          cursor: pointer;
          transition: color 0.3s ease-in-out, background-color 0.3s ease-in-out;
        }
        .news_date_time:hover {
          color: #ffffff;
          background-color: #1760a4;
        }
      }
    }
    .news_list {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 20px;

      .news_item {
        border-radius: 12px;
        overflow: hidden;
        width: 100%;
        justify-content: space-between;

        .news_item_img {
          height: 150px;
        }

        .news_item_img img {
          width: 100%;
          height: 150px;
          object-fit: cover;
          object-position: top;
        }
        .news_item_img_succes img {
          object-position: top;
        }

        .news_item_wrapper {
          padding: 10px 20px;
          height: 100px;
          display: flex;
          flex-direction: column;
          justify-content: space-between;
          gap: 10px;
          background-color: #ffffff;

          .news_item_header {
            display: grid;
            gap: 10px;

            .news_item_title {
              font-size: 14px;
              font-weight: 300;
              color: #0b2136;
              display: -webkit-box;
              -webkit-line-clamp: 3;
              -webkit-box-orient: vertical;
              overflow: hidden;
              text-overflow: ellipsis;
            }

            .news_item_date {
              font-size: 12px;
              font-weight: 600;
              color: #1760a4;
            }
          }

          .news_item_content {
            font-size: 14px;
            display: block;
            font-weight: 400;
            justify-content: space-between;
            align-items: end;

            color: #ebc271;
          }
        }
      }
    }
  }
}

.header {
  padding: 30px 0;
  align-items: center;
  justify-content: space-between;

  .header_logo img {
    width: 80px;
  }

  .header_links {
    display: flex;
    gap: 20px;

    .header_link {
      cursor: pointer;
      position: relative;
    }

    .header_link.active:after {
      content: "";
      position: absolute;
      left: 0;
      bottom: 0;
      width: 100%;
      height: 4px;
      background-color: #efcc8e;
      border-radius: 6px;
      transform: translateY(10px); /* немного опускаем ниже текста */
    }
  }

  .header_logo {
    width: 100px;
  }
}

.navigation {
  margin: 20px 0 0 0;
  display: flex;
  gap: 10px;
  font-weight: 600;
  cursor: pointer;
  align-items: center;

  .navigation_main {
    color: #1760a4;
  }
}
.navigation a {
  color: #1760a4;
}

.news_pagination {
  padding: 30px 0 50px 0;
  display: flex;
  width: 100%;
  justify-content: center;

  .news_pagination_prev {
    border: 1px solid #ecf4ff;
    width: 50px;
    height: 50px;
    aspect-ratio: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    color: #1760a4;
    border-radius: 12px 0 0 12px;
  }

  .news_pagination_next {
    border: 1px solid #ecf4ff;
    width: 50px;
    height: 50px;
    aspect-ratio: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    color: #1760a4;
    border-radius: 0 12px 12px 0;
  }

  .news_pagination_item {
    border: 1px solid #ecf4ff;
    width: 50px;
    background-color: #fff;
    height: 50px;
    aspect-ratio: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    color: #1760a4;
    transition: all 0.3s ease-in-out;
  }
  .news_pagination_item:hover {
    background-color: #1760a4;
    color: #fff;
  }

  .news_pagination_item.active {
    background-color: #1760a4;
    color: #fff;
  }
}

.news_detail {
  padding: 32px;
  margin-bottom: 20px;
  gap: 10px;
  background-color: #ffffff;
  border-radius: 15px;

  .news_detail_title {
    color: #1760a4;
    font-weight: 500;
    font-size: 26px;
  }

  .news_detail_img_description_img img {
    width: 350px;
    height: 350px;
    border-radius: 15px;
    object-fit: cover;
    object-position: top;
    float: left;
    margin-right: 25px;
  }

  .news_detail_img_description {
    font-family: Inter;
    gap: 20px;
    padding: 50px 0 10px 0;
    align-items: top;
    font-size: 16px;

    .commission_person_name {
      text-align: justify;
    }
  }

  .news_detail_description {
    color: #1760a4;
    font-size: 24px;
  }
  .news_detail_content {
    flex: 1;
  }
}

.title_on_the_right {
  display: none;
}

.news_detail_content img {
  max-width: 400px;
  max-height: 400px;
  object-fit: cover;
}

.news_detail_content p {
  font-family: Inter;
  line-height: 1.6;
  padding: 0 40px 0 0;
}

.footer_desc {
  color: white;
  .footer_top_bg {
    background: #263e6e;

    .footer_top {
      max-width: 1100px;
      margin: auto;
      padding: 50px 0;
      display: grid;
      grid-template-columns: 1fr 1fr;

      .footer_top_1 {
        height: 70px;
        display: flex;
        gap: 20px;

        .footer_top_1_text {
          width: 220px;
        }
      }

      .footer_top_2 {
        display: flex;
        gap: 20px;
        justify-content: space-around;

        .footer_top_2_text {
          width: 220px;
        }
        .footer_top_2_number {
          display: flex;
          flex-direction: column;
          gap: 10px;
          .footer_top_2_number_phone {
            font-size: 40px;
          }
        }
        .footer_top_2_social {
          display: flex;
          flex-direction: column;
          gap: 10px;

          .footer_top_2_number_phone {
            display: flex;
            align-items: center;
          }
          .footer_top_2_number_phone img {
            cursor: pointer;
          }
        }
      }
    }
  }
  .footer_bottom_bg {
    background: #1f1f1f;
    .footer_bottom {
      max-width: 1100px;
      margin: auto;
      padding: 15px 0;
    }
  }
}

.links {
  margin: 20px 0;
  display: flex;
  gap: 10px;

  .link {
    height: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: none;
    border-radius: 5px;
    padding: 5px 15px;
    transition: all 0.3s ease-in-out;
    color: #758393;
    font-family: Inter;
    font-size: 14px;
    cursor: pointer;
  }

  .link:hover {
    background-color: #1760a4;
    color: white;
  }
}

.links_mobile {
  display: none;

  .link_mobile {
    display: none;
  }
}

/* Стили для выпадающего меню на мобильных */
.dropdown {
  position: relative;
  display: inline-block;
  width: 100%;
}

.dropdown-button {
  margin-top: 20px;
  background-color: #fff;
  color: #333;
  padding: 15px 20px;
  width: 100%;
  font-size: 16px;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  width: 100%;
  text-align: left;
  gap: 10px;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #ffffff;
  min-width: 200px;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.1);
  z-index: 1;
  border-radius: 5px;
  overflow: hidden;
  top: 100%;
  left: 0;
  animation: fadeIn 0.3s ease-in;
}

.dropdown-content a {
  color: #333;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  transition: background-color 0.3s ease;
}

.dropdown-content a:hover {
  background-color: #e9f0fb;
}

.dropdown.active .dropdown-content {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-icon {
  float: right;
  transition: transform 0.3s ease;
}

.dropdown.active .dropdown-icon {
  transform: rotate(180deg);
}

.main {
  padding: 0 20px;
}

@media (max-width: 1400px) {
  .page__wrapper {
    .news_items {
      display: grid;
      grid-template-columns: 1fr;

      .news_list {
        grid-template-columns: repeat(3, 1fr);
      }
    }
  }

  .news_right {
    width: initial !important;
  }
  .links {
    display: none;

    .link {
      display: none;
    }
  }

  .links_mobile {
    display: flex;
    gap: 10px;
  }
}

@media (max-width: 1200px) {
  .page__wrapper {
    .news_items {
      .news_list {
        grid-template-columns: repeat(3, 1fr);
      }
    }
  }
}

@media (max-width: 1024px) {
  .page__wrapper {
    .news_items {
      .news_list {
        grid-template-columns: repeat(2, 1fr);
      }
    }
  }

  .news_detail_title {
    font-size: 24px !important;
  }

  .news_detail_img_description {
    display: flex !important;
    flex-direction: column !important;
  }

  .news_detail_description {
    font-size: 20px !important;
  }

  .news_item {
    display: block;

    .news_item_info {
      display: grid;
    }
  }
}

@media (max-width: 768px) {
  .news_detail {
    .news_detail_img_description_img img {
      width: 300px;
    }
  }

  .page__wrapper {
    .news_items {
      .news_list {
        grid-template-columns: repeat(1, 1fr);
      }
    }
  }
}

/* @media (max-width: 1200px) {
.header {
  padding: 30px 50px;
}
}

@media (max-width: 1024px) {
.header {
  padding: 20px 30px;
}
}

@media (max-width: 768px) {
.header {
  padding: 20px;
}
} */

@media (max-width: 1200px) {
  .footer_desc {
    color: white;
    .footer_top_bg {
      background: #263e6e;

      .footer_top {
        max-width: 1100px;
        margin: auto;
        padding: 20px;
        display: grid;
        gap: 50px;
        grid-template-columns: 1fr;

        .footer_top_1 {
          height: 70px;
          display: flex;
          gap: 20px;
          width: fit-content;

          .footer_top_1_text {
            width: 220px;
          }
        }

        .footer_top_2 {
          display: grid;
          gap: 20px;
          justify-content: start;
          width: 100%;

          .footer_top_2_text {
            width: 220px;
          }
          .footer_top_2_number {
            display: flex;
            flex-direction: column;
            gap: 10px;
            .footer_top_2_number_phone {
              font-size: 40px;
            }
          }
          .footer_top_2_number_phone_whatsapp {
            font-size: 20px;
            text-decoration: underline;
          }
          .footer_top_2_social {
            display: flex;
            flex-direction: column;
            justify-content: start;
            gap: 10px;
            align-items: center;

            .footer_top_2_number_phone {
              display: flex;
              gap: 30px;
            }
            .footer_top_2_number_phone img {
              cursor: pointer;
            }
          }
        }
      }
    }
    .footer_bottom_bg {
      background: #1f1f1f;
      .footer_bottom {
        max-width: 1100px;
        margin: auto;
        padding: 50px;
      }
    }
  }
}
