/* File Name   : banner.css
   File Location : /views/site/themes/16/theme_default/blocks/banner/style.css
   File Explain  : 배너 블록 스타일 */

.banner-block {
    max-width: 1440px;
    margin: 0 auto;
}

.banner-header {
    text-align: center;
    margin-bottom: 48px;
}

.banner-title {
    font-size: 35px;
    font-weight: bold;
    color: #1f2937;
    margin: 0 0 10px 0;
    line-height: 1.2;
}

.banner-subtitle {
    font-size: 17px;
    font-weight: normal;
    color: #6b7280;
    margin: 0;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.banner-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.banner-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.banner-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.banner-card-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: #f3f4f6;
    position: relative;
}

.banner-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.banner-card:hover .banner-card-image img {
    transform: scale(1.05);
}

/* 배너 카드 슬라이더 스타일 */
.banner-card-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.banner-card-slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.banner-card-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 1;
}

.banner-card-slide.active {
    opacity: 1;
    z-index: 2;
}

.banner-card-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-card-indicators {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.banner-card-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 0;
    transition: background 0.3s ease;
}

.banner-card-indicator.active {
    background: rgba(255, 255, 255, 1);
}

.banner-card-indicator:hover {
    background: rgba(255, 255, 255, 0.8);
}

.banner-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}

.banner-card-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.banner-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 12px;
}

.banner-card-title {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    line-height: 1.3;
}

.banner-card-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.banner-card-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.rating-star {
    font-size: 18px;
}

.rating-value {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

.banner-card-description {
    font-size: 15px;
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

.banner-read-more {
    color: #f97316;
    text-decoration: none;
    font-weight: 500;
    margin-left: 4px;
    transition: color 0.2s ease;
}

.banner-read-more:hover {
    color: #ea580c;
    text-decoration: underline;
}

.banner-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.banner-tag {
    display: inline-block;
    padding: 4px 10px;
    background: #f3f4f6;
    color: #6b7280;
    border-radius: 12px;
    font-size: 12px;
    line-height: 1.2;
    transition: background 0.2s ease, color 0.2s ease;
}

.banner-tag:hover {
    background: #e5e7eb;
    color: #374151;
}

/* 반응형 디자인 */
@media (max-width: 1024px) {
    .banner-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .banner-title {
        font-size: 32px;
    }

    .banner-subtitle {
        font-size: 16px;
    }

    .banner-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .banner-card-image {
        height: 200px;
    }

    .banner-card-content {
        padding: 20px;
    }

    .banner-card-title {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .banner-title {
        font-size: 28px;
    }

    .banner-subtitle {
        font-size: 14px;
    }
}
