* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
}

.breadcrumb {
    font-size: 14px;
    color: #666;
}

.actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    background: none;
    border: none;
    color: #e64626;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    transition: opacity 0.3s;
}

.action-btn:hover {
    opacity: 0.7;
}

/* Profile Header */
.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
    gap: 40px;
}

.profile-info {
    flex: 1;
}

.name {
    font-size: 48px;
    font-weight: 300;
    margin-bottom: 15px;
    line-height: 1.2;
}

.credentials {
    font-size: 16px;
    margin-bottom: 10px;
    font-style: italic;
}

.position {
    font-size: 16px;
    font-style: italic;
}

.profile-image {
    flex-shrink: 0;
}

.profile-image img {
    width: 200px;
    height: auto;
    display: block;
}

/* Contact Section */
.contact-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
}

.contact-column h3 {
    font-size: 14px;
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 8px;
}

.contact-column h3:first-child {
    margin-top: 0;
}

.contact-column p {
    font-size: 14px;
    margin-bottom: 5px;
}

.contact-column a {
    color: #e64626;
    text-decoration: none;
    transition: opacity 0.3s;
}

.contact-column a:hover {
    opacity: 0.7;
    text-decoration: underline;
}

.building-link {
    color: #e64626;
}

.link {
    color: #e64626;
}

/* Expandable Sections */
.expandable-section {
    margin-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.section-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    padding: 20px 0;
    cursor: pointer;
    text-align: left;
    transition: background-color 0.3s;
}

.section-header:hover {
    background-color: #f9f9f9;
}

.section-header h2 {
    font-size: 20px;
    font-weight: 600;
    text-decoration: underline;
}

.toggle-icon {
    font-size: 24px;
    color: #e64626;
    font-weight: 300;
    transition: transform 0.3s;
}

.section-header.collapsed .toggle-icon {
    transform: rotate(180deg);
}

.section-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 0;
}

.section-content.active {
    max-height: 5000px;
    padding: 0 0 30px 0;
}

.section-content p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.section-content ul {
    list-style: none;
    padding-left: 0;
}

.section-content ul li {
    padding-left: 30px;
    position: relative;
    margin-bottom: 12px;
    line-height: 1.6;
}

.section-content ul li:before {
    content: "—";
    position: absolute;
    left: 0;
}

.timeline li {
    padding-left: 30px;
    margin-bottom: 12px;
}

.research-topics {
    margin-bottom: 20px;
}

.research-topics li {
    margin-bottom: 8px;
}

/* Table */
.students-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.students-table thead {
    background-color: #f5f5f5;
}

.students-table th {
    text-align: left;
    padding: 12px;
    font-weight: 600;
    border-bottom: 2px solid #ddd;
}

.students-table td {
    padding: 12px;
    border-bottom: 1px solid #e0e0e0;
}

.students-table tbody tr:hover {
    background-color: #f9f9f9;
}

/* Responsive Design */
@media (max-width: 768px) {
    .profile-header {
        flex-direction: column-reverse;
        align-items: center;
    }

    .profile-image {
        margin-bottom: 20px;
    }

    .profile-image img {
        width: 150px;
    }

    .name {
        font-size: 36px;
    }

    .contact-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .students-table {
        font-size: 14px;
    }

    .students-table th,
    .students-table td {
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 15px;
    }

    .name {
        font-size: 28px;
    }

    .credentials,
    .position {
        font-size: 14px;
    }

    .students-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* Publications Section */
.publications-filter {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-btn,
.expand-all-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background-color: #fff;
    color: #333;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    border-radius: 4px;
}

.filter-btn:hover,
.expand-all-btn:hover {
    background-color: #f5f5f5;
}

.filter-btn.active {
    background-color: #e64626;
    color: #fff;
    border-color: #e64626;
}

.publication-category {
    margin-bottom: 20px;
}

.category-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f5f5f5;
    border: none;
    padding: 12px 15px;
    cursor: pointer;
    text-align: left;
    transition: background-color 0.3s;
}

.category-header:hover {
    background-color: #e8e8e8;
}

.category-header h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.category-icon {
    font-size: 20px;
    color: #666;
    font-weight: 300;
    transition: transform 0.3s;
}

.category-header.collapsed .category-icon {
    transform: rotate(180deg);
}

.category-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.category-content.active {
    max-height: 5000px;
    padding: 15px 0;
}

.publication-item {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
}

.publication-item:last-child {
    border-bottom: none;
}

.publication-item p {
    margin: 0;
    line-height: 1.6;
}

.publication-item em {
    font-style: italic;
}

.more-info {
    color: #e64626;
    text-decoration: none;
    font-size: 14px;
    margin-left: 5px;
}

.more-info:hover {
    text-decoration: underline;
}

.show-more-container {
    padding: 15px;
    text-align: left;
}

.show-more-btn {
    background: none;
    border: none;
    color: #e64626;
    cursor: pointer;
    font-size: 14px;
    text-decoration: underline;
    padding: 0;
    transition: opacity 0.3s;
}

.show-more-btn:hover {
    opacity: 0.7;
}

/* Grants Section */
.grants-year {
    margin-bottom: 30px;
}

.year-heading {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.grant-item {
    margin-bottom: 20px;
    padding-left: 20px;
    border-left: 3px solid #e64626;
}

.grant-title {
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.6;
}

.grant-details {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* Print Styles */
@media print {
    .header {
        display: none;
    }

    .action-btn {
        display: none;
    }

    .section-content {
        max-height: none !important;
    }

    .expandable-section {
        page-break-inside: avoid;
    }

    .publications-filter {
        display: none;
    }
}

