@charset "utf-8";

/* 1집발견 */
#homeDscv {
    position: relative;
    width: 100%;
    margin-top: 30px;
}

#homeDscv .sectionInner {
    padding: 0 40px;
}

#homeDscv .homeCardBox {
    width: 100%;
    margin-top: 30px;
    padding-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#homeDscv .homeCard {
    width: 640px;
    height: 460px;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#homeDscv .homeCard .cardImg,
#homeDscv .homeCard.slick-cloned .cardImg {
    position: relative;
    width: 640px;
    height: 460px;
    background-color: #eaeaea;
    background-size: cover;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    border-radius: 30px;
    transition: all 0.3s ease-in-out;
    transform: scale(0.9);
    overflow: hidden;
}
/* 반응형 <img> (background-image 대체) — 카드 채움, 오버레이 아래. hover scale은 img에. */
#homeDscv .cardImg .coverImg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease-in-out;
    z-index: 0;
}
/* 호버 시 이미지 줌 (물건발견·일상발견과 동일 패턴) */
#homeDscv .cardImg:hover .coverImg {
    transform: scale(1.05);
}


#homeDscv .homeCard.slick-current .cardImg,
#homeDscv .homeCard.slick-cloned.slick-current .cardImg,
#homeDscv .homeCard.is-active-clone .cardImg {
   transform: scale(1);
}

#homeDscv .cardImg:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 50%);
}

#homeDscv .cardImg .cardLink {
    position: absolute;
    inset: 0;
    z-index: 1;
}

#homeDscv .cardImg .tagBox {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 2;
    /* 가운데 카드에서만 노출 (텍스트와 동일) */
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

#homeDscv .cardImg .linkBox {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

#homeDscv .cardImg .textWrap {
    position: absolute;
    left: 20px;
    bottom: 20px;
    max-width: 60%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 2;
    pointer-events: none;
    /* 가운데(활성) 카드에서만 제목/텍스트 노출 — 기본 숨김 + 페이드 */
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

/* 활성(가운데) 카드만 제목/텍스트·태그·링크 표시 */
#homeDscv .homeCard.slick-current .cardImg .textWrap,
#homeDscv .homeCard.slick-cloned.slick-current .cardImg .textWrap,
#homeDscv .homeCard.is-active-clone .cardImg .textWrap,
#homeDscv .homeCard.slick-current .cardImg .tagBox,
#homeDscv .homeCard.slick-cloned.slick-current .cardImg .tagBox,
#homeDscv .homeCard.is-active-clone .cardImg .tagBox,
#homeDscv .homeCard.slick-current .cardImg .linkBox,
#homeDscv .homeCard.slick-cloned.slick-current .cardImg .linkBox,
#homeDscv .homeCard.is-active-clone .cardImg .linkBox {
    opacity: 1;
}

#homeDscv .cardImg .textWrap h2 {
    font-size: 18px;
    color: #fff;
    font-weight: 600;
    word-break: keep-all;
}

#homeDscv .cardImg .textWrap p {
    font-size: 14px;
    color: #fff;
    font-weight: 400;
    word-break: keep-all;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

#homeDscv .tagList {
    width: 100%;
    margin-top: 20px;
    padding: 5px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
#homeDscv .tagList .tagSlider {
    width: auto;
    display: flex;
    align-items: center;
    gap: 15px;
    overflow: hidden;
}
#homeDscv .tagSlider .slick-list {
    max-width: 100%;
    transition: width 0.5s ease-in-out !important;
    display: inline-block !important;
    overflow: hidden !important;
}
#homeDscv .tagSlider .tagItem {
    margin:0 3px;
    box-sizing: border-box;
    display: inline-block;
}
#homeDscv .tagList .slick-prev,
#homeDscv .tagList .slick-next {
    position: static;
    width: 34px;
    height: 34px;
    background-color: transparent;
    background-size: auto 24px;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    border:0;
    text-indent: -9999px;
    transform: none;
    cursor: pointer;
}
#homeDscv .tagList .slick-prev { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 512'%3E%3Cpath d='M47 239c-9.4 9.4-9.4 24.6 0 33.9L207 433c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9L97.9 256 241 113c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0L47 239z'/%3E%3C/svg%3E"); }
#homeDscv .tagList .slick-next { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 512'%3E%3Cpath d='M273 239c9.4 9.4 9.4 24.6 0 33.9L113 433c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l143-143L79 113c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0L273 239z'/%3E%3C/svg%3E"); }

/* 취향발견 */
#tasteDscv {
    position: relative;
    margin-top: 60px;
    padding: 0 40px;
}
#tasteDscv .quizBox {
    margin-top: 30px;
}
.quizBox:has(.slick-dots) {
    padding-bottom: 40px !important;
}
#tasteDscv .quizBox .slick-list {
    margin: 0 -20px;
}

/* 슬라이드 높이 균일화 설정 */
#tasteDscv .quizBox .slick-track {
    display: flex !important;
    align-items: stretch;
}
#tasteDscv .quizBox .slick-slide {
    height: auto !important;
}
#tasteDscv .quizBox .slick-slide > div {
    height: 100%;
}
#tasteDscv .quizBox .cardWrap {
    height: 100%;
    padding: 0 10px;
    box-sizing: border-box;
    outline: none;
}
#tasteDscv .quizBox .card {
    position: relative;
    padding: 20px;
    background-color: #fff;
    border-radius: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0px;
}
#tasteDscv .quizBox .card .cardLink {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: 20px;
}
#tasteDscv .quizBox h2 {
    width: 100%;
    height: 2.5em;
    font-size: 20px;
    color: #000;
    font-weight: 600;
    word-break: keep-all;
    text-align: center;
    line-height: 1.25;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* 1집발견 배너와 동일 패턴: 컨테이너에 가로비, figure는 stretch만 (per-figure aspect-ratio 사용 시 overflow 발생) */
#tasteDscv .quizBox .quizImgBox {
    position: relative;
    width: 100%;
    aspect-ratio: 1.6 / 1;
    /* 카드 1개일 때 슬라이드가 풀폭이 되어 1.6:1 비율로 높이가 과도해지는 것 방지 — 450에서 상한.
       다중 카드(슬라이드 폭 좁음)는 보통 450 미만이라 영향 없음. */
    max-height: 450px;
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 10px;
}
#tasteDscv .quizBox .quizImgBox > .label {
    z-index: 2;
    pointer-events: none;
    text-transform: uppercase;
}
#tasteDscv .quizBox .quizImg {
    flex: 1;
    margin: 0;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}
#tasteDscv .quizBox .quizImg:before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--bg-img);
    background-size: cover;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    transition: transform 0.6s ease-in-out;
}
#tasteDscv .quizBox .card:hover .quizImg:before {
    transform: scale(1.05);
}
#tasteDscv .quizBox .btnTake {
    position: relative;
    z-index: 2;
    font-size: 16px;
    color: #fff;
    font-weight: 600;
    padding: 6px 45px;
    background-color: var(--pointColor);
    border: 0;
    border-radius: 100vh;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
    margin-top:15px;
}
#tasteDscv .quizBox .btnTake .takePoint {
    position: relative;
    font-size: 16px;
    color: #fff;
    font-weight: 900;
    border: 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
#tasteDscv .quizBox .btnTake .takePoint:before {
    content: "";
    width: 20px;
    height: 20px;
    background-image: url("../images/icon_point.svg");
    background-size: cover;
    background-position: 0 50%;
    background-repeat: no-repeat;
}

/* 일상발견 */
#dailyDscv {
    margin-top: 60px;
    padding: 0 40px;
}

#dailyDscv .dailyBox {
    width: 100%;
    margin-top: 30px;
    display: flex;
    gap: 40px;
}

#dailyDscv .dailyBox .dailyList {
    width: 100%;
}

#dailyDscv .dailyBox .dailyList .dailyPost {
    width: 100%;
    border-top: 1px solid #5E5E5E;
    display: flex;
    flex-direction: column;
}

#dailyDscv .dailyBox .dailyList .postBox {
    position: relative;
    width: 100%;
    padding: 20px 0;
    border-bottom: 1px solid #5E5E5E;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

/* 카드 전체 클릭(글 상세) — 태그 아래 레이어 */
#dailyDscv .dailyBox .dailyList .postBox .cardLink {
    position: absolute;
    inset: 0;
    z-index: 1;
}
/* 태그는 위로 — 클릭 시 일상발견 필터로 이동 */
#dailyDscv .dailyBox .dailyList .postBox .tag {
    position: relative;
    z-index: 2;
}

#dailyDscv .dailyBox .dailyList .postBox p {
    min-width: 0;
    font-size: 24px;
    color: #5E5E5E;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

#dailyDscv .dailyBox .dailyList .postBox .link {
    margin-left: auto;
}

#dailyDscv .dailyBox .dailyList .postBox:hover p,
#dailyDscv .dailyBox .dailyList .postBox.is-hovered p,
#dailyDscv .dailyBox .dailyList .postBox:hover .tag,
#dailyDscv .dailyBox .dailyList .postBox.is-hovered .tag,
#dailyDscv .dailyBox .dailyList .postBox:hover .link,
#dailyDscv .dailyBox .dailyList .postBox.is-hovered .link {
    transition: all 0.3s ease-in-out;
}

#dailyDscv .dailyBox .dailyList .postBox:hover p,
#dailyDscv .dailyBox .dailyList .postBox.is-hovered p {
    color: var(--darkColor);
}

#dailyDscv .dailyBox .dailyList .postBox:hover .tag,
#dailyDscv .dailyBox .dailyList .postBox.is-hovered .tag,
#dailyDscv .dailyBox .dailyList .postBox:hover .link,
#dailyDscv .dailyBox .dailyList .postBox.is-hovered .link {
    background-color: var(--darkColor);
}

#dailyDscv .dailyBox .dailyThumb {
    width: 100%;
    max-width: 33.333%;
    display: flex;
}

#dailyDscv .dailyBox .dailyThumb .thumbBox {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0;
}

#dailyDscv .dailyBox .dailyThumb .thumbBox li {
    flex: 1;
    display: flex;
}

#dailyDscv .dailyBox .dailyThumb .thumbBox .postThumb {
    position: relative;
    display: block;
    flex: 1;
    overflow: hidden;
    border-radius: 20px;
}

#dailyDscv .dailyBox .dailyThumb .thumbBox .postThumb .thumbImg {
    position: relative;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    transition: transform 0.6s ease-in-out;
}

/* 반응형 <img> (background-image 대체) — absolute로 채워 박스 높이(flex stretch)에 영향 안 줌. hover scale은 thumbImg에 */
#dailyDscv .dailyBox .dailyThumb .thumbBox .postThumb .thumbImg .coverImg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#dailyDscv .dailyBox .dailyThumb .thumbBox .postThumb:hover .thumbImg,
#dailyDscv .dailyBox .dailyThumb .thumbBox .postThumb.is-hovered .thumbImg {
    transform: scale(1.05);
}

#dailyDscv .dailyBox .dailyThumb .thumbBox .postThumb .link {
    position: absolute;
    bottom: 10px;
    right: 10px;
    transition: all 0.3s ease-in-out;
    transform: scale(0.8);
    transform-origin: right bottom;
}

#dailyDscv .dailyBox .dailyThumb .thumbBox .postThumb:hover .link,
#dailyDscv .dailyBox .dailyThumb .thumbBox .postThumb.is-hovered .link {
    background-color: var(--darkColor);
    background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23FFF' d='M14.7997 0C15.4649 0 16 0.534916 16 1.19981V13.1979C16 13.8628 15.4649 14.3978 14.7997 14.3978C14.1345 14.3978 13.5993 13.8628 13.5993 13.1979V4.09436L2.04619 15.6476C1.57606 16.1175 0.81585 16.1175 0.350723 15.6476C-0.114404 15.1776 -0.119405 14.4177 0.350723 13.9528L11.9039 2.40462H2.79639C2.13121 2.40462 1.59606 1.86971 1.59606 1.20481C1.59606 0.539916 2.13121 0.00499914 2.79639 0.00499914H14.7997V0Z'/%3E%3C/svg%3E%0A");
    transform: scale(1);
}

/* 물건발견 */
#itemDscv {
    margin-top: 60px;
    padding: 0 40px;
}
#itemDscv .itemCardBox {
    position: relative;
    width: 100%;
    margin-top: 30px;
    display: flex;
    flex-direction: column;
}
#itemDscv .itemCard {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

/* 카드 전체 클릭(글 상세) — 태그칩 아래 레이어 */
#itemDscv .itemCard .cardLink {
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* 이미지 위 태그칩 — cardLink보다 위(클릭 시 물건발견 필터로 이동) */
#itemDscv .itemCard .cardThumb .tagBox {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
#itemDscv .itemCard.cardFull {
    flex-direction: row;
}
#itemDscv .cardCol,
#itemDscv .cardFull,
#itemDscv .cardRow {
    height: 480px; /* 좌우구조도 상하 구조가 되므로 480px로 통일하여 노출 */
}

/* 이미지 요소 설정 */
#itemDscv .cardThumb {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}
/* 반응형 <img> (background-image 대체) — cardThumb 채움, hover scale은 img에. */
#itemDscv .cardThumb .coverImg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease-in-out;
    z-index: 0;
}
#itemDscv .itemCard:hover .cardThumb .coverImg {
    transform: scale(1.05);
}

/* 상하구조 비율 */
#itemDscv .cardCol .cardThumb {
    width: 100%;
    height: 50%;
}
/* 좌우구조 비율 */
#itemDscv .cardRow .cardThumb,
#itemDscv .cardRowReverse .cardThumb {
    width: 100%;
    height: 100%;
}

/* 채움구조 이미지와 텍스트 박스 설정 */
#itemDscv .cardFull .cardThumb {
    width: 100%;
    height: 100%;
}
#itemDscv .cardFull .textBox {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
    color: #fff;
    box-sizing: border-box;
}

/* 텍스트 내용 기본 스타일 */
#itemDscv .textBox {
    width: 100%;
    height: 100%;
    padding: 10px;
    border-radius: 20px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex: 1;
}
#itemDscv .cardFull .textBox {
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 50%);
    box-sizing: border-box;
}
#itemDscv .textBox.keyColor {
    background-color: var(--keyColor);
}
#itemDscv .textBox.pointColor {
    background-color: var(--pointColor);
}
#itemDscv .textBox .textWrap {
    color: var(--lightColor);
    padding: 10px;
}
#itemDscv .textBox.keyColor .textWrap {
    color: var(--darkColor);
}
#itemDscv .textBox h3 {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.25;
    word-break: keep-all;
}
#itemDscv .textBox p {
    font-size: 14px;
    font-weight: 400;
    word-break: keep-all;
    margin-top: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}
#itemDscv .link {
    transition: all 0.3s ease-in-out;
}
#itemDscv .itemCard:hover .link {
    background-color: var(--darkColor);
    background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23FFF' d='M14.7997 0C15.4649 0 16 0.534916 16 1.19981V13.1979C16 13.8628 15.4649 14.3978 14.7997 14.3978C14.1345 14.3978 13.5993 13.8628 13.5993 13.1979V4.09436L2.04619 15.6476C1.57606 16.1175 0.81585 16.1175 0.350723 15.6476C-0.114404 15.1776 -0.119405 14.4177 0.350723 13.9528L11.9039 2.40462H2.79639C2.13121 2.40462 1.59606 1.86971 1.59606 1.20481C1.59606 0.539916 2.13121 0.00499914 2.79639 0.00499914H14.7997V0Z'/%3E%3C/svg%3E%0A");
}
#itemDscv .textBox.topLeft {
    flex-direction: column;
}
#itemDscv .textBox.topLeft .link {
    margin-left: auto;
}
#itemDscv .textBox.bottomLeft {
    align-items: flex-end;
    flex-direction: row;
}
#itemDscv .textBox.bottomLeft .link {
    margin-left: auto;
}

/*
Desktop Device greater than 1024px
*/
@media all and (min-width:1024px) {
    #itemDscv .itemCardBox {
        display: grid;
        grid-template-columns: repeat(3, 1fr); /* 3열 분할 */
        grid-template-rows: 240px 240px;       /* 2줄 분할 */
    }

    /* 상하구조 */
    #itemDscv .cardCol {
        grid-column: 1;
        grid-row: 1 / 3;
    }

    /* 채움구조 */
    #itemDscv .cardFull {
        grid-column: 2;
        grid-row: 1 / 3;
    }

    /* 좌우구조 */
    #itemDscv .cardRow {
        grid-column: 3;
        grid-row: 1;
        flex-direction: row;
        height: 100%;
    }
    #itemDscv .cardRow .cardThumb { width: 50%; }

    /* 좌우구조 2열 */
    #itemDscv .cardRowReverse {
        grid-column: 3;
        grid-row: 2;
        flex-direction: row-reverse; /* PC에서는 우측 이미지, 좌측 텍스트 반전 */
        height: 100%;
    }
    #itemDscv .cardRowReverse .cardThumb { width: 50%; }
}

/*
Wide Desktop greater than 1440px — 컨펌 기준폭(1440·콘텐츠 1360 × 높이 480)의 비율을 유지.
그 이상에선 그리드 행을 1fr+aspect-ratio로 바꿔 가로 확대 시 높이도 비례(가로만 늘어짐 방지).
*/
@media (min-width: 1441px) {
    #itemDscv .itemCardBox {
        grid-template-rows: 1fr 1fr;
        aspect-ratio: 1360 / 480;
    }
    /* 상하·채움 카드는 고정 480 해제 → 그리드 영역(2행 span)을 비례로 꽉 채움 */
    #itemDscv .cardCol,
    #itemDscv .cardFull {
        height: auto;
    }
}

/*
Tablet Device Less than 1023px or greater than 768px
*/
@media all and (min-width:768px) and (max-width:1023px) {
    #homeDscv .sectionInner {
        padding: 0 20px;
    }
    #tasteDscv,
    #dailyDscv,
    #itemDscv { padding: 0 20px; }

    #tasteDscv .quizBox .slick-list { margin: 0 -10px; }
    #tasteDscv .quizBox .cardWrap { padding: 0 10px; }

    #dailyDscv .dailyBox .dailyThumb { max-width: 350px; }
    #dailyDscv .dailyBox .dailyList .postBox { padding: 15px 0; }
    #dailyDscv .dailyBox .dailyList .postBox p { font-size: 20px; }

    #itemDscv .itemCardBox {
        flex-direction: row; /* 가로 나열 */
        flex-wrap: wrap;     /* 100% 넘치면 줄바꿈 */
    }

    /* 상하구조와 채움구조 좌우 배치 */
    #itemDscv .cardCol,
    #itemDscv .cardFull {
        width: 50%;
        height: 400px;
    }

    /* 좌우구조 좌우 배치 */
    #itemDscv .cardRow {
        width: 50%;
        height: 240px;
        flex-direction: row;
    }

    /* 3, 4번 카드 이미지 가로 비율 다시 50%로 조정 */
    #itemDscv .cardRow .cardThumb {
        width: 50%;
    }

    /* 태블릿에서 HTML 구조 순서대로 흐르도록 강제 초기화 */
    #itemDscv .cardCol { order: unset; }
    #itemDscv .cardFull { order: unset; }
    #itemDscv .cardRow { order: unset; }
}

/*
Mobile Device Less than 768px
*/
@media all and (max-width:767px) {
    #homeDscv { margin-top: 30px; }
    #homeDscv .sectionInner { padding: 0 15px; }

    #homeDscv .homeCard {
        max-width: 280px;
        height: auto;
        aspect-ratio: 17 / 23;
        margin: 0 10px;
        transform: scale(1);
    }

    #homeDscv .homeCard .cardImg,
    #homeDscv .homeCard.slick-cloned .cardImg {
        max-width: 280px;
        height: auto;
        aspect-ratio: 17 / 23;
        transform: scale(1);
    }

    #homeDscv .homeCard.slick-current .cardImg,
    #homeDscv .homeCard.slick-cloned.slick-current .cardImg,
    #homeDscv .homeCard.is-active-clone .cardImg {
        max-width: 280px;
        height: auto;
        aspect-ratio: 17 / 23;
    }
    #homeDscv .cardImg .textWrap {
        left: auto;
        right: 20px;
    }
    #homeDscv .cardImg .textWrap h2 {
        line-height: 1.25;
        text-align: right;
    }
    #homeDscv .cardImg .textWrap p { display: none; }
    #homeDscv .tagList { padding: 5px 15px; }

    #tasteDscv,
    #dailyDscv,
    #itemDscv { margin-top: 60px; }
    #tasteDscv,
    #dailyDscv,
    #itemDscv { padding: 0 15px; }

    /* quizBox .slick-list 음수마진(-20, PC 패딩 기준)이 모바일 패딩(15)보다 커서 가로 오버플로 → -15로 보정 */
    #tasteDscv .quizBox .slick-list { margin: 0 -15px; }

    #tasteDscv .quizBox .card {
        padding: 15px 10px;
        gap: 10px;
    }

    #dailyDscv .dailyBox {
        flex-direction: column;
        gap: 10px;
    }
    #dailyDscv .dailyBox .dailyList { width: 100%; }
    #dailyDscv .dailyBox .dailyList .postBox { padding: 10px 0; }
    #dailyDscv .dailyBox .dailyList .postBox p { font-size: 18px; }
    #dailyDscv .dailyBox .dailyThumb {
        width: 100%;
        max-width: 100%;
        aspect-ratio: 10 / 8;
    }

    #itemDscv .itemCardBox {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    /* 상하/채움구조 높이 고정 */
    #itemDscv .cardCol,
    #itemDscv .cardFull {
        height: 360px;
    }

    /* 좌우구조 높이 고정 */
    #itemDscv .cardRow {
        height: 360px;
    }
}

/* 메인 전용 — 카피라이트 아래 여백(푸터 하단 패딩) 50% 증가 40→60px (하단 구독 바와 간격 확보) */
#footer {
    padding-bottom: 60px;
}
/* 한개만 노출시 배너 타입 — 배경은 인라인 --bg-img(콘텐츠 배너 이미지), 없으면 샘플 fallback.
   흰 글씨 가독성을 위해 어두운 그라데이션 오버레이를 이미지 위에 깔아준다. */
#tasteDscv .tasteBanner {
    position: relative;
    isolation: isolate; /* 독립 stacking context — 배경 :before(z-index:-1)를 배너 안에 가둠 */
    overflow: hidden;
    width: 100%;
    min-height: 460px;
    margin-top: 30px;
    padding: 30px;
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}
/* 배경 이미지를 가상요소로 분리 → 호버 시 살짝 확대(텍스트는 고정). overflow:hidden로 클립 */
#tasteDscv .tasteBanner:before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: var(--bg-img, url("../images/sample_images/banner_sample.jpg"));
    background-size: cover;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    transition: transform 0.6s ease-in-out;
}
#tasteDscv .tasteBanner:hover:before {
    transform: scale(1.02);
}
/* 배너 전체 클릭 — 풀커버 오버레이 링크. 텍스트/태그는 그 아래, btnTake만 위로 올려 자체 호버 유지 */
#tasteDscv .tasteBanner .cardLink {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: 30px;
}
#tasteDscv .tasteBanner h1 {
    font-size: 46px;
    color: #fff;
    font-weight: 700;
    line-height: 1.2;
    word-break: keep-all;
    margin-top: 30px;
}
#tasteDscv .tasteBanner p {
    font-size: 18px;
    color: #fff;
    font-weight: 500;
    word-break: keep-all;
    white-space: pre-line; /* 어드민 설명의 줄바꿈(\n) 유지 */
    margin-top: 10px;
}
#tasteDscv .tasteBanner .btnTake {
    position: relative;
    z-index: 2;
    font-size: 16px;
    color: #fff;
    font-weight: 600;
    margin-top: auto;
    padding: 6px 30px;
    background-color: var(--pointColor);
    border: 0;
    border-radius: 100vh;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
