/* General Body Styles */
body {
    font-family: 'Merriweather', serif;
    line-height: 1.7;
    color: #333;
    background-color: #f8f9fa;
    margin: 0;
    padding: 20px;
}

/* Main Content Container */
.container {
    max-width: 850px;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Header and Navigation */
header {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 30px;
    margin-bottom: 40px;
    /* Remove text-align: center; as content will now flow around floated image */
    overflow: hidden; /* Clear the float */
}

/* NEW: Profile photo styling for Rohany-like layout */
.profile-photo {
    width: 150px; /* Adjust size as needed */
    height: 150px; /* Keep height same as width for perfect circle */
    border-radius: 50%;
    object-fit: cover;
    float: left; /* Make the image float to the left */
    margin-right: 30px; /* Space between photo and text */
    margin-bottom: 15px; /* Space below photo if text wraps */
    border: 3px solid #e9ecef;
}

h1 {
    font-family: 'Lato', sans-serif;
    font-size: 2.5em;
    color: #212529;
    margin-top: 0; /* Adjust margin to align with floated image */
    margin-bottom: 5px;
    /* text-align: left; - implicit due to float */
}

.subtitle {
    font-family: 'Lato', sans-serif;
    font-size: 1.1em;
    color: #6c757d;
    margin-top: 5px;
    margin-bottom: 20px;
    /* text-align: left; - implicit due to float */
}

nav ul {
    list-style: none;
    padding: 0;
    margin-top: 20px;
    display: flex;
    justify-content: flex-start; /* Aligns nav links to the left */
    flex-wrap: wrap;
    gap: 20px;
}

nav a {
    font-family: 'Lato', sans-serif;
    text-decoration: none;
    color: #0056b3;
    font-weight: bold;
    font-size: 0.9em;
    transition: color 0.2s;
}

nav a:hover {
    color: #003d82;
}

/* Section Styling */
section {
    margin-bottom: 40px;
}

h2 {
    font-family: 'Lato', sans-serif;
    font-size: 1.6em;
    color: #343a40;
    border-bottom: 2px solid #0056b3;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

p, ul {
    margin-bottom: 1em;
}

ul {
    padding-left: 20px;
}

li {
    margin-bottom: 0.5em;
}

/* Job Entry Styling */
.job-entry {
    margin-bottom: 25px;
}

.job-entry h3 {
    font-family: 'Lato', sans-serif;
    font-size: 1.2em;
    margin: 0;
    color: #212529;
}

.job-entry .meta {
    font-family: 'Lato', sans-serif;
    font-style: italic;
    color: #6c757d;
    margin: 5px 0;
}

/* CV Button */
.cv-button {
    display: inline-block;
    background-color: #0056b3;
    color: #ffffff;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-family: 'Lato', sans-serif;
    font-weight: bold;
    transition: background-color 0.2s;
    margin-top: 10px;
}

.cv-button:hover {
    background-color: #003d82;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
    color: #6c757d;
    font-size: 0.9em;
}

/* Responsive Design for Mobile */
@media (max-width: 768px) {
    .container {
        padding: 20px;
    }

    /* Adjust for mobile: Center everything and clear float */
    header {
        text-align: center;
    }

    .profile-photo {
        float: none; /* Remove float on small screens */
        margin: 0 auto 20px auto; /* Center image and add space below */
        display: block; /* Make it a block element to center */
    }
    
    h1, .subtitle, nav ul {
        text-align: center;
        justify-content: center; /* Center nav links for mobile */
    }
    
    h1 {
        font-size: 2em;
    }

    h2 {
        font-size: 1.4em;
    }
}
