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

:root {
    --primary-color: #baccff;
    --secondary-color: #2347b8;
    --accent-color: #d32f2f;
    --light-gray: #f8f9fa;
    --medium-gray: #e9ecef;
    --dark-gray: #495057;
    --text-color: #212529;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-gray);
}

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

/* Header styles */
header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.logo span {
    color: var(--secondary-color);
    font-weight: 700;
}

.language-switcher {
    display: flex;
    gap: 10px;
}

.language-switcher button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: 500;
}

.language-switcher button.active {
    background-color: var(--secondary-color);
    color: white;
}

nav ul {
    display: flex;
    list-style: none;
    border-top: 1px solid var(--medium-gray);
}

nav li {
    flex: 1;
}

nav a {
    display: block;
    padding: 15px 0;
    text-align: center;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: all 0.3s ease;
}

nav a:hover {
    background-color: var(--medium-gray);
}

/* Hero section */
.hero {
    background-color: var(--primary-color);
    color: black;
    padding: 40px 0;
    margin-bottom: 30px;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 30px;
}

.profile-img {
    flex-shrink: 0;
    width: 150px;
    height: 180px;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 3px solid white;
}

.profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.profile-info .position {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

/* Main content */
.content-section {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 30px;
    margin-bottom: 30px;
}

.content-section h2 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--medium-gray);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-item i {
    color: var(--primary-color);
    width: 20px;
}

.research-interests ul {
    padding-left: 20px;
}

.research-interests li {
    margin-bottom: 10px;
}

/* Teaching specific styles */
.teaching-category {
    margin-bottom: 30px;
}

.teaching-category h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.course-list {
    display: grid;
    gap: 15px;
}

.course-item {
    padding: 15px;
    border-left: 4px solid var(--primary-color);
    background-color: var(--light-gray);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.course-item h4 {
    color: var(--secondary-color);
    margin-bottom: 8px;
}

.course-item h4 a {
    color: var(--secondary-color);
    text-decoration: none;
}

.course-item h4 a:hover {
    text-decoration: underline;
}

.course-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--dark-gray);
}

.course-meta ul{
  list-style-position: inside;
}

.coordinator {
    font-weight: 600;
    color: var(--accent-color);
}

.notes-list {
    margin-top: 10px;
    padding-left: 20px;
}

.notes-list li {
    margin-bottom: 5px;
}


/* Footer */
footer {
    background-color: var(--primary-color);
    color: black;
    padding: 30px 0;
    margin-top: 50px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links a {
    color: black;
    text-decoration: none;
    margin-right: 15px;
}

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

.copyright {
    margin-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Responsive styles */
@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    nav ul {
        flex-direction: column;
    }
    
    .footer-content {
        flex-direction: column;
    }
}

/* Language-specific styles */
.lang-es { display: block; }
.lang-en { display: none; }

/* Show/hide content based on language */
.language-es .lang-es { display: block; }
.language-es .lang-en { display: none; }
.language-en .lang-es { display: none; }
.language-en .lang-en { display: block; }
