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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

header {
    background: #115740;
    color: white;
    padding: 2rem;
    margin-bottom: 2rem;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.wm-logo {
    height: 60px;
    width: auto;
}

.wm-logo-horizontal {
    display: block;
}

.wm-logo-vertical {
    display: none;
}

.header-text {
    text-align: left;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

@media (max-width: 1024px) {
    header h1 {
        font-size: 2rem;
    }
}

header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.filter-section {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.filter-section h2 {
    color: #115740;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.filter-description {
    color: #7f8c8d;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.filter-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: #f1f5f3;
    border: 1px solid #d4ddd6;
    color: #115740;
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-btn .count {
    background: rgba(17, 87, 64, 0.15);
    color: #115740;
    padding: 0.1rem 0.4rem;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
}

.filter-btn.active .count {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.filter-btn:hover {
    background: #e8f0ea;
    border-color: #115740;
}

.filter-btn.active {
    background: #115740;
    color: white;
    border-color: #115740;
}

.tab-nav {
    display: flex;
    gap: 0.25rem;
    border-bottom: 2px solid #d4ddd6;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tab-link {
    padding: 0.85rem 1.5rem;
    color: #7f8c8d;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.tab-link:hover {
    color: #115740;
    background: #f1f5f3;
}

.tab-link.active {
    color: #115740;
    border-bottom-color: #115740;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.funding-body {
    width: 100%;
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.funding-description {
    color: #7f8c8d;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.funding-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
    min-height: 50vh;
}

.funding-link {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 1rem;
    background: #f1f5f3;
    border: 1px solid #d4ddd6;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.funding-link:hover {
    background: #e8f0ea;
    border-color: #115740;
    transform: translateY(-2px);
}

.funding-link-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.funding-link-actions a {
    color: #B99C22;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.3rem 0.7rem;
    border: 1px solid #B99C22;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.funding-link-actions a:hover {
    background: #B99C22;
    color: white;
}

.funding-link-title {
    color: #115740;
    font-weight: 600;
    font-size: 0.95rem;
}

.funding-link-desc {
    color: #7f8c8d;
    font-size: 0.85rem;
    line-height: 1.4;
}

.alumni-description {
    color: #7f8c8d;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.alumni-meta {
    color: #B99C22;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.alumni-position {
    color: #7f8c8d;
    font-weight: 500;
    margin-bottom: 1rem;
}

.alumni-detail {
    margin-bottom: 1rem;
}

.alumni-detail h4 {
    font-size: 0.9rem;
    color: #115740;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.alumni-detail p {
    font-size: 0.9rem;
    color: #7f8c8d;
    line-height: 1.4;
}

.sort-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.sort-bar label {
    color: #7f8c8d;
    font-size: 0.9rem;
    font-weight: 600;
}

.sort-bar select {
    padding: 0.4rem 0.7rem;
    border: 1px solid #d4ddd6;
    border-radius: 6px;
    background: white;
    color: #115740;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}

.sort-bar select:focus {
    outline: none;
    border-color: #115740;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
    min-height: 70vh;
}

.profile-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.profile-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.profile-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}

.profile-name {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #115740;
}

.profile-program {
    color: #7f8c8d;
    margin-bottom: 1rem;
    font-weight: 500;
}

.research-areas {
    margin-bottom: 1rem;
}

.research-areas h4 {
    font-size: 0.9rem;
    color: #115740;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.research-areas ul {
    list-style: none;
}

.research-areas li {
    background: #f1f5f3;
    display: inline-block;
    padding: 0.3rem 0.8rem;
    margin: 0.2rem 0.2rem 0.2rem 0;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #115740;
    border: 1px solid #d4ddd6;
}

.interests {
    margin-bottom: 1rem;
}

.interests h4 {
    font-size: 0.9rem;
    color: #115740;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.interests p {
    font-size: 0.9rem;
    color: #7f8c8d;
    line-height: 1.4;
}

.happy-to-discuss {
    margin-bottom: 1rem;
}

.happy-to-discuss h4 {
    font-size: 0.9rem;
    color: #115740;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.discussion-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.topic-tag {
    background: #f8f3e3;
    color: #B99C22;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid #e6d8b8;
    font-weight: 500;
}

.contact-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.contact-links a {
    color: #B99C22;
    text-decoration: none;
    font-size: 0.85rem;
    padding: 0.3rem 0.8rem;
    border: 1px solid #B99C22;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.contact-links a:hover {
    background: #B99C22;
    color: white;
}

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

    header h1 {
        font-size: 1.5rem;
        line-height: 1.2;
    }

    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .header-text {
        text-align: center;
    }

    .wm-logo {
        height: 50px;
    }

    .wm-logo-horizontal {
        display: none;
    }

    .wm-logo-vertical {
        display: block;
    }
}

footer {
    background: #115740;
    color: white;
    padding: 2rem 1rem;
    margin-top: 3rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-main h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.footer-main p {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: left;
}

.footer-section h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #B99C22;
    font-weight: 600;
}

.footer-section p {
    font-size: 0.9rem;
    opacity: 0.9;
    line-height: 1.5;
}

.footer-section a {
    color: #B99C22;
    text-decoration: none;
    font-weight: 500;
}

.footer-section a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .footer-links {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }
}