@import "./colors.css";

.search-container {
  padding: 0 1rem;
}

.search-form {
  display: flex;
  align-items: center;
  max-width: 810px;
  background-color: var(--color-light-pink);
  border: 2px solid #EB92B9; 
  border-radius: 50px;    
  padding: 10px 15px; 
  box-shadow: 0 2px 5px rgba(0,0,0,0.05); 
  margin: 0 auto;
  margin-top: 40px;
  @media screen and (max-width: 1024px){
    margin-top: 18px;
  }
}
.search-submit {
  margin-left: 8px;
}
.search-input {
  flex: 1;    
  border: none;
  outline: none;
  font-size: 18px;
  color: #4D4D4D;
  background: transparent;
  font-weight: 500;
  @media screen and (max-width: 1024px){
    font-size: 12px;
  }
}

.search-input::placeholder {
  color: #EB92B9;
}

.search-icon {
  width: 16px;
  height: 16px;
  @media screen and (max-width: 1024px){
    width: 13px;
    height: 13px;
  }
}

#searchArea {
  padding: 0 1rem;
}

.search-item {
  display: flex;
  align-items: flex-start;  
  gap: 12px;
  padding: 20px 16px;
  @media screen and (max-width: 1024px){
    gap: 8px;
    padding: 14px 12px;
  }
}

.search-item-left {
  flex-shrink: 0;
  width: 156px;
  @media screen and (max-width: 1024px){
    width: 103px;
  }
}

.item-thumb {
  width: 100%;
  height: auto;
  border-radius: 6px;
  object-fit: cover;
  aspect-ratio: 4/3; 
}

.search-item-right {
  flex-grow: 1;
}

.item-title {
  margin-bottom: 6px;
  font-size: 19px;
  font-weight: bold;
  line-height: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  @media screen and (max-width: 1024px){
    font-size: 14px;
  }
}

.item-title a {
  text-decoration: underline !important;
  color: var(--color-black);             
}

.item-desc {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-black);
  line-height: normal;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 18px;
  @media screen and (max-width: 1024px){
    font-size: 10px;
    line-height: 12px;
  }
}
.search-item-wrapper {
  display: flex;
  flex-direction: column;
}

.separator {
  border-bottom: 2px dotted var(--color-pink);
  margin-top: auto;
}

.search-item-wrapper:nth-last-child(2) .separator {
  @media screen and (min-width: 1023px){
    display: none;
  }
}

.search-item-wrapper:last-child .separator {
  display: none;
}

.search-result{
  max-width: 1080px;
  margin: 0 auto;
  width: 100%;
  margin-top: 16px;
  display: grid;
  @media screen and (min-width: 1023px){
    grid-template-columns: repeat(2, 1fr);
    column-gap: 30px;
  }
}

.dot_line_red {
  @media screen and (min-width: 1023px){
    background-size: 8px 4px !important;
  }
}

.archiveTgb_swiper {
  background: white !important;
}

.archiveTgb_jumbotron .swiper:before {
  display: none !important;
}

.archiveTgb_swiper .swiper {
  padding: 1rem 0 2rem 0;
  @media screen and (max-width: 1024px){
    padding-bottom: 1rem;
  }
}

.archiveTgb_swiper .swiper-slide img {
  @media screen and (max-width: 1024px){
    width: calc(100% - 10px) !important;
    margin: 0 auto;
  }
}

.archiveTgb_swiper .swiper-pagination {
  margin-top: 16px !important;
}

.rank_wrap {
  position: relative;
  width: fit-content;
}
.rank_count{
  font-size: 22px;
  font-weight: 700;
  position: absolute;
  width: 100%;
  bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  @media screen and (max-width: 1024px){
    font-size: 17px;
  }
}
.rank_count_top {
  color: white;
}
.rank_count_top_3{
  color: var(--color-red);
}
.rank_default {
  color: var(--color-pink);
  position: absolute;
}

.sectionTitle10 {
  font-size: 63px;
  font-weight: 400;
  font-family: Helvetica;
  position: relative;
  @media screen and (max-width: 1024px){
    font-size: 39px;
  }
}
.sectionTitle10::after {
  content: '';
  position: absolute;
  top: -6px;
  left: 53%;
  transform: translateX(-38%);
  width: 50px;
  height: 32px;
  background: url(../../icon/crown.svg) no-repeat center / contain;
  @media screen and (max-width: 1024px){
    width: 32px;
    height: 24px;
  }
}