body {height:auto; background:#f8f7f5;}
div, h2, h4, p, textarea {font-size:1rem; font-family:"Pretendard",sans-serif ;}
textarea {padding:10px;}
.input_box label {padding-left:5px; font-weight:700; color:var(--black);}
.input_box input {width: 100%; background:#fff; border: solid 1px #E8E8E8; border-radius: 10px; padding: 0 16px; font-size: 14px;  font-weight: 500;  color: #404040;}

/*페이지네이션*/
.pagination, .custom-pagination {
	padding:0 var(--outer-padding);
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center
}

.bottom-paginate nav {
    position: relative !important;
    right: unset !important;
    left: unset !important;
}

.page-item {
    margin-left: 10px
}

.page-item:first-child .page-link,.page-item:last-child .page-link {
    border-radius: 50%
}

.page-item .active, .page-item.active span {
    color: #fff;
    background: var(--dark)
}

.page-link {
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    font-weight: 400; font-size:1rem;
    border: none;
    padding: 0px;
    color:#666;
    background: #fff;
    display: block;
}

.page-link:hover {
    color: #fff;
    background: var(--dark)
}

.page-link:focus {
    -webkit-box-shadow: none;
    box-shadow: none
}

@media (max-width: 991px) {
    .page-link {
        width:35px;
        height: 35px;
        line-height: 35px
    }
}

@media (max-width: 767px) {
    .page-item {
        margin:0px 3px
    }
}

.community main {
  width: 100%;
  height:auto;
  display: flex;
  flex-wrap: wrap;
}

.sub-wrap {
  width: calc(100% - 84px);
  background: #f8f7f5;
}

.sub_head {
  width: 100%;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #ededed;
  padding:10px 30px 5px;
  position: relative;
}

.sub_head a.back_btn {
	display:flex;
  font-size:16px;
  font-weight:700;
  color: #404040;
  margin: 12px 0;
  width: fit-content;
  height: fit-content;
}
.sub_head span{
  font-size:22px;
  font-weight: 700;
  color: #404040;
  position: absolute;
  left: 50%;
  top:20px;
  transform: translateX(-50%);
  color: #262626;

}
.asub_head a.back_btn img {
  margin-right: 5px;
}

.sub_head a.join_btn,
.sub_head a.login_btn {
  width: 100px;
  height: 45px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sub_head a.join_btn {
  border: 1px solid #d9d9d9;
  color: #404040;
  margin-right: 10px;
}

.sub_head a.login_btn {
  background: #404040;
  color: #fff;
}

.sub-wrap .inputbox {display:flex; flex-flow:row wrap; justify-content:center; align-items:center; margin-bottom:20px; padding-left:26px; padding-right:26px;}
.sub-wrap .inputbox .btn_search {background: #cd9233; width: 80px; border-top-left-radius: 0; border-bottom-left-radius: 0;}
.sub-wrap .tabs {margin:0; padding-bottom:20px; border-bottom: solid 1px #EDEDED;}
.sub-wrap .tabs a {display:flex; justify-content:center; align-items:center; min-width: 200px; height:50px; margin:0.325rem; padding:10px; border:1px solid #ddd; font-weight: 500; font-size: 18px; color:#666;}
.sub-wrap .tabs a.active {background: #222; border: 1px solid #222; color: #fff;}
.sub-wrap .inputbox .outer {display:flex; flex-flow:row wrap; max-width:800px; margin-top:30px; background:#fff; border-radius: 10px;  box-shadow: 0px 3px 18px rgba(0, 0, 0, 0.08); opacity: 0.94; overflow:hidden;}
.sub-wrap .inputbox select,
.sub-wrap .inputbox input {height:50px; padding:6px 10px ; font-size:inherit; font-size:1rem; line-height:1;  appearance:auto;}
.sub-wrap .inputbox select {padding-right:10px;}
.sub-wrap .inputbox input {flex:1; border:none; border-left:1px solid #ededed; }
.sub-wrap .deleteBtn {height:auto; padding:6px 10px;}

.sub-wrap .pagination {display:flex; align-items:center; justify-content:center; padding:30px 0; font-size:16px; color:#787878;}
.sub-wrap .pagination button {display:flex; align-items:center; justify-content:center; width:36px; height:36px; margin:0 20px; border:1px solid #ddd; background:rgba(255, 255, 255, 0.8); border-radius:50px;}
.sub-wrap .pagination button img {opacity:0.4;}
.sub-wrap .pagination button:hover img,
.sub-wrap .pagination button.active img {opacity:0.8;}
.sub-wrap .pagination strong {font-weight:700}
.sub-wrap .pagination em {color:#486af5;}

.sub-wrap .custom-pagination {display:flex; align-items:center; justify-content:center; padding-top:30px; font-size:16px; color:#787878;}
.sub-wrap .custom-pagination button {display:flex; align-items:center; justify-content:center; width:36px; height:36px; margin:0 20px; border:1px solid #ddd; background:rgba(255, 255, 255, 0.8); border-radius:50px;}
.sub-wrap .custom-pagination button img {opacity:0.4;}
.sub-wrap .custom-pagination button:hover img,
.sub-wrap .custom-pagination button.active img {opacity:0.8;}
.sub-wrap .custom-pagination strong {font-weight:700}
.sub-wrap .custom-pagination em {color:#486af5;}

.cols-xl-4 {flex: 0 0 auto; width: 25%;}

.content_wrap {
    width: 100%;
    padding-bottom:50px; padding-top:30px;
	font-size:1rem;
}

.imgbox {position:relative; width:100%; height:0; padding-top:63.28%;}
.imgbox > img {position:absolute; top:0; left:0; width:100%; height:100%; object-fit: cover;}

.ellipsis {
  width: 100%;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden
}

.ellipsis_multi {
  width:100%;
  text-overflow: ellipsis;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
   -webkit-line-clamp: 3;
}


/*이벤트*/
.card_list {display: flex; flex-wrap: wrap; max-width:1200px; margin:0 auto; padding: 0 30px 26px; border-bottom: solid 1px #EDEDED;}
.card_list img {width:100%;}
.card_list .blog-card {
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    padding-right: calc(var(--bs-gutter-x)/ 2);
    padding-left: calc(var(--bs-gutter-x)/ 2);
    margin-bottom: var(--bs-gutter-y);
	cursor:pointer;
}
.blog-card .imgbox {margin-bottom:5px; border-radius:10px; overflow:hidden;}
.blog-card .imgbox img {transition: all linear .3s; -webkit-transition: all .3s; -moz-transition: all linear .3s;  -ms-transition: all linear .3s;
    -o-transition: all linear .3s;}
.blog-card:hover .imgbox img {-webkit-transform: translate(0, 0)  scale(1.05);  transform: translate(0, 0) scale(1.05); transition: all linear .3s; -webkit-transition: all .3s; -moz-transition: all linear .3s;  -ms-transition: all linear .3s; -o-transition: all linear .3s;}
.blog-card .agency_name {color:#666; font-size:14px;}
.blog-card .blog-title {font-weight:700; color:var(--black); font-size:1.125rem; line-height:1.4; -webkit-line-clamp:2;}
.blog-card .date {magin-top:10px; color:var(--yellow); font-weight:400; font-size:0.875rem;}

.bottom_search {display: flex; justify-content:center; margin-bottom:60px; margin-top: 30px; padding:0 var(--outer-padding);}
.bottom_search .search_box {display:flex; width: 100%; max-width:440px; height:50px; background:#fff; border:1px solid #ddd; border-radius: 10px;  overflow: hidden;}
.bottom_search .search_box input {padding:10px; flex:1;}
.bottom_search .search_box button {display:flex; align-items:center; justify-content:center; width:50px; margin:0; color:#fff; background:var(--dark); border-radius:0;}

/*이벤트 보기*/
.blog_details {width:100%; max-width:1000px; margin:0 auto; padding-left:var(--outer-padding); padding-right:calc(var(--outer-padding) - 20px);}
.blog-details {margin-bottom: 10px; background: #fff; border: 1px solid #ededed; border-radius: 10px; overflow:hidden;}
.blog_details .agency_name {color:var(--yellow); font-size:1.125rem;}
.blog_details .date {margin-bottom:10px; font-size:14px; color:#787878;}
.blog-details-title {margin-bottom:10px; line-height: 1.3; font-size:1.625rem; color:var(--black); font-weight:700;}
.blog_details .file {position:relative; padding:5px 10px; padding-left:30px; border-radius: 5px; border: 1px solid #ddd; color:#787878;  font-size:14px;}
.blog_details .file:before {position:absolute; top:5px; left:10px; content:"\f019"; font-family: "Font Awesome 5 Free"; font-weight: 900;}
.blog-details-thumb img {width: 100%;}
.blog-details-content {
  padding:var(--40px)  20px;
  background: var(--white);
  border-radius: 0px 0px 10px 10px;
  font-size:1.764rem;
}
.blog_cont_wrap {font-size:1rem;}
.blog-details-content p {font-size:calc(1rem + 1px);}

.blog-details-meta {display:flex; flex-direction: column; padding:20px;}

.blog-details-desc {
  font-size: 17px;
  line-height: 30px;
  margin-bottom: 20px;
}

.blog_bottom {display:flex; flex-flow:row wrap; align-items:center; padding:20px;  background: var(--white); border-radius: 10px;}
.blog-details-navigate {display:flex; flex-flow:row wrap;}
.blog-details-navigate > div {margin:0 5px;}
.blog_bottom .btn_wrap {width:auto; margin-left:auto;}
.blog_bottom .btn {width:100px; padding: 10px 25px; border-radius: 5px;  font-weight: 500; line-height:1;}
.blog-details-prev {margin-left:0; margin-right: 5px;}
.blog-details-prev .nav-arrow,
.blog-details-next .nav-arrow {
	display:flex; align-items:center; justify-content:center; height:50px;
	font-weight:500;
	padding: 10px 25px;
	border-radius: 5px;
	color: var(--black);
	background: var(--chalk);
  text-transform: uppercase;
  transition: all linear .3s;
  -webkit-transition: all linear .3s;
  -moz-transition: all linear .3s;
  -ms-transition: all linear .3s;
  -o-transition: all linear .3s;
}
.blog-details-prev .nav-arrow:hover,
.blog-details-next .nav-arrow:hover {background:#e1e1e1;}
.blog-details-prev i {margin-right:10px;}
.blog-details-next i {margin-left:10px;}
.blog-details-next {
  text-align: right;
}

/*댓글*/
.comments {padding-right: 0; padding-left: 0; background:#fff; border:1px solid #ededed; border-radius:10px;}
.comment_write {padding:20px; border-bottom:1px solid var(--border);}
.comment_write h3 {font-size: 18px; font-weight:500; margin-bottom: 10px; padding-left:5px;}
.comment_write textarea {width:100%; height:120px; padding:10px; background:#f1f0ed; border:none; font-weight:400!important;}
.comment_write .btn,
.reply_write .btn {width:100%; max-width: 100px; height: 40px; margin-top:6px; background:var(--black);  font-size:14px; color:#fff;}
.comment_list ul li {padding:20px;  display:flex; flex-flow:row wrap; border-top:1px solid var(--border); }
.comment_list ul li:first-child {border-top:none;}
.comment_list ul li.child {margin-left:80px;}
.comment_list ul .img_box img {width:40px; height:40px; margin-right:20px; border-radius:50px; object-fit:cover;}
.comment_list .txt_box {width: calc(100% - 70px);}
.comment_list .info {display:flex; align-items: center; width:100%; font-size:0.875rem; color:#787878;}
.comment_list .info .name {display: flex; align-items: center; font-weight:700; color:#404040; font-size:1rem;}
.comment_list .info .edit,
.comment_list .info .del {cursor:pointer;}
.comment_list .info > span:after {content:""; display:inline-block; width:1px; height:15px; margin:0 8px; background:#ddd; vertical-align: text-bottom;}
.comment_list .info > span:first-of-type:after,
.comment_list .info > span:last-of-type:after {display:none;}
.comment_list .info .btn_report {display:flex; align-items:center; justify-content:center; width:60px; height:30px; margin-left:auto; padding:5px 10px; border:1px solid #dda1a0; border-radius:5px; line-height:1; color: #ab403e; font-size:14px;}
.comment_list .comment_cont {width:100%; margin:10px 0; padding-left:60px;}
.comment_list li > .btn_wrap .btn {display:flex; justify-content:center; align-items:center; width:100px; height:40px; margin: 0; margin-right:20px; padding:3px 10px;  background:#525252; font-weight:500; height:40px;  color:#fff;}
.comment_list .btn:hover,
.comment_write .btn:hover {background:#525252;}
.comment_list .btn_wrap {display:flex; padding-left:60px; font-size:18px; color:#878787;}
.comment_list .btn_wrap .btn {width: auto; padding: 0; font-size: 14px; color: #666; vertical-align: baseline; text-align: center;}
.comment_list .btn_wrap > span {display:flex; flex-flow:row nowrap; align-items:center; margin-left:10px; font-size:16px; font-weight:500;}
.comment_list .reply_write {display:none; width:100%; margin-top:5px; margin-left:60px; padding:20px; background:#f6f6f6; border-radius:8px;}
.comment_list .reply_write textarea {width:100%; height:120px;}
.comment_list .reply_write .btn {margin-top:6px; font-size:14px;}
.reply_wrap {margin-top:10px; margin-left:60px;}
.reply_wrap .comment_list ul li {padding: 20px 5px; }
.reply_wrap .comment_list ul li:last-child {border-bottom:none;}
.comment_btm {padding:20px;}
.comment_btm .row > div{border:none; margin:0; }
.comment_btm .bottom-paginate {justify-content: flex-end; padding-top:0; border-top:none;}

/*매거진*/
.card_1colum {width:100%; max-width:1000px; margin:0 auto; padding:0 4%;}
.card_1colum .blog-card {display:flex; margin-bottom:20px; background:#fff; border-radius:10px; overflow:hidden;}
.card_1colum .blog-media {width:20%;}
.card_1colum .imgbox {margin-bottom:0; padding-top:60%; border-radius:0;}
.card_1colum .blog-content {display: flex; flex-direction: column; justify-content: center; width:74%; padding:5px 20px;}
.card_1colum .agency_name {color:var(--yellow);}
.card_1colum .blog-card .blog-title {font-size:18px; line-height:1.4;}
.card_1colum .date {color:#999; font-size:12px;}
.card_1colum .decs {line-height: 1.4;}
.card_1colum .decs.ellipsis_multi {-webkit-line-clamp:1;}

/*매거진 보기*/

/*고톡*/
.bbs_list,
.gotalk .btn_wrap {width:100%; max-width:1200px; margin:0 auto; padding:0 4%;}
.bbs_list .bbs_wrap {border-top:1px solid var(--black);}
.bbs_list .bbs_wrap .row {display:flex; flex-flow:row nowrap; align-items:center; height:38px; border-bottom:1px solid #ddd;}
.bbs_list .bbs_wrap .row > div {padding:6px 10px; text-align:center; }
.bbs_list .num {width:70px; color:#999; font-size:15px;}
.bbs_list .tag_notice {padding: 5px 8px; background: #d7ab53; font-size: 13px; border-radius: 3px; font-weight: 500; margin-right: 5px; color: #fff;}
.bbs_list .subject {width:calc(100% - 310px); text-align:left!important;}
.bbs_list .subject a {display:inline;}
.bbs_list .writer {width:120px;}
.bbs_list .date {width:120px;}
.bbs_list .tag {font-weight:500; font-size:calc(1rem - 2px); letter-spacing:-1px;}
.list_comment {color:#4e66c6; }
.list_like {color:#c74f4f;}
.gotalk .btn_wrap {display:flex; justify-content:right;}
.gotalk .btn_wrap .btn {width:100%; max-width:120px; font-size:1rem; font-weight:500;}

/*고톡 보기*/
.gotalk .blog-details-meta button:before {content:""; display:inline-block; width:1px; height:15px; margin:0 8px; background:#ddd; color:#787878;}
.gotalk .blog-details-meta button {
    display: block !important;
    height: 25px !important;
}
.gotalk .blog-details-meta > div:first-of-type:before {display:none;}
.gotalk .blog_bottom .btn_wrap {display:flex;}
.gotalk .blog_bottom .btn_wrap .btn:not(:last-of-type) {background:var(--dark);}
.gotalk .blog_bottom .btn_wrap .btn:not(:last-of-type):hover {background:#525252;}
.blog_details_btm {display:flex; align-items: center; margin-top:20px; padding:10px 20px; border-top:1px solid #ddd; border-bottom:1px solid #ddd;}
.blog_details_btm > *:not(.list_comment) {margin-left:20px;}
.blog_details_btm i {margin-right:3px;}
.gotalk.view .btn_wrap {flex:1; width:auto; margin:0; margin-left:auto; padding:0;}

/*고톡 쓰기 */
.blog_write {width:100%; max-width:1200px; margin:0 auto; padding:0 4%; padding-top:30px;}
.blog_write .input_wrap {margin-bottom:10px; padding-bottom:10px; border-bottom:1px solid #ededed;}
.blog_write .input_box {padding:10px 0;}
.blog_write .editor_wrap {height:400px; background:#fff; border:1px solid #E8E8E8; border-radius:10px;}
.blog_write .input_box input {height:50px;}
.blog_write  input[type=file] {position:relative; line-height:50px; overflow:hidden;}
.blog_write  input[type=file]::file-selector-button {position:absolute; top:0; right:-10px; width:140px; height: 100%; display: flex; align-items: center; justify-content: center; background:var(--dark); border:none; font-size: 15px; font-weight: 500; color:#fff;}
.blog_write  .btn_wrap {width:100%; max-width:450px; margin:0 auto;}
.blog_write .btn_wrap .btn {width: calc(50% - 10px); height:60px; }

/*아임고티비*/
.imgotv .imgbox iframe {position:absolute; top:0; left:0; width:100%; height:100%;}
.imgotv .card_1colum .blog-media {width:26%;}
.imgotv .card_1colum .imgbox {padding-top:56.25%;}
.ytp-cued-thumbnail-overlay-image {background-size: 100% 136%!important;}
.imgotv .card_1colum .blog-content {padding:5px 20px;}

/*아임고티비 보기*/
.imgotv .blog-details-thumb {position: relative; width: 100%; height: 0; padding-top: 55.6%;}
.imgotv .blog-details-thumb iframe {    position: absolute; top: 0; left: 0; width: 100%;  height: 100%;}

@media (max-width:1600px){
}

@media (max-width:1580px){

}
@media (max-width:1500px){
  main{
    height: auto;
  }
  .sub-wrap{
    width: 100%;
    padding-left: 84px;
  }
}
@media (max-width:1024px){
	.sub-wrap .inputbox input {width: calc(100% - 86px);}
	.sub-wrap .inputbox .btn_search {width:50px;}
  .agency_top button{
    width: calc((100% - 40px)/2);

  }
  .agency_top button:nth-child(2n){
    margin-right: 0;
  }
  .agency_bot li{
    width: 100%;
    margin-right: 0;
  }
}
@media (max-width:768px){
	main{height: auto;}

	.login,
	.mypage,
	.logout {display:none;}

	.sub-wrap{padding-left: 0; padding-top: 62px;}
	.sub-wrap .inputbox  {margin-bottom:0; padding-right:4%; padding-left:4%;}
	.sub-wrap .inputbox .btn_search {border-top-right-radius:0;}
	.sub-wrap .tabs {margin:20px 0 10px;}
	.sub-wrap .tabs a {width:50%; min-width:auto; margin:0; margin-bottom:-1px; margin-left:-1px;  font-size:15px;}

	.sub_head{
	    width: 100%;
	    height: 62px;
	    position: fixed;
	    top: 0;
	    left: 0;
	    z-index: 100;
	    background-color: #fff;
	    align-items: center;
	    padding: 0 4% 0;
	    border: none;
	}
	.sub_head span{
		top: 50%;
		transform: translateY(-50%) translateX(-50%);
	}

	.sub-wrap .tabs a {min-width: calc(24.26% - 0.325rem);}
	.card_list {padding: 30px 4% 26px;}

	.card_1colum .blog-content {padding: 20px 4%;}
	.card_1colum .imgbox {padding-top: inherit; height: 100%;}
}

@media (max-width:767px){
	.sub-wrap .inputbox input,
	.sub-wrap .deleteBtn {border-top:1px solid #ededed;}
	.sub-wrap .inputbox input {flex:auto; border-left:none;}
}

@media (max-width:640px){
	.gotalk .blog-details-navigate {justify-content: space-between; width: 100%;}
	.gotalk .blog-details-navigate > div {margin-left: 0; width: calc(50% - 5px);}
	.gotalk .blog_bottom .btn_wrap {display:flex; flex-direction:column; flex: auto;  width:100%;  margin-top:10px; margin-left:0;}
	.gotalk .blog_bottom .btn_wrap .btn {width:100%; max-width:none; margin:3px 0;}

}

@media (max-width:500px){
	:root {
	--40px :20px;
	}

	html, body {font-size:15px;}
	div {font-size:1rem;}

	main nav ul li {width:20%;}
	main nav ul li a {width:100%;}


	.sub_head span {font-size:20px; text-align:center;}
	.sub_head a.back_btn img {margin-right: 2px; width: 15px;}
	.sub_head a.back_btn {font-size:15px;}
	.sub_head a.join_btn, .sub_head a.login_btn {width:60px; height:32px; font-size:15px;}
	.card_list .blog-card {padding-right:0; padding-left:0;}

	.content_wrap {padding-top:10px;}

	.blog_details {padding-right: var(--outer-padding)}
	.blog-details-title {margin-bottom: 10px; font-size:20px;}
	.blog_details .date {font-size:15px;}
	.blog_details .file {padding:5px inherit; font-size:12px; line-height:1.3;}
	.blog-details-content p {font-size:1rem;}
	.comment_list .comment_cont,
	.comment_list .btn_wrap {padding-left:0;}
	.comment_list ul li.child {margin-left:22px;}
	.comment_list .reply_write {margin-left:0; padding:12px;}
	.reply_wrap {margin-left: 30px;}

	.card_1colum .blog-card {flex-direction: column;}
	.card_1colum .blog-media {width:100%!important;}
	.card_1colum .imgbox {padding-top: 220px;}

	.bbs_list .bbs_wrap .row {flex-wrap:wrap; height:auto; padding:6px 3px;}
	.bbs_list .bbs_wrap .row > div {padding:0;}
	.bbs_list .num {display:none;}
	.bbs_list .tag_notice {font-size:12px;}
	.bbs_list .subject {width:100%;}
	.bbs_list .writer,
	.bbs_list .date {width:auto; color:#787878; font-size:13px;}
	.bbs_list .date {margin-left:10px;}

	.gotalk .blog-details-title {margin-bottom: 10px;}
	.gotalk .blog-details-meta,
	.gotalk .blog_details .date,
	.gotalk .agency_name,
	.gotalk .tag {font-size:14px;}

	.blog_write {padding-top:0;}
	.blog_write  input[type=file]::file-selector-button {width:100px; font-size:13px;}
	.blog_write .input_wrap {margin-bottom: 20px; padding-bottom: 20px;}
	.blog_write .btn_wrap .btn {max-width:none; height:50px}

}

@media (max-width:380px){
	.sub-wrap .inputbox select,
	.sub-wrap .inputbox input,
	.sub-wrap .inputbox option {font-size:13px;}
	.sub-wrap .inputbox select {width:33.33%; padding:6px 3px;}
}
