
/* ==========================================
   MODERN RESUME - PREMIUM TWO COLUMN LAYOUT
   Classic and Minimal are not affected
========================================== */

.template-modern {
    background: #ffffff;
    color: #243247;
    font-family: Arial, Helvetica, sans-serif;
}

.template-modern .modern-resume {
    width: 100%;
    min-height: 297mm;
    background: #ffffff;
}

/* HEADER */

.template-modern .modern-header {
    background: #17251f;
    padding: 32px 30px;
    border-bottom: 5px solid #35b6a5;
}

.template-modern .modern-header-content {
    display: flex;
    align-items: center;
    gap: 22px;
}

.template-modern .modern-photo {
    width: 105px;
    height: 105px;
    object-fit: cover;
    border-radius: 14px;
    border: 3px solid #ffffff;
    flex-shrink: 0;
}

.template-modern .modern-identity h1 {
    color: #ffffff;
    font-size: 30px;
    font-weight: 800;
    line-height: 1.2;
    margin: 0;
    overflow-wrap: anywhere;
}

.template-modern .modern-identity p {
    color: #8de0d2;
    font-size: 14px;
    font-weight: 700;
    margin: 9px 0 0;
}

/* TWO COLUMN BODY */

.template-modern .modern-layout {
    display: grid;
    grid-template-columns: 32% 68%;
    min-height: 245mm;
}

/* LEFT SIDEBAR */

.template-modern .modern-sidebar {
    background: #edf3f7;
    padding: 27px 20px;
    overflow-wrap: anywhere;
}

.template-modern .modern-sidebar-section {
    margin-bottom: 27px;
}

.template-modern .modern-sidebar-section h2 {
    font-size: 12px;
    font-weight: 800;
    color: #173653;
    letter-spacing: 1.3px;
    padding-bottom: 8px;
    border-bottom: 2px solid #35a99c;
    margin: 0 0 13px;
}

.template-modern .modern-contact-item {
    color: #42566b;
    font-size: 10px;
    line-height: 1.7;
    margin-bottom: 9px;
    overflow-wrap: anywhere;
}

.template-modern .modern-skill-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.template-modern .modern-skill-list span {
    display: block;
    font-size: 10px;
    color: #25445d;
    background: #ffffff;
    border-left: 3px solid #35a99c;
    border-radius: 4px;
    padding: 7px 9px;
    font-weight: 700;
}

.template-modern .modern-sidebar-item {
    margin-bottom: 14px;
}

.template-modern .modern-sidebar-item strong {
    display: block;
    color: #29465e;
    font-size: 11px;
    line-height: 1.5;
}

.template-modern .modern-sidebar-item small {
    display: block;
    color: #718294;
    font-size: 10px;
    margin-top: 4px;
    line-height: 1.5;
}

/* RIGHT MAIN CONTENT */

.template-modern .modern-main {
    padding: 28px 27px;
    min-width: 0;
}

.template-modern .modern-main-section {
    margin-bottom: 25px;
    break-inside: auto;
}

.template-modern .modern-main-section h2 {
    color: #167c78;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.4px;
    border-bottom: 2px solid #dce9e9;
    padding-bottom: 8px;
    margin: 0 0 15px;
}

.template-modern .modern-main-section > p {
    font-size: 11px;
    color: #526174;
    line-height: 1.85;
    margin: 0;
    overflow-wrap: anywhere;
}

/* TIMELINE ITEMS */

.template-modern .modern-timeline-item {
    position: relative;
    padding: 0 0 17px 15px;
    margin-bottom: 12px;
    border-left: 2px solid #d2e5e3;
    break-inside: avoid;
}

.template-modern .modern-timeline-item::before {
    content: "";
    position: absolute;
    left: -6px;
    top: 2px;
    width: 10px;
    height: 10px;
    background: #35a99c;
    border: 2px solid #ffffff;
    border-radius: 50%;
}

.template-modern .modern-timeline-item strong {
    display: block;
    color: #233e57;
    font-size: 12px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.template-modern .modern-meta {
    font-size: 10px;
    color: #526e82;
    margin-top: 4px;
    line-height: 1.6;
}

.template-modern .modern-date {
    color: #16877f;
    font-size: 10px;
    font-weight: 700;
    margin-top: 4px;
}

.template-modern .modern-timeline-item p {
    font-size: 10.5px;
    color: #586779;
    line-height: 1.75;
    margin: 8px 0 0;
    overflow-wrap: anywhere;
}

.template-modern .modern-project-url {
    color: #16877f;
    font-size: 10px;
    margin-top: 7px;
    overflow-wrap: anywhere;
}

/* RESPONSIVE PREVIEW */

@media screen and (max-width: 650px) {
    .template-modern .modern-header {
        padding: 23px 17px;
    }

    .template-modern .modern-photo {
        width: 75px;
        height: 75px;
    }

    .template-modern .modern-identity h1 {
        font-size: 21px;
    }

    .template-modern .modern-layout {
        grid-template-columns: 1fr;
    }

    .template-modern .modern-sidebar {
        padding: 20px;
    }

    .template-modern .modern-main {
        padding: 22px 20px;
    }

    .template-modern .modern-skill-list {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

/* PRINT / PDF */

@media print {
    .template-modern {
        width: 210mm;
        max-width: none;
    }

    .template-modern .modern-header,
    .template-modern .modern-sidebar,
    .template-modern .modern-skill-list span {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .template-modern .modern-layout {
        grid-template-columns: 32% 68%;
    }

    .template-modern .modern-timeline-item {
        break-inside: avoid;
    }
}
