*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  background-color: #eef4ff;
  color: #1f2933;
  line-height: 1.5;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.header {
  background-color: #ffffff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem 0;
}

.logo {
  width: 56px;
  height: 56px;
  border-radius: 12px;
}

.title {
  font-size: 1.8rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.4px;
}

.intro {
  position: relative;
  background-image: url("./images/flags.png");
  background-size: cover;
  background-position: center;
  padding: 3.5rem 0;
}

.intro::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.15);
}

.intro > .container {
  position: relative;
  z-index: 1;
}

.intro-text {
  max-width: 820px;
  margin: 0 auto 2rem;
  padding: 1.6rem;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.6;
}

.features {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 620px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  overflow: hidden;
}

.features li {
  padding: 0.8rem 1.25rem;
  text-align: center;
  font-size: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.features li:last-child {
  border-bottom: none;
}

.languages {
  position: relative;
  background-image: url("./images/foreign-lang.jpg");
  background-size: cover;
  background-position: center;
  padding: 4rem 0;
}

.languages::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.18);
}

.languages > .container {
  position: relative;
  z-index: 1;
}

.languages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.language-card {
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  padding: 1.6rem;
  text-align: center;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.language-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12);
}

.language-card img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  margin-bottom: 1rem;
}

.language-card p {
  font-size: 1rem;
  line-height: 1.55;
}

.footer {
  background-color: #ffffff;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding: 1.5rem 0;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-text {
  font-size: 0.9rem;
  color: #4b5563;
}

.footer-nav {
  display: flex;
  gap: 1.25rem;
}

.footer-nav a {
  text-decoration: none;
  font-size: 0.9rem;
  color: #1f2933;
  transition: color 0.15s ease;
}

.footer-nav a:hover {
  color: #2563eb;
}

@media (max-width: 600px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .title {
    font-size: 1.5rem;
  }

  .intro-text {
    font-size: 1rem;
    padding: 1.3rem;
  }

  .features li {
    font-size: 0.95rem;
  }
}
