/* space system
Type font: 9.6rem 6rem 4.8rem 3.4rem 2.4rem 2rem 1.6rem 1.2rem 1rem
 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #099268;
  --secondary-color: #e8590c;
  --third-color: #f08c00;
}

html {
  font-size: 10px;
}

body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-family: "Vazirmatn", serif;
  font-size: 1.4rem;
}

h2 {
  font-size: 3.4rem;
}

h3 {
  font-size: 2.4rem;
}

h4 {
  font-size: 2rem;
}

.landing-view {
  width: 100%;
  height: 100vh;
  background-image: url(../img/together.svg);
  background-size: cover;
  display: flex;
  flex-direction: column;
  align-items: center;
}

header {
  width: 100%;
  max-width: 120rem;
  padding: 0.8rem;
  margin-bottom: 16rem;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar .hamburger-menu {
  display: none;
}

.logo-section {
  flex: 1 1 auto;
  min-width: 40rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-with-slogan {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  align-items: center;
}

.logo-with-slogan img {
  height: 10rem;
}

.logo-with-slogan .logo-slogan {
  font-size: 1.2rem;
  letter-spacing: -0.05rem;
  transform: translateY(-0.8rem);
}

.logo-slogan .ma {
  color: rgba(21, 25, 29, 1);
}

.logo-slogan .na {
  color: rgba(21, 25, 29, 1);
}

.logo-slogan .math {
  color: rgba(21, 25, 29, 1);
}

.logo-section .logo-text {
  display: flex;
  flex-direction: column;
}

.logo-section .logo-title-fa {
  padding: 0.8rem;
  width: 30rem;
}

.logo-section .logo-title-en {
  padding: 0.8rem;
  align-self: stretch;
  text-transform: uppercase;
  font-family: "Lora", serif;
  font-size: 1rem;
  border-top: 0.2rem solid #000;
}

.header-links {
  flex: 2 1 auto;
  min-width: 40rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.4rem;
  gap: 2.4rem;
  transform: translateY(2rem);
  /* height: 100%; */
}

.header-link {
  font-family: "Vazirmatn", serif;
  font-size: 1.4rem;
  position: relative;
}

.header-link:link,
.header-link:visited {
  color: #000;
  text-decoration: none;
}

.header-link:hover,
.header-link:active {
  color: var(--primary-color);
  text-decoration: none;
}

/* Dropdown container styling */
.header-link-dropdown {
  position: relative;
}

.submenu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background-color: #ffffff;
  border: 0.1rem solid #ddd;
  border-radius: 0.4rem;
  box-shadow: 0 0.4rem 0.8rem rgba(0, 0, 0, 0.1);
  z-index: 1;
  flex-direction: column;
}

.header-link-dropdown:hover .submenu {
  display: flex;
}

/* Submenu links */
.submenu-link {
  padding: 0.8rem 1.2rem;
  white-space: nowrap;
  font-family: "Vazirmatn", serif;
  font-size: 1.4rem;
  color: #000;
  text-decoration: none;
}

.submenu-link:hover {
  background-color: #f0f0f0;
  color: var(--primary-color);
}

.login-register-btn {
  flex: 0 1 auto;
  width: 12.8rem;
  justify-self: end;
  cursor: pointer;
  border-radius: 0.8rem;
  transform: translateY(2rem);
}

.btn {
  font-family: "Vazirmatn", serif;
  color: #fff;
  background-color: var(--primary-color);
  padding: 0.8rem;
  border: none;
}

.container {
  display: flex;
  flex-direction: column;
  gap: 6.4rem;
  padding: 6.4rem;
  max-width: 120rem;
}

.purpose-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.purpose-header-txt {
  font-family: "Vazirmatn", serif;
}

.purpose-cards {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  gap: 3.2rem;
}

.purpose-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.purpose-img {
  width: 100%;
  max-height: 25rem;
}

.purpose-description {
  font-family: "Vazirmatn", serif;
  line-height: 1.5;
  font-size: 1.6rem;
}

.company-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 0.2rem solid var(--primary-color);
  border-radius: 1.6rem;
  width: 100%;
  padding: 0.8rem 1.6rem;
}

.company-section h3 {
  padding: 0.8rem 1.6rem;
}

/*****************************/
/****** STATISTICS SECTION *********/
/*****************************/
.stat-grid {
  padding: 4rem 1rem;
  direction: rtl;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr;
  gap: 1.2rem;
  width: 100%;
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
  justify-content: center;
}

.stat-item__icon {
  width: 8rem;
  height: 8rem;
  margin-bottom: 1.6rem;
}

.stat-num-section {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.stat-item__num {
  font-size: 8rem;
  color: var(--primary-color);
  margin: 0;
}

.stat-item__unit {
  color: #333;
  padding: 0.8rem 0;
}

.stat-item__title {
  color: #333;
  font-size: 1.4rem;
  margin-top: 0.5rem;
}
/*****************************/
/****** TEAM SECTION *********/
/*****************************/
.team-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1.2rem;
  margin-bottom: 2.4rem;
}

.person-card__container {
  position: relative;
}

.person-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: #170901;
}

.person-card__image {
  width: 12.8rem;
  height: 12.8rem;
  object-fit: fill;
  position: relative;
  z-index: 1;
}

.person-card__container::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80%;
  background-color: var(--secondary-color);
  opacity: 0.8;
  z-index: 0;
}

.person-card__content {
  margin-top: 1rem;
  text-align: center;
}

.person-card__title {
  margin: 0.5rem 0;
}

.person-card__position {
  font-size: 1.4rem;
  color: #777;
}

.staff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  grid-template-rows: 1fr;
  gap: 2.4rem;
}

/*****************************/
/****** FOOTER **************/
/*****************************/
.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.footer-links {
  width: 100%;
  background-color: #170901;
  color: #fff;
  padding: 2rem 2rem;
}

.footer-container {
  width: 100%;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.footer-column {
  flex: 1 1 0px;
  padding: 1rem;
}

.footer-list {
  list-style-type: none;
  padding: 0;
}

.footer-link:link,
.footer-link:visited {
  color: #aaa;
  text-decoration: none;
  font-size: 1.6rem;
}

.footer-link:hover,
.footer-link:active {
  color: #fff;
}

.copyright {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.copyright-container {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  width: 100%;
  padding: 0.2rem 1.6rem;
}

.back-orange {
  background-color: #ef8b55;
}

.back-black {
  background-color: #170901;
  color: #fff;
}

.logo-img--copyright {
  align-self: flex-start;
  width: 6.4rem;
  height: 6.4rem;
}

.farskbc:hover .logo-img--copyright {
  width: 7.2rem;
  height: 7.2rem;
}

.social-icons {
  align-self: flex-start;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 0.8rem;
  height: 7.2rem;
  margin-bottom: 0.8rem;
}

.icon {
  display: flex;
  width: 4rem;
  height: 4rem;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s;
  text-decoration: none;
}

.icon svg {
  width: 2.4rem;
  height: 2.4rem;
}

.icon:hover svg {
  width: 3.6rem;
  height: 3.6rem;
}

.copyright-txt {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.1;
  gap: 0px;
}

.footer-slogan {
  align-self: flex-start;
  margin-bottom: 0.8rem;
}
.copyright-part {
  display: inline-block;
}

.en-paragraph {
  font-size: 90%;
}

.elon {
  font-size: 1.2rem;
  margin-right: auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(24rem, 1fr));
  gap: 2.4rem;
  padding: 2.4rem;
  width: 100%;
}

.service-card {
  background-color: #fff;
  border-radius: 1.2rem;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-0.3rem);
}

.service-card__content {
  padding: 2.4rem;
  text-align: center;
}

.service-card__icon {
  width: 6.4rem;
  height: 6.4rem;
  margin-bottom: 1.6rem;
}

.service-card__title {
  font-size: 2rem;
  margin-bottom: 1.2rem;
  color: var(--primary-color);
}

.service-card__description {
  font-size: 1.4rem;
  line-height: 1.5;
  color: #444;
  margin-bottom: 1.6rem;
}

.service-card__link {
  display: inline-block;
  color: var(--primary-color);
  text-decoration: none;
  font-size: 1.4rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.service-card__link:hover {
  color: var(--secondary-color);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(40rem, 1fr));
  gap: 3.2rem;
  padding: 2.4rem;
  width: 100%;
}

.project-card {
  background-color: #fff;
  border-radius: 1.2rem;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-0.5rem);
}

.project-card__image-container {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  overflow: hidden;
}

.project-card__image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card__content {
  padding: 2.4rem;
}

.project-card__title {
  font-size: 2.4rem;
  margin-bottom: 1.2rem;
  color: var(--primary-color);
}

.project-card__description {
  font-size: 1.6rem;
  line-height: 1.6;
  color: #444;
  margin-bottom: 1.6rem;
}

.project-card__meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2.4rem;
  font-size: 1.4rem;
}

.project-card__status {
  padding: 0.6rem 1.2rem;
  background-color: var(--primary-color);
  color: #fff;
  border-radius: 2rem;
}

.project-card__link {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: var(--primary-color);
  color: #fff;
  text-decoration: none;
  border-radius: 0.8rem;
  transition: background-color 0.3s ease;
}

.project-card__link:hover {
  background-color: var(--secondary-color);
}

.cooperators-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3.2rem;
  padding: 2.4rem;
  width: 100%;
}

.cooperator-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  padding: 2.4rem;
  background-color: #fff;
  border-radius: 1.2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.cooperator-card:hover {
  transform: translateY(-0.3rem);
}

.cooperator-logo {
  width: 12rem;
  height: 12rem;
  object-fit: contain;
  margin-bottom: 1.6rem;
}

.cooperator-title {
  font-size: 1.6rem;
  color: #333;
  text-align: center;
  margin: 0;
}

.companies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
  gap: 3.2rem;
  padding: 2.4rem;
  width: 100%;
}

.company-card {
  background-color: #fff;
  border-radius: 1.2rem;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.company-card:hover {
  transform: translateY(-0.3rem);
}

.company-card__image-container {
  width: 100%;
  height: 16rem;
  padding: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f8f9fa;
}

.company-card__logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.company-card__content {
  padding: 2.4rem;
}

.company-card__title {
  font-size: 2rem;
  margin-bottom: 0.8rem;
  color: var(--primary-color);
}

.company-card__category {
  font-size: 1.4rem;
  color: #666;
  margin-bottom: 1.2rem;
}

.company-card__description {
  font-size: 1.4rem;
  line-height: 1.6;
  color: #444;
  margin-bottom: 1.6rem;
}

.company-card__meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2.4rem;
  font-size: 1.4rem;
}

.company-card__status {
  padding: 0.6rem 1.2rem;
  background-color: var(--primary-color);
  color: #fff;
  border-radius: 2rem;
}

.company-card__date {
  color: #666;
}

.company-card__link {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: var(--primary-color);
  color: #fff;
  text-decoration: none;
  border-radius: 0.8rem;
  transition: background-color 0.3s ease;
}

.company-card__link:hover {
  background-color: var(--secondary-color);
}

/* Filters Styling */
.companies-filters {
  display: flex;
  gap: 1.6rem;
  padding: 2.4rem;
  justify-content: center;
}

.filter-select {
  padding: 0.8rem 1.6rem;
  border: 1px solid #ddd;
  border-radius: 0.8rem;
  font-size: 1.4rem;
  background-color: #fff;
}

/* Pagination Styling */
.companies-pagination {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  padding: 2.4rem;
}

.pagination-btn {
  padding: 0.8rem 1.6rem;
  border: none;
  border-radius: 0.8rem;
  background-color: #f8f9fa;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pagination-btn:hover,
.pagination-btn.active {
  background-color: var(--primary-color);
  color: #fff;
}

.view-all-btn {
  display: inline-block;
  padding: 1.2rem 2.4rem;
  background-color: var(--primary-color);
  color: #fff;
  text-decoration: none;
  border-radius: 0.8rem;
  margin-top: 2.4rem;
  transition: background-color 0.3s ease;
}

.view-all-btn:hover {
  background-color: var(--secondary-color);
}

.workgroups-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3.2rem;
  padding: 2.4rem;
  width: 100%;
}

.workgroup-card {
  background-color: #fff;
  border-radius: 1.2rem;
  padding: 2.4rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.workgroup-card__title {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 2.4rem;
}

.workgroup-card__members {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.workgroup-member {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.workgroup-member__image-container {
  width: 4.8rem;
  height: 4.8rem;
  border-radius: 50%;
  overflow: hidden;
}

.workgroup-member__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.workgroup-member__name {
  font-size: 1.6rem;
  color: #333;
}

.workgroup-member__image[src*="Mr-Rafiepour"] {
  transform: translate(5px, 10px);
}

.workgroup-member__image[src*="Mr-Bagheri"] {
  transform: translate(0px, 10px);
}
