.index_main {
  width: 100%;
  height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: center;
}
.index_main img {
  width: 80%;
}

/* 상단 배너 섹션 */
.home_main {
  overflow: hidden;
}
.home_main .hero_banner {
  background: var(--brand-color2);
  padding: 1rem ;
}
.home_main .hero_banner a {
  display: block;
}
.home_main .banner_title {
  font-size: 2.2rem;
  color: #fff;
  line-height: 1.2;
  font-weight: 500;
}
.home_main .banner_title b {
  color: var(--brand-color);
}
.home_main .banner_illustration {
  margin: 2rem 0;
}

.home_main .main_illustration {
  width: 25rem;
  margin: 0 auto;
}

.home_main .info_button {
  display: block;
  background: transparent;
  border: 1px solid var(--brand-color);
  color: var(--brand-color);
  padding: 1rem 2rem;
  border-radius: 1rem;
  font-size: 1.6rem;
  font-weight: 700;
  margin-left: auto;
  width: fit-content;
}

.home_main .info_button:hover {
  background: #E8B4B4;
  transform: translateY(-2px);
}

/* 메인 액션 버튼 */
.home_main .main_action {
  padding: 4rem 0 1.5rem 0;
  background: #fff;
}

.home_main .main_donate_button {
  display: block;
  background: #FF9999;
  color: #fff;
  padding: 2rem 3rem;
  border-radius: 1rem;
  text-decoration: none;
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
}


/* 혜택 정보 섹션 */
.home_main .benefits_section {
  padding: 0 0 4rem 0;
  background: #fff;
}

.home_main .benefits_cards {
  display: flex;
  gap: 1.5rem;
}

.home_main .benefit_card {
  display: block;
  flex: 1;
  background: var(--brand-color2);
  padding: 1.5rem 1.5rem;
  border-radius: 1rem;
  position: relative;
}

.home_main .benefit_icon {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
}

.home_main .benefit_icon img {
  width: 4rem;
  width: 4rem;
}

.home_main .benefit_card h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #555;
  line-height: 1.2;
  margin-bottom: 4rem;
}

/* 답례품 카테고리 섹션 */
.home_main .gift_categories {

}

.section_title {
  font-size: 2rem;
  font-weight: 700;
  color: #555;
  margin-bottom: 1rem;
  text-align: left;
}

.home_main .gift_buttons_grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.home_main .gift_category_button {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  background: var(--brand-color2);
  border-radius: 1rem;
}

.home_main .gift_category_button img {
  height: 5rem;
  margin-bottom: 1rem;
}

.home_main .gift_category_button span {
  font-size: 1.6rem;
  font-weight: 500;
  color: #555;
}

/* 진행 중인 이벤트 섹션 */
.home_main .events_section {
  padding: 4rem 0;
  background: #fff;
}

.event_card {
  overflow: hidden;
  border-radius: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  border: 2px solid var(--brand-color2);
}
.event_img {
  flex: 1;
  width: 100%;
}
.event_img img {
  width: 100%;
  object-fit: cover;
  height: 15rem;
}
.event_info {
  width: 100%;
  background: var(--brand-color2);
  padding: 1rem;
}
.event_info h3 {
  font-size: 1.8rem;
  line-height: 1.3;
  font-weight: 700;
  color: #333;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.event_location,
.event_period {
  font-size: 1.6rem;
  color: #555;
  margin-bottom: 0.5rem;
}

.event_donate_button {
  width: 100%;
  text-align: center;
  background: #FF8981;
  color: #555;
  padding: 1rem 3rem;
  border-radius: 3rem;
  font-size: 1.6rem;
  font-weight: 700;
  margin-top: 1rem;
}

/* Custom Dropdown Styles */
.custom-select-wrapper {
  width: 100%;
  margin: 2.5rem 0;
  position: relative;
}

.custom-select-header {
  border: 1px solid var(--brand-color);
  border-radius: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  cursor: pointer;
  font-weight: 600;
}

.selected-value {
  flex-grow: 1;
  font-size: 1.8rem;
  color: #555;
  font-weight: 600;
  flex: 1;
  min-width: 0;
  word-break: break-all;
}

.arrow-icon {
  color: var(--brand-color);
  font-size: 2rem;
  transition: transform 0.2s ease;
}

.arrow-icon.rotated {
  transform: rotate(180deg);
  flex-shrink: 0;
}

.custom-select-options {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 999;
  width: 100%;
  max-height: 25.5rem;
  overflow-y: auto;
  background-color: #fff;
  border: 1px solid var(--brand-color);
  border-top: none;
  border-radius: 0 0 1rem 1rem;
  display: none;
}

.custom-select-wrapper.show .custom-select-options {
  display: block;
}
.custom-select-wrapper.show .custom-select-header{
  border-radius: 1rem 1rem 0 0;
}
.option-item {
  width: 100%;
  color: #333;
  font-size: 1.8rem;
  font-weight: 600;
  padding: 1.5rem;
  cursor: pointer;
  border-bottom: 1px solid var(--brand-color);
  transition: background-color 0.2s ease;
  word-break: break-all;
}

.option-item:last-child {
  border-bottom: none;
}

.option-item:hover {
  background-color: #FFF7F5;
  color: var(--brand-color);
  font-weight: 600;
}

/* info.php */
.bottom_link {
  margin-top: 1rem;
  display: block;
  width: 100%;
  font-size: 2rem;
  font-weight: 600;
  padding: 2rem;
  background: #FFA84F;
  border-radius: 1rem;
  color: #fff;
  text-align: center;
}
.img_box  {
  margin-bottom: 2rem;
}
.img_box img {
  width: 10rem;
  margin: auto;
}

.cont_box .title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--brand-color);
  border-bottom: 2px solid var(--brand-color);
  padding: 1rem 1.6rem;
}
.cont_box .text {
  padding: 2rem 1.6rem;
  font-size: 1.6rem;
  color: #555555;
  line-height: 1.4;
}
.cont_box .text b {
  color: #FF7A66;
  font-weight: 500;
}
.cont_box ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 2rem 1.6rem;
}
.cont_box ul li {
  border: 1px solid var(--brand-color);
  border-radius: 1.5rem;
  text-align: center;
  font-size: 1.8rem;
  padding: 1.5rem;
  color: #333;
}
.cont_box ul li.triangle {
  color: var(--brand-color);
  border: 0;
  padding: 0;
}
.text_box {
  padding: 2rem 1.6rem;
}
.text_box h4 {
  font-size: 1.6rem;
  color: var(--brand-color);
  margin-bottom: 1rem;
}
.text_box p {
  font-size: 1.6rem;
  color: #555;
  line-height: 1.4;
  margin-bottom: 2rem;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px auto;
  text-align: center;
}
th, td {
  border: 1px solid #e74c3c;
  padding: 12px 0;
}
th {
  background-color: #fff;
  color: #e74c3c;
  font-size: 1.8rem;
}
td {
  color: #333;
  font-size: 1.8rem;
}
.page4_wrap .text1 {
  padding-top: 0;
}

.event_main .list_wrap ul {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

/* FAQ 스타일 */

.faq_item {
  border-bottom: 1px solid var(--brand-color);
  transition: all 0.25s;
}

.faq_item:nth-of-type(1) {
  border-top: 1px solid var(--brand-color);
}
.faq_question {
  padding: 2rem 1.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: #fff;
}
.question_text {
  flex: 1;
  color: #333;
  font-size: 1.6rem;
  line-height: 1.3;
}
.faq_question .triangle {
  display: block;
  color: var(--brand-color);
  font-size: 1.8rem;
  transition: all 0.25s;
}
.faq_item.active .faq_question .triangle {
  transform: rotate(180deg);
}
.faq_answer {
  padding: 0rem 1.6rem;
  padding-bottom: 2rem;
  display: none;
}

.faq_item.active .faq_answer {
  display: flex;
  gap: 1rem;
}

.answer_text {
  flex: 1;
  background: var(--brand-color2);
  border-radius: 2rem;
  padding: 2rem 1.5rem;
}
.answer_text p{
  font-size: 1.6rem;
  line-height: 1.3;
  line-height: 1.6;
  color: #555;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding-top: 6rem;
}

.pagination a {
  font-size: 1.6rem;
  color: #555;
}
.pagination a img {
  width: 1.5rem;
}

.goods_wrap .goods_list {
  display: flex;
  flex-direction: column;
}
.goods_wrap .goods_item {
  padding: 2rem 1.6rem;
  border-bottom: 1px solid var(--brand-color);
}
.goods_wrap .goods_item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.goods_wrap .goods_item .goods_img {
  width: 45%;
  height: 10rem;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: rgba(0, 0, 0, 0.02) 0px 1px 3px 0px, rgba(27, 31, 35, 0.15) 0px 0px 0px 1px;
}
.goods_wrap .goods_item .goods_img  img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.goods_wrap .goods_item .goods_info {
  flex: 1;
  overflow: hidden;
}
.goods_wrap .goods_item .goods_info h4 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.goods_wrap .goods_item .goods_info p {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--brand-color);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}