/**
 * Theme Name:     TaskHive Child
 * Author:         HivePress
 * Template:       taskhive
 * Text Domain:    taskhive-child
 */

/* 메인 컨텐츠 스타일 */
.main-content {
  position: relative;
  width: 100%;
  margin: 0 auto;
  overflow: visible;
  padding-top: 1rem;
}

/* 컨테이너 섹션 */
.container {
  margin-top: 2rem;
  position: relative;
  z-index: 1;
}

.row.center-xs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin: 2rem 0;
  width: 100%;
}

/* 컨텐츠 래퍼 */
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center; /* 가로축 중앙 정렬 */
  justify-content: center; /* 세로축 중앙 정렬 */
  max-width: 1200px;
  margin: 0 auto; /* 좌우 여백 균형 */
  padding: 2rem;
  position: relative;
}


/* 카테고리 스타일 */
.category-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;     /* 수직 중앙 정렬 */
  padding: 5px;
  gap: 5px;
  max-width: 1200px;
  margin: 0 auto;
}

.category {
  width: 100%; /* 기본적으로 너비를 컨테이너에 맞춤 */
  aspect-ratio: 3 / 2; /* 3:4 비율 유지 */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: #fff;
  border-radius: 25px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.category:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.category i {
  font-size: 2.5em;
  color: rgb(12, 12, 12);
  margin-bottom: 1rem;
}

.category h2 {
  font-size: 24px !important;
  font-weight: 800;
  margin: 0;
}

.category p {
  font-size: 16px !important;
  color: #666;
}

/* 메인 타이틀 */
.main-title {
  font-size: 32px !important;
  font-weight: bold;
  text-align: center;
  margin: 2rem 0; /* 상하 여백 통일 */
  color: #333;
}

/* 캐러셀 스타일 */
.main-content .carousel.slide {
  width: 80% !important;
  aspect-ratio: 16 / 3.5 !important;
  margin: 0 auto 2rem !important;
  position: relative;
  border-radius: 15px !important;
  overflow: hidden !important;
}

.main-content .carousel-inner {
  height: 100% !important;
  position: relative;
}

.main-content .carousel-item {
  height: 100% !important;
}

.main-content .carousel-item img.d-block {
  width: 100% !important;
  height: 100% !important; /* 강제 적용 */
  object-fit: cover !important;
}

/* 데스크탑 */
@media screen and (min-width: 769px) {
  .main-content .carousel.slide {
    aspect-ratio: 16 / 3.5 !important;
  }
}

/* 태블릿 */
@media screen and (max-width: 768px) {
  .main-content .carousel.slide {
    aspect-ratio: 16 / 3.5 !important;
  }
}

/* 모바일 */
@media screen and (max-width: 480px) {
  .main-content {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .main-content .carousel.slide {
    width: 95% !important;
    aspect-ratio: 16 / 3.5 !important;
  }
}

/* 헤더 스타일 */
.site-header {
  background: #fdfdfd !important;
  position: fixed !important;
/*  width: calc(100% - 20px);*/
  top: 30px;
  left: 20px;
  z-index: 20;
  height: 80px !important;
  transition: all 0.3s ease-in-out !important;
}

.site-header .header-logo {
  margin-left: 35px;
}
.site-header.sticky .header_btn {
  color: #fff;
}
.site-header.sticky .hp-link, .site-header.sticky .hp-link i {
  color: #fff;
}
.header-navbar {
  background-color: #fff !important;
  border-radius: 50px !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.header-navbar__menu ul li ul {
  background-color: #f7f1f1;
  border-radius: 30px;
  margin-top: 10px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.075);
}
.header-navbar__end .header_btn:nth-child(4) {
  margin-right: 28px;
}

.header-navbar__menu ul li a {
  color: #eae5e5;
  font-size: 1.5rem;
  font-weight: 1000;
  letter-spacing: 0.5px;
  padding: 10px 15px;
  transition: all 0.3s ease;
  font-family: 'Pretendard', sans-serif;
}

.header-navbar__menu ul li a:hover {
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.header-navbar__menu ul li ul li a {
  font-size: 1.1rem;
  font-weight: 700;
}
.site-content{
  padding: 4rem 0 4rem !important;
}

.range-slider-container {
    width: 100%;
    max-width: 500px;
    margin: 20px auto;
}

#budget-slider {
    margin: 20px 0;
    height: 5px;
}

.noUi-connect {
    background-color: #3f83f8; /* Blue for the slider fill */
    height: 100%;
}

.noUi-handle {
    background-color: #fff;
    border: 2px solid #3f83f8;
    border-radius: 50%;
    height: 18px;
    width: 18px;
    outline: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.budget-inputs {
    display: flex;
    justify-content: space-between;
  margin-top: 0;
  margin-bottom: 25px;
}

.budget-inputs input {
    width: 45%;
    text-align: center;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px 10px;
    color: #555;
    background: #f9f9f9;
}
.hp-form__field.hp-form__field--select:nth-child(2) {
    display: none;
}
.hp-form__fields .select2-container{
  min-width: 100%;
}



/*--- Filter box design ------*/


.request-right {
  padding: 40px 0;
}

.filter-container-main {
  display: flex;
  gap: 30px;
  padding: 30px 0;
}
.filter-container-main .filter-left-part {
  width: 30%;
}
.filter-container-main .filter-right-part {
  width: 70%;
}

.filter-right-part .post-item {
  border-radius: 5px;
  box-shadow: 0 5px 30px rgba(7, 36, 86, 0.075);
  background-color: #fff;
  transition: transform 0.25s;
  margin-bottom: 35px;
 
}

.filter-right-part .post-item:hover {
  transform: translateY(-10px);
}

.filter-right-part .post-item .hp-listing__footer {
  padding: 15px 25px;
  font-size: 18px;
  display: flex
;
    justify-content: space-between;
}

.filter-right-part .post-item .hp-listing__footer i {    color: rgba(7, 36, 86, .25);}

.filter-right-part .post-item .top-content p {
  font-size: 11px;
  text-transform: uppercase;
  margin: 0;
  padding: 0;
}
.filter-right-part .post-item h2 {
  margin-bottom: 10px;
}

.filter-right-part .post-item .top-content {
  padding: 25px;
  border-bottom: 1px solid rgba(7, 36, 86, 0.075);
}

.budget-inputs input {
  box-shadow: none;
  color: inherit;
  font-size: 1rem;
  background-color: transparent;
  line-height: 1.5;
  padding: .4375rem 1rem;
  border: 1px solid rgba(7,36,86,.075);
}


#budget-slider {
  height: 5px;
  border: none;
  background-color: transparent;
  margin: 9px 14px 9px 9px;
}

#budget-slider .noUi-connect {
  background: #ffc61b;
}

#budget-slider .noUi-handle {
    top: -9px;
  width: 23px;
  height: 23px;
  cursor: ew-resize;
  border: 1px solid rgba(7,36,86,.125);
  border-radius: 50%;
  background-color: #fff;
  box-shadow: 0 2px 4px 0 rgba(7,36,86,.075);

}


#budget-slider .noUi-handle::after, #budget-slider .noUi-handle::before {
   top: 7px;
  left: 7px;
  width: 7px;
  height: 7px;
  border: 1px solid rgba(7,36,86,.125);
  border-top-color: transparent;
  border-bottom-color: transparent;
  background: transparent;
}

.filter-left-part .filter-budget {
  margin: 40px 0;
  border-radius: 5px;
  box-shadow: 0 5px 30px rgba(7, 36, 86, 0.075);
  background-color: #fff;
  padding: 25px;
}

#filter-category {  font-size: 12px;  margin-left: 5px;margin-top: 10px;}
.filter-budget h4 {
  font-size: 11px;
  text-transform: uppercase;
  color: rgba(15,23,39,.65);
  margin-bottom: 10px !important;
}


.filter-container {
  padding: 30px 25px;
   border-bottom: 1px solid rgba(7, 36, 86, 0.075);
}

#apply-filters {
  background: #ffc107;
  color: #fff;
  width: 100%;
  box-shadow: rgba(255, 193, 7, 0.35) 0px 5px 21px;
}
/**10-12-24**/
.header-navbar__end .header_btn {
  margin: 0 20px 0px 0;
  
  color: #000;
  font-size: 18px;
}

.filter-category {
  border-radius: 5px;
  box-shadow: 0 5px 30px rgba(7, 36, 86, 0.075);
  background-color: #fff;
  padding: 25px;
}
.filter-category label {  font-size: 16px;  color: #000;cursor: pointer;}
.filter-category #filter-category div {  line-height: 25px;  position: relative;  padding-left: 25px;margin-bottom: 2px;}

#filter-category .category_filter_checbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

#filter-category .category_filter_checbox span:before {
  position: absolute;
  content: '';
  border: 2px solid rgba(7,36,86,.075);
  width: 20px;
  height: 20px;
  border-radius: 50px;
  left: 0;
  top: 2px;
}
#filter-category .category_filter_checbox span:after{
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color:#ffc61c;
  top: 8px;
  left: 6px;
  transition: opacity .25s;
 opacity: 0;
   position: absolute;
  content: '';
}
#filter-category .category_filter_checbox input:checked ~ span:before{
  border-color: #ffc61c;
}
#filter-category .category_filter_checbox input:checked ~ span:after{
  opacity: 1;
}



/***new-header***/
.site-header::before,.header-navbar:before {  content: inherit !important;}
.header-navbar {  box-shadow: none !important;padding: 0 !important;  margin: 0 !important;width: 100%}
.site-header {  left: 0;  right: 0;  margin: auto;top: 15px;
  transition: all .15s ease-in-out;height: 80px;
  display: flex;
  align-items: center;}
  .site-header.sticky .header-navbar {
  background: #000 !important;
  height: 100%;
}
.site-header.sticky{right: 82px;left: 82px;top: 12px;}

.header-navbar__end #menu-main-menu-1 {
  display: flex;
  align-items: center;
  margin: 0;
}

.header-navbar__end #menu-main-menu-1 .menu-item-has-children ul {
  opacity: 0;
  visibility: hidden;
  position: absolute !important;
  top: 100%;
  left: 0;
  padding: 0;
  z-index: 99999;
  transition: all 0.25s;
  transform: scaleY(0);
  min-width: 130px;
 
  background-color: #fff !important;
  box-shadow: 0px 5px 12px 0px rgba(0,0,0,0.07);
  transform-origin: 0 0;
  margin: 0;
}
.header-navbar__end #menu-main-menu-1 .menu-item-has-children ul li {
    width: 100%;
}
.header-navbar__end #menu-main-menu-1 .menu-item-has-children ul a {
  padding: 5px 15px;
}
.header-navbar__end #menu-main-menu-1 a.hp-link {
  padding-right: 20px;
}
.header-navbar__end #menu-main-menu-1 a.hp-link::after{
  content: '';
  padding-left: 10px;
  font-family: "Font Awesome 5 Free";
  opacity: 0.8;
  font-weight: 900;
  font-size: 14px;
  position: absolute;
  right: 0;
}

.header-navbar__end #menu-main-menu-1 li {  list-style: none;  margin-right: 30px;  position: relative;margin-bottom: 0;}
.header-navbar__end #menu-main-menu-1 li a {  color: #000;}
.header-navbar__end #menu-main-menu-1 .menu-item-has-children ul li:hover > a {
  background: #4385f0;
  color: #fff;
}

.header-navbar__end #menu-main-menu-1 li:hover ul {
  opacity: 1;
  visibility: visible;
  transform: scaleY(1);
}

.site-header.sticky .header-navbar__end #menu-main-menu-1 li a {
  color: #fff;
}
.site-header.sticky .header-navbar__end .sub-menu li a {
  color: #000 !important;
}
.site-header.sticky .header-navbar__end .sub-menu li:hover a {
  color: #fff !important;
}
.mobile-menu{display: none;}
/* 반응형 대응 */
@media screen and (max-width:1280px){
  .site-header.sticky{border-radius: 50px !important;}
}
@media screen and (max-width:1199px){
  .header-navbar__end .header_btn {  display: none;}
  .site-header.sticky .fas.fa-bars {  color: #fff;}
  .header-navbar__burger > ul::before {  cursor: pointer; color: #000 !important}

}
@media screen and (max-width:991px){
.site-container .desktop-menu{display:none;}
.mobile-menu{display:flex;width:100%;justify-content:space-evenly;align-items:center;}
.site-header.sticky .mobile-menu{background:#000;border-radius:50px;height:80px;display:flex;align-items:center;}
.site-header .header-logo{margin:0;}
.header-navbar__start{padding:0;}
.site-header .custom-logo{width:150px;}
.site-header.sticky #menu-main-menu-1 span,.site-header.sticky #menu-main-menu-1 i,.site-header.sticky #menu-main-menu-2 li a,.site-header.sticky #menu-main-menu-2 li i,.site-header.sticky #menu-main-menu-2 li:after{color:#000;}
.header-navbar__burger > ul{padding-top:45px!important;}
.site-header.sticky{left:15px;right:15px;width:auto;}
.mobile-menu .fas.fa-bars{font-size:22px;color:#000;}
}
@media screen and (max-width: 768px) {
  .site-header {
    width: calc(100% - 10px);
    top: 5px;
    left: 5px;
  }
  .category {
    width: 100%; /* 컨테이너 너비를 기준으로 확장 */
    max-width: 150px; /* 최대 크기 제한 */
    aspect-ratio: 3 / 2; /* 3:4 비율 유지 */
    height: auto; /* 높이는 비율에 의해 자동으로 조정 */
    padding: 5px; /* 내부 여백 최소화 */
    border-radius: 15px; /* 모서리 둥글기 축소 */
  }

  .main-content .carousel.slide {
    width: 80% !important;
    aspect-ratio: 16 / 3.5 !important;
    margin: 0 auto 2rem !important; /* 하단 여백 유지 */
    border-radius: 15px !important;
    overflow: hidden !important;
  }
  .main-content .carousel-inner {
    height: 100%; /* 부모 높이에 맞춤 */
  }
  .main-content .carousel-item img.d-block {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .category-container {
    padding: 3px;
    gap: 3px; /* 카테고리 간의 간격 축소 */
  }
  .site-content {
    margin-top: 80px;
  }
 
  .main-title {
    margin: 2rem 0; /* 여백 유지 */
    font-size: 28px;
  }
  
  .container {
    margin-top: 1.5rem; /* 모바일에서 상단 여백 조정 */
  }
}

@media screen and (max-width: 480px) {
  .category-container {
    padding: 2px;
    gap: 2px; /* 카테고리 간의 간격 축소 */
  }
  .category {
    max-width: 120px; /* 더 작은 화면에서는 크기를 제한 */
    aspect-ratio: 3 / 2; /* 3:4 비율 유지 */
    height: auto;
  }
  .site-content {
    margin-top: 60px;
  }
  .site-header .header-logo {
  margin-left: 15px;
}
}

/* 애니메이션 섹션 */
.animation-section {
  margin: 3rem 0;
}

.animation-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.animation-image img {
  max-width: 100%;
  height: auto;
}

.animation-text {
  text-align: center;
}

.animated-title {
  font-size: 28px;
  margin-bottom: 1rem;
}

.animated-description {
  font-size: 16px;
  line-height: 1.6;
}

/* 반응형 스타일 */
@media screen and (max-width: 768px) {
  .main-title {
    font-size: 28px;
    margin: 2rem 0; /* 여백 유지 */
  }

  .main-content .carousel.slide {
    width: 80% !important;
    aspect-ratio: 16 / 3.5 !important;
    margin: 0 auto 2rem !important; /* 하단 여백 유지 */
    border-radius: 15px !important;
    overflow: hidden !important;
  }

  .main-content .carousel-inner {
    height: 100%; /* 부모 높이에 맞춤 */
  }
  
  .main-content .carousel-item img.d-block {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .row.center-xs {
    gap: 1rem;
  }

  .category {
    padding: 1rem;
  }

  .category i {
    font-size: 2em;
  }

  .category h2 {
    font-size: 20px;
  }

  .animation-container {
    flex-direction: column;
    gap: 1.5rem;
  }
}

@media screen and (max-width: 480px) {
  .main-title {
    font-size: 24px;
    margin: 2rem 0; /* 여백 유지 */
  }

  .row.center-xs {
    gap: 0.8rem;
  }

  .category {
    padding: 0.8rem;
  }

  .category i {
    font-size: 1.8em;
  }

  .category h2 {
    font-size: 18px;
  }

  .animated-title {
    font-size: 24px;
  }

  .animated-description {
    font-size: 14px;
  }
}

/* 반응형 스타일 */
@media screen and (max-width: 991px) {
  .site-content {
    padding: 3rem 0 4rem !important; /* 상단 패딩 축소 */
    margin-top: 0; /* 추가 마진 제거 */
  }
  
  .main-content {
    padding-top: 1rem; /* 동일한 상단 패딩 유지 */
  }
  
  .main-title {
    font-size: 28px;
    margin: 0.5rem 0; /* 동일한 마진 유지 */
  }
}

@media screen and (max-width: 480px) {
  .site-content {
    padding: 3rem 0 4rem !important;
    margin-top: 0;
  }
  
  .main-content {
    padding-top: 1rem; /* 동일한 상단 패딩 유지 */
  }
  
  .main-title {
    font-size: 24px;
    margin: 0.5rem 0; /* 동일한 마진 유지 */
  }
}

/* 태블릿 */
@media screen and (max-width: 768px) {
  .main-content .carousel.slide {
    width: 80% !important;
    aspect-ratio: 16 / 3.5 !important;
    border-radius: 15px !important;
    overflow: hidden !important;
  }
}

/* 모바일 - 크기 대폭 증가 */
@media screen and (max-width: 480px) {
  .main-content .carousel.slide {
    width: 95% !important;
    aspect-ratio: 16 / 3.5 !important;
    border-radius: 15px !important;
    overflow: hidden !important;
  }
  
  .main-content .carousel-inner,
  .main-content .carousel-item,
  .main-content .carousel-item img.d-block {
    height: 100% !important;
  }
}

/* 모바일 */
@media screen and (max-width: 480px) {
  /* 기존 패딩 축소 */
  .main-content {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .main-content .carousel.slide {
    width: 95% !important;
    aspect-ratio: 16 / 3.5 !important;
    border-radius: 15px !important;
    overflow: hidden !important;
  }
}

/* 공통 폰트 스타일 - 데스크탑 */
.main-content .main-title {
  font-size: 32px !important;
  font-weight: bold !important;
  text-align: center !important;
  margin: 2rem 0 !important;
  color: #333 !important;
}

.main-content .carousel.slide {
  width: 80% !important;
  aspect-ratio: 16 / 3.5 !important;
  margin: 0 auto 2rem !important;
  position: relative;
  border-radius: 15px !important;
  overflow: hidden !important;
}

.main-content .category h2 {
  font-size: 24px !important;
  margin-top: 2rem !important;
  font-weight: bold !important;
}

.main-content .category p {
  font-size: 16px !important;
  margin-top: 1rem !important;
  color: #666 !important;
}
.header-navbar__end a {
    color: black;
}
/* 태블릿 */
@media screen and (max-width: 768px) {
  .main-content .main-title {
    font-size: 28px !important;
    margin: 1.5rem 0 !important; /* 2rem * 0.75 */
  }

  .main-content .carousel.slide {
    margin: 0 auto 1.5rem !important; /* 2rem * 0.75 */
  }

  .main-content .category h2 {
    font-size: 20px !important;
    margin-top: 1.5rem !important; /* 2rem * 0.75 */
  }

  .main-content .category p {
    font-size: 14px !important;
    margin-top: 0.75rem !important; /* 1rem * 0.75 */
  }
}

/* 모바일 */
@media screen and (max-width: 480px) {
  .main-content .main-title {
    font-size: 20px !important; /* 더 작게 조정 */
    margin: 1rem 0 !important; /* 상하 간격 축소 */
  }

  .main-content .carousel.slide {
    width: 95% !important;
    margin: 0 auto 1rem !important; /* 2rem * 0.5 */
  }

  .main-content .category h2 {
    font-size: 16px !important;
    margin-top: 1rem !important; /* 2rem * 0.5 */
  }

  .main-content .category p {
    font-size: 12px !important;
    margin-top: 0.5rem !important; /* 1rem * 0.5 */
  }
}

/* 스크롤 시 헤더 - 데스크탑 */
.site-header.sticky-header {
  height: 80px !important; /* 데스크탑은 변화 없음 */
}

/* 태블릿 */
@media screen and (max-width: 768px) {
  /* 기본 헤더 - 태블릿 */
  .site-header {
    height: 65px !important; /* 데스크탑의 약 80% */
  }

  .site-header .navbar-brand img {
    height: 40px !important; /* 데스크탑의 약 80% */
  }

  /* 스크롤 시 헤더 - 태블릿 */
  .site-header.sticky-header {
    height: 55px !important; /* 태블릿 기본 헤더의 약 85% */
  }

  .site-header.sticky-header .navbar-brand img {
    height: 35px !important;
  }
}

/* 모바일 */
@media screen and (max-width: 480px) {
  /* 기본 헤더 - 모바일 */
  .site-header {
    height: 50px !important; /* 데스크탑의 약 60% */
  }

  .site-header .navbar-brand img {
    height: 30px !important; /* 데스크탑의 약 60% */
  }

  /* 스크롤 시 헤더 - 모바일 */
  .site-header.sticky-header {
    height: 40px !important; /* 모바일 기본 헤더의 약 80% */
  }

  .site-header.sticky-header .navbar-brand img {
    height: 25px !important;
  }
}

/* 데스크탑 헤더 */
.site-header {
  height: 80px !important;
  transition: all 0.3s ease-in-out !important;
}

.site-header .navbar-brand img {
  height: 50px !important;
  width: auto !important;
  transition: all 0.3s ease-in-out !important;
}

/* 스크롤 시 헤더 - 데스크탑 */
.site-header.sticky-header {
  height: 80px !important; /* 데스크탑 기본 헤더와 동일 */
}

.site-header.sticky-header .navbar-brand img {
  height: 50px !important; /* 데스크탑 기본 로고와 동일 */
}

/* 태블릿 */
@media screen and (max-width: 768px) {
  /* 기본 헤더 - 태블릿 */
  .site-header {
    height: 65px !important;
  }

  .site-header .navbar-brand img {
    height: 40px !important;
  }

  /* 스크롤 시 헤더 - 태블릿 */
  .site-header.sticky-header {
    height: 65px !important; /* 태블릿 기본 헤더와 동일 */
  }

  .site-header.sticky-header .navbar-brand img {
    height: 40px !important; /* 태블릿 기본 로고와 동일 */
  }
}

/* 모바일 */
@media screen and (max-width: 480px) {
  /* 기본 헤더 - 모바일 */
  .site-header {
    height: 50px !important;
  }

  .site-header .navbar-brand img {
    height: 30px !important;
  }

  /* 스크롤 시 헤더 - 모바일 */
  .site-header.sticky-header {
    height: 50px !important; /* 모바일 기본 헤더와 동일 */
  }

  .site-header.sticky-header .navbar-brand img {
    height: 30px !important; /* 모바일 기본 로고와 동일 */
  }
}

/* 카테고리 그리드 컨테이너 */
.main-content .container {
  width: 80% !important; /* 캐러셀과 동일한 너비 */
  margin: 0 auto !important;
  padding: 0 !important;
}

/* 중앙 정렬을 위한 내부 컨테이너 */
.main-content .col-xs-10.col-sm-10.col-md-8 {
  width: 80% !important; /* 캐러셀과 동일 */
  max-width: 80% !important;
  margin: 0 auto !important;
}

/* 그리드 행 설정 */
.main-content .row.center-xs {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 2rem !important;
  width: 100% !important;
}

/* 각 아이콘 컬럼 설정 */
.main-content .col-xs-6 {
  width: 40% !important; /* 캐러셀 너비(80%)의 절반 */
  flex: 0 0 40% !important;
  margin: 0 !important;
}

/* 카테고리 스타일 */
.main-content .category {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 2rem !important;
  background-color: #f8f9fa !important;
  border-radius: 10px !important;
  height: 100% !important;
  transition: all 0.3s ease !important;
}

/* 아이콘 스타일 */
.main-content .category i {
  font-size: 2.5rem !important;
  margin-bottom: 1rem !important;
  color: #333 !important;
}

/* 카테고리 제목 */
.main-content .category h2 {
  font-size: 1.2rem !important;
  margin: 0 !important;
  color: #333 !important;
}

/* 태블릿 */
@media screen and (max-width: 768px) {
  .main-content .col-xs-10.col-sm-10.col-md-8 {
    width: 80% !important;
    max-width: 80% !important;
  }

  .main-content .col-xs-6 {
    width: 40% !important;
    flex: 0 0 40% !important;
  }
}

/* 모바일 */
@media screen and (max-width: 480px) {
  .main-content .col-xs-10.col-sm-10.col-md-8 {
    width: 95% !important;
    max-width: 95% !important;
  }

  .main-content .col-xs-6 {
    width: 47.5% !important; /* 95%의 절반 */
    flex: 0 0 47.5% !important;
  }
}

