* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f2f2f2;
    display: flex;
    justify-content: center;
    align-items: center; /* Center vertically */
    height: 100dvh;   /* Full height on mobile */
    padding: 20px;
}

.container {
    background: #f2f2f2;
    border-radius: 20px;
    padding: 20px;
    max-width: 400px;
    width: 100%;
    height: 100%; /* Full screen height for mobile */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Vertical centering */
    box-shadow: 0px 5px 20px rgba(0,0,0,0.1);
    text-align: center;
}

.avatar {
    border-radius: 50%;
    width: 120px;
    height: 120px;
	object-fit: cover;
	border-radius: 50%;
}

.name {
    font-size: 1.5em;
    font-weight: bold;
    margin-top: 10px;
}

.dot {
    color: #2ecc71;
}

.bio {
    font-size: 0.9em;
    color: #555;
    margin-top: 5px;
    text-wrap: balance;
    margin-block: 1rem;
}

.social-links {
    margin: 15px 0;
}

.social-links a {
    margin: 0 8px;
    font-size: 1.5em;
    color: #333;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #2ecc71;
}

.featured-title {
    font-size: 0.8em;
    letter-spacing: 2px;
    color: #888;
    margin: 20px 0 20px;
}

.links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.link-item {
    background: white;
    border-radius: 30px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    color: #333;
    border: 1px solid #ddd;
    transition: all 0.3s;
}

.link-item:hover {
    background: #f0f0f0;
}

.icon {
    color: white;
    padding: 8px;
    border-radius: 50%;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.link-item span {
    flex-grow: 1;
    text-align: left;
    font-weight: 500;
    margin-left: 10px;
}

.link-item i:last-child {
    color: #888;
}

@media (min-width: 768px) {
    .container {
        min-height: auto;
    }
}

.top-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.back-btn {
    background: none;
    border: none;
    font-size: 1.2em;
    cursor: pointer;
}

.card-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.card {
    display: flex;
    align-items: center;
    padding: 10px;
    background: #fff;
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    border: 1px solid #ddd;
    transition: background 0.3s;
}

.hidden {
    display: none;
}

.card:hover {
    background: #f9f9f9;
}

.card img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
}

.card-text h3 {
    text-align: left;
    font-size: 1em;
    margin-bottom: 4px;
}

.card-text p {
    text-align: left;
    font-size: 0.85em;
    color: #666;
}

/* --- ENHANCED TIMELINE VIEW --- */

.timeline {
    position: relative;
    padding-left: 20px;
}

/* The main vertical line for the timeline */
.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: #ff2b2b;
}

/* Grouping container for each year */
.timeline-group {
    position: relative;
    margin-bottom: 30px;
}

/* The year heading, styled to stand out */
.timeline-year {
    background-color: white; /* Matches page background */
    color: #3cb3f2;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: .25rem;
}

/* Individual timeline item */
.timeline-item {
    position: relative;
    text-align: left;
    margin-bottom: 25px;
    padding-left: 5px;
    margin-top: 1rem;
}

/* Content styling */
.timeline-item h4 {
    font-size: 1em;
    font-weight: bold;
    margin-bottom: 3px;
}

.timeline-item p {
    font-size: 0.85em;
    color: #555;
}
