:root {
    --primary-color: #92A8CF;
    --secondary-color: #64748b;
    --accent-color: #0ea5e9;
    --light-bg: #e0f2fe; /*VES #D8D8D8;*/
    --dark-bg: #0f172a;
    --text-color: #1e293b;
    --light-text: #f1f5f9;
    --border-radius: 6px;
    --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

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

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

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

header {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 0;
    margin-bottom: 2rem;
    box-shadow: var(--box-shadow);
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-header {
    text-align: center;
    margin-bottom: 1rem;
}

.profile-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--light-text);
}

.profile-header p {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
    color: var(--light-text);
}

.status-pill {
    background-color: #10b981;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    display: inline-block;
    margin-top: 0.5rem;
}

nav {
    background-color: white;
    padding: 1rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
}

.nav-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    list-style: none;
}

.nav-list li a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.nav-list li a:hover {
    background-color: var(--primary-color);
    color: white;
}

.section {
    background-color: #D8D8D8; /* VES white;*/
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--box-shadow);
}

.section-title {
    color: var(--primary-color);
    font-size: 1.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-color);
}

.section-content {
    margin-bottom: 1rem;
}

.subsection {
    margin-bottom: 1.5rem;
}

.subsection-title {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

ul, ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

ul li, ol li {
    margin-bottom: 0.5rem;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    text-decoration: underline;
    color: var(--primary-color);
}

.publication {
    padding: 0.75rem;
    border-left: 3px solid var(--accent-color);
    background-color: #e0e0e0; \* VES white;*\
    margin-bottom: 1rem;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.publication-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.publication-description {
    font-style: italic;
    font-size: 0.95rem;
	text-align: center;
}

.cite {
  font-style: normal;
  font-weight: 600;
  color: var(--text-color);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;  /* Unified spacing for both rows and columns */
    max-width: 900px;
    margin: auto;
    padding: 1rem;
}

/* Shared card styles */
.card, .wide-card {
    background-color: #e0e0e0;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    min-height: 280px;  /* Optional, for visual uniformity */
}

/* Hover effect */
.card:hover, .wide-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Width control (optional if you use auto-fill) */
.card {
    width: 100%; /* Auto-sized to fit one grid column (min 300px) */
}

.wide-card {
    width: 100%; /* Let it fit the grid column first... */
    max-width: 420px;  /* ...but visually wider than standard cards */
    margin: auto;      /* Center the wide card in its grid cell */
}


.grid2 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    row-gap: 2rem;
    column-gap: 0.5rem;
    max-width: 700px;  /* Force wrapping to see row gap */
    margin: auto;
}

.card {
    background-color: #e0e0e0; \* VES white;*\
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
}

.wide-card {
    max-width: 360px; /* ~40% of 900px */
    margin: 0 auto 2rem auto; /* Centered */
}


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

.card-title {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.card img, .card iframe {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin-bottom: 0.75rem;
}

.iframe-container {
    display: flex;
    justify-content: center;
    margin: 1.5rem 0;
}

.iframe-container iframe {
    width: 100%;
    max-width: 900px;
    height: 900px;
    border-radius: var(--border-radius);
}

.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 2px;
    background-color: var(--accent-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 0.5rem;
    padding-left: 1rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -1rem;       /* adjust horizontally if needed */
    top: 0.4rem;       /* adjust vertically if needed */
    width: 0.5rem;     /* smaller width */
    height: 0.5rem;    /* smaller height */
    border-radius: 50%;
    background-color: var(--accent-color);
}

.timeline-date {
    font-weight: 600;
    color: var(--secondary-color);
}

.timeline-item a {
    font-size: inherit;
}


.tag {
    display: inline-block;
    background-color: #e2e8f0;
    color: var(--secondary-color);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

footer {
    text-align: center;
    padding: 1.5rem 0;
    color: var(--secondary-color);
    font-size: 0.875rem;
}

@media (max-width: 768px) {
    .grid {
        grid-template-columns: 1fr;
    }
    
    .nav-list {
        flex-direction: column;
        align-items: center;

    }
    
    .profile-header h1 {
        font-size: 1.5rem;
    }
    
    .profile-header p {
        font-size: 0.875rem;
    }
    
    .iframe-container iframe {
        height: 300px;
    }
}

.license-note {
  font-size: 0.7rem;        /* ~11px */
  line-height: 1.2;         /* tight line spacing */
  color: #444;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.license-note h4 {
  font-size: 0.8rem;        /* ~13px for headings */
  margin-top: 0.5rem;
  margin-bottom: 0.25rem;
}

.license-note ul {
  margin: 0 0 0.5rem 1.25rem;
  padding: 0;
}

.license-note li {
  margin-bottom: 0.2rem;
}


/* === Final Fixes for Grid Layout === */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}

.card {
  background-color: #e0e0e0;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  border-radius: 6px;
  transition: 0.2s ease;
}

.wide-card {
  background-color: #e0e0e0;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  border-radius: 6px;
  transition: 0.2s ease;
  width: 100%;
  max-width: none;
  margin: 1rem 0;
  grid-column: 1 / -1; /* If placed inside .grid */
}

.card:hover,
.wide-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* === Restore Card Title Styling === */
:root {
  --primary-color: #92A8CF;
}

.card-title {
  color: var(--primary-color);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}


/* +++++++++++++++++++ POPP UP ++++++++++++++++++++ */
/* Prevent scrolling when popup is open */
.no-scroll {
  overflow: hidden;
}

/* Overlay */
.image-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(220, 220, 220, 0.7);	
  display: none;
  z-index: 9998;
}

/* Popup box */
.image-box {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 10px;
  box-sizing: border-box;
  background: white;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  overflow: hidden;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* Close button */
.close-btn {
  position: absolute;
  top: 5px;
  right: 10px;
  font-size: 24px;
  cursor: pointer;
  z-index: 10000;  /* High enough to be above everything */
  color: #333;
  background: white;
  border: 1px solid #ccc;
  border-radius: 50%;
  padding: 0 8px;
  line-height: 1;
}

/* Image container */
.image-container {
  width: 100%;
  height: 100%;
  overflow: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}
.image-container.zoomed {
  cursor: zoom-out;
}
.image-container.zoomed.dragging {
  cursor: grabbing;
}

/* Image styling - default (not zoomed) */
.image-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Image styling - zoomed */
.image-container.zoomed img {
  max-width: none;
  max-height: none;
  width: auto;
  height: auto;
  /* If you set width/height via JS, these will be overridden */
}


.mobile-menu-toggle {
    display: none;
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    font-size: 1.1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    #mobileNav {
        display: none;
    }

    #mobileNav.show {
        display: block;
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 0;
    }

    .nav-list li {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .nav-list li a {
        width: 100%;
        display: block;
    }

    .section {
        padding: 1rem;
    }

    .card, .wide-card {
        min-height: auto;
        padding: 1rem;
    }

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

    .timeline img {
        max-width: 100%;
        height: auto;
        display: block;
        margin: 0.5rem 0;
    }
}

@media (max-width: 768px) {
    .nav-list {
        display: none;
    }

    #mobileNav.show .nav-list {
        display: flex;
    }
}


@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }

  /* Hide mobile nav by default */
  #mobileNav {
    display: none;
  }

  /* Show mobile nav when 'show' class is toggled */
  #mobileNav.show {
    display: block;
  }

  /* Hide full nav list by default, vertical display on mobile */
  .nav-list {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding-left: 0;
  }

  /* Show nav-list only when mobileNav is shown */
  #mobileNav.show .nav-list {
    display: flex;
  }

  .nav-list li {
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .nav-list li a {
    width: 100%;
    display: block;
  }

  .section {
    padding: 1rem;
  }

  .card, .wide-card {
    min-height: auto;
    padding: 1rem;
  }

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

  .timeline img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0.5rem 0;
  }
}
