/* 1. Use a more-intuitive box-sizing model */
*, *::before, *::after {
  box-sizing: border-box;
}

/* 2. Remove default margin */
* {
  margin: 0;
}

/* 3. Enable keyword animations */
@media (prefers-reduced-motion: no-preference) {
  html {
    interpolate-size: allow-keywords;
  }
}

body {
  /* 4. Add accessible line-height */
  line-height: 1.5;
  /* 5. Improve text rendering */
  -webkit-font-smoothing: antialiased;
}

/* 6. Improve media defaults */
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

/* 7. Inherit fonts for form controls */
input, button, textarea, select {
  font: inherit;
}

/* 8. Avoid text overflows */
p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

/* 9. Improve line wrapping */
p {
  text-wrap: pretty;
}
h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
}

/*
  10. Create a root stacking context
*/
#root, #__next {
  isolation: isolate;
}

body {
  font-family: 'Roboto', sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background-color: #f2f2f2;
}

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
}

header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1;
  background-color: rgba(0, 0, 0, 0.2);
  padding: 20px 0;
}

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

header .logo {
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  padding: 8px 16px;
  background-color: rgba(0, 0, 0, 0.2);
  font-family: 'Playfair Display', serif;
  text-transform: uppercase;
}

header nav {
  display: flex;
}

header nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

header nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: color 0.2s ease;
}

header nav a:hover,
header nav a:focus-visible {
  color: #bebebe;
}

.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 8px;
  background-color: rgba(0, 0, 0, 0.35);
  cursor: pointer;
  padding: 12px 10px;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.nav-toggle:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #fff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-of-type(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-of-type(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-of-type(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 768px) {
  header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1;
    background-color: rgba(0, 0, 0, 0.65);
  }

  header nav {
    position: absolute;
    top: 100%;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    background-color: rgba(0, 0, 0, 0.9);
    padding: 20px;
    border-radius: 12px;
    margin-top: 8px;
    backdrop-filter: blur(4px);
  }

  header nav.is-open {
    display: flex;
  }

  header nav ul {
    flex-direction: column;
    gap: 1.25rem;
  }

  header nav a {
    font-size: 1rem;
  }

  .nav-toggle {
    display: inline-flex;
  }
}

.hero {
  position: relative;
  z-index: 0;
  margin-top: 0;
  top: 0;
  min-height: 522px;
  display: flex;
  align-items: center;
  justify-content: center;
  @media (max-width: 768px) {
    align-items: flex-end;
    padding-bottom: 24px;
  }
  .small-container {
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
    @media (max-width: 768px) {
      max-width: 100%;
      padding-inline: 16px;
    }
    h1 {
      font-size: 4rem;
      font-weight: 600;
      color: #fff;
      @media (max-width: 768px) {
        font-size: 2.5rem;
      }
    }
    p {
      font-size: 1.5rem;
      font-weight: 600;
      color: #fff;
      margin-top: 16px;
      @media (max-width: 768px) {
        font-size: 1.2rem;
      }
    }
  }
  .bg-image {
    img {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      z-index: -1;
      display: flex;
      filter: brightness(0.7);
    }
  }
}

.intro {
  padding: 80px 0;
  background-color: #fff;
  h2 {
    font-size: 2.5rem;
    font-weight: 600;
    color: #6845ac;
    text-align: center;
    margin-bottom: 24px;
    font-family: 'Playfair Display', serif;
    max-width: 780px;
    margin: 0 auto;
    @media (max-width: 768px) {
      font-size: 2rem;
    }
  }
  .intro-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: #145737;
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
    line-height: 1.5;
    font-family: 'Playfair Display', serif;
    margin-top: 24px;
    @media (max-width: 768px) {
      font-size: 1rem;
    }
  }
  .icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 68px;
    margin-top: 48px;
    max-width: 980px;
    margin: 48px auto 0 auto;
    @media (max-width: 768px) {
      flex-direction: column;
      gap: 24px;
    }
    .icon-item {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 12px;
      img {
        width: 110px;
        height: 110px;
        object-fit: cover;
        margin-inline: auto;
      }
      .text {
        font-size: 1rem;
        font-weight: 600;
        color: #145737;
        text-align: center;
        line-height: 1.5;
        font-family: 'Playfair Display', serif;
      }
    }
  }
}

.about {
  padding: 80px 0;
  background-color: #f2f2f2;
  h2 {
    font-size: 2.5rem;
    font-weight: 600;
    color: #6845ac;
    text-align: center;
    margin-bottom: 24px;
    font-family: 'Playfair Display', serif;
    @media (max-width: 768px) {
      font-size: 2rem;
    }
  }
  .flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 44px;
    @media (max-width: 768px) {
      flex-direction: column-reverse;
      gap: 24px;
    }
    .text {
      flex: 1 1 50%;
      font-family: 'Roboto', sans-serif;
      h3 {
        font-size: 1.2rem;
        font-weight: 600;
        color: #6845ac;
        text-align: left;
        margin-block: 24px;
        
      }
      p {
        font-size: 1rem;
        font-weight: 400;
        color: #145737;
        text-align: left;
        line-height: 1.5;
        
      }
    }
    .image {
      flex: 1 1 50%;
      border-radius: 12px;
      overflow: hidden;
      img {
        width: 100%;
        height: 100%;
        object-fit: cover;
      }
    }
  }
}

.success-story {
  padding-block: 0px 80px;
  background-color: #f2f2f2;
  @media (max-width: 768px) {
    padding-block: 0px 40px;
  }
  h2 {
    font-size: 2.5rem;
    font-weight: 600;
    color: #6845ac;
    text-align: center;
    margin-bottom: 24px;
    font-family: 'Playfair Display', serif;
  }
  .subtitle {
    font-size: 1.2rem;
    font-weight: 600;
    color: #145737;
    text-align: center;
    margin-bottom: 24px;
    font-family: 'Playfair Display', serif;
  }
  .card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    .image {
      width: 183px;
      margin-bottom: -100px;
      position: relative;
      z-index: 1;
    }
    .text {
      border-radius: 32px;
      background-color: white;
      padding: 100px 24px 24px;
      font-family: 'Roboto', sans-serif;
      max-width: 780px;
      width: 100%;
      p {
        font-size: 1rem;
        font-weight: 600;
        color: #145737;
        text-align: left;
        line-height: 1.5;
        max-width: 580px;
        margin-inline: auto;
        text-align: center;
      }
    }
  }
}

footer {
  background-color: #fff;
  .footer-links {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin: 0;
    padding: 24px;;
    @media (max-width: 768px) {
      flex-direction: column;
      gap: 12px;
    }
  }
  .footer-links li a {
    font-size: 1rem;
    font-weight: 600;
    color: black;
    text-align: center;
    line-height: 1.5;
    transition: color 0.2s ease;
    text-decoration: none;
    &:hover,
    &:focus-visible {
      color: #6845ac;
    }
  }
  p {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    text-align: center;
    padding: 12px 0;
    line-height: 1.5;
    font-family: 'Roboto', sans-serif;
    background-color: black;
    &.grey {
      color: #0b3220;
      background-color: #cfcfcf;
    }
  }
}

.contact {
  padding: 80px 0;
  background-color: #f2f2f2;
  @media (max-width: 768px) {
    padding-block: 40px 0;
  }
  h2 {
    font-size: 2.5rem;
    margin-block: 24px;
    font-weight: 600;
    font-family: 'Playfair Display', serif;
    @media (max-width: 768px) {
      font-size: 2rem;
    }
  }
}

.disclaimer {
  padding-block: 80px 80px;
  background-color: #f2f2f2;
  @media (max-width: 768px) {
    padding-block: 40px;
  }
  p {
    font-size: 1.2rem;
    text-align: left;
    line-height: 1.5;
    font-family: 'Roboto', sans-serif;
    margin-block: 16px;
  }
}

.blog-card {
  margin-block: 80px 80px;
  @media (max-width: 768px) {
    margin-block: 40px;
  }
  .small-container {
    max-width: 880px;
    margin: 0 auto;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    @media (max-width: 768px) {
      flex-direction: column;
      gap: 12px;
      padding-inline: 16px;
    }
    .image {
      img {
        width: 100%;
        height: 500px;
        object-fit: cover;
        border-radius: 32px;
        @media (max-width: 768px) {
          border-radius: 16px;
          height: 300px;
        }
      }
    }
    a {
      font-size: 1.5rem;
      font-weight: 700;
      text-align: left;
      line-height: 1.5;
      text-decoration: none;
      font-family: 'Playfair Display', serif;
      color: black;
      margin-block: 16px;
      display: block;
      text-decoration: underline;
      &:hover,
      &:focus-visible {
        color: #145737;
        text-decoration: none;
      }
    }
    p {
      font-size: 1.2rem;
      font-weight: 400;
      color: #145737;
      text-align: left;
      line-height: 1.5;
      font-family: 'Roboto', sans-serif;
    }
  }
}

.hero-article {
  position: relative;
  z-index: 0;
  margin-top: 0;
  top: 0;
  min-height: 522px;
  display: flex;
  align-items: center;
  justify-content: center;
  .bg-image {
    img {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      z-index: -1;
      display: flex;
      filter: brightness(0.5) blur(3px);
    }
  }
  h1 {
    font-size: 2.5rem;
    font-weight: 600;
    color: #fff;
    text-align: center;
    margin-bottom: 24px;
    font-family: 'Playfair Display', serif;
    max-width: 880px;
    @media screen and (max-width: 768px) {
      font-size: 2rem;
    }
  }
}

.article {
  margin-top: -160px;
  position: relative;
  z-index: 1;
  background-color: white;
  max-width: 1280px;
  border-radius: 32px;
  margin-inline: auto;
  padding: 0 16px;
  @media (max-width: 768px) {
    padding-block: 4px;
    margin-block: 0;
    margin-top: -100px !important;
  }
  .container {
    padding: 80px;
    @media (max-width: 768px) {
      padding: 0px;
    }
    .image {
      img {
        width: 100%;
        height: 100%;
        object-fit: cover;  
        border-radius: 32px;
        @media (max-width: 768px) {
          border-radius: 16px;
          height: 300px;
        }
      }
    }
    h1 {
      font-size: 2.5rem;
      font-weight: 600;
      color: #145737;
      text-align: center;
      margin-bottom: 24px;
      font-family: 'Playfair Display', serif;
      @media (max-width: 768px) {
        font-size: 2rem;
      }
    }
    h2 {
      font-size: 1.5rem;
      font-weight: 600;
      color: #145737;
      text-align: center;
      margin-bottom: 24px;
      font-family: 'Playfair Display', serif;
      margin-block: 24px;
      @media (max-width: 768px) {
        font-size: 1.2rem;
      }
    }
    p {
      font-size: 1.2rem;
      font-weight: 400;
      color: #145737;
      text-align: left;
      line-height: 1.5;
      font-family: 'Roboto', sans-serif;
      margin-block: 16px;
    }
    ul {
      list-style: disc;
      margin-left: 24px;
      margin-block: 16px;
      li {
        font-size: 1.2rem;
        font-weight: 400;
        color: #145737;
      }
    }
  }
}

.tips {
  padding-block: 40px;
  background-color: #f2f2f2;
  @media (max-width: 768px) {
    margin-block: 40px;
  }
  h2 {
    font-size: 2.5rem;
    font-weight: 600;
    color: #145737;
    text-align: center;
    margin-bottom: 24px;
    font-family: 'Playfair Display', serif;
  }
  p {
    font-size: 1.2rem;
    font-weight: 400;
    color: #145737;
    text-align: center;
    line-height: 1.5;
    font-family: 'Roboto', sans-serif;
    margin-block: 16px;
  }
  a {
    font-size: 1.2rem;
    font-weight: 600;
    color: #145737;
    text-align: center;
    line-height: 1.5;
    font-family: 'Roboto', sans-serif;
    margin-block: 16px;
    padding: 12px 24px;
    border-radius: 999px;
    background-color: #145737;
    color: white;
    text-decoration: none;
    margin-inline: auto;
    display: block;
    width: fit-content;
    &:hover,
    &:focus-visible {
      background-color: #145737;
    }
    
  }
}