body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background-color: #f8fafc;
    margin: 0;
    padding: 0;
    color: #222831;
}

header {
    background: linear-gradient(90deg, #4b9988 0%, #6c5b7b 100%);
    color: #fff;
    padding: 32px 0 24px 0;
    text-align: center;
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.08);
    position: relative;
}

.menu-icon {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 30px;
    cursor: pointer;
}

nav {
    margin-top: 20px;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

nav ul li {
    margin: 10px 0;
}

nav ul li a {
    color: #ffffff;
    text-decoration: none;
}

.hidden {
    display: none;
}

h1, h2, h3 {
    margin: 0 0 16px 0;
    font-weight: 600;
}

h2, h3 {
    color: #4b9988;
    border-left: 4px solid #6c5b7b;
    padding-left: 12px;
    margin-top: 32px;
}

main {
    max-width: 900px;
    margin: 32px auto;
    padding: 0 20px;
}

section {
    background: #fff;
    margin-bottom: 32px;
    padding: 28px 24px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(44, 62, 80, 0.07);
    transition: box-shadow 0.2s;
}

section:hover {
    box-shadow: 0 4px 20px rgba(44, 62, 80, 0.13);
}

#bio {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.profile-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #4b9988;
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.10);
    margin-bottom: 0;
}

/* Education section styling */
#education .education-item {
    border-left: 3px solid #4b9988;
    padding-left: 20px;
    margin-bottom: 24px;
}

#education .education-item h3 {
    color: #222831;
    font-size: 1.3em;
    margin-bottom: 8px;
    border-left: none;
    padding-left: 0;
    margin-top: 0;
}

#education .institution {
    color: #6c5b7b;
    font-weight: 600;
    font-size: 1.1em;
    margin-bottom: 4px;
}

#education .graduation-year {
    color: #666;
    font-style: italic;
    margin-bottom: 12px;
    font-size: 0.95em;
}

#education .description {
    color: #444;
    line-height: 1.6;
    margin-bottom: 0;
}

ul {
    padding-left: 24px;
}

a {
    color: #6c5b7b;
    text-decoration: none;
    transition: color 0.2s;
    word-break: break-all;
}

a:hover {
    color: #4b9988;
    text-decoration: underline;
}

footer {
    background: #222831;
    color: #fff;
    text-align: center;
    padding: 18px 0;
    margin-top: 40px;
    font-size: 1em;
    letter-spacing: 0.5px;
    box-shadow: 0 -2px 8px rgba(44, 62, 80, 0.08);
}

/* Dropdown submenu styles */
.has-submenu {
    position: relative;
}

.has-submenu > a:after {
    content: " ▼";
    font-size: 0.7em;
}

.submenu {
    display: none;
    position: static; /* Changed from absolute */
    left: auto;       /* Reset positioning */
    top: auto;        /* Reset positioning */
    background: transparent; /* Changed to transparent */
    padding: 0;
    margin: 10px 0 0 60px; /* Increased left margin for more indent */
    min-width: auto;  /* Auto width */
    border-radius: 4px; /* Subtle border radius */
    box-shadow: none; /* Remove shadow for inline appearance */
    z-index: auto;    /* Reset z-index */
}

.submenu li {
    margin: 5px 0; /* Smaller margins for compact look */
}

.submenu li a {
    color: rgba(255, 255, 255, 0.9); /* Slightly transparent white */
    padding: 8px 12px; /* Smaller padding */
    display: block;
    text-align: center; /* Changed from left to center */
    font-size: 0.9em; /* Slightly smaller font */
}

.submenu li a:hover {
    background: rgba(255, 255, 255, 0.1); /* Subtle hover effect */
    border-radius: 3px;
}

.has-submenu:hover .submenu,
.has-submenu:focus-within .submenu {
    display: block;
}

@media (max-width: 700px) {
    main {
        padding: 0 8px;
    }
    section {
        padding: 16px 8px;
    }
    #bio {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .profile-photo {
        width: 100px;
        height: 100px;
    }
    .submenu {
        margin-left: 20px; /* Adjusted indent for mobile */
    }
}