/* =========================
   Hero Section
========================= */

.hero {
  padding-top: 7.5rem;
  padding-bottom: 6rem;
  padding-right: 7.5rem;
  padding-left: 7.5rem;
  text-align: right;
  width: 100%;
}

/* meta text */
.hero .name {
  font-size: 1rem; /* 16px */
  font-weight: 400;
  color: #63669B;
  margin-bottom: 1.5rem;
  line-height: 1.85;
}

/* h1 */
.hero .title {
  font-size: 1.5rem; /* 24px */
  font-weight: 700;
  color: #333653;
  margin-bottom: 0.75rem;
  line-height: 1.85;
}

/* body text */
.hero .subtitle {
  font-size: 1.375rem; /* 22px */
  font-weight: 400;
  color: #474A71;
  line-height: 1.85;
}

/* =========================
   Projects Grid
========================= */

.projects {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding-right: 7.5rem;
  padding-left: 7.5rem;
  direction: rtl;
  margin-bottom: 7.5rem;
}

.project-card {
  background: none;
  border-radius: 0;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s ease;
  text-align: right;
}

.project-card:hover {
  transform: translateY(-0.375rem);
}

.project-card img {
  width: 100%;
  display: block;
}

.project-info {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  direction: rtl;
}

/* h3 */
.project-info h3 {
  margin: 0;
  font-size: 1.125rem; /* 18px */
  font-weight: 700;
  color: #333653;
  text-align: right;
  line-height: 1.85;
}

/* span / meta */
.project-info span {
  display: inline-block;
  font-size: 0.875rem; /* 14px */
  font-weight: 400;
  background: #F3F4F8;
  color: #474A71;
  border-radius: 0;
  padding: 0 1rem;
  height: 3rem;
  line-height: 3rem;
  white-space: nowrap;
}

/* =========================
   Footer
========================= */

.footer {
  background: #F3F4F8;
  padding: 2rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  direction: ltr;
}

.footer-item img {
  width: 1.25rem;
  height: 1.25rem;
}

.footer-item span {
  font-size: 0.875rem;
  line-height: 1.85;
  color: #474A71;
  font-weight: 400;
}

.divider {
  width: 0.0625rem;
  height: 1.5rem;
  background: #ABAECB;
}

/* =========================
   Responsive - Tablet
========================= */

@media (max-width: 64rem) {

  .projects {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding-right: 3rem;
    padding-left: 3rem;
    margin-bottom: 6rem;
  }

  .hero {
    padding-right: 3rem;
    padding-left: 3rem;
    padding-top: 6rem;
    padding-bottom: 6rem;
  }

  /* Font scale */
  .hero .title { font-size: 1.375rem; }
  .project-info h3 { font-size: 1.125rem; }

  .hero .subtitle { font-size: 1rem; }
  .project-info span,
  .hero .name,
  .footer-item span { font-size: 0.8125rem; }

  .project-info span {
    height: 2.5rem;
    line-height: 2.5rem;
  }

  .footer {
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
  }

  .divider {
    display: none;
  }
}

/* =========================
   Responsive - Mobile
========================= */

@media (max-width: 37.5rem) {

  .projects {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding-right: 2rem;
    padding-left: 2rem;
    margin-bottom: 5rem;
  }

  .hero {
    padding-right: 2rem;
    padding-left: 2rem;
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  /* Font scale */
  .hero .title { font-size: 1.25rem; }
  .project-info h3 { font-size: 1rem; }

  .hero .subtitle { font-size: 0.875rem; }
  .project-info span,
  .hero .name,
  .footer-item span { font-size: 0.75rem; }

  .project-info span {
    height: 2rem;
    line-height: 2rem;
  }

 
  .footer {
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
  }

  .divider {
    display: none;
  }
}
