/* ========================================================== */
/* ===== TEACHERS PAGE - WITH HERO BACKGROUND IMAGE ===== */
/* ========================================================== */

:root {
  --bg: #002153;
  --surface: #0A2A5A;
  --card: #0F2F5F;
  --card-hover: #1A3B6B;
  --accent: #4AA8C7;
  --accent2: #00D9B1;
  --green: #6DC424;
  --text: #E8EAF0;
  --muted: #8892A4;
  --border: #1A3B6B;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  --radius: 16px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========================================================== */
/* ===== SECTION LABEL ===== */
/* ========================================================== */

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: clamp(0.7rem, 0.9vw, 0.78rem);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(74, 168, 199, 0.10);
  padding: 6px 18px;
  border-radius: 50px;
  border: 1px solid rgba(74, 168, 199, 0.15);
  margin-bottom: 1rem;
}

.section-label i {
  font-size: 0.65rem;
}

.highlight {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

/* ========================================================== */
/* ===== PAGE HERO SECTION - WITH BACKGROUND IMAGE ===== */
/* ========================================================== */

.page-hero {
  position: relative;
  padding: 130px 0 80px;
  min-height: 400px;
  display: flex;
  align-items: center;
  background-image: url('https://images.unsplash.com/photo-1524178232363-1fb2b075b655?w=1600&h=500&fit=crop&crop=center');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

/* ===== DARK OVERLAY ===== */
.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, 
      rgba(0, 33, 83, 0.88) 0%, 
      rgba(0, 33, 83, 0.75) 40%, 
      rgba(0, 33, 83, 0.55) 70%,
      rgba(0, 33, 83, 0.35) 100%
  );
  z-index: 0;
}

/* ===== PATTERN OVERLAY ===== */
.page-hero__pattern {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%234AA8C7' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  z-index: 0;
  opacity: 0.5;
}

.page-hero__content {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.page-sub {
  color: rgba(255, 255, 255, 0.75);
  font-size: clamp(0.9rem, 1.1vw, 1.05rem);
  line-height: 1.7;
  max-width: 520px;
}

/* ========================================================== */
/* ===== TEACHERS SECTION ===== */
/* ========================================================== */

.teachers-section {
  padding: 60px 0 80px;
  background: var(--bg);
}

.teachers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

/* ========================================================== */
/* ===== TEACHER CARD ===== */
/* ========================================================== */

.teacher-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.teacher-card:hover {
  border-color: var(--green);
  transform: translateY(-6px);
  background: var(--card-hover);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.30);
}

/* ========================================================== */
/* ===== TEACHER TOP ===== */
/* ========================================================== */

.teacher-top {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 14px;
}

/* ===== TEACHER AVATAR - GREEN BORDER ===== */
.teacher-avatar {
  width: 70px;
  height: 70px;
  border-radius: 16px;
  overflow: hidden;
  flex-shrink: 0;
  border: 3px solid #6DC424;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.teacher-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #6DC424, #4A8F1A);
  color: #ffffff;
  font-size: 2rem;
  font-weight: 700;
}

/* ===== TEACHER INFO ===== */
.teacher-info {
  flex: 1;
  min-width: 0;
}

.teacher-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 2px;
}

.teacher-role {
  font-size: 0.85rem;
  color: var(--accent2);
  font-weight: 600;
  margin-bottom: 2px;
}

.teacher-company {
  font-size: 0.78rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.teacher-company i {
  font-size: 0.7rem;
  color: var(--accent);
}

/* ========================================================== */
/* ===== TEACHER BIO ===== */
/* ========================================================== */

.teacher-bio {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 14px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ========================================================== */
/* ===== TEACHER TAGS ===== */
/* ========================================================== */

.teacher-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.tag {
  background: rgba(109, 196, 36, 0.12);
  border: 1px solid rgba(109, 196, 36, 0.20);
  color: #6DC424;
  padding: 3px 12px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ========================================================== */
/* ===== TEACHER STATS ===== */
/* ========================================================== */

.teacher-stats {
  display: flex;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  gap: 10px;
}

.stat-item {
  text-align: center;
  flex: 1;
}

.t-stat-num {
  font-weight: 700;
  font-size: 1.1rem;
  color: #ffffff;
}

.t-stat-label {
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stat-item:last-child .t-stat-num {
  color: #FFB800;
}

/* ========================================================== */
/* ===== JOIN SECTION ===== */
/* ========================================================== */

.join-section {
  padding: 70px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.join-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.join-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(109, 196, 36, 0.10);
  border: 2px solid rgba(109, 196, 36, 0.20);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 1.8rem;
  color: #6DC424;
}

.join-section h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
}

.join-section p {
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto 24px;
  line-height: 1.7;
  font-size: clamp(0.9rem, 1vw, 1rem);
}

/* ========================================================== */
/* ===== BUTTONS ===== */
/* ========================================================== */

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  background: linear-gradient(135deg, #6DC424, #4A8F1A);
  color: #ffffff;
  border: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(109, 196, 36, 0.25);
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(109, 196, 36, 0.35);
  color: #ffffff;
}

.btn-primary i {
  transition: transform 0.3s ease;
}

.btn-primary:hover i {
  transform: translateX(4px);
}

/* ========================================================== */
/* ===== RESPONSIVE ===== */
/* ========================================================== */

@media (max-width: 992px) {
  .page-hero {
      padding: 100px 0 60px;
      min-height: auto;
      background-position: 60% center;
  }
  
  .teachers-grid {
      grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
      gap: 20px;
  }
  
  .page-hero__overlay {
      background: linear-gradient(135deg, 
          rgba(0, 33, 83, 0.90) 0%, 
          rgba(0, 33, 83, 0.80) 50%, 
          rgba(0, 33, 83, 0.60) 100%
      );
  }
}

@media (max-width: 768px) {
  .page-hero {
      padding: 80px 0 50px;
      text-align: center;
      background-position: 50% center;
  }
  
  .page-hero__content {
      text-align: center;
  }
  
  .page-sub {
      max-width: 100%;
      margin: 0 auto;
  }
  
  .teachers-grid {
      grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
      gap: 16px;
  }
  
  .teacher-card {
      padding: 20px 16px;
  }
  
  .teacher-top {
      flex-direction: column;
      align-items: center;
      text-align: center;
  }
  
  .teacher-avatar {
      width: 80px;
      height: 80px;
      border-radius: 16px;
  }
  
  .teacher-info {
      text-align: center;
  }
  
  .teacher-company {
      justify-content: center;
  }
  
  .teacher-bio {
      text-align: center;
  }
  
  .teacher-tags {
      justify-content: center;
  }
  
  .teacher-stats {
      justify-content: center;
  }
  
  .join-section {
      padding: 50px 0;
  }
  
  .join-content {
      padding: 0 20px;
  }
  
  .page-hero__overlay {
      background: linear-gradient(135deg, 
          rgba(0, 33, 83, 0.92) 0%, 
          rgba(0, 33, 83, 0.85) 50%, 
          rgba(0, 33, 83, 0.70) 100%
      );
  }
}

@media (max-width: 480px) {
  .page-hero {
      padding: 70px 0 40px;
      min-height: auto;
  }
  
  .page-hero h1 {
      font-size: 1.8rem;
  }
  
  .page-sub {
      font-size: 0.9rem;
  }
  
  .teachers-grid {
      grid-template-columns: 1fr;
      gap: 14px;
  }
  
  .teacher-card {
      padding: 16px 14px;
      border-radius: 12px;
  }
  
  .teacher-avatar {
      width: 72px;
      height: 72px;
      border-radius: 14px;
      border-width: 3px;
  }
  
  .avatar-placeholder {
      font-size: 1.6rem;
  }
  
  .teacher-name {
      font-size: 0.95rem;
  }
  
  .teacher-role {
      font-size: 0.8rem;
  }
  
  .teacher-company {
      font-size: 0.72rem;
  }
  
  .teacher-bio {
      font-size: 0.8rem;
  }
  
  .tag {
      font-size: 0.65rem;
      padding: 2px 10px;
  }
  
  .t-stat-num {
      font-size: 0.95rem;
  }
  
  .t-stat-label {
      font-size: 0.6rem;
  }
  
  .join-section h2 {
      font-size: 1.4rem;
  }
  
  .join-section p {
      font-size: 0.85rem;
  }
  
  .btn-primary {
      width: 100%;
      justify-content: center;
      padding: 12px 24px;
      font-size: 0.85rem;
  }
  
  .section-label {
      font-size: 0.65rem;
  }
  
  .page-hero__overlay {
      background: linear-gradient(135deg, 
          rgba(0, 33, 83, 0.95) 0%, 
          rgba(0, 33, 83, 0.90) 50%, 
          rgba(0, 33, 83, 0.80) 100%
      );
  }
}

@media (max-width: 360px) {
  .page-hero {
      padding: 60px 0 30px;
  }
  
  .page-hero h1 {
      font-size: 1.5rem;
  }
  
  .teacher-card {
      padding: 14px 12px;
  }
  
  .teacher-avatar {
      width: 64px;
      height: 64px;
      border-radius: 12px;
  }
  
  .teacher-stats {
      flex-direction: column;
      gap: 6px;
  }
  
  .stat-item {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 4px 0;
      border-bottom: 1px solid var(--border);
  }
  
  .stat-item:last-child {
      border-bottom: none;
  }
  
  .t-stat-label {
      margin-top: 0;
  }
}