@charset "UTF-8";

/*
    ============================================
    SE-Trade Theme - Sub Page Stylesheet
    서비스소개, 이용후기 등 서브페이지 공통 스타일
    ============================================
*/

/* ============ Sub Page Layout ============ */
.sub-page { padding-top: 100px; }

.sub-hero { background: #293c84; padding: 48px 20px; text-align: center; }
.sub-hero-inner { max-width: 1200px; margin: 0 auto; }
.sub-hero-title { font-size: 32px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.sub-hero-desc { font-size: 16px; color: #b8c4e8; }

.sub-container { max-width: 1200px; margin: 0 auto; padding: 40px 20px 24px; }

/* ============ Service Page ============ */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 60px; }
.service-item { background: #fff; border: 1px solid #e0e0e0; border-radius: 12px; padding: 0; overflow: hidden; transition: box-shadow .3s; }
.service-item:hover { box-shadow: 0 4px 20px rgba(41, 60, 132, .15); }
.service-icon-wrap { width: 100%; aspect-ratio: 4/3; overflow: hidden; }
.service-icon-wrap img { width: 100%; height: 100%; object-fit: cover; }
.service-item h3 { font-size: 20px; font-weight: 700; color: #293c84; padding: 16px 20px 8px; }
.service-item p { font-size: 14px; color: #555; line-height: 1.7; padding: 0 20px 20px; }

.service-process { margin-bottom: 60px; }
.service-process h2 { font-size: 24px; font-weight: 700; color: #222; text-align: center; margin-bottom: 32px; }

.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.process-step { text-align: center; padding: 24px 16px; background: #f5f7ff; border-radius: 12px; }
.step-number { font-size: 28px; font-weight: 900; color: #293c84; margin-bottom: 8px; }
.step-title { font-size: 18px; font-weight: 700; color: #222; margin-bottom: 8px; }
.step-desc { font-size: 13px; color: #666; line-height: 1.6; }

.service-cta { text-align: center; padding: 48px 20px; background: #f0f2f8; border-radius: 16px; }
.service-cta h2 { font-size: 24px; font-weight: 700; color: #222; margin-bottom: 8px; }
.service-cta p { font-size: 15px; color: #666; margin-bottom: 20px; }
.cta-phone { display: inline-block; padding: 14px 40px; background: #293c84; color: #fff !important; font-size: 22px; font-weight: 700; border-radius: 50px; }

/* ============ Board Page - Star Rating ============ */
.card-rating .star { font-size: 16px; color: #ddd; }
.card-rating .star.filled { color: #ffc107; }

/* ============ Board Page - Section ============ */
.review-carousel-section { margin-bottom: 48px; }

.section-title { font-size: 22px; font-weight: 700; color: #222; margin-bottom: 20px; }

.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.review-count { font-size: 14px; color: #888; }

/* ============ Board Page - Carousel ============ */
.review-carousel { position: relative; display: flex; align-items: center; gap: 8px; }

.carousel-btn { flex-shrink: 0; width: 40px; height: 40px; background: #293c84; color: #fff; border: none; border-radius: 50%; font-size: 24px; line-height: 1; cursor: pointer; transition: background .2s; }
.carousel-btn:hover { background: #1a2a6c; }

.carousel-track-wrap { flex: 1; overflow: hidden; }
.carousel-track { display: flex; transition: transform .4s ease; }

/* Carousel Card (Image Card) */
.carousel-card { flex: 0 0 33.333%; box-sizing: border-box; padding: 0 8px; }
.carousel-card-img { background: #fff; border: 1px solid #e0e0e0; border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; height: 100%; }
.carousel-card-img a { display: flex; flex-direction: column; height: 100%; color: inherit; }

/* Carousel - Thumbnail */
.carousel-card-img .card-thumb { width: 100%; aspect-ratio: 4/3; overflow: hidden; flex-shrink: 0; }
.carousel-card-img .card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.carousel-card-img:hover .card-thumb img { transform: scale(1.03); }

/* Carousel - Card Body */
.carousel-card-img .card-body { padding: 14px 16px; flex: 1; display: flex; flex-direction: column; }
.carousel-card-img .card-rating { margin-bottom: 6px; }
.carousel-card-img .card-title { font-size: 15px; font-weight: 600; color: #222; margin-bottom: 8px; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.carousel-card-img .card-meta { font-size: 12px; color: #999; margin-top: auto; }
.carousel-card-img .card-meta span + span::before { content: "|"; margin: 0 6px; color: #ccc; }

/* ============ Board Page - Review Card Grid (4 columns) ============ */
.review-grid-img { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 40px; }

/* Review Card */
.review-card-img { background: #fff; border: 1px solid #e0e0e0; border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .3s, border-color .3s; }
.review-card-img:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(41, 60, 132, .15); border-color: #293c84; }
.review-card-img a { display: flex; flex-direction: column; height: 100%; color: inherit; }

/* Review Card - Thumbnail (4:3 ratio) */
.review-card-img .card-thumb { width: 100%; aspect-ratio: 4/3; overflow: hidden; flex-shrink: 0; }
.review-card-img .card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.review-card-img:hover .card-thumb img { transform: scale(1.03); }

/* Review Card - Body */
.review-card-img .card-body { padding: 14px; flex: 1; display: flex; flex-direction: column; }
.review-card-img .card-rating { margin-bottom: 4px; }
.review-card-img .card-rating .star { font-size: 14px; }
.review-card-img .card-title { font-size: 15px; font-weight: 600; color: #222; margin-bottom: 6px; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.review-card-img .card-meta { font-size: 12px; color: #999; display: flex; align-items: center; margin-top: auto; }
.review-card-img .card-meta span + span::before { content: "|"; margin: 0 6px; color: #ccc; }

.no-data { text-align: center; padding: 80px 20px; color: #999; font-size: 16px; }

/* ============ Board Page - Pagination ============ */
.board-pagination { display: flex; justify-content: center; gap: 4px; padding: 20px 0; }
.page-link { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid #ddd; border-radius: 6px; font-size: 14px; color: #555; transition: all .2s; }
.page-link:hover { background: #f0f2f8; border-color: #293c84; color: #293c84; }
.page-link.active { background: #293c84; border-color: #293c84; color: #fff; font-weight: 700; }

/* ============ Specialty Page - Cards Grid ============ */
.sp-section-title { font-size: 26px; font-weight: 700; color: #222; text-align: center; margin-bottom: 32px; }

.sp-cards-section { margin-bottom: 60px; }
.sp-cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.sp-card { display: block; background: #f0f2f8; border-radius: 12px; overflow: hidden; transition: transform .2s, box-shadow .3s; color: inherit; }
.sp-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(41, 60, 132, .18); }
.sp-card-img { width: 100%; aspect-ratio: 4/3; overflow: hidden; border-radius: 12px; margin: 0; }
.sp-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.sp-card:hover .sp-card-img img { transform: scale(1.03); }
.sp-card-info { padding: 16px 12px 20px; text-align: center; }
.sp-card-info h3 { font-size: 18px; font-weight: 700; color: #222; margin-bottom: 6px; }
.sp-card-info p { font-size: 13px; color: #666; line-height: 1.5; }

/* ============ Specialty Page - Platform Banner ============ */
.sp-platform-banner { background: #1a2a6c; border-radius: 16px; padding: 48px 40px; margin-bottom: 60px; overflow: hidden; }
.sp-platform-inner { display: flex; align-items: center; gap: 40px; max-width: 1100px; margin: 0 auto; }
.sp-platform-text { flex: 1; }
.sp-platform-text h2 { font-size: 28px; font-weight: 700; color: #fff; margin-bottom: 12px; }
.sp-platform-text > p { font-size: 16px; color: #b8c4e8; margin-bottom: 20px; }
.sp-platform-text ul { list-style: none; padding: 0; margin: 0; }
.sp-platform-text li { font-size: 15px; color: #d0d8f0; padding: 6px 0 6px 24px; position: relative; }
.sp-platform-text li::before { content: "\2713"; position: absolute; left: 0; color: #ffc107; font-weight: 700; }
.sp-platform-img { flex: 0 0 380px; border-radius: 12px; overflow: hidden; }
.sp-platform-img img { width: 100%; height: auto; display: block; }

/* ============ Specialty Page - Detail Sections ============ */
.sp-detail-section { margin-bottom: 60px; padding-bottom: 60px; border-bottom: 1px solid #e8eaf0; scroll-margin-top: 120px; }
.sp-detail-section:last-of-type { border-bottom: none; }

.sp-detail-header { text-align: center; margin-bottom: 32px; }
.sp-detail-num { display: inline-block; font-size: 14px; font-weight: 700; color: #293c84; background: #eef1fa; padding: 4px 14px; border-radius: 20px; margin-bottom: 12px; }
.sp-detail-header h2 { font-size: 28px; font-weight: 700; color: #222; margin-bottom: 10px; }
.sp-detail-summary { font-size: 15px; color: #666; max-width: 700px; margin: 0 auto; line-height: 1.6; }

.sp-detail-body { display: flex; gap: 40px; align-items: flex-start; }
.sp-detail-body.sp-reverse { flex-direction: row-reverse; }

.sp-detail-img { flex: 0 0 45%; border-radius: 12px; overflow: hidden; }
.sp-detail-img img { width: 100%; height: auto; display: block; }

.sp-detail-content { flex: 1; }
.sp-detail-desc { font-size: 15px; color: #444; line-height: 1.8; margin-bottom: 20px; }

.sp-feature-list { list-style: none; padding: 0; margin: 0 0 24px; }
.sp-feature-list li { font-size: 14px; color: #333; padding: 8px 0 8px 28px; position: relative; border-bottom: 1px solid #f0f0f0; }
.sp-feature-list li:last-child { border-bottom: none; }
.sp-feature-list li::before { content: "\2714"; position: absolute; left: 0; top: 8px; color: #293c84; font-size: 14px; }

.sp-detail-cta { display: inline-block; padding: 12px 32px; background: #293c84; color: #fff !important; font-size: 15px; font-weight: 600; border-radius: 8px; transition: background .2s; }
.sp-detail-cta:hover { background: #1a2a6c; }

/* ============ Specialty Page - Process ============ */
.sp-process-section { margin-bottom: 60px; }
.sp-process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.sp-process-step { text-align: center; padding: 32px 20px; background: #f5f7ff; border-radius: 12px; transition: box-shadow .3s; }
.sp-process-step:hover { box-shadow: 0 4px 16px rgba(41, 60, 132, .1); }
.sp-step-icon { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; background: #293c84; color: #fff; font-size: 22px; font-weight: 900; border-radius: 50%; margin: 0 auto 16px; }
.sp-process-step h3 { font-size: 18px; font-weight: 700; color: #222; margin-bottom: 8px; }
.sp-process-step p { font-size: 13px; color: #666; line-height: 1.6; }

/* ============ Specialty Page - CTA ============ */
.sp-cta-section { text-align: center; padding: 56px 20px; background: #f0f2f8; border-radius: 16px; margin-bottom: 40px; }
.sp-cta-section h2 { font-size: 26px; font-weight: 700; color: #222; margin-bottom: 10px; }
.sp-cta-section p { font-size: 15px; color: #666; margin-bottom: 24px; }
.sp-cta-buttons { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.sp-cta-phone { display: inline-block; padding: 14px 40px; background: #293c84; color: #fff !important; font-size: 20px; font-weight: 700; border-radius: 50px; transition: background .2s; }
.sp-cta-phone:hover { background: #1a2a6c; }
.sp-cta-kakao { display: inline-block; padding: 14px 40px; background: #fee500; color: #3c1e1e !important; font-size: 20px; font-weight: 700; border-radius: 50px; transition: background .2s; }
.sp-cta-kakao:hover { background: #e6cf00; }

/* ============ Responsive: Tablet Landscape (~1200px) ============ */
@media (max-width: 1200px) {
    .sub-page { padding-top: 100px; }
    .service-grid { grid-template-columns: repeat(2, 1fr); }
    .process-steps { grid-template-columns: repeat(2, 1fr); }
    .review-grid-img { grid-template-columns: repeat(3, 1fr); }
    .sp-cards-grid { grid-template-columns: repeat(2, 1fr); }
    .sp-platform-img { flex: 0 0 320px; }
    .sp-process-steps { grid-template-columns: repeat(2, 1fr); }
}

/* ============ Responsive: Tablet Portrait (~1024px) ============ */
@media (max-width: 1024px) {
    .review-grid-img { grid-template-columns: repeat(3, 1fr); gap: 16px; }
    .carousel-card { flex: 0 0 50%; }
}

/* ============ Responsive: Mobile (~768px) ============ */
@media (max-width: 768px) {
    .sub-page { padding-top: 0; }
    .sub-hero { padding: 32px 16px; }
    .sub-hero-title { font-size: 24px; }
    .sub-hero-desc { font-size: 14px; }
    .sub-container { padding: 24px 16px 16px; }

    .service-grid { grid-template-columns: 1fr; }
    .process-steps { grid-template-columns: 1fr; gap: 12px; }

    .carousel-btn { width: 32px; height: 32px; font-size: 20px; }
    .carousel-card { flex: 0 0 100%; }

    .review-grid-img { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .review-card-img .card-title { font-size: 14px; }
    .review-card-img .card-meta { font-size: 11px; }

    .board-pagination { gap: 2px; }
    .page-link { width: 32px; height: 32px; font-size: 13px; }

    /* Specialty Page Mobile */
    .sp-section-title { font-size: 22px; margin-bottom: 24px; }
    .sp-cards-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .sp-card-info h3 { font-size: 16px; }
    .sp-card-info p { font-size: 12px; }
    .sp-platform-banner { padding: 32px 20px; }
    .sp-platform-inner { flex-direction: column; gap: 24px; }
    .sp-platform-img { flex: none; width: 100%; }
    .sp-platform-text h2 { font-size: 22px; }
    .sp-detail-header h2 { font-size: 22px; }
    .sp-detail-body { flex-direction: column !important; gap: 24px; }
    .sp-detail-img { flex: none; width: 100%; }
    .sp-process-steps { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .sp-cta-section { padding: 40px 16px; }
    .sp-cta-section h2 { font-size: 22px; }
    .sp-cta-phone, .sp-cta-kakao { font-size: 17px; padding: 12px 32px; }
}

/* ============ Responsive: Small Mobile (~480px) ============ */
@media (max-width: 480px) {
    .review-grid-img { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .review-card-img .card-body { padding: 10px; }
    .review-card-img .card-title { font-size: 13px; }
    .review-card-img .card-rating .star { font-size: 12px; }
    .carousel-card-img .card-thumb { aspect-ratio: 16/10; }

    /* Specialty Page Small Mobile */
    .sp-cards-grid { gap: 12px; }
    .sp-card-info { padding: 12px 8px 16px; }
    .sp-card-info h3 { font-size: 14px; }
    .sp-card-info p { font-size: 11px; }
    .sp-detail-desc { font-size: 14px; }
    .sp-feature-list li { font-size: 13px; }
    .sp-process-steps { grid-template-columns: 1fr; }
    .sp-cta-buttons { flex-direction: column; align-items: center; }
}
