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

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700&display=swap');

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.nav {
    background-color: #ecf0f1;
    padding: 0.25rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav__logo {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.nav__logo-img {
    height: 90px;
    width: auto;
    object-fit: contain;
}

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

.nav__link {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav__link:hover,
.nav__link--active {
    color: #3498db;
}

/* Mobile menu toggle */
.nav__toggle {
    display: none;
    background: none;
    border: none;
    color: #2c3e50;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Header */
.header {
    background: #fff;
    color: #2c3e50;
    padding: 4rem 0;
    text-align: center;
}

.header__logo-section {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    gap: 2rem;
}

.header__logo {
    max-height: 200px;
    max-width: 200px;
    object-fit: contain;
}

.header__logo--large {
    max-height: 800px;
    max-width: 800px;
    margin: 0 auto;
    display: block;
}

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

.header__title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.header__subtitle {
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 2rem;
    color: #3498db;
}

.header__description {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    color: #555;
}

@media (max-width: 768px) {
    .header__logo-section {
        flex-direction: column;
        gap: 1rem;
    }
    
    .header__logo {
        max-height: 150px;
    }

    .header__logo--large {
        max-height: 350px;
        max-width: 350px;
    }
    
    .header__logo-text {
        text-align: center;
    }
    
    .header__title {
        font-size: 2.2rem;
    }
}

/* Main content */
.main {
    padding: 0;
}

.section {
    margin-bottom: 0;
    padding: 4rem 0;
}

.section--gray {
    background-color: #f8f9fa;
}

.section__title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #2c3e50;
    text-align: center;
}

.section__content {
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto;
}

/* Team grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.team-card {
    background: #fff;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
}

.team-card__photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem auto;
    display: block;
}

.team-card__photo--placeholder {
    background-color: #e9ecef;
    border: 2px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 2.5rem;
    font-weight: 600;
}

.team-card__name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.team-card__role {
    color: #3498db;
    font-weight: 600;
    margin-bottom: 1rem;
}

.team-card__bio {
    line-height: 1.6;
    color: #666;
}

/* Publications */
.publication {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid #3498db;
}

/* Research themes spacing */
.research-theme {
    margin-bottom: 4rem;
    background: #fff;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
    transition: box-shadow 0.3s ease;
}

.research-theme:hover {
    box-shadow: 0 6px 30px rgba(0,0,0,0.15);
}

/* Collapsible theme headers */
.theme-header {
    cursor: pointer;
    transition: color 0.3s ease;
    position: relative;
    padding-right: 2rem;
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 600;
    color: #2c3e50;
}

.theme-header:hover {
    color: #3498db;
}

.toggle-icon {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.theme-content {
    transition: all 0.3s ease;
    overflow: hidden;
}

.theme-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: #555;
    text-align: justify;
}

.publication__title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.publication__authors {
    font-style: italic;
    margin-bottom: 0.5rem;
    color: #666;
}

.publication__venue {
    font-weight: 600;
    color: #3498db;
}

/* Footer */
.footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 2rem 0;
    text-align: center;
}

.footer__content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 1rem;
}

.footer__section h3 {
    margin-bottom: 1rem;
    color: #3498db;
}

.footer__section p,
.footer__section a {
    color: #ecf0f1;
    text-decoration: none;
    line-height: 1.6;
}

.footer__section a:hover {
    color: #3498db;
}

/* Responsive design */
@media (max-width: 768px) {
    .nav__menu {
        position: fixed;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #2c3e50;
        flex-direction: column;
        padding: 2rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .nav__menu--active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav__toggle {
        display: block;
    }

    .header__title {
        font-size: 2.2rem;
    }

    .header__subtitle {
        font-size: 1.1rem;
    }

    .section__title {
        font-size: 2rem;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }
}

/* Logo section */
.logo-section {
    background-color: #f8f9fa;
    padding: 3rem 0;
    margin: 3rem 0;
}

.logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    align-items: center;
    justify-items: center;
    max-width: 800px;
    margin: 0 auto;
}

.logo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.logo-item img {
    max-height: 80px;
    max-width: 200px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.logo-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

@media (max-width: 768px) {
    .logo-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .logo-item img {
        max-height: 60px;
    }
}

/* Utility classes */
.text-center {
    text-align: center;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mt-2 {
    margin-top: 2rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: #3498db;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background-color: #2980b9;
}

/* Photo Carousel */
.photo-carousel {
    margin-top: 3rem;
}

.carousel-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

.carousel-slides {
    position: relative;
    width: 100%;
    height: 400px;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    padding: 2rem 1.5rem 1rem;
    font-size: 1.1rem;
    font-weight: 500;
    text-align: center;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    color: #2c3e50;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background: rgba(255,255,255,1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.carousel-btn--prev {
    left: 15px;
}

.carousel-btn--next {
    right: 15px;
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.3s ease;
}

.carousel-dot.active,
.carousel-dot:hover {
    background: rgba(255,255,255,1);
}

/* Responsive carousel */
@media (max-width: 768px) {
    .carousel-slides {
        height: 300px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .carousel-btn--prev {
        left: 10px;
    }

    .carousel-btn--next {
        right: 10px;
    }

    .carousel-caption {
        font-size: 1rem;
        padding: 1.5rem 1rem 0.8rem;
    }
}