.pado-lineup-section {
    width: 100%;
    min-height: 100vh;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    box-sizing: border-box;
    text-align: center;
    font-family: 'Nunito', sans-serif;
}

.pado-lineup-title {
    font-size: 50px;
    font-weight: 700;
    color: #31B1B8;
    margin-bottom: 20px;
}

.pado-lineup-subtitle {
    font-size: 16px;
    color: #7a7a7a;
    margin-bottom: 40px;
    line-height: 1.4;
    font-weight: bold;
}

.pado-card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    align-items: stretch; /* 카드 높이 맞춤 */
}

.pado-card {
    background: #e3eaff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    /* position: relative;  제거: 절대배치 버튼 대신 플렉스 사용 */
    min-height: 320px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;         /* 세로 배치 */
    align-items: center;
    cursor: pointer;
    gap: 8px;                       /* 요소 간 균등 간격 */
}

.pado-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0,0,0,0.2);
}

.pado-card img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    margin-bottom: 8px;
}

.pado-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 4px;
}

/* ⬇️ 설명 문구: 줄바꿈 균형 + 폭 제한 + 동일 줄 수 확보 */
.pado-card p {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    font-weight: 600;
    margin: 0 auto 8px;
    text-align: center;
    max-width: 28ch;         /* 문장 폭 고정으로 줄수 유사화 */
    text-wrap: balance;      /* 지원 브라우저에서 균형 줄바꿈 */
    white-space: normal;     /* 줄바꿈 허용 (기존 nowrap 제거) */
    min-height: 4.5em;       /* 약 3줄 공간 확보(1.5 * 3) */
}

/* text-wrap 미지원 브라우저 폴백: 3줄 클램프 */
@supports not (text-wrap: balance) {
    .pado-card p {
        display: -webkit-box;
        -webkit-line-clamp: 3;       /* 필요 시 2/4로 조절 */
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

/* ⬇️ 버튼을 카드 하단으로 자연스럽게 정렬 */
.inquiry-btn {
    /* absolute 제거 */
    margin-top: auto;               /* 남는 공간을 위로 밀어 하단 정렬 */
    align-self: center;
    background: #fff;
    color: #0A6ADA;
    border: 2px solid #0A6ADA;
    border-radius: 30px;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
}

.inquiry-btn:hover {
    background: #0A6ADA;
    color: #fff;
}

/* Popup styles (변경 없음) */
.pado-popup-bg {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.pado-popup {
    background: #fff;
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    padding: 30px;
    box-sizing: border-box;
    text-align: center;
    position: relative;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.pado-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    transition: color 0.3s;
}
.pado-popup-close:hover { color: #666; }

.popup-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}

#popupTitle {
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

#popupDesc {
    font-size: 13px;
    color: #333;
    line-height: 1.6;
    letter-spacing: 0.3px;
    text-align: justify;
}