:root {
    --navy: #1E3A8A;
    --slate: #64748B;
    --bg: #F8FAFC;
    --border: #E2E8F0;
    --white: #FFFFFF;
}

/* Global Styles */
body { font-family: 'Inter', sans-serif; background: var(--bg); color: #334155; }
h1, h2, .serif { font-family: 'Playfair Display', serif; color: var(--navy); }

/* Section Spacing */
section { padding: 80px 20px; max-width: 900px; margin: 0 auto; }



/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 10%;
    background: white;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav .logo {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    color: var(--navy);
    text-decoration: none;
    font-size: 1.2rem;
}

nav .nav-links {
    display: flex;
    gap: 25px;
    align-items: center;
}

nav .nav-links a {
    text-decoration: none;
    color: var(--slate);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
}

nav .nav-links a:hover { color: var(--navy); }

.lang-toggle {
    border: 1px solid var(--navy);
    padding: 4px 8px;
    border-radius: 4px;
    color: var(--navy) !important;
}

/* Practice Section Specifics */
.practice-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
}

.logistics-card {
    background: white;
    padding: 25px;
    border: 1px solid var(--border);
    border-radius: 8px;
}

.logistics-card h4 {
    margin-top: 0;
    color: var(--navy);
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
}

.logistics-item {
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.logistics-item strong { display: block; color: var(--navy); }

@media (max-width: 768px) {
    .practice-grid { grid-template-columns: 1fr; }
}

/* Media Section */
.logo-bar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 50px;
    filter: grayscale(100%);
    opacity: 0.7;
}

.logo-bar img, .logo-bar span {
    max-height: 40px;
    font-weight: bold;
    color: var(--slate);
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.media-card {
    background: white;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s;
}

.media-card:hover {
    transform: translateY(-3px);
    border-color: var(--navy);
}

.media-type {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    font-weight: bold;
}

/* Contact Form */
.contact-container {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--navy);
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
}

.form-group select {
    background-color: white;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--slate);
}

.checkbox-group input {
    width: auto;
    margin-top: 4px;
}

.submit-btn {
    background: var(--navy);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: #172554;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px;
    font-size: 0.8rem;
    color: var(--slate);
    border-top: 1px solid var(--border);
    margin-top: 60px;
}

footer a {
    color: var(--slate);
    margin: 0 10px;
}


/* Updated Publication Link Button */
.pub-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--navy);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
    background: white;
}

.pub-link-btn:hover {
    background: var(--navy);
    color: white;
    border-color: var(--navy);
}

.pub-link-btn i {
    width: 14px;
    height: 14px;
}


/* Career Section Layout */
.career-grid {
    display: grid;
    grid-template-columns: 220px 1fr; 
    gap: 40px;
    align-items: start; /* Ensures both columns start at the very top */
    margin-top: 40px;
}

.career-text h1 {
    margin-top: 0; /* CRUCIAL: Removes the default gap above the name */
    line-height: 1; /* Ensures the text height doesn't push the alignment off */
    font-family: 'Playfair Display', serif;
    color: var(--navy);
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.profile-img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    display: block; /* Removes any bottom whitespace from the image */
}

/* Profile Links List */
.profile-links {
    margin-top: 20px;
    padding: 0;
    list-style: none;
}

.profile-links li {
    margin-bottom: 12px;
}

.profile-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--slate);
    font-size: 0.85rem;
    transition: color 0.2s;
}

.profile-links a:hover {
    color: var(--navy);
}

/* Specific styling for the CV link in the list to make it stand out slightly */
.cv-link {
    font-weight: 600;
    color: var(--navy) !important;
    border-top: 1px solid var(--border);
    padding-top: 12px;
    margin-top: 12px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .career-grid {
        grid-template-columns: 1fr; /* Stack on mobile */
        text-align: center;
    }
    .profile-img-container {
        align-items: center;
    }
    .profile-links a {
        justify-content: center;
    }
}