/* Work Page */
 .back-button {
    margin-left: 10px;
    z-index: 10;
}

/* Widget Styles */
.widget {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* Safari specific prefix */
    border-radius: 1rem;
    width: 100%;
    height: 70px;
    display: flex;
    margin-top: -30px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden; 
    box-shadow: var(--icon-boxshadow)
}

.widget a {
    padding: 0;
}

.widget h2 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin: 1rem 0 0 20px;
    font-weight: bold;
    word-break: break-word;
}

.widget p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-left: 1.5rem;
}

/* Map Marker Design */
.map-marker {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transform: translate(-50%, -100%);
    backdrop-filter: blur(2px);
    z-index: 1;
}

/* Marker Title */
.map-marker .marker-title {
    color: var(--text-dark);
    background: var(--bg-glass);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px); /* Safari specific prefix */
    border-radius: 0.5rem;
    padding: 5px 12px;
    font-size: 0.9rem;
    margin-bottom: 5px;
    white-space: nowrap;
    box-shadow: var(--icon-boxshadow)
}

/* Marker Pin */
.map-marker .marker-pin {
    width: 15px;
    height: 15px;
    background-color: var(--error);
    border-radius: 50%;
    position: relative;
    transition: transform 0.2s ease;
    box-shadow: var(--icon-boxshadow)

}

/* Hover Effect */
.map-marker:hover .marker-pin {
    transform: scale(1.3);
    border: 1px solid var(--error);
}

/* Popup covering 80% of the screen */
.popup {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80%;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* Safari specific prefix */
    padding: 10px 10px 0 10px;
    overflow-y: auto;
    border-radius: 20px 20px 0 0;
    box-shadow: var(--shadow);
    z-index: 10;
    text-align: left;
    display: none;
    scrollbar-width: none;
}

.popup::-webkit-scrollbar {  
    display: none;
}

.popup.show {
    display: block;
}

/* Timeline container */
.timeline {
    position: relative;
    margin-left: 10px;
    padding-left: 10px;
    border-left: 2px solid var(--blue-accent);
}

/* Timeline item */
.timeline-item {
    position: relative;
}

/* Timeline circle */
.timeline-item::before {
    content: "";
    position: absolute;
    left: -17px;
    top: 6px;
    width: 12px;
    height: 12px;
    background-color: var(--blue-accent);
    border-radius: 50%;
}

/* Company Name */
.popup h3 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-top: 10px;
    margin-bottom: 0px;
}

/* Duration */
.popup #popup-role {
    font-size: 0.9rem;
    color: var(--text-tertiary);
    margin-bottom: 0px;
}

.popup #popup-duration {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

/* Section Titles */
.popup .timeline-item strong {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
}

/* Content Text */
.popup .timeline-item ul {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    margin-top: 5px;
}
