.ad-slider {
    position: relative;
    width: 100%;
    max-width: 800px;
    overflow: hidden;
    margin: auto;
    border-radius: 10px;
}

.ad-slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.ad-slide {
    min-width: 100%;
}

.ad-slide img {
    width: 100%;
    display: block;
    border-radius: 10px;
}

/* 이전/다음 버튼 */
.ad-slider button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 18px;
}

.ad-slider button.prev { left: 10px; }
.ad-slider button.next { right: 10px; }

.ad-slider button:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* 슬라이드 개수 표시 */
.slide-counter {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
}

/* 슬라이드 점(●●●) */
.slide-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
}

.ad-slider .dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 0 5px;
    background: gray;
    border-radius: 50%;
    cursor: pointer;
}

.ad-slider .dot.active {
    background: white;
}

main > section > h2, main > div > h2 {padding:10px 0;}

.quiz-gallery-container { 
    max-width: 600px; 
    width: 100%; 
    margin: auto; 
    background: white; 
    padding: 20px 0; 
    border-radius: 8px; 
}

.quiz-gallery { 
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); /* 반응형 그리드 */
    gap: 20px; 
    padding: 10px; 
}

.quiz-card { 
    background: white; 
    border-radius: 10px; 
    overflow: hidden; 
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); 
    transition: transform 0.2s ease-in-out;
    cursor: pointer;
}

.quiz-card:hover { 
    transform: scale(1.05); 
}

.quiz-image { 
    width: 100%; 
    height: 150px; 
    object-fit: cover; 
}

.quiz-card-title { 
    font-size: 16px; 
    font-weight: bold; 
    text-align: center; 
    padding: 10px; 
}

.no-quizzes-message { 
    text-align: center; 
    color: #888; 
    font-size: 16px; 
    margin-top: 20px; 
}
