@charset "utf-8";

/* Art Market Common */
.am-wrap {
    padding-top: 0px;
    padding-bottom: 100px;
}

.am-header-area {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #222;
}

.am-title {
    font-size: 48px;
    font-weight: 700;
    color: #000;
}

.am-btn-group {
    display: flex;
    gap: 10px;
}

.btn-am {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    height: 50px; /* 고정 높이 */
}

.btn-am-primary {
    background-color: #3B2E8B;
    color: #fff;
    border: 1px solid #3B2E8B;
}
.btn-am-primary:hover {
    background-color: #2a1f6a;
}

.btn-am-outline {
    background-color: #fff;
    color: #3B2E8B;
    border: 1px solid #3B2E8B;
}
.btn-am-outline:hover {
    background-color: #f8f9ff;
}

/* Banner Area (Swiper) */
.am-banner {
    width: 100%;
    height: 400px; /* 높이 조정 */
    background-color: #F1F3F9;
    margin-bottom: 60px;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.am-banner .swiper-container {
    width: 100%;
    height: 100%;
}

.am-banner .swiper-slide {
    position: relative;
    width: 100%;
    height: 100%;
}

.am-banner .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.am-banner-txt {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 40px;
    color: #fff;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    z-index: 10;
}

/* Tabs */
.am-tabs {
    display: flex;
    gap: 10px;
    border-bottom: 2px solid #3B2E8B; /* 포인트 컬러로 변경 */
    margin-bottom: 40px;
}

.am-tab-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 60px;
    font-size: 18px;
    font-weight: 300;
    color: #666;
    /*background: #f9f9f9;*/
    border: 1px solid #ddd;
    border-bottom: none;
    border-radius: 10px 10px 0 0;
    text-decoration: none;
    transition: all 0.2s;
}

.am-tab-item.active {
   /* background: #3B2E8B; */
    color: #fff;
    border-color: #3B2E8B;
    font-weight: 700;
}

/* Filters */
.am-filters {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 20px;
}

.am-select {
    height: 45px;
    padding: 0 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    color: #333;
    background: #fff;
    min-width: 120px;
}

/* Grid Layout (5 Columns) */
.am-work-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.am-work-card {
    display: block;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
}

.am-work-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.am-work-thumb {
    position: relative;
    padding-bottom: 100%; /* 1:1 Square */
    overflow: hidden;
    background: #f0f0f0;
}

.am-work-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.am-work-card:hover .am-work-thumb img {
    transform: scale(1.05);
}

.am-work-info {
    padding: 20px 15px;
    text-align: center;
}

.am-work-ttl {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #222;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.am-work-artist {
    font-size: 14px;
    color: #666;
}

/* FAQ List (Accordion) */
.am-faq-list {
    border-top: 2px solid #222;
}

.am-faq-item {
    border-bottom: 1px solid #ddd;
}

.am-faq-q {
    display: flex;
    align-items: center;
    padding: 25px 20px;
    background-color: #FFF;
    cursor: pointer;
    transition: background 0.2s;
}

.am-faq-q:hover {
    background-color: #f9f9f9;
}

.am-faq-q.active {
    background-color: #f5f5f5;
}

.am-q-icon {
    width: 36px;
    height: 36px;
    background-color: #3B2E8B;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
}

.am-q-icon span {
    color: #FFF;
    font-weight: 700;
    font-size: 18px;
}

.am-q-ttl {
    flex: 1;
    font-size: 18px;
    font-weight: 500;
    color: #222;
    line-height: 1.4;
}

.am-q-toggle {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-left: 20px;
    transition: transform 0.3s;
}

.am-faq-q.active .am-q-toggle {
    transform: rotate(180deg);
}

.am-faq-a {
    display: none;
    background-color: #F8F9FA;
    padding: 40px;
    border-top: 1px solid #eee;
}

.am-a-content {
    position: relative;
    padding-left: 40px;
    font-size: 16px;
    line-height: 1.6;
    color: #444;
}

.am-a-content::before {
    content: 'A.';
    position: absolute;
    top: 0;
    left: 0;
    font-size: 20px;
    font-weight: 700;
    color: #f26532;
}


/* Accessibility Support */
body.high-contrast .am-work-card { background: #000; border: 1px solid #fff; }
body.high-contrast .am-title, 
body.high-contrast .am-work-ttl, 
body.high-contrast .am-q-ttl, 
body.high-contrast .am-a-content { color: #fff !important; }
body.high-contrast .am-tab-item.active { background: #000 !important; color: #ff0 !important; border-color: #ff0; }
body.high-contrast .active .am-q-ttl { color: #ff0 !important; }

/* Responsive */
@media (max-width: 1400px) {
    .am-work-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 1024px) {
    .am-work-grid { grid-template-columns: repeat(3, 1fr); }
    .am-banner { height: 250px; }
    .am-title { font-size: 36px; }
}

@media (max-width: 768px) {
    .am-work-grid { grid-template-columns: repeat(2, 1fr); }
    .am-header-area { flex-direction: column; align-items: flex-start; gap: 20px; }
    .am-btn-group { width: 100%; }
    .btn-am { flex: 1; }
    .am-filters { flex-wrap: wrap; }
    .am-select { flex: 1; }
}

@media (max-width: 480px) {
    .am-work-grid { grid-template-columns: 1fr; }
    .am-tabs { gap: 0; }
    .am-tab-item { flex: 1; width: auto; font-size: 15px; height: 50px; }
}
