@import url("base.css");

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.fr-header {
  background-color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-bottom: none;
}

.fr-header__operator {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.anah-logo {
  max-height: 3.5rem;
  width: auto;
  object-fit: contain;
}

.anah-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.anah-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #161616;
}

.anah-desc {
  font-size: 0.875rem;
  font-weight: 400;
  color: #666;
}

main {
  flex: 1;
  padding: 3rem 0;
  min-height: 400px;
  background-color: #F5F5FC;
}

.main-content {
  max-width: 78rem;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.main-content-inner {
  text-align: center;
  background: white;
  padding: 3rem 3rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.main-content h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #161616;
  margin: 0 0 1rem 0;
  line-height: 1.3;
}

.main-content .subtitle {
  font-size: 1.125rem;
  color: #666;
  margin: 0 0 3rem 0;
  line-height: 1.5;
}

.cards-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  padding: 0;
}

.app-card {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto 1fr;
  background: white;
  border: 1px solid #e5e5e5;
  border-radius: 0.25rem;
  padding: 0;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
  position: relative;
  min-height: 180px;
  overflow: hidden;
}

.app-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.card-logo {
  grid-column: 1;
  grid-row: 1 / -1;
  flex-shrink: 0;
  width: 140px;
  background-color: #F5F5FC;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
}

.card-logo img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.card-content {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  text-align: left;
  padding: 1.5rem 1.5rem 0.5rem 1.5rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #000091;
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
}

.card-title .subtitle-text {
  font-size: 0.875rem;
  font-weight: 400;
  color: #161616;
  display: block;
  margin-top: 0.25rem;
}

.card-url {
  font-size: 0.875rem;
  color: #666;
  margin: 0;
}

.card-arrow {
  grid-column: 2;
  grid-row: 2;
  align-self: end;
  justify-self: end;
  width: 24px;
  height: 24px;
  color: #000091;
  margin: 0 1.5rem 1.5rem 0;
}

.fr-footer {
  margin-top: auto;
}

.fr-footer__content-desc {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.fr-footer__partners {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.fr-footer__partners-title {
  font-size: 0.875rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
  color: #666;
}

.fr-footer__partners-logos {
  display: flex !important;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: flex-end;
  padding: 0;
  margin: 0;
}

.fr-footer__partner-link {
  display: inline-flex !important;
  align-items: center;
  text-decoration: none !important;
  height: 50px;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
}

.fr-footer__partner-link:hover,
.fr-footer__partner-link:focus {
  background: none !important;
  text-decoration: none !important;
  box-shadow: none !important;
}

.fr-footer__partner-logo {
  display: block !important;
  height: 50px !important;
  width: auto !important;
  max-width: 100px !important;
  object-fit: contain !important;
  opacity: 1 !important;
  visibility: visible !important;
  filter: none !important;
}

.fr-footer__partner-link::after {
  display: none !important;
  content: none !important;
}

@media (max-width: 991px) {
  main {
    padding: 3rem 0;

  }
  .main-content h1 {
    font-size: 1.75rem;
  }

  .anah-logo {
    max-height: 4rem;
  }

  .cards-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 767px) {
  main {
    padding: 2rem 0.5rem;

  }

  .main-content {
    padding: 1.5rem 1rem;
    margin-bottom: 2rem;
  }

  .main-content h1 {
    font-size: 1.5rem;
  }

  .main-content .subtitle {
    font-size: 1rem;
  }

  .fr-header__body {
    padding: 0;
  }

  .anah-logo {
    max-height: 3.5rem;
  }

  .cards-container {
    padding: 0 0.5rem;
    gap: 1.25rem;
  }

  .app-card {
    padding: 1.5rem 1rem;
    padding-right: 3rem;
    min-height: 240px;
  }

  .card-logo {
    min-height: 80px;
    margin-bottom: 1rem;
  }

  .card-logo img {
    max-height: 60px;
  }

  .card-title {
    font-size: 1.25rem;
  }

  .card-title .subtitle-text {
    font-size: 0.875rem;
  }

  .card-url {
    font-size: 0.875rem;
  }

  .card-arrow {
    right: 1rem;
    width: 28px;
    height: 28px;
  }

  .card-arrow svg {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 480px) {
  .main-content h1 {
    font-size: 1.25rem;
  }

  .app-card {
    padding: 1.25rem 0.75rem;
    padding-right: 2.5rem;
  }

  .card-arrow {
    right: 0.75rem;
  }
}

@media (min-width: 1200px) {

  .cards-container {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1400px;
  }
  main {
    padding: 6rem 0;
    min-height: 600px;
  }
}
