/* 캐러셀 스타일 */

.crc-carousel-wrapper {
    padding: 60px 40px;
    background-color: #e8f6f3;
    position: relative;
}

/* 헤더 스타일 */
.crc-carousel-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.crc-laurel-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.crc-laurel-icon {
    font-size: 40px;
    line-height: 1;
}

.crc-laurel-left {
    transform: scaleX(-1);
}

/* 캐러셀 카드 링크 */
.crc-carousel-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.crc-carousel-card-link:hover {
    text-decoration: none;
}

.crc-header-text-1 {
    font-size: 24px;
    font-weight: 500;
    color: #2c3e50;
    margin: 0 0 10px 0;
}

.crc-header-text-2 {
    font-size: 32px;
    font-weight: 700;
    color: #00b894;
    margin: 0;
}

/* 캐러셀 컨테이너 */
.crc-carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 50px;
}

/* 개별 카드 */
.crc-carousel-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 25px;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.crc-carousel-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.crc-card-icon {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    font-size: 14px;
}

.crc-icon-emoji {
    font-size: 18px;
}

.crc-icon-label {
    font-weight: 500;
}

.crc-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.crc-card-category {
    display: inline-block;
    font-size: 13px;
    color: #888;
    margin-bottom: 15px;
}

.crc-card-content {
    flex: 1;
    font-size: 14px;
    line-height: 1.7;
    color: #666;
}

.crc-card-content .crc-highlight {
    color: #00b894;
    font-weight: 600;
    margin-bottom: 10px;
}

.crc-card-content .crc-excerpt {
    margin: 0;
}

.crc-progress-status {
    display: inline-block;
    background: #00b894;
    color: #ffffff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    margin-top: 15px;
    align-self: flex-start;
}

/* 네비게이션 화살표 */
.crc-nav-prev,
.crc-nav-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.crc-nav-prev {
    left: 0;
}

.crc-nav-next {
    right: 0;
}

.crc-nav-prev:hover,
.crc-nav-next:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.crc-no-review {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
}

/* 반응형 */
@media (max-width: 1024px) {
    .crc-carousel-container {
        padding: 0 40px;
    }
}

@media (max-width: 768px) {
    .crc-carousel-wrapper {
        padding: 40px 20px;
    }

    .crc-header-text-1 {
        font-size: 18px;
    }

    .crc-header-text-2 {
        font-size: 24px;
    }

    .crc-carousel-container {
        padding: 0 35px;
    }

    .crc-nav-prev,
    .crc-nav-next {
        width: 36px;
        height: 36px;
    }
}

/* =========================================================
   루프 캐러셀 숏코드 [crc_loop_carousel]
   ========================================================= */

.crc-loop-carousel {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 50px;
}

.crc-loop-carousel .swiper {
    overflow: hidden;
}

/* 네비게이션 */
.crc-loop-nav-prev,
.crc-loop-nav-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.crc-loop-nav-prev { left: 0; }
.crc-loop-nav-next { right: 0; }

.crc-loop-nav-prev:hover,
.crc-loop-nav-next:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.18);
}

/* ---------------------------------------------------------
   스타일 1 — 민트/그린 캐러셀
   --------------------------------------------------------- */

.crc-loop-s1 {
    background: #e8f6f3;
    border-radius: 20px;
}

.crc-loop-s1 .crc-loop-nav-prev,
.crc-loop-s1 .crc-loop-nav-next {
    background: #fff;
    color: #00b894;
}

/* 카드 */
.crc-loop-s1-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 16px;
    padding: 28px 24px;
    min-height: 300px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.crc-loop-s1-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-decoration: none;
    color: inherit;
}

.crc-loop-s1-icon {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 14px;
}

.crc-loop-s1-icon > span {
    font-weight: 500;
}

.crc-loop-s1-title {
    font-size: 17px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 6px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.crc-loop-s1-subtitle {
    font-size: 13px;
    color: #888;
    margin-bottom: 8px;
}

.crc-loop-s1-tag {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: #00b894;
    margin-bottom: 12px;
}

.crc-loop-s1-content {
    flex: 1;
    font-size: 13.5px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.crc-loop-s1-highlight {
    color: #00b894;
    font-weight: 600;
    margin: 0 0 6px 0;
}

.crc-loop-s1-content p {
    margin: 0;
}

.crc-loop-s1-badge {
    display: inline-block;
    align-self: flex-start;
    background: #00b894;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 18px;
    border-radius: 20px;
    margin-top: auto;
}

/* ---------------------------------------------------------
   스타일 2 — 오렌지/BEST 캐러셀
   --------------------------------------------------------- */

.crc-loop-s2 {
    background: transparent;
}

.crc-loop-s2 .crc-loop-nav-prev,
.crc-loop-s2 .crc-loop-nav-next {
    background: #fff;
    color: #f39c12;
    border: 1px solid #f0e0c0;
}

/* 카드 */
.crc-loop-s2-card {
    position: relative;
    background: #fff;
    border: 2px solid #f5a623;
    border-radius: 16px;
    padding: 28px 22px 18px;
    min-height: 260px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.crc-loop-s2-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(243,156,18,0.15);
}

/* BEST 배지 */
.crc-loop-s2-best {
    position: absolute;
    top: -8px;
    left: 14px;
    background: #ff6348;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 8px;
    transform: rotate(-6deg);
}

/* 왕관 아이콘 */
.crc-loop-s2-crown {
    position: absolute;
    top: -6px;
    right: 16px;
    font-size: 22px;
}

/* 본문 */
.crc-loop-s2-content {
    flex: 1;
    font-size: 14px;
    line-height: 1.75;
    color: #444;
    margin-top: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.crc-loop-s2-more {
    display: inline-block;
    font-size: 13px;
    color: #888;
    text-decoration: none;
    margin: 10px 0 6px;
}

.crc-loop-s2-more:hover {
    color: #f39c12;
}

.crc-loop-s2-likes {
    font-size: 13px;
    color: #ff6b6b;
    font-weight: 500;
    margin-bottom: 14px;
}

/* 작성자 바 */
.crc-loop-s2-author {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
    font-size: 13px;
    color: #555;
}

.crc-loop-s2-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e0e7ec;
    color: #555;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.crc-loop-s2-name {
    font-weight: 600;
    color: #333;
}

.crc-loop-s2-role {
    display: inline-block;
    background: #e8f6f3;
    color: #00b894;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
}

.crc-loop-s2-date {
    color: #aaa;
    font-size: 12px;
}

.crc-loop-s2-heart {
    margin-left: auto;
    font-size: 18px;
    color: #ccc;
    cursor: pointer;
    transition: color 0.2s;
}

.crc-loop-s2-heart:hover {
    color: #ff6b6b;
}

/* ---------------------------------------------------------
   반응형
   --------------------------------------------------------- */

@media (max-width: 1024px) {
    .crc-loop-carousel {
        padding: 30px 40px;
    }
}

@media (max-width: 768px) {
    .crc-loop-carousel {
        padding: 24px 35px;
    }

    .crc-loop-nav-prev,
    .crc-loop-nav-next {
        width: 36px;
        height: 36px;
    }

    .crc-loop-s1-card {
        min-height: 240px;
        padding: 22px 18px;
    }

    .crc-loop-s2-card {
        min-height: 220px;
        padding: 22px 18px 14px;
    }
}
/* ══════════════════════════════════════════════════════════
 * 카드 디자인 고도화 — EasyClass Soft Pastel Card Style
 * 텍스트형(.crc-style-text) / 이미지 카드형(.crc-style-image)
 * ══════════════════════════════════════════════════════════ */

.crc-carousel-wrapper {
    --crc-bg-card: #FFFFFF;
    --crc-text: #1C1C28;
    --crc-muted: #9AA0AC;
    --crc-accent: #F97316;
    --crc-accent-soft: #FEEBDC;
    --crc-shadow: 0 8px 24px rgba(28, 28, 40, 0.06);
    --crc-font: 'Pretendard', 'Poppins', -apple-system, sans-serif;
}

/* 파스텔 5색 — 썸네일 배경·아바타 링 전용 (작은 면적) */
.crc-pastel-0 { background-color: #D9E8F5; }
.crc-pastel-1 { background-color: #E4D6F7; }
.crc-pastel-2 { background-color: #F9D2DA; }
.crc-pastel-3 { background-color: #D8F3E3; }
.crc-pastel-4 { background-color: #FCF0D4; }

/* 카드 공통 — 테두리 없이 그림자만 */
.crc-style-text .swiper-slide,
.crc-style-image .swiper-slide {
    height: auto;
}

.crc-style-text .crc-carousel-card-link,
.crc-style-image .crc-carousel-card-link {
    display: block;
    height: 100%;
    text-decoration: none;
}

.crc-card2 {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--crc-bg-card);
    border: none;
    border-radius: 20px;
    box-shadow: var(--crc-shadow);
    overflow: hidden;
    font-family: var(--crc-font);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.crc-carousel-card-link:hover .crc-card2 {
    transform: translateY(-5px);
    box-shadow: 0 14px 32px rgba(28, 28, 40, 0.11);
}

.crc-card2-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 22px;
}

/* ── 텍스트형 상단: 섹션 라벨 + BEST ── */
.crc-card2-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.crc-card2-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--crc-muted);
}

.crc-card2-best {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--crc-accent);
    background: var(--crc-accent-soft);
    padding: 3px 9px;
    border-radius: 9999px;
}

/* ── 제목 / 강조 / 본문 ── */
.crc-card2-title {
    margin: 0 0 8px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.45;
    color: var(--crc-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.crc-card2-highlight {
    margin: 0 0 8px;
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--crc-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.crc-card2-excerpt {
    margin: 0;
    flex: 1;
    font-size: 13.5px;
    font-weight: 400;
    line-height: 1.6;
    color: #555b66;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── 푸터: 아바타 + 이름·날짜 + 별점 ── */
.crc-card2-foot {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #F1F1F6;
}

.crc-card2-avatar {
    flex: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--crc-text);
}

.crc-card2-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.35;
}

.crc-card2-name {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--crc-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.crc-card2-date {
    font-size: 11.5px;
    font-weight: 500;
    color: var(--crc-muted);
}

.crc-card2-stars {
    margin-left: auto;
    flex: none;
    font-size: 13px;
    letter-spacing: 1px;
}

.crc-star { color: #E4E6EC; }
.crc-star.on { color: var(--crc-accent); }

/* ── 이미지 카드형: 미디어 영역 ── */
.crc-card2--image .crc-card2-media {
    position: relative;
    aspect-ratio: 4 / 3;
    margin: 10px 10px 0;
    border-radius: 14px;
    overflow: hidden;
}

.crc-card2--image .crc-card2-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.crc-carousel-card-link:hover .crc-card2--image .crc-card2-media img {
    transform: scale(1.04);
}

/* 이미지 없을 때: 파스텔 배경 + 큰 이니셜 */
.crc-card2-media-initial {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 44px;
    font-weight: 700;
    color: rgba(28, 28, 40, 0.35);
}

/* 이미지 위 카테고리 배지 */
.crc-card2-badge {
    position: absolute;
    left: 10px;
    top: 10px;
    font-size: 11px;
    font-weight: 700;
    color: var(--crc-text);
    background: rgba(255, 255, 255, 0.92);
    padding: 4px 11px;
    border-radius: 9999px;
    box-shadow: 0 2px 8px rgba(28, 28, 40, 0.10);
}

.crc-card2-best--media {
    position: absolute;
    right: 10px;
    top: 10px;
}

/* 이미지형은 제목·본문 간격을 조금 좁게 */
.crc-card2--image .crc-card2-body { padding: 16px 18px 18px; }
.crc-card2--image .crc-card2-title { font-size: 16px; }
.crc-card2--image .crc-card2-excerpt { -webkit-line-clamp: 3; }

/* 모바일 */
@media (max-width: 640px) {
    .crc-card2-body { padding: 18px; }
    .crc-card2-title { font-size: 16px; }
}
