.profile-card {
  background: var(--color-bg-primary);
  border: 1px solid var(--color-card-border);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.badge-verified {
  background-color: var(--color-primary-50);
  color: var(--color-primary-700);
  border: 1px solid var(--color-primary-200);
  font-weight: 500;
  padding: 0.35em 0.65em;
  border-radius: 50rem;
}

.badge-status {
  font-weight: 500;
  padding: 0.35em 0.75em;
  border-radius: 50rem;
}

.badge-status.approved {
  background-color: #d1fae5;
  color: #065f46;
}

.badge-status.pending {
  background-color: #fef3c7;
  color: #92400e;
}

/* Navigation Tabs */
.profile-tabs {
  border-bottom: 1px solid var(--color-border);
  gap: 0.5rem;
  overflow-x: auto;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.profile-tabs .nav-link {
  color: var(--color-text-secondary);
  font-weight: 500;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 0.75rem 1rem;
  border-radius: 0;
  transition: var(--transition-fast);
}

.profile-tabs .nav-link:hover {
  color: var(--color-primary);
}

.profile-tabs .nav-link.active {
  color: var(--color-primary-700);
  background: transparent;
  border-bottom-color: var(--color-primary);
  font-weight: 600;
}

/* Form Controls */
.form-label {
  font-weight: 500;
  color: var(--color-text-primary);
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

.form-control,
.form-select {
  background-color: var(--color-input-bg);
  border: 1px solid var(--color-input-border);
  border-radius: 10px;
  padding: 0.65rem 1rem;
  font-size: 0.95rem;
  color: var(--color-text-primary);
  transition: var(--transition-fast);
}

.form-control:focus,
.form-select:focus {
  background-color: var(--color-bg-primary);
  border-color: var(--color-focus);
  box-shadow: 0 0 0 4px var(--color-focus-ring);
}

/* Avatar Upload */
.avatar-upload-wrapper {
  position: relative;
  display: inline-block;
}

.avatar-preview {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--color-bg-secondary);
  box-shadow: var(--shadow-sm);
}

/* Stats & Checklist */
.stat-card {
  background: var(--color-bg-secondary);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  border: 1px solid var(--color-border-light);
}

.checklist-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px dashed var(--color-border-light);
  font-size: 0.92rem;
}

.checklist-item:last-child {
  border-bottom: none;
}

/* Responsive Breakpoints */
@media (max-width: 991.98px) {
  .sidebar {
    transform: translateX(100%);
  }
  .sidebar.show {
    transform: translateX(0);
  }
  .main-wrapper {
    margin-right: 0;
  }
  .top-navbar {
    padding: 0 1rem;
  }
}

.udemy-hero {
  background-color: var(--color-footer-bg);
  padding: 60px 0px;
}

.floating-purchase-card {
  /* background-color: #18a3990d; */
  border: 6px solid #5987762b;
  overflow: hidden;
  border-radius: 15px;
}
.cource-card-content {
  padding: 20px;
}

.custome-accordian {
  font-family: var(--font-family-primary);
  font-size: 16px;
  font-weight: 900;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 15px 17px;
  background-color: var(--color-footer-bg);
  color: white;
  border: 2px solid var(--color-footer-bg);
}
.custom-accordion-body {
  background-color: #91c4c91a !important;
  padding: 11px 11px;
}
.lesson-link {
  padding: 5px 8px;
  border-radius: 9px;
}
.lesson-link:hover,
.lesson-link:focus {
  background-color: #007b71;
  color: white;
}
.custom-accordion-item {
  border: none;
}
.accordion-collapse-custom {
  border: 2px solid var(--color-footer-bg);
  border-radius: 0px 0px 8px 8px;
}
.accordon-lesson {
  font-weight: 500;
  font-size: 16px;
}
.cource-description {
  overflow: hidden;
  border: 2px solid #5987762b;
  padding: 20px;
  border-radius: 21px;
}
.course-full-description {
  overflow: hidden;
}
#course-description-btn {
  font-weight: bold;
  margin-top: 10px;
}

/* single cource */
.comment-author-row {
  display: flex;
  align-items: center;
}
.comment-author {
  display: flex;
  margin-right: 10px;
  flex-direction: column;
}
.comment-author small {
  margin-top: -6px;
}
.comment-avatar {
  background-color: #09413d70;
  width: 40px;
  height: 40px;
  border-radius: 50px;
  padding: 2px;
}
.comment-body {
  margin-right: 50px;
  margin-top: 8px;
  border-top: 1px solid #00908640;
}
.comment-card {
  border: 1px solid #00895938;
  padding: 10px;
  border-radius: 9px;
  margin-bottom: 10px;
}
.comment-reply-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #104b47;
  background-color: #00908645;
  border-radius: 10px;
}
.course-strip {
  background: #c8dfd8;
  padding: 28px 0px;
  border-bottom: 1px solid #007b71;
}

.crumbs {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-bottom: 7px;
}

.crumbs span {
  color: var(--color-primary-700);
}

.course-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.course-title {
  font-size: 17px;
  font-weight: 800;
  margin: 0 0 5px;
}

.course-subtitle {
  font-size: 12px;
  color: var(--color-text-muted);
}

.progress-side {
  width: min(370px, 42%);
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 7px;
  color: var(--color-text-secondary);
}

.progress-track {
  height: 8px;
  border-radius: 99px;
  background: var(--color-primary-100);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 35%;
  background: linear-gradient(
    90deg,
    var(--color-primary),
    var(--color-primary-700)
  );
  border-radius: 99px;
  transition: width 0.25s;
}

.layout {
  max-width: 1500px;
  margin: 0 auto;
  padding: 28px 30px 60px;
  transition: padding 0.25s;
}

.main-content {
  max-width: 970px;
  margin: 0 auto;
  transition: margin 0.25s;
}

.layout.sidebar-open .main-content {
  margin-right: 0;
  margin-left: auto;
  max-width: calc(100% - 365px);
}

.lesson-heading {
  margin: 0 0 6px;
  font-size: 25px;
  font-weight: 900;
  letter-spacing: -0.4px;
}

.lesson-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--color-text-muted);
  font-size: 12px;
  margin-bottom: 20px;
}

.meta-dot {
  width: 4px;
  height: 4px;
  background: var(--color-gray-400);
  border-radius: 50%;
}

.video-shell {
  background: #102321;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16/8.3;
  position: relative;
  display: grid;
  place-items: center;
  color: white;
}

.video-art {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse at 50% 110%,
      rgba(38, 166, 154, 0.5),
      transparent 55%
    ),
    linear-gradient(140deg, #123b38, #071a19 75%);
}

.network-art {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(126, 203, 193, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 203, 193, 0.15) 1px, transparent 1px);
  background-size: 40px 40px;
  transform: perspective(350px) rotateX(20deg) scale(1.2);
}

.video-center {
  position: relative;
  z-index: 2;
  text-align: center;
}

.play-btn {
  border: 0;
  border-radius: 50%;
  width: 72px;
  height: 72px;
  background: var(--color-primary);
  color: white;
  font-size: 27px;
  box-shadow: 0 0 0 12px rgba(38, 166, 154, 0.17);
  transition: transform 0.2s;
}

.play-btn:hover {
  transform: scale(1.06);
}

.video-label {
  font-size: 13px;
  margin-top: 19px;
  color: #d6f2ed;
}

.video-top-label {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  background: rgba(0, 0, 0, 0.35);
  padding: 5px 10px;
  border-radius: 7px;
  font-size: 11px;
}

.video-bottom {
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  padding: 20px 18px 13px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  z-index: 2;
  font-size: 12px;
}

.video-line {
  height: 4px;
  background: rgba(255, 255, 255, 0.35);
  flex: 1;
  border-radius: 9px;
}

.video-line span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--color-primary);
  border-radius: 9px;
}

.card {
  background: rgb(196 217 208 / 81%);
  border: 1px solid rgb(28 131 112 / 48%);
  border-radius: 13px;
  box-shadow: var(--shadow-sm);
  margin-top: 22px;
}
.user-avatar-three {
  height: 50px;
  width: 50px;
  padding: 3px;
  border-radius: 9px;
  background-color: #15897d6e;
}
.section-title {
  font-size: 17px;
  font-weight: 900;
  margin: 0 0 15px;
}

.tip {
  display: flex;
  gap: 12px;
  padding: 15px;
  border-radius: 12px;
  background: var(--color-primary-50);
  border: 1px solid var(--color-primary-100);
  font-size: 13px;
  color: var(--color-primary-900);
  margin-top: 18px;
}

.tip-icon {
  font-size: 20px;
}

.attachments {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.attachment {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 11px;
  border: 2px solid #1773625c;
  border-radius: 11px;
  font-size: 12px;
  min-width: 210px;
}

.file-icon {
  width: 36px;
  height: 38px;
  display: grid;
  place-items: center;
  background: var(--color-accent-50);
  color: var(--color-accent-700);
  border-radius: 8px;
  font-weight: 900;
}

.attachment small {
  display: block;
  color: var(--color-text-muted);
}

.download {
  margin-right: auto;
  color: var(--color-primary-700);
  font-weight: 900;
  font-size: 17px;
}

.comment-form {
  display: grid;
  gap: 12px;
}

.comment-form textarea {
  width: 100%;
  min-height: 105px;
  resize: vertical;
  border: 1px solid var(--color-input-border);
  background: var(--color-input-bg);
  border-radius: 11px;
  padding: 14px;
  outline: none;
  color: var(--color-text-primary);
}

.comment-form textarea:focus,
.comment-form input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-focus-ring);
}

.form-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.hint {
  font-size: 11px;
  color: var(--color-text-muted);
}

.btn {
  border: 0;
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition-fast);
}

.btn-primary {
  background: var(--color-button-primary);
  color: white;
}

.btn-primary:hover {
  background: var(--color-button-primary-hover);
}

.btn-outline {
  background: white;
  border: 1px solid var(--color-border);
  color: var(--color-text-primary);
}

.btn-outline:hover {
  background: var(--color-primary-50);
  border-color: var(--color-primary-200);
}

.breadcrumb li a {
  color: var(--color-white) !important;
}
.badge {
  background-color: var(--color-primary-300);
  display: flex;
  align-items: center;
}
.badge-bestseller i {
  color: gold !important;
}
.nav-lessons {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 22px;
}

.nav-lesson {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.nav-lesson small {
  display: block;
  font-size: 11px;
  color: var(--color-text-muted);
}

.nav-lesson strong {
  display: block;
  font-size: 13px;
}

.nav-lesson.next {
  text-align: left;
}

.nav-lesson .btn {
  min-width: 42px;
  height: 42px;
  padding: 0;
  font-size: 18px;
}

.complete-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-top: 22px;
  padding: 15px 17px;
  background: white;
  border: 1px solid var(--color-border);
  border-radius: 14px;
}

.complete-copy {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 800;
}

.complete-check {
  width: 23px;
  height: 23px;
  border-radius: 7px;
  border: 2px solid var(--color-primary-300);
  display: grid;
  place-items: center;
  color: white;
  font-size: 14px;
}

.complete-check.done {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.sidebar {
  position: fixed;
  z-index: 10000;
  right: 0;
  top: 0;
  bottom: 0;
  width: 365px;
  background: white;
  border-left: 1px solid var(--color-border);
  box-shadow: -12px 0 35px rgba(18, 58, 53, 0.12);
  transform: translateX(105%);
  transition: transform var(--transition-base);
  display: flex;
  flex-direction: column;
}

.sidebar.open {
  transform: translateX(0);
}

.sidebar-head {
  padding: 21px 20px 17px;
  border-bottom: 1px solid var(--color-border-light);
  background: linear-gradient(135deg, #fff, var(--color-primary-50));
}

.sidebar-head-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.sidebar-head h2 {
  font-size: 18px;
  margin: 0;
  font-weight: 900;
}

.icon-btn {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: #fff;
  color: var(--color-text-secondary);
  font-size: 18px;
}

.sidebar-course {
  font-size: 12px;
  color: var(--color-text-secondary);
  margin: 7px 0 15px;
}

.side-progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--color-text-secondary);
  margin-bottom: 6px;
}

.side-progress {
  height: 6px;
  border-radius: 9px;
  background: var(--color-primary-100);
  overflow: hidden;
}

.side-progress span {
  display: block;
  height: 100%;
  background: var(--color-primary);
  width: 35%;
  transition: width 0.2s;
}

.lesson-list {
  overflow: auto;
  padding: 12px 13px 24px;
}

.unit {
  border: 1px solid var(--color-border-light);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 12px;
}

.unit-head {
  padding: 13px 13px;
  background: var(--color-gray-50);
  display: flex;
  align-items: center;
  gap: 9px;
}

.unit-num {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  background: var(--color-primary-100);
  color: var(--color-primary-800);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
  flex-shrink: 0;
}

.unit-name {
  font-size: 12px;
  font-weight: 900;
  flex: 1;
  line-height: 1.5;
}

.unit-time {
  font-size: 10px;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.lesson-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: right;
  border: 0;
  background: white;
  padding: 12px 13px;
  color: var(--color-text-secondary);
  border-top: 1px solid var(--color-border-light);
  transition: var(--transition-fast);
}

.lesson-item:hover {
  background: var(--color-primary-50);
}

.lesson-item.active {
  background: var(--color-primary-50);
  color: var(--color-primary-900);
  box-shadow: inset -3px 0 var(--color-primary);
}

.lesson-item.completed .lesson-state {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}

.lesson-state {
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--color-gray-300);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  flex-shrink: 0;
}

.lesson-item.active .lesson-state {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.lesson-name {
  font-size: 15px;
  line-height: 1.5;
  font-weight: 600;
  flex: 1;
}

.lesson-duration {
  font-size: 10px;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.sidebar-toggle {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 25;
  border: 0;
  border-radius: 0 13px 13px 0;
  background: var(--color-primary-700);
  color: white;
  width: 39px;
  height: 106px;
  box-shadow: var(--shadow-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition:
    left var(--transition-base),
    background var(--transition-fast);
}

.sidebar-toggle:hover {
  background: var(--color-primary-800);
}

.sidebar-toggle span:first-child {
  font-size: 21px;
  line-height: 1;
}

.sidebar-toggle small {
  font-size: 16px;
  writing-mode: vertical-rl;
  letter-spacing: 0.5px;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(12, 31, 29, 0.48);
  z-index: 28;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-base);
}

.overlay.show {
  opacity: 1;
  visibility: visible;
}

.toast {
  position: fixed;
  bottom: 22px;
  left: 22px;
  z-index: 60;
  background: var(--color-primary-800);
  color: white;
  padding: 12px 17px;
  border-radius: 11px;
  box-shadow: var(--shadow-lg);
  font-size: 13px;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: var(--transition-base);
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 1100px) {
  .layout.sidebar-open .main-content {
    max-width: calc(100% - 395px);
  }
}

@media (max-width: 800px) {
  .topbar {
    height: 60px;
    padding: 0 15px;
  }

  .top-actions .desktop-label {
    display: none;
  }

  .course-strip {
    padding: 14px 0px;
  }

  .course-line {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
  }

  .progress-side {
    width: 100%;
  }

  .layout {
    padding: 22px 14px 45px;
  }

  .layout.sidebar-open .main-content {
    max-width: 100%;
    margin: 0;
  }

  .lesson-heading {
    font-size: 21px;
  }

  .video-shell {
    border-radius: 13px;
    aspect-ratio: 16/9;
  }

  .play-btn {
    width: 60px;
    height: 60px;
  }

  .sidebar {
    width: min(365px, 88vw);
  }

  .sidebar-toggle.shifted {
    left: 0;
  }

  .sidebar-toggle {
    width: 39px;
    height: 110px;
  }

  .nav-lessons {
    align-items: stretch;
  }

  .nav-lesson {
    gap: 6px;
  }

  .nav-lesson strong {
    font-size: 11px;
  }

  .nav-lesson .btn {
    min-width: 37px;
    height: 38px;
  }

  .complete-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .complete-row .btn {
    width: 100%;
  }

  .hint {
    max-width: 58%;
  }
}

@media (max-width: 420px) {
  .brand {
    font-size: 18px;
  }
  .attachment {
    width: 100%;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .top-actions {
    gap: 7px;
  }

  .top-actions .avatar {
    width: 30px;
    height: 30px;
  }

  .lesson-meta {
    gap: 8px;
  }

  .video-bottom {
    padding: 15px 10px 10px;
  }

  .video-label {
    font-size: 11px;
  }

  .form-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .form-bottom .btn {
    width: 100%;
  }

  .nav-lesson strong {
    max-width: 95px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

.teacher-public-page {
  --teacher-primary: #26a69a;
  --teacher-primary-hover: #208e84;
  --teacher-primary-dark: #19796f;
  --teacher-light: #e8f6f4;
  --teacher-text: #243746;
  --teacher-muted: #718096;
  --teacher-border: #e6ebef;
  --teacher-background: #f5f7fa;

  background: var(--teacher-background);
  color: var(--teacher-text);
  font-family: "Noto Sans Arabic", sans-serif;
  padding-bottom: 50px;
}

.teacher-public-page * {
  box-sizing: border-box;
}

.teacher-cover {
  padding-top: 30px;
}

.teacher-profile-card,
.teacher-section-card {
  background: #fff;
  border: 1px solid var(--teacher-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(31, 45, 61, 0.035);
}

.teacher-cover-banner {
  height: 190px;
  background: linear-gradient(120deg, #19796f, #26a69a, #a4ded7);
  position: relative;
  overflow: hidden;
}

.teacher-cover-pattern {
  position: absolute;
  left: 8%;
  top: 15%;
  font-size: 145px;
  color: rgba(255, 255, 255, 0.15);
  transform: rotate(-12deg);
}

.teacher-profile-main {
  padding: 0 32px 25px;
}

.teacher-avatar-wrapper {
  position: relative;
  width: 132px;
  height: 132px;
  margin-top: -68px;
  margin-bottom: 15px;
  z-index: 2;
}

.teacher-avatar,
.teacher-avatar-placeholder {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  border: 5px solid #fff;
  background: #edf4f3;
  object-fit: cover;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.teacher-avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teacher-primary-dark);
  font-size: 65px;
}

.teacher-header-details {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.teacher-name {
  font-size: 26px;
  font-weight: 800;
  margin: 0 0 8px;
  color: #20313f;
}

.teacher-headline {
  color: #4d606e;
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 8px;
}

.teacher-location {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--teacher-muted);
  font-size: 13px;
}

.teacher-verified {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--teacher-light);
  color: var(--teacher-primary-dark);
  padding: 8px 12px;
  border-radius: 25px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.teacher-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.btn-teacher-primary,
.btn-teacher-outline,
.btn-teacher-disabled {
  border-radius: 8px;
  padding: 10px 17px;
  font-size: 13px;
  font-weight: 700;
  transition: 0.2s ease;
}

.btn-teacher-primary {
  background: var(--teacher-primary);
  color: #fff;
  border: 1px solid var(--teacher-primary);
}

.btn-teacher-primary:hover {
  background: var(--teacher-primary-hover);
  border-color: var(--teacher-primary-hover);
  color: #fff;
}

.btn-teacher-outline {
  background: #fff;
  border: 1px solid var(--teacher-primary);
  color: var(--teacher-primary-dark);
}

.btn-teacher-outline:hover {
  background: var(--teacher-light);
  color: var(--teacher-primary-dark);
}

.teacher-quick-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--teacher-border);
  padding: 22px 32px;
  gap: 20px;
}

.teacher-stat {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.teacher-stat-icon,
.teacher-section-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--teacher-light);
  color: var(--teacher-primary-dark);
  font-size: 19px;
}

.teacher-stat-value,
.teacher-stat-label {
  display: block;
}

.teacher-stat-value {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 4px;
  overflow-wrap: anywhere;
}

.teacher-stat-label {
  color: var(--teacher-muted);
  font-size: 12px;
}

.teacher-content-section {
  padding-top: 26px;
}

.teacher-section-card {
  padding: 25px;
  margin-bottom: 22px;
  scroll-margin-top: 20px;
}

.teacher-section-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--teacher-border);
}

.teacher-section-heading h2 {
  font-size: 17px;
  font-weight: 800;
  margin: 0;
  color: #253847;
}

.teacher-about-text {
  font-size: 14px;
  line-height: 2.1;
  color: #526371;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.teacher-placeholder {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 13px 15px;
  border-radius: 9px;
  background: #f7f9fb;
  border: 1px dashed #dce4e9;
  color: #788793;
  font-size: 13px;
  line-height: 1.9;
}

.teacher-placeholder i {
  color: var(--teacher-primary);
  margin-top: 3px;
}

.teacher-timeline {
  position: relative;
}

.teacher-timeline-item {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.teacher-timeline-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--teacher-light);
  color: var(--teacher-primary-dark);
  border-radius: 50%;
  font-size: 20px;
}

.teacher-timeline-item h3 {
  font-size: 15px;
  font-weight: 800;
  margin: 2px 0 8px;
}

.teacher-timeline-item p {
  color: #526371;
  font-size: 13px;
  line-height: 1.9;
  margin-bottom: 5px;
}

.teacher-muted-text {
  color: var(--teacher-muted);
  font-size: 12px;
}

.teacher-empty-section {
  text-align: center;
  padding: 14px 10px 8px;
}

.teacher-empty-section > i {
  font-size: 38px;
  color: #a7c9c4;
  display: inline-block;
  margin-bottom: 10px;
}

.teacher-empty-section h3 {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 9px;
}

.teacher-empty-section p {
  color: var(--teacher-muted);
  font-size: 13px;
  line-height: 1.9;
  margin-bottom: 12px;
}

.teacher-empty-section span {
  display: inline-block;
  font-size: 11px;
  background: #f0f4f6;
  color: #73818c;
  border-radius: 20px;
  padding: 6px 12px;
}

.teacher-sidebar-card {
  padding: 22px;
}

.teacher-info-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.teacher-info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.teacher-info-item > i {
  color: var(--teacher-primary-dark);
  font-size: 18px;
  margin-top: 2px;
}

.teacher-info-item span,
.teacher-info-item strong {
  display: block;
}

.teacher-info-item span {
  font-size: 12px;
  color: var(--teacher-muted);
  margin-bottom: 5px;
}

.teacher-info-item strong {
  font-size: 13px;
  color: #344957;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.teacher-info-item strong small {
  font-size: 11px;
  font-weight: 400;
  color: var(--teacher-muted);
}

.teacher-placeholder-inline {
  font-weight: 400 !important;
  color: var(--teacher-muted) !important;
}

.teacher-sidebar-description {
  font-size: 13px;
  color: var(--teacher-muted);
  line-height: 2;
  margin-bottom: 17px;
}

.btn-teacher-disabled {
  color: #8a969f;
  background: #f1f4f6;
  border: 1px solid #e3e8ec;
  cursor: not-allowed;
}

.teacher-platform-note {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 20px;
  background: var(--teacher-light);
  border-radius: 14px;
  color: var(--teacher-primary-dark);
}

.teacher-platform-note > i {
  font-size: 25px;
}

.teacher-platform-note strong {
  display: block;
  font-size: 13px;
  margin-bottom: 7px;
}

.teacher-platform-note p {
  font-size: 12px;
  line-height: 1.9;
  color: #527a75;
  margin: 0;
}

@media (max-width: 767px) {
  .teacher-cover {
    padding-top: 15px;
  }

  .teacher-cover-banner {
    height: 130px;
  }

  .teacher-cover-pattern {
    font-size: 100px;
  }

  .teacher-profile-main {
    padding: 0 18px 22px;
  }

  .teacher-avatar-wrapper {
    width: 105px;
    height: 105px;
    margin-top: -53px;
  }

  .teacher-avatar,
  .teacher-avatar-placeholder {
    width: 105px;
    height: 105px;
  }

  .teacher-avatar-placeholder {
    font-size: 52px;
  }

  .teacher-header-details {
    flex-direction: column;
    gap: 12px;
  }

  .teacher-name {
    font-size: 21px;
  }

  .teacher-quick-stats {
    padding: 18px;
    gap: 12px;
  }

  .teacher-stat {
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
  }

  .teacher-stat-icon {
    width: 36px;
    height: 36px;
    font-size: 17px;
  }

  .teacher-stat-value {
    font-size: 14px;
  }

  .teacher-stat-label {
    font-size: 11px;
  }

  .teacher-section-card {
    padding: 19px;
  }

  .teacher-section-heading h2 {
    font-size: 15px;
  }
}

@media (max-width: 380px) {
  .teacher-quick-stats {
    grid-template-columns: 1fr;
  }

  .teacher-stat {
    flex-direction: row;
    align-items: center;
  }

  .teacher-header-actions > a {
    width: 100%;
    text-align: center;
  }
}

.student-profile-page {
  background-color: var(--color-bg-body);
  font-family: var(--font-family-primary);
  color: var(--color-text-primary);
  padding: 2rem 1rem;
  min-height: 100vh;
}

.profile-layout-container {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 992px) {
  .profile-layout-container {
    grid-template-columns: 1fr;
  }
}

.profile-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-card-border);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
  overflow: hidden;
  transition: box-shadow var(--transition-base);
}

.profile-card:hover {
  box-shadow: var(--shadow-md);
}

/* Hero Section */
.profile-hero-card .profile-cover {
  height: 140px;
  background: linear-gradient(
    135deg,
    var(--color-primary-600),
    var(--color-primary-800)
  );
  position: relative;
}

.cover-label {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: rgba(0, 0, 0, 0.25);
  color: var(--color-white);
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  backdrop-filter: blur(4px);
}

.profile-hero-body {
  padding: 0 1.75rem 1.75rem;
  position: relative;
}

.profile-avatar-action-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: -50px;
  margin-bottom: 1rem;
}

.avatar-wrapper {
  position: relative;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 4px solid var(--color-white);
  background: var(--color-white);
  box-shadow: var(--shadow-md);
}

.student-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-100);
  color: var(--color-primary-800);
  font-weight: 700;
  font-size: 1.5rem;
}

.avatar-status {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--color-white);
}

.identity-name-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.identity-name-row h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 0;
}

.student-badge {
  background: var(--color-primary-50);
  color: var(--color-primary-700);
  padding: 0.2rem 0.65rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.identity-subtitle {
  color: var(--color-text-secondary);
  font-weight: 500;
  margin: 0.35rem 0;
}

.identity-location {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.identity-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

.meta-separator {
  color: var(--color-gray-300);
}

/* Content Sections */
.content-card {
  padding: 1.5rem;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--color-border-light);
  padding-bottom: 0.75rem;
}

.section-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--color-primary-50);
  color: var(--color-primary-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.section-icon-purple {
  background: var(--color-secondary-50);
  color: var(--color-secondary-600);
}

.section-icon-coral {
  background: var(--color-accent-50);
  color: var(--color-accent-600);
}

.section-heading h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
  color: var(--color-text-primary);
}

.section-heading p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* Details Grid */
.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.detail-item {
  background: var(--color-input-bg);
  padding: 0.85rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--color-border-light);
}

.detail-item-full {
  grid-column: 1 / -1;
}

.detail-label {
  display: block;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 0.25rem;
}

.detail-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-primary);
}

/* Academic Card Modern */
.academic-card-modern {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--color-secondary-50);
  border: 1px solid var(--color-secondary-100);
  padding: 1.25rem;
  border-radius: 10px;
}

.academic-card-modern .academic-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--color-secondary-500);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.academic-details {
  flex-grow: 1;
}

.academic-label {
  font-size: 0.75rem;
  color: var(--color-secondary-700);
  text-transform: uppercase;
  font-weight: 600;
}

.academic-details h3 {
  font-size: 1.05rem;
  margin: 0.15rem 0;
  color: var(--color-text-primary);
}

.academic-details p {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  margin: 0;
}

.grade-pill {
  background: var(--color-white);
  color: var(--color-secondary-700);
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

/* Contact List */
.contact-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: var(--color-input-bg);
  padding: 0.85rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--color-border-light);
}

.contact-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--color-primary-50);
  color: var(--color-primary-600);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon-whatsapp {
  background: #e1fef0;
  color: #25d366;
}

/* Sidebar */
.sidebar-card {
  padding: 1.25rem;
}

.sidebar-heading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--color-border-light);
  padding-bottom: 0.5rem;
}

.sidebar-stat {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.stat-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--color-primary-50);
  color: var(--color-primary-600);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon-purple {
  background: var(--color-secondary-50);
  color: var(--color-secondary-600);
}

.stat-icon-coral {
  background: var(--color-accent-50);
  color: var(--color-accent-600);
}

.stat-label {
  display: block;
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.profile-help-card {
  background: linear-gradient(
    135deg,
    var(--color-primary-50),
    var(--color-white)
  );
  border-color: var(--color-primary-100);
  text-align: center;
  padding: 1.5rem;
}

.help-icon {
  width: 48px;
  height: 48px;
  background: var(--color-primary-100);
  color: var(--color-primary-700);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin: 0 auto 0.75rem;
}

.profile-help-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.profile-help-card p {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  margin: 0;
}
