﻿body {
    font-family: "Helvetica Neue", Helvetica, Arial, "Inter", sans-serif;
}


.body-div {
    display: flex;
    justify-content: center;
}

.outer-frame {
    background: white;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.navy-border {
    border: 35px solid;
    border-image: linear-gradient( to bottom, #023173, #1b4581 ) 1;
    background: white;
    padding: 0;
}

.gold-border {
    border: 8px solid;
    border-image: linear-gradient( to bottom, #FFE08A,#E0AE2F,#F9D76B, #F5C542) 1;
    background: repeating-linear-gradient( 135deg, #ffffff, #ffffff 18px, #f3f3f3 19px, #ffffff 20px );
    padding: 50px 40px;
    max-width: 800px;
}

.logo-section {
    text-align: center;
    margin-bottom: 40px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.logo-icon {
    width: auto;
    height: 100px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.logo-text {
    font-size: 72px;
    font-weight: bold;
    color: #023173;
    letter-spacing: 8px;
}

.main-title {
    font-size: 38px;
    font-weight: 800;
    color: #023173;
    text-align: center;
    margin: 10px 0 10px 0;
    white-space: nowrap;
    letter-spacing: -1px;
}

.scope-section {
    text-align: center;
    margin-bottom: 30px;
}

.scope-title {
    font-size: 23px;
    color: #023173;
}

.scope-content {
    font-size: 23px;
    color: #023173;
    font-weight: 500;
    max-width: 550px;
    letter-spacing: -0.02em;
    margin: 0 auto;
    text-align: center;
    height: 92px !important;
}

.company-section {
    text-align: center;
    margin-bottom: 20px;
}

.company-name {
    font-size: 38px;
    font-weight: 800;
    color: #023173;
    letter-spacing: -2px;
}

.owner-name {
    font-size: 24px;
    color: #023173;
}

.certification-text {
    font-size: 20px;
    color: black;
    font-weight: 500;
    margin: 0 auto;
    letter-spacing: -0.02em;
    text-align: center;
    max-width: 550px;
    height: 72px !important;
}

.bottom-section {
    position: relative;
}

.dates {
    font-size: 12px;
    color: black;
}

    .dates p {
        display: grid;
        grid-template-columns: 150px auto;
        margin: 4px 0;
    }

    .dates .label {
        font-weight: 600;
    }

.signature-section {
    position: relative; /* referans alan */
    text-align: center;
    margin-top: 30px;
}

.signature-image {
    position: absolute;
    top: 15px; /* yukarı taşı */
    left: 50%;
    transform: translateX(-50%);
    height: 100px;
    width: 100px;
    z-index: 2; /* divlerin üstünde */
}

.signature-name {
    font-size: 16px;
    font-weight: 500;
    color: black;
    margin-top: 40px; /* resim için boşluk */
}

.signature-title {
    font-size: 16px;
    font-weight: 500;
    color: black;
}


.cfd-logo {
    width: auto;
    height: 120px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

    .cfd-logo::after {
        display: none;
    }

.divider {
    width: 70%;
    height: 2px;
    margin: 0 auto;
    background: linear-gradient( to right, transparent 0%, rgba(31,63,255,0.3) 10%, #023173 50%, rgba(31,63,255,0.3) 90%, transparent 100% );
}

.a4 {
    width: 210mm;
    height: 297mm;
    background: white;
    padding: 20mm;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    box-sizing: border-box;
}



.download-section {
    text-align: center;
    margin-bottom: 20px;
    margin-top: 20px;
}

.download-btn {
    background: linear-gradient(135deg, #0b2c4d, #133e6d);
    color: #fff;
    border: none;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
    transition: all 0.25s ease;
}

    .download-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
        background: linear-gradient(135deg, #133e6d, #0b2c4d);
    }

    .download-btn:active {
        transform: translateY(0);
    }

.download-icon {
    font-size: 18px;
}

@media print {
    @page {
        size: A4 portrait;
        margin: 0;
    }

    html, body {
        margin: 0;
        padding: 0;
        width: 100%;
        height: 100%;
    }

    .outer-frame {
        width: 100%;
        height: 100%;
        margin: 0;
        padding-top: 10px;
        padding-left: 10px;
        padding-right: 10px;
        padding-bottom: 0;
        overflow: hidden;
        box-sizing: border-box;
    }

    .no-print {
        display: none !important;
    }

    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
}


/* Responsive scale for mobile devices */
@media (max-width: 768px) {
    .outer-frame {
        width: 900px; /* tasarımın gerçek genişliği */
        transform: scale(calc(100vw / 1020));
        transform-origin: top center;
    }
}

@media (max-width: 768px) {
    .main-title {
        white-space: normal;
    }
}

@media (max-width: 768px) {
    .logo-icon {
        height: 60px;
    }
}

@media (max-width: 420px) {
    .outer-frame {
        transform: scale(calc(100vw / 1080));
    }
}