/* 공통 스타일 (메인화면, 게시판 등 공통) */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
}

body {
    background-color: #fcfcfc;
    color: #333333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* =========================================
    헤더 스타일
    ========================================= */
header {
    padding: 30px 50px;
    width: 100%;
    display: flex;
    align-items: center;
    position: relative;
    background: #fff;
    border-bottom: 1px solid #f3f4f6;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: #111;
    text-decoration: none;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 32px;
}

.gnb {
    display: flex;
    gap: 30px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.gnb a {
    font-size: 16px;
    font-weight: 600;
    color: #444;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.2s ease;
}

.gnb a:hover,
.gnb a.active {
    color: #111;
    background-color: #f1f3f5;
}

@media (max-width: 768px) {
    header {
        padding: 20px;
        flex-direction: column;
        gap: 15px;
    }

    .gnb {
        position: static;
        transform: none;
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* =========================================
    메인 콘텐츠 컨테이너
    ========================================= */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    width: 100%;
}

/* =========================================
    푸터 스타일
    ========================================= */
footer {
    width: 100%;
    background: #111827;
    color: #9ca3af;
    padding: 0;
    font-size: 14px;
    line-height: 1.6;
    text-align: left;
    margin-top: auto;
}

.footer-top {
    padding: 60px 20px;
    display: flex;
    justify-content: center;
    border-bottom: 1px solid #1f2937;
}

.footer-inner {
    width: 100%;
    max-width: 1000px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-left .f-logo {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
    display: inline-block;
    text-decoration: none;
}

.footer-left .f-logo img {
    height: 24px;
    vertical-align: middle;
    filter: brightness(0) invert(1);
}

.footer-left p {
    margin-bottom: 6px;
}

.footer-left b {
    color: #d1d5db;
    font-weight: 600;
    margin-right: 8px;
}

.footer-left span {
    display: inline-block;
    width: 1px;
    height: 12px;
    background: #374151;
    margin: 0 12px;
    vertical-align: middle;
}

.footer-right {
    text-align: left;
}

.footer-right .f-cs {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 15px;
}

.footer-right p {
    margin-bottom: 6px;
}

.footer-right b {
    color: #d1d5db;
    font-weight: 600;
    margin-right: 8px;
}

.footer-bottom {
    padding: 24px 20px;
    display: flex;
    justify-content: center;
    background: #0b0f19;
}

.footer-bottom-inner {
    width: 100%;
    max-width: 1000px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.f-links {
    display: flex;
    gap: 20px;
}

.f-links a {
    color: #e5e7eb;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: 0.2s;
}

.f-links a:hover {
    color: #2563eb;
}

.f-copy {
    font-size: 13px;
    color: #6b7280;
}

@media (max-width: 768px) {
    .footer-inner {
        flex-direction: column;
    }

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }

    .f-links {
        justify-content: center;
    }

    .footer-left span {
        display: none;
    }

    .footer-left p {
        display: flex;
        flex-direction: column;
        gap: 4px;
        margin-bottom: 12px;
    }
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    width: 100%;
}

.hero-section {
    width: 100%;
    padding: 220px 20px 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.main-title {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.main-title .highlight {
    color: #2563eb;
}

.sub-description {
    font-size: 18px;
    color: #666666;
    line-height: 1.6;
    margin-bottom: 50px;
}

.form-wrapper {
    position: relative;
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
}

.form-container {
    width: 100%;
    text-align: left;
}

.side-banner {
    position: absolute;
    left: calc(100% + 20px);
    top: 30px;
    /* 시각적 중앙 정렬을 위해 살짝 내림 */
    width: 240px;
    height: 220px;
    /* 폼이 늘어나도 고정되도록 절대 수치 지정 */
    border-radius: 20px;
    display: block;
    /* 링크 전체 클릭되게 처리 */
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    /* 모서리 둥글게 이미지 자르기 */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    /* 기본 그림자 */
    border: 1px solid #e5e7eb;
    /* 옅은 실선 테두리 */
    background: #fff;
}

/* 실제 이미지가 들어갈 때 둥근 테두리에 맞게 처리 */
.side-banner img {
    width: 240px;
    /* 배너 1개당 가로 크기 */
    height: 100%;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
}

/* 배너 3장 슬라이더 애니메이션 구현 */
.banner-track {
    display: flex;
    width: 300%;
    /* 이미지가 3장 들어갈 수 있도록 넓게 */
    height: 100%;
    animation: slide-banner-3 12s ease-in-out infinite;
    /* 3장, 12초마다 무한 반복 재생 */
}

.banner-track:hover {
    animation-play-state: paused;
    /* 마우스 올렸을때 잠시 멈춤 */
}

@keyframes slide-banner-3 {

    0%,
    28% {
        transform: translateX(0);
    }

    /* 1번 배너 대기 */
    33%,
    61% {
        transform: translateX(-33.333%);
    }

    /* 2번 배너 스와이프 & 대기 */
    66%,
    95% {
        transform: translateX(-66.666%);
    }

    /* 3번 배너 스와이프 & 대기 */
    100% {
        transform: translateX(0);
    }

    /* 다시 1번으로 부드럽게 복귀 */
}

.side-banner:hover {
    transform: translateY(-5px);
    /* 위로 살짝 뜨는 효과 */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    /* 그림자 진해짐 */
    border-color: #bfdbfe;
    /* 테두리 파란빛 강조 */
}

@media (max-width: 1250px) {
    .side-banner {
        position: static;
        width: 100%;
        height: 150px;
        margin-top: 20px;
    }

    .form-wrapper {
        display: flex;
        flex-direction: column;
    }
}

.guide-box {
    background: #f8f9fa;
    border-radius: 50px;
    padding: 10px 10px 10px 24px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.guide-text {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.btn-download {
    padding: 12px 24px;
    background: #fff;
    color: #2563eb;
    border: 1px solid #2563eb;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
    white-space: nowrap;
}

.btn-download:hover {
    background: #eff6ff;
}

textarea {
    width: 100%;
    height: 120px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    resize: none;
    font-size: 15px;
    outline: none;
    transition: 0.3s;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

textarea:focus {
    border-color: #2563eb;
}

.button-row {
    margin-top: 15px;
    display: flex;
    gap: 12px;
    justify-content: center;
}

.btn {
    flex: 1;
    padding: 16px;
    border: none;
    border-radius: 12px;
    background: #2563eb;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.btn:nth-child(2) {
    background: #e5e7eb;
    color: #666;
}

.btn-sell-active {
    background: #fac70c !important;
    color: #000 !important;
}

.result {
    margin-top: 20px;
    font-size: 14px;
}

.item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding: 14px 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.qty-box {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: #2563eb;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

.qty-input {
    width: 35px;
    text-align: center;
    border: none;
    background: transparent;
    font-weight: bold;
    font-size: 15px;
    outline: none;
}

.total-box {
    margin-top: 24px;
    padding: 28px 32px;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #eaeaea;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.04), 0 5px 15px rgba(0, 0, 0, 0.02);
    text-align: left;
    position: relative;
    overflow: hidden;
}

.total-box::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: #2563eb;
}

.total-label {
    font-size: 14px;
    color: #6b7280;
    font-weight: 600;
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

.total-price {
    font-size: 34px;
    font-weight: 800;
    color: #111827;
    letter-spacing: -1px;
}

.no-result-msg {
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 14px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px dashed #ccc;
    line-height: 1.5;
}

.no-result-icon {
    font-size: 24px;
    margin-bottom: 8px;
    display: block;
}

/* =========================================
           2. 매입절차 및 게시판 스타일 추가
           ========================================= */
.section-wrap {
    width: 100%;
    padding: 80px 20px;
    background: #f8f9fc;
    display: flex;
    justify-content: center;
}

.section-wrap.white {
    background: #ffffff;
}

.section-inner {
    width: 100%;
    max-width: 1000px;
    text-align: left;
}

.section-title {
    font-size: 32px;
    font-weight: 800;
    color: #111;
    margin-bottom: 50px;
    letter-spacing: -0.5px;
    text-align: center;
}

.section-title b {
    color: #2563eb;
    font-weight: 900;
}

/* 매입절차 레이아웃 */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
}

.process-grid::after {
    content: '';
    position: absolute;
    top: 32px;
    left: 10%;
    width: 80%;
    height: 2px;
    border-top: 2px dashed #d1d5db;
    z-index: 0;
}

.process-item {
    position: relative;
    z-index: 1;
    text-align: center;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.process-item:hover {
    transform: translateY(-8px);
}

.process-item:hover .process-icon {
    background: #2563eb;
    color: #ffffff;
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

.process-icon {
    width: 64px;
    height: 64px;
    background: #ffffff;
    color: #2563eb;
    border: 2px solid #2563eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 20px;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
    transition: all 0.3s ease;
}

.process-name {
    font-size: 18px;
    font-weight: 700;
    color: #111;
    margin-bottom: 12px;
}

.process-info {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    word-break: keep-all;
    padding: 0 10px;
}

/* 게시판 형태 (3구역) */
.home-board-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.board-box {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.board-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.board-title {
    font-size: 16px;
    font-weight: 700;
    color: #111;
}

.board-more {
    font-size: 13px;
    color: #888;
    text-decoration: none;
    transition: 0.2s;
}

.board-more:hover {
    color: #2563eb;
}

.board-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.board-list li {
    border-bottom: 1px solid #f3f4f6;
}

.board-list li:last-child {
    border-bottom: none;
}

.board-list a {
    display: block;
    padding: 14px 24px;
    font-size: 14px;
    color: #444;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background 0.2s;
}

.board-list a:hover {
    background: #f9fafb;
    color: #2563eb;
}

@media (max-width: 900px) {
    .process-grid::after {
        display: none;
    }

    .process-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .home-board-container {
        grid-template-columns: repeat(1, 1fr);
    }
}

@media (max-width: 768px) {
    .main-title {
        font-size: 32px;
    }

    .sub-description {
        font-size: 15px;
    }

    .guide-box {
        flex-direction: column;
        border-radius: 20px;
        padding: 20px;
        gap: 15px;
        text-align: center;
    }

    .btn-download {
        width: 100%;
    }

    .total-box {
        padding: 24px;
    }
}

/* 게시판 뷰어 섹션 */
.board-section {
    padding: 80px 20px;
    display: flex;
    justify-content: center;
    width: 100%;
}

.board-container {
    width: 100%;
    max-width: 1000px;
}

.board-title-area {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
}

.board-title-area h2 {
    font-size: 32px;
    font-weight: 800;
    color: #111;
    letter-spacing: -0.5px;
}

.board-title-area .btn-write {
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
    text-decoration: none;
}

.board-title-area .btn-write:hover {
    background: #1d4ed8;
}

/* 테이블 래퍼 및 스타일 */
.table-wrap {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
}

th {
    background: #f8f9fa;
    font-size: 15px;
    font-weight: 600;
    color: #4b5563;
    padding: 18px 10px;
    border-bottom: 1px solid #d1d5db;
}

td {
    font-size: 15px;
    color: #374151;
    padding: 16px 10px;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background-color: #f9fafb;
}

/* 열 (Column) 조절 속성 */
.col-num {
    width: 80px;
}

.col-title {
    text-align: left;
    padding-left: 20px;
}

.col-writer {
    width: 120px;
}

.col-date {
    width: 120px;
    color: #9ca3af;
    font-size: 14px;
}

.col-views {
    width: 80px;
    color: #9ca3af;
    font-size: 14px;
}

.col-status {
    width: 100px;
}

.td-title a {
    color: #111;
    text-decoration: none;
    font-weight: 500;
}

.td-title a:hover {
    text-decoration: underline;
}

.secret-icon {
    color: #9ca3af;
    margin-right: 6px;
    font-size: 14px;
}

/* 상태 뱃지 */
.status-badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 12px;
}

.status-waiting {
    background: #fef3c7;
    color: #d97706;
}

.status-done {
    background: #d1fae5;
    color: #059669;
}

/* 페이징 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 6px;
    background: #fff;
    border: 1px solid #e5e7eb;
    color: #4b5563;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: 0.2s;
}

.pagination a:hover,
.pagination a.active {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}

/* 푸터 스타일 */
footer {
    background: #111827;
    color: #9ca3af;
    font-size: 14px;
}

.footer-top {
    padding: 60px 20px;
    border-bottom: 1px solid #1f2937;
    display: flex;
    justify-content: center;
}

.footer-inner {
    width: 100%;
    max-width: 1000px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-left {
    text-align: left;
}

.footer-left .f-logo {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    display: block;
    margin-bottom: 20px;
}

.footer-left p {
    margin-bottom: 6px;
}

.footer-left b {
    color: #d1d5db;
    font-weight: 600;
    margin-right: 8px;
}

.footer-left span {
    display: inline-block;
    width: 1px;
    height: 12px;
    background: #374151;
    margin: 0 12px;
    vertical-align: middle;
}

.footer-right {
    text-align: left;
}

.footer-right .f-cs {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 15px;
}

.footer-right p {
    margin-bottom: 6px;
}

.footer-right b {
    color: #d1d5db;
    font-weight: 600;
    margin-right: 8px;
}

.footer-bottom {
    padding: 24px 20px;
    display: flex;
    justify-content: center;
    background: #0b0f19;
}

.footer-bottom-inner {
    width: 100%;
    max-width: 1000px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.f-links {
    display: flex;
    gap: 20px;
}

.f-links a {
    color: #e5e7eb;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: 0.2s;
}

.f-links a:hover {
    color: #2563eb;
}

/* 모바일 대응 */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
    }

    .gnb {
        position: static;
        transform: none;
        gap: 20px;
    }

    .col-writer,
    .col-date,
    .col-views {
        display: none;
    }

    .td-writer,
    .td-date,
    .td-views {
        display: none;
    }
}
/* --- Gallery List Styles --- */
.gallery-wrap {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
}
.gallery-item {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
}
.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
.gallery-thumb {
    width: 100%;
    aspect-ratio: 4/3;
    background-color: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}
.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gallery-thumb .no-img {
    font-size: 40px;
    color: #9ca3af;
}
.gallery-lock {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}
.gallery-info {
    padding: 15px;
}
.gallery-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.gallery-date {
    font-size: 13px;
    color: #6b7280;
}
@media (max-width: 1024px) {
    .gallery-wrap { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .gallery-wrap { grid-template-columns: repeat(2, 1fr); gap: 15px; }
}
@media (max-width: 480px) {
    .gallery-wrap { grid-template-columns: repeat(1, 1fr); }
}


/* --- Quick Menu (Right Side Navigation) --- */
.quick-menu {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 1000;
}
.quick-menu .qm-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 65px;
    height: 65px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    color: #475569;
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}
.quick-menu .qm-item i {
    font-size: 20px;
    margin-bottom: 5px;
    color: #64748b;
    transition: color 0.2s;
}
.quick-menu .qm-item:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: translateX(-3px);
}
.quick-menu .qm-primary {
    background: #2563eb;
    color: #fff;
    border: none;
}
.quick-menu .qm-primary i {
    color: #fff;
}
.quick-menu .qm-primary:hover {
    background: #1d4ed8;
}
.quick-menu .qm-top {
    background: #334155;
    color: #fff;
    border: none;
}
.quick-menu .qm-top i {
    color: #fff;
}
.quick-menu .qm-top:hover {
    background: #0f172a;
}

@media (max-width: 1024px) {
    .quick-menu {
        display: none; /* 모바일/태블릿에서는 숨김 또는 하단 플로팅 메뉴로 대체 필요 */
    }
}

