@import url("https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&display=swap");

@font-face {
  font-family: "IranSans";
  src: url("../font/IranSans.ttf") format("truetype");
}

:root {
  --bg-color: #ffffff;
  --text-color: #4b515a;
  --paragraph-color: #8e939b;
  --accent-color: #3152d3;
}
* {
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "IranSans", sans-serif;
}
a {
  text-decoration: none;
}
body {
  position: relative;
  background-color: var(--bg-color);
}
::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: #fafafa;
}

::-webkit-scrollbar-thumb {
  background-color: var(--accent-color);
  border-radius: 10px;
}

.header_container {
  background-color: white;
  top: 0;
  position: fixed;
  display: flex;
  align-items: center;
  width: 100%;
  justify-content: center;
  padding: 20px 5px;
  z-index: 60;
  box-shadow: rgba(0, 0, 0, 0.158) 0px 0px 40px;
}

.header_container header {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 80%;
  justify-content: space-between;
}

header a .logo {
  width: 140px;
  height: auto;
}

.right_section {
  flex: 1;
  align-items: center;
  display: flex;
}

.right_section span {
  display: flex;
  gap: 20px;
  margin-right: 60px;
}

.right_section span a {
  color: var(--text-color);
}

.right_section span a {
  font-size: 15px;
  position: relative;
  padding: 5px 10px;
}

.right_section span a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: all 0.3s ease-in-out;
}

.right_section span a:hover {
  color: #000;
}

.right_section span a:hover::after {
  width: 100%;
  left: 0;
}

.header_container > header > a {
  display: flex;
  align-items: center;
}

.left_section > a {
  font-size: 14px;
  margin-right: 70px;
  color: var(--text-color);
  padding: 10px 30px;
  background-color: transparent;
  border-radius: 8px;
  border: 1px solid var(--paragraph-color);
  position: relative;
  overflow: hidden;
  transition: color 0.2s ease-in-out, border 0s ease-in-out;
}

.left_section > a::before {
  content: "";
  position: absolute;
  left: 0;
  border-radius: 6px;
  bottom: 0;
  width: 100%;
  height: 0;
  background-color: var(--accent-color);
  transition: height 0.2s ease-in-out;
  z-index: -1;
}

.left_section > a:hover::before {
  height: 100%;
}
.left_section > a:hover {
  color: #fff;
}

.burger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.burger span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--text-color);
  border-radius: 2px;
  transition: background 0.3s;
}

.sidebar {
  position: fixed;
  top: 0;
  right: -250px;
  width: 250px;
  height: 100%;
  background: white;
  box-shadow: rgba(0, 0, 0, 0.15) 0px 0px 20px;
  transition: right 0.3s ease-in-out;
  z-index: 100;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.sidebar.open {
  right: 0;
}

.sidebar .close-btn {
  cursor: pointer;
  font-size: 30px;
  display: block;
  text-align: left;
}
.mini_logo {
  margin: 0 auto;
  width: 180px;
  margin-bottom: 60px;
}

.sidebar nav a {
  display: block;
  margin-bottom: 35px;
  text-decoration: none;
  color: var(--text-color);
  font-size: 16px;
  padding-right: 20px;
}

.hero_section {
  margin-top: 55px;
  width: 100%;
  height: 450px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-image: url(../img/banner.png);
  background-position: top;
  background-repeat: no-repeat;
  background-size: cover;
}

h1 {
  font-optical-sizing: auto;
  color: white;
  text-align: center;
  font-size: 46px;
  font-weight: 600;
  margin-bottom: 20px;
  font-style: normal;
}

.hero_section p {
  width: 40%;
  text-align: center;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.178);
  backdrop-filter: blur(5px);
  padding: 30px;
  border-radius: 14px;
  font-size: 15px;
  box-shadow: rgba(250, 250, 250, 0.062) 0px 0px 29px 0px;
}
.backlinks {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: rgba(0, 0, 0, 0.178);
  backdrop-filter: blur(5px);
  padding: 10px;
  border-radius: 10px;
  box-shadow: rgba(250, 250, 250, 0.062) 0px 0px 29px 0px;
}
.backlinks a {
  font-size: 14px;
  color: white;
  transition: all 0.2s;
}
.backlinks a:hover {
  color: #bbbbbb;
}
.backlinks a:nth-child(2):hover {
  background-color: #e0e0e0;
}
.backlinks a:nth-child(2) {
  color: rgb(0, 0, 0);
  background-color: white;
  padding: 2px 25px;
  border-radius: 4px;
  font-size: 14px;
}

.group {
  display: flex;
  line-height: 28px;
  align-items: center;
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0px auto 0px auto;
}

.input {
  width: 100%;
  height: 40px;
  line-height: 28px;
  padding: 1.3rem 3rem 1.3rem 1rem;
  border: 2px solid transparent;
  border-radius: 8px;
  outline: none;
  background-color: #ffffff;
  color: rgb(51, 51, 51);
  transition: 0.3s ease;
  font-size: 12px;
  caret-color: var(--accent-color);
}

.input:focus {
  padding: 1.3rem 1rem 1.3rem 1rem;
}

.input:focus + .icon {
  opacity: 0;
  position: absolute;
  transform: translateX(10px);
}

.input::placeholder {
  color: #9e9ea7;
}

.top_section .left_section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.icon {
  position: absolute;
  right: 1rem;
  color: #919191;
  width: 1.3rem;
  height: 1.3rem;
  opacity: 1;
  transition: all 0.3s;
}

.news_section {
  width: 100%;
  display: flex;
  justify-content: center;
}
.news_container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 35px;
  padding: 50px;
}
.news_parent {
  display: flex;
  justify-content: center;
  margin: 0 auto;
}
.news_item {
  cursor: pointer;
  width: 100%;
  max-width: 340px;
  height: 430px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  background-color: var(--bg-color);
  padding: 10px;
  border-radius: 4px;
  border: 1px solid rgb(221, 221, 221);
  transition: all 0.2s ease-in-out;
}
.news_item:hover {
  transform: scale(1.01);
  box-shadow: rgba(0, 0, 0, 0.171) 0px 5px 15px;
}
.news_item img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.bot_section {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 0 10px;
  justify-content: space-between;
  height: 100%;
}

.bot_section h3 {
  font-weight: 600;
  color: var(--text-color);
  font-size: 16px;
  min-height: 50px;
}

.bot_section .info {
  width: 100%;
  color: var(--paragraph-color);
  font-size: 14px;
}

.more_parent {
  margin: 10px 0 6px 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.apply-btn {
  outline: none;
  border: none;
  font-size: 13px;
  border-radius: 7px;
  background-color: #3152d3;
  color: white;
  cursor: pointer;
  padding: 10px 17px;
  transition: all 0.2s;
}
.apply-btn:hover {
  background-color: #466bff;
}
.more_parent span {
  background-color: var(--accent-color);
  color: var(--bg-color);
  padding: 5px 10px;
  font-size: 12px;
  border-radius: 4px;
}
.location {
  border-radius: 14px;
  width: 350px;
  height: 250px;
  margin-left: 20px;
}
.more_parent a {
  color: #000;
  text-decoration: underline;
}
.filter-bar {
  width: 100%;
  max-width: 50%;
  margin: 30px auto 0px auto;
  background: #fff;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid rgb(179, 179, 179);
}

.filter-options {
  display: flex;
  gap: 10px;
}

.filter-btn {
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #ffffff;
  color: var(--text-color);
  cursor: pointer;
  font-size: 14px;
  transition: background 0.3s, color 0.3s;
}

.filter-btn.active {
  background-color: var(--accent-color);
  color: #fff;
  border-color: var(--accent-color);
}

.year-filter {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 5px;
}

.year-filter label {
  font-size: 14px;
  color: #333;
}

.year-filter input {
  width: 80px;
  padding: 5px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  outline: none;
}

footer {
  margin-top: 30px;
  box-shadow: rgba(0, 0, 0, 0.158) 0px 0px 40px;
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 40px 0;
  background-color: #fafafa;
}

.footer_container {
  margin: 0 auto;
  width: 75%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.info_container,
.link_container {
  display: flex;
  flex-direction: column;
  text-align: right;
}

.info_container {
  gap: 10px;
}

.footer_content {
  gap: 20px;
  display: flex;
  flex-direction: column;
  text-align: right;
}

.footer_content a {
  font-size: 14px;
  color: var(--text-color);
  transition: all 0.2s ease-in-out;
}

.footer_content img {
  width: 250px;
  height: auto;
}
.link_container:nth-child(2) {
  gap: 10px;
}
.footer_content h4 {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-color);
}

.footer_content a:hover {
  color: var(--accent-color);
}

.footer_content:nth-child(1) {
  gap: 120px;
}

.footer_content h4 svg {
  vertical-align: middle;
  width: 25px;
}

.footer_content h4:nth-child(2) svg,
.footer_content h4:nth-child(3) svg {
  width: 23px;
}

.footer_content:nth-child(1) p {
  color: var(--text-color);
}
.footer_content p {
  font-size: 14px;
}

@media (max-width: 1120px) {
  header {
    min-width: 90%;
  }
  .left_section {
    display: none;
  }
  .right_section {
    display: none;
  }
  .burger {
    display: flex;
  }
}
@media (max-width: 768px) {
  .filter-bar {
    max-width: 95%;
    gap: 10px;
  }
  .filter-options button {
    font-size: 11px;
  }
  .hero_section {
    height: 300px;
    margin-top: 65px;
  }
  .footer_content {
    text-align: center;
  }
  .footer_content:nth-child(1) {
    flex-direction: column;
    align-items: center;
  }
  .footer_container {
    flex-direction: column;
    align-items: center;
    gap: 40px;
    width: 90%;
    text-align: center;
  }
  .footer_content img {
    width: 200px;
  }
  .info_container,
  .link_container {
    text-align: center;
    align-items: center;
  }
  h1 {
    font-size: 30px;
  }
  .group {
    padding: 2rem;
  }

  .input {
    font-size: 11px;
    padding: 1.2rem 2.5rem 1.2rem 0.8rem;
  }

  .icon {
    right: 3rem;
    width: 1rem;
    height: 1rem;
  }
  .hero_section {
    margin-top: 65px;
  }
  .footer_content:nth-child(1) {
    gap: 20px;
  }
  .apply-btn {
    outline: none;
    border: none;
    font-size: 11px;
    padding: 10px 7px;
  }
  .news_item img {
    height: 180px;
  }
  .location {
    margin-left: 0;
  }
}
@media (max-width: 480px) {
  header a .logo {
    width: 100px;
  }
  .news_container {
    padding: 30px;
    gap: 20px;
  }
  .news_item img {
    height: 170px;
  }
}
