@font-face {
	font-family: 'NanumGothic';
	src: url('/fonts/NanumGothic.woff2') format('woff2'),
		url('/fonts/NanumGothic.woff') format('woff');
	font-weight: normal;
	font-style: normal;
}


	@font-face {
    font-family: 'BMJUA';
    src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_one@1.0/BMJUA.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'RecipeKorea';
    src: url('/fonts/Recipekorea.otf');
    font-weight: normal;
    font-style: normal;
}


:root {
	--green: #15CB5E;
	--lightgreen: #E6FFB7;
	--cream: #F8F9FA;
}
*{
	padding: 0;
}

body {
	font-family: 'BMJUA','NanumGothic', sans-serif;
    background: url("/img/background/recipe-back.jpg") no-repeat center/cover;
    background-color: #f4f4f4;
    line-height: 1.6;
    padding-top: 78px;
}

.title_font{
	font-family: 'RecipeKorea','BMJUA', sans-serif;
	
}


.list-container{
	 width: 100%;
    max-width: 1300px;
    margin: 40px auto;
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative; /* 추가: 부모 요소에 relative 포지셔닝 */
    overflow: hidden; /* 추가: 자식 요소가 넘치지 않도록 */
	min-height: 55vh;
	
}

.list-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--green);
}

.search-box{
	border-radius: 20px !important;
}

.product-wrapper{
    max-width: 1100px;
    margin: 0 60px 35px;
    padding: 20px 10px;
    overflow: hidden;
}


.product-wrapper .swiper-pagination-bullet{
    height: 13px;
    width: 13px;
    opacity: 0.5;
    background: var(--green);
}

.product-wrapper .swiper-pagination-bullet-active{
    opacity: 1;
}

.product-wrapper .swiper-slide-button{
    color: var(--green);
    margin-top: -35px;
} 
.is-mobile .tagify {
    pointer-events: none;
}
@media screen and (max-width: 768px){
    .product-wrapper{
        margin: 0 10px 25px;
    }

    .product-wrapper .swiper-slide-button{
        display: none;
    }
}

.card-image{
  position: relative;
  height: 150px;
  width: 150px;
  border-radius: 50%;
  background: #FFF;
  padding: 3px;
}
.card-image .card-img{
  height: 100%;
  width: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #4070F4;
}
.name{
  font-size: 18px;
  font-weight: 500;
  color: #333;
}
.description{
  font-size: 14px;
  color: #707070;
  text-align: center;
}
.button{
  border: none;
  font-size: 16px;
  color: #FFF;
  padding: 8px 16px;
  background-color: #4070F4;
  border-radius: 6px;
  margin: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.button:hover{
  background: #265DF2;
}

.swiper-navBtn{
  color: #6E93f7;
  transition: color 0.3s ease;
}
.swiper-navBtn:hover{
  color: #4070F4;
}
.swiper-navBtn::before,
.swiper-navBtn::after{
  font-size: 38px;
}
.swiper-button-next{
  right: 0;
}
.swiper-button-prev{
  left: 0;
}
.swiper-pagination-bullet{
  background-color: #6E93f7;
  opacity: 1;
}
.swiper-pagination-bullet-active{
  background-color: #4070F4;
}



@media screen and (max-width: 768px) {

  .slide-content{
    margin: 0 10px;
  }
  .swiper-navBtn{
    display: none;
  }
  
  .swiper {
  overflow: visible !important; /* 모바일에서 잘림 방지 */
}

/* 각 슬라이드의 너비 조정 */
.swiper-slide {
  width: auto !important;      /* 내용에 맞춰 너비 자동 조절 */
  flex-shrink: 0;             /* 슬라이드 축소 방지 */
  display: flex;              /* 내부 요소 중앙 정렬 */
  justify-content: center;    /* 가로 중앙 정렬 */
  
}
.swiper-slide {
    max-width: 80vw;          /* 화면 너비의 80%로 제한 */
  }
}

.swiper-pagination{
	bottom: 0px;
}



/* 더보기 버튼 */
.load-more {
	width: 100%;
	text-align: center;
	padding: 10px;
	cursor: pointer;
	margin-top: 15px;
}

.add-recipe .btn-icon {
  display: none;
}
.add-recipe {
  border-radius: 20px !important;
  transition: all 0.2s ease-in-out;
}
.add-recipe:hover{
  transform: scale(1.05);
}

/* 검색창 기본 스타일 */
.search-box input {
	width: 100px;
}

.search-box button {
	white-space: nowrap;
}

.search-form-control {
	width: 40%;
	text-align: center;
}

/* 📌 모바일 반응형 스타일 */
@media ( max-width : 768px) {
	.add-recipe-btn {
		width: 40px;
		height: 40px;
		font-size: 14px;
		padding: 5px;
		display: flex;
		justify-content: center;
		align-items: center;
		border-radius: 50%;
	}
	#search_kw {
		width: 50% !important;
	}

	#search-btn {
		margin-left: 0;
		margin-top: 5px;
		width: 100%;
	}
}

@media ( max-width : 600px) {
	.nav-bar{
		justify-content: space-around !important;
	}
	#search_kw {
		width: 75% !important;
		float: right;
	}
	#btn_refresh{
		display: none;
	}
	
}

@media ( max-width : 455px) {
	.nav-bar{
		justify-content: space-around !important;
	}
	.add-recipe .btn-text {
    display: none;
  }
  .add-recipe .btn-icon {
    display: inline-block;
  }
    /* 아이콘 버튼 크기 조정 (선택 사항) */
  .add-recipe {
    width: 40px;
    height: 40px;
    border-radius: 50% !important;  /* 원형 버튼 */
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
  }
	#search_kw {
		width: 75% !important;
		float: right;
	}
	#btn_refresh{
		display: none;
	}
	
}

/* 카드 */


.shadow-effect {
	background: #fff;
	padding: 20px;
	border-radius: 4px;
	text-align: center;
	border: 1px solid #ECECEC;
	box-shadow: 0 19px 38px rgba(0, 0, 0, 0.10), 0 15px 12px
		rgba(0, 0, 0, 0.02);
}

#customers-testimonials .shadow-effect p {
	font-family: inherit;
	font-size: 17px;
	line-height: 1.5;
	margin: 0 0 17px 0;
	font-weight: 300;
}

.testimonial-name {
	margin: -17px auto 0;
	display: table;
	width: auto;
	background: #3190E7;
	padding: 9px 35px;
	border-radius: 12px;
	text-align: center;
	color: #fff;
	box-shadow: 0 9px 18px rgba(0, 0, 0, 0.12), 0 5px 7px
		rgba(0, 0, 0, 0.05);
}

#customers-testimonials .item {
	text-align: center;
	/* padding: 50px; */
	margin-bottom: 80px;
	opacity: .2;
	-webkit-transform: scale3d(0.8, 0.8, 1);
	transform: scale3d(0.8, 0.8, 1);
	-webkit-transition: all 0.3s ease-in-out;
	-moz-transition: all 0.3s ease-in-out;
	transition: all 0.3s ease-in-out;

}

#customers-testimonials .owl-item.active.center .item {
	opacity: 1;
	-webkit-transform: scale3d(1.0, 1.0, 1);
	transform: scale3d(1.0, 1.0, 1);
	position: relative;
}

.owl-carousel .owl-item img {
	transform-style: preserve-3d;
	/* max-width: 90px; */
	margin: 0 auto 17px;
}

#customers-testimonials.owl-carousel .owl-dots .owl-dot.active span,
	#customers-testimonials.owl-carousel .owl-dots .owl-dot:hover span {
	/* 효과를 주는 구간  */
	background: var(--green);
	transform: translate3d(0px, -50%, 0px) scale(0.7);
}

#customers-testimonials.owl-carousel .owl-dots {
	display: inline-block;
	width: 100%;
	position: relative;
	bottom: 35px;
	text-align: center;
}

#customers-testimonials.owl-carousel .owl-dots .owl-dot {
	display: inline-block;
}

#customers-testimonials.owl-carousel .owl-dots .owl-dot span {
	position: relative;
	background: var(--lightgreen);
	display: inline-block;
	height: 50px;
	margin: 0 2px 5px;
	transform: translate3d(0px, -50%, 0px) scale(0.3);
	transform-origin: 50% 50% 0;
	transition: all 250ms ease-out 0s;
	width: 50px;
	border-radius: 15px;
}

#customers-testimonials.owl-carousel .owl-dots .owl-dot:nth-child(1) span::before
	{
	content: "1";
	font-size: 34px;
	color: white;
	font-weight: bold;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
	border-radius: 15px;
}

#customers-testimonials.owl-carousel .owl-dots .owl-dot:nth-child(2) span::before
	{
	content: "2";
	font-size: 34px;
	color: white;
	font-weight: bold;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
}

#customers-testimonials.owl-carousel .owl-dots .owl-dot:nth-child(3) span::before
	{
	content: "3";
	font-size: 34px;
	color: white;
	font-weight: bold;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
}

#customers-testimonials.owl-carousel .owl-dots .owl-dot:nth-child(4) span::before
	{
	content: "4";
	font-size: 34px;
	color: white;
	font-weight: bold;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
}

#customers-testimonials.owl-carousel .owl-dots .owl-dot:nth-child(5) span::before
	{
	content: "5";
	font-size: 34px;
	color: white;
	font-weight: bold;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
}

/*==============================*/
.recipe-card {
	position: relative;
	border-radius: 15px;
	display: flex;
	text-shadow: -1px 0px black, 0px 1px black, 1px 0px black, 0px -1px black;
}

.recipe-card i{
	font-size: 2.8em;
	margin-bottom: 0.2em;
}	

.recipe-card__cover {
	cursor: pointer;
	background: #EEE;
	border-radius: 15px;
	position: relative;
	height: 500px;
	width: 300px;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	z-index: 30;
	transition: transform 0.3s ease-in-out, border-radius 0.3s ease-in-out;
}

.recipe-card__cover-details {
	z-index: 20;
	color: white;
	height: 100%;
	width: 100%;
	position: relative;
}

.recipe-card__img {
	display: flex;
	position: absolute;
	z-index: 10;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

.recipe-card__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transition: transform 0.3s ease-in;
}

.recipe-card__cover--open {
	transform: translateX(0%);
}

.recipe-card__cover:hover .recipe-card__img img {
	transform: scale(1.1);
}

.recipe-card__servings, .recipe-card__duration {
	background: rgba(255, 255, 255, 0.2);
	border: 1px solid rgba(255, 255, 255, 0.4); 
	backdrop-filter : blur(15px);
	width: 60px;
	height: 60px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	margin: 10px;
	text-align: center;
	font-size: 0.4em;
	transform: translatex(-120%);
	transition: transform 0.3s ease-in;
	text-transform: uppercase;
}

.recipe-card__rate {
	float: right;
	background: rgba(255, 255, 255, 0.2);
	border: 1px solid rgba(255, 255, 255, 0.4); 
	backdrop-filter : blur(15px);
	width: 60px;
	height: 60px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	margin: 10px;
	text-align: center;
	font-size: 0.4em;
	transform: translatex(120%);
	transition: transform 0.3s ease-in;
	text-transform: uppercase;
}

.recipe-card__ingredients {
	opacity: 0;
	position: absolute;
	bottom: 0px;
	z-index: 999;
	transition: opacity 0.3s ease; /* opacity에 애니메이션 추가 */
}

.recipe-card__cover:hover .recipe-card__ingredients {
	opacity: 1;
}

.recipe-card__cover:hover .recipe-card__servings, .recipe-card__cover:hover .recipe-card__duration,
	.recipe-card__cover:hover .recipe-card__rate {
	transform: translatex(0);
}

.recipe-card__servings--show, .recipe-card__duration--show {
	transform: translatex(0);
}

.recipe-card__servings span, .recipe-card__duration span,
	.recipe-card__rate span {
	display: block;
	font-size: 3em;
}

.recipe-card__info {
	position: absolute;
	bottom: 0;
	padding: 0 20px;
	transition: opacity 0.3s ease;
	transform: translateY(5%);
}

.recipe-card__cover:hover .recipe-card__info {
	opacity: 0;
}

.recipe-card__info--show {
	transform: translateY(0%);
}

.recipe-card__title {
	font-size: 1.2em;
}

.recipe-card__description {
	font-size: 1em;
	line-height: 1.3;
}

.recipe-card__content-container {
	width: 300px;
	height: 450px;
	margin-top: 25px;
	background: #f5f5f5;
	position: absolute;
	box-shadow: 0 2.8px 2.2px rgba(0, 0, 0, 0.02), 0 6.7px 5.3px
		rgba(0, 0, 0, 0.028), 0 12.5px 10px rgba(0, 0, 0, 0.035), 0 22.3px
		17.9px rgba(0, 0, 0, 0.042), 0 41.8px 33.4px rgba(0, 0, 0, 0.05), 0
		50px 80px rgba(0, 0, 0, 0.07);
	transition: 0.3s ease-in-out;
	border-radius: 15px;
	overflow: hidden;
}

.recipe-card .recipe-views {
	position: absolute;
	bottom: -10px;
	right: 10px;
}

.recipe-card__content-container--open {
	border-top-left-radius: 0px;
	border-bottom-left-radius: 0px;
	transform: translateX(60%);
	width: 480px;
}

.recipe-card__actions ul {
	padding: 0;
	margin: 0;
	list-style-type: none;
	display: flex;
	height: 60px;
	width: 100%;
	align-items: center;
}

.recipe-card__actions li {
	display: flex;
	height: 60px;
	width: 100%;
	transition: background-color 0.2s ease;
	align-items: center;
	justify-content: center;
	position: relative;
}

.recipe-card__actions li:hover {
	background-color: #eee;
}

.recipe-card__actions a {
	padding: 10px;
	text-decoration: none;
	color: #333;
	text-transform: uppercase;
	border-bottom: 2px solid transparent;
	transition: border-bottom 0.2s ease;
	font-weight: 900;
}

.recipe-card__actions a:hover {
	border-bottom: 2px solid #2c3e50;
}

.recipe-card__actions a::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
}

.recipe-card__actions a.active {
	border-bottom: 2px solid #34495e;
}

.recipe-card__content {
	display: none;
	padding: 10px 20px;
	height: 360px;
	overflow-y: scroll;
}

.recipe-card__content ul {
	list-style-type: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
}

.recipe-card__content span {
	font-weight: 900;
	padding: 5px 3px;
}

.recipe-card__content .menu {
	background: #34495e;
	color: white;
	text-align: center;
}

.recipe-card__content li {
	min-height: 30px;
	display: flex;
	align-items: center;
	padding: 5px 3px;
	line-height: 1.4;
}

.recipe-card__content li:nth-child(even) {
	background: #eee;
}

.recipe-card__content--active {
	display: block;
}

.preparation-steps {
	counter-reset: section;
}

.preparation-steps li {
	margin-left: 10px;
	padding-left: 30px;
	position: relative;
	border-left: 3px solid rgba(52, 73, 94, 0.5);
}

.preparation-steps li::before {
	content: '1';
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	left: -21px;
	background: rgba(52, 73, 94, 1);
	color: white;
	border-radius: 50%;
	height: 2em;
	width: 2em;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 4px solid #F5F5F5;
	counter-increment: section;
	content: counter(section);
}

/* 좌우 버튼 스타일 */
.carousel-controls {
	position: absolute;
	top: 50%;
	width: 100%;
	transform: translateY(-50%);
	display: flex;
	justify-content: space-between;
	pointer-events: none;
	/* 카드 클릭 이벤트 방해 안 하도록 설정 */
}

.carousel-btn {
	background: rgba(0, 0, 0, 0.5);
	color: white;
	border: none;
	font-size: 24px;
	cursor: pointer;
	padding: 10px 15px;
	border-radius: 5px;
	pointer-events: all;
	/* 버튼은 클릭 가능하도록 */
}

.carousel-btn:hover {
	background: rgba(0, 0, 0, 0.8);
}

/*
.owl-carousel .owl-stage-outer,
.owl-carousel .owl-stage,
.owl-carousel .owl-item {
overflow: visible !important;
}
*/
.owl-carousel .owl-item {
	z-index: 1 !important;
}

.owl-carousel .owl-item.center {
	z-index: 50 !important;
	/* 활성화된 카드를 더 높이 위치시킴 */
}

.bg-shadow {
	background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
	width: 100%;
}

.page-item.active .page-link{
	border-color: var(--green);
	background-color: var(--green);
}

.page-link{
	color: var(--green);
}

.page-link:hover{
	color: var(--green) !important;
}

.page-item.active .page-link:hover{
	color: white !important;
}

    /* 모바일 페이지네이션 스타일 - 대형 버튼 */
    .mobile-pagination {
        padding: 20px 0;
    }
    
    .mobile-pagination .page-item {
        margin: 0 5px;
        display: flex;
        align-items: center;
    }
    
    .mobile-pagination .page-link {
        min-width: 60px;
        height: 60px;
        line-height: 60px;
        text-align: center;
        font-size: 1.3rem;
        padding: 0;
        border-radius: 50% !important;
        border: none;
        box-shadow: 0 3px 6px rgba(0,0,0,0.16);
        display: flex;
        justify-content: center;
        align-items: center;
        transition: all 0.3s ease;
    }
    
    .mobile-pagination .page-link i {
        font-size: 1.5rem;
    }
    
    .mobile-pagination .page-item.active .page-link {
        background-color: #28a745;
        color: white;
        font-weight: bold;
        transform: scale(1.1);
    }
    
    .mobile-pagination .page-item.disabled .page-link {
        opacity: 0.5;
        transform: scale(0.9);
    }
    
    .mobile-pagination .page-link:active {
        transform: scale(0.95);
    }
    
    /* 태블릿 사이즈에서 조정 */
    @media (max-width: 992px) {
        .mobile-pagination .page-link {
            min-width: 55px;
            height: 55px;
            line-height: 55px;
            font-size: 1.2rem;
        }
    }
    
    /* 모바일 사이즈에서 조정 */
    @media (max-width: 768px) {
        .mobile-pagination .page-link {
            min-width: 50px;
            height: 50px;
            line-height: 50px;
            font-size: 1.1rem;
        }
        
        .mobile-pagination .page-link i {
            font-size: 1.3rem;
        }
    }


.tagify {
	--tags-border-color: none;
	--tags-hover-border-color: none;
	--tags-focus-border-color: none;
	--tag-bg: #000000f0;
	--tag-hover: #000000f0;
	--tag-text-color: white;
	max-height: 260px !important;
	overflow: hidden;
}

.card .tagify{
		max-height: 223px !important;
	overflow: hidden;
}

.card {
	text-decoration: none; /* 링크의 밑줄 제거 */
	color: inherit; /* 카드 내부 텍스트 색상 유지 */
}

.card:hover {
	cursor: pointer; /* 마우스 오버 시 손 모양 커서 표시 */
}

.card:hover .card-img-top {
	transform: scale(1.05); /* 마우스 오버 시 이미지 확대 */
}

/* 일반 레시피 스타일 */
a {
	text-decoration: none;
	color: inherit;
}

a:hover {
	text-decoration: none;
	color: inherit;
}

.masonry-container {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	/* 250px 이상의 크기로 아이템을 자동 배치 */
	gap: 1rem; /* 카드 사이에 간격 추가 */
}

.masonry-item {
	display: flex;
}

.card {
	overflow: hidden;
	border-radius: 8px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s ease;
	position: relative; /* 필요 시 포지셔닝 기준 */
	border-color: rgba(0,0,0,0.3) !important;
	width: 100%;
	
}
.img-container{
	position: relative;
}
.card-rate{
	position: absolute;
	top: 10px;
	left: 10px;
	text-shadow: -1px 0px black, 0px 1px black, 1px 0px black, 0px -1px black;
}

.card-views{
	position: absolute;
	top: 10px;
	right: 10px;
	text-shadow: -1px 0px black, 0px 1px black, 1px 0px black, 0px -1px black;
}

.card-difficulty{
	position: absolute;
	bottom: 10px;
	left: 10px;
	opacity: 1;
	transition: opacity 0.3s ease; /* opacity에 애니메이션 추가 */
	text-shadow: -1px 0px black, 0px 1px black, 1px 0px black, 0px -1px black;
}

.card:hover .card-difficulty{
	opacity: 0;
}

.card-cookingtime{
	position: absolute;
	bottom: 10px;
	right: 10px;
	opacity: 1;
	transition: opacity 0.3s ease; /* opacity에 애니메이션 추가 */
	text-shadow: -1px 0px black, 0px 1px black, 1px 0px black, 0px -1px black;
}

.card:hover .card-cookingtime{
	opacity: 0;
}




.card-ingredients{
	position: absolute;
	bottom: 10px;
	left: 10px;
	opacity: 0;
	transition: opacity 0.3s ease; /* opacity에 애니메이션 추가 */
}

.card:hover .card-ingredients{
	opacity: 1;
}
.card-img-top {
    width: 100%;
    aspect-ratio: 1 / 1; /* 1:1 비율 유지 */
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card-body {
	padding: 15px;
	
}

.card-title {
	font-size: 1.2rem;
	font-weight: bold;
}

.card-text {
	color: #555;
	font-size: 0.9rem;
}

.card:hover .card-img-top {
	transform: scale(1.02);
}

.card:hover{
	transform: scale(1.02);
}

.tagify {
	--tags-border-color: none;
	--tags-hover-border-color: none;
	--tags-focus-border-color: none;
	--tag-bg: #000000f0;
	--tag-hover: #000000f0;
	--tag-text-color: white;
	--tag-border-radius: 16px;
	border: none;
	border-radius: 16px !important;
	text-shadow: -1px 0px black, 0px 1px black, 1px 0px black, 0px -1px black;
}

.tag.tagify{
	text-shadow: -1px 0px black, 0px 1px black, 1px 0px black, 0px -1px black;
	--tag-bg:  #f0f0f0;
}

.ingredients.tagify[readonly] .tagify__tag > div::before {
			display:flex;
    content: "재료";
    font-size:0.7rem;
    color: var(--green);
    font-weight: bold;
}

.r_ingredients.tagify[readonly] .tagify__tag > div::before {
	display:flex;
    content: "재료";
    font-size:0.6rem;
    color: var(--green);
}
.tag .tagify__tag-text{
	font-size: 1.05rem;
}


@media (max-width: 768px) {

    .recipe-form::before {
        width: 3px;
    }
}