/* Coaches directory (landing/user/list_coach.html). */
/* ===== CFU Coaches Directory ===== */
.cfu-coaches-page {
  --primary: #102d46;
  --primary-light: #194766;
  --accent: #17b7a4;
  --text: #203449;
  --muted: #718195;
  --border: #e4ebf1;
  font-family: IRANYekan, sans-serif;
  direction: rtl;
  text-align: right;
  color: var(--text);
  background: #f7f9fc;
}

.cfu-coaches-page * {
  box-sizing: border-box;
}

.cfu-coaches-page a {
  text-decoration: none;
}

/* Hero */
.cfu-coaches-hero {
  position: relative;
  overflow: hidden;
  min-height: 370px;
  padding: 95px 0 115px;
  color: #fff;
  background: linear-gradient(125deg, #0a2237, #153c56 65%, #126477);
  isolation: isolate;
}

.cfu-coaches-hero::before {
  content: "";
  position: absolute;
  width: 480px;
  height: 480px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  top: -250px;
  left: -100px;
  animation: cfuOrbit 18s linear infinite;
  pointer-events: none;
}

.cfu-coaches-hero::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  border: 1px dashed rgba(91, 224, 207, 0.22);
  border-radius: 50%;
  right: -110px;
  bottom: -220px;
  animation: cfuOrbit 35s linear infinite reverse;
  pointer-events: none;
}

@keyframes cfuOrbit {
  to {
    transform: rotate(360deg);
  }
}

.cfu-coaches-hero .container {
  position: relative;
  z-index: 2;
}

.cfu-coaches-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 35px;
  color: #c2d7e4;
  font-size: 13px;
}

.cfu-coaches-breadcrumb a {
  color: #c2d7e4;
}

.cfu-coaches-breadcrumb a:hover {
  color: #fff;
}

.cfu-coaches-breadcrumb .current {
  color: #6be5d4;
}

.cfu-coaches-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(108, 230, 213, 0.25);
  border-radius: 40px;
  background: rgba(255, 255, 255, 0.07);
  padding: 9px 16px;
  font-size: 12px;
  color: #9cf3e7;
  margin-bottom: 23px;
}

.cfu-live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #47dfc8;
  box-shadow: 0 0 0 5px rgba(71, 223, 200, 0.13);
  animation: cfuPulse 2.5s infinite;
}

@keyframes cfuPulse {
  50% {
    box-shadow: 0 0 0 10px rgba(71, 223, 200, 0);
  }
}

.cfu-coaches-hero h1 {
  color: #fff !important;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.7;
  margin: 0 0 18px;
}

.cfu-coaches-hero h1 span {
  color: #6be5d4;
}

.cfu-coaches-hero p {
  max-width: 730px;
  color: #d0e0e9;
  font-size: 15px;
  line-height: 2.3;
  margin: 0;
}

/* Search */
.cfu-coaches-search-wrap {
  position: relative;
  z-index: 5;
  margin-top: -49px;
}

.cfu-coaches-search {
  padding: 25px 30px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 18px 55px rgba(18, 47, 73, 0.09);
  border: 1px solid #edf1f5;
}

.cfu-search-heading {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 15px;
  color: var(--primary);
}

.cfu-search-form {
  display: flex;
  align-items: stretch;
  gap: 12px;
}

.cfu-search-form input {
  flex: 1;
  min-width: 0;
  height: 54px;
  border: 1px solid #e2eaf0;
  border-radius: 11px;
  background: #f8fafc;
  padding: 0 18px;
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
}

.cfu-search-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(23, 183, 164, 0.09);
}

.cfu-search-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 22px;
  height: 54px;
  min-width: 130px;
  border: none;
  border-radius: 11px;
  background: var(--primary);
  color: #fff;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 0.3s,
    transform 0.3s;
}

.cfu-search-form button:hover {
  background: #146f77;
  transform: translateY(-2px);
}

/* Intro */
.cfu-coaches-intro {
  padding: 85px 0 35px;
}

.cfu-section-label {
  font-size: 12px;
  font-weight: 800;
  color: #0c9488;
  letter-spacing: 0.2px;
  margin-bottom: 12px;
}

.cfu-section-title {
  font-size: clamp(23px, 3vw, 32px);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.7;
  margin: 0 0 18px;
}

.cfu-section-description {
  color: #63768a;
  line-height: 2.3;
  font-size: 14px;
  max-width: 850px;
}

.cfu-coaches-benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 35px;
}

.cfu-benefit {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 15px;
  transition:
    transform 0.3s,
    box-shadow 0.3s,
    border-color 0.3s;
}

.cfu-benefit:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 35px rgba(20, 54, 78, 0.07);
  border-color: #a8e5db;
}

.cfu-benefit-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 13px;
  color: #078d80;
  background: #e8f8f5;
  font-size: 20px;
}

.cfu-benefit h3 {
  color: var(--primary);
  font-size: 14px;
  font-weight: 800;
  margin: 0 0 8px;
}

.cfu-benefit p {
  color: var(--muted);
  font-size: 12px;
  line-height: 2;
  margin: 0;
}

/* Directory */
.cfu-coaches-directory {
  padding: 45px 0 95px;
}

.cfu-directory-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 27px;
}

.cfu-directory-heading h2 {
  font-size: 25px;
  font-weight: 800;
  color: var(--primary);
  margin: 0;
}

.cfu-directory-heading p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.cfu-result-count {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 30px;
  background: #e9f6f4;
  color: #137e74;
  padding: 9px 15px;
  font-size: 12px;
  font-weight: 700;
}

/* Coach card */
.cfu-coach-card {
  position: relative;
  isolation: isolate;
  height: 100%;
  padding: 27px 18px 21px;
  border-radius: 19px;
  border: 1px solid #e4ebf0;
  background: #fff;
  text-align: center;
  overflow: hidden;
  transition:
    transform 0.35s,
    box-shadow 0.35s;
}

.cfu-coach-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 22px 45px rgba(13, 45, 69, 0.1);
}

/* Animated glowing border, no diagonal green shadow */
.cfu-coach-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(
    from var(--coach-angle, 0deg),
    transparent 0%,
    transparent 62%,
    #1ab9a6 75%,
    #a1f4e6 82%,
    transparent 94%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 3;
}

@property --coach-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.cfu-coach-card:hover::before,
.cfu-coach-card:focus-within::before {
  opacity: 1;
  animation: cfuCoachBorder 3.5s linear infinite;
}

@keyframes cfuCoachBorder {
  to {
    --coach-angle: 360deg;
  }
}

.cfu-coach-avatar-link {
  display: block;
  width: 116px;
  height: 116px;
  margin: 0 auto 18px;
  border-radius: 50%;
  padding: 5px;
  background: #f1f7fa;
  border: 1px solid #d9e8ed;
  transition: border-color 0.3s;
}

.cfu-coach-card:hover .cfu-coach-avatar-link {
  border-color: #21baa7;
}

.cfu-coach-avatar {
  display: block;
  width: 100%;
  height: 100%;
  background: #e3f1f3;
  color: transparent; /* never paint the alt text in place of the photo */
  border-radius: 50%;
  object-fit: cover;
  transition: transform 0.4s;
}

.cfu-coach-card:hover .cfu-coach-avatar {
  transform: scale(1.055);
}

.cfu-coach-name {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.8;
  margin: 0 0 6px;
  min-height: 28px;
}

.cfu-coach-name a {
  color: var(--primary);
  transition: color 0.25s;
}

.cfu-coach-name a:hover {
  color: #0c998b;
}

.cfu-coach-role {
  display: inline-block;
  padding: 5px 12px;
  background: #edf7f5;
  border-radius: 25px;
  color: #168477;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 14px;
}

.cfu-coach-description {
  font-size: 12px;
  line-height: 2;
  color: var(--muted);
  height: 48px;
  overflow: hidden;
  margin-bottom: 17px;
}

.cfu-coach-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-top: 1px solid #edf1f4;
  padding-top: 15px;
  color: #087f78;
  font-size: 12px;
  font-weight: 800;
  transition: color 0.25s;
}

.cfu-coach-action:hover {
  color: #064d64;
}

.cfu-coach-action i {
  transition: transform 0.25s;
}

.cfu-coach-card:hover .cfu-coach-action i {
  transform: translateX(-4px);
}

/* Empty state */
.cfu-coaches-empty {
  text-align: center;
  background: #fff;
  border: 1px dashed #cbdce4;
  border-radius: 20px;
  padding: 65px 25px;
}

.cfu-coaches-empty i {
  font-size: 45px;
  color: #4b9c9c;
  margin-bottom: 20px;
}

.cfu-coaches-empty h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
}

.cfu-coaches-empty p {
  color: var(--muted);
  font-size: 14px;
  margin: 14px 0 25px;
}

.cfu-reset-search {
  display: inline-block;
  background: var(--primary);
  border-radius: 10px;
  padding: 12px 23px;
  color: #fff !important;
  font-size: 13px;
  font-weight: 700;
}

/* Scroll reveal */
.cfu-coaches-page .cfu-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.cfu-coaches-page .cfu-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 991px) {
  .cfu-coaches-benefits {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .cfu-coaches-hero {
    min-height: 300px;
    padding: 65px 0 90px;
  }

  .cfu-coaches-hero h1 {
    font-size: 28px;
  }

  .cfu-coaches-search {
    padding: 20px;
  }

  .cfu-search-form {
    flex-direction: column;
  }

  .cfu-search-form button {
    width: 100%;
  }

  .cfu-coaches-intro {
    padding-top: 65px;
  }

  .cfu-directory-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .cfu-coach-card {
    padding: 23px 12px 18px;
  }

  .cfu-coach-avatar-link {
    width: 100px;
    height: 100px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cfu-coaches-page *,
  .cfu-coaches-page *::before,
  .cfu-coaches-page *::after {
    animation: none !important;
    transition: none !important;
  }

  .cfu-coaches-page .cfu-reveal {
    opacity: 1;
    transform: none;
  }
}
