/* 버전: 202607011527 */
body, html {
    margin: 0;
    padding: 0;
    min-height: 100%;
    width: 100%;
    min-width: 1220px;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #ffffff;
}

/* 시작: 상단 네비게이션 바 아래 50px 여백 조절 v202604080230 짧은설명: 공통 헤더와 태그 영역 사이에 50px 간격을 확보하기 위해 padding-top 수정 */
#course-list-main {
    box-sizing: border-box;
    width: 100%;
    padding-top: 50px;
    padding-bottom: 15px;
}
/* 끝: 상단 네비게이션 바 아래 50px 여백 조절 v202604080230 짧은설명: 공통 헤더와 태그 영역 사이에 50px 간격을 확보하기 위해 padding-top 수정 */

.inner-container {
    width: 1200px;
    margin: 0 auto;
    position: relative;
}

/* 시작: 태그 영역 상단 패딩 제거 v202604080230 짧은설명: main에 50px 여백을 주었으므로 자체 상단 여백(기존 35px)은 제거하여 정확히 간격 유지 */
.keyword-tag-cloud-wrap {
    background-color: #ffffff;
    padding: 0 0 20px 0; 
}
/* 끝: 태그 영역 상단 패딩 제거 v202604080230 짧은설명: main에 50px 여백을 주었으므로 자체 상단 여백(기존 35px)은 제거하여 정확히 간격 유지 */

.keyword-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.keyword-tag-item {
    display: inline-block;
    padding: 2px 4px;
    border-radius: 2px;
    text-decoration: none;
    border: none;
    line-height: 1.4;
    background-color: transparent;
}

.keyword-tag-item:hover {
    background-color: #2E9E6B !important;
    color: #ffffff !important; 
    transform: none;
    box-shadow: none;
    filter: none;
}

.gpx-controls-bar {
    padding: 20px 0 0 0;
    margin-bottom: 20px;
    z-index: 10;
}

.gpx-controls-bar .inner-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 1px solid #555;
    padding-top: 15px;
}

.controls-left.tab-group {
    display: flex;
    gap: 30px;
    align-items: flex-end;
}

.tab-item {
    background: transparent;
    border: none;
    padding: 10px 0 12px 0;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
    position: relative;
    margin-bottom: -1px;
}

.tab-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px; 
    background-color: transparent;
    transition: background-color 0.2s ease;
}

.tab-item:hover {
    color: #333;
}

.tab-item:hover::after {
    background-color: #2E9E6B;
}

.tab-item.active {
    color: #333;
    font-weight: 800;
    font-size: 24px;
}

.tab-item.active::after {
    background-color: #2E9E6B;
    height: 3px;
}

.tab-count {
    font-size: 12px;
    font-weight: 500;
    color: inherit;
    margin-left: 4px;
    vertical-align: baseline;
}

.tab-item.active .tab-count {
    font-size: 12px;
    font-weight: 500;
    vertical-align: middle; 
}

.controls-right.view-filter-group {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 8px;
}

.controls-right.view-filter-group.design-only * {
    cursor: default;
}

.sort-filter-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.control-btn {
    background: transparent;
    border: none;
    padding: 0; 
    font-size: 15px;
    font-weight: 400;
    color: #333;
    cursor: pointer;
    transition: color 0.2s ease;
    font-family: inherit;
    outline: none;
    display: flex;
    align-items: center;
    gap: 4px; 
    white-space: nowrap;
}

.control-btn:hover {
    color: #2E9E6B;
}

.category-custom-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.category-dropdown-toggle {
    background: transparent;
    border: none;
    padding: 0; 
    font-size: 15px;
    font-weight: 400;
    color: #333;
    cursor: pointer;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: inherit;
    outline: none;
}

.category-dropdown-toggle:hover {
    color: #2E9E6B;
}

.category-dropdown-menu {
    position: absolute;
    top: 100%; 
    left: 0;
    min-width: 150px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    list-style: none;
    padding: 8px 0;
    margin: 0;
    z-index: 1001; 
    display: none; 
}

.category-custom-dropdown:hover .category-dropdown-menu {
    display: block;
}

.category-dropdown-item {
    padding: 8px 16px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.category-dropdown-item:hover {
    background-color: #EEFAF3;
    color: #2E9E6B;
}

.category-dropdown-item.active {
    font-weight: 700;
    color: #2E9E6B;
}

.category-count {
    font-size: 12px;
    font-weight: 500;
    color: inherit;
    margin-left: 4px;
    vertical-align: baseline;
}

.category-dropdown-toggle .category-count {
    vertical-align: middle;
}

.filter-popup-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
}

.filter-reset-btn {
    color: #2E9E6B;
    font-size: 16px;
}
.filter-reset-btn:hover {
    color: #ff4d4d;
}

.filter-popup-content {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 280px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 20px;
    z-index: 1002;
    display: none; 
    cursor: default; 
}

.filter-popup-content.show {
    display: block;
}

.filter-section {
    margin-bottom: 24px;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.filter-title {
    font-size: 14px;
    font-weight: 700;
    color: #333;
}

.filter-value {
    font-size: 13px;
    font-weight: 500;
    color: #2E9E6B;
}

.range-slider {
    position: relative;
    width: 100%;
    height: 24px;
}

.range-track {
    position: absolute;
    width: 100%;
    height: 4px;
    background-color: #f0f0f0;
    top: 10px;
    border-radius: 2px;
}

.range-fill {
    position: absolute;
    height: 4px;
    background-color: #2E9E6B; 
    top: 10px;
    border-radius: 2px;
    z-index: 1;
}

.range-slider input[type="range"] {
    position: absolute;
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    pointer-events: none; 
    top: 0;
    margin: 0;
    z-index: 2;
}

.range-slider input[type="range"]:focus {
    outline: none;
}

.range-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 18px;
    width: 14px;
    border-radius: 3px;
    background: #ffffff;
    border: 1px solid #ccc;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
    pointer-events: auto; 
    cursor: pointer;
    margin-top: 3px; 
}

.range-slider input[type="range"]::-moz-range-thumb {
    height: 18px;
    width: 14px;
    border-radius: 3px;
    background: #ffffff;
    border: 1px solid #ccc;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
    pointer-events: auto;
    cursor: pointer;
}

.filter-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    background-color: #f8f9fa;
    outline: none;
    font-family: inherit;
    cursor: pointer;
}

.filter-select:focus {
    border-color: #2E9E6B;
}

.filter-apply-btn {
    width: 100%;
    background-color: #2E9E6B;
    color: #ffffff;
    border: none;
    border-radius: 22px;
    padding: 12px 0;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.filter-apply-btn:hover {
    background-color: #24835A;
}

.controls-divider {
    width: 1px;
    height: 14px; 
    background-color: #ddd;
    margin: 0 5px; 
}

.view-switch {
    display: flex;
    border: none;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
}

.view-btn {
    background: transparent;
    border: none;
    padding: 5px 8px; 
    font-size: 20px; 
    color: #aaa; 
    transition: all 0.2s ease;
    outline: none;
}

.view-btn:first-child {
    border-right: none; 
}

.view-btn.active {
    color: #555; 
    background-color: transparent;
}

.view-btn:hover:not(.active) {
    color: #555;
    background-color: transparent;
}

.search-result-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #EEFAF3;
    border: 1px solid #C3E8D5;
    border-radius: 8px;
    padding: 10px 16px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #444;
}

.search-result-banner i {
    color: #2E9E6B;
    font-size: 14px;
    flex-shrink: 0;
}

.search-result-banner strong {
    color: #2E9E6B;
}

.thumbnail-list-section {
    padding: 0 0 50px 0;
    background-color: #ffffff; 
    min-height: calc(100vh - 100px);
    display: flex;
    flex-direction: column;
}

.thumbnail-list-section > .inner-container {
    flex: 1;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
}

.course-card {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    position: relative; 
}

.card-thumb {
    width: 100%;
    aspect-ratio: 285 / 200;
    background-color: #e0e0e0;
    position: relative;
    overflow: hidden;
}
/* 시작: 검색엔진 이미지 수집용 실제 <img> 채움 v202607011422 짧은설명: 썸네일을 background-image 대신 <img>로 렌더(이미지검색 노출). 컨테이너를 꽉 채워 기존 background cover와 동일하게 보이게 함 */
.card-thumb > img,
.list-thumb > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: inherit;
}
/* 끝: 검색엔진 이미지 수집용 실제 <img> 채움 v202607011422 */

.card-info {
    padding: 14px 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.card-stats-top {
    display: flex;
    gap: 8px;
    font-size: 15px; 
    color: #333; 
    font-weight: 700; 
    flex-shrink: 0; 
}

.card-date, .card-author {
    font-size: 11px;
    color: #888;
    font-weight: 500;
}

.card-author {
    flex: 1;
    text-align: right;
    margin-left: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-title {
    font-size: 15px;
    font-weight: 700;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* 시작: 목록 제목 크롤 링크(<a href>) 외형 유지 v202607011527 짧은설명: 검색로봇이 코스 디테일로 링크를 따라가도록 제목을 <a>로 감쌈. 색·밑줄은 기존 텍스트와 동일하게(상속) */
.card-title a,
.list-title a {
    color: inherit;
    text-decoration: none;
}
/* 끝: 목록 제목 크롤 링크(<a href>) 외형 유지 v202607011527 */

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f0f0f0;
    padding-top: 10px;
}

.card-community-stats {
    display: flex;
    gap: 10px;
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.card-community-stats i {
    color: #aaa;
    margin-right: 3px;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.55); 
    color: #ffffff; 
    opacity: 0; 
    transition: opacity 0.3s ease; 
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 10; 
}

.course-card:hover .card-overlay {
    opacity: 1;
}

.overlay-stats {
    display: flex;
    gap: 10px;
    font-size: 15px;
    font-weight: 700;
}

.overlay-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    white-space: normal; 
    line-height: 1.4;
}

.overlay-scroll-area {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 4px; 
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.overlay-scroll-area::-webkit-scrollbar {
    width: 6px;
}

.overlay-scroll-area::-webkit-scrollbar-track {
    background: transparent; 
}

.overlay-scroll-area::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.85); 
    border-radius: 3px;
}

.overlay-description {
    font-size: 14px;
    font-weight: 400;
    margin: 0;
    line-height: 1.6;
    white-space: pre-wrap; 
    word-break: break-word; 
}

.overlay-tags {
    font-size: 14px;
    font-weight: 400;
    margin: 0;
    line-height: 1.6;
}

.overlay-tags i {
    margin-right: 5px;
    color: rgba(255, 255, 255, 0.7);
}

.empty-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px 0;
    color: #888;
    font-size: 15px;
}

.course-list-layout {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.course-list-item {
    display: flex;
    gap: 24px;
    padding: 24px 10px;
    border-bottom: 1px solid #e0e0e0;
    cursor: pointer;
    position: relative;
    background-color: #ffffff;
    transition: background-color 0.2s ease;
}

.course-list-item:hover {
    background-color: #fcfcfc; 
}

.list-thumb {
    width: 200px;
    height: 140px;
    border-radius: 8px;
    background-color: #e0e0e0;
    flex-shrink: 0;
    overflow: hidden;
}

/* 시작: 썸네일 없을 때 플레이스홀더 아이콘 v202606072056 짧은설명: default-thumb.jpg 파일 의존 제거, 썸네일 없는 카드에 회색 배경+루트 아이콘 표시 */
.card-thumb.no-thumb,
.list-thumb.no-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #eef1f4;
}
.card-thumb.no-thumb::before,
.list-thumb.no-thumb::before {
    content: "\f4d7";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 40px;
    color: #c2cad3;
}
/* 끝: 썸네일 없을 때 플레이스홀더 아이콘 v202606072056 */

.list-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0; 
    justify-content: flex-start;
}

.list-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.list-meta-stats {
    display: flex;
    gap: 10px;
    font-size: 15px;
    font-weight: 700;
    color: #333;
}

.list-meta-author {
    font-size: 13px;
    color: #888;
    font-weight: 500;
}

.list-meta-author i {
    margin-right: 4px;
    color: #aaa;
}

.meta-separator {
    margin: 0 8px;
    color: #ddd;
}

.list-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.list-desc-wrap {
    width: 100%;
    max-height: 48px; 
    overflow: hidden;
    transition: max-height 0.4s ease, margin-bottom 0.4s ease;
    margin-bottom: 10px;
}

.course-list-item:hover .list-desc-wrap {
    max-height: 500px; 
    margin-bottom: 24px;
}

.list-desc-content {
    width: 100%;
    padding: 0;
    box-sizing: border-box;
}

.list-desc-text {
    font-size: 14px;
    font-weight: 400;
    color: #666;
    margin: 0 0 8px 0;
    line-height: 1.7;
    white-space: pre-wrap;
    word-break: break-word;
}

.list-tags {
    font-size: 13px;
    color: #888;
    line-height: 1.6;
}

.list-tags i {
    margin-right: 5px;
    color: #aaa;
}

.list-meta-community {
    display: flex;
    gap: 12px;
    font-size: 13px;
    color: #888;
    font-weight: 500;
    margin-top: auto; 
}

.list-meta-community i {
    color: #aaa;
    margin-right: 4px;
}

.pagination-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 75px;
    margin-bottom: 0;
}

.page-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 36px;
    height: 36px;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0 10px;
    outline: none;
    font-family: inherit;
}

.page-btn:hover:not(.disabled):not(.active) {
    border-color: #2E9E6B;
    color: #2E9E6B;
}

.page-btn.active {
    background-color: #2E9E6B;
    border-color: #2E9E6B;
    color: #ffffff;
    cursor: default;
}

.page-btn.disabled {
    color: #ccc;
    cursor: not-allowed;
    background-color: #fcfcfc;
}

.full-width-divider {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 100px 0 0 0;
    width: 100%;
}

.footer-copyright-wrap {
    text-align: center;
    margin-top: 100px;
    margin-bottom: 50px;
}

.course-comment-count { font-size: 12px; font-weight: 500; color: #999; margin-left: 2px; }