/* Hero */
.home-hero {
  height: 575px;
  width: 100%;
  position: relative;
}

.home-hero .container {
  height: 100%;
}

.home-hero-media {
  height: 100%;
  position: absolute;
  inset: 0;
}
.home-hero-media picture {
  width: 100%;
  height: 100%;
  display: block;
}

.intro-content a {
  color: var(--primary500);
  transition: 0.3s ease all;
}

.intro-content a:hover {
  color: var(--primary700);
  transition: 0.3s ease all;
  text-decoration: underline;
}

.home-hero-media img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  display: block;
}

.home-hero-overlay {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(360deg, #021f19 0%, rgba(2, 31, 25, 0) 100%);
  pointer-events: none;
}

.home-hero-content {
  height: 100%;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-top: auto;
  padding: 50px 0;
  color: var(--surface50);
}

.home-hero-title {
  max-width: 548px;
}
.home-hero-text {
  max-width: 500px;
}

/* Keywords part */
.home-keywords {
  background-color: var(--primary500);
  overflow: hidden;
}

.home-keywords-track {
  display: flex;
  width: -webkit-max-content;
  width: -moz-max-content;
  width: max-content;
  -webkit-animation: home-keywords-marquee 25s linear infinite;
  animation: home-keywords-marquee 30s linear infinite;
}

.home-keywords-list {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  list-style: none;
  margin: 0;
  padding: 16px 0;
}

.home-keyword {
  color: var(--surface50);
  text-transform: uppercase;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 60px;
  padding: 0 30px;
}

.home-keyword::before {
  content: "";
  width: 10px;
  height: 10px;
  min-width: 10px;
  background-color: var(--secondary500);
  border-radius: 50%;
  flex-shrink: 0;
}

@-webkit-keyframes home-keywords-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-25%);
  }
}

@keyframes home-keywords-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-25%);
  }
}

/* Introduction */
.intro {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.map-image {
  position: absolute;
  top: 50%;
  left: max(50px, calc((100vw - 1440px) / 2 + 50px));
  z-index: 0;
  height: auto;
  width: calc((min(1440px, 100vw) - 145px) / 2);
  transform: translateY(-50%);
  pointer-events: none;
  max-width: 560px;
  max-height: 500px;
}

.map-image img {
  width: 100%;
  height: auto;
  display: block;
}

.intro .container {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 45px;
  position: relative;
  z-index: 1;
}

.intro-content > span {
  text-transform: uppercase;
  color: var(--surface300);
}

.intro-content p {
  margin-top: 32px;
  color: var(--surface300);
  font-family: "Inter";
  font-weight: 400;
  font-size: 16px;
  line-height: 140%;
}

.intro-content :is(h1, h2, h3, h4, h5, h6) {
  color: var(--surface700);
  margin-top: 0;
  margin-bottom: 40px;
  font-family: "Roboto";
  font-weight: 600;
  font-size: 36px;
  line-height: 120%;
}

/* Follow BISC */
.home-follow-inner {
  display: flex;
  align-items: stretch;
  min-height: 250px;
  border-radius: 4px 4px 0 0;
  background-color: var(--surface700);
  overflow: hidden;
}

.home-follow-label {
  flex: 1;
  display: flex;
  align-items: flex-start;
  color: var(--secondary500);
  text-transform: uppercase;
  padding: 36px 32px 0 32px;
}

.home-follow-card {
  display: flex;
  flex-direction: column;
  padding: 36px 60px;
  border-left: 1px solid var(--secondary500);
  color: var(--surface50);
}

.home-follow-card svg {
  transition: color 0.2s ease;
}

.home-follow-card:hover svg {
  color: var(--secondary500);
}

.home-follow-card:last-child {
  padding-right: 32px;
}

.home-follow-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.home-follow-card-title {
  color: var(--surface50);
}

.home-follow-card-header img {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.home-follow-card-desc {
  margin-top: auto;
  color: var(--surface50);
  max-width: 300px;
}

/* Content sections */
.home-latest-news {
  padding: 80px 0;
  background-color: var(--surface150);
}

.home-analysis {
  padding: 120px 0;
}

.home-archives-header {
  display: flex;
  align-items: center;
  margin-bottom: 32px;
  justify-content: space-between;
}

.home-archives-header > a {
  display: flex;
  gap: 8px;
  align-items: center;
}

.home-archives-header > a:hover {
  color: var(--primary700);
  transition: 0.3s ease all;
}

.home-archives-header > a:hover svg path {
  stroke: var(--primary700);
  transition: 0.3s ease all;
}

.home-archives-header > * {
  text-transform: uppercase;
}

.home-archives-header > p {
  color: var(--surface300);
}

.home-section-link {
  color: var(--primary500);
  transition: 0.3s ease all;
}

.home-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 32px;
}

.home-card {
  border-radius: 4px;
  background-color: var(--surface50);
}

.home-card-link {
  display: flex;
  flex-direction: column;
  padding: 40px;
  border-radius: 4px;
  height: 100%;
}

.home-card-link.analysis-card {
  padding: 32px 0px 0px 0px;
  border-top: 1px solid var(--surface150);
}

.home-card-info {
  color: var(--surface300);
  margin-top: 8px;
}

.home-card-summary {
  color: var(--surface700);
  margin-top: 24px;
  margin-bottom: 32px;
}

.analysis-card-image {
  aspect-ratio: 16 / 10;
  margin-top: auto;
  border-radius: 4px;
  overflow: hidden;
}

.analysis-card-image img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  display: block;
}

.home-card-category {
  margin-bottom: 16px;
  color: var(--primary500);
  text-transform: uppercase;
}

.home-card-title {
  margin: 0;
  color: var(--surface700);
  transition: color 0.4s ease;
}

.home-card:hover .home-card-title {
  text-decoration: underline;
  color: var(--primary500);
}

.home-latest-news .home-card:hover {
  box-shadow: var(--shadow-top-light-small);
}

.home-card-text {
  margin: 24px 0 0;
  color: var(--surface300);
}

.home-card-date {
  margin-top: auto;
  padding-top: 40px;
  color: var(--surface300);
}

/* Responsive */
@media (max-width: 1024px) {
  /* Hero */
  .home-hero-content {
    flex-direction: column;
    justify-content: end;
    align-items: start;
  }

  .home-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .map-image {
    left: 32px;
    width: calc((100vw - 109px) / 2);
  }

  .intro .container {
    gap: 0px;
  }
}

@media (max-width: 900px) {
  .intro .container {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .intro {
    padding: 80px 0;
    display: flex;
    flex-direction: column;
  }

  .map-image {
    position: unset;
    width: 100%;
    max-width: unset;
    transform: unset;
    display: flex;
    justify-content: center;
    order: 2;
  }

  .map-image img {
    max-height: 315px;
    width: auto;
  }
}

@media (max-width: 768px) {
  /* Hero */
  .home-hero {
    height: calc(
      100dvh - var(--mob-header-h) - var(--mob-hero-extra-offset-h) -
        var(--wp-admin--admin-bar--height, 0px)
    );
  }

  .intro,
  .home-latest-news,
  .home-analysis {
    padding: 60px 0;
  }

  .map-image {
    position: static;
    width: 100%;
    padding: 0 16px;
    transform: none;
  }

  .home-card-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .home-analysis .home-card-grid {
    gap: 32px;
  }

  .home-card-link {
    padding: 24px;
  }

  .home-card-text {
    margin-top: 16px;
  }

  .home-card-date {
    padding-top: 32px;
  }

  .home-card-link.analysis-card {
    padding-top: 24px;
  }

  .home-card-summary {
    margin-bottom: 24px;
  }

  .intro-content p {
    margin-top: 24px;
    font-size: 14px;
  }

  .intro-content :is(h1, h2, h3, h4, h5, h6) {
    margin-bottom: 32px;
    font-size: 30px;
  }

  /* Keywords */
  .home-keywords-list {
    padding: 14px 0;
  }

  .home-keyword {
    gap: 40px;
    padding: 0 20px;
  }

  /* Follow */
  .home-follow-inner {
    flex-direction: column;
    min-height: unset;
    border-radius: 4px;
  }

  .home-follow-label {
    width: 100%;
    padding: 40px 16px 36px;
    border-bottom: none;
    position: relative;
  }

  .home-follow-label::after {
    content: '';
    display: block;
    position: absolute;
    bottom: 0;
    left: 16px;
    right: 60px;
    border-bottom: 1px solid var(--secondary500);
  }

  .home-follow-card {
    flex: unset;
    width: 100%;
    border-left: none;
    border-top: none;
    padding: 36px 16px 36px 16px;
    position: relative;
  }

  .home-follow-card:not(:last-child)::after {
    content: '';
    display: block;
    position: absolute;
    bottom: 0;
    left: 16px;
    right: 16px;
    border-bottom: 1px solid var(--secondary500);
  }

  .home-follow-card-desc {
    margin-top: 24px;
  }

  .home-follow-card:last-child {
    padding-right: 16px;
  }
}
