@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700;900&display=swap');

:root {
    --primary-color: #1A237E; /* Deep Navy */
    --secondary-color: #8BC34A; /* Logo Green */
    --accent-color: #2E7D32; /* Darker Green */
    --text-main: #333333;
    --text-muted: #666666;
    --bg-light: #F9FAFB;
    --border-color: #E5E7EB;
    --white: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    background-color: #D1D5DB;
    color: var(--text-main);
    line-height: 1.6;
    padding: 40px 0;
}

/* Page Setup */
.page {
    width: 210mm;
    min-height: 297mm;
    padding: 20mm;
    margin: 0 auto 40px auto;
    background: var(--white);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    position: relative;
    display: flex;
    flex-direction: column;
}

@media print {
    @page {
        margin: 0;
        size: A4 portrait;
    }
    body {
        background: none;
        padding: 0;
        margin: 0;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    .page {
        margin: 0 !important;
        box-shadow: none !important;
        width: 100% !important;
        overflow: visible !important;
        padding: 40px !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
        position: relative;
        page-break-after: auto !important; /* Allow natural page breaks */
    }
    .watermark {
        opacity: 0.1 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    /* Ensure no clipping for image heavy slides */
    .intro-container {
        gap: 10px;
    }
    .card, .section, .phase-item, .intro-frame, .profile-grid, .summary-box {
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }
}

/* Header & Logo */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 60px;
    width: auto;
}

.company-info-header {
    text-align: right;
}

.company-info-header h1 {
    font-size: 24px;
    font-weight: 900;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.document-type {
    font-size: 14px;
    color: var(--secondary-color);
    font-weight: 700;
    text-transform: uppercase;
}

/* Section Styling */
.section {
    margin-bottom: 30px;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    border-left: 5px solid var(--secondary-color);
    padding-left: 12px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Company Profile Table */
.profile-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    background: var(--bg-light);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.profile-item {
    display: flex;
    border-bottom: 1px solid #E5E7EB;
    padding: 8px 0;
}

.profile-label {
    width: 120px;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 13px;
}

.profile-value {
    flex: 1;
    font-size: 13px;
    color: var(--text-main);
}

/* Service Summary */
.summary-box {
    background: linear-gradient(135deg, var(--primary-color) 0%, #283593 100%);
    color: var(--white);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.summary-box h2 {
    font-size: 20px;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 10px;
}

.summary-text {
    font-size: 15px;
    font-weight: 300;
    line-height: 1.7;
}

/* Detailed Points (Card Style) */
.content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 18px;
    background: var(--white);
}

.card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-title .number {
    background: var(--secondary-color);
    color: var(--white);
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 12px;
}

.card-body {
    font-size: 13.5px;
    color: var(--text-main);
    white-space: pre-line;
}

.highlight-box {
    background: rgba(139, 195, 74, 0.1);
    border-left: 4px solid var(--secondary-color);
    padding: 10px 15px;
    margin-top: 10px;
    font-size: 13px;
    font-style: italic;
}

/* Milestone Styling */
.milestone-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
    padding: 10px 0;
}

.phase-item {
    position: relative;
    padding-left: 35px;
    border-left: 2px dashed var(--border-color);
}

.phase-item::before {
    content: '';
    position: absolute;
    left: -9px;
    top: 5px;
    width: 16px;
    height: 16px;
    background: var(--white);
    border: 3px solid var(--secondary-color);
    border-radius: 50%;
}

.phase-item.completed::before {
    background: var(--secondary-color);
}

.phase-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.phase-title {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 15px;
}

.phase-badge {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 20px;
    background: #E8F5E9;
    color: var(--accent-color);
    font-weight: 700;
}

.phase-date {
    font-size: 12px;
    color: var(--text-muted);
}

.phase-content {
    background: var(--bg-light);
    padding: 15px;
    border-radius: 6px;
    font-size: 13px;
}

.phase-content ul {
    list-style: none;
}

.phase-content li {
    margin-bottom: 8px;
    padding-left: 15px;
    position: relative;
}

.phase-content li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
}

/* Footer */
.footer {
    margin-top: auto;
    padding-top: 30px;
    text-align: center;
    font-size: 11px;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
}

.watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    font-size: 120px;
    color: rgba(229, 231, 235, 0.2);
    font-weight: 900;
    z-index: -1;
    white-space: nowrap;
    pointer-events: none;
}

/* Narrative Section */
.narrative-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 30px;
    margin-bottom: 40px;
}

.narrative-card {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stat-header {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 10px;
    text-transform: uppercase;
}

.stat-value {
    font-size: 36px;
    font-weight: 900;
    color: var(--primary-color);
    line-height: 1.1;
    margin-bottom: 15px;
}

.stat-desc {
    font-size: 14px;
    color: var(--text-main);
    line-height: 1.5;
}

.chart-placeholder {
    width: 100%;
    height: 180px;
    background: var(--white);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 20px;
    gap: 15px;
}

.chart-bar {
    flex: 1;
    background: var(--secondary-color);
    border-radius: 4px 4px 0 0;
    position: relative;
    transition: height 1s ease;
}

.chart-bar::after {
    content: attr(data-label);
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    color: var(--text-muted);
    white-space: nowrap;
}

.chart-bar::before {
    content: attr(data-value);
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    font-weight: 700;
    color: var(--primary-color);
}

.problem-narrative {
    margin-top: 20px;
    padding: 25px;
    background: #FFF9C4; /* Light Yellow Warning */
    border-radius: 12px;
    border-left: 6px solid #FBC02D;
}

.problem-narrative h3 {
    color: #827717;
    margin-bottom: 15px;
    font-size: 18px;
}

.gap-container {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 20px 0;
    position: relative;
}

.gap-item {
    text-align: center;
    z-index: 1;
}

.gap-item i {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.gap-arrow {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #E53935;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 5px;
    opacity: 0.8;
}

.solution-badge {
    display: inline-block;
    padding: 5px 15px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 5px;
    font-weight: 700;
    margin-bottom: 15px;
}

/* Intro Slides Section */
.intro-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 10px;
}

.intro-frame {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.intro-frame img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.intro-caption {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-color);
    padding: 10px 15px;
    border-left: 3px solid var(--secondary-color);
    margin-bottom: 10px;
}
/* Cover Page Specific Styling */
.cover-page {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, var(--white) 0%, #f0f4f8 100%);
    border-top: 10px solid var(--primary-color);
}

.cover-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.cover-logo img {
    height: 120px;
    width: auto;
    margin-bottom: 40px;
}

.cover-title h1 {
    font-size: 72px;
    font-weight: 900;
    color: var(--primary-color);
    letter-spacing: 6px;
    margin-bottom: 5px;
}

.line-separator {
    width: 60px;
    height: 5px;
    background: var(--secondary-color);
    margin: 25px auto;
}

.cover-title h2 {
    font-size: 26px;
    font-weight: 700;
    color: #5C6BC0;
    letter-spacing: 4px;
    margin-bottom: 20px;
}

.cover-title p {
    font-size: 22px;
    font-weight: 500;
    color: var(--primary-color);
    background: rgba(139, 195, 74, 0.1);
    padding: 8px 25px;
    border-radius: 30px;
}

.cover-footer {
    padding-bottom: 20px;
    font-size: 15px;
    color: var(--text-muted);
    font-weight: 500;
}
