.alt-photo {
	border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
    max-width: 150px !important;
    width: 150px !important;
    flex-shrink: 0 !important;
    margin-left: 25%;
}

.alt-photo img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
}

/* Biography-specific styles */
.biography-hero {
  padding: 10px 20px 20px !important;
  background: linear-gradient(135deg, #f5f7fa 0%, #d8ed70 100%);
  position: sticky;
  top: 64px;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.biography-hero .wrap {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 15px !important;
  flex-wrap: nowrap !important;
}

.biography-hero .text-content {
  text-align: center !important;
}

.biography-hero h1 {
  font-size: clamp(32px, 4vw, 40px);
  margin: 0 0 8px 0 !important;
  color: var(--navy);
}

.biography-hero p {
	font-family: Merriweather, serif;
	font-size: 18pt;
	color: brown;
	margin: 0 !important;
	font-weight: 600;
}

@media (max-width: 768px) {
  .biography-hero .wrap {
    flex-direction: column !important;
    text-align: center;
  }
  
  .biography-hero .text-content {
    text-align: center;
  }
}

.biography-section {
  padding: 70px 0;
  background: #fff;
}

.bio-list {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.bio-item {
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s, box-shadow 0.2s;
}

.bio-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.bio-item h3 {
  margin: 0 0 12px;
  font-size: 1.3rem;
  color: var(--navy);
  line-height: 1.4;
}

/* Interactive grid styles */
.bio-sections-grid {
  max-width: 1100px;
  margin: 40px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 15px;
  padding: 0 20px;
}

.section-button {
  padding: 16px 12px;
  background: linear-gradient(135deg, var(--navy) 0%, #0066cc 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  box-shadow: 0 3px 8px rgba(0, 44, 84, 0.2);
  min-height: 65px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

/* Individual button colors for a vibrant, happy grid */
.section-button:nth-child(1) {
  background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
  box-shadow: 0 3px 8px rgba(255, 107, 107, 0.3);
}

.section-button:nth-child(2) {
  background: linear-gradient(135deg, #a8e6cf 0%, #7fdbda 100%);
  box-shadow: 0 3px 8px rgba(168, 230, 207, 0.3);
}

.section-button:nth-child(3) {
  background: linear-gradient(135deg, #ffd93d 0%, #ff9f43 100%);
  box-shadow: 0 3px 8px rgba(255, 217, 61, 0.3);
}

.section-button:nth-child(4) {
  background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
  box-shadow: 0 3px 8px rgba(108, 92, 231, 0.3);
}

.section-button:nth-child(5) {
  background: linear-gradient(135deg, #fd79a8 0%, #fdcb6e 100%);
  box-shadow: 0 3px 8px rgba(253, 121, 168, 0.3);
}

.section-button:nth-child(6) {
  background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
  box-shadow: 0 3px 8px rgba(0, 184, 148, 0.3);
}

.section-button:nth-child(7) {
  background: linear-gradient(135deg, #e84393 0%, #fd79a8 100%);
  box-shadow: 0 3px 8px rgba(232, 67, 147, 0.3);
}

.section-button:nth-child(8) {
  background: linear-gradient(135deg, #00b8d4 0%, #4fc3f7 100%);
  box-shadow: 0 3px 8px rgba(0, 184, 212, 0.3);
}

.section-button:nth-child(9) {
  background: linear-gradient(135deg, #81c784 0%, #aed581 100%);
  box-shadow: 0 3px 8px rgba(129, 199, 132, 0.3);
}

.section-button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.section-button.link-button {
  /* Ensure link buttons look identical to regular buttons */
  color: white;
  text-decoration: none;
}

.section-button.link-button:visited {
  color: white;
}

.section-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 44, 84, 0.3);
  background: linear-gradient(135deg, #0066cc 0%, var(--navy) 100%);
}

/* Modal overlay styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 44, 84, 0.8), rgba(0, 102, 204, 0.7));
  backdrop-filter: blur(8px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 20px;
  box-sizing: border-box;
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-content {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 24px;
  max-width: 1240px;
  max-height: 90vh;
  min-height: 90vh;
  width: 100%;
  overflow: hidden;
  position: relative;
  box-shadow: 
    0 25px 50px rgba(0, 44, 84, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  animation: modalSlideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateY(0);
  display: flex;
  flex-direction: column;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header {
  padding: 32px 32px 24px;
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  color: white;
  position: relative;
  border-radius: 24px 24px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.modal-profile-image {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  margin-bottom: 8px;
}

.modal-professor-name {
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
  color: #FFD700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  letter-spacing: -0.025em;
  text-align: center;
  flex: 1;
  padding: 0 60px;
}

.modal-nav {
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  color: white;
  cursor: pointer;
  padding: 8px;
  width: 100px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  font-size: 15px;
  font-weight: bold;
  user-select: none;
}

.modal-nav:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.05);
}

.modal-nav:active {
  transform: scale(0.98);
}

.modal-nav.disabled {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: rgba(255, 255, 255, 0.3) !important;
  cursor: not-allowed !important;
}

.modal-nav.disabled:hover {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  transform: scale(1) !important;
}


.modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  font-size: 20px;
  cursor: pointer;
  color: white;
  padding: 8px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: rotate(90deg) scale(1.1);
}

.modal-body {
  padding: 32px;
  overflow-y: auto;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  transition: all 0.4s ease;
  opacity: 1;
  flex: 1;
  min-height: 0;
}

.modal-body.transitioning {
  opacity: 0;
  transform: translateX(20px);
}

.modal-footer {
  padding: 20px 32px 20px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 0 0 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-top: 1px solid #e2e8f0;
  position: relative;
  flex-shrink: 0;
  min-height: 130px;
  height: 130px;
}

.modal-footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.modal-footer-bottom {
  position: relative;
  height: 44px;
  width: 100%;
}

.modal-indicators {
  display: flex;
  gap: 8px;
  flex: 1;
  justify-content: center;
}

.modal-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
  transition: all 0.3s ease;
  cursor: pointer;
}

.modal-indicator.active {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  width: 24px;
  border-radius: 12px;
}

.modal-indicator:hover {
  background: #94a3b8;
}

.modal-indicator.active:hover {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.modal-counter {
  font-size: 0.9rem;
  color: #64748b;
  font-weight: 600;
  flex-shrink: 0;
  z-index: 1;
}

.modal-body::-webkit-scrollbar {
  width: 8px;
}

.modal-body::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--navy), #0066cc);
  border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #0066cc, var(--navy));
}

.modal-body .pub-abstract {
  color: #1e293b;
  line-height: 1.7;
  margin-bottom: 20px;
  font-weight: 500;
}

.modal-body .pub-abstract p {
  margin-bottom: 16px;
  text-align: justify;
  font-family: Merriweather, serif;
  color: #000408;
}

.pub-abstract {
  font-size: 1.0rem;
  font-family: Merriweather, serif;
  color: #000408;
}

.modal-body ul, .modal-body ol {
  margin: 20px 0;
  padding-left: 28px;
}

.modal-body li {
  margin-bottom: 8px;
  line-height: 1.6;
  color: #1e293b;
  font-weight: 500;
}

.modal-body li strong {
  color: var(--navy);
  font-weight: 700;
}

.modal-body li i {
  color: #475569;
  font-style: italic;
}

.modal-body h3 {
  color: var(--navy);
  margin-top: 32px;
  margin-bottom: 16px;
  font-size: 1.4rem;
  font-weight: 700;
  padding-bottom: 12px;
  border-bottom: 1px solid #cbd5e1;
  position: relative;
  width: 100%;
}

.modal-body h3::after {
  display: none;
}

.modal-body h4 {
  color: #0066cc;
  margin-top: 24px;
  margin-bottom: 12px;
  font-size: 1.2rem;
  font-weight: 600;
}

.modal-body b, .modal-body strong {
  color: var(--navy);
  font-weight: 700;
}

.low-left-button {
	position: absolute;
	left: 32px;
	/* Override modal-nav styles for visibility on light background */
	background: linear-gradient(135deg, var(--navy) 0%, #0066cc 100%) !important;
	border: 2px solid var(--navy) !important;
	color: white !important;
	backdrop-filter: none !important;
}

.low-right-button {
	position: absolute;
	right: 32px;
	/* Override modal-nav styles for visibility on light background */
	background: linear-gradient(135deg, var(--navy) 0%, #0066cc 100%) !important;
	border: 2px solid var(--navy) !important;
	color: white !important;
	backdrop-filter: none !important;
}

/* Hover states for visible bottom buttons */
.low-left-button:not(.disabled):hover,
.low-right-button:not(.disabled):hover {
	background: linear-gradient(135deg, #0066cc 0%, var(--navy) 100%) !important;
	transform: scale(1.05) !important;
	box-shadow: 0 4px 12px rgba(0, 44, 84, 0.3) !important;
}

/* Active states */
.low-left-button:not(.disabled):active,
.low-right-button:not(.disabled):active {
	transform: scale(0.98) !important;
}

/* Disabled state for bottom buttons */
.low-left-button.disabled,
.low-right-button.disabled {
	background: #e2e8f0 !important;
	border-color: #cbd5e1 !important;
	color: #94a3b8 !important;
	cursor: not-allowed !important;
}

.low-left-button.disabled:hover,
.low-right-button.disabled:hover {
	background: #e2e8f0 !important;
	transform: none !important;
	box-shadow: none !important;
}

.low-buttons {	
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 44px;
	width: 100%;
	pointer-events: none;
}

.low-buttons button {
	pointer-events: auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .bio-sections-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  
  .section-button {
    font-size: 0.85rem;
    padding: 14px 10px;
    min-height: 60px;
  }
  
  .modal-content {
    max-height: 90vh;
    margin: 10px;
    border-radius: 20px;
  }
  
  .modal-header {
    padding: 24px 24px 20px;
    border-radius: 20px 20px 0 0;
  }
  
  .modal-profile-image {
    width: 50px;
    height: 50px;
    margin-bottom: 6px;
    border-width: 2px;
  }
  
  .modal-professor-name {
    font-size: 1rem;
    margin-bottom: 10px;
  }
  
  .modal-header h3 {
    font-size: 1.5rem;
    padding-right: 50px;
  }
  
  .modal-close {
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
  
  .modal-body {
    padding: 24px 20px;
    max-height: calc(90vh - 100px);
  }
  
  .modal-body h3 {
    font-size: 1.25rem;
  }
  
  .modal-body h4 {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .bio-sections-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .section-button {
    font-size: 0.9rem;
    padding: 16px 12px;
    min-height: 55px;
  }
  
  .modal-overlay {
    padding: 15px;
  }
  
  .modal-content {
    margin: 5px;
    border-radius: 18px;
  }
  
  .modal-header {
    padding: 20px 20px 16px;
    border-radius: 18px 18px 0 0;
  }
  
  .modal-profile-image {
    width: 45px;
    height: 45px;
    margin-bottom: 6px;
    border-width: 2px;
  }
  
  .modal-professor-name {
    font-size: 0.95rem;
    margin-bottom: 8px;
  }
  
  .modal-header h3 {
    font-size: 1.3rem;
    line-height: 1.3;
    padding-right: 45px;
  }
  
  .modal-close {
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    font-size: 16px;
  }
  
  .modal-body {
    padding: 20px 16px;
    font-size: 0.95rem;
  }
  
  .modal-body .pub-abstract {
    font-size: 1rem;
  }
  
  .modal-body h3 {
    font-size: 1.2rem;
    margin-top: 24px;
  }
  
  .modal-body h4 {
    font-size: 1.05rem;
  }
}