* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
    font-family: "Arial", "Helvetica", sans-serif, solaimanlipi;
    margin: 0;
    padding: 30px 0 40px;
    min-height: 100vh;
}

.container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 0 15px;
}

.cv-wrapper {
    background: #fff;
    width: 210mm;
    min-height: 297mm;
    padding: 10mm;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
    margin: 0 auto;
    box-sizing: border-box;
    position: relative;
}

/* A4 Paper Border Effect */
.cv-wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid #e5e7eb;
    pointer-events: none;
    box-sizing: border-box;
}

/* Ensure content stays within A4 boundaries */
#cv-area {
    overflow: visible;
}

/* Additional styling for professional look */
.cv-wrapper {
    line-height: 1.5;
    color: #1f2937;
}

.cv-wrapper h1,
.cv-wrapper h2,
.cv-wrapper h3,
.cv-wrapper h4,
.cv-wrapper h5,
.cv-wrapper h6 {
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.text-muted {
    color: #6b7280 !important;
    font-size: 12px;
}

.cv-header {
    border-bottom: 2px solid #3f4e5e;
    padding-bottom: 8px;
    margin-bottom: 10px;
}

.profile-img {
    width: 105px;
    height: 105px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #3f4e5e;
}

.section {
    margin-bottom: 10px;
    page-break-inside: avoid;
}

.section:last-child {
    margin-bottom: 0;
}

.section-title {
    background: #3f4e5e;
    color: #fff;
    padding: 0px 5px;
    font-size: 11px;
    font-weight: bold;
    margin-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 2px;
}
.small {
    font-size: 12.5px;
    line-height: 1.4;
}
.reference p {
    font-size: 12.5px;
    line-height: 1.3;
    margin-bottom: 3px;
    color: black;
}

ul {
    padding-left: 18px;
    margin-bottom: 0;
    list-style-type: disc;
}

ul li {
    margin-bottom: 2px;
    line-height: 1.4;
}

p {
    margin-bottom: 8px;
}

strong {
    font-weight: 600;
    color: #1f2937;
}

/* Print Styles */
@media print {
    @page {
        size: A4;
        margin: 0;
    }

    body {
        background: white;
        padding: 0;
        margin: 0;
    }

    .container {
        padding: 0;
        min-height: auto;
    }

    .cv-wrapper {
        width: 210mm;
        min-height: 297mm;
        box-shadow: none;
        margin: 0;
        page-break-after: avoid;
    }

    .cv-wrapper::before {
        display: none;
    }

    .no-print {
        display: none !important;
    }

    .section {
        page-break-inside: avoid;
    }
}

/* Responsive - Scale down on smaller screens while maintaining A4 aspect ratio */
@media (max-width: 992px) {
    .cv-wrapper {
        width: 100%;
        max-width: 210mm;
        min-height: auto;
        padding: 15mm;
    }
}

@media (max-width: 768px) {
    body {
        padding: 15px 0;
    }

    .container {
        padding: 0 10px;
    }

    .cv-wrapper {
        width: 100%;
        padding: 12mm;
    }

    .name {
        font-size: 18px;
    }

    .contact-info {
        font-size: 11px;
    }

    .cv-header {
        gap: 12px;
    }

    .profile-img {
        width: 95px;
        height: 95px;
    }
}

@media (max-width: 576px) {
    body {
        padding: 10px 0;
    }

    .container {
        padding: 5px;
    }

    .cv-wrapper {
        width: 100%;
        padding: 8mm;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    }

    .cv-header {
        gap: 10px;
    }

    .profile-img {
        width: 85px;
        height: 85px;
    }

    .name {
        font-size: 16px;
    }

    .contact-info {
        font-size: 10px;
    }

    .section-title {
        font-size: 11px;
        padding: 3px 8px;
    }

    .small {
        font-size: 11px;
    }

    table {
        font-size: 10px;
    }

    .no-print .btn {
        padding: 8px 18px;
        font-size: 13px;
    }

    .no-print .btn i {
        font-size: 14px;
    }
}

.no-print {
    display: block;
}

table {
    font-size: 12px;
}

.table td,
.table th {
    padding: 3px 5px !important;
    vertical-align: middle;
    line-height: 1.3;
}

.table-bordered {
    border-color: #3f4e5e !important;
}

.table-bordered td,
.table-bordered th {
    border-color: #3f4e5e !important;
}

.table-borderless td {
    padding: 2px 4px !important;
}

.photo-box {
    flex-shrink: 0;
}

.info-box {
    line-height: 1.3;
    flex: 1;
    /* padding-left: 20px; */
}

.name {
    margin: 0;
    font-size: 20px;
    font-weight: bold;
    color: #1f2937;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-info {
    margin: 4px 0 0;
    font-size: 12px;
    line-height: 1.5;
    color: #4b5563;
}

/* Download Button Styling */
.no-print {
    margin: 25px 0 20px;
    padding: 0;
}

.no-print .btn {
    /* padding: 10px 28px; */
    font-size: 14px;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    text-decoration: none;
    color: white;
}

.no-print .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
    color: white;
}

.no-print .btn:active {
    transform: translateY(0);
}

.no-print .btn i {
    font-size: 16px;
}

.btn-downlaod {
    padding: 4px 22px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-downlaod {
    background-color: #2e3544;
    color: #ffffff;
}

.btn-downlaod e:hover {
    background-color: #2b3242;
}
