/* List Page Styles */

.list-wrapper {
    width: 100%;
    overflow-x: hidden;
    background-color: #fff;
    font-family: 'Nanum Gothic', sans-serif;
}

/* Header (Reused or Specific) */
.list-header {
    width: 100%;
    height: 77px;
    background-color: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.list-header-inner {
    width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.list-logo {
    font-size: 40px;
    font-weight: 700;
    background: linear-gradient(90deg, #6531FF 0%, #008BFF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 36px;
    text-decoration: none;
}

.list-nav {
    display: flex;
    gap: 32px;
}

.list-nav a {
    color: #364153;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
}

/* Main Container */
.list-container {
    width: 1200px;
    margin: 100px auto 0; /* Top margin for fixed header */
    padding: 0 20px;
}

.page-title {
    font-size: 44px;
    font-weight: 700;
    margin-top: 60px;
    margin-bottom: 40px;
    color: #000;
}

/* Banner Section */
.inquiry-banner {
    width: 100%;
    height: 200px;
    background-color: #6531FF;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    margin-bottom: 60px;
    background-size: cover;
    background-position: center;
}

.inquiry-banner-content {
    position: absolute;
    top: 52px;
    left: 64px;
}

.inquiry-banner-title {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 24px;
    line-height: 1.4;
}

.inquiry-banner-title span {
    color: #E4FF30;
}

.inquiry-btn {
    display: inline-flex;
    align-items: center;
    background-color: #008BFF;
    color: #fff;
    padding: 12px 24px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
}

.inquiry-btn img {
    margin-left: 8px;
    width: 24px;
    height: 24px;
}

/* Grid Layouts */
.grid-section {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 60px;
    width: 100%;
}

/* Card Styles */
.card-item {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    overflow: hidden;
}

.card-image-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    border-radius: 24px 24px 0 0;
    overflow: hidden;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-overlay-text {
    position: absolute;
    top: 50%;
    left: 24px;
    transform: translateY(-50%);
    color: #000;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.4;
}

.card-overlay-text span {
    color: #008BFF; /* Or specific color based on design */
}

.card-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.card-title {
    font-size: 22px;
    font-weight: 700;
    color: #000;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-all;
}
.card-title:hover {
    overflow: visible;
    -webkit-line-clamp: unset;
    background: #fff;
    position: relative;
    z-index: 10;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-height: 3.2em; /* Approx 2 lines */
    overflow: hidden;
    position: relative;
    width: 100%;
}
.card-tags:hover {
    max-height: none;
    overflow: visible;
    background: #fff;
    z-index: 10;
}

.tag {
    background-color: #F3F4F6;
    color: #687994;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
}

.card-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    font-weight: 700;
    color: #000;
}

.card-rating span {
    color: #687994;
    font-weight: 400;
    font-size: 14px;
}

.card-price {
    font-size: 20px;
    font-weight: 700;
    color: #000;
}

.original-price {
    font-size: 14px;
    color: #687994;
    text-decoration: line-through;
    display: block;
    margin-bottom: 4px;
}

.discount-rate {
    color: #6531FF; /* Gradient text effect handled in HTML/JS if needed, simple color here */
    margin-right: 8px;
}

/* Event Type Cards (Bottom Section) */
.event-card-image-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    border-radius: 24px 24px 0 0;
    overflow: hidden;
}

.event-card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-card-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    width: 100%;
    z-index: 2;
}

.event-card-subtitle {
    position: absolute;
    top: 65%;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 14px;
    font-weight: 400;
    text-align: center;
    width: 100%;
    z-index: 2;
}

.event-badge {
    position: absolute;
    top: 52px; /* Adjust */
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(180deg, #6531FF 0%, #008BFF 100%);
    color: #fff;
    padding: 4px 16px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    z-index: 2;
}

.event-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3); /* Darken image */
    z-index: 1;
}

/* Footer (Reuse existing styles or simplified) */
.list-footer {
    background-color: #101828;
    color: #fff;
    padding: 72px 0;
    margin-top: 100px;
}

.footer-inner {
    width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

/* Responsive */
@media (max-width: 1200px) {
    .list-container, .list-header-inner, .footer-inner {
        width: 100%;
    }
    .grid-section {
        grid-template-columns: repeat(3, 1fr);
    }
    .inquiry-banner-content {
        left: 40px;
        top: 40px;
    }
}

@media (max-width: 768px) {
    .list-container {
        margin-top: 80px;
        padding: 0 16px;
    }
    .grid-section {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .page-title {
        font-size: 32px;
        margin-top: 40px;
        margin-bottom: 32px;
    }
    .inquiry-banner {
        height: 160px;
        margin-bottom: 40px;
    }
    .inquiry-banner-content {
        left: 24px;
        top: 32px;
    }
    .inquiry-banner-title {
        font-size: 22px;
        margin-bottom: 16px;
    }
    .inquiry-btn {
        padding: 10px 20px;
        font-size: 16px;
    }
    .card-image-wrapper {
        height: 160px;
        border-radius: 16px 16px 0px 0px; /* main.jsp expert-card style */
    }
    .card-title {
        font-size: 16px; /* main.jsp expert-card style */
        font-weight: 600;
    }
    .card-info {
        gap: 8px;
    }
    .tag {
        font-size: 12px;
        padding: 2px 4px;
    }
}

@media (max-width: 480px) {
    .grid-section {
        grid-template-columns: repeat(2, 1fr); /* Force 2 columns on mobile */
        gap: 12px;
    }
    .page-title {
        font-size: 24px;
    }
    .inquiry-banner {
        height: 140px;
    }
    .inquiry-banner-content {
        left: 16px;
        top: 24px;
        right: 16px;
    }
    .inquiry-banner-title {
        margin-top: 6px;
        margin-left: 10px;
        font-size: 18px;
        line-height: 1.3;
    }
    .inquiry-btn {
        margin-left: 6px;
        padding: 8px 16px;
        font-size: 14px;
    }
    .card-image-wrapper {
        height: 120px; /* Adjusted for 2 columns */
    }
    .card-title {
        font-size: 14px;
    }
}
