/* Embed Carousel Styles */
body {
    margin: 0;
    padding: 0;
    background-color: transparent;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Hide scrollbar for clean embed */
::-webkit-scrollbar {
    display: none;
}

.carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-item {
    flex: 0 0 100%; /* Default mobile: 1 item */
    padding: 0 10px;
    box-sizing: border-box;
}

/* Tablet: 2 items */
@media (min-width: 640px) {
    .carousel-item {
        flex: 0 0 50%;
    }
}

/* PC: 3 items */
@media (min-width: 1024px) {
    .carousel-item {
        flex: 0 0 33.333%;
    }
}

.card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid #f3f4f6;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.card-image-container {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-color: #fff;
    border-bottom: 1px solid #f3f4f6;
}

.card-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.card-body {
    padding: 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
    line-height: 1.4;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.tag {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 6px;
    background-color: #f3f4f6;
    color: #4b5563;
}

.btn-detail {
    margin-top: auto;
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px;
    background-color: #E82127;
    color: white;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.2s;
}

.btn-detail:hover {
    background-color: #C41E24;
}

.nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: white;
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    border: 1px solid #e5e7eb;
    color: #374151;
    transition: all 0.2s;
}

.nav-button:hover {
    background-color: #f9fafb;
    color: #E82127;
}

.nav-prev {
    left: 10px;
}

.nav-next {
    right: 10px;
}

.dots-container {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #d1d5db;
    cursor: pointer;
    transition: background-color 0.2s;
}

.dot.active {
    background-color: #E82127;
    width: 24px;
    border-radius: 4px;
}

.view-all-link {
    display: block;
    text-align: center;
    margin-top: 20px;
    color: #6b7280;
    font-size: 0.875rem;
    text-decoration: none;
    font-weight: 500;
}

.view-all-link:hover {
    color: #E82127;
    text-decoration: underline;
}
