@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;
  border-radius: 6px;
  left: 0;
  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;
}

main {
  max-width: 1000px;
  margin: 100px auto 20px;
  padding: 20px;
}
article.news-article {
  margin-bottom: 40px;
}
.featured-image {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
}
.thumbnail {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 14px;
}
h1 {
  font-size: 28px;
  margin: 20px 0 10px;
  color: #3152d3;
}
.meta {
  font-size: 14px;
  color: #888;
  margin-bottom: 20px;
}
.content p {
  margin-bottom: 16px;
  font-size: 16px;
  color: #444;
}
.location {
  border-radius: 14px;
  width: 350px;
  height: 250px;
  margin-left: 20px;
}
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: 90%;
    gap: 10px;
  }
  .thumbnail {
    height: 200px;
  }
  .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;
  }
  .location {
    margin-left: 0;
  }
}
@media (max-width: 480px) {
  h1 {
    font-size: 20px;
  }
  header a .logo {
    width: 100px;
  }
  .news_container {
    padding: 30px;
    gap: 20px;
  }
  .content {
    margin: 0 auto;
    width: 95%;
  }
}
