/* 메인 콘텐츠 영역 패딩 */
#agent-app {
    padding: 60px 30px 0 30px;
}

/* 검색 섹션 */
.search-section {
    margin-bottom: 100px;
    text-align: center;
    padding-top: 10px;
}

.search-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
}

.search-box {
    position: relative;
    max-width: 600px;
    margin: 0 auto 10px;
}

.search-box input {
    width: 100%;
    padding: 8px 40px 8px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.search-icon {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
}

.search-icon img {
    margin-bottom: 2px;
}

/* 카테고리 탭 */
.category-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 40px;
    padding: 0 20px;
}

/* 다중 선택 카테고리 스타일 */
.category-tabs .tab-button.active {
    background-color: #0077FF;
    color: white;
    border-color: #0077FF;
}

.tab-button {
    padding: 6px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    background-color: #fff;
    font-size: 13px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-button:hover:not(.active) {
    background-color: #f5f5f5;
}

.card-section + .card-section {
    margin-top: 60px; /* 섹션 사이 여백 */
}

/* 카드 섹션 */
.card-section {
    padding: 0 40px 0 40px;
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding-left: 5px;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.agent-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.agent-card {
    width: 100%;
    height: 230px;
    background: white;
    padding: 20px 20px;
    border-radius: 12px;
    border: 1px solid #eaeaea;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    text-align: left; /* 카드 전체 좌측 정렬 */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.agent-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* 썸네일 좌측 정렬 */
.agent-thumbnail {
    width: 35px;
    height: 35px;
    margin-bottom: 50px; /* 이미지와 제목 사이 간격 */
    background-color: #fff;
    /*border-radius: 6px;*/
}

.agent-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 제목 스타일 및 간격 */
.agent-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 14px; /* 제목과 설명 사이 간격 ↑ */
}

/* 설명 영역 */
.agent-description {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    min-height: 63px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


.iframe-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: white;
    z-index: 9999;
    display: flex;
    flex-direction: column;
}
.iframe-header {
    height: 48px;
    background: #f0f0f0;
    padding: 8px;
    text-align: right;
}
.iframe-modal iframe {
    flex-grow: 1;
    width: 100%;
    height: 100%;
}