/* Teacher Profile Page Styles */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@800&family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
  --header-h: 80px; /* Adjust this to match your navbar height */
}

.teacher-profile-main {
  background: #f9f9fc;
  min-height: 100vh;
  padding-top: 80px;
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  overflow: visible !important; /* Ensure no overflow issues */
}

.teacher-profile-section {
  padding: 60px 20px;
  opacity: 0; /* Start hidden for animation */
  overflow: visible !important; /* Ensure no overflow issues */
  animation: fadeInOpacity 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
}

@keyframes fadeInOpacity {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

.teacher-profile-container {
  max-width: 1200px;
  margin: 0 auto;
  overflow: visible !important; /* Ensure no overflow issues */
}

/* Desktop Layout */
.teacher-profile-desktop {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 60px;
  align-items: start;
  overflow: visible !important; /* Ensure no overflow issues */
}

.teacher-profile-mobile {
  display: none;
}

/* Left Sidebar */
.teacher-sidebar {
  position: sticky;
  top: 96px;
  z-index: 1;
  align-self: start;
}

/* Sidebar sticky wrapper - not used anymore */

.teacher-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(45, 20, 87, 0.08);
  margin-bottom: 24px;
  opacity: 0; /* Start hidden for animation */
  animation: fadeInOpacity 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.4s forwards;
}

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

.teacher-avatar-large {
  width: 200px;
  height: 200px;
  margin: 0 auto 24px;
  position: relative;
  overflow: hidden;
  border-radius: 50%;
  box-shadow: 0 8px 32px rgba(91, 26, 110, 0.2);
}

.teacher-image-large {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.teacher-image-large:hover {
  transform: scale(1.1);
}

.teacher-name-large {
  color: #6d1f60;
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 8px 0;
  line-height: 1.3;
}

.teacher-role-large {
  color: #ea2e84;
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0 0 20px 0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.teacher-bio-sidebar {
  color: #6a6a6a;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 32px 0;
  font-weight: 400;
}

/* Social Links */
.teacher-social {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid #f0f0f0;
}

.teacher-social .social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(91, 26, 110, 0.08);
  border-radius: 50%;
  color: #6d1f60;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.teacher-social .social-link:hover {
  background: #6d1f60;
  color: #ffffff;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(91, 26, 110, 0.25);
}

/* Navigation Tabs */
.profile-nav {
  background: #ffffff;
  border-radius: 16px;
  padding: 8px;
  box-shadow: 0 8px 32px rgba(45, 20, 87, 0.08);
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0; /* Start hidden for animation */
  animation: fadeInOpacity 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.6s forwards;
}

.nav-tab {
  background: transparent;
  border: none;
  padding: 16px 20px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: #6a6a6a;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  text-align: left;
}

.nav-tab:hover {
  background: rgba(91, 26, 110, 0.05);
  color: #6d1f60;
}

.nav-tab.active {
  background: #6d1f60;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(91, 26, 110, 0.3);
}

/* Main Content */
.teacher-content {
  background: #ffffff;
  border-radius: 20px;
  padding: 48px;
  box-shadow: 0 8px 32px rgba(45, 20, 87, 0.08);
  min-height: 600px;
  opacity: 0; /* Start hidden for animation */
  animation: fadeInOpacity 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.8s forwards;
}

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

.content-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 2px solid #f0f0f0;
  position: relative;
}

.content-header::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: #ea2e84;
  border-radius: 1px;
}

.content-title {
  color: #6d1f60;
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
}

.content-body {
  color: #6a6a6a;
  font-size: 1rem;
  line-height: 1.7;
}

.content-text {
  margin: 0 0 24px 0;
  font-weight: 400;
}

.content-text:last-child {
  margin-bottom: 0;
}

/* Tab Content */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Experience Sections */
.experience-section {
  margin: 40px 0;
  padding: 32px 0;
  border-top: 1px solid #f0f0f0;
}

.experience-section:first-child {
  border-top: none;
  padding-top: 0;
}

.section-title {
  color: #6d1f60;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 24px 0;
  line-height: 1.3;
}

.experience-item {
  margin-bottom: 16px;
  padding: 0 0 0 18px;
  position: relative;
}

.experience-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ea2e84;
  transition: transform 0.3s ease, background 0.3s ease;
}

.experience-item:hover::before {
  background: #d91a5b;
  transform: scale(1.1);
}

.experience-item:last-child {
  margin-bottom: 0;
}

.experience-content {
  color: #2d1457;
}

.experience-text {
  margin: 0 0 8px 0;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
}

.experience-details {
  margin: 0;
  font-size: 0.9rem;
  color: #6a6a6a;
  font-weight: 400;
  line-height: 1.5;
}


/* Mobile Styles */
@media (max-width: 1024px) {
  .teacher-profile-desktop {
    grid-template-columns: 300px 1fr;
    gap: 40px;
  }
  
  .teacher-card {
    padding: 32px;
  }
  
  .teacher-avatar-large {
    width: 160px;
    height: 160px;
  }
  
  .teacher-name-large {
    font-size: 1.8rem;
  }
  
  .teacher-content {
    padding: 40px;
  }
  
  .content-title {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .teacher-profile-main {
    padding-top: 70px;
  }
  
  .teacher-profile-section {
    padding: 40px 16px;
  }
  
  .teacher-profile-desktop {
    display: none;
  }
  
  .teacher-profile-mobile {
    display: block;
  }
}

/* Mobile Layout Styles */
.mobile-teacher-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(45, 20, 87, 0.08);
  margin-bottom: 24px;
  opacity: 0; /* Start hidden for animation */
  animation: fadeInOpacity 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.4s forwards;
}

.mobile-teacher-avatar {
  width: 160px;
  height: 160px;
  margin: 0 auto 24px;
  position: relative;
  overflow: hidden;
  border-radius: 50%;
  box-shadow: 0 8px 32px rgba(91, 26, 110, 0.2);
}

.mobile-teacher-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mobile-teacher-image:hover {
  transform: scale(1.1);
}

.mobile-teacher-name {
  color: #6d1f60;
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 0 8px 0;
  line-height: 1.3;
}

.mobile-teacher-role {
  color: #ea2e84;
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0 0 20px 0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.mobile-teacher-bio {
  color: #6a6a6a;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 32px 0;
  font-weight: 400;
}

.mobile-teacher-social {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid #f0f0f0;
}

.mobile-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(91, 26, 110, 0.05);
  border-radius: 50%;
  color: #6d1f60;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mobile-social-link:hover {
  background: #6d1f60;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(91, 26, 110, 0.25);
}

/* Mobile Navigation */
.mobile-profile-nav {
  background: #ffffff;
  border-radius: 16px;
  padding: 8px;
  box-shadow: 0 8px 32px rgba(45, 20, 87, 0.08);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 24px;
  opacity: 0; /* Start hidden for animation */
  animation: fadeInOpacity 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.6s forwards;
}

.mobile-nav-tab {
  background: transparent;
  border: none;
  padding: 12px 16px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: #6a6a6a;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  text-align: center;
}

.mobile-nav-tab:hover {
  background: rgba(91, 26, 110, 0.05);
  color: #6d1f60;
}

.mobile-nav-tab.active {
  background: #6d1f60;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(91, 26, 110, 0.3);
}

/* Mobile Content */
.mobile-content {
  background: #ffffff;
  border-radius: 20px;
  padding: 32px 24px;
  box-shadow: 0 8px 32px rgba(45, 20, 87, 0.08);
  opacity: 0; /* Start hidden for animation */
  animation: fadeInOpacity 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.8s forwards;
}

.mobile-tab-content {
  display: none;
}

.mobile-tab-content.active {
  display: block;
  animation: fadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-content-title {
  color: #6d1f60;
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 24px 0;
  line-height: 1.2;
  position: relative;
  padding-bottom: 16px;
}

.mobile-content-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: #ea2e84;
  border-radius: 1px;
}

.mobile-content-text {
  color: #6a6a6a;
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0 0 20px 0;
  font-weight: 400;
}

.mobile-content-text:last-child {
  margin-bottom: 0;
}

/* Mobile Experience Sections */
.mobile-experience-section {
  margin: 32px 0;
  padding: 24px 0;
  border-top: 1px solid #f0f0f0;
}

.mobile-experience-section:first-child {
  border-top: none;
  padding-top: 0;
}

.mobile-section-title {
  color: #6d1f60;
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 20px 0;
  line-height: 1.3;
}

.mobile-experience-item {
  margin-bottom: 12px;
  padding: 0 0 0 16px;
  position: relative;
}

.mobile-experience-item::before {
  content: '';
  position: absolute;
  left: 0;
  /* Center on the first line of .mobile-experience-text (0.9rem × 1.5) */
  top: calc((0.9rem * 1.5 - 6px) / 2);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ea2e84;
  transition: transform 0.3s ease, background 0.3s ease;
}

.mobile-experience-item:hover::before {
  background: #d91a5b;
  transform: scale(1.1);
}

.mobile-experience-item:last-child {
  margin-bottom: 0;
}

.mobile-experience-text {
  margin: 0 0 6px 0;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.5;
  color: #2d1457;
}

.mobile-experience-details {
  margin: 0;
  font-size: 0.85rem;
  color: #6a6a6a;
  font-weight: 400;
  line-height: 1.5;
}

/* Small Mobile */
@media (max-width: 480px) {
  .teacher-profile-section {
    padding: 32px 16px;
  }
  
  .mobile-teacher-card {
    padding: 24px 20px;
  }
  
  .mobile-teacher-avatar {
    width: 140px;
    height: 140px;
  }
  
  .mobile-teacher-name {
    font-size: 1.6rem;
  }
  
  .mobile-teacher-role {
    font-size: 0.8rem;
  }
  
  .mobile-teacher-bio {
    font-size: 0.9rem;
  }
  
  .mobile-profile-nav {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  
  .mobile-nav-tab {
    padding: 14px 16px;
    font-size: 0.8rem;
  }
  
  .mobile-content {
    padding: 24px 20px;
  }
  
  .mobile-content-title {
    font-size: 1.8rem;
  }
  
  .mobile-content-text {
    font-size: 0.9rem;
  }
  
  .mobile-section-title {
    font-size: 1.2rem;
  }
  
  .mobile-experience-item {
    padding: 0 0 0 16px;
  }

  .mobile-experience-item::before {
    top: calc((0.85rem * 1.5 - 6px) / 2);
  }
  
  .mobile-experience-text {
    font-size: 0.85rem;
  }
  
  .mobile-experience-details {
    font-size: 0.8rem;
  }
}

/* Animation delays for staggered effects */
.experience-item:nth-child(1) { animation-delay: 0.1s; }
.experience-item:nth-child(2) { animation-delay: 0.2s; }
.experience-item:nth-child(3) { animation-delay: 0.3s; }
.experience-item:nth-child(4) { animation-delay: 0.4s; }
.experience-item:nth-child(5) { animation-delay: 0.5s; }

.mobile-experience-item:nth-child(1) { animation-delay: 0.1s; }
.mobile-experience-item:nth-child(2) { animation-delay: 0.2s; }
.mobile-experience-item:nth-child(3) { animation-delay: 0.3s; }
.mobile-experience-item:nth-child(4) { animation-delay: 0.4s; }
.mobile-experience-item:nth-child(5) { animation-delay: 0.5s; }

/* Smooth transitions for all interactive elements */
* {
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

/* Focus states for accessibility */
.nav-tab:focus,
.mobile-nav-tab:focus,
.social-link:focus,
.mobile-social-link:focus {
  outline: 2px solid #ea2e84;
  outline-offset: 2px;
}

/* Loading states */
.teacher-image-large,
.mobile-teacher-image {
  background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
}

.teacher-image-large::before,
.mobile-teacher-image::before {
  content: '👤';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  opacity: 0.3;
  z-index: 1;
}

/* ===== Sticky sidebar support ===== */

/* Prevent transforms/filters on sticky ancestors from creating a new containing block */
.teacher-profile-main,
.teacher-profile-section,
.teacher-profile-container,
.teacher-profile-desktop {
  transform: none !important;
  filter: none !important;
  perspective: none !important;
}

/* Force viewport-level scroll container so sticky works against the viewport */
html,
body {
  overflow: visible !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

.site-footer {
  position: relative;
  z-index: 2;
}

@media (max-width: 768px) {
  .teacher-sidebar {
    position: static;
  }
}

/* Display headings: Manrope ExtraBold (body stays Poppins) */
.teacher-name-large,
.content-title,
.section-title,
.mobile-teacher-name,
.mobile-content-title {
  font-family: 'Manrope', 'Poppins', system-ui, sans-serif;
  font-weight: 800;
}

/* Temporarily hide teacher-card socials until personal links are added */
.teacher-social,
.mobile-teacher-social {
  display: none;
}

