@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;700;800&display=swap");
* {
  font-family: "Inter", sans-serif;
  padding: 0 0px;
  margin: 0;
  box-sizing: border-box;
}
html {
  /* now rem value will be the multiple of it */
  font-size: 15px;
}
body {
  max-width: 1200px;
  margin: auto;
  padding-bottom: 3rem;
}
img {
  max-width: 100%;
  width: 100%;
}
p {
  font-size: 15px;
  line-height: 1.8;
  color: hsl(236, 13%, 42%);
}
a {
  font-size: 15px;
  text-decoration: none;
}
ul {
  list-style-type: none;
}

.header {
  /* background-color: red; */
  display: flex;
  justify-content: space-between;
  text-align: center;
  align-items: center;
  padding: 1.25rem;
}
nav li a {
  color: hsl(236, 13%, 42%);
}
.header nav {
  display: none;
}
/* hero section  */
.hero-section {
  padding: 1.25rem;
  padding-top: 0;
}
.hero-section h1 {
  font-size: 2rem;
  font-weight: 800;
  margin: 1rem 0;
  color: hsl(240, 100%, 5%);
}
.hero-para {
  color: hsl(236, 13%, 42%);
  margin-bottom: 1rem;
}
.read-more-btn {
  background-color: hsl(5, 85%, 63%);
  color: white;
  padding: 0.8rem 2rem;
  font-weight: 700;
  letter-spacing: 0.2rem;
  border: none;
  transition: all 0.3s ease-in-out;
}
.read-more-btn:hover {
  background-color: hsl(240, 100%, 5%);
  cursor: pointer;
}

/* right-part styling */
.hero-right-part {
  margin-top: 2rem;
  background-color: hsl(240, 100%, 5%);
  padding: 1.25rem 1.25rem 0;
}
.hero-right-part h2 {
  color: hsl(35, 77%, 62%);
  /* margin-bottom: 1rem; */
}
.hero-right-part h3 {
  color: white;
  margin-bottom: 0.5rem;
  transition: all 0.2s ease-in-out;
}
.hero-right-part h3:hover {
  color: hsl(35, 77%, 62%);
  cursor: pointer;
}
.hero-r-article:not(:last-child) {
  border-bottom: 1px solid hsl(236, 13%, 42%);
}
.hero-r-article {
  padding: 1.25rem 0;
}

/* cards section */
.cards-section {
  padding: 1.25rem;
}
.cards-section article {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  margin-bottom: 2rem;
}
.cards-section article span {
  font-size: 2rem;
  color: hsl(236, 13%, 42%);
  font-weight: bold;
  opacity: 75%;
}
.cards-section article h4 {
  font-size: 1.25rem;
  color: hsl(240, 100%, 5%);
  margin: 1rem 0;
}
.cards-section article img {
  width: 150px;
}
/*-------------------------------------------------tablet layout--------------------------------------------------- */
@media (min-width: 768px) {
  .cards-section {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin-top: 2rem;
  }
}
/*-------------------------------------------------website layout--------------------------------------------------- */
@media (min-width: 1024px) {

  .hero-section {
    display: flex;
    gap: 1.3rem;
  }
  .hero-right-part {
    margin-top: 0;
  }

  .hero-section h1 {
    font-size: 3rem;
  }
  .hero-left-part article {
    /* dontknow */
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    /* place-items: center; */
    margin-top: 2rem;
  }

  .cards-section {
    grid-template-columns: repeat(3, 1fr);
    /* gap: 12.5rem; */
    /* display: flex;
    justify-content: space-between;
    gap: 1.3; */
    /* flex-grow: 1;
    gap: 0.5rem; */
  }
  .header {
/*     
    background-color: aqua; */
    display: flex;
    justify-content: space-between;
    padding: 1.25rem 0;
   
  }
  .header nav{
    display: inline-block;
  }
  .logo{
    padding-left: 0.5rem;
  }


  nav li{
    display: inline-block;
    margin: 0 1.2rem;
    
  }
  .drawer-menu {
    display: none;
  }
  nav li a {
    color: hsl(236, 13%, 42%);
  }
  nav li a:hover {
    color: hsl(5, 85%, 63%);
  }
}
