/* Main Stylesheet for Ayla Rigouts Terryn's Website */

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

:root {
    --primary-color: #2c3e50;
    --accent-color: #c0392b;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --border-color: #dee2e6;
    --link-color: #2980b9;
    --max-width: 1100px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: white;
}

/* Header and Navigation */
header {
    background: white;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

nav {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
    cursor: pointer;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent-color);
}

/* Main Content */
main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 3rem 2rem;
}

.section {
    display: none;
}

.section.active {
    display: block;
}

/* Home Section */
.hero {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
    align-items: start;
}

.profile-img {
    width: 100%;
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    aspect-ratio: 1/1;
    object-fit: cover;
    object-position: 60% center;
}

.hero-content h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.hero-content .title {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.hero-content .affiliation {
    color: #666;
    margin-bottom: 1.5rem;
}

.hero-content .bio {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.contact-info {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.contact-info a {
    color: var(--link-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Recruitment Banner */
.recruitment-banner {
    background: linear-gradient(135deg, #8b5555, #9d6666);
    color: white;
    padding: 2rem;
    border-radius: 8px;
    margin: 3rem 0;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.recruitment-banner h2 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.recruitment-banner .btn-white {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: white;
    color: #c0392b;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: transform 0.2s;
}

.recruitment-banner .btn-white:hover {
    transform: translateY(-2px);
}

/* News/Highlights Section */
.news-section {
    background: var(--light-bg);
    border-radius: 8px;
    padding: 2rem;
    margin-top: 3rem;
}

.news-section h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.news-scroll-container {
    max-height: 600px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.news-scroll-container::-webkit-scrollbar {
    width: 8px;
}

.news-scroll-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.news-scroll-container::-webkit-scrollbar-thumb {
    background: #c0c0c0;
    border-radius: 4px;
}

.news-scroll-container::-webkit-scrollbar-thumb:hover {
    background: #a0a0a0;
}

.news-item {
    background: white;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 6px;
    border-left: 4px solid var(--accent-color);
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    position: relative;
}

.news-item.highlight {
    border-left-color: #2980b9;
    border-left-width: 6px;
}

.news-img {
    width: 180px;
    height: 180px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    order: 2;
    margin-left: auto;
}

.news-content {
    flex: 1;
    order: 1;
}

.news-date {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.news-title {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Research Section */
#research h2 {
    margin-bottom: 1.5rem;
}

.research-interests {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.research-interests h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.research-interests ul {
    list-style-position: outside;
    padding-left: 2rem;
    line-height: 1.8;
}

.research-interests li {
    margin-bottom: 0.6rem;
}

.research-section {
    margin-bottom: 2rem;
}

.research-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.4rem;
    border-bottom: 3px solid var(--accent-color);
    padding-bottom: 0.4rem;
}

.resource-item,
.project-item {
    background: white;
    padding: 1.5rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    border-left: 4px solid var(--accent-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.resource-item h4,
.project-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.6rem;
    font-size: 1.1rem;
    line-height: 1.4;
}

.resource-item p,
.project-item p {
    line-height: 1.7;
    margin-bottom: 0.6rem;
}

.project-item p:first-of-type em {
    display: block;
    margin-bottom: 0.6rem;
    color: #555;
}

.resource-item p:last-child,
.project-item p:last-child {
    margin-bottom: 0;
}

.resource-link {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.resource-link:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.publications h3 {
    color: var(--primary-color);
    margin: 2rem 0 1rem;
}

.publication-item {
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    border-left: 3px solid var(--border-color);
}

/* Public Engagement Section */
#engagement h2 {
    margin-bottom: 1.5rem;
}

.engagement-section {
    margin-bottom: 2.5rem;
}

.engagement-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.4rem;
    border-bottom: 3px solid var(--accent-color);
    padding-bottom: 0.4rem;
}

.engagement-item p {
    line-height: 1.8;
    margin-bottom: 1rem;
}

.engagement-item ul {
    list-style-position: outside;
    padding-left: 2rem;
    line-height: 1.8;
}

.engagement-item li {
    margin-bottom: 0.8rem;
}

/* Teaching Section */
.course-list {
    margin-top: 2rem;
}

.course-category {
    margin-bottom: 2rem;
}

.course-category h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.course-item {
    background: var(--light-bg);
    padding: 1rem 1.5rem;
    margin-bottom: 0.8rem;
    border-radius: 6px;
}

.course-name {
    font-weight: 600;
    color: var(--primary-color);
}

.course-details {
    color: #666;
    font-size: 0.95rem;
    margin-top: 0.3rem;
}

/* Prospective Students Section */
.info-card {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.info-card.highlight {
    border: 2px solid var(--accent-color);
    background: linear-gradient(to right, #fff5f5, white);
}

.info-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .profile-img {
        max-width: 250px;
        margin: 0 auto;
    }

    .nav-links {
        gap: 1rem;
        font-size: 0.9rem;
    }

    nav {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #a93226;
}

.external-link::after {
    content: " ↗";
    font-size: 0.8em;
}