/* SECTION */

.tutor-section {
  background: var(--hero-gradient);

  padding: 80px 0;

  position: relative;
}

/* GRID */

.tutor-layout {
  display: grid;

  grid-template-columns:
    330px
    minmax(0, 1fr)
    360px;

  gap: 32px;

  align-items: start;
}

.hero-meta {
  display: flex;

  flex-direction: column;

  gap: 18px;

  margin-top: 32px;
}

.hero-chip {
  display: inline-flex;

  align-items: center;

  gap: 12px;

  width: max-content;

  max-width: 100%;

  padding: 18px 24px;

  border-radius: 999px; /* pill */

  background: #fff;

  color: var(--ink);

  font-weight: 700;

  border: 1px solid var(--line);

  box-shadow: var(--shadow-xs);

  transition: var(--transition);
}

.hero-chip:hover {
  transform: translateY(-2px);

  box-shadow: var(--shadow-brand-sm);
}

.hero-chip-lg {
  min-width: min(520px, 100%);
}

.hero-chip i {
  color: var(--brand);

  font-size: 18px;
}

/* COMMON CARD */

.profile-card,
.profile-card:hover,
.hero-panel:hover,
.details-card:hover,
.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 60px rgba(245, 128, 49, 0.12);
}

.contact-card h3 {
  color: black;
}

/* PROFILE */

.profile-card {
  position: sticky;

  top: 110px;

  padding: 34px;
  background: #fff;
}

.profile-image-wrap {
  display: flex;

  justify-content: center;

  margin-bottom: 24px;
}

.profile-image {
  width: 180px;
  height: 180px;

  object-fit: cover;

  border-radius: 50%;

  border: 5px solid var(--brand);

  box-shadow: 0 20px 45px rgba(245, 128, 49, 0.18);
}

.profile-card h2 {
  text-align: center;

  margin: 0 0 8px;

  font-size: 30px;

  color: var(--ink);
}

.profile-rating {
  text-align: center;

  color: var(--brand);

  font-weight: 700;

  margin-bottom: 10px;
}

.profile-views {
  text-align: center;

  color: var(--muted);

  margin-bottom: 28px;
}

.profile-details {
  display: flex;

  flex-direction: column;

  gap: 18px;
}

.profile-details div {
  display: grid;

  grid-template-columns: 110px 1fr;

  gap: 10px;

  padding-bottom: 14px;

  border-bottom: 1px dashed #ececec;
}

.profile-details span {
  font-weight: 700;

  color: var(--muted);
}

.profile-details p {
  margin: 0;

  color: var(--ink);
}

.member-footer {
  margin: 30px -34px -34px;

  padding: 20px;

  text-align: center;

  color: #fff;

  font-weight: 700;

  background: linear-gradient(135deg, var(--brand), #f8a04f);
}

/* CENTER */

.tutor-main {
  display: flex;

  flex-direction: column;

  gap: 28px;
}

/* HERO */

.hero-panel {
  padding: 42px;

  background: linear-gradient(135deg, var(--brand-soft), #fff);

  position: relative;
}

.profile-badge {
  display: inline-flex;

  padding: 10px 18px;

  border-radius: 999px;

  background: #fff;

  color: var(--brand);

  font-size: 13px;

  font-weight: 800;

  letter-spacing: 1px;

  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

.hero-panel h1 {
  margin: 22px 0 16px;

  font-size: 46px;

  line-height: 1.15;

  max-width: 700px;
}

.hero-panel p {
  color: var(--muted);

  max-width: 650px;
}

.hero-tags {
  display: flex;

  flex-wrap: wrap;

  gap: 14px;

  margin-top: 28px;
}

.hero-tag {
  background: #fff;

  padding: 16px 20px;

  border-radius: 18px;

  font-weight: 600;

  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.04);
}

/* TABS */

.switch-title {
  margin: 0;

  color: var(--brand);

  font-size: 18px;

  letter-spacing: 0.5px;
}

.tabs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.info-tab {
  padding: 32px 24px;

  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(245, 128, 49, 0.08);

  display: flex;
  flex-direction: column; /* stack vertically */
  align-items: center;
  justify-content: center;

  text-align: center;

  min-height: 235px;

  transition: 0.3s;
}

.info-tab > div:last-child {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.info-tab h4 {
  margin: 18px 0 14px;

  font-size: 30px;
  line-height: 1.45;

  min-height: 84px; /* keeps headings aligned */
}

.info-tab p {
  margin: 0;

  line-height: 1.8;

  max-width: 160px;

  color: var(--muted);
}

.info-tab.active {
  color: white;
  background: linear-gradient(135deg, var(--brand), #f8a04f);
}

.info-tab.active p {
  color: rgba(255, 255, 255, 0.9);
}

.tab-icon {
  width: 64px;
  height: 64px;

  border-radius: 18px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 28px;

  background: rgba(255, 255, 255, 0.18);
}

.info-tab:hover {
  transform: translateY(-4px);
}

.info-tab.active {
  color: #fff;

  background: linear-gradient(135deg, var(--brand), #f8a04f);
}

.info-tab.active p {
  color: rgba(255, 255, 255, 0.85);
}

.tab-icon {
  width: 58px;
  height: 58px;

  border-radius: 18px;

  display: flex;

  align-items: center;

  justify-content: center;

  background: rgba(255, 255, 255, 0.18);

  font-size: 24px;
}

/* TABLE */

.details-card {
  overflow: hidden;

  border-radius: var(--radius-md);

  background: var(--surface-solid);

  border: var(--border-soft);

  box-shadow: var(--shadow-brand-sm);

  padding: 0;

  position: relative;
}

.details-card::before {
  content: '';

  position: absolute;

  inset: 0;

  background: var(--brand-gradient-soft);

  opacity: 0.35;

  pointer-events: none;
}

.details-table {
  width: 100%;

  border-collapse: collapse;

  position: relative;

  z-index: 2;
}

.details-table tr:nth-child(odd) {
  background: var(--warm-surface);
}

.details-table tr:nth-child(even) {
  background: var(--surface-solid);
}

.details-table td {
  padding: 24px;

  border-bottom: 1px solid var(--line);

  vertical-align: middle;

  transition: var(--transition);
}

.details-table tr:hover td {
  background: rgba(245, 128, 49, 0.03);
}

.details-table td:first-child {
  width: 33%;

  font-size: 15px;

  font-weight: 700;

  color: var(--ink-soft);
}

.details-table td:last-child {
  font-weight: 700;

  color: var(--ink);
}

.available {
  color: var(--success) !important;

  display: inline-flex;
}

/* CLASS TAGS */

.class-tags {
  display: flex;

  flex-wrap: wrap;

  gap: 12px;
}

.class-tags span {
  min-width: 110px;

  padding: 12px 18px;

  border-radius: var(--radius-sm);

  border: 1px solid var(--line-strong);

  background: var(--brand-gradient-soft);

  color: var(--brand-dark);

  font-weight: 700;

  transition: var(--transition);
}

.class-tags span:hover {
  transform: translateY(-2px);

  box-shadow: var(--shadow-brand-sm);

  background: var(--brand-pale);
}

/* SUBJECT TAGS */

.subject-tags {
  display: flex;

  flex-wrap: wrap;

  gap: 10px;
}

.subject-tags span {
  padding: 9px 15px;

  border-radius: 999px;

  background: var(--orange-50);

  border: 1px solid var(--orange-200);

  color: var(--brand-dark);

  font-size: 13px;

  font-weight: 700;

  transition: var(--transition);
}

.subject-tags span:hover {
  background: var(--brand);

  color: #fff;

  border-color: var(--brand);

  box-shadow: var(--shadow-brand-sm);
}

/* CONTACT */

.contact-card {
  position: relative;

  top: auto;

  padding: 32px;
  background: #fff;
}

.contact-card h3 {
  margin-bottom: 24px;

  font-size: 28px;
}

.contact-card input,
.contact-card textarea {
  width: 100%;

  padding: 16px;

  border-radius: 10px;

  border: 1px solid #e8e8e8;

  margin-bottom: 16px;

  font-family: inherit;

  transition: 0.3s;
}

.contact-card input:focus,
.contact-card textarea:focus {
  outline: none;

  border-color: var(--brand);

  box-shadow: 0 0 0 4px rgba(245, 128, 49, 0.1);
}

.contact-submit {
  width: 100%;

  min-height: 58px;

  padding: 18px 24px;

  border: none;

  border-radius: 10px;

  font-size: 18px;

  font-weight: 800;

  background: var(--brand-gradient);

  color: white;

  box-shadow: var(--shadow-brand-sm);

  transition: var(--transition);
}

.contact-submit:hover {
  transform: translateY(-2px);

  box-shadow: var(--shadow-brand-md);
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

.tab-content-wrap {
  margin-top: 30px;
}

.edu-shell,
.review-shell {
  padding: 24px;
  background: #f6f6f6;
  border-radius: 34px;
}

.review-box {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
  padding: 42px;
  background: white;
  border-radius: 30px;
}
@media (min-width: 769px) and (max-width: 1400px) {
  .review-box {
    grid-template-columns: 160px 1fr;
    gap: 20px;
  }
}

.review-shell h2 {
  padding: 28px;
  background: var(--brand-gradient-soft);
  border-radius: 24px;
  margin-bottom: 30px;
}

.rating-row {
  display: grid;
  grid-template-columns: 80px 1fr 80px;
  gap: 16px;
  margin-bottom: 22px;
  align-items: center;
}

.bar {
  height: 12px;
  background: #ececec;
  border-radius: 999px;
}

.edu-table {
  width: 100%;
  background: white;
  border-radius: 26px;
  overflow: hidden;
  border-collapse: collapse;
}

.edu-table th {
  padding: 24px;

  text-align: left;

  background: linear-gradient(135deg, var(--brand), #f8a04f);

  color: #fff;

  font-weight: 700;
}

.edu-table td {
  padding: 28px 24px;
}

/* RESPONSIVE */

@media (max-width: 1200px) {
  .tutor-layout {
    grid-template-columns: 1fr;
  }

  .profile-card,
  .contact-card {
    position: relative;

    top: auto;
  }
}

/* RESPONSIVE */

/* LARGE LAPTOP */

@media (min-width: 1181px) and (max-width: 1400px) {
  .tutor-layout {
    grid-template-columns:
      260px
      minmax(0, 1fr)
      290px;

    gap: 22px;
  }

  .profile-card {
    padding: 26px;
  }

  .profile-image {
    width: 150px;
    height: 150px;
  }

  .profile-card h2 {
    font-size: 26px;
  }

  .profile-details div {
    grid-template-columns: 90px 1fr;
  }

  .hero-panel {
    padding: 34px;
  }

  .hero-panel h1 {
    font-size: 38px;
  }

  .hero-chip-lg {
    min-width: 100%;
  }

  .hero-meta {
    gap: 14px;

    margin-top: 24px;
  }

  .hero-chip {
    max-width: 100%;

    padding: 14px 18px;

    gap: 10px;

    font-size: 14px;
  }

  .hero-chip i {
    font-size: 16px;
  }

  .hero-tag {
    padding: 12px 16px;
  }

  .tabs-grid {
    gap: 14px;

    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .info-tab {
    min-height: 190px;

    padding: 22px 16px;

    border-radius: 18px;
  }

  .tab-icon {
    width: 54px;
    height: 54px;

    border-radius: 16px;

    font-size: 22px;

    margin-bottom: 12px;
  }

  .info-tab h4 {
    font-size: 22px;

    line-height: 1.35;

    min-height: auto;

    margin: 12px 0 8px;
  }

  .info-tab p {
    max-width: 130px;

    font-size: 13px;

    line-height: 1.6;
  }

  .details-table td {
    padding: 16px 18px;
  }

  .details-table td:first-child {
    width: 28%;
  }

  .contact-card {
    padding: 24px;
  }
}

/* SMALL LAPTOP */

@media (min-width: 993px) and (max-width: 1180px) {
  .tabs-grid {
    gap: 12px;
  }

  .info-tab {
    min-height: 170px;

    padding: 18px 14px;
  }

  .tab-icon {
    width: 48px;
    height: 48px;

    font-size: 20px;
  }

  .info-tab h4 {
    font-size: 18px;

    margin: 10px 0 8px;

    min-height: auto;
  }

  .info-tab p {
    max-width: 120px;

    font-size: 12px;

    line-height: 1.5;
  }
  .tutor-layout {
    grid-template-columns:
      230px
      minmax(0, 1fr);

    gap: 20px;
  }

  .contact-card {
    grid-column: span 2;
  }
}

/* TABLET ONLY */

@media (min-width: 769px) and (max-width: 992px) {
  .tabs-grid {
    grid-template-columns: repeat(2, 1fr);

    gap: 14px;
  }

  .info-tab {
    min-height: 170px;

    padding: 20px 16px;
  }

  .info-tab:last-child {
    grid-column: span 2;
  }
  .tutor-layout {
    grid-template-columns: 1fr;
  }

  .profile-card,
  .contact-card {
    position: relative;

    top: auto;
  }

  .hero-meta {
    margin-top: 22px;

    gap: 12px;
  }

  .hero-chip {
    width: 100%;

    padding: 14px 16px;

    border-radius: 18px;

    justify-content: flex-start;
  }

  .hero-chip-lg {
    width: 100%;

    min-width: 100%;
  }
}

@media (max-width: 768px) {
  .hero-chip {
    width: 100%;

    border-radius: 24px;

    padding: 16px 18px;
  }

  .hero-chip-lg {
    min-width: 100%;
  }
  .details-card {
    border-radius: 22px;
  }

  .details-table td {
    display: block;

    width: 100%;

    padding: 18px;
  }

  .details-table td:first-child {
    width: 100%;

    padding-bottom: 8px;
  }

  .class-tags span {
    min-width: auto;
  }

  .tutor-section {
    padding: 50px 0;
  }

  .profile-card,
  .hero-panel,
  .details-card,
  .contact-card {
    border-radius: 10px;
  }

  .hero-panel {
    padding: 28px;
  }

  .hero-panel h1 {
    font-size: 32px;
  }

  .tabs-grid {
    grid-template-columns: 1fr;
  }

  .info-tab {
    min-height: auto;
  }

  .profile-image {
    width: 140px;
    height: 140px;
  }

  .details-table td {
    padding: 16px;

    display: block;

    width: 100%;
  }

  .details-table tr {
    display: block;

    margin-bottom: 14px;

    border-radius: 14px;

    overflow: hidden;
  }
  .review-shell {
    padding: 16px;
  }

  .review-box {
    grid-template-columns: 1fr;

    gap: 24px;

    padding: 20px;
  }

  .rating-row {
    grid-template-columns:
      55px
      minmax(0, 1fr)
      55px;

    gap: 8px;
  }

  .review-left,
  .review-right {
    min-width: 0;
  }

  .rating-row span {
    font-size: 14px;
  }

  .bar {
    width: 100%;
  }
}
@media (max-width: 768px) {
  .edu-shell {
    padding: 16px;
    overflow: hidden;
  }

  .edu-table,
  .edu-table tbody,
  .edu-table tr,
  .edu-table td {
    display: block;
    width: 100%;
  }

  .edu-table {
    border-radius: 18px;
  }

  .edu-table thead {
    display: none;
  }

  .edu-table tr {
    background: #fff;
    margin-bottom: 14px;
    padding: 18px;
    border-radius: 14px;
  }

  .edu-table td {
    padding: 10px 0;
    border: none;
    white-space: normal;
  }
}
