/* Enhanced styles for interactive lab website */
/* Reset margins and padding for all elements */
/* ============================================
   LOGO AS FIRST TAB IN NAVIGATION
   ============================================ */

/* Force hide hamburger menu and search icons */
.md-header__button[for="__drawer"],
.md-header__button[for="__search"],
.md-header__button.md-header__button--menu,
.md-header__button.md-header__button--search {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}
/* =====================================================
   NAVIGATION FIX FOR BOTH MOBILE + DESKTOP
   ===================================================== */

/* Hide hamburger (menu) and search icons */
.md-header__button[for="__drawer"],
.md-header__button[for="__search"] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Force tabs to always display, even on mobile */
.md-tabs {
  display: flex !important;
  overflow-x: auto !important;
  background: var(--md-primary-fg-color);
}


/* Tab items */
.md-tabs__item {
  flex: 0 0 auto !important;
  display: flex !important;
  align-items: center;
}

/* Tab links */
.md-tabs__link {
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  padding: 0.3rem 0.6rem !important;
  color: white !important;
  text-decoration: none !important;
}

.md-tabs__link:hover {
  opacity: 0.85 !important;
}

/* Add logo before first tab */
.md-tabs__list::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 32px;
  background-image: url('../favicon.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 50%;
  margin-right: 0.7rem;
  border: 2px solid rgba(255,255,255,0.3);
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}




/* Hide hamburger menu button entirely */
.md-header__button.md-header__button--menu {
  display: none !important;
}

/* Keep the title aligned with tabs */
.md-header__title {
  display: flex !important;
  align-items: center;
}


/* Make tabs scrollable horizontally if screen is too narrow */

/* Keep the tabs visible but customize them */
.md-tabs {
  background: var(--md-primary-fg-color);
}

/* Hide the default header logo since we'll show it in tabs */
.md-header__button.md-logo {
  display: none !important;
}

/* Hide the site title */
.md-header__title {
  display: none !important;
}

/* Style the tabs container */
.md-tabs__list {
  display: flex;
  align-items: center;
  padding-left: 2rem;
}
.md-banner a {
  white-space: nowrap;
}

/* Mobile: 1 column layout */
/* Mobile view */



.md-tabs__list::before:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}


.md-tabs__item:first-child .md-tabs__link:hover::before {
  transform: scale(1.1);
  border-color: rgba(255,255,255,0.5);
}


/* Adjust other tabs styling */
.md-tabs__link {
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.8rem 1.2rem;
}

/* Make sure tabs are aligned properly */
.md-tabs__item {
  display: flex;
  align-items: center;
}

/* Mobile responsive */
@media screen and (max-width: 768px) {
  .md-tabs__list::before,
  .md-tabs__item:first-child .md-tabs__link::before {
    width: 32px;
    height: 32px;
    margin-right: 1rem;
  }
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
/* Add this to your extra.css file */

/* Logo container */
.md-header__button.md-logo {
  margin-right: 2rem;  /* Space between logo and nav */
}

/* Create inline navigation */
.md-header__title {
  display: flex !important;
  align-items: center;
  flex-grow: 1;
}

/* Custom inline navigation - add this after the logo in header */
.md-header-nav__inline {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-left: 2rem;
  flex-grow: 1;
}

.md-header-nav__inline a {
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
  transition: opacity 0.3s ease;
}

.md-header-nav__inline a:hover {
  opacity: 0.8;
}

/* Active page indicator */
.md-header-nav__inline a.active {
  border-bottom: 2px solid white;
}

/* Alternative approach using flexbox for the entire header */
.md-header {
  background: var(--md-primary-fg-color);
}

.md-header-nav {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Inject navigation using CSS pseudo-elements (temporary solution) */
.md-header__title:after {
  content: '';
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-left: 3rem;
}


/* Mobile responsive */
@media screen and (max-width: 768px) {
  .md-header-nav__inline {
    display: none;  /* Hide on mobile, use hamburger menu instead */
  }
  
  .md-header__button.md-logo {
    margin-right: 1rem;
  }
}
.md-header__title {
  display: none !important;
}
.md-search {
  display: none !important;
}
/* Enlarge logo in the header */
.md-header__button.md-logo img {
  height: 70px !important;   /* try 40–80px depending on your logo */
  width: 80px;    /* keep aspect ratio */
object-fit: cover;         /* crop nicely */
  border-radius: 50%;  
border: 2px solid white;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.cards-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 20px;
}

/* Card style */
.card {
  background: #f0f8ff;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  padding: 20px;
  text-align: center;
  transition: transform 0.2s;
}

.card:hover {
  transform: translateY(-5px);
}

.card h3 {
  margin: 15px 0 10px;
  font-size: 1.2em;
}

.card p {
  font-size: 0.95em;
  color: #333;
  line-height: 1.4;
}

/* Tablet: switch to 2 columns */
@media (max-width: 992px) {
  .cards-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile: 1 column */

/* Custom color scheme adjustments */
:root {
  --md-primary-fg-color: #3f51b5;
  --md-primary-fg-color--light: #757de8;
  --md-primary-fg-color--dark: #002984;
  --md-accent-fg-color: #673ab7;
  --lab-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --lab-card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --lab-hover-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}
.inline-logo {
  height: 60px;        /* adjust size */
  width: 90px;
  vertical-align: middle; /* aligns with text baseline */
  margin-bottom: 0 !important; 
}
/* Intro section */
.lab-intro {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}

.lab-intro h1 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--md-primary-fg-color);
  margin: 0 !important;              /* Force no margin */
  margin-bottom: 0 !important;       /* No gap below h1 */
  padding: 0;
}

.intro-box {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 0.6rem 1rem;
  margin: 0 !important;              /* Force no margin */
  margin-top: 0 !important;          /* Glued to h1 above */
  margin-bottom: 0 !important;       /* Glued to h2 below */
  box-shadow: 0 3px 6px rgba(0,0,0,0.05);
  font-size: 0.9rem;
  line-height: 1.5;
}

.lab-intro p {
  font-size: 0.7rem;
  margin: 0;
  line-height: 1.6;
}

.lab-intro h2 {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0 !important;              /* Force no margin */
  margin-top: 0 !important;          /* Glued to intro-box */
  margin-bottom: 0 !important;       /* Glued to grid */
  padding: 0;
}

/* Research section */
.research-section {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
  padding: 0;
}

.research-section h2 {
  font-size: 1.6rem;
  font-weight: 600;
  margin: 0 !important;              /* Glued to cards */
  padding: 0;
}

/* Research cards */
.research-card {
  background: #e6f3ff;
  border-radius: 12px;
  width: 100%;
  max-width: 220px;
  max-height: 350px;              /* ensures uniform base height */
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;                  /* flexbox layout */
  flex-direction: column;         /* stack icon, title, text */
  justify-content: flex-start;    /* align items top */
}

.research-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.15);
}

.research-icon {
  font-size: 1.8rem;              /* slightly smaller icon */
  margin-bottom: 0;
 display: block;
  line-height: 1;  
}

.research-card h3 {
  margin: 0;
  font-size: 0.95rem;             /* adjusted title size */
  margin-bottom: 0.1rem;
}
.research-card p {
  font-size: 0.5rem;
  line-height: 1.3;
  margin: 0;
  word-wrap: break-word;          /* force wrapping */
  overflow: hidden;               /* prevent overflow */
  text-overflow: ellipsis;        /* optional: cut off with ... if too long */
}
.lab-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  margin: 0 !important;              /* No gap */
  box-shadow: var(--lab-card-shadow);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0,0,0,0.05);
}



/* Add this to your extra.css file to remove table borders */
.md-typeset table {
    border: none !important;

}
.md-typeset table td,
.md-typeset table th {
    border: none !important;
}

/* Hide the first h1 on the people page */
.md-content h1:first-child {
    display: none;
}

/* Research areas grid - Desktop (flex layout) */
.research-grid {
  display: flex;
  justify-content: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 0.8rem 0;
}



.research-box {
  background: #f5f7fa;
  border: 1px solid #ddd;
  border-radius: 10px;
  width: 160px;       /* much smaller box */
  height: 120px;      /* half-length style */
  text-align: center;
  padding: 0.8rem;
  box-shadow: 0 3px 6px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.research-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}

.research-icon {
  font-size: 1.5rem;
  margin-bottom: 0.3rem;
  color: #5c6bc0;
}

.research-box h4 {
  font-size: 0.95rem;
  margin: 0.2rem 0;
}

.research-box p {
  font-size: 0.75rem;
  margin: 0;
}

/* Publication cards */
.publication {
  background: white;
  border-left: 4px solid var(--md-primary-fg-color);
  padding: 1.5rem;
  margin: 1rem 0;
  border-radius: 0 8px 8px 0;
  box-shadow: var(--lab-card-shadow);
  transition: all 0.3s ease;
}

.publication:hover {
  box-shadow: var(--lab-hover-shadow);
  border-left-color: var(--md-accent-fg-color);
}

.publication-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--md-primary-fg-color);
  margin-bottom: 0.5rem;
}

.publication-authors {
  color: #666;
  margin-bottom: 0.5rem;
}

.publication-venue {
  font-style: italic;
  color: #888;
  margin-bottom: 0.5rem;
}

.publication-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.badge {
  background: var(--md-primary-fg-color);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.badge:hover {
  background: var(--md-accent-fg-color);
  color: white;
}

/* Interactive buttons */
.btn-interactive {
  background: var(--lab-gradient);
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  position: relative;
  overflow: hidden;
}

.btn-interactive::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.btn-interactive:hover::before {
  left: 100%;
}

.btn-interactive:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
  color: white;
}

/* Statistics cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.stat-card {
  background: white;
  text-align: center;
  padding: 2rem 1rem;
  border-radius: 12px;
  box-shadow: var(--lab-card-shadow);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--lab-gradient);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--lab-hover-shadow);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--md-primary-fg-color);
  margin-bottom: 0.5rem;
}

.stat-label {
  color: #666;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .team-grid,
  .research-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .news-timeline {
    padding-left: 1rem;
  }
  
  .news-item:hover {
    transform: translateX(4px);
  }
}

/* Center content properly with equal margins */
.md-main__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.md-content {
    margin: 0;
    max-width: none;
}

.md-content__inner {
    margin: 0;
    padding: 0;
}

/* Hide the sidebar to allow full centering */
.md-sidebar--primary {
    display: none;
}

/* Adjust main container when sidebar is hidden */
.md-main {
    margin-left: 0;
}

/* Make hero section full width within the centered container */
.hero-section {
    margin-left: -2rem;
    margin-right: -2rem;
    padding-left: 2rem;
    padding-right: 2rem;
}

/* Responsive design */
@media screen and (max-width: 768px) {
    .md-main__inner {
        padding: 0 1rem;
    }
    
    .hero-section {
        margin-left: -1rem;
        margin-right: -1rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Hide breadcrumb navigation */
.md-nav__item--active > .md-nav__link[href="#"] {
    display: none !important;
}

.md-nav__item:first-child .md-nav__link {
    display: none !important;
}

/* Hide the home breadcrumb in sidebar */
.md-nav--primary .md-nav__item:first-child {
    display: none;
}

/* Join page specific styles */
.join-hero {
  padding: 1.5rem;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--md-primary-fg-color), #3f51b5);
  color: white;
  margin-bottom: 1.5rem;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.join-hero h1, .join-hero p { 
  color: white; 
  margin: .25rem 0; 
}

.join-hero .md-button { 
  margin-right: .5rem; 
}

/* Enhanced cards styling */
.grid.cards > ul > li {
  border-radius: 10px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
  transition: transform .2s ease, box-shadow .2s ease;
  background: white;
  overflow: hidden;
}

.grid.cards > ul > li:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}


/* Dark mode adjustments */
[data-md-color-scheme="slate"] .lab-card,
[data-md-color-scheme="slate"] .team-member,
[data-md-color-scheme="slate"] .publication,
[data-md-color-scheme="slate"] .news-item,
[data-md-color-scheme="slate"] .stat-card,
[data-md-color-scheme="slate"] .position-card,
[data-md-color-scheme="slate"] .benefit-card,
[data-md-color-scheme="slate"] .faq-item,
[data-md-color-scheme="slate"] .contact-form {
  background: var(--md-code-bg-color);
  border-color: var(--md-default-fg-color--lightest);
}

[data-md-color-scheme="slate"] .research-area {
  background: linear-gradient(135deg, #2a2a2a 0%, #3a3a3a 100%);
}

[data-md-color-scheme="slate"] .grid.cards > ul > li {
  background: var(--md-code-bg-color);
}

[data-md-color-scheme="slate"] .position-requirements {
  background: var(--md-code-bg-color);
}

/* =====================================================
   REMOVE HAMBURGER + SEARCH ICONS COMPLETELY
   ===================================================== */

/* Hamburger (menu) button */
.md-header__button[for="__drawer"],
label.md-header__button[for="__drawer"] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}
.inline-logo {
  height: 32px;             /* Adjust display size */
  vertical-align: middle;   /* Aligns with text */
  image-rendering: -webkit-optimize-contrast; /* Helps browsers render sharper */
}

/* Search button */
.md-header__button[for="__search"],
label.md-header__button[for="__search"] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}


@media (max-width: 576px) {
  .research-grid {
    display: flex !important;
    flex-direction: column !important;    /* stack vertically */
    align-items: center !important;       /* center child items */
    justify-content: center !important;
    width: 100% !important;
  }

  .research-card {
    width: 90% !important;                /* take up most of row */
    max-width: 300px !important;          /* not too wide */
    margin-left: auto !important;         /* force horizontal centering */
    margin-right: auto !important;
    padding: 0.1rem !important;
    box-sizing: border-box !important;
            /* center text inside card */
  }


}




