/* ============================================
   DevResume-inspired Theme
   Clean, ATS-friendly, single-page resume
   Font: Roboto | No tables | No images
   ============================================ */

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: "Roboto", sans-serif;
    font-size: 11pt;
    color: #3B4045;
    line-height: 1.55;
    background-color: #f0f2f5;
    margin: 0;
    padding: 0;
    text-align: justify;
    -webkit-font-smoothing: antialiased;
}

a {
    color: #2d7bb7;
    text-decoration: none;
}

a:hover {
    color: #1a5c8f;
    text-decoration: underline;
}

hr {
    border: none;
    border-top: 1px solid #dee2e6;
    margin: 1rem 0;
}

strong {
    font-weight: 700;
    color: #2C3345;
}

/* ---------- Layout ---------- */
.main-wrapper {
    padding: 2rem 1rem;
}

.container {
    max-width: 960px;
    margin: 0 auto;
}

.resume-wrapper {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 6px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

/* ---------- Header ---------- */
.resume-header {
    text-align: center;
    margin-bottom: 0.5rem;
}

.resume-header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.resume-title {
    text-align: left;
    flex: 1 1 60%;
}

.resume-name {
    font-size: 2.2rem;
    font-weight: 900;
    text-transform: uppercase;
    color: #1B365D;
    margin: 0 0 0.25rem 0;
    letter-spacing: 1px;
}

.resume-tagline {
    font-size: 1.1rem;
    font-weight: 300;
    color: #5A6C7D;
}

.resume-contact {
    text-align: right;
    flex: 1 1 35%;
}

.resume-contact ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.resume-contact li {
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
    color: #5A6C7D;
}

.resume-contact i {
    color: #1B365D;
    margin-right: 0.4rem;
    width: 1.1rem;
    text-align: center;
}

.resume-contact a {
    color: #5A6C7D;
}

.resume-contact a:hover {
    color: #1B365D;
}

/* ---------- Print-Only Elements ---------- */
.print-only {
    display: none !important;
}

/* ---------- Action Buttons ---------- */
.resume-actions {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.resume-actions button,
.resume-actions .btn-download {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.2rem;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    color: #fff;
    background-color: #1B365D;
    text-decoration: none;
}

.resume-actions button:hover,
.resume-actions .btn-download:hover {
    background-color: #142a4a;
    text-decoration: none;
    color: #fff;
}

/* ---------- Section Headings ---------- */
.resume-section-heading {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #1B365D;
    letter-spacing: 0.5px;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid #1B365D;
    margin: 0 0 0.75rem 0;
}

.resume-section-heading i {
    margin-right: 0.4rem;
    color: #4a8bbe;
}

/* ---------- Summary ---------- */
.resume-intro {
    padding: 0.25rem 0;
}

.resume-intro p {
    text-align: justify;
    margin: 0.5rem 0 0 0;
    color: #4a4f57;
    line-height: 1.6;
}

/* ---------- Skills Block ---------- */
.skills-block p {
    margin: 0.2rem 0;
    line-height: 1.55;
    font-size: 0.93rem;
}

/* ---------- Inline Skill Tags ---------- */
.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.5rem;
    padding: 0;
    list-style: none;
}

.skill-tags li {
    background: #e8f0f8;
    color: #1B365D;
    font-size: 0.78rem;
    font-weight: 500;
    padding: 0.15rem 0.55rem;
    border-radius: 3px;
    line-height: 1.4;
    white-space: nowrap;
}

/* ---------- Resume Body (Two Columns) ---------- */
.resume-body {
    display: flex;
    gap: 2rem;
}

.resume-main {
    flex: 1 1 65%;
    min-width: 0;
}

.resume-aside {
    flex: 0 0 30%;
    min-width: 0;
}

/* ---------- Resume Items (Experience) ---------- */
.resume-section {
    margin-bottom: 1.25rem;
}

.resume-item {
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eef1f5;
}

.resume-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.resume-item-header {
    margin-bottom: 0.5rem;
}

.resume-item-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #2C3345;
    margin: 0 0 0.15rem 0;
}

.resume-item-meta {
    font-size: 0.88rem;
    font-style: italic;
    color: #6c757d;
}

.resume-item-subheading {
    font-size: 0.88rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #4a8bbe;
    letter-spacing: 0.3px;
    margin: 0.6rem 0 0.25rem 0;
}

.resume-item ul,
.aside-list {
    padding-left: 1.2rem;
    margin: 0.25rem 0 0.5rem 0;
}

.resume-item li,
.aside-list li {
    margin-bottom: 0.35rem;
    line-height: 1.45;
    font-size: 0.93rem;
}

/* ---------- Aside Items (Education, Certs, etc.) ---------- */
.aside-item {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #eef1f5;
}

.aside-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.aside-item-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: #2C3345;
    margin-bottom: 0.15rem;
}

.aside-item-org {
    font-size: 0.88rem;
    color: #4a8bbe;
    font-weight: 500;
}

.aside-item-meta {
    font-size: 0.82rem;
    color: #8a9099;
    margin-top: 0.1rem;
}

.aside-item-desc {
    font-size: 0.82rem;
    line-height: 1.4;
    margin: 0.3rem 0 0 0;
    font-style: italic;
}

.aside-list {
    list-style: none;
    padding-left: 0;
}

.aside-list li {
    position: relative;
    padding-left: 0.9rem;
    font-size: 0.88rem;
}

.aside-list li::before {
    content: "\2022";
    color: #4a8bbe;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* ---------- Footer ---------- */
.resume-footer {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding-top: 0.5rem;
}

.resume-footer a {
    color: #6c757d;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.resume-footer a:hover {
    color: #1B365D;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .resume-wrapper {
        padding: 1.5rem;
    }

    .resume-header-inner {
        flex-direction: column;
        text-align: center;
    }

    .resume-title {
        text-align: center;
    }

    .resume-contact {
        text-align: center;
        margin-top: 0.75rem;
    }

    .resume-body {
        flex-direction: column;
    }

    .resume-aside {
        flex: 1 1 100%;
    }
}

/* ---------- Print ---------- */
@media print {
    @page {
        size: Letter;
        margin: 0.4in 0.5in;
    }

    body {
        background: white;
        font-size: 8.5pt;
        color: #000;
        line-height: 1.3;
    }

    .main-wrapper {
        padding: 0;
    }

    .resume-wrapper {
        box-shadow: none;
        padding: 0;
        border-radius: 0;
    }

    .resume-name {
        font-size: 1.5rem;
    }

    .resume-tagline {
        font-size: 0.9rem;
    }

    .resume-section-heading {
        font-size: 0.85rem;
        border-bottom-color: #1B365D;
        margin-bottom: 0.4rem;
        padding-bottom: 0.2rem;
    }

    .resume-section {
        margin-bottom: 0.6rem;
    }

    .resume-intro p {
        font-size: 0.85rem;
        line-height: 1.35;
        margin: 0.25rem 0 0 0;
    }

    hr {
        margin: 0.4rem 0;
        border-top-color: #ccc;
    }

    /* KEEP two-column layout in print */
    .resume-body {
        display: flex;
        gap: 1.2rem;
    }

    .resume-main {
        flex: 1 1 65%;
    }

    .resume-aside {
        flex: 0 0 30%;
    }

    .resume-item {
        margin-bottom: 0.6rem;
        padding-bottom: 0.5rem;
    }

    .resume-item-title {
        font-size: 0.88rem;
    }

    .resume-item-meta {
        font-size: 0.78rem;
    }

    .resume-item-subheading {
        font-size: 0.78rem;
        margin: 0.3rem 0 0.15rem 0;
    }

    .resume-item li,
    .aside-list li,
    .skills-block p {
        font-size: 0.8rem;
        line-height: 1.3;
        margin-bottom: 0.15rem;
    }

    .skill-tags {
        gap: 0.2rem;
        margin-top: 0.3rem;
    }

    .skill-tags li {
        font-size: 0.68rem;
        padding: 0.1rem 0.4rem;
    }

    .resume-item ul,
    .aside-list {
        margin: 0.15rem 0 0.3rem 0;
        padding-left: 1rem;
    }

    .aside-item {
        margin-bottom: 0.5rem;
        padding-bottom: 0.4rem;
    }

    .aside-item-title {
        font-size: 0.82rem;
    }

    .aside-item-org {
        font-size: 0.78rem;
    }

    .aside-item-meta {
        font-size: 0.72rem;
    }

    .resume-contact li {
        font-size: 0.8rem;
        margin-bottom: 0.2rem;
    }

    a {
        color: #000 !important;
    }

    .no-print,
    .no-print * {
        display: none !important;
    }

    .print-only {
        display: list-item !important;
    }
}
