*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
img{
  width: 100%;
}
a{
  text-decoration: none;
  display: inline-block;
}
body {
  background: #ffffff;
  font-family: 'Inter', sans-serif;
  color: #2c241a;
  line-height: 1.4;
  position: relative;
}
.header {
  background: #ffffff;
  padding: 1.2rem 0;
  text-align: center;
  border-bottom: 1px solid #ffe0b5;
  position: sticky;
  top: 0;
  z-index: 9;
}
.logo {
  max-width: 200px;
  margin: auto;
}

.hero-section{
  background-size: cover;
  background-repeat: no-repeat;
  padding: 4rem 0;
}
.hero-heding {
    max-width: 620px;
    margin: auto;
    text-align: center;
}
.hero-heding h1{
  font-size: 4.5rem;
  line-height: 4.5rem;
  font-weight: bold;
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
  color: #ffffff;
}
.hero-heding p {
  font-size: 1.25rem;
  color: #ffffff;
  font-weight: 500;
}
/* main container */
.app-container {
  max-width: 80%;
  margin: 0 auto;
  padding: 1.5rem 0;
}

/* search box */
.search-wrapper {
    max-width: 880px;
    margin: auto;
    padding-bottom: 2rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
#searchInput {
    width: 100%;
    padding: 1rem 4rem 1rem 1rem;
    font-size: 1rem;
    border: 1px solid #d2d4d7;
    border-radius: 10px;
    background: white;
    transition: all 0.25s ease;
    outline: none;
    color: #d2d4d7;
}

.search-icon {
    position: absolute;
    right: 0;
    font-size: 1.2rem;
    border: 0;
    height: 50px;
    border-radius: 0 10px 10px 0;
    background-color: #fbbd23;
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.search-icon img{
  width: 24px;
}
#searchInput:focus {
  border-color: #d2d4d7;
  box-shadow: 0 8px 24px rgba(224,122,44,0.12);
}

#searchInput::placeholder {
  color: #d2d4d7;
  font-weight: 400;
}

/* latest recipes heading */
.section-title {
  text-align: center;
  padding-bottom: 0.75rem;
}
.section-title h2 {
    font-size: 3rem;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* grid layout */
.recipe-count {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    flex-wrap: wrap;
    margin: 0 -1.2rem;
}
/* card design */
.recipe-card {
  width: 24%;
  height: 100%;
  background: #fff;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
  box-shadow: 0 20px 30px -12px rgba(0, 0, 0, 0.12);
}
.recipe-card:hover {
  box-shadow: 0 20px 30px -12px rgba(0, 0, 0, 0.10);
}

.card-content {
  padding: 1.4rem 1.3rem 1.6rem;
}
.recipe-image {
  width: 100%;
  object-fit: cover;
  border-radius: 20px 20px 0 0;
}
.recipe-title {
    font-size: 1.55rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.65rem;
    line-height: 1.3;
}

.recipe-description  {
  margin: 0.5rem 0 1.2rem 0;
}

.recipe-description p {
  color: #1f2937;
  font-size: 1rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
  flex: 1;
}
.details{
  display: flex;
  justify-content: end;
  align-items: center;
}
.details-link {
    font-weight: 600;
    font-size: 1rem;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: 0.3px;
    background: #fbbd23;
    border: 1px solid #fbbd23;
    padding: 1.1rem 1.2rem;
    border-radius: 10px;
    transition: all 0.2s ease;
    margin-top: 0.4rem;
    text-transform: uppercase;
}

.details-link:hover {
  background: transparent;
  color: #fbbd23;
  border-color: #fbbd23;
}

/* no results message */
.no-results {
  text-align: center;
  grid-column: 1 / -1;
  background: #fff8f0;
  border-radius: 48px;
  padding: 3rem 2rem;
  color: #ad8a64;
  font-weight: 500;
  font-size: 1.2rem;
  border: 1px dashed #e7cfb5;
}

.no-results i {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
  color: #dba46c;
}

/* footer */
.footer {
  background: #3d4451;
  padding: 1.8rem 0;
}
.copyright {
  max-width: 80%;
  margin: 0 auto;
}

.footer p {
  font-size: 1rem;
  color: #ffffff;
  font-weight: 500;
}

@media (min-width: 1024px) and (max-width: 1362px){
  .copyright {
    max-width: 80%;
    padding: 0 1rem;
  }
}
@media (min-width: 768px) and (max-width: 1024px){
 .copyright {
    max-width: 80%;
    padding: 0 1rem;
  }
  .recipe-card {
   width: 48%;
  }
}


@media (max-width: 767px){
 .copyright {
    max-width: 80%;
    padding: 0 1rem;
  }
  .recipe-card {
   width: 100%;
  }
  .section-title h2 {
    font-size: 2rem;
  }
  .hero-heding h1 {
    font-size: 2.5rem;
    line-height: 2.5rem;
  }
 .card-content {
    padding: 1rem;
  }
}