/* 
   100RE LABORATORY - Member Page Stylesheet
   Theme: Academic Clean Energy, Oswald & Roboto Condensed Typography
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Open+Sans:ital,wght@0,300;0,400;0,600;0,700;1,400;1,600&family=Oswald:wght@300;400;500;600;700&family=Roboto+Condensed:ital,wght@0,300;0,400;0,700;1,400;1,700&display=swap');

:root {
  --primary: #16a34a;
  --primary-hover: #15803d;
  --primary-light: #f0fdf4;
  --wix-banner-bg: #81a2b1;
  --wix-title-dark: #1b384c;
  --wix-red: #df3336;
  --accent: #10b981;
  --dark-bg: #0f172a;
  --header-bg: #ffffff;
  --card-bg: #ffffff;
  --card-border: #e2e8f0;
  --card-hover-border: #81a2b1;
  --text-main: #1f2937;
  --text-muted: #4b5563;
  --text-light: #6b7280;
  --bg-main: #ffffff;
  --bg-alt: #f8fafc;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 28px rgba(0,0,0,0.12);
  --radius-sm: 0px;
  --radius-md: 0px;
  --radius-lg: 0px;
  --radius-xl: 0px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto Condensed', 'Open Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-main);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* NAVBAR */
.navbar {
  position: sticky;
  top: 0;
  background: #ffffff;
  z-index: 3000;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.25s ease;
}
.navbar.scrolled {
  background: #ffffff;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
  border-bottom-color: #cbd5e1;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  padding: 4px 0;
}

/* Logo */
.logo-wrapper {
  display: flex;
  align-items: center;
  padding: 4px 0;
}

.logo-img {
  height: 52px;
  max-width: 240px;
  width: auto;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.logo-wrapper:hover .logo-img {
  transform: scale(1.02);
}

/* Navigation Links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 14px;
  font-family: 'Oswald', sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
  color: #1f2937;
  letter-spacing: 0.3px;
  border-radius: 0px;
  transition: var(--transition);
}

.nav-link:hover,
.nav-item:hover > .nav-link {
  color: var(--wix-red);
}

.nav-link.active {
  color: var(--wix-red) !important;
  font-weight: 700;
}

.nav-link.active::after {
  display: none;
}


.dropdown-icon {
  font-size: 0.7rem;
  transition: transform 0.25s ease;
}
.nav-item:hover .dropdown-icon {
  transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  background: #ffffff;
  border-radius: 0px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
  border: 1px solid #e2e8f0;
  border-top: 3px solid #16a34a;
  padding: 8px 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1001;
}

.dropdown-menu.dropdown-scrollable {
  max-height: 420px;
  overflow-y: auto;
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  font-size: 0.88rem;
  font-weight: 500;
  color: #475569;
  transition: var(--transition);
  border-left: 3px solid transparent;
}

.dropdown-item a:hover {
  color: var(--primary);
  background: #f0fdf4;
  border-left-color: var(--primary);
  padding-left: 22px;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  font-size: 1.3rem;
  color: #0f172a;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 0px;
  transition: all 0.2s ease;
}

.mobile-toggle:hover {
  background: #e2e8f0;
  color: #16a34a;
}

/* Mobile Drawer Overlay */
.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2500;
  display: none;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: auto;
}
.mobile-nav-backdrop.show {
  display: block;
  opacity: 1;
}

@media (max-width: 900px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: -320px;
    width: 290px;
    height: 100vh;
    background: #ffffff !important;
    opacity: 1 !important;
    visibility: visible !important;
    filter: none !important;
    -webkit-filter: none !important;
    flex-direction: column;
    align-items: stretch;
    padding: 70px 20px 30px;
    gap: 6px;
    border-left: 1px solid #e2e8f0;
    box-shadow: -6px 0 28px rgba(0, 0, 0, 0.25);
    overflow-y: auto;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 3005;
    pointer-events: auto !important;
  }
  .nav-menu.show {
    right: 0;
  }
  .mobile-toggle {
    display: block;
    position: relative;
    z-index: 3010;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: #f8fafc;
    border-left: 2px solid #16a34a;
    padding-left: 10px;
    margin: 4px 0 8px;
    display: none;
  }
  .nav-item.dropdown-open .dropdown-menu {
    display: block;
  }

  .nav-menu .nav-link {
    color: #0f172a !important;
    font-size: 1.1rem !important;
    padding: 10px 14px;
    border-radius: 0px;
    justify-content: space-between;
  }
  .nav-menu .nav-link:hover,
  .nav-menu .nav-link.active {
    color: var(--wix-red) !important;
    background: #f8fafc;
  }
  .nav-menu .dropdown-item a {
    color: #334155 !important;
    font-size: 0.95rem;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
  }
}


/* HERO SECTION */
.hero-section {
  background: #ffffff;
  color: #1f2937;
  padding: 50px 0 30px;
  position: relative;
  text-align: center;
  border-bottom: 1px solid #f1f5f9;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 4px 14px;
  border-radius: 0px;
  font-size: 0.825rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 16px;
}

.hero-title {
  font-family: 'Oswald', sans-serif;
  font-size: 3.4rem;
  font-weight: 700;
  color: var(--wix-title-dark);
  margin-bottom: 14px;
  text-transform: none;
  line-height: 1.15;
}

.hero-title span {
  color: var(--wix-title-dark);
}

.hero-desc {
  font-family: 'Roboto Condensed', 'Open Sans', sans-serif;
  font-size: 1.05rem;
  line-height: 1.75;
  color: #374151;
  margin-bottom: 30px;
  font-weight: 400;
}

/* SEARCH & FILTER BAR */
.control-bar {
  background: #ffffff;
  border-radius: 0px;
  padding: 14px 18px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 15px;
  border: 1px solid #e2e8f0;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  padding: 8px 14px;
  border-radius: 0px;
  flex: 1;
  min-width: 260px;
}
.search-box i {
  color: #94a3b8;
}
.search-box input {
  border: none;
  background: none;
  outline: none;
  font-size: 0.95rem;
  width: 100%;
  color: #1e293b;
  font-family: inherit;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  overflow-x: auto;
  padding: 4px 0;
}

.filter-btn {
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #475569;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 0px;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.filter-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.filter-btn.active {
  background: var(--wix-banner-bg);
  color: #ffffff;
  border-color: var(--wix-banner-bg);
}

/* SECTION STYLES */
.section {
  padding: 40px 0 60px;
}

.section-header {
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.section-title-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.section-icon {
  width: 40px;
  height: 40px;
  border-radius: 0px;
  background: var(--wix-banner-bg);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.section-title {
  font-family: 'Oswald', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--wix-title-dark);
  text-transform: none;
  letter-spacing: 0.5px;
}

.section-count {
  font-size: 0.85rem;
  font-weight: 700;
  color: #4b5563;
  background: #f1f5f9;
  padding: 4px 12px;
  border-radius: 0px;
}

/* WIX DISTINCTIVE STEEL BLUE TEAM BANNER */
.team-header-banner {
  background: var(--wix-banner-bg);
  color: #ffffff;
  padding: 16px 20px;
  margin-bottom: 28px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-radius: 0px;
}

.team-header-banner .team-title {
  font-family: 'Oswald', sans-serif;
  font-size: 2.3rem;
  font-weight: 600;
  color: #ffffff;
  text-transform: none;
  letter-spacing: 0.5px;
  margin: 0;
}

.team-header-banner .team-banner-right {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
}

/* SUPERVISORS SECTION */
.supervisors-grid {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.supervisor-card {
  background: #ffffff;
  border-radius: 0px;
  border: 1px solid #e2e8f0;
  box-shadow: var(--shadow-sm);
  padding: 24px 28px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  transition: var(--transition);
  position: relative;
}

.supervisor-card:hover {
  border-color: var(--wix-banner-bg);
  box-shadow: var(--shadow-md);
}

.supervisor-avatar-wrap {
  position: relative;
}

.supervisor-avatar {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  border-radius: 0px;
  border: 1px solid #cbd5e1;
}

.supervisor-badge-tag {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(27, 56, 76, 0.9);
  color: #ffffff;
  padding: 4px 8px;
  border-radius: 0px;
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.5px;
}

.supervisor-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.supervisor-name {
  font-family: 'Oswald', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  font-style: italic;
  color: var(--wix-title-dark);
  line-height: 1.25;
}

.supervisor-affiliation {
  font-size: 0.95rem;
  font-weight: 600;
  color: #4b5563;
  margin-top: -6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.info-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #fafbfc;
  padding: 14px 18px;
  border-radius: 0px;
  border: 1px solid #e2e8f0;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: #334155;
  line-height: 1.5;
}

.info-item strong {
  color: var(--wix-title-dark);
}

.supervisor-bio {
  font-size: 0.88rem;
  color: #374151;
  line-height: 1.65;
}

.supervisor-bio strong {
  color: var(--wix-title-dark);
}


.info-item i {
  color: #16a34a;
  font-size: 1rem;
  margin-top: 3px;
  flex-shrink: 0;
}

.info-item strong {
  color: #334155;
  margin-right: 4px;
}

.info-item a {
  color: #16a34a;
  word-break: break-all;
}
.info-item a:hover {
  text-decoration: underline;
}

.supervisor-bio {
  font-size: 0.925rem;
  line-height: 1.7;
  color: #475569;
  text-align: justify;
}

.supervisor-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.btn-profile-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 0px;
  font-size: 0.825rem;
  font-weight: 600;
  transition: var(--transition);
}

.btn-orcid {
  background: #a6ce39;
  color: #ffffff;
}
.btn-orcid:hover {
  background: #8fb52d;
}

.btn-scholar {
  background: #4285f4;
  color: #ffffff;
}
.btn-scholar:hover {
  background: #2b6cb0;
}

.btn-email {
  background: #e2e8f0;
  color: #334155;
}
.btn-email:hover {
  background: #cbd5e1;
  color: #0f172a;
}

/* RESEARCH TEAMS SECTION */
.team-block {
  margin-bottom: 45px;
  background: #ffffff;
  border-radius: 0px;
  border: 1px solid #e2e8f0;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
}

.team-block:hover {
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.team-header-banner {
  background: var(--wix-banner-bg);
  color: #ffffff;
  padding: 14px 20px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.team-header-banner .team-title {
  font-family: 'Oswald', sans-serif;
  font-size: 2.2rem;
  font-weight: 600;
  color: #ffffff;
  text-transform: none;
  letter-spacing: 0.5px;
  margin: 0;
}


.team-name {
  font-family: 'Oswald', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.team-member-count {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px);
  color: #ffffff;
  padding: 4px 14px;
  border-radius: 0px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.team-members-grid {
  padding: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

/* MEMBER CARD */
.member-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0px;
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}

.member-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--wix-banner-bg);
}

.member-photo-wrap {
  width: 100%;
  aspect-ratio: 3 / 4;
  height: auto;
  position: relative;
  overflow: hidden;
  background: #f1f5f9;
}

.member-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.3s ease;
}

.member-card:hover .member-photo {
  transform: scale(1.03);
}

.member-overlay-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(27, 56, 76, 0.85);
  color: #ffffff;
  font-size: 0.725rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 0px;
}

.member-content {
  padding: 14px 10px 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: #ffffff;
  border-top: 1px solid #f1f5f9;
}

.member-name {
  font-family: 'Oswald', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--wix-title-dark);
  margin-bottom: 2px;
  letter-spacing: 0.3px;
  line-height: 1.25;
}

.member-team-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #15803d;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 2px 8px;
  border-radius: 0px;
  margin-bottom: 6px;
}

.member-btn-quickview {
  width: 100%;
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #475569;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0px;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.member-btn-quickview:hover {
  background: var(--wix-banner-bg);
  color: #ffffff;
  border-color: var(--wix-banner-bg);
}

/* MODAL */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-backdrop.show {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: #ffffff;
  border-radius: 0px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: scale(0.95);
  transition: var(--transition);
  position: relative;
  padding: 30px;
}


.modal-backdrop.show .modal-card {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  background: #f1f5f9;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 0px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #64748b;
  cursor: pointer;
  transition: var(--transition);
}

.modal-close-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.modal-header-info {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
  align-items: center;
}

.modal-avatar {
  width: 100px;
  height: 120px;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.modal-title-wrap h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.5rem;
  color: #0f172a;
  margin-bottom: 4px;
}

.modal-title-wrap p {
  color: #16a34a;
  font-weight: 600;
  font-size: 0.9rem;
}

.modal-body {
  font-size: 0.925rem;
  color: #475569;
  line-height: 1.7;
}

/* FOOTER */
.footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 60px 0 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col-title {
  font-family: 'Oswald', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 18px;
  position: relative;
  display: inline-block;
}

.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 32px;
  height: 3px;
  background: var(--accent);
  border-radius: 0px;
}

.footer-info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.9rem;
}

.footer-info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  line-height: 1.6;
}

.footer-info-item i {
  color: #4ade80;
  font-size: 1.1rem;
  margin-top: 3px;
  flex-shrink: 0;
}

.footer-info-item strong {
  color: #ffffff;
}

.footer-info-item a {
  color: #93c5fd;
  transition: var(--transition);
}
.footer-info-item a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: #94a3b8;
}

.footer-social-links {
  display: flex;
  gap: 14px;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: 0px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: var(--transition);
}

.social-link:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

/* BACK TO TOP BUTTON */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 46px;
  height: 46px;
  background: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: 0px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 999;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary-hover);
  transform: translateY(-4px);
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
  .supervisor-card {
    grid-template-columns: 200px 1fr;
    padding: 24px;
    gap: 24px;
  }
  .supervisor-avatar {
    height: 240px;
  }
}


@media (max-width: 768px) {
  .hero-title {
    font-size: 2.2rem;
  }
  .hero-desc {
    font-size: 1rem;
  }
  .supervisor-card {
    grid-template-columns: 1fr;
  }
  .supervisor-avatar {
    height: 300px;
    max-width: 260px;
    margin: 0 auto;
  }
  .team-members-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    padding: 20px;
    gap: 16px;
  }
  .control-bar {
    flex-direction: column;
    align-items: stretch;
  }
}

/* =========================================================
   ADMIN & AUTHENTICATION STYLES (SQUARE-EDGED)
   ========================================================= */

/* Main Add Member Button in Control Bar (Hidden by default, shown only in Admin Mode) */
.control-actions {
  display: none;
  align-items: center;
  margin-top: 14px;
}

body.admin-mode .control-actions {
  display: flex;
}

.btn-action-add-member {
  background: #10b981;
  color: #ffffff;
  border: 1px solid #059669;
  padding: 10px 22px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
  border-radius: 0px;
}

.btn-action-add-member:hover {
  background: #059669;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35);
}

/* Team Banner Add Member Button (Hidden by default, shown only in Admin Mode) */
.team-banner-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-team-add-member {
  background: rgba(16, 185, 129, 0.9);
  backdrop-filter: blur(4px);
  color: #ffffff;
  border: 1px solid #10b981;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  display: none;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
  border-radius: 0px;
}

body.admin-mode .btn-team-add-member {
  display: inline-flex;
}

.btn-team-add-member:hover {
  background: #059669;
  transform: scale(1.03);
}


/* Admin Status Bar */
.admin-topbar {
  background: #0f172a;
  color: #ffffff;
  padding: 10px 0;
  font-size: 0.875rem;
  border-bottom: 2px solid #16a34a;
  display: none;
  position: sticky;
  top: 0;
  z-index: 1100;
}

.admin-topbar.active {
  display: block;
}

.admin-topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.admin-badge-info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: #4ade80;
}

.admin-badge-info i {
  color: #10b981;
}

.admin-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-admin {
  padding: 6px 14px;
  font-size: 0.825rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
  border-radius: 0px;
}

.btn-admin-add {
  background: #10b981;
  color: #ffffff;
  border-color: #059669;
}
.btn-admin-add:hover {
  background: #059669;
}

.btn-admin-logout {
  background: #ef4444;
  color: #ffffff;
  border-color: #dc2626;
}
.btn-admin-logout:hover {
  background: #dc2626;
}

/* Nav Login Button */
.btn-nav-login {
  background: #16a34a;
  color: #ffffff !important;
  font-weight: 700;
  border: 1px solid #15803d;
  margin-left: 8px;
  border-radius: 0px;
}
.btn-nav-login:hover {
  background: #15803d !important;
  color: #ffffff !important;
}

/* Card Admin Action Buttons */
.card-admin-actions {
  display: none;
  gap: 6px;
  margin-top: 6px;
  width: 100%;
}

body.admin-mode .card-admin-actions {
  display: flex;
}

.btn-card-edit, .btn-card-delete {
  flex: 1;
  padding: 5px 8px;
  font-size: 0.75rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: var(--transition);
  border-radius: 0px;
}

.btn-card-edit {
  background: #f59e0b;
  color: #ffffff;
}
.btn-card-edit:hover {
  background: #d97706;
}

.btn-card-delete {
  background: #ef4444;
  color: #ffffff;
}
.btn-card-delete:hover {
  background: #dc2626;
}

/* Modal Form Styles */
.form-group {
  margin-bottom: 16px;
  text-align: left;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #1e293b;
  font-family: inherit;
  font-size: 0.925rem;
  box-sizing: border-box;
  outline: none;
  transition: var(--transition);
  border-radius: 0px;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: #16a34a;
  background: #ffffff;
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.2);
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
}

.image-preview-box {
  width: 100%;
  height: 140px;
  background: #f1f5f9;
  border: 1px dashed #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  overflow: hidden;
  position: relative;
}

.image-preview-img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.btn-form-submit {
  width: 100%;
  padding: 12px;
  background: #16a34a;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  border-radius: 0px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.btn-form-submit:hover {
  background: #15803d;
}

.form-alert-error {
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #f87171;
  padding: 8px 12px;
  font-size: 0.85rem;
  margin-bottom: 14px;
  display: none;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: #0f172a;
  color: #ffffff;
  padding: 12px 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  border-left: 4px solid #10b981;
  border-radius: 0px;
  animation: slideInToast 0.3s ease;
}

.toast.error {
  border-left-color: #ef4444;
}

@keyframes slideInToast {
  from {
    transform: translateX(-30px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
