/* Listing grid */
.rccat-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 36px 30px;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.rccat-card {
  margin: 0;
  text-align: center;
}

.rccat-card-link {
  display: block;
  color: #111;
  text-decoration: none;
}

.rccat-card-photo {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #dbe7f0;
}

.rccat-card-photo--placeholder {
  background: #e8e8e8;
}

.rccat-card-name {
  margin: 16px 0 0;
  font-size: 18px;
  font-weight: 600;
  font-family: Roboto, "Noto Sans TC", sans-serif;
  color: #111;
}

.rccat-empty {
  color: #888;
  margin: 0;
}

/*
 * Header + sidebar copied from /tutorprofiles/ (Elementor page 333) at 1920px:
 * header 86px #A02337, title 30px with 117px inset
 * sidebar 384px full-height #ededed
 * nav padding 77px 38px 77px 115px, items 226x46, 11px gap
 * active link #000, others #A02337
 */
body.rccat-single-body {
  margin: 0 !important;
  padding: 0 !important;
  background: #fff !important;
  color: #334155;
  font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.rccat-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  height: 86px;
  padding: 10px;
  background: #a02337;
  color: #fff;
}

.rccat-topbar-title {
  margin: 0 !important;
  padding: 0 0 0 117px !important;
  color: #fff !important;
  font-size: 30px !important;
  font-weight: 600 !important;
  line-height: 39px !important;
}

.rccat-topbar-nav {
  display: flex;
  align-items: center;
}

.rccat-topbar-nav a {
  display: flex;
  align-items: center;
  padding: 13px 20px;
  color: #fff;
  font-family: Roboto, sans-serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 20px;
  text-decoration: none;
}

.rccat-layout {
  display: flex;
  align-items: stretch;
  min-height: calc(100vh - 86px);
}

.rccat-sidebar {
  box-sizing: border-box;
  flex: 0 0 384px;
  width: 384px;
  padding: 77px 38px 77px 115px;
  background: #ededed;
}

.rccat-side-menu {
  width: 226px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rccat-side-menu li {
  margin: 0 0 11px;
}

.rccat-side-menu li:last-child {
  margin-bottom: 0;
}

.rccat-side-menu a {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  width: 226px;
  min-height: 46px;
  padding: 13px 20px;
  color: #a02337;
  font-family: Roboto, sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 20px;
  text-decoration: none;
}

.rccat-side-menu li.is-active a {
  color: #000;
}

.rccat-profile {
  box-sizing: border-box;
  flex: 1 1 auto;
  min-width: 0;
  padding: 40px 50px 60px;
}

.rccat-profile-inner {
  display: flex;
  align-items: flex-start;
  gap: 40px;
}

.rccat-profile-photo {
  flex: 0 0 431px;
  width: 431px;
}

.rccat-profile-photo img {
  display: block;
  width: 431px;
  height: 431px;
  object-fit: cover;
}

.rccat-profile-body {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 720px;
  color: #334155;
  font-size: 16px;
  line-height: 26.4px;
  text-align: justify;
}

.rccat-profile-body p {
  margin: 0;
  color: #334155;
  font-size: 16px;
  line-height: 26.4px;
  text-align: justify;
}

@media (max-width: 1400px) {
  .rccat-sidebar {
    flex-basis: 280px;
    width: 280px;
    padding: 48px 20px 48px 40px;
  }

  .rccat-side-menu,
  .rccat-side-menu a {
    width: 100%;
  }

  .rccat-topbar-title {
    padding-left: 40px !important;
  }

  .rccat-profile-photo,
  .rccat-profile-photo img {
    flex-basis: 320px;
    width: 320px;
    height: 320px;
  }
}

@media (max-width: 1200px) {
  .rccat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .rccat-layout {
    flex-direction: column;
  }

  .rccat-sidebar {
    flex-basis: auto;
    width: 100%;
    padding: 20px 24px;
  }

  .rccat-side-menu {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    gap: 0 8px;
  }

  .rccat-side-menu li {
    margin: 0;
  }

  .rccat-side-menu a {
    width: auto;
  }

  .rccat-profile-inner {
    flex-direction: column;
    gap: 24px;
  }

  .rccat-profile-photo,
  .rccat-profile-photo img {
    width: 100%;
    max-width: 320px;
    height: auto;
    aspect-ratio: 1 / 1;
  }
}

@media (max-width: 640px) {
  .rccat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 16px;
  }

  .rccat-topbar {
    height: auto;
    flex-direction: column;
    align-items: flex-start;
  }

  .rccat-topbar-title {
    padding-left: 12px !important;
  }

  .rccat-profile {
    padding: 24px 16px 40px;
  }
}
