@media print {
    @page {
        size: A4 landscape;
        margin: 0;
    }

    html, body {
        width: 297mm;
        height: 210mm;
        margin: 0;
        padding: 0;
        background-color: #fff;
    }

    * {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .page {
        width: 297mm !important;
        height: 210mm !important;
        page-break-after: always;
        break-after: page;
        page-break-inside: avoid;
        margin: 0 !important;
        padding: 0 !important;
    }

    .page:last-child {
        page-break-after: auto;
        break-after: auto;
    }

    .a4-container {
        width: 297mm !important;
        height: 210mm !important;
        margin: 0 !important;
        box-shadow: none !important;
        transform: scale(1);
    }

    .top-title,
    .button-container {
        display: none !important;
    }

    th, td {
        padding: 10px !important;
    }

    .page6 table {
        width: 100%;
        table-layout: fixed;
    }

    .page6 colgroup col:nth-child(1) {
        width: 50px;
    }

    .page6 colgroup col:nth-child(2) {
        width: 300px;
    }

    .page6 colgroup col:nth-child(3) {
        width: auto;
    }
}

*{ box-sizing: border-box; }	
table {  border-collapse: separate; }
body {
    margin: 0;
    padding: 0;
    font-family: "Pretendard", sans-serif;
}
.best{font-size:46px !important}

.a4-container {
    width: 297mm;
    height: 210mm;
    background-color: #ffffff;
    position: relative;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}
.container{
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
}
.logo {
    width: 250px;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ffffff;
}
.watermark {
    position: absolute;
    top: 10px;
    right: 30px;
    font-size: 13px;
    color: rgba(44, 62, 80, 0.4);
    pointer-events: none;
    user-select: none;
}

.header {
    width:100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 32px;
    font-weight: bold;
    padding: 15px;
    background-color: #122253;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    text-align: center;
}

.footer {
    width:100%;
    padding: 15px;
    background-color: #122253;
    color: white;
    text-align: left;
    border-radius: 10px;
    font-size: 16px;
}
.footer div {
    margin: 5px 0;
    font-size: 14px;
}
.footer .icon {
    color: white;
    width: 20px;
    height: 20px;
    display: inline-block;
}
.page-number {
    position: absolute;
    bottom: 8px;
    left: 0px;
    font-size: 14px;
    color: #122253;
    width: 100%;
    text-align: center;
}
.date {
    position: absolute;
    bottom: 250px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 16px;
    color: #122253;
    width: 70%;
    text-align: center;
}

.footer .copyright {
    font-size: 10px;
    text-align: left;
}
.page{
    display: flex;
    background-color: #f9f9f9;
    justify-content: center;
    align-items: center;
    height: 900px;
    flex-direction: column;
}
.page5 table { margin-bottom: 10px;}

.logo-img{max-width:200px;}
.title {
    font-size: 26px;
    color: #fff;
    margin: 0;
    background-color: #122253;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
}
.amount {
    font-size: 36px;
    color: #d9534f;
    font-weight: bold;
    text-align: center;
}
.calculation {
    font-size: 20px;
    text-align: center;
    margin: 10px 0;
}

.page6 .basic-info{
    font-size:24px;
    margin:20px 0px;
}
.page6 .basic-info:first-child{
    margin-top:20px;
}
.best-wrap{
    padding:20px 0px;
}
.best-wrap .best{
    font-size:56px !important;
}
table {
    width: 100%;
    border-collapse: collapse;
}
th, td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: center;
}
tr:nth-child(odd) {
    background-color: #f9f9f9;
}
th br, td br {
    content: '';
    margin-bottom: 4px;
    display: block;
}

.page2 th,
.page3 th,
.page4 th {
    width:120px;
}

.page2 td,
.page3 td,
.page4 td {
    width:450px;
}

.page6 .col-1 {        width: 50px;    }
.page6 .col-2 {        width: 300px;    }
.page6 .col-3 {        width: auto;    }


th {
    background-color: #122253;
    color:#fff;
    font-weight: bold;
    padding: 10px;
    text-align: center;
    border: 1px solid #ddd;
    vertical-align: middle; 
}


.page5 table th {width:auto;}


.photo-placeholder {
    width: 100%;
    height: 230px;
    background-color: #f0f0f0;
    border: 1px dashed #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.highlight {
    font-weight: bold;
    color: #d9534f;
    font-size: 26px;
}
.basic-info {
    font-size: 18px;
    font-weight: bold;
    margin-top: 10px; 
    margin-bottom: 10px; 
    text-align: center;
}

.context {
    font-size: 16px;
    color: #000;
    line-height: 1.6;
    padding: 10px 20px;
    background-color: #f0f0f0; 
    border-radius: 8px;
    margin: 10px 0;
    text-align:left;
    text-shadow:none;
}


.page7 .context{
    margin:0px 0px;
    text-align:center;
    border-radius:0px;

}
.page7 .disclaimer{
    margin-top:0px;
    padding-bottom:10px;
    color:#000;
}
.footer-title {
    font-size: 24px;
    font-weight: bold;
    color: #f0f4ff;
}
.disclaimer {
    font-size: 14px;
    color: #cccccc;

    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.3); 
    text-align: center;
}
.button-container {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top:20px;
}
.button {
    padding: 1rem 2rem;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    background-color:#122253;
    color:#fff;
    font-weight:bold;
}
.button:hover {
    opacity: 0.7;
}

.content{
    background-color:#fff;
    width:100%;
}

.page1{padding-top:20px;}
.page7{padding-bottom:60px;}
.top-title{
    max-width:100%;
    width: 297mm;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 32px;
    font-weight: bold;
    background-color: #122253;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    text-align: center;
    padding:15px 0px; margin-bottom:10px;
}

@media (max-width: 768px) {


    .footer {        flex-direction: row;        flex-wrap: wrap;        justify-content: space-between;    }
    .best-wrap .best{font-size:36px !important;}
    .footer div {        flex: 1 1 30%;        margin-bottom: 10px;    }
    .copyright {
        flex: 1 1 100%;
        text-align: center;
    }
    .mobile-break {
        display: block;
        margin-top: 5px;
    }
    .logo img{max-width:150px;}
    .disclaimer{font-size:10px;}
    .highlight{font-size:16px;}
    .amount{font-size:24px;}
    .title{font-size:14px;}
    .watermark{right:10px; top:10px;}
    .photo-placeholder {height:150px;}
    .basic-info{font-size:12px;}
    .page6 .basic-info{font-size:18px;}
    .page6 .basic-info:first-child{margin-top:20px;}
    .page6 .col-1 {        width: 50px;    }
    .page6 .col-2 {        width: 170px;    }
    .page6 .col-3 {        width: auto;    }
    table{margin:10px 0px;}
    th{width:80px;}
    th, td{padding:4px; font-size:12px;}
    .page3 th, td{padding:4px; font-size:12px;}
    .page7 .header{top:30px;}
    .calculation{font-size:14px;}
    .footer{padding:10px;font-size:12px;}
    .footer-title{font-size:14px;}
    .a4-container {max-width:100%; padding:30px 15px;}
    .header{font-size:14px;}
    .button{padding:5px 10px;}
    .page{ padding:12px;}
    .context{font-size:12px;}
} 
