/* Original styles */
div.frame {
    margin: 2.5%;
    font-family: Helvetica;
}

div.grid-2c {
    display: grid;
    column-gap: 5%;
    grid-template-columns: 50% 50%;
    align-items: start;
}

div.grid-2ca {
    display: grid;
    column-gap: 1%;
    grid-template-areas: "left left right right";
    align-items: start;
}

.grid-al {
    padding: 1%;
    grid-area: left;
    border-right: 3px solid;
}
.grid-ar {
    padding: 1%;
    grid-area: right;
}

h1.name {
    text-align: left;
    color: rgba(35, 155, 86);
    font-size: x-large;
    margin: 0px;
}

h2.det {
    text-align: left;
    font-size: medium;
    margin-top: 0.5rem;
}
h2 {
    text-align: left;
    font-size: large;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

h3 {
    font-size: medium;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.time-range {
    font-size: smaller;
    font-weight: bold;
    margin-top: 0.25rem;
    margin-bottom: 0.05rem;
    padding-left: 0.5em;
}

.pr-detail {
    font-size: small;
}

p.pr-detail {
    margin-left: 0.5em;
}

.contact {
    font-size: smaller;
}

hr.solid {
    border-top: 3px solid;
}
hr.solid_l {
    border-top: 1px solid;
}

p {
    font-size: small;
}

li {
    font-size: small;
}

/* Print styles */
@media print {
    html,
    body {
        width: 210mm;
        min-height: 297mm;
        max-width: 210mm;
        margin: 0;
        padding: 0;
        background: white !important;
        color: black !important;
        font-size: 10pt;
    }
    .a4-print {
        width: 190mm !important;
        margin: 0 !important;
        padding: 0 !important;
        box-shadow: none !important;
        background: white !important;
    }
    header,
    main,
    section,
    aside,
    .break-inside,
    .resume-block,
    li {
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }
    .print-shadow-none {
        box-shadow: none !important;
    }
    .print\:text-xs {
        font-size: 10px !important;
    }
    .print\:space-y-1 > :not([hidden]) ~ :not([hidden]) {
        margin-top: 0.25rem !important;
    }
}

/* Profile image styles */
.profile-image {
    transition: opacity 0.3s ease-in-out;
    width: 180px !important;
    height: 100% !important;
    min-height: 200px !important;
    object-fit: cover;
}

.profile-image.hidden {
    opacity: 0;
}

/* Header layout adjustments */
.header-layout {
    display: flex;
    align-items: stretch;
    gap: 2rem;
    margin-bottom: 1.5rem;
    min-height: 200px;
}

.profile-section {
    flex-shrink: 0;
    display: flex;
    align-items: stretch;
}

.info-section {
    flex-grow: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-section {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: flex-end;
    align-items: flex-end;
}

.contact-section p {
    margin: 0;
    flex-shrink: 0;
}

@media print {
    .profile-image {
        width: 120px !important;
        height: 100% !important;
        min-height: 140px !important;
    }

    .header-layout {
        gap: 1rem;
        margin-bottom: 0.75rem;
        min-height: 140px;
    }

    .contact-section {
        gap: 0.5rem;
    }
}
