/* 서브페이지 콘텐츠 스타일 */
.subpage-hero {
    height: 250px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9f7f1 100%);
    position: relative;
    overflow: hidden;
    margin-bottom: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.subpage-hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 50px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.subpage-hero-text {
    width: 50%;
}

.subpage-hero-title {
    font-size: 36px;
    font-weight: 700;
    color: #00BF73;
    margin-bottom: 15px;
}

.subpage-hero-description {
    font-size: 18px;
    color: #555;
    line-height: 1.5;
}

.subpage-hero-image {
    width: 45%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.subpage-hero-image img {
    max-height: 220px;
    max-width: 100%;
    object-fit: contain;
}

/* 서브페이지 콘텐츠 섹션 스타일 */
.subpage-content-section {
    padding: 20px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 20px;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: #00BF73;
    margin-bottom: 15px;
}

.section-description {
    font-size: 18px;
    color: #555;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.5;
}

/* 대출 특징 카드 스타일 */
.loan-features {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.feature-card {
    width: 48%;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 30px;
    margin-bottom: 30px;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 40px;
    color: #00BF73;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.feature-card ul {
    padding-left: 20px;
}

.feature-card li {
    margin-bottom: 10px;
    color: #555;
    line-height: 1.5;
}

/* 대출 진행 절차 스타일 */
.loan-process {
    margin-bottom: 50px;
}

.loan-process h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
    text-align: center;
    color: #333;
}

.process-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 60px;
    right: 60px;
    height: 2px;
    background-color: #e0e0e0;
    z-index: 1;
}

.step {
    width: 18%;
    position: relative;
    z-index: 2;
    text-align: center;
}

.step-number {
    width: 80px;
    height: 80px;
    background-color: #00BF73;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 20px;
}

.step-content h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.step-content p {
    font-size: 14px;
    color: #666;
}

/* CTA 섹션 스타일 */
.cta-section {
    background-color: #f8f9fa;
    padding: 70px 0;
    text-align: center;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    box-sizing: border-box;
    position: relative;
    left: 0;
    right: 0;
}

.cta-section h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
}

.cta-section p {
    font-size: 16px;
    color: #555;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    background-color: #00BF73;
    color: #fff;
    font-size: 1.8rem;
    font-weight: 900;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 191, 115, 0.3);
}

.cta-button:hover {
    background-color: #00a864;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 191, 115, 0.4);
}

/* 비교 테이블 스타일 */
.comparison-table {
    margin-bottom: 50px;
}

.comparison-table h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
    color: #333;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.comparison-table th,
.comparison-table td {
    padding: 15px;
    text-align: center;
    border: 1px solid #e0e0e0;
}

.comparison-table th {
    background-color: #00BF73;
    color: #fff;
    font-weight: 600;
}

.comparison-table tr:nth-child(even) {
    background-color: #f8f9fa;
}

/* 성공 사례 스타일 */
.success-stories,
.loan-cases {
    margin-bottom: 50px;
}

.success-stories h3,
.loan-cases h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
    text-align: center;
    color: #333;
}

.story-cards,
.case-cards {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.story-card,
.case-card {
    width: 48%;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 30px;
    margin-bottom: 30px;
}

.story-header,
.case-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.story-tag,
.case-tag {
    background-color: #00BF73;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    margin-right: 15px;
}

.story-header h4,
.case-header h4 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.story-content p,
.case-content p {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

.story-content ul,
.case-content ul {
    padding-left: 20px;
}

.story-content li,
.case-content li {
    margin-bottom: 8px;
    color: #555;
}

/* 계산기 스타일 */
.equity-calculator,
.loan-calculator {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 50px;
}

.equity-calculator h3,
.loan-calculator h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
    color: #333;
}

.calculator-form {
    max-width: 600px;
    margin: 0 auto 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #333;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.calculate-btn {
    display: block;
    width: 100%;
    background-color: #00BF73;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    padding: 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.calculate-btn:hover {
    background-color: #00a864;
}

.calculation-result {
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.calculation-result .small-text {
    font-size: 14px;
    font-weight: 400;
    color: #666;
    margin-top: 10px;
}

/* 신용 정보 스타일 */
.credit-info {
    margin-bottom: 50px;
}

.credit-info h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
    color: #333;
}

.credit-table {
    max-width: 800px;
    margin: 0 auto 20px;
}

.credit-note {
    text-align: center;
    font-size: 14px;
    color: #666;
}

.text-success {
    color: #00BF73;
}

.text-danger {
    color: #dc3545;
}

/* 토지 유형 스타일 */
.land-types,
.property-types {
    margin-bottom: 50px;
}

.land-types h3,
.property-types h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
    text-align: center;
    color: #333;
}

.type-cards,
.type-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.type-card,
.type-item {
    width: 23%;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 25px;
    margin-bottom: 30px;
    text-align: center;
}

.type-icon {
    font-size: 40px;
    color: #00BF73;
    margin-bottom: 15px;
}

.type-card h4,
.type-item h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.type-card p,
.type-item p {
    font-size: 16px;
    color: #555;
    margin-bottom: 15px;
}

.type-card ul {
    text-align: left;
    padding-left: 20px;
}

.type-card li {
    margin-bottom: 5px;
    color: #555;
}

/* 담보 유형 스타일 */
.collateral-types {
    margin-bottom: 50px;
}

.collateral-types h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
    text-align: center;
    color: #333;
}

.collateral-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.collateral-item {
    width: 30%;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 25px;
    margin-bottom: 30px;
    text-align: center;
}

.collateral-icon {
    font-size: 40px;
    color: #00BF73;
    margin-bottom: 15px;
}

.collateral-item h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.collateral-item p {
    font-size: 16px;
    color: #555;
}

/* 대출 유형 탭 스타일 */
.loan-types {
    margin-bottom: 50px;
}

.loan-types h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
    text-align: center;
    color: #333;
}

.type-tabs {
    max-width: 800px;
    margin: 0 auto;
}

.tab-nav {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.tab-btn {
    padding: 10px 20px;
    background-color: transparent;
    border: none;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.active {
    color: #00BF73;
    border-bottom: 3px solid #00BF73;
}

.tab-content {
    background-color: #fff;
    border-radius: 0 0 10px 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.tab-pane h4 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.tab-pane p {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

.tab-pane ul {
    padding-left: 20px;
}

.tab-pane li {
    margin-bottom: 8px;
    color: #555;
}

/* 반응형 스타일 */
@media (max-width: 992px) {
    .feature-card {
        width: 48%;
    }
    
    .type-card,
    .type-item,
    .collateral-item {
        width: 48%;
    }
    
    .process-steps {
        flex-wrap: wrap;
    }
    
    .process-steps::before {
        display: none;
    }
    
    .step {
        width: 48%;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    /* 모든 컨테이너를 모바일에 맞게 조정 */
    .subpage-hero-content,
    .container,
    .section-container {
        width: 100% !important;
        max-width: 100vw !important;
        margin: 0 auto !important;
        padding: 0 15px !important;
        box-sizing: border-box !important;
    }
    
    /* 서브페이지 히어로 섹션 */
    .subpage-hero {
        width: 100% !important;
        max-width: 100vw !important;
        margin: 0 !important;
        padding: 20px 0 !important;
    }
    
    .subpage-hero-content {
        flex-direction: column;
        text-align: center;
        padding: 20px 15px !important;
        width: 100% !important;
        max-width: 100vw !important;
    }
    
    .subpage-hero-text,
    .subpage-hero-image {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .subpage-hero-image {
        justify-content: center;
        margin-top: 20px;
    }
    
    /* 기본 그리드들을 2개씩 배치 */
    .loan-features,
    .features-grid,
    .type-grid,
    .case-grid,
    .story-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
        margin-bottom: 20px !important;
        width: 100% !important;
        max-width: 100vw !important;
        padding: 0 15px !important;
        box-sizing: border-box !important;
    }
    
    /* 카드들 크기 조정 */
    .feature-card,
    .type-card,
    .case-card,
    .story-card {
        width: 100% !important;
        max-width: 100% !important;
        padding: 10px !important;
        margin-bottom: 0 !important;
        text-align: center !important;
        box-sizing: border-box !important;
    }
    
    /* 아이콘 크기 조정 */
    .feature-icon,
    .type-icon {
        font-size: 1.5rem !important;
        margin-bottom: 8px !important;
    }
    
    /* 제목 크기 조정 */
    .feature-card h3,
    .type-card h4,
    .case-card h4,
    .story-card h4 {
        font-size: 0.8rem !important;
        margin-bottom: 6px !important;
        line-height: 1.2 !important;
    }
    
    /* 내용 텍스트 크기 조정 */
    .feature-card p,
    .type-card p,
    .case-card p,
    .story-card p {
        font-size: 0.65rem !important;
        line-height: 1.3 !important;
        margin-bottom: 5px !important;
    }
    
    /* 리스트 크기 조정 */
    .feature-card ul li,
    .type-card ul li,
    .case-card ul li,
    .story-card ul li {
        font-size: 0.6rem !important;
        line-height: 1.2 !important;
        margin-bottom: 2px !important;
    }
    
    /* 태그 크기 조정 */
    .case-tag,
    .story-tag {
        font-size: 0.5rem !important;
        padding: 2px 6px !important;
    }
    
    /* 말풍선 섹션 2개씩 배치 */
    .speech-bubble-section {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
        margin: 15px 0 20px !important;
        width: 100% !important;
        max-width: 100vw !important;
        padding: 0 15px !important;
        box-sizing: border-box !important;
    }
    
    .speech-bubble {
        width: 100% !important;
        max-width: 100% !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        padding: 8px !important;
        margin: 0 !important;
        background-color: #f9f9f9 !important;
        border-radius: 6px !important;
        box-sizing: border-box !important;
    }
    
    .character-icon {
        margin-bottom: 6px !important;
        text-align: center !important;
    }
    
    .character-icon img {
        width: 25px !important;
        height: 25px !important;
    }
    
    .bubble-content {
        width: 100% !important;
        font-size: 0.6rem !important;
        line-height: 1.2 !important;
        text-align: center !important;
    }
    
    .bubble-content p {
        font-size: 0.6rem !important;
        line-height: 1.2 !important;
        margin: 0 !important;
        padding: 0 3px !important;
    }
    
    .quote-mark-top, .quote-mark-bottom {
        font-size: 0.7rem !important;
        margin: 0 1px !important;
    }
    
    /* 하이라이트 컨테이너 2개씩 배치 */
    .highlights-container {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 100vw !important;
        padding: 0 15px !important;
        box-sizing: border-box !important;
    }
    
    .highlight-item {
        padding: 8px !important;
        text-align: center !important;
        flex-direction: column !important;
        min-width: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .highlight-icon {
        width: 25px !important;
        height: 25px !important;
        margin-right: 0 !important;
        margin-bottom: 5px !important;
        font-size: 0.8rem !important;
    }
    
    .highlight-item p {
        font-size: 0.6rem !important;
        line-height: 1.2 !important;
        margin: 0 !important;
    }
    
    /* 프로세스 스텝 2개씩 배치 */
    .process-steps {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: space-between !important;
        width: 100% !important;
        max-width: 100vw !important;
        padding: 0 15px !important;
        box-sizing: border-box !important;
    }
    
    .step {
        width: 48% !important;
        max-width: 48% !important;
        margin-bottom: 10px !important;
        text-align: center !important;
        padding: 8px !important;
        box-sizing: border-box !important;
    }
    
    .step-content h4 {
        font-size: 0.7rem !important;
        margin-bottom: 4px !important;
    }
    
    .step-content p {
        font-size: 0.6rem !important;
        line-height: 1.2 !important;
    }
    
    /* 비교 테이블 조정 */
    .comparison-table {
        font-size: 0.6rem !important;
        overflow-x: auto !important;
        width: 100% !important;
        max-width: 100vw !important;
        padding: 0 15px !important;
        box-sizing: border-box !important;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 4px 2px !important;
        font-size: 0.55rem !important;
    }
    
    /* 신용 비교 테이블 특별 조정 */
    .credit-comparison {
        font-size: 0.5rem !important;
    }
    
    .credit-grade-col {
        width: 20% !important;
    }
    
    .loan-type-col {
        width: 40% !important;
    }
    
    /* CTA 버튼 조정 */
    .cta-button {
        padding: 8px 12px !important;
        font-size: 0.7rem !important;
        margin-top: 10px !important;
    }
    
    /* 타임라인 조정 */
    .simple-timeline .timeline-steps {
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
        width: 100% !important;
        max-width: 100vw !important;
        padding: 0 15px !important;
        box-sizing: border-box !important;
    }
    
    .timeline-step {
        padding: 10px 5px !important;
        text-align: center !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .step-number {
        width: 35px !important;
        height: 35px !important;
        font-size: 1rem !important;
        margin-bottom: 6px !important;
    }
    
    .step-label h4 {
        font-size: 0.7rem !important;
        margin-bottom: 4px !important;
    }
    
    .step-label p {
        font-size: 0.6rem !important;
        line-height: 1.2 !important;
    }
}

/* 더 작은 화면 (767px 이하)에서 추가 최적화 */
@media (max-width: 767px) {
    .subpage-content-section {
        padding: 20px 10px !important;
    }
    
    .process-steps {
        grid-template-columns: 1fr !important;
    }
    
    .type-grid {
        grid-template-columns: 1fr !important;
    }
    
    .simple-timeline .timeline-steps {
        grid-template-columns: 1fr !important;
    }
}
