/* PSA Page - About Us Design Pattern Applied */

/* Global Page Padding - 20px left and right */
.detail-page {
    padding: 0 20px;
    box-sizing: border-box;
}

/* Enhanced Typography Variables - Same as About Us */
:root {
    --psa-font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --psa-line-height-tight: 1.2;
    --psa-line-height-comfortable: 1.5;
    --psa-line-height-relaxed: 1.6;
    --psa-letter-spacing-tight: -0.02em;
    --psa-letter-spacing-normal: 0;
    --psa-letter-spacing-wide: 0.02em;
}

/* Page Header - Enhanced Typography (About Us Style) */
.page-header {
    background: var(--white);
    color: var(--text-primary);
    padding: var(--spacing-12) 0 var(--spacing-8) 0;
    text-align: left;
    border-bottom: none;
    font-family: var(--psa-font-family);
}

/* Page header h1 and p styles removed - now handled by header-overlay */

/* Header Box - Mobile First Design (About Us Style) */
.header-box {
    margin: 0;
    padding: var(--spacing-6);
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-4);
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

/* Header Image - Mobile First with Overlay (About Us Style) */
.header-image {
    width: 100%;
    margin-top: var(--spacing-4);
    position: relative;
    display: block;
}

.header-image img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: block;
}

/* Header Overlay - Text over Image */
.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: var(--spacing-6);
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(0, 0, 0, 0.2) 50%,
        rgba(0, 0, 0, 0.6) 100%
    );
    border-radius: var(--radius-lg);
    color: var(--white);
}

.header-overlay h1 {
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 700;
    margin-bottom: var(--spacing-3);
    color: var(--white);
    line-height: var(--psa-line-height-tight);
    letter-spacing: var(--psa-letter-spacing-tight);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.header-overlay p {
    font-size: clamp(1rem, 3vw, 1.25rem);
    color: var(--white);
    line-height: var(--psa-line-height-comfortable);
    font-weight: 400;
    max-width: 600px;
    margin: 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    letter-spacing: var(--psa-letter-spacing-normal);
}

/* Section Styling */
.section {
    padding: var(--spacing-8) 0;
    background: var(--white);
}

.section.bg-light {
    background-color: var(--bg-secondary);
}

/* Section Background Colors - 3 Color Scheme (Red, Dark Gray, Blue) */
#overview {
    background-color: rgba(220, 38, 38, 0.08); /* Red - Light */
    padding: var(--spacing-8) 0;
}

#status {
    background-color: rgba(55, 65, 81, 0.1); /* Dark Gray - Light */
    padding: var(--spacing-8) 0;
}

#key-points {
    background-color: rgba(59, 130, 246, 0.1); /* Blue - Light */
    padding: var(--spacing-8) 0;
}

/* Clean Section Title - Simple and Elegant (About Us Style) */
.section-title {
    font-size: clamp(1.375rem, 4vw, 1.75rem);
    font-weight: 700;
    color: var(--primary-color);
    text-align: left;
    margin-bottom: var(--spacing-6);
    padding: var(--spacing-3) var(--spacing-4);
    background: transparent;
    border: none;
    border-radius: 0;
    position: relative;
    line-height: var(--psa-line-height-comfortable);
    letter-spacing: var(--psa-letter-spacing-tight);
    box-shadow: none;
    transition: color var(--transition-normal);
}

.section-title:hover {
    color: #1e40af;
    transform: none;
    box-shadow: none;
}

.section-title::after {
    display: none;
}

/* Enhanced Container Layout for Better Readability */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 var(--spacing-4);
}

/* PC/랩탑 전용 본문 가로폭 85% 적용 */
@media (min-width: 1025px) {
    .container {
        max-width: 850px; /* 1000px의 85% */
    }
}

/* Content Card - Enhanced Card Design with Better Spacing (About Us Style) */
.content-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    padding: var(--spacing-6) 0; /* 좌우 패딩 0px로 제거 */
    border-radius: var(--radius-xl);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: var(--spacing-6);
    max-width: 100%;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    border: 1px solid rgba(0, 0, 0, 0.05);
    gap: var(--spacing-4);
}

/* Signing Status Section - Card Background Perfectly Matches Section Background */
#status .content-card {
    background: transparent; /* Perfectly transparent to match section background */
    border: none; /* Remove border for perfect match */
    box-shadow: none; /* Remove shadow for perfect match */
    transition: none; /* Remove transition for perfect match */
}

#status .content-card:hover {
    transform: none; /* Remove hover transform */
    box-shadow: none; /* Remove hover shadow */
}

/* Key Points Section - Card Background Perfectly Matches Section Background */
#key-points .content-card {
    background: transparent; /* Perfectly transparent to match section background */
    border: none; /* Remove border for perfect match */
    box-shadow: none; /* Remove shadow for perfect match */
    transition: none; /* Remove transition for perfect match */
}

#key-points .content-card:hover {
    transform: none; /* Remove hover transform */
    box-shadow: none; /* Remove hover shadow */
}

.content-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.card-content {
    flex: 1;
}

.card-content p {
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    line-height: var(--psa-line-height-relaxed);
    color: var(--text-primary);
    margin-bottom: var(--spacing-4);
    font-weight: 400;
    letter-spacing: var(--psa-letter-spacing-normal);
    padding: 0 var(--spacing-1);
}

/* 문장 앞 가운데 점을 진한 파란색으로 변경 */
.card-content p::before {
    content: "•" !important;
    color: #003d7a !important; /* 진한 파란색 */
    margin-right: 8px !important;
}

.card-content p {
    text-indent: -1em !important;
    padding-left: 1em !important;
}

.card-content p:last-child {
    margin-bottom: 0;
}

.card-content strong {
    color: var(--primary-color); /* section-title과 동일한 색상 */
    font-weight: 600;
}

/* Key Points Content - About Us Style */
.key-points-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--spacing-4);
}

/* Mobile Responsive - About Us Style */
@media (max-width: 768px) {
    .page-header {
        padding: var(--spacing-6) 0 var(--spacing-4) 0;
    }
    
    .page-header h1 {
        font-size: clamp(1.5rem, 5vw, 1.75rem);
        margin-bottom: var(--spacing-2);
    }
    
    .page-header p {
        font-size: var(--font-size-sm);
    }
    
    /* Mobile Header Box */
    .header-box {
        padding: var(--spacing-3) var(--spacing-3);
        gap: var(--spacing-3);
    }
    
    .header-image img {
        max-height: 300px;
        border-radius: var(--radius-md);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
    
    /* Mobile Header Overlay */
    .header-overlay {
        padding: var(--spacing-4);
        background: linear-gradient(
            135deg,
            rgba(0, 0, 0, 0.5) 0%,
            rgba(0, 0, 0, 0.3) 50%,
            rgba(0, 0, 0, 0.7) 100%
        );
    }
    
    .header-overlay h1 {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
        margin-bottom: var(--spacing-2);
    }
    
    .header-overlay p {
        font-size: clamp(0.875rem, 4vw, 1rem);
    }
    
    /* Mobile Container Padding */
    .container {
        padding: 0 var(--spacing-3);
    }
    
    /* Mobile Section Titles with Enhanced Padding */
    .section-title {
        font-size: clamp(1.25rem, 4.5vw, 1.5rem);
        padding: var(--spacing-3) var(--spacing-4);
        margin-bottom: var(--spacing-4);
    }
    
    /* Mobile Content Cards */
    .content-card {
        padding: var(--spacing-4) 0; /* 좌우 패딩 0px로 제거 */
        margin-bottom: var(--spacing-4);
        border-radius: var(--radius-lg);
    }
    
    .key-points-content {
        padding: 0 var(--spacing-3);
    }
    
    /* 모바일에서도 문장 앞 가운데 점을 진한 파란색으로 변경 */
    .card-content p::before {
        content: "•" !important;
        color: #003d7a !important; /* 진한 파란색 */
        margin-right: 8px !important;
    }
    
    .card-content p {
        text-indent: -1em !important;
        padding-left: 1em !important;
    }
    
    /* 모바일에서도 strong 태그 색상을 section-title과 동일하게 */
    .card-content strong {
        color: var(--primary-color) !important; /* section-title과 동일한 색상 */
        font-weight: 600 !important;
    }
    
    /* Mobile Section Background Colors - Same 3 Color Scheme */
    #overview {
        background-color: rgba(220, 38, 38, 0.08); /* Red - Light */
        padding: var(--spacing-6) 0;
    }
    
    #status {
        background-color: rgba(55, 65, 81, 0.1); /* Dark Gray - Light */
        padding: var(--spacing-6) 0;
    }
    
    #key-points {
        background-color: rgba(59, 130, 246, 0.1); /* Blue - Light */
        padding: var(--spacing-6) 0;
    }
}

/* Desktop Responsive - About Us Style */
@media (min-width: 1025px) {
    .header-image img {
        max-height: 500px;
    }
    
    .header-overlay {
        padding: var(--spacing-8);
        background: linear-gradient(
            135deg,
            rgba(0, 0, 0, 0.3) 0%,
            rgba(0, 0, 0, 0.1) 50%,
            rgba(0, 0, 0, 0.5) 100%
        );
    }
    
    .header-overlay h1 {
        font-size: clamp(2.5rem, 5vw, 4rem);
        margin-bottom: var(--spacing-4);
    }
    
    .header-overlay p {
        font-size: clamp(1.125rem, 2.5vw, 1.5rem);
        max-width: 700px;
    }
    
    .key-points-content {
        padding: 0 var(--spacing-6);
    }
    
    /* Desktop Section Titles (About Us Style) */
    .section-title {
        font-size: clamp(1.125rem, 4vw, 1.25rem);
        margin-bottom: var(--spacing-6);
        padding: var(--spacing-3) var(--spacing-4);
    }
    
    /* 데스크톱에서도 문장 앞 가운데 점을 진한 파란색으로 변경 */
    .card-content p::before {
        content: "•" !important;
        color: #003d7a !important; /* 진한 파란색 */
        margin-right: 8px !important;
    }
    
    .card-content p {
        text-indent: -1em !important;
        padding-left: 1em !important;
    }
    
    /* 데스크톱에서도 strong 태그 색상을 section-title과 동일하게 */
    .card-content strong {
        color: var(--primary-color) !important; /* section-title과 동일한 색상 */
        font-weight: 600 !important;
    }
}
