/* Force Pico CSS to use light theme only */
html {
    color-scheme: light only;
}

@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: light only;
    }
}

/* Page Width Limit */
main.container {
    max-width: 800px;
}

/* Profile Header Section */
.profile-header { 
    display: flex; 
    align-items: center; 
    gap: 1.5rem; 
    margin-top: 2rem; 
    margin-bottom: 3rem; 
}

.profile-picture { 
    width: 234px; 
    height: 234px; 
    border-radius: 50%; 
    object-fit: cover; 
    flex-shrink: 0; 
}

.profile-info h1 { 
    margin-bottom: 0.5rem; 
    font-size: 2.2rem; 
    font-weight: 600; 
    text-align: center;
}

.profile-info p.tagline { 
    margin-bottom: 1rem; 
    font-size: 1rem; 
    color: #000000; 
    text-align: left;
}

/* Social Icons - Updated Colors */
.social-icons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.social-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    /* Set background to black */
    background-color: #000000;
    /* Set default icon color to a contrast gray */
    color: #ababab; /* Adjust this gray as needed */
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease; /* Smooth hover effect */
}

.social-icon:hover {
    /* Keep background black or make slightly lighter if preferred */
    background-color: #1a1a1a; /* Example: slightly lighter black on hover */
    /* Change icon color to white on hover */
    color: #ffffff;
}

/* Style the SVG element within the link */
.social-icon svg {
    width: 55%; /* Adjust size of icon inside the circle */
    height: 55%;
    vertical-align: middle; /* Helps keep it centered */
    /* SVG will inherit the 'color' from the parent .social-icon */
}

/* Section Spacing */
main.container > h2 { 
    margin-top: 3rem; 
    margin-bottom: 1rem; 
    border-bottom: 1px solid var(--pico-muted-border-color); 
    padding-bottom: 0.5rem; 
}

main.container > ul { 
    margin-bottom: 1.5rem; 
}

main.container > ul li {
    margin-bottom: 0.5rem;
    padding-bottom: 0.25rem;
}

/* Mobile responsive design */
@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .profile-picture {
        width: 150px;
        height: 150px;
        margin: 0 auto;
    }

    .profile-info h1 {
        font-size: 1.8rem;
        text-align: center;
    }

    .profile-info p.tagline {
        text-align: center;
        font-size: 0.9rem;
    }

    .social-icons {
        justify-content: center;
    }
}

/* Compact list sections for talks and activities */

.compact-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.compact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.75rem 0;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.15s ease;
}

.compact-item:hover {
    background-color: #f8f9fa;
    text-decoration: none;
}

.compact-item:last-child {
    border-bottom: none;
}

.compact-thumb {
    width: 94px;
    height: 70px;
    border-radius: 6px;
    background: #f8f9fa center/cover no-repeat;
    flex-shrink: 0;
    border: 1px solid #e1e5e9;
}

.compact-content {
    flex: 1;
    min-width: 0;
}

.compact-title {
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 0.25rem;
    font-size: 1rem;
    color: #000;
}

.compact-desc-line {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.4;
}

.compact-desc {
    flex: 1;
    color: #666;
    min-width: 0;
}

.compact-year {
    color: #999;
    font-size: 0.8rem;
    flex-shrink: 0;
}

/* Photos grid section */
.photos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.photo-item {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e1e5e9;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    cursor: pointer;
}

.photo-item:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.photo-thumbnail {
    width: 100%;
    height: 100%;
    background: #f8f9fa center/cover no-repeat;
}

@media (max-width: 768px) {
    .photos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

@media (max-width: 768px) {
    .cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .section-title h2 {
        font-size: 1.25rem;
    }
}