/* ============================= */
/* General page style */
/* ============================= */

body {
    font-family: Georgia, serif;
    max-width: 900px;
    margin: auto;
    padding: 40px;
    line-height: 1.7;
    color: #333;
    background: #ffffff;
}


/* ============================= */
/* Navigation bar - Advanced */
/* ============================= */

nav {
  margin-bottom: 50px;
  border-bottom: 1px solid #eee;
  padding-bottom: 12px;
  font-family: 'Inter', sans-serif; 
}

nav .nav-item {
  margin-right: 28px;
  font-weight: 700;    
  font-size: 19px;     
  color: #444;
  text-decoration: none;
  padding-bottom: 6px;
  position: relative;
  transition: all 0.2s ease;
}


nav .nav-item::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background-color: #1a4f8b; 
  transition: width 0.3s ease;
}

nav .nav-item:hover::after {
  width: 100%;
}


nav .nav-item.active {
  color: #1a4f8b;
}

nav .nav-item.active::after {
  width: 100%;
}


@media (max-width: 768px){
  nav {
    display: flex;
    flex-direction: column;
  }
  nav .nav-item {
    margin-bottom: 10px;
  }
}

/* ============================= */
/* Profile photo */
/* ============================= */

.profile {
    width: 320px;   
    height: 320px;
    border-radius: 50%;
    object-fit: cover;
    object-position: 50% 0%; 
    display: block;
    margin: 0 auto 30px auto;
}
/* ============================= */
/* Titles */
/* ============================= */

h1 {
    font-size: 32px;
    margin-bottom: 30px;
}

h2 {
    font-size: 22px;
    margin-top: 50px;
    margin-bottom: 12px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 6px;
}

/* ============================= */
/* Paragraph */
/* ============================= */

p {
    margin-bottom: 16px;
}

/* ============================= */
/* Lists */
/* ============================= */

ul {
    margin-top: 10px;
    margin-bottom: 30px;
    padding-left: 20px;
}

li {
    margin-bottom: 8px;
}

/* ============================= */
/* Links */
/* ============================= */

a {
    color: #0056b3;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ============================= */
/* Horizontal line */
/* ============================= */

hr {
    margin-top: 60px;
    margin-bottom: 60px;
    border: 0;
    border-top: 1px solid #eee;
}

/* ============================= */
/* Images */
/* ============================= */

img {
    max-width: 100%;
    border-radius: 6px;
    margin-top: 15px;
    margin-bottom: 20px;
}

/* ============================= */
/* Consultation layout - optimized */
/* ============================= */

.consultation {
    margin-bottom: 50px;
}

.consultation-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 15px; 
    margin-top: 15px; 
}

.consultation-images img {
    width: 100%;
    height: auto;
    border-radius: 6px;
}

/* ============================= */
/* Fieldwork layout - optimized */
/* ============================= */

.fieldwork {
    display: flex;
    flex-wrap: wrap;          
    gap: 40px;
    margin-top: 40px;
    margin-bottom: 60px;
    align-items: flex-start;  
}

.fieldwork-text {
    flex: 1 1 300px;          
    min-width: 250px;         
}

.fieldwork img {
    flex: 0 0 auto;          
    width: 320px;            
    max-width: 100%;          
    height: auto;             
    border-radius: 6px;
    display: block;       
}

/* ============================= */
/* Footer */
/* ============================= */

footer {
    margin-top: 60px;
    font-size: 14px;
    color: #666;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

/* ============================= */
/* Mobile responsive */
/* ============================= */

@media (max-width: 768px) {

    .fieldwork {
        flex-direction: column; 
        gap: 20px;              
    }

    .fieldwork img {
        width: 100%;            
    }

    .fieldwork-text {
        width: 100%;            
    }

    nav a {
        display: inline-block;
        margin-bottom: 10px;
    }

    .hero {
        flex-direction: column;  
        align-items: center;     
        text-align: center;     
    }

    .hero-avatar {
        width: 140px;            
        height: 140px;
        margin-bottom: 15px;     
    }

    .hero-text {
        max-width: 100%;         
    }
}
/* ============================= */
/* contact-list */
/* ============================= */

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-list li {
    margin-bottom: 10px;
    font-size: 16px;
}

.contact-list a {
    text-decoration: none;
    color: #0056b3;
}

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

.contact-list .icon {
    width: 18px;
    height: 18px;
    vertical-align: middle;
    margin-right: 6px;
}


/* ============================= */
/* Hero */
/* ============================= */

.hero {
  display: flex;
  align-items: flex-start;  
  gap: 30px;                
  margin-bottom: 40px;
}

.hero-avatar {
  width: 180px;            
  height: 180px;
  border-radius: 50%;       
  object-fit: cover;
}

.hero-text {
  max-width: 600px;         
}
.hero-text h1 {
  margin: 0;
  font-size: 28px;
  font-weight: bold;
}

.hero-text p {
  margin: 5px 0;
  font-size: 16px;
  line-height: 1.5;
}

.welcome {
  margin-top: 20px;          
  font-style: italic;       
  line-height: 1.6;
}


/* ============================= */
/* Container for the small ClustrMaps globe */
/* ============================= */

#clustrmap-container {
  width: 250px;      
  height: 200px;      
  margin: 0 auto;     
}

#clustr_globe {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.fun-greeting {
  text-align: center;
  font-size: 1em;      
  font-weight: bold;
  margin-bottom: 5px;
}
