/* Home page styles only. */

.home-page {
  background: #ffffff;
  color: var(--color-text-main);
}

.home-container {
  width: min(calc(100% - 2 * clamp(30px, 11.45vw, 220px)), 1480px);
  margin-inline: auto;
}

.home-section {
  padding-block: 0;
}

.home-hero {
  width: 100%;
  background: #ede9e4;
}

.home-hero-link {
  display: block;
}

.home-hero img {
  display: block;
  width: 100%;
  height: auto;
}

.home-intro {
  padding-block: clamp(96px, 7.3vw, 140px) clamp(94px, 7.4vw, 142px);
}

.home-intro-grid {
  display: grid;
  grid-template-columns: minmax(430px, 800px) minmax(360px, 1fr);
  align-items: center;
  column-gap: clamp(86px, 6.15vw, 118px);
}

.home-intro-media img,
.home-featured-news img {
  display: block;
  width: 100%;
  height: auto;
}

.home-intro-content {
  max-width: 620px;
}

.home-intro-content h1,
.home-section-heading h2,
.home-insights h2 {
  margin: 0;
  font-family: var(--font-serif-cn);
  font-weight: 700;
  letter-spacing: 0;
  color: var(--color-text-main);
}

.home-intro-content h1 {
  font-size: clamp(34px, 2.25vw, 43px);
  line-height: 1.28;
}

.home-intro-content > p {
  max-width: 600px;
  margin-top: 33px;
  font-family: var(--font-sans-cn-regular);
  font-size: 16px;
  line-height: 1.95;
  font-weight: 400;
  color: var(--color-text-body);
}

.home-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  gap: 56px 108px;
  margin-top: 76px;
}

.home-stat strong {
  display: block;
  font-family: var(--font-sans-cn-medium);
  font-size: clamp(38px, 2.5vw, 48px);
  line-height: 1;
  font-weight: 500;
  color: var(--color-text-main);
}

.stat-unit {
  display: inline-block;
  font-family: var(--font-sans-cn-medium);
  line-height: 1;
  font-weight: 500;
  vertical-align: baseline;
}

.stat-unit-year {
  margin-left: 6px;
  font-size: 16px;
}

.stat-unit-plus {
  margin-left: 4px;
  font-size: 16px;
}

.home-stat p {
  margin-top: 14px;
  font-family: var(--font-sans-cn-medium);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 500;
  color: var(--color-text-body);
}

.home-citizenship {
  background: #f6f6f6;
  padding-block: clamp(100px, 7vw, 134px) clamp(112px, 7.9vw, 152px);
}

.home-citizenship-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  column-gap: clamp(40px, 4vw, 76px);
}

.home-section-heading h2,
.home-insights h2 {
  font-size: clamp(30px, 2vw, 38px);
  line-height: 1.35;
}

.home-section-heading p {
  margin-top: 13px;
  font-family: var(--font-sans-cn-regular);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
  color: var(--color-text-body);
}

.home-country-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(36px, 3.35vw, 64px);
  row-gap: 82px;
}

.home-country-card {
  display: flex;
  flex-direction: column;
  min-height: 252px;
  padding-bottom: 11px;
  border-bottom: 1px solid #d9d9d9;
  color: inherit;
  text-decoration: none;
}

.home-country-card img {
  display: block;
  width: 56px;
  height: 52px;
  align-self: flex-start;
  object-fit: contain;
  object-position: left top;
}

.citizenship-card--turkiye img,
.citizenship-card--sao-tome img {
  width: 56px;
}

.citizenship-card--st-kitts img {
  width: 56px;
}

.citizenship-card--st-lucia img {
  width: 56px;
}

.citizenship-card--more img {
  width: 56px;
}

.home-country-card h3 {
  margin: 18px 0 0;
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: 0;
  white-space: nowrap;
}

.home-country-card h3 span:first-child {
  font-family: var(--font-serif-cn);
  font-weight: 700;
}

.home-country-card h3 span:last-child:not(:first-child) {
  font-family: var(--font-en);
  font-size: 24px;
  font-weight: 300;
}

.home-country-card h3 a {
  margin-top: 0;
  padding-top: 0;
  font: inherit;
  line-height: inherit;
  color: inherit;
  text-decoration: none;
  white-space: inherit;
}

.home-country-card p {
  min-height: 68px;
  margin-top: 22px;
  font-family: var(--font-sans-cn-regular);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  color: var(--color-text-body);
}

.home-country-card-link,
.home-advantage-item a,
.home-news-item a {
  display: inline-block;
  color: var(--color-gold);
  text-decoration: none;
  letter-spacing: 0;
}

.home-country-card-link {
  margin-top: auto;
  padding-top: 18px;
  font-family: var(--font-en);
  font-size: 16px;
  line-height: 1.3;
  font-weight: 300;
  white-space: nowrap;
}

.home-advantages {
  background: #ffffff;
  padding-block: clamp(100px, 7.8vw, 150px) clamp(104px, 8vw, 154px);
}

.home-advantage-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(170px, 220px));
  justify-content: space-between;
  column-gap: clamp(56px, 6.4vw, 122px);
  margin-top: 108px;
  margin-left: 0;
  width: 100%;
}

.home-advantage-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 0;
  padding-bottom: 0;
}

.home-advantage-item img {
  display: block;
  width: 104px;
  height: auto;
  object-fit: contain;
  margin-bottom: 48px;
  margin-left: -4px;
}

.home-advantage-item h3,
.home-featured-news h3,
.home-news-item h3 {
  margin: 0;
  font-family: var(--font-serif-cn);
  font-weight: 700;
  color: var(--color-text-main);
}

.home-advantage-item h3 {
  font-size: 24px;
  line-height: 1.25;
}

.home-en {
  margin-top: 8px;
  font-family: var(--font-en);
  font-size: 16px;
  line-height: 1.4;
  font-weight: 300;
  color: var(--color-text-body);
}

.home-advantage-item > p:not(.home-en) {
  margin-top: 32px;
  font-family: var(--font-sans-cn-regular);
  font-size: 16px;
  line-height: 1.85;
  font-weight: 400;
  color: var(--color-text-body);
}

.home-advantage-item a {
  margin-top: auto;
  padding-top: 20px;
  font-family: var(--font-sans-cn);
  font-size: 13px;
  line-height: 1.3;
  font-weight: 300;
}

.home-insights {
  background: #f6f6f6;
  padding-block: clamp(94px, 6.45vw, 124px) clamp(104px, 7.2vw, 138px);
}

.home-insights h2 {
  margin-bottom: 46px;
}

.home-insights-grid {
  display: grid;
  grid-template-columns: minmax(420px, 640px) minmax(520px, 1fr);
  column-gap: clamp(72px, 7.5vw, 144px);
  align-items: stretch;
}

.home-featured-news img {
  aspect-ratio: 1.52;
  object-fit: cover;
}

.home-featured-news h3 {
  margin-top: 30px;
  font-size: 24px;
  line-height: 1.35;
}

.home-featured-news p,
.home-news-item p {
  font-family: var(--font-sans-cn-regular);
  font-size: 16px;
  line-height: 1.85;
  font-weight: 400;
  color: var(--color-text-body);
}

.home-featured-news p {
  margin-top: 21px;
  max-width: 640px;
}

.home-news-list {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.home-news-item {
  display: flex;
  flex-direction: column;
  padding-bottom: 0;
  border-bottom: 0;
}

.home-news-item:first-child {
  padding-bottom: 46px;
  border-bottom: 1px solid #d7d7d7;
}

.home-news-item h3 {
  font-size: 24px;
  line-height: 1.35;
}

.home-news-item p {
  margin-top: 22px;
}

.home-news-item a {
  margin-top: 28px;
  font-family: var(--font-sans-cn-regular);
  font-size: 16px;
  line-height: 1.3;
  font-weight: 400;
}

.home-news-item:last-child {
  margin-top: auto;
  padding-top: 58px;
  padding-bottom: 0;
  border-bottom: 0;
}

@media (max-width: 1200px) {
  .home-intro-grid,
  .home-insights-grid {
    grid-template-columns: 1fr;
  }

  .home-citizenship-grid {
    grid-template-columns: 1fr;
    row-gap: 52px;
  }

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

  .home-advantage-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 72px;
  }

}

@media (max-width: 900px) {
  .home-container {
    width: min(calc(100% - 48px), 1480px);
  }

  .home-intro,
  .home-citizenship,
  .home-advantages,
  .home-insights {
    padding-block: 72px;
  }

  .home-intro-grid {
    row-gap: 42px;
  }

  .home-stats {
    gap: 34px 44px;
    margin-top: 48px;
  }

  .home-country-list {
    column-gap: 34px;
    row-gap: 58px;
  }

  .home-advantage-list {
    margin-top: 64px;
  }

  .home-advantage-item > p:not(.home-en) {
    margin-top: 28px;
  }

}

@media (max-width: 640px) {
  .home-container {
    width: min(calc(100% - 36px), 1480px);
  }

  .home-intro-content h1,
  .home-section-heading h2,
  .home-insights h2 {
    font-size: 30px;
  }

  .home-stats,
  .home-country-list,
  .home-advantage-list {
    grid-template-columns: 1fr;
  }

  .home-country-card,
  .home-advantage-item {
    min-height: 0;
  }

  .home-country-card h3 {
    white-space: normal;
  }

  .home-insights h2 {
    margin-bottom: 34px;
  }

  .home-news-item h3 {
    font-size: 21px;
  }
}
