* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
}

.container {
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    border-left: 4px solid #0073b1; /* LinkedIn blue left border */
}

.container-header, .container-footer {
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background-color: #333;
    color: #fff;
    padding: 20px 0;
    text-align: center;
}

header h1 {
    font-size: 36px;
}

header p {
    font-size: 20px;
    margin-top: 5px;
}

section {
    padding: 30px 0;
}

h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

.sub-container {
    border: 1px solid #ccc; /* Thin border */
    padding: 15px;
    margin-bottom: 15px; /* Space between jobs */
    background-color: #f9f9f9; /* Light background */
    border-radius: 8px; /* Soft rounded corners */
}

.job, .degree {
    margin-bottom: 30px;
}

.job h3, .degree h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.technical-experience {
    margin-top: 10px;
    padding: 10px;
    background: #eef6ff; /* Light blue background for contrast */
    border-radius: 5px;
}

.technical-experience h4 {
    margin-bottom: 5px;
    font-size: 1rem;
}

.date {
    font-size: 14px;
    color: #888;
}

ul {
    list-style-type: none;
    padding-left: 0;
}

ul li {
    margin-bottom: 5px;
}

ul li::before {
    content: "• ";
    color: #333;
}

.skills ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skills li {
    background-color: #ddd;
    padding: 10px;
    border-radius: 5px;
    flex: 1;
    min-width: 150px;
}

.contact p {
    font-size: 18px;
}

footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 10px 0;
    margin-top: 40px;
}

/* Styling links in the education section */
.education a {
    color: #0077b6;
    text-decoration: none;
    font-weight: 500;
}

.education a:hover {
    text-decoration: underline;
    color: #005f8d;
    transition: color 0.3s ease;
}

.profile-photo {
    width: 150px; /* Adjust size as needed */
    height: 150px;
    border-radius: 50%; /* Makes it circular */
    object-fit: cover; /* Ensures it fills the circle properly */
    border: 3px solid #ffffff; /* Optional: adds a white border */
    display: block;
    margin: 0 auto 15px; /* Centers the image and adds spacing */
}

@media print {
    .page {
        page-break-before: auto;
        page-break-inside: avoid;
        page-break-after: auto;
    }

    .page:last-child {
        page-break-after: auto;
    }

    .sub-container {
        page-break-inside: avoid;
    }

    body {
        background: none;
    }
    
    .container {
        width: 80%;
        max-width: 1200px;
        margin: 0 auto;
        padding: 20px;
        border-left: 0px solid #0073b1; /* LinkedIn blue left border */
    }

    .download-btn {
        display: none;
    }

    footer {
        margin-bottom: 0;
        padding-bottom: 0;
    }

    header, footer {
        page-break-inside: avoid;
    }
}

/* Style the download button */
.download-btn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 5px;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s;
}

.download-btn:hover {
    background-color: #0056b3; /* Darker blue on hover */
}
