/* ==========================================================================
   CUSTOM STYLES FOR STUTTERBANK
   ========================================================================== */

/* ==========================================================================
   CSS VARIABLES & MIXINS
   ========================================================================== */
:root {
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --secondary-gradient: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  --primary-color: #667eea;
  --secondary-color: #764ba2;
  --text-dark: #2c3e50;
  --text-medium: #555;
  --text-light: #666;
  --white: #ffffff;
  --shadow-light: 0 10px 40px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 15px 50px rgba(102, 126, 234, 0.15);
  --shadow-heavy: 0 20px 60px rgba(102, 126, 234, 0.2);
  --border-radius: 20px;
  --transition: all 0.3s ease;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes backgroundPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

@keyframes iconBounce {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-5px); }
}

@keyframes iconFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-5px); }
}

@keyframes counterPulse {
  0%, 100% {
    transform: scale(1);
    color: var(--primary-color);
  }
  50% {
    transform: scale(1.1);
    color: var(--secondary-color);
  }
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.page__hero--overlay {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.page__hero--overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(102, 126, 234, 0.7) 0%, 
    rgba(118, 75, 162, 0.6) 25%, 
    rgba(102, 126, 234, 0.5) 50%, 
    rgba(118, 75, 162, 0.7) 75%, 
    rgba(102, 126, 234, 0.8) 100%);
  z-index: 1;
}

.page__hero--overlay .wrapper {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.page__hero--overlay .page__title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: var(--white);
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
  line-height: 1.2;
  text-align: center;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.page__hero--overlay .page__lead {
  font-size: 1.4rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
  color: var(--white);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  font-weight: 400;
}

.page__hero--overlay .btn {
  background: var(--primary-gradient);
  border: none;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 1px;
  animation: fadeInUp 1s ease-out 1s both;
}

.page__hero--overlay .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
  background: var(--secondary-gradient);
}

/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */
.page__footer {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  color: var(--white);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
  position: relative;
  overflow: hidden;
}

.page__footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 20%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(118, 75, 162, 0.1) 0%, transparent 50%);
  z-index: 0;
}

.page__footer footer {
  position: relative;
  z-index: 1;
  text-align: center;
}

.page__footer-follow {
  margin-bottom: 2rem;
}

.page__footer-follow .social-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.page__footer-follow .social-icons li {
  display: inline-block;
  margin: 0.5rem;
}

.page__footer-follow .social-icons a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 25px;
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page__footer-follow .social-icons a:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  color: var(--white);
}

.page__footer-follow .social-icons i {
  font-size: 1.2rem;
  color: var(--primary-color);
}

.page__footer-copyright {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
}

.page__footer-copyright a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.page__footer-copyright a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* ==========================================================================
   CONTENT CARDS
   ========================================================================== */
.content-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.95) 100%);
  backdrop-filter: blur(15px);
  border-radius: 25px;
  padding: 3rem;
  margin: 3rem 0;
  box-shadow: 0 15px 50px rgba(102, 126, 234, 0.15);
  border: 2px solid rgba(102, 126, 234, 0.1);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.content-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea, #764ba2, #667eea);
  background-size: 200% 100%;
  animation: gradientShift 3s ease infinite;
}

.content-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 70px rgba(102, 126, 234, 0.25);
}

.content-card p {
  font-size: 1.3rem;
  line-height: 1.8;
  color: #2c3e50;
  margin-bottom: 1.5rem;
  text-align: center;
  font-weight: 500;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 2;
}


/* ==========================================================================
   CALL TO ACTION SECTIONS
   ========================================================================== */
.cta-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 4rem 2rem;
  border-radius: 25px;
  margin: 4rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
  transition: all 0.3s ease;
}

.cta-section:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 80px rgba(102, 126, 234, 0.4);
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 40% 60%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
  z-index: 0;
  animation: backgroundPulse 8s ease-in-out infinite;
}

@keyframes backgroundPulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

.cta-section::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: 
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 30%),
    radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.08) 0%, transparent 30%);
  animation: rotate 20s linear infinite;
  z-index: 0;
}

@keyframes rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.cta-section > * {
  position: relative;
  z-index: 1;
}

.cta-section h2 {
  color: white;
  border: none;
  font-size: 3rem;
  margin-bottom: 1.5rem;
  font-weight: 800;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.cta-section h2::after {
  display: none;
}

.cta-section p {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 3rem;
  line-height: 1.6;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.cta-section .dynamic-content {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 2.5rem;
  margin: 2rem 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.cta-section .dynamic-content:hover {
  transform: translateY(-8px) scale(1.02);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.cta-section .dynamic-content h3 {
  color: white;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.cta-section .dynamic-content[data-section="researchers"] h3::before {
  content: '🔬';
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  animation: iconBounce 2s ease-in-out infinite;
}

.cta-section .dynamic-content[data-section="participants"] h3::before {
  content: '🎤';
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  animation: iconBounce 2s ease-in-out infinite;
}

@keyframes iconBounce {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-5px); }
}

.cta-section .dynamic-content p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  line-height: 1.7;
  text-align: left;
}

/* Section divider - enhanced version from head.html */

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* ==========================================================================
   BUTTON STYLES
   ========================================================================== */
.btn {
  display: inline-block;
  padding: 1.2rem 3rem;
  background: var(--primary-gradient);
  color: var(--white);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
  animation: buttonPulse 2s ease-in-out infinite;
}

.btn:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 20px 50px rgba(102, 126, 234, 0.5);
  color: var(--white);
  text-decoration: none;
}

.btn:active {
  transform: translateY(-2px) scale(1.02);
}

.btn-secondary {
  background: var(--secondary-gradient);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
  background: var(--primary-gradient);
  border-color: rgba(255, 255, 255, 0.5);
}

/* CTA section specific button styling */
.cta-section .btn {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.cta-section .btn:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.2) 100%);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  color: var(--white);
}

.cta-section .btn::before {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
}

/* ==========================================================================
   TEAM MEMBER CARDS
   ========================================================================== */
.team-member {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.team-member::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea, #764ba2, #667eea);
  background-size: 200% 100%;
  animation: gradientShift 3s ease infinite;
}



.team-member:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.team-member h3 {
  color: #2c3e50;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.team-member p {
  color: #555;
  margin-bottom: 0.5rem;
}

.team-member a {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
}

.team-member a:hover {
  color: #764ba2;
  text-decoration: underline;
}

/* ==========================================================================
   INSTITUTION LOGOS
   ========================================================================== */
.institution-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin: 3rem 0;
  flex-wrap: wrap;
}

.institution-logo {
  background: white;
  padding: 1.5rem;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid #e0e0e0;
}

.institution-logo:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.institution-logo img {
  max-height: 80px;
  width: auto;
}

/* ==========================================================================
   PUBLICATION ITEMS
   ========================================================================== */
.publication-item {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  position: relative;
}

.publication-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  border-radius: 15px 15px 0 0;
}

.publication-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.publication-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.publication-authors {
  color: #555;
  margin-bottom: 0.5rem;
  font-style: italic;
}

.publication-venue {
  color: #667eea;
  font-weight: 600;
  margin-bottom: 1rem;
}

.publication-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.publication-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.publication-links a:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
  color: white;
}

/* ==========================================================================
   BIO BOX
   ========================================================================== */
.bio-box {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.bio-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.bio-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #667eea;
  box-shadow: 0 5px 20px rgba(102, 126, 234, 0.2);
}

.bio-info h3 {
  color: #2c3e50;
  margin-bottom: 0.5rem;
  font-size: 1.4rem;
}

.bio-info p {
  color: #555;
  margin-bottom: 0.3rem;
  font-size: 1rem;
}

.bio-info a {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
}

.bio-info a:hover {
  color: #764ba2;
  text-decoration: underline;
}

/* ==========================================================================
   TEAM PAGE STYLES - RESPONSIVE DESIGN
   ========================================================================== */

/* Page Container */
.team-page-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Page Header */
.team-page-header {
  text-align: center;
  margin-bottom: 4rem;
  padding: 2rem 0;
  width: 100%;
  max-width: 100%;
}

.team-page-title {
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.team-page-subtitle {
  font-size: 1.2rem;
  color: var(--text-medium);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Team Sections */
.team-section {
  margin-bottom: 3rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.95) 100%);
  backdrop-filter: blur(15px);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 40px rgba(102, 126, 234, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: visible;
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-self: stretch;
}

.team-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  /* background: linear-gradient(90deg, #667eea, #764ba2, #667eea); */
  background-size: 200% 100%;
  animation: gradientShift 3s ease infinite;
}

.team-section-header {
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
  z-index: 2;
  width: 100%;
}

.team-section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.team-section-description {
  font-size: 1.1rem;
  color: var(--text-medium);
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
}

/* Team Grid - Responsive Grid Layout */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  align-self: stretch;
}

/* Clean grid layout - no scroll effects needed */

/* Team Member Cards */
.team-member-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  height: 100%;
  min-height: 380px;
}

.team-member-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  border-radius: 20px 20px 0 0;
}

.team-member-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(102, 126, 234, 0.2);
}

.team-member-image {
  margin-bottom: 1.5rem;
}

.team-member-card .bio-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #667eea;
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.2);
  transition: all 0.3s ease;
  margin-bottom: 1rem;
}

.team-member-card:hover .bio-photo {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.team-member-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.team-member-name {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.team-member-institution,
.team-member-role {
  font-size: 0.95rem;
  color: var(--text-medium);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.team-member-email a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.team-member-email a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* Institution Logos */
.institution-logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  justify-items: center;
  align-items: center;
  position: relative;
  z-index: 2;
  padding: 1rem 0;
}

.institution-logo {
  text-align: center;
  transition: all 0.3s ease;
  width: 100%;
  max-width: 200px;
}

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

.institution-logo a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--text-dark);
  transition: all 0.3s ease;
}

.institution-logo img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  margin-bottom: 1rem;
}

.institution-logo:hover img {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

.institution-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
}

/* Community Champions */
.community-champions {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.95) 100%);
  backdrop-filter: blur(15px);
  border-radius: 25px;
  padding: 3rem;
  box-shadow: 0 15px 50px rgba(102, 126, 234, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
  margin: 4rem 0;
}

.community-champions::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea, #764ba2, #667eea);
  background-size: 200% 100%;
  animation: gradientShift 3s ease infinite;
}

/* ==========================================================================
   PAGE CONTENT RESPONSIVE IMPROVEMENTS
   ========================================================================== */
.page__content {
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  padding: 0 1rem;
  box-sizing: border-box;
}

/* Ensure proper responsive behavior for all page content */
.page__content * {
  box-sizing: border-box;
}

/* Improve text readability and spacing */
.page__content h1,
.page__content h2,
.page__content h3,
.page__content h4,
.page__content h5,
.page__content h6 {
  line-height: 1.3;
  margin-bottom: 1rem;
}

.page__content p {
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Responsive images in page content */
.page__content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Responsive tables */
.page__content table {
  width: 100%;
  overflow-x: auto;
  display: block;
  white-space: nowrap;
}

.page__content table th,
.page__content table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

/* Responsive lists */
.page__content ul,
.page__content ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.page__content li {
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

/* ==========================================================================
   SPONSORS SECTION
   ========================================================================== */
.sponsors-list { 
  justify-content: center; 
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.sponsors-list > a {
  display: flex;
  flex-direction: row;
  justify-content: center;
  background-color: #fff;
  border: 1px solid #d3d3d3;
  border-radius: 10px;
  align-items: center;
  margin: 0.2em;
  padding: 1rem;
  text-align: center;
  transition: all 0.3s ease;
  min-width: 150px;
}

.sponsors-list a { 
  text-decoration: none; 
  color: #333;
}

.sponsors-list > a > .dummy-padding { margin-top: 100%; }
.sponsors-list > a > img { 
  margin: 0; 
  max-height: 60px;
  width: auto;
}
.sponsors-list > a:hover { 
  box-shadow: 0 5px 20px rgba(102, 126, 234, 0.3);
  transform: translateY(-3px);
  border-color: #667eea;
}
.sponsors-list > a:hover > img { box-shadow: none !important; }

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 768px) {
  .page__hero--overlay {
    min-height: 70vh;
    background-attachment: scroll;
  }
  
  .page__hero--overlay .page__title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
  }
  
  .page__hero--overlay .page__lead {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
  }
  
  .page__hero--overlay .btn {
    padding: 0.8rem 2rem;
    font-size: 1rem;
  }
  
  .content-card {
    padding: 2rem 1.5rem;
    margin: 2rem 0;
    border-radius: 20px;
  }
  
  .content-card p {
    font-size: 1.2rem;
    line-height: 1.7;
  }
  
  .cta-section {
    padding: 2.5rem 1rem;
    margin: 2rem 0;
  }
  
  .cta-section h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
  }
  
  .cta-section p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }
  
  .cta-section .dynamic-content {
    padding: 2rem 1.5rem;
    margin: 1.5rem 0;
  }
  
  .cta-section .dynamic-content h3 {
    font-size: 1.5rem;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .cta-section .dynamic-content[data-section="researchers"] h3::before,
  .cta-section .dynamic-content[data-section="participants"] h3::before {
    width: 35px;
    height: 35px;
    font-size: 1.2rem;
  }
  
  .cta-section .dynamic-content p {
    font-size: 1rem;
    text-align: center;
  }
  
  .btn {
    padding: 1rem 2.5rem;
    font-size: 1rem;
    letter-spacing: 1px;
  }
  
  .bio-box {
    flex-direction: column;
    text-align: center;
  }
  
  .bio-photo {
    width: 100px;
    height: 100px;
  }
  
  .page__footer-follow .social-icons {
    gap: 1rem;
  }
  
  .page__footer-follow .social-icons a {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
  
  /* Team Page Responsive - Tablet */
  .team-page-container {
    padding: 1.5rem 0.5rem;
  }
  
  .team-page-title {
    font-size: 2.5rem;
  }
  
  .team-page-subtitle {
    font-size: 1.1rem;
  }
  
  .team-section {
    padding: 2rem 1.5rem;
    margin-bottom: 2.5rem;
  }
  
  .team-section-title {
    font-size: 1.8rem;
  }
  
  .team-section-description {
    font-size: 1rem;
  }
  
  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
  }
  
  .team-member-card {
    padding: 1.5rem;
    min-height: 350px;
  }
  
  .team-member-card .bio-photo {
    width: 100px;
    height: 100px;
  }
  
  .team-member-name {
    font-size: 1.3rem;
  }
  
  .institution-logos {
    gap: 2rem;
  }
  
  .institution-logo img {
    width: 100px;
    height: 100px;
  }
  
  .community-champions {
    padding: 2.5rem 2rem;
  }
}

@media (max-width: 480px) {
  .cta-section {
    padding: 2rem 0.8rem;
    margin: 1.5rem 0;
    border-radius: 20px;
  }
  
  .cta-section h2 {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
  }
  
  .cta-section p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .cta-section .dynamic-content {
    padding: 1.5rem 1rem;
    margin: 1rem 0;
    border-radius: 15px;
  }
  
  .cta-section .dynamic-content h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
  }
  
  .cta-section .dynamic-content[data-section="researchers"] h3::before,
  .cta-section .dynamic-content[data-section="participants"] h3::before {
    width: 30px;
    height: 30px;
    font-size: 1rem;
  }
  
  .cta-section .dynamic-content p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }
  
  .btn {
    padding: 0.8rem 2rem;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
  }
  
  /* Team Page Mobile Responsive */
  .team-page-container {
    padding: 1rem 0.5rem;
  }
  
  .team-page-title {
    font-size: 2rem;
  }
  
  .team-page-subtitle {
    font-size: 1rem;
  }
  
  .team-section {
    padding: 1.5rem 1rem;
    margin-bottom: 2rem;
  }
  
  .team-section-title {
    font-size: 1.6rem;
  }
  
  .team-section-description {
    font-size: 0.95rem;
  }
  
  .team-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .team-member-card {
    padding: 1.5rem;
    min-height: 320px;
  }
  
  .team-member-card .bio-photo {
    width: 80px;
    height: 80px;
  }
  
  .team-member-name {
    font-size: 1.2rem;
  }
  
  .team-member-institution,
  .team-member-role {
    font-size: 0.9rem;
  }
  
  .team-member-email a {
    font-size: 0.85rem;
  }
  
  .institution-logos {
    gap: 1.5rem;
    flex-direction: column;
  }
  
  .institution-logo img {
    width: 80px;
    height: 80px;
  }
  
  .institution-name {
    font-size: 0.9rem;
  }
  
  .community-champions {
    padding: 2rem 1.5rem;
  }
}

/* ==========================================================================
   STATS SECTION
   ========================================================================== */
.page__content .stats-section,
.stats-section {
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: stretch !important;
  gap: 2rem !important;
  margin: 3rem 0 !important;
  flex-wrap: wrap !important;
  width: 100% !important;
  list-style: none !important;
  padding: 0 !important;
}

/* Enhanced section divider */
.section-divider {
  height: 3px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0.3) 20%, 
    rgba(255, 255, 255, 0.8) 50%, 
    rgba(255, 255, 255, 0.3) 80%, 
    transparent 100%);
  margin: 3rem 0;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.section-divider::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.6), 
    transparent);
  animation: dividerFlow 3s ease-in-out infinite;
}

@keyframes dividerFlow {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Enhanced button styling with additional effects */
.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.6s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover::after {
  width: 300px;
  height: 300px;
}

@keyframes buttonPulse {
  0%, 100% {
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
  }
  50% {
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.6);
  }
}

.page__content .stats-section *,
.stats-section * {
  box-sizing: border-box !important;
}

.page__content .stat-card,
.stat-card {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px) !important;
  border-radius: 20px !important;
  padding: 2rem 1.5rem !important;
  text-align: center !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1) !important;
  transition: all 0.3s ease !important;
  position: relative !important;
  overflow: hidden !important;
  flex: 1 !important;
  min-width: 200px !important;
  max-width: 300px !important;
  margin: 0 1rem !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
}

.page__content .stat-card::before,
.stat-card::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 4px !important;
  background: linear-gradient(90deg, #667eea, #764ba2, #667eea) !important;
  background-size: 200% 100% !important;
  animation: gradientShift 3s ease infinite !important;
}

.page__content .stat-card::after,
.stat-card::after {
  content: '' !important;
  position: absolute !important;
  top: -50% !important;
  left: -50% !important;
  width: 200% !important;
  height: 200% !important;
  background: radial-gradient(circle, rgba(102, 126, 234, 0.03), transparent) !important;
  animation: rotate 15s linear infinite !important;
  z-index: 0 !important;
}

.page__content .stat-card > *,
.stat-card > * {
  position: relative !important;
  z-index: 1 !important;
}

.page__content .stat-card:hover,
.stat-card:hover {
  transform: translateY(-10px) scale(1.02) !important;
  box-shadow: 0 20px 60px rgba(102, 126, 234, 0.2) !important;
}

.page__content .stat-icon,
.stat-icon {
  font-size: 3rem !important;
  margin-bottom: 1rem !important;
  display: block !important;
  animation: iconFloat 3s ease-in-out infinite !important;
}

@keyframes iconFloat {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-5px);
  }
}

.page__content .stat-card h3,
.stat-card h3 {
  color: #2c3e50 !important;
  font-size: 1.3rem !important;
  font-weight: 700 !important;
  margin-bottom: 1rem !important;
  line-height: 1.3 !important;
}

.page__content .stat-card .stats-counter,
.stat-card .stats-counter {
  font-size: 3rem !important;
  font-weight: 800 !important;
  color: #667eea !important;
  text-shadow: 0 0 20px rgba(102, 126, 234, 0.3) !important;
  margin-bottom: 0.5rem !important;
  background: linear-gradient(135deg, #667eea, #764ba2) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  animation: counterPulse 2s ease-in-out infinite !important;
}

.page__content .stat-card p,
.stat-card p {
  color: #666 !important;
  font-size: 1rem !important;
  font-weight: 500 !important;
  margin: 0 !important;
  line-height: 1.4 !important;
}


/* Responsive design for stats */
@media (max-width: 1024px) and (min-width: 769px) {
  .stats-section {
    flex-wrap: wrap !important;
    justify-content: center !important;
  }
  
  .stat-card {
    flex: 0 0 calc(50% - 2rem) !important;
    margin: 0 1rem 2rem 1rem !important;
  }
}

@media (max-width: 768px) {
  .stats-section {
    flex-direction: column !important;
    gap: 1.5rem !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 1rem !important;
    margin: 2rem auto !important;
    max-width: 100% !important;
    width: 100% !important;
    display: flex !important;
  }
  
  .stat-card {
    min-height: 200px !important;
    padding: 1.5rem 1rem !important;
    margin: 0 auto !important;
    max-width: 350px !important;
    min-width: 280px !important;
    width: 100% !important;
    align-self: center !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
  }
  
  .stat-icon {
    font-size: 2.5rem !important;
  }
  
  .stat-card .stats-counter {
    font-size: 2.5rem !important;
  }
  
  .stat-card h3 {
    font-size: 1.2rem !important;
  }
}

@media (max-width: 480px) {
  .stats-section {
    padding: 0 0.5rem !important;
    gap: 1rem !important;
    margin: 1.5rem auto !important;
    max-width: 100% !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
  }
  
  .stat-card {
    min-width: 250px !important;
    max-width: 320px !important;
    padding: 1.2rem 0.8rem !important;
    margin: 0 auto !important;
    align-self: center !important;
    min-height: 180px !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
  }
  
  .stat-icon {
    font-size: 2rem !important;
  }
  
  .stat-card .stats-counter {
    font-size: 2rem !important;
  }
  
  .stat-card h3 {
    font-size: 1.1rem !important;
  }
}