* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary-color: #51ab47;
  --light-green: #58cc02;
  --dark-green: #58a700;
  --darker-green: #3f853f;
  --yellow: #ffad00;
  --item: "Itim", cursive;
}

body {
  font-family: "Inter", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-size: 16px;
  color: #525252;
}

img {
  display: block;
  max-width: 100%;
  width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h5,
p,
a {
  color: #525252;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--primary-color);
  font-family: "Shantell Sans", cursive;
  font-optical-sizing: auto;
}

h1 {
  font-size: clamp(1.5rem, 6vw, 3rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.25rem, 4vw, 2.5rem);
  font-weight: 700;
}

h3 {
  font-size: clamp(1rem, 3vw, 1.5rem);
  font-weight: 700;
}

a {
  text-decoration: none;
}

p {
  line-height: 1.5;
}

.wrapper {
  max-width: 1800px;
  margin: 0 auto;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 2px solid #e0e0e0;
}

/* Hero */
.hero {
  position: relative;
}

.hero_content {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 2rem;
}

.hero_title {
  font-size: clamp(1.5rem, 6vw, 3.5rem);
  margin-bottom: 1rem;
  text-align: center;
}

.hero_btn_container {
  display: flex;
  justify-content: center;
  gap: 1rem;
  align-items: center;
}

.btn {
  font-size: clamp(0.8rem, 2vw, 1rem);
  font-weight: 500;
  border-radius: 12px;
  transition: all 0.1s;
  padding: 0.9rem;
}

.btn_nav {
  font-size: clamp(0.5rem, 2vw, 0.8rem);
  font-weight: bold;
  border-radius: 8px;
  transition: all 0.1s;
  padding: 0.5rem 1rem;
}

.btn_nav:active {
  border-bottom: 2px solid var(--darker-green);
}

.with-color {
  color: #fff;
  background: var(--light-green);
  border: 2px solid var(--light-green);
  border-bottom: 6px solid var(--darker-green);
}

.no-color {
  background: #fff;
  border: 2px solid #e5e5e5;
  border-bottom: 6px solid #e5e5e5;
  color: var(--light-green);
}

.btn:active {
  border-bottom: 2px solid var(--darker-green);
}

/* About */

.about,
.how-to,
.why_lekita,
.about_author {
  padding: 1.5rem;
}

.features .feature_title {
  padding-left: 1.5rem;
}

.about_content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.about_image {
  display: none;
}

.about_title {
  width: 100%;
  font-size: 2rem;
}

.about_link {
  color: var(--yellow);
}

/* How to */
.how-to {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}
.red_arrow,
.how-to-item_arrow {
  display: none;
}

.how-to_item_2_title {
  display: block;
  margin-bottom: 1rem;
}

.how-to_item_2_title_1 {
  display: none;
}

.how-to_btn {
  align-self: center;
}

.how-to_item_3 {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.how-to_item_3_title {
  margin-bottom: 0.5rem;
}

/* Why lekita */
.why_lekita {
  background: #fafafa;
  display: flex;
  flex-direction: column;
  text-align: center;
  gap: 2rem;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.why_lekita_feats {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.why_item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.why_img {
  width: 20%;
}

.why_btn {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

/* About Author */
.about_author {
  padding-top: 4rem;
  padding-bottom: 4rem;
  text-align: center;
}

.about_author_content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about_author_title {
  margin-bottom: 1.5rem;
}

.about_author_image {
  width: 30%;
  margin-bottom: 1rem;
}

.about_author_details div {
  margin-bottom: 1.2rem;
}

.about_author_details p {
  font-size: 0.9rem;
}

.about_author_name_role h3 {
  color: #222;
  font-size: 1.2rem;
}

.about_author_name_role h4 {
  width: 70%;
  margin: 0 auto;
  text-align: center;
  color: #222;
  font-size: 0.8rem;
}

.about_author_name_role p {
  font-size: 0.8rem;
}

/* footer */
footer {
  position: relative;
}

.footer_top {
  position: absolute;
  bottom: 1.5rem;
  width: 100%;
}

.footer-logo_mobile {
  width: 140px;
}

.footer_bottom {
  width: 100%;
  text-align: center;
}

.footer_copy {
  color: white;
}

.footer_top_right_item p {
  color: var(--darker-green);
}

.socials {
  display: flex;
  gap: 1rem;
}

.footer_socials {
  display: flex;
  gap: 0.6rem;
}

.social-icons {
  width: 28px;
}

.relevant-icons {
  width: 200px;
}

.footer_top_left_item {
  margin-bottom: 1rem;
}

.footer-info {
  margin-bottom: 1rem;
}

.footer-info p:nth-child(1) {
  margin-bottom: 1rem;
}

.footer_top {
  bottom: 5px;
}

.footer-contents {
  padding: 0 1rem;
  margin-bottom: 4rem;
}

/* Articles */
.articles_section {
  padding-right: 1rem;
  padding-left: 1rem;
}

.articles_contents {
  text-align: center;
  margin-bottom: 1rem;
}

.article-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  background-color: #fff;
  padding: 16px;
  min-height: 100%;
}

.article-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
}

.article-title {
  font-size: 18px;
  font-weight: 600;
  margin: 2px 0; /* Added margin to provide consistent spacing */
}

.article-description {
  font-size: 16px;
  margin-bottom: auto; /* Allows description to take available space */
}

.author-card {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px; /* Add margin to push it away from the description */
}

.author-image {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

.author-info {
  display: flex;
  flex-direction: column;
}

.author-name {
  color: #222;
  font-size: 14px;
  font-weight: 300;
}

.author-role {
  font-size: 14px;
  color: var(--dark-green);
}

@media (min-width: 380px) {
  .footer-contents {
    padding: 0 1rem;
    margin-bottom: 8rem;
  }
}

.footer_copy {
  font-size: 0.8rem;
  padding-bottom: 0.2rem;
}

.footer-info {
  margin-bottom: 0.5rem;
}

.socials {
  margin-bottom: 0.5rem;
}

/* Gallery */
.gallery {
  padding: 1rem;
  text-align: center;
}

.gallery_contents {
  margin-bottom: 1rem;
}

.gallery_title {
  margin-bottom: 0.5rem;
}

.gallery_grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.more_text {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}

.more_text.show {
  max-height: 200px; /* Adjust this value based on your content's height */
}

.feature_cover {
  position: relative;
}

.lekita_box_design {
  position: absolute;
  width: 100px;
  top: 3%;
  left: 6%;
}

.lekita_environment_friend {
  position: absolute;
  width: 150px;
  top: 45%;
  left: 6%;
}

.lekita_cards_with_attitude {
  position: absolute;
  width: 130px;
  top: 50%;
  right: 6%;
}

.lekita_instruction_manual {
  position: absolute;
  width: 130px;
  top: 85%;
  right: 6%;
}

@media (min-width: 768px) {
  /* Hero */
  .hero {
    position: relative;
  }

  .hero_content {
    position: absolute;
    top: 30%;
    left: 240px;
    width: 50%;
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
  }

  .hero_title {
    width: 20ch;
    text-align: left;
  }

  .hero-cover {
    width: 100%;
    object-fit: contain;
    object-position: bottom;
  }

  /* About  */
  .about {
    display: flex;
    justify-content: center;
    gap: 10rem;
    padding: 4rem 0rem;
  }

  .about_content {
    width: 35%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .about_title {
    margin-bottom: 0.5rem;
    /* width: 12ch; */
  }

  .about_image {
    display: initial;
  }

  /* Features */
  .features {
    padding: 2rem 0rem;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .feature_title {
    position: relative;
    z-index: 1;
    width: 25ch;
    text-align: center;
    margin-bottom: -8rem;
  }

  /* How to  */

  .how-to {
    padding: 4rem 14rem;
  }

  .how-to_item {
    display: grid;
    grid-template-columns: 2fr 1fr;
    margin-bottom: 4rem;
  }

  .how-to_content_title {
    margin-bottom: 1rem;
  }

  .how-to_item_2 {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4rem;
  }

  .how-to_item-text {
    width: 70%;
  }

  .how-to_item-text_2 {
    width: 40%;
    text-align: right;
  }

  .how-to-item_arrow {
    justify-self: start;
    align-self: end;
    width: 50%;
  }

  .how-to-item_ilustration {
    justify-self: start;
    align-self: end;
    width: 50%;
  }

  .red_arrow,
  .how-to-item_arrow {
    display: unset;
  }

  .how-to_item_3 {
    display: grid;
    grid-template-columns: 1fr 0.8fr 0.5fr;
    gap: 6rem;
    align-items: center;
  }

  .red_arrow {
    align-self: start;
    margin-top: -3rem;
    width: 44%;
  }

  .how-to_item_2_title {
    display: none;
  }

  .how-to_item_2_title_1 {
    display: block;
    margin-bottom: 1rem;
  }

  .how-to_btn {
    align-self: center;
  }

  /* Why */
  .why_lekita {
    padding: 4rem 14rem;
    gap: 3rem;
  }

  .why_lekita_feats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
  }

  .why_btn {
    flex-direction: row;
    justify-content: center;
  }

  /* About author */
  /* About Author */
  .about_author {
    padding: 4rem 14rem;
    display: flex;
    justify-content: center;
    text-align: center;
  }

  .about_author_content {
    width: 60%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .about_author_title {
    margin-bottom: 1.5rem;
  }

  .about_author_image {
    width: 120px;
    margin-bottom: 1rem;
  }

  .about_author_details div {
    margin-bottom: 1.2rem;
  }

  .about_author_details p {
    font-size: 0.9rem;
  }

  .about_author_name_role h3 {
    color: #222;
    font-size: 1.5rem;
  }

  .about_author_name_role h4 {
    width: 70%;
    margin: 0 auto;
    text-align: center;
    color: #222;
    font-size: 1rem;
    font-weight: 400;
  }

  .about_author_name_role p {
    font-size: 1rem;
  }

  .footer-logo_desktop {
    width: 100px;
  }

  .footer-contents {
    display: flex;
    width: 70%;
    margin: 0 auto;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 10rem;
    color: var(--darker-green);
  }

  .footer_top_left_item {
    width: 30%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .footer_top_right_item {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }

  .footer-info {
    width: 85%;
  }

  .footer-info p:nth-child(1) {
    margin-bottom: 1rem;
  }

  .footer_top_left_item p {
    color: var(--darker-green);
    font-weight: bold;
  }

  .articles_section {
    padding: 2rem 10rem;
  }

  .articles_contents {
    text-align: center;
    margin-bottom: 1rem;
  }

  .articles-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  /* Gallery Grid */
  .gallery {
    padding: 4rem 10rem;
  }

  .gallery_contents {
    text-align: center;
    margin-bottom: 1rem;
  }

  .gallery_title {
    margin-bottom: 0.6rem;
  }

  .gallery_text {
    width: 60%;
    margin: 0 auto;
    text-align: center;
  }

  .gallery_grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr;
    grid-template-rows: repeat(2, 1fr);
    gap: 10px;
  }

  .gallery-item {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* Position the images in the grid */
  .item-1 {
    grid-row: 1 / span 2; /* Span across two rows */
    grid-column: 1; /* First column */
    align-self: stretch;
    justify-self: stretch;
    object-fit: contain;
  }

  .item-2 {
    grid-row: 1;
    grid-column: 2; /* Second column */
    align-self: stretch;
    justify-self: stretch;
  }

  .item-3 {
    grid-row: 2;
    grid-column: 2; /* Second column */
    align-self: stretch;
    justify-self: stretch;
  }

  .item-4 {
    grid-row: 1 / span 2; /* Span across two rows */
    grid-column: 3; /* Third column */
    justify-self: stretch;
    align-self: stretch;
    object-fit: cover;
  }

  /* Box pointers */
  .lekita_box_design {
    position: absolute;
    width: 100px;
    top: 39%;
    left: 18%;
  }

  .lekita_environment_friend {
    position: absolute;
    width: 150px;
    top: 80%;
    left: 19%;
  }

  .lekita_cards_with_attitude {
    position: absolute;
    width: 130px;
    top: 43%;
    right: 18%;
  }

  .lekita_instruction_manual {
    position: absolute;
    width: 150px;
    top: 74%;
    right: 19%;
  }

  /* Slide container */
  .slide-item {
    width: 100%; /* Make the width 100% to adapt to screen size */
    height: auto; /* Let the height adjust dynamically */
    background: red;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Hide overflow of images */
  }

  /* Images inside the slide */
  .slide-item img {
    width: 100%; /* Image should take the full width */
    height: auto; /* Height will adjust to maintain the aspect ratio */
    object-fit: cover;
  }
}
