/* ================================
   Simple Academic Homepage Template 7
   ================================
   
   Card-based compact design.
   Clean cards for each section.
   
   HOW TO CUSTOMIZE:
   - Adjust card styling
   - Change colors
   - Modify spacing
   ================================ */

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
    padding: 0;
    overflow-x: hidden;
}

img,
svg {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: #ffffff;
    min-height: 100vh;
}

/* Top header */
.top-header {
    background: #ffffff;
    padding: 40px 40px 20px;
    border-bottom: 1px solid #e0e0e0;
}

.header-main {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 20px;
}

.header-photo-section {
    flex-shrink: 0;
}

.main-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e0e0e0;
}

.header-info {
    flex: 1;
}

.main-name {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #1a1a1a;
    letter-spacing: -0.3px;
}

.main-title {
    font-size: 1.05rem;
    color: #555;
    margin-bottom: 3px;
}

.main-school {
    font-size: 0.95rem;
    color: #666;
}

.header-contact-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: #555;
    flex-wrap: wrap;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.social-icon {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
}

.social-icon img {
    width: 24px;
    height: 24px;
    display: block;
}

.social-icon:hover {
    opacity: 0.75;
}

/* Content wrapper */
.content-wrapper {
    padding: 30px 40px 40px;
}

.content-section {
    margin-bottom: 35px;
}

.section-heading {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 18px;
    color: #1a1a1a;
}

.bio-text {
    font-size: 1rem;
    color: #444;
    line-height: 1.8;
}

/* Interests grid */
.interests-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.interest-item {
    padding: 8px 16px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #555;
}

/* Info cards */
.info-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 15px;
    transition: box-shadow 0.2s ease;
}

.info-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.card-year {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.card-degree {
    font-size: 1.05rem;
    font-weight: 600;
    color: #1a1a1a;
}

.card-body {
    margin-top: 8px;
}

.card-school {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 5px;
}

.card-details {
    font-size: 0.9rem;
    color: #888;
    line-height: 1.6;
}

.card-title {
    font-size: 1.05rem;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 5px;
    line-height: 1.5;
}

.card-authors {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 3px;
}

.card-venue {
    font-size: 0.9rem;
    color: #888;
    font-style: italic;
    margin-bottom: 8px;
}

.card-links {
    display: flex;
    gap: 10px;
}

.card-links a {
    font-size: 0.85rem;
    color: #0066cc;
    text-decoration: none;
}

.card-links a:hover {
    text-decoration: underline;
}

/* Footer */
.page-footer {
    margin-top: 40px;
    padding: 25px 40px;
    border-top: 1px solid #e0e0e0;
    text-align: center;
    font-size: 0.85rem;
    color: #999;
    background: #fafafa;
}

/* Responsive design */
@media (max-width: 768px) {
    .top-header {
        padding: 30px 25px 15px;
    }

    .header-main {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .main-photo {
        width: 90px;
        height: 90px;
    }

    .main-name {
        font-size: 1.7rem;
    }

    .header-contact-bar {
        justify-content: center;
    }

    .content-wrapper {
        padding: 25px 25px 30px;
    }

    .section-heading {
        font-size: 1.2rem;
    }

    .card-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .top-header {
        padding: 25px 20px 15px;
    }

    .main-photo {
        width: 80px;
        height: 80px;
    }

    .main-name {
        font-size: 1.5rem;
    }

    .content-wrapper {
        padding: 20px 20px 25px;
    }

    .info-card {
        padding: 15px;
    }

    .header-contact-bar {
        gap: 10px;
    }
}

