/* General Body and Container Styles */
body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.5;
    margin: 0;
    padding: 20px 0; /* Add vertical padding for the overall page */
    background-color: #f4f4f4;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Align to the top of the container */
    min-height: 100vh; /* Ensure it takes at least full viewport height */
}

.container {
    width: 21cm; /* Standard A4 width for resume */
    min-height: 29.7cm; /* Standard A4 height */
    background-color: #fff;
    padding: 30px 40px; /* Adjust padding as seen in image */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    box-sizing: border-box; /* Include padding in width/height */
}

/* Header Styles */
.resume-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid #333; /* Darker border for header separation */
}

.resume-header h1 {
    font-family: 'Roboto Slab', serif; /* Use a serif font for the name like in the image */
    font-size: 2em;
    margin: 0;
    color: #333; /* Darker color for the name */
}

.resume-header p {
    margin: 5px 0;
    font-size: 0.95em;
    color: #555;
}

.resume-header .contact-info {
    font-size: 0.85em;
    color: #777;
    margin-top: 15px; /* Space above contact info */
}

/* Section Headings */
.section h2 {
    font-family: 'Roboto Slab', serif; /* Serif font for section titles */
    font-size: 1.2em;
    text-transform: uppercase;
    border-bottom: 2px solid #555; /* Thicker, slightly darker border below titles */
    padding-bottom: 5px;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #333;
}

/* Entry Styles (for Work Experience, Projects, etc.) */
.entry {
    margin-bottom: 15px;
}

.entry h3 {
    font-size: 1em;
    margin: 0 0 5px 0;
    font-weight: bold;
    display: flex; /* Use flexbox to align title and date/duration */
    justify-content: space-between;
    align-items: baseline;
}

.entry h3 .right-align {
    font-weight: normal; /* Make the date/duration not bold */
    font-style: italic; /* Italicize the date/duration */
    font-size: 0.9em; /* Slightly smaller for date/duration */
    white-space: nowrap; /* Prevent wrapping for date/duration */
    margin-left: 10px; /* Space between title and date */
}

.entry ul {
    list-style: disc; /* Bullet points */
    padding-left: 20px;
    margin: 0;
}

.entry ul li {
    margin-bottom: 15px;
    font-size: 0.95em;
}

/* Table-like Layouts (for Academic Details, Technical Skills) */
.table-like-header, .table-like-row {
    display: grid;
    grid-template-columns: 0.8fr 1.5fr 2fr 0.8fr; /* Adjust column widths as needed */
    gap: 10px;
    padding: 3px 0;
    font-size: 0.9em;
}

.table-like-header {
    font-weight: bold;
    border-bottom: 1px solid #ccc;
    margin-bottom: 5px;
}

.table-like-row {
    border-bottom: 1px dashed #eee; /* Lighter dashed line for rows */
}

.table-like-row:last-child {
    border-bottom: none; /* No border for the last row */
}

.col1, .col2, .col3, .col4 {
    word-wrap: break-word; /* Allow long text to wrap */
}

/* Specific styling for technical skills - single line */
.section h2 + .entry p { /* Targets paragraph immediately after h2 in a section */
    font-size: 0.95em;
    margin: 0;
}

/* Footer (for download button) */
.resume-footer {
    text-align: center;
    margin-top: 40px; /* More space above the footer */
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.download-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #009c37; /* A standard blue color */
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
}

.download-button:hover {
    background-color: #01ff63;
    color: #000;
}

.linkedin-button{
    border-radius: 5px;
    background-color: #0056b3;
    color: white;
    padding: 3px 2px;
}

.linkedin-button:hover{
    background-color: #69c1ed;
    color: black;
}

.github-button{
    border-radius: 5px;
    background-color: #000;
    color: white;
    padding: 3px 2px;
}

.github-button:hover{
    background-color: #656464;
    color: black;
}

.live-button{
    border-radius: 5px;
    background-color: rgb(2, 105, 22);
    color: #04ff75;
    padding: 3px 2px;
}

.live-button:hover{
    background-color: #04ff75;
    color: rgb(2, 105, 22);
}

/* Print Specific Styles */
@media print {
    body {
        background-color: #fff;
        padding: 0;
        margin: 0;
    }
    .container {
        box-shadow: none;
        width: 100%;
        min-height: auto;
        padding: 0;
    }
    .resume-footer {
        display: none; /* Hide the download button when printing */
    }
    /* Ensure borders and spacing are consistent in print */
    .resume-header, .section h2, .table-like-header {
        border-color: #000 !important; /* Ensure black borders for print clarity */
    }
}